From a828410cc8798f0046c1f385cfad34d98b5b40b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 26 Dec 2024 09:03:19 +0000 Subject: [PATCH] update dist --- dist/chrome/_locales/ko/messages.json | 2 +- dist/chrome/background.js | 12 +- dist/chrome/content_script.js | 330 ++++++++++---------- dist/chrome/content_start.js | 12 +- dist/chrome/locales.json | 2 +- dist/chrome/manifest.json | 2 +- dist/chrome/options.js | 330 ++++++++++---------- dist/chrome/popup.js | 284 ++++++++--------- dist/firefox/_locales/ko/messages.json | 2 +- dist/firefox/background.js | 12 +- dist/firefox/content_script.js | 330 ++++++++++---------- dist/firefox/content_start.js | 12 +- dist/firefox/locales.json | 2 +- dist/firefox/manifest.json | 2 +- dist/firefox/options.js | 330 ++++++++++---------- dist/firefox/popup.js | 284 ++++++++--------- dist/userscript/immersive-translate.user.js | 304 +++++++++--------- docs/options/options.js | 322 +++++++++---------- 18 files changed, 1287 insertions(+), 1287 deletions(-) diff --git a/dist/chrome/_locales/ko/messages.json b/dist/chrome/_locales/ko/messages.json index 42bb8f7..f336e76 100644 --- a/dist/chrome/_locales/ko/messages.json +++ b/dist/chrome/_locales/ko/messages.json @@ -3,7 +3,7 @@ "message": "Immersive Translate" }, "brandName": { - "message": "몰입형 번역 - 웹 및 PDF 번역" + "message": "몰입형 번역 - 웹 사이트 번역 확장 프로그램 | PDF 번역 | 무료" }, "brandDescription": { "message": "[몰입형 번역] 무료 (원문/번역문) 이중 언어 대조 웹사이트 번역 확장 프로그램으로 PDF 번역(조판 유지), 비디오 이중 언어 자막 번역(YouTube, Netflix 등), EPUB 전자책 번역을 지원합니다." diff --git a/dist/chrome/background.js b/dist/chrome/background.js index 1aebcb1..93d4177 100644 --- a/dist/chrome/background.js +++ b/dist/chrome/background.js @@ -1,4 +1,4 @@ -(()=>{var s0=Object.defineProperty;var l0=(e,t)=>{for(var a in t)s0(e,a,{get:t[a],enumerable:!0})};var b={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var s0=Object.defineProperty;var l0=(e,t)=>{for(var a in t)s0(e,a,{get:t[a],enumerable:!0})};var b={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5527,10 +5527,10 @@ To translate an image, right-click on any image and select 'Translate Image'. Ad ${u.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return n("errorReason",{message:s})}getProQuotaError(t,a){let n=je.bind(null,t.config.interfaceLanguage),r=t.user.subscription,{subscriptionType:i,isTrial:u}=r,o=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",s=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[n("proQuotaError.toggleAnotherService",{anotherService:o})];if(i=="onetime_7day")l.push(n("proQuotaError.onetime7day",{brandId:ie,href:uo}));else{let d="";s=="AI"?d=oo:d=so,u?l.push(n("proQuotaError.trail",{brandId:ie,href:Gr})):l.push(n("proQuotaError.package",{brandId:ie,href:d,translationService:s})),si(t.user,l,n)}let c=a+`${n("proQuotaError.solvedTitle")}

${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return n("errorReason",{message:c})}};function si(e,t,a){if(!e||!e?.subscription)return;let n=e?.subscription,{isTrial:r,openAITokenUsedCountResetTime:i,subscriptionTo:u}=n;!r&&(n.cancelAtPeriodEnd==="false"||es(u)>i)&&t.push(a("proQuotaError.resetTime",{resetTime:Xo(i,"YYYY-MM-DD HH:mm:ss")}))}function ts(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([a,n])=>{t.append(a,n)}),t}function as(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([a,n])=>{if(Array.isArray(n))for(let r of n)t.append(a,r);else t.append(a,n)}),t.toString()}function ns(e){let{mimeType:t,base64:a}=Vm(e),n=atob(a),r=[],i=512;for(let o=0;o0)try{t=await dr(rs.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(a){throw a&&a.name==="RetryError"&&a.cause?a.cause:a}else t=await rs(e);return t}async function rs(e){e.body;let{url:t,responseType:a,requestType:n,...r}=e;a||(a="json"),n||(n="json"),r={mode:"cors",...r},n=="formData"?r.body=ts(e.body):n=="urlSearchParams"?r.body=as(e.body):n=="blob"&&e.body&&(r.body=ns(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let u=e.fetchPolyfill||fetch,o=3e4,s;if(e.timeout&&(o=e.timeout),i){let c=new AbortController,d=c.signal;s=setTimeout(()=>{c.abort()},o),r.signal=d}let l;try{l=await u(t,r)}catch(c){B.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new vt("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{s&&clearTimeout(s)}if(l.ok&&l.status>=200&&l.status<400){if(a=="HEAD"){if(l.url!==t)throw new vt("fetchError","redirect url:"+l.url);return l.statusText}if(a==="json")return await l.json();if(a==="text")return await l.text();if(a==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(a==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((g,y)=>{d.onload=function(){let k=d.result;g(k)},d.onerror=function(){y(d.error)}});return d.readAsDataURL(c),m}else if(a==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of $m(l.body)){let g=new TextDecoder().decode(m);c+=g;let y;for(;(y=c.indexOf(` -`))>=0;){let k=c.slice(0,y).trim();if(c=c.slice(y+1),k.startsWith("event:")||k==="")continue;let D="";if(k.startsWith("data:")&&(D=k.slice(5).trim()),D==="[DONE]")break;let h;try{h=JSON.parse(D??"")}catch(N){B.debug("json error",N);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(k){B.error("parse response failed",k)}c&&B.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,y=new URL(t).hostname.endsWith(`.${Be}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),y&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new vt("fetchError",m).initNetWork(l.status)}}async function*$m(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var is={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Zm="";function Qt(){return Zm||is.version}function li(){return f.runtime.getManifest().version}var Jm="";function Pn(){return Jm||globalThis.navigator.userAgent}function ci(){return Pn().includes("ImtFxiOS")}function Rn(){return Pn().includes("ImtFxAndroid")}function di(){let t=Pn().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Xt(){let e=Pn();if(ci()||Rn()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var Ln=function(){return Ln=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Qm()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function Ga(e){return e.then(void 0,function(){}),e}function ep(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function ap(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(m,g){u[m]=u[m]||[],u[m].push(g)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function np(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function Ht(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i+l,m+=g>>>16,g&=65535,m+=r+s,d+=m>>>16,m&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function lt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i*l,m+=g>>>16,g&=65535,m+=r*l,d+=m>>>16,m&=65535,m+=i*s,d+=m>>>16,m&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function va(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function at(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Ee(e,t),lt(e,rp),t[1]=e[0]>>>1,Ee(e,t),lt(e,ip),t[1]=e[0]>>>1,Ee(e,t)}var Mn=[2277735313,289559509],In=[1291169091,658871167],cs=[0,5],up=[0,1390208809],op=[0,944331445];function sp(e,t){var a=np(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function lp(e){var t;return Ln({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`))>=0;){let k=c.slice(0,y).trim();if(c=c.slice(y+1),k.startsWith("event:")||k==="")continue;let D="";if(k.startsWith("data:")&&(D=k.slice(5).trim()),D==="[DONE]")break;let h;try{h=JSON.parse(D??"")}catch(N){B.debug("json error",N);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(k){B.error("parse response failed",k)}c&&B.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,y=new URL(t).hostname.endsWith(`.${Be}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),y&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new vt("fetchError",m).initNetWork(l.status)}}async function*$m(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var is={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Zm="";function Qt(){return Zm||is.version}function li(){return f.runtime.getManifest().version}var Jm="";function Pn(){return Jm||globalThis.navigator.userAgent}function ci(){return Pn().includes("ImtFxiOS")}function Rn(){return Pn().includes("ImtFxAndroid")}function di(){let t=Pn().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Xt(){let e=Pn();if(ci()||Rn()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var Ln=function(){return Ln=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Qm()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function Ga(e){return e.then(void 0,function(){}),e}function ep(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function ap(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(m,g){u[m]=u[m]||[],u[m].push(g)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function np(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function Ht(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i+l,m+=g>>>16,g&=65535,m+=r+s,d+=m>>>16,m&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function lt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i*l,m+=g>>>16,g&=65535,m+=r*l,d+=m>>>16,m&=65535,m+=i*s,d+=m>>>16,m&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function va(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function at(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Ee(e,t),lt(e,rp),t[1]=e[0]>>>1,Ee(e,t),lt(e,ip),t[1]=e[0]>>>1,Ee(e,t)}var Mn=[2277735313,289559509],In=[1291169091,658871167],cs=[0,5],up=[0,1390208809],op=[0,944331445];function sp(e,t){var a=np(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function lp(e){var t;return Ln({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` `)},e)}function cp(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function dp(e){return typeof e!="function"}function mp(e,t){var a=Ga(new Promise(function(n){var r=Date.now();os(e.bind(null,t),function(){for(var i=[],u=0;u=4}function gp(){var e=window,t=navigator;return nt(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ss()}function Nn(){var e=window,t=navigator;return nt(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function bt(){var e=window,t=navigator;return nt(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function vi(){var e=window,t=e.HTMLElement,a=e.Document;return nt(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),a&&"pointerLockElement"in a.prototype])>=4}function Ha(){var e=window;return cp(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Ts(){var e,t,a=window;return nt(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function hp(){var e=window;return nt([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function fp(){var e=window;return nt(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Wa(){var e=window,t=navigator,a=e.CSS,n=e.HTMLButtonElement;return nt([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,a.supports("font-size-adjust: ex-height 0.5"),a.supports("text-transform: full-width")])>=4}function bp(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function yp(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function vp(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function xi(){var e=Nn(),t=Ts(),a=window,n=navigator,r="connection";return e?nt([!("SharedWorker"in a),n[r]&&"ontypechange"in n[r],!("sinkId"in new window.Audio)])>=2:t?nt(["onorientationchange"in a,"orientation"in a,/android/i.test(navigator.appVersion)])>=2:!1}function xp(){return Sp()?-4:wp()}function wp(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(Ep())return-1;var a=4500,n=5e3,r=new t(1,n,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var u=r.createDynamicsCompressor();u.threshold.value=-50,u.knee.value=40,u.ratio.value=12,u.attack.value=0,u.release.value=.25,i.connect(u),u.connect(r.destination),i.start(0);var o=Tp(r),s=o[0],l=o[1],c=Ga(s.then(function(d){return Dp(d.getChannelData(0).subarray(a))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function Ep(){return bt()&&!vi()&&!fp()}function Sp(){return bt()&&Wa()&&Ha()}function Tp(e){var t=3,a=500,n=500,r=5e3,i=function(){},u=new Promise(function(o,s){var l=!1,c=0,d=0;e.oncomplete=function(y){return o(y.renderedBuffer)};var m=function(){setTimeout(function(){return s(ds("timeout"))},Math.min(n,d+r-Date.now()))},g=function(){try{var y=e.startRendering();switch(ws(y)&&Ga(y),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?s(ds("suspended")):setTimeout(g,a);break}}catch(k){s(k)}};g(),i=function(){l||(l=!0,d>0&&m())}});return[u,i]}function Dp(e){for(var t=0,a=0;a=0?"+":"").concat(n)}function ag(){var e=new Date().getFullYear();return Math.max(ft(new Date(e,0,1).getTimezoneOffset()),ft(new Date(e,6,1).getTimezoneOffset()))}function ng(){try{return!!window.sessionStorage}catch{return!0}}function rg(){try{return!!window.localStorage}catch{return!0}}function ig(){if(!(Ss()||gp()))try{return!!window.indexedDB}catch{return!0}}function ug(){return!!window.openDatabase}function og(){return navigator.cpuClass}function sg(){var e=navigator.platform;return e==="MacIntel"&&bt()&&!vi()?bp()?"iPad":"iPhone":e}function lg(){return navigator.vendor||""}function cg(){for(var e=[],t=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),o.sort(),[2,o]}})})}function gg(){return bt()||xi()}function hg(e){var t;return gt(this,void 0,void 0,function(){var a,n,r,i,s,u,o,s;return ht(this,function(l){switch(l.label){case 0:for(a=document,n=a.createElement("div"),r=new Array(e.length),i={},ps(n),s=0;s')}function Fg(){return navigator.pdfViewerEnabled}function Bg(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Pg(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Rg())return-3;try{return e.canMakePayments()?1:0}catch(t){return Lg(t)}}var Rg=kp;function Lg(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Mg(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var As=-1,Cs=-2,Ig=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),jg=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Og=["FRAGMENT_SHADER","VERTEX_SHADER"],Ng=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ks="WEBGL_debug_renderer_info",qg="WEBGL_polygon_mode";function Ug(e){var t,a,n,r,i,u,o=e.cache,s=_s(o);if(!s)return As;if(!Bs(s))return Cs;var l=Fs()?null:s.getExtension(ks);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function zg(e){var t=e.cache,a=_s(t);if(!a)return As;if(!Bs(a))return Cs;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(xs,"/npm-monitoring"),!0),e.send()}catch{}}function i4(e){var t;return e===void 0&&(e={}),gt(this,void 0,void 0,function(){var a,n,r;return ht(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&r4(),a=e.delayFallback,n=e.debug,[4,a4(a)];case 1:return i.sent(),r=$g({cache:{},debug:n}),[2,n4(r,n)]}})})}var wi={load:i4,hashComponents:Ps,componentsToDebugString:e4};async function ea(){let e=await Ie("fakeUserId","");e||(e=await Oa("fakeUserId",""),e&&await ve("fakeUserId",e));let t=new Date,a=await Ie("installedAt","");return a||(a=await Oa("installedAt",""),a&&await ve("installedAt",a)),e?a||(a=new Date(0).toISOString(),await ve("installedAt",a)):(e=await s4(64),await ve("fakeUserId",e)),a||(a=t.toISOString(),await ve("installedAt",a)),{fakeUserId:e,installedAt:a}}var u4=10;async function Ka(){let e=await Ie("userTag","");if(e)return e;let{fakeUserId:t}=await ea(),n=t.charCodeAt(0)%u4;return e=String.fromCharCode(n+"a".charCodeAt(0)),await ve("userTag",e),e}function o4(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):l4(i,e)}catch{return o4(64)}}function l4(e,t=32){let a="";for(let r=0;r{}),qn)}async function Is(e,t){try{let a=se(),n=a.INSTALL_FROM==="firefox_store";if(Xt()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=ke(),u=fa(),o=a.PROD==="1",s=Qt(),l=new Date,{fakeUserId:c,installedAt:d}=await ea(),m=await Ka(),g=await Ei(),y=await Si(),k=new Date(d),D=Ti(k),h=Ti(l),N=D===h,F=24*60*60*1e3,U=l.getTime()-k.getTime()<7*F,X=l.getTime()-k.getTime()<30*F,T=l.getTime()-k.getTime()<365*F,v=Tn(),x="";typeof navigator<"u"&&(x=window.navigator.userAgent);let w=on.parse(x),L=e.map(z=>{let _=z.params||{};if(w.os&&(_.os_name=w.os.name||"unknown",_.os_version=w.os.version||"unknown",_.os_version_name=w.os.versionName||"unknown"),w.browser){_.browser_name=w.browser.name||"unknown",_.browser_version=w.browser.version||"unknown";let P=Xt();P&&(_.browser_name=P.name,_.browser_version=P.version)}if(w.platform&&(_.platform_type=w.platform.type||"unknown"),w.engine&&(_.engine_name=w.engine.name||"unknown",_.engine_version=w.engine.version||"unknown"),s&&(_.version=s),a.INSTALL_FROM&&(_.install_from=a.INSTALL_FROM),D){_.install_day=Rs(k);let P=Ms(k);_.install_week=`${P.year}${P.week}`}return _.userscript=i.toString(),N?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=U?"1":"0",_.is_new_user_this_month=X?"1":"0",_.is_new_user_this_year=T?"1":"0",u?_.main_frame=0:_.main_frame=1,m&&(_.ab_tag=m),g&&(_.ab_group=g),_.campaign=y||"none",{...z,params:_}});v.forEach(async z=>{let _=await js({responseType:"text",url:z,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:L})})}),t&&m4(c,L)}catch{}}async function d4(e){return await c4().sendMessage("background:main",e)}function js(e){return pn()?Fn({method:"request",data:e}):ke()||mn()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):d4({method:"fetch",data:e})}function m4(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Ls(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);js({url:fo,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){B.debug("report self service error",a)}}var Di={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[s]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(s)}}}function bg(){for(var e=0,t=["rec2020","p3","srgb"];e')}function Fg(){return navigator.pdfViewerEnabled}function Bg(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Pg(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Rg())return-3;try{return e.canMakePayments()?1:0}catch(t){return Lg(t)}}var Rg=kp;function Lg(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Mg(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var As=-1,Cs=-2,Ig=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),jg=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Og=["FRAGMENT_SHADER","VERTEX_SHADER"],Ng=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ks="WEBGL_debug_renderer_info",qg="WEBGL_polygon_mode";function Ug(e){var t,a,n,r,i,u,o=e.cache,s=_s(o);if(!s)return As;if(!Bs(s))return Cs;var l=Fs()?null:s.getExtension(ks);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function zg(e){var t=e.cache,a=_s(t);if(!a)return As;if(!Bs(a))return Cs;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(xs,"/npm-monitoring"),!0),e.send()}catch{}}function i4(e){var t;return e===void 0&&(e={}),gt(this,void 0,void 0,function(){var a,n,r;return ht(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&r4(),a=e.delayFallback,n=e.debug,[4,a4(a)];case 1:return i.sent(),r=$g({cache:{},debug:n}),[2,n4(r,n)]}})})}var wi={load:i4,hashComponents:Ps,componentsToDebugString:e4};async function ea(){let e=await Ie("fakeUserId","");e||(e=await Oa("fakeUserId",""),e&&await ve("fakeUserId",e));let t=new Date,a=await Ie("installedAt","");return a||(a=await Oa("installedAt",""),a&&await ve("installedAt",a)),e?a||(a=new Date(0).toISOString(),await ve("installedAt",a)):(e=await s4(64),await ve("fakeUserId",e)),a||(a=t.toISOString(),await ve("installedAt",a)),{fakeUserId:e,installedAt:a}}var u4=10;async function Ka(){let e=await Ie("userTag","");if(e)return e;let{fakeUserId:t}=await ea(),n=t.charCodeAt(0)%u4;return e=String.fromCharCode(n+"a".charCodeAt(0)),await ve("userTag",e),e}function o4(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):l4(i,e)}catch{return o4(64)}}function l4(e,t=32){let a="";for(let r=0;r{}),qn)}async function Is(e,t){try{let a=se(),n=a.INSTALL_FROM==="firefox_store";if(Xt()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=ke(),u=fa(),o=a.PROD==="1",s=Qt(),l=new Date,{fakeUserId:c,installedAt:d}=await ea(),m=await Ka(),g=await Ei(),y=await Si(),k=new Date(d),D=Ti(k),h=Ti(l),N=D===h,F=24*60*60*1e3,U=l.getTime()-k.getTime()<7*F,X=l.getTime()-k.getTime()<30*F,T=l.getTime()-k.getTime()<365*F,v=Tn(),x="";typeof navigator<"u"&&(x=window.navigator.userAgent);let w=on.parse(x),L=e.map(z=>{let _=z.params||{};if(w.os&&(_.os_name=w.os.name||"unknown",_.os_version=w.os.version||"unknown",_.os_version_name=w.os.versionName||"unknown"),w.browser){_.browser_name=w.browser.name||"unknown",_.browser_version=w.browser.version||"unknown";let P=Xt();P&&(_.browser_name=P.name,_.browser_version=P.version)}if(w.platform&&(_.platform_type=w.platform.type||"unknown"),w.engine&&(_.engine_name=w.engine.name||"unknown",_.engine_version=w.engine.version||"unknown"),s&&(_.version=s),a.INSTALL_FROM&&(_.install_from=a.INSTALL_FROM),D){_.install_day=Rs(k);let P=Ms(k);_.install_week=`${P.year}${P.week}`}return _.userscript=i.toString(),N?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=U?"1":"0",_.is_new_user_this_month=X?"1":"0",_.is_new_user_this_year=T?"1":"0",u?_.main_frame=0:_.main_frame=1,m&&(_.ab_tag=m),g&&(_.ab_group=g),_.campaign=y||"none",{...z,params:_}});v.forEach(async z=>{let _=await js({responseType:"text",url:z,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:L})})}),t&&m4(c,L)}catch{}}async function d4(e){return await c4().sendMessage("background:main",e)}function js(e){return pn()?Fn({method:"request",data:e}):ke()||mn()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):d4({method:"fetch",data:e})}function m4(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Ls(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);js({url:fo,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){B.debug("report self service error",a)}}var Di={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5785,11 +5785,11 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(
||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var j6=ke();var zs,ue,Gs,g4,Va,Os,Hs,Ws={},Ks=[],h4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Wt(e,t){for(var a in t)e[a]=t[a];return e}function Vs(e){var t=e.parentNode;t&&t.removeChild(e)}function Ai(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Gs};return r==null&&ue.vnode!=null&&ue.vnode(i),i}function ta(e){return e.children}function Un(e,t){this.props=e,this.context=t}function Ea(e,t){if(t==null)return e.__?Ea(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Ai(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null){if(g.__=a,g.__b=a.__b+1,(m=h[c])===null||m&&g.key==m.key&&g.type===m.type)h[c]=void 0;else for(d=0;dcl.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(cl.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return C4(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let D=s.split("://");l=D[0],l==="*"&&D.length>1&&(l="*",s="https://"+D[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,ml),m;try{m=new URL(d)}catch{return B.debug("invalid match pattern",d,"raw match value:",c),!1}let g=m.host,y=m.pathname;y==="/"&&(c.replace("://","").includes("/")||(y="/*"));let k=A4(l+":",dl(g),dl(y));return k?k.test(e):!1}});if(o)return o}return null}catch{return null}}function dl(e){return e.replaceAll(ml,"*")}function A4(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Wn(e,t){return D4(e,t)!==null}function C4(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var k4=null;if(typeof trustedTypes<"u")try{k4=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var _4=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(_4=!0)});var vE=globalThis.document?.createElement("div");var F4={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},a1={...F4};function aa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Kn(e){return Array.isArray(e)?e:e?[e]:[]}function fl(e,t){let a={...e};return yl(a,t),P4(a,t),a}function bl(e,t,a){let n={...e};return kt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),kt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function P4(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;yl(e,r)}function kt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=pl(i);if(u=="rich"){if(!r)return n(i,e[i]);let[m,g,y,k]=pl(i);u=m+"."+g,o=y,s=k}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Kn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!gl(s))return;d=Ri(c,l)}else if(o=="remove_v"){if(!gl(s))return;d=hl(c,l)}else o==="add"?d=Ri(c,l):o=="remove"&&(d=hl(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Ri(c,l):d=l,n(u,d)})}function yl(e,t){return kt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Ri(e,t){let a;if(Array.isArray(e)){let n=Kn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function pl(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function gl(e){let t=Qt();return e&&aa(t,e)}function hl(e,t){if(Array.isArray(e)){let a=Kn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var vl="userConfig",xl="userPromptPool",wl="userObjectPool";async function El(){let e=await Cl(vl)||{},t=await za(xl)||{},a=await za(wl)||{};return L4(e,t,a)}async function Sl(e){let{userConfig:t,promptPool:a,objectPool:n}=await R4(e);await Al(vl,t),await ba(xl,a),await ba(wl,n)}function R4(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return Tl(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),Dl(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function L4(e,t,a){return Tl(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),Dl(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function Tl(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function Dl(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}async function Oe(){let e={...Di,buildinConfigUpdatedAt:Q.BUILD_TIME};e=await H4(e);let t=await N4(e);e.targetLanguage=t;let a=await ma.get(jt,null),n=us(),r=M4(),i=await zt(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},o=await Jt(),s=Object.assign({},u,r,i);if(!s.interfaceLanguage){let c=await j4();s.interfaceLanguage=c}await G4(s,i,e),W4(o,s);let l=Object.assign(n,e);return kt({rule:e,valueIsArray:c=>Array.isArray(n[c]),getMergedValue:c=>n[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),kt({rule:e.generalRule,valueIsArray:c=>Array.isArray(n.generalRule[c]),getMergedValue:c=>n.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),z4(l),q4(a,s,l),l=await K4(l,s),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function M4(){if(Q.PROD==="1")return{};let e={};if(Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:Q.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:Q.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:Q.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(Q.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Q.DEEPL_PROXY_ENDPOINT),Q.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Q.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Q.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:Q.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}Q.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Q.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Q.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Q.MOCK==="1"&&(t.translationService="mock"),t}async function Jt(){let e=await f.storage.local.get(Ra);if(e[Ra]){let t=e[Ra],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await Ut(i),i}else return{}}async function Ut(e){await f.storage.local.set({[Ra]:e})}async function I4(){return Q.DEBUG==="1"?void 0:(await f.storage.local.get(Ir))[Ir]}function zt(){return El()}function xt(e){return Sl(e)}async function Al(e,t){await f.storage.sync.set({[e]:t})}async function Cl(e){return(await f.storage.sync.get(e))[e]}async function ba(e,t){await f.storage.local.set({[e]:t})}async function za(e){return(await f.storage.local.get(e))[e]}var j4=async()=>{let e=["zh-CN"];try{e=await f.i18n.getAcceptLanguages()}catch(n){B.warn("get browser language error:",n)}let a=e.map(n=>Ot(n)).find(n=>Jo.find(r=>r===n));return a||"en"},us=()=>{let e={...Di,buildinConfigUpdatedAt:Q.BUILD_TIME};return{...e,targetLanguage:It,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function O4(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function N4(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return It;let a=await Ie("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=kl(l,n[o]))}),kt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=kl(l,a[o]))}),kt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}async function z4(e){try{let t=await Ie("installedAt",""),a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){B.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function kl(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}async function G4(e,t,a){let n=e.interfaceLanguage==="en",r=e.targetLanguage==="en",i=a&&a.translationLanguagePattern&&a.translationLanguagePattern.matches&&a.translationLanguagePattern.matches.length===0,u=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!n&&!r&&!i&&u?a.translationLanguagePattern||(a.translationLanguagePattern={matches:["en"],excludeMatches:[]}):a.translationLanguagePattern={matches:[],excludeMatches:[]};let o=a&&a.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(o=!1);let s=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;s===void 0&&(l.length>0?s=!0:s=!1,e.isChangedAlwaysTranslatedUrls=s,t.isChangedAlwaysTranslatedUrls=s,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Ie("installedAt",""),g=Number(await Oa("translage_page_daily",0)),y=Number(await Ie(st,0)),k;y>0&&(Date.now()-y0&&(Date.now()-gn&&(e=t)}return e}function W4(e,t){let a=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let n=e.tempTranslationUrlMatches.filter(r=>new Date(r.expiredAt)>a);if(n.length>0){let r=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(r)?r:[r],u=Array.from(new Set(i.concat(n.map(o=>o.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:u}}}}async function K4(e,t){let a=await V4(),n=Object.keys(e),r=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of n){let u=i;if(u==="generalRule")typeof t[u]=="object"&&(e[u]=fl(e[u],t[u]));else if(u==="translationServices")U4(t,e);else if(typeof t[u]!="string"&&typeof t[u]!="boolean"&&typeof t[u]!="number"&&r.includes(u))t[u]&&(e[u]=Object.assign(e[u],t[u])),u==="shortcuts"&&(ke()||ot()?e[u]={...e[u],...a}:e[u]={...a});else if(u==="rules"){if(Array.isArray(t[u])){let o=e.rules||[],s={};for(let c of o)c.id&&(s[c.id]=c);let l=t[u].map(c=>c.id&&s[c.id]?bl(e.generalRule,s[c.id],c):c);e[u]=[...l,...e[u]]}if(Q.PROD==="0"&&Q.DEV_RULES){let o=JSON.parse(Q.DEV_RULES);e[u]=[...o,...e[u]]}}else t[u]!==void 0&&(e[u]=t[u])}return e}async function V4(){let e={};if(!ke()&&f.commands&&f.commands.getAll){let t=await f.commands.getAll();for(let a of t)a.name&&a.shortcut&&(e[a.name]=a.shortcut)}return e}function Vn(e){let t=f.runtime.getURL($u),a=new URL(t);return e&&(e.startsWith("http")||!Vr())&&a.searchParams.set("file",e),a.href}function _l(){return se().PDF_VIEWER_URL}function Fl(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var $n=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],a="";do{let{nextPageToken:n,files:r}=await this.list(a).catch(i=>{throw i});t.push(...r),a=n||""}while(a);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){return B.error("get config error, use default",a),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,a=xn){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:a,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,a){let n=new Blob([JSON.stringify(a,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,a){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",a);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return r.ok?await r.json():Promise.reject(r.text())}async list(t,a){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),a&&n.searchParams.append("q",a),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return B.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw B.error("fetch google ip error",r),r}}async updateContent(t,a){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:a})).text()}};function Bl(e,t){let a=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${vn}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(a.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function Pl(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Rl(e,t,a,n,r,i,u){if(B.debug(`autoSyncStrategy accessToken: ${e}`),t===null){B.debug("autoSyncStrategy settings is null");return}let o=new $n(e);try{let s=(await o.findByName(xn)).files;B.debug("files",s);let l=s[0]?.id,c=null;if(l&&(c=await o.getConfig(l).then(d=>({fileId:l,config:d}))),c){let{config:d,fileId:m}=c,g=d.updatedAt?new Date(d.updatedAt):new Date(0),y=t.updatedAt?new Date(t.updatedAt):new Date(0);if(B.debug("remoteUpdatedAt",g,"localUpdatedAt",y),g>y)B.debug("remote is newer, update local config",d),a(d),i&&i(!0);else if(g.getTime()===y.getTime())B.debug("remote and local are the same, do nothing"),i&&i(!1);else if(g(await e.removeAuthInfo(),Lr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await f.storage.local.get(la);if(t[la])return t[la]}static async removeAuthInfo(){return await f.storage.local.remove(la)}static setAuthInfo(t){return f.storage.local.set({[la]:t})}async auth(t=!1){let a=await e.getAuthInfo();if(B.debug(this.CLASSNAME,"token from cache:",a),a&&a.access_token&&await Ll(a.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(a);let n=Bl(this._state,this._redirectUrl);return B.debug(this.CLASSNAME,"auth url: "+n),Lr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,a){return a&&await f.storage.local.set({[Zu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let a,n=!1;return new Promise((r,i)=>{let u=()=>{f.tabs.onUpdated.removeListener(o),f.tabs.onRemoved.removeListener(s)},o=(m,g,y)=>{if(B.debug(this.CLASSNAME,"create tab onUpdated: "+y.url),a===m){let k=new URL(y.url||""),D=Pl(y.url);k.pathname.startsWith("/auth-done")&&D?.access_token&&(B.debug(this.CLASSNAME,"auth done: "+y.url),r({access_token:D.access_token}),n=!0,f.tabs.remove(m),u())}},s=(m,g)=>{B.debug(this.CLASSNAME,"create tab onRemoved: "+m),(m===a||!n)&&(u(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),d;f.windows===void 0?d=f.tabs.create({url:t}).then(m=>{a=m.id}):d=f.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(m=>{a=m.tabs[0].id}),d.then(()=>{f.tabs.onUpdated.addListener(o),f.tabs.onRemoved.addListener(s)}).catch(m=>{B.debug(this.CLASSNAME,"create tab failed: "+m),i(m)})})}};var Y4="https://www.googleapis.com/oauth2/v3/tokeninfo",Z4=vn,J4=se().REDIRECT_URL;function Ll(e){if(!e)throw"Authorization failure";let t=`${Y4}?access_token=${e}`,a=new Request(t,{method:"GET"});function n(r){return new Promise((i,u)=>{r.status!=200&&u("Token validation error"),r.json().then(o=>{o.aud&&o.aud===Z4?i(e):u("Token validation error")})})}return fetch(a).then(n)}function Ml(e,t=!1){let a=J4;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,i=window.location.port;a=`${window.location.protocol}//${r}${i?`:${i}`:""}/auth-done/`}return new Yn(e,a).auth(t)}async function Il(){}function jl(e,t){let a=new Map;for(let i of t)a.set(i.header.toLowerCase(),i);let n=[],r=e.filter(i=>{let u=a.get(i.name.toLowerCase());if(u){if(u.operation==="remove")return!1;if(u.operation==="set")return!1}return!0});for(let i of t)i.operation==="set"&&n.push({name:i.header,value:i.value||""});return r.concat(n)}var Zn=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:5,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://edge.microsoft.com/translate/auth",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:6,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://api-edge.cognitive.microsofttranslator.com/translate",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:301,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.pixiv.net/"}]},condition:{urlFilter:"https://i.pximg.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:302,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21*.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:303,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:304,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://2.bp.blogspot.com"}]},condition:{urlFilter:"https://2.bp.blogspot.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:305,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://japanreader.com"}]},condition:{urlFilter:"https://japanreader.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:306,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://mangabuddy.com/"}]},condition:{urlFilter:"https://s*.mbbcdn.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:307,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://sl.mangafuna.xyz/"}]},condition:{urlFilter:"https://sl.mangafuna.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:308,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://toonily.me"}]},condition:{urlFilter:"https://s*.toonilycdnv2.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:309,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://readcomiconline.li"}]},condition:{urlFilter:"https://*.whatsnew*.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:310,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://yymanhua.com"}]},condition:{urlFilter:"https://image.yymanhua.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:311,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://klz9.com"}]},condition:{urlFilter:"https://h1.klimv1.xyz/images*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:312,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://manhwato.com"}]},condition:{urlFilter:"https://stcdn.manhwato.com/images/manga/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}}];var X4="https://www.google-analytics.com/mp/collect",eh=30,th=100;async function ah(){let{sessionData:e}=await f.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>eh?e=null:(e.timestamp=t,await f.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await f.storage.session.set({sessionData:e})),e.session_id}function Ol(e){ho().forEach(({measurementId:t,apiSecret:a})=>{Nl({measurement_id:t,api_secret:a,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Sa(e,t,a){return Nl({measurement_id:po,api_secret:go,page_title:e,page_location:t,time:a})}async function Nl(e){try{let t=se(),a=Xt(),n=t.INSTALL_FROM==="firefox_store";if(a?.name?.startsWith("ImtFx")&&(n=!1),n)return;let{fakeUserId:r}=await ea(),i=`${X4}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,u={method:"POST",body:JSON.stringify({client_id:r,events:[{name:"page_view",params:{session_id:await ah(),engagement_time_msec:e.time||th,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,u)}catch(t){B.error(t)}}var _t=new Map;function ql(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function Qn(e){let t=await zl(),a=Date.now();if(t){if(_t.has(e))return;let n=await f.tabs.get(e),r=ql(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Li(e)}async function Ul(e){let t=await zl(),a=Date.now();for(let[n,r]of _t)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t){if(_t.has(e)){let i=_t.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=ql(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Li(e){if(_t.has(e)){let t=_t.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),_t.delete(e),rh(t.hostname,a)}}async function nh(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function rh(e,t){Sa(`${e}(video)`,e,t),ih(t)}var Jn="videoWatchTimeDay";async function ih(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Ie(Jn,null);if(!r){await ve(Jn,{day:n,time:e});return}if(r.day!==n){Sa("day-video."+Be,"day-video."+Be,r.time),await ve(Jn,{day:n,time:e});return}let i={day:n,time:r.time+e};await ve(Jn,i)}catch(t){B.error(t)}}async function zl(){try{return await nh({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Mi=(e,t,a,n)=>{let r=vo[e]||e,i=yo[e]||e,u=xo[e],o=wo[e],s={"zh-CN":u,"zh-TW":o,en:i};if(a)return s[e]?s[e]:i;let l=e!==t&&r!=="All Languages";if(s[t]){let c=s[t];return n||e==="auto"||e==="placeholder"?c:l?`${c} (${r})`:`${c}`}else return l?`${i} (${r})`:i};function uh(){return navigator.userAgent.indexOf("Mac")!==-1}var Gl={Alt:"\u2325"};function Ii(e=""){return uh()?Object.keys(Gl).reduce((t,a)=>t.replace(a,Gl[a]),e):e}function oh(e,t){let a=e.generalRule.imageRule.enableImageTranslation,n=e.beta;return a=="all"||a=="beta"&&n||a=="pro"&&t||a=="pro_beta"&&n&&t?!0:a?!1:n&&!!t}async function ji(){if(ke())return!1;let e=await Oe(),t=await Ao();return oh(e,t)}function sh(){return Kr()&&!ot()}var $a=sh()?["action"]:["browser_action","page_action"],Ya="",Hl=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...$a]},{id:Yt,contexts:["image"]},{id:jr,contexts:$a},{id:Nr,contexts:$a},{id:qr,contexts:$a},{id:Or,contexts:$a}];async function Oi(e){B.debug("createContextMenu",Hl);for(let t of Hl){let a=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(a=!1);try{let n=je(e.interfaceLanguage,`browser.${t.id}`);if(t.id===Yt&&(a=await ji()),t.id==="toggleTranslatePage"){n=je(e.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e.targetLanguage,e.interfaceLanguage,!1,!0)});let r=Ii(e.shortcuts.toggleTranslatePage);r&&(n+=`(${r})`)}f.contextMenus.create({id:t.id,title:n,contexts:t.contexts,visible:a},()=>f.runtime.lastError)}catch(n){B.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}async function Ja({targetLanguage:e,text:t}){let a=await Oe(),n="toggleTranslatePage",r=!0;a.isShowContextMenu===!1&&n==="toggleTranslatePage"&&(r=!1);let i;if(t)Ya=t,i=je(a.interfaceLanguage,"browser.translateText",{text:t});else{let u=await Xn(),o=u&&u!=="Original";i=je(a.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e??a.targetLanguage,a.interfaceLanguage,!1,!0)}),o&&(i=`${je(a.interfaceLanguage,"show-original")}`);let s=Ii(a.shortcuts.toggleTranslatePage);s&&(i+=`(${s})`),Ya=""}f.contextMenus.update(n,{title:i,visible:r})}function Wl(){f.contextMenus.onClicked.addListener(async e=>{if(e.menuItemId===jr)f.runtime.openOptionsPage();else if(e.menuItemId===Or){let t=_l();f.tabs.create({url:t})}else if(e.menuItemId===qr){let a=se().EBOOK_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Nr){let a=se().EBOOK_VIEWER_URL;f.tabs.create({url:a})}else if(e.menuItemId===to){let a=se().SUBTITLE_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Yt)Za({method:e.menuItemId,data:{srcUrl:e.srcUrl,trigger:"right_menu"}});else{if(e.selectionText&&e.editable){Za({method:"inputSelectedTextTranslate",data:{text:Ya,trigger:"right_menu"}});return}if(e.selectionText&&Ya){let t=se(),a=await Oe(),n=encodeURIComponent(Ya),r=`${t.TEXT_TRANSLATE_URL}#auto/${a.targetLanguage}/${n}`;f.tabs.create({url:r}),lh([{name:"translate_select_text",params:{trigger:"right_menu",targetLanguage:a.targetLanguage}}]);return}Za({method:e.menuItemId,data:{trigger:"right_menu"}})}})}async function lh(e){try{let t=Tn(),a=se(),n=Xt(),r=a.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:i}=await ea(),u={method:"POST",body:JSON.stringify({client_id:i,user_id:i,events:e})};t.forEach(o=>{fetch(o,u)})}catch(t){B.error(t)}}async function Kl(){try{let e=await ji();f.contextMenus.update(Yt,{visible:e})}catch{}}function Vl(){f.tabs.onActivated.addListener(function(e){Ja({}),ch(e.tabId),Ul(e.tabId)}),f.tabs.onRemoved.addListener(function(e){Yl(e),Li(e)}),f.tabs.onUpdated.addListener(function(e){Ni(e),Qn(e)})}var Ft=new Map;async function Ni(e){let t=await Xn(),a=Date.now();if(t=="Translated"){if(Ft.has(e))return;let n=await f.tabs.get(e),r=$l(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Yl(e)}function $l(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function ch(e){let t=await Xn(),a=Date.now();for(let[n,r]of Ft)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t=="Translated"){if(Ft.has(e)){let i=Ft.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=$l(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Yl(e){if(Ft.has(e)){let t=Ft.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),Ft.delete(e),mh(t.hostname,a)}}async function dh(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function mh(e,t){Sa(e,e,t),ph(t)}async function Xn(){try{return await dh({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var er="readTimeDay";async function ph(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Ie(er,null);if(!r){await ve(er,{day:n,time:e});return}if(r.day!==n){Sa("day."+Be,"day."+Be,r.time),await ve(er,{day:n,time:e});return}let i={day:n,time:r.time+e};await ve(er,i)}catch(t){B.error(t)}}var tr,gh=async function(e,t){let{method:a,data:n}=e;if(B.debug("background received message",a,n||" "),a==="mock")await Bt(150);else{if(a==="queryParagraphCache")return ei(n);if(a==="setParagraphCache")return Xr(n);if(a==="calculateSize")return No();if(a==="fetch")return ya(n);if(a==="getConfig")return Oe();if(a==="getLocalConfig")return Jt();if(a==="openOptionsPage"){let r="";n&&n.pageRoute&&(r=n.pageRoute);let i=f.runtime.getURL("options.html");f.tabs.create({url:i+r})}else if(a==="openAboutPage")f.tabs.create({url:f.runtime.getURL("options.html#about")});else if(a==="openInTab")n&&f.tabs.create({url:n});else if(a==="openEbookViewerPage"){let i=se().EBOOK_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openSubtitleBuilderPage"){let i=se().SUBTITLE_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openEbookBuilderPage"){let i=se().EBOOK_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openHtmlViewerPage"){let i=se().HTML_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openPdfViewerPage"){let r=n?.url,i=Vn(r);(ot()||!r)&&(i=se().PDF_VIEWER_URL),f.tabs.create({url:i})}else{if(a==="setLocalConfig")return Ut(n);if(a=="getUserConfig")return zt();if(a=="setUserConfig")return xt(n);if(a==="detectLanguage"){let{text:r,pageLangs:i}=n;if(f.i18n&&f.i18n.detectLanguage)try{let u=await Zl(f.i18n.detectLanguage(r),1500,{isReliable:!1,languages:[]});if(u.languages.length>0){if(u.isReliable)return Ot(u.languages[0].language);for(let o of u.languages){let s=Ot(o.language);if(i.includes(s)&&o.percentage>50)return s}}return"auto"}catch(u){return B.debug("detect language error",u),"auto"}else return"auto"}else if(a==="detectTabLanguage")try{let r=await Zl(f.tabs.detectLanguage(t.id),1500,"auto");return Ot(r)}catch(r){return B.debug("detect tab language error, use auto ",r),"auto"}else if(a==="autoSyncLatestConfig"){try{await Il()}catch(r){B.debug("auto sync latest config error",r)}return""}else if(a!=="updateCommands")if(a==="setBadge"){let r=t.id,i=n&&n.text?n.text:"";r&&(Ja({}),hh(r,i)),r&&Ni(r)}else if(a=="getDelay"){let{key:r,options:i}=n||{};return Ua.getDelay(r,i,!0)}else if(a==="getIsSupportIsOnToolbar")try{return f?.action?.getUserSettings?(await f.action.getUserSettings(),!0):!1}catch{return!1}else if(a==="getIsOnToolbar")try{return(await f.action.getUserSettings()).isOnToolbar}catch{return!1}else if(a=="reportOptionsPageView")Ol(n);else if(a==="updateVideoSubtitleStatus"){let r=t.id;r&&Qn(r)}else a==="updateToggleTranslateContextMenu"?Ja(n):a==="updateImageMenu"&&Kl()}}};function Jl(){na();let e=f.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&f.webRequest&&f.webRequest.onBeforeSendHeaders){let t=Zn.map(n=>n.condition.urlFilter),a=Zn.reduce((n,r)=>(r.condition.resourceTypes.forEach(i=>{n.includes(i)||n.push(i)}),n),[]);f.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let r=0;r{let i=setTimeout(()=>{n(a)},t);e.then(u=>{clearTimeout(i),n(u)}).catch(u=>{clearTimeout(i),r(u)})})}function Ql(){typeof f.commands<"u"&&f.commands.onCommand.addListener(async e=>{if(B.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await f.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Fl(n)){f.tabs.create({url:Vn(n)});return}}await Za({method:e,data:{trigger:"shortcut"}})})}async function Za(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;na().sendMessage(`content_script:main:${a}`,e).catch(r=>{B.error("send content message request failed",e,r)})}function nr(){Oe().then(e=>{e.uninstallUrl&&f.runtime.setUninstallURL&&f.runtime.setUninstallURL(e.uninstallUrl),qi(e)}).catch(e=>{B.error("create menu error",e)})}function qi(e){e?Oi(e):Oe().then(t=>{Oi(t)}).catch(t=>{B.error("create menu error",t)})}function Xl(){f.runtime.onInstalled.addListener(e=>{B.debug(`onInstalled reason: ${e.reason}`),B.debug(e),e.reason=="install"?(async()=>{let t=Pa,n=f.runtime.getURL("").startsWith("safari"),r=!1,i=!1;try{let c=await f.runtime.getPlatformInfo();if(n)c.os==="mac"?r=!0:c.os==="ios"&&(i=!0);else if(c.os==="android"){if(Rn()){let d=di();if(d&&aa(d,"1.0.2")){nr();return}}t=Pa+"mobile/"}}catch{}r?t=Pa+"safari/step-1/":i&&(t=Pa+"ios/step-2/");let u=await Ie("onboardingDisplayTime",""),o=await Ka(),s=await Qt(),l=new URL(t);l.searchParams.set("t",o),l.searchParams.set("v",s),n?u||(await ve("onboardingDisplayTime",new Date().toISOString()),f.tabs.create({url:l.toString()})):f.tabs.create({url:l.toString()}),nr()})():(e.reason=="update"&&f.runtime.getManifest().version!=e.previousVersion,nr())})}var bh=ki(null);async function vh(e,t,a){a=a||await oi();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&e0(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&e0(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await zt();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Vo(a),await xt(i)}catch{return!1}return r}async function xh(e,t){(await Promise.allSettled(e.map(n=>qt({url:`${b.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&vh("add",r,t)}})}async function wh(e,t,a=!0){e||(e=await Oe()),t||(t=await oi());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await Dh();i=await Th(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&xh(u,t)}var Eh=Aa(wh,1500);function e0(e){return aa(li(),e.extensionVersion)}function Sh(e,t){return t?!aa(e.version,t):!1}function Th(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{Sh(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function Dh(){return(await qt({url:`${b.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var Ah=1e3*3600*24;async function t0(e){try{let t=e?.cacheCleanIntervalDay??1,a=e?.cacheMaxAgeDay??30,n=new Date,r=await f.storage.local.get(null),i=r[wn],u=r[Ur];if(u||(u=n.getTime(),await f.storage.local.set({[Ur]:u})),i||(i=n.getTime(),await f.storage.local.set({[wn]:i})),n.getTime()-i>=t*Ah){let o=await qo(a,u);await f.storage.local.set({[wn]:n.getTime()})}}catch{}}async function a0(){try{if(ke())return;let e=f.runtime.getURL("locales.json"),a=await(await fetch(e)).json();Object.assign(Gt,a)}catch{}}Jl();Xl();Ql();f.contextMenus&&Wl();async function Ch(){await a0(),f.contextMenus&&qi();let e=await Oe();if(t0(e),e.joinJobs){let t=bo.replace("{jobs}",e.joinJobs.map(a=>` \u2022 ${a}`).join(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var j6=ke();var zs,ue,Gs,g4,Va,Os,Hs,Ws={},Ks=[],h4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Wt(e,t){for(var a in t)e[a]=t[a];return e}function Vs(e){var t=e.parentNode;t&&t.removeChild(e)}function Ai(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Gs};return r==null&&ue.vnode!=null&&ue.vnode(i),i}function ta(e){return e.children}function Un(e,t){this.props=e,this.context=t}function Ea(e,t){if(t==null)return e.__?Ea(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Ai(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null){if(g.__=a,g.__b=a.__b+1,(m=h[c])===null||m&&g.key==m.key&&g.type===m.type)h[c]=void 0;else for(d=0;dcl.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(cl.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return C4(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let D=s.split("://");l=D[0],l==="*"&&D.length>1&&(l="*",s="https://"+D[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,ml),m;try{m=new URL(d)}catch{return B.debug("invalid match pattern",d,"raw match value:",c),!1}let g=m.host,y=m.pathname;y==="/"&&(c.replace("://","").includes("/")||(y="/*"));let k=A4(l+":",dl(g),dl(y));return k?k.test(e):!1}});if(o)return o}return null}catch{return null}}function dl(e){return e.replaceAll(ml,"*")}function A4(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Wn(e,t){return D4(e,t)!==null}function C4(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var k4=null;if(typeof trustedTypes<"u")try{k4=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var _4=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(_4=!0)});var vE=globalThis.document?.createElement("div");var F4={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},a1={...F4};function aa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Kn(e){return Array.isArray(e)?e:e?[e]:[]}function fl(e,t){let a={...e};return yl(a,t),P4(a,t),a}function bl(e,t,a){let n={...e};return kt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),kt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function P4(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;yl(e,r)}function kt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=pl(i);if(u=="rich"){if(!r)return n(i,e[i]);let[m,g,y,k]=pl(i);u=m+"."+g,o=y,s=k}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Kn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!gl(s))return;d=Ri(c,l)}else if(o=="remove_v"){if(!gl(s))return;d=hl(c,l)}else o==="add"?d=Ri(c,l):o=="remove"&&(d=hl(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Ri(c,l):d=l,n(u,d)})}function yl(e,t){return kt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Ri(e,t){let a;if(Array.isArray(e)){let n=Kn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function pl(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function gl(e){let t=Qt();return e&&aa(t,e)}function hl(e,t){if(Array.isArray(e)){let a=Kn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var vl="userConfig",xl="userPromptPool",wl="userObjectPool";async function El(){let e=await Cl(vl)||{},t=await za(xl)||{},a=await za(wl)||{};return L4(e,t,a)}async function Sl(e){let{userConfig:t,promptPool:a,objectPool:n}=await R4(e);await Al(vl,t),await ba(xl,a),await ba(wl,n)}function R4(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return Tl(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),Dl(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function L4(e,t,a){return Tl(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),Dl(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function Tl(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function Dl(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}async function Oe(){let e={...Di,buildinConfigUpdatedAt:Q.BUILD_TIME};e=await H4(e);let t=await N4(e);e.targetLanguage=t;let a=await ma.get(jt,null),n=us(),r=M4(),i=await zt(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},o=await Jt(),s=Object.assign({},u,r,i);if(!s.interfaceLanguage){let c=await j4();s.interfaceLanguage=c}await G4(s,i,e),W4(o,s);let l=Object.assign(n,e);return kt({rule:e,valueIsArray:c=>Array.isArray(n[c]),getMergedValue:c=>n[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),kt({rule:e.generalRule,valueIsArray:c=>Array.isArray(n.generalRule[c]),getMergedValue:c=>n.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await z4(l),q4(a,s,l),l=await K4(l,s),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function M4(){if(Q.PROD==="1")return{};let e={};if(Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:Q.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:Q.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:Q.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(Q.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Q.DEEPL_PROXY_ENDPOINT),Q.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Q.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Q.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:Q.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}Q.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Q.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Q.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Q.MOCK==="1"&&(t.translationService="mock"),t}async function Jt(){let e=await f.storage.local.get(Ra);if(e[Ra]){let t=e[Ra],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await Ut(i),i}else return{}}async function Ut(e){await f.storage.local.set({[Ra]:e})}async function I4(){return Q.DEBUG==="1"?void 0:(await f.storage.local.get(Ir))[Ir]}function zt(){return El()}function xt(e){return Sl(e)}async function Al(e,t){await f.storage.sync.set({[e]:t})}async function Cl(e){return(await f.storage.sync.get(e))[e]}async function ba(e,t){await f.storage.local.set({[e]:t})}async function za(e){return(await f.storage.local.get(e))[e]}var j4=async()=>{let e=["zh-CN"];try{e=await f.i18n.getAcceptLanguages()}catch(n){B.warn("get browser language error:",n)}let a=e.map(n=>Ot(n)).find(n=>Jo.find(r=>r===n));return a||"en"},us=()=>{let e={...Di,buildinConfigUpdatedAt:Q.BUILD_TIME};return{...e,targetLanguage:It,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function O4(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function N4(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return It;let a=await Ie("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=kl(l,n[o]))}),kt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=kl(l,a[o]))}),kt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}async function z4(e){try{let t=await Ie("installedAt",""),a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){B.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function kl(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}async function G4(e,t,a){let n=e.interfaceLanguage==="en",r=e.targetLanguage==="en",i=a&&a.translationLanguagePattern&&a.translationLanguagePattern.matches&&a.translationLanguagePattern.matches.length===0,u=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!n&&!r&&!i&&u?a.translationLanguagePattern||(a.translationLanguagePattern={matches:["en"],excludeMatches:[]}):a.translationLanguagePattern={matches:[],excludeMatches:[]};let o=a&&a.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(o=!1);let s=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;s===void 0&&(l.length>0?s=!0:s=!1,e.isChangedAlwaysTranslatedUrls=s,t.isChangedAlwaysTranslatedUrls=s,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Ie("installedAt",""),g=Number(await Oa("translage_page_daily",0)),y=Number(await Ie(st,0)),k;y>0&&(Date.now()-y0&&(Date.now()-gn&&(e=t)}return e}function W4(e,t){let a=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let n=e.tempTranslationUrlMatches.filter(r=>new Date(r.expiredAt)>a);if(n.length>0){let r=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(r)?r:[r],u=Array.from(new Set(i.concat(n.map(o=>o.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:u}}}}async function K4(e,t){let a=await V4(),n=Object.keys(e),r=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of n){let u=i;if(u==="generalRule")typeof t[u]=="object"&&(e[u]=fl(e[u],t[u]));else if(u==="translationServices")U4(t,e);else if(typeof t[u]!="string"&&typeof t[u]!="boolean"&&typeof t[u]!="number"&&r.includes(u))t[u]&&(e[u]=Object.assign(e[u],t[u])),u==="shortcuts"&&(ke()||ot()?e[u]={...e[u],...a}:e[u]={...a});else if(u==="rules"){if(Array.isArray(t[u])){let o=e.rules||[],s={};for(let c of o)c.id&&(s[c.id]=c);let l=t[u].map(c=>c.id&&s[c.id]?bl(e.generalRule,s[c.id],c):c);e[u]=[...l,...e[u]]}if(Q.PROD==="0"&&Q.DEV_RULES){let o=JSON.parse(Q.DEV_RULES);e[u]=[...o,...e[u]]}}else t[u]!==void 0&&(e[u]=t[u])}return e}async function V4(){let e={};if(!ke()&&f.commands&&f.commands.getAll){let t=await f.commands.getAll();for(let a of t)a.name&&a.shortcut&&(e[a.name]=a.shortcut)}return e}function Vn(e){let t=f.runtime.getURL($u),a=new URL(t);return e&&(e.startsWith("http")||!Vr())&&a.searchParams.set("file",e),a.href}function _l(){return se().PDF_VIEWER_URL}function Fl(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var $n=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],a="";do{let{nextPageToken:n,files:r}=await this.list(a).catch(i=>{throw i});t.push(...r),a=n||""}while(a);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){return B.error("get config error, use default",a),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,a=xn){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:a,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,a){let n=new Blob([JSON.stringify(a,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,a){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",a);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return r.ok?await r.json():Promise.reject(r.text())}async list(t,a){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),a&&n.searchParams.append("q",a),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return B.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw B.error("fetch google ip error",r),r}}async updateContent(t,a){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:a})).text()}};function Bl(e,t){let a=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${vn}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(a.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function Pl(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Rl(e,t,a,n,r,i,u){if(B.debug(`autoSyncStrategy accessToken: ${e}`),t===null){B.debug("autoSyncStrategy settings is null");return}let o=new $n(e);try{let s=(await o.findByName(xn)).files;B.debug("files",s);let l=s[0]?.id,c=null;if(l&&(c=await o.getConfig(l).then(d=>({fileId:l,config:d}))),c){let{config:d,fileId:m}=c,g=d.updatedAt?new Date(d.updatedAt):new Date(0),y=t.updatedAt?new Date(t.updatedAt):new Date(0);if(B.debug("remoteUpdatedAt",g,"localUpdatedAt",y),g>y)B.debug("remote is newer, update local config",d),a(d),i&&i(!0);else if(g.getTime()===y.getTime())B.debug("remote and local are the same, do nothing"),i&&i(!1);else if(g(await e.removeAuthInfo(),Lr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await f.storage.local.get(la);if(t[la])return t[la]}static async removeAuthInfo(){return await f.storage.local.remove(la)}static setAuthInfo(t){return f.storage.local.set({[la]:t})}async auth(t=!1){let a=await e.getAuthInfo();if(B.debug(this.CLASSNAME,"token from cache:",a),a&&a.access_token&&await Ll(a.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(a);let n=Bl(this._state,this._redirectUrl);return B.debug(this.CLASSNAME,"auth url: "+n),Lr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,a){return a&&await f.storage.local.set({[Zu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let a,n=!1;return new Promise((r,i)=>{let u=()=>{f.tabs.onUpdated.removeListener(o),f.tabs.onRemoved.removeListener(s)},o=(m,g,y)=>{if(B.debug(this.CLASSNAME,"create tab onUpdated: "+y.url),a===m){let k=new URL(y.url||""),D=Pl(y.url);k.pathname.startsWith("/auth-done")&&D?.access_token&&(B.debug(this.CLASSNAME,"auth done: "+y.url),r({access_token:D.access_token}),n=!0,f.tabs.remove(m),u())}},s=(m,g)=>{B.debug(this.CLASSNAME,"create tab onRemoved: "+m),(m===a||!n)&&(u(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),d;f.windows===void 0?d=f.tabs.create({url:t}).then(m=>{a=m.id}):d=f.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(m=>{a=m.tabs[0].id}),d.then(()=>{f.tabs.onUpdated.addListener(o),f.tabs.onRemoved.addListener(s)}).catch(m=>{B.debug(this.CLASSNAME,"create tab failed: "+m),i(m)})})}};var Y4="https://www.googleapis.com/oauth2/v3/tokeninfo",Z4=vn,J4=se().REDIRECT_URL;function Ll(e){if(!e)throw"Authorization failure";let t=`${Y4}?access_token=${e}`,a=new Request(t,{method:"GET"});function n(r){return new Promise((i,u)=>{r.status!=200&&u("Token validation error"),r.json().then(o=>{o.aud&&o.aud===Z4?i(e):u("Token validation error")})})}return fetch(a).then(n)}function Ml(e,t=!1){let a=J4;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,i=window.location.port;a=`${window.location.protocol}//${r}${i?`:${i}`:""}/auth-done/`}return new Yn(e,a).auth(t)}async function Il(){}function jl(e,t){let a=new Map;for(let i of t)a.set(i.header.toLowerCase(),i);let n=[],r=e.filter(i=>{let u=a.get(i.name.toLowerCase());if(u){if(u.operation==="remove")return!1;if(u.operation==="set")return!1}return!0});for(let i of t)i.operation==="set"&&n.push({name:i.header,value:i.value||""});return r.concat(n)}var Zn=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:5,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://edge.microsoft.com/translate/auth",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:6,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://api-edge.cognitive.microsofttranslator.com/translate",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:301,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.pixiv.net/"}]},condition:{urlFilter:"https://i.pximg.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:302,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21*.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:303,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:304,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://2.bp.blogspot.com"}]},condition:{urlFilter:"https://2.bp.blogspot.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:305,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://japanreader.com"}]},condition:{urlFilter:"https://japanreader.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:306,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://mangabuddy.com/"}]},condition:{urlFilter:"https://s*.mbbcdn.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:307,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://sl.mangafuna.xyz/"}]},condition:{urlFilter:"https://sl.mangafuna.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:308,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://toonily.me"}]},condition:{urlFilter:"https://s*.toonilycdnv2.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:309,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://readcomiconline.li"}]},condition:{urlFilter:"https://*.whatsnew*.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:310,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://yymanhua.com"}]},condition:{urlFilter:"https://image.yymanhua.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:311,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://klz9.com"}]},condition:{urlFilter:"https://h1.klimv1.xyz/images*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:312,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://manhwato.com"}]},condition:{urlFilter:"https://stcdn.manhwato.com/images/manga/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}}];var X4="https://www.google-analytics.com/mp/collect",eh=30,th=100;async function ah(){let{sessionData:e}=await f.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>eh?e=null:(e.timestamp=t,await f.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await f.storage.session.set({sessionData:e})),e.session_id}function Ol(e){ho().forEach(({measurementId:t,apiSecret:a})=>{Nl({measurement_id:t,api_secret:a,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Sa(e,t,a){return Nl({measurement_id:po,api_secret:go,page_title:e,page_location:t,time:a})}async function Nl(e){try{let t=se(),a=Xt(),n=t.INSTALL_FROM==="firefox_store";if(a?.name?.startsWith("ImtFx")&&(n=!1),n)return;let{fakeUserId:r}=await ea(),i=`${X4}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,u={method:"POST",body:JSON.stringify({client_id:r,events:[{name:"page_view",params:{session_id:await ah(),engagement_time_msec:e.time||th,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,u)}catch(t){B.error(t)}}var _t=new Map;function ql(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function Qn(e){let t=await zl(),a=Date.now();if(t){if(_t.has(e))return;let n=await f.tabs.get(e),r=ql(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Li(e)}async function Ul(e){let t=await zl(),a=Date.now();for(let[n,r]of _t)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t){if(_t.has(e)){let i=_t.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=ql(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Li(e){if(_t.has(e)){let t=_t.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),_t.delete(e),rh(t.hostname,a)}}async function nh(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function rh(e,t){Sa(`${e}(video)`,e,t),ih(t)}var Jn="videoWatchTimeDay";async function ih(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Ie(Jn,null);if(!r){await ve(Jn,{day:n,time:e});return}if(r.day!==n){Sa("day-video."+Be,"day-video."+Be,r.time),await ve(Jn,{day:n,time:e});return}let i={day:n,time:r.time+e};await ve(Jn,i)}catch(t){B.error(t)}}async function zl(){try{return await nh({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Mi=(e,t,a,n)=>{let r=vo[e]||e,i=yo[e]||e,u=xo[e],o=wo[e],s={"zh-CN":u,"zh-TW":o,en:i};if(a)return s[e]?s[e]:i;let l=e!==t&&r!=="All Languages";if(s[t]){let c=s[t];return n||e==="auto"||e==="placeholder"?c:l?`${c} (${r})`:`${c}`}else return l?`${i} (${r})`:i};function uh(){return navigator.userAgent.indexOf("Mac")!==-1}var Gl={Alt:"\u2325"};function Ii(e=""){return uh()?Object.keys(Gl).reduce((t,a)=>t.replace(a,Gl[a]),e):e}function oh(e,t){let a=e.generalRule.imageRule.enableImageTranslation,n=e.beta;return a=="all"||a=="beta"&&n||a=="pro"&&t||a=="pro_beta"&&n&&t?!0:a?!1:n&&!!t}async function ji(){if(ke())return!1;let e=await Oe(),t=await Ao();return oh(e,t)}function sh(){return Kr()&&!ot()}var $a=sh()?["action"]:["browser_action","page_action"],Ya="",Hl=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...$a]},{id:Yt,contexts:["image"]},{id:jr,contexts:$a},{id:Nr,contexts:$a},{id:qr,contexts:$a},{id:Or,contexts:$a}];async function Oi(e){B.debug("createContextMenu",Hl);for(let t of Hl){let a=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(a=!1);try{let n=je(e.interfaceLanguage,`browser.${t.id}`);if(t.id===Yt&&(a=await ji()),t.id==="toggleTranslatePage"){n=je(e.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e.targetLanguage,e.interfaceLanguage,!1,!0)});let r=Ii(e.shortcuts.toggleTranslatePage);r&&(n+=`(${r})`)}f.contextMenus.create({id:t.id,title:n,contexts:t.contexts,visible:a},()=>f.runtime.lastError)}catch(n){B.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}async function Ja({targetLanguage:e,text:t}){let a=await Oe(),n="toggleTranslatePage",r=!0;a.isShowContextMenu===!1&&n==="toggleTranslatePage"&&(r=!1);let i;if(t)Ya=t,i=je(a.interfaceLanguage,"browser.translateText",{text:t});else{let u=await Xn(),o=u&&u!=="Original";i=je(a.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e??a.targetLanguage,a.interfaceLanguage,!1,!0)}),o&&(i=`${je(a.interfaceLanguage,"show-original")}`);let s=Ii(a.shortcuts.toggleTranslatePage);s&&(i+=`(${s})`),Ya=""}f.contextMenus.update(n,{title:i,visible:r})}function Wl(){f.contextMenus.onClicked.addListener(async e=>{if(e.menuItemId===jr)f.runtime.openOptionsPage();else if(e.menuItemId===Or){let t=_l();f.tabs.create({url:t})}else if(e.menuItemId===qr){let a=se().EBOOK_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Nr){let a=se().EBOOK_VIEWER_URL;f.tabs.create({url:a})}else if(e.menuItemId===to){let a=se().SUBTITLE_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Yt)Za({method:e.menuItemId,data:{srcUrl:e.srcUrl,trigger:"right_menu"}});else{if(e.selectionText&&e.editable){Za({method:"inputSelectedTextTranslate",data:{text:Ya,trigger:"right_menu"}});return}if(e.selectionText&&Ya){let t=se(),a=await Oe(),n=encodeURIComponent(Ya),r=`${t.TEXT_TRANSLATE_URL}#auto/${a.targetLanguage}/${n}`;f.tabs.create({url:r}),lh([{name:"translate_select_text",params:{trigger:"right_menu",targetLanguage:a.targetLanguage}}]);return}Za({method:e.menuItemId,data:{trigger:"right_menu"}})}})}async function lh(e){try{let t=Tn(),a=se(),n=Xt(),r=a.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:i}=await ea(),u={method:"POST",body:JSON.stringify({client_id:i,user_id:i,events:e})};t.forEach(o=>{fetch(o,u)})}catch(t){B.error(t)}}async function Kl(){try{let e=await ji();f.contextMenus.update(Yt,{visible:e})}catch{}}function Vl(){f.tabs.onActivated.addListener(function(e){Ja({}),ch(e.tabId),Ul(e.tabId)}),f.tabs.onRemoved.addListener(function(e){Yl(e),Li(e)}),f.tabs.onUpdated.addListener(function(e){Ni(e),Qn(e)})}var Ft=new Map;async function Ni(e){let t=await Xn(),a=Date.now();if(t=="Translated"){if(Ft.has(e))return;let n=await f.tabs.get(e),r=$l(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Yl(e)}function $l(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function ch(e){let t=await Xn(),a=Date.now();for(let[n,r]of Ft)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t=="Translated"){if(Ft.has(e)){let i=Ft.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=$l(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Yl(e){if(Ft.has(e)){let t=Ft.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),Ft.delete(e),mh(t.hostname,a)}}async function dh(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function mh(e,t){Sa(e,e,t),ph(t)}async function Xn(){try{return await dh({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var er="readTimeDay";async function ph(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Ie(er,null);if(!r){await ve(er,{day:n,time:e});return}if(r.day!==n){Sa("day."+Be,"day."+Be,r.time),await ve(er,{day:n,time:e});return}let i={day:n,time:r.time+e};await ve(er,i)}catch(t){B.error(t)}}var tr,gh=async function(e,t){let{method:a,data:n}=e;if(B.debug("background received message",a,n||" "),a==="mock")await Bt(150);else{if(a==="queryParagraphCache")return ei(n);if(a==="setParagraphCache")return Xr(n);if(a==="calculateSize")return No();if(a==="fetch")return ya(n);if(a==="getConfig")return Oe();if(a==="getLocalConfig")return Jt();if(a==="openOptionsPage"){let r="";n&&n.pageRoute&&(r=n.pageRoute);let i=f.runtime.getURL("options.html");f.tabs.create({url:i+r})}else if(a==="openAboutPage")f.tabs.create({url:f.runtime.getURL("options.html#about")});else if(a==="openInTab")n&&f.tabs.create({url:n});else if(a==="openEbookViewerPage"){let i=se().EBOOK_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openSubtitleBuilderPage"){let i=se().SUBTITLE_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openEbookBuilderPage"){let i=se().EBOOK_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openHtmlViewerPage"){let i=se().HTML_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openPdfViewerPage"){let r=n?.url,i=Vn(r);(ot()||!r)&&(i=se().PDF_VIEWER_URL),f.tabs.create({url:i})}else{if(a==="setLocalConfig")return Ut(n);if(a=="getUserConfig")return zt();if(a=="setUserConfig")return xt(n);if(a==="detectLanguage"){let{text:r,pageLangs:i}=n;if(f.i18n&&f.i18n.detectLanguage)try{let u=await Zl(f.i18n.detectLanguage(r),1500,{isReliable:!1,languages:[]});if(u.languages.length>0){if(u.isReliable)return Ot(u.languages[0].language);for(let o of u.languages){let s=Ot(o.language);if(i.includes(s)&&o.percentage>50)return s}}return"auto"}catch(u){return B.debug("detect language error",u),"auto"}else return"auto"}else if(a==="detectTabLanguage")try{let r=await Zl(f.tabs.detectLanguage(t.id),1500,"auto");return Ot(r)}catch(r){return B.debug("detect tab language error, use auto ",r),"auto"}else if(a==="autoSyncLatestConfig"){try{await Il()}catch(r){B.debug("auto sync latest config error",r)}return""}else if(a!=="updateCommands")if(a==="setBadge"){let r=t.id,i=n&&n.text?n.text:"";r&&(Ja({}),hh(r,i)),r&&Ni(r)}else if(a=="getDelay"){let{key:r,options:i}=n||{};return Ua.getDelay(r,i,!0)}else if(a==="getIsSupportIsOnToolbar")try{return f?.action?.getUserSettings?(await f.action.getUserSettings(),!0):!1}catch{return!1}else if(a==="getIsOnToolbar")try{return(await f.action.getUserSettings()).isOnToolbar}catch{return!1}else if(a=="reportOptionsPageView")Ol(n);else if(a==="updateVideoSubtitleStatus"){let r=t.id;r&&Qn(r)}else a==="updateToggleTranslateContextMenu"?Ja(n):a==="updateImageMenu"&&Kl()}}};function Jl(){na();let e=f.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&f.webRequest&&f.webRequest.onBeforeSendHeaders){let t=Zn.map(n=>n.condition.urlFilter),a=Zn.reduce((n,r)=>(r.condition.resourceTypes.forEach(i=>{n.includes(i)||n.push(i)}),n),[]);f.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let r=0;r{let i=setTimeout(()=>{n(a)},t);e.then(u=>{clearTimeout(i),n(u)}).catch(u=>{clearTimeout(i),r(u)})})}function Ql(){typeof f.commands<"u"&&f.commands.onCommand.addListener(async e=>{if(B.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await f.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Fl(n)){f.tabs.create({url:Vn(n)});return}}await Za({method:e,data:{trigger:"shortcut"}})})}async function Za(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;na().sendMessage(`content_script:main:${a}`,e).catch(r=>{B.error("send content message request failed",e,r)})}function nr(){Oe().then(e=>{e.uninstallUrl&&f.runtime.setUninstallURL&&f.runtime.setUninstallURL(e.uninstallUrl),qi(e)}).catch(e=>{B.error("create menu error",e)})}function qi(e){e?Oi(e):Oe().then(t=>{Oi(t)}).catch(t=>{B.error("create menu error",t)})}function Xl(){f.runtime.onInstalled.addListener(e=>{B.debug(`onInstalled reason: ${e.reason}`),B.debug(e),e.reason=="install"?(async()=>{let t=Pa,n=f.runtime.getURL("").startsWith("safari"),r=!1,i=!1;try{let c=await f.runtime.getPlatformInfo();if(n)c.os==="mac"?r=!0:c.os==="ios"&&(i=!0);else if(c.os==="android"){if(Rn()){let d=di();if(d&&aa(d,"1.0.2")){nr();return}}t=Pa+"mobile/"}}catch{}r?t=Pa+"safari/step-1/":i&&(t=Pa+"ios/step-2/");let u=await Ie("onboardingDisplayTime",""),o=await Ka(),s=await Qt(),l=new URL(t);l.searchParams.set("t",o),l.searchParams.set("v",s),n?u||(await ve("onboardingDisplayTime",new Date().toISOString()),f.tabs.create({url:l.toString()})):f.tabs.create({url:l.toString()}),nr()})():(e.reason=="update"&&f.runtime.getManifest().version!=e.previousVersion,nr())})}var bh=ki(null);async function vh(e,t,a){a=a||await oi();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&e0(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&e0(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await zt();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Vo(a),await xt(i)}catch{return!1}return r}async function xh(e,t){(await Promise.allSettled(e.map(n=>qt({url:`${b.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&vh("add",r,t)}})}async function wh(e,t,a=!0){e||(e=await Oe()),t||(t=await oi());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await Dh();i=await Th(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&xh(u,t)}var Eh=Aa(wh,1500);function e0(e){return aa(li(),e.extensionVersion)}function Sh(e,t){return t?!aa(e.version,t):!1}function Th(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{Sh(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function Dh(){return(await qt({url:`${b.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var Ah=1e3*3600*24;async function t0(e){try{let t=e?.cacheCleanIntervalDay??1,a=e?.cacheMaxAgeDay??30,n=new Date,r=await f.storage.local.get(null),i=r[wn],u=r[Ur];if(u||(u=n.getTime(),await f.storage.local.set({[Ur]:u})),i||(i=n.getTime(),await f.storage.local.set({[wn]:i})),n.getTime()-i>=t*Ah){let o=await qo(a,u);await f.storage.local.set({[wn]:n.getTime()})}}catch{}}async function a0(){try{if(ke())return;let e=f.runtime.getURL("locales.json"),a=await(await fetch(e)).json();Object.assign(Gt,a)}catch{}}Jl();Xl();Ql();f.contextMenus&&Wl();async function Ch(){await a0(),f.contextMenus&&qi();let e=await Oe();if(t0(e),e.joinJobs){let t=bo.replace("{jobs}",e.joinJobs.map(a=>` \u2022 ${a}`).join(` `))}Vl(),e.debug&&B.setLevel("debug")}Ch().catch(e=>{});})(); /*! Bundled license information: diff --git a/dist/chrome/content_script.js b/dist/chrome/content_script.js index cde0b96..a699940 100644 --- a/dist/chrome/content_script.js +++ b/dist/chrome/content_script.js @@ -1,4 +1,4 @@ -(()=>{var $C=Object.defineProperty;var ew=(e,t)=>{for(var n in t)$C(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var XC=Object.defineProperty;var $C=(e,t)=>{for(var n in t)XC(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,7 +5447,7 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var nw=Object.create,tm=Object.defineProperty,rw=Object.getOwnPropertyDescriptor,q4=Object.getOwnPropertyNames,aw=Object.getPrototypeOf,iw=Object.prototype.hasOwnProperty,ow=(e,t)=>function(){return t||(0,e[q4(e)[0]])((t={exports:{}}).exports,t),t.exports},sw=(e,t)=>{for(var n in t)tm(e,n,{get:t[n],enumerable:!0})},em=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of q4(t))!iw.call(e,a)&&a!==n&&tm(e,a,{get:()=>t[a],enumerable:!(r=rw(t,a))||r.enumerable});return e},uw=(e,t,n)=>(em(e,t,"default"),n&&em(n,t,"default")),z4=(e,t,n)=>(n=e!=null?nw(aw(e)):{},em(t||!e||!e.__esModule?tm(n,"default",{value:e,enumerable:!0}):n,e)),W4=ow({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(T,A=void 0){super(A),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,T)=>(...A)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):T.singleCallbackArg||A.length<=1&&T.singleCallbackArg!==!1?C.resolve(A[0]):C.resolve(A)},c=C=>C==1?"argument":"arguments",d=(C,T)=>function(D,...I){if(I.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${I.length}`);return new Promise((F,R)=>{if(T.fallbackToNoCallback)try{D[C](...I,l({resolve:F,reject:R},T))}catch{D[C](...I),T.fallbackToNoCallback=!1,T.noCallback=!0,F()}else T.noCallback?(D[C](...I),F()):D[C](...I,l({resolve:F,reject:R},T))})},m=(C,T,A)=>new Proxy(T,{apply(D,I,F){return A.call(I,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,T={},A={})=>{let D=Object.create(null),I={has(R,B){return B in C||B in D},get(R,B,L){if(B in D)return D[B];if(!(B in C))return;let _=C[B];if(typeof _=="function")if(typeof T[B]=="function")_=m(C,C[B],T[B]);else if(p(A,B)){let O=d(B,A[B]);_=m(C,C[B],O)}else _=_.bind(C);else if(typeof _=="object"&&_!==null&&(p(T,B)||p(A,B)))_=g(_,T[B],A[B]);else if(p(A,"*"))_=g(_,T[B],A["*"]);else return Object.defineProperty(D,B,{configurable:!0,enumerable:!0,get(){return C[B]},set(O){C[B]=O}}),_;return D[B]=_,_},set(R,B,L,_){return B in D?D[B]=L:C[B]=L,!0},defineProperty(R,B,L){return Reflect.defineProperty(D,B,L)},deleteProperty(R,B){return Reflect.deleteProperty(D,B)}},F=Object.create(C);return new Proxy(F,I)},h=C=>({addListener(T,A,...D){T.addListener(C.get(A),...D)},hasListener(T,A){return T.hasListener(C.get(A))},removeListener(T,A){T.removeListener(C.get(A))}}),b=new s(C=>typeof C!="function"?C:function(A){let D=g(A,{},{getContent:{minArgs:0,maxArgs:0}});C(D)}),f=new s(C=>typeof C!="function"?C:function(A,D,I){let F=!1,R,B=new Promise(z=>{R=function(V){F=!0,z(V)}}),L;try{L=C(A,D,R)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!F)return!1;let O=z=>{z.then(V=>{I(V)},V=>{let ie;V&&(V instanceof Error||typeof V.message=="string")?ie=V.message:ie="An unexpected error occurred",I({__mozWebExtensionPolyfillReject__:!0,message:ie})}).catch(V=>{})};return O(_?L:B),!0}),y=({reject:C,resolve:T},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?T():C(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?C(new Error(A.message)):T(A)},v=(C,T,A,...D)=>{if(D.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${D.length}`);return new Promise((I,F)=>{let R=y.bind(null,{resolve:I,reject:F});D.push(R),A.sendMessage(...D)})},S={devtools:{network:{onRequestFinished:h(b)}},runtime:{onMessage:h(f),onMessageExternal:h(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),G4={};sw(G4,{default:()=>gl});var lw=z4(W4());uw(G4,z4(W4()));var{default:H4,...cw}=lw,gl=H4!==void 0?H4:cw;globalThis.immersiveTranslateBrowserAPI=gl;var dw=` +}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var tw=Object.create,em=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,U4=Object.getOwnPropertyNames,rw=Object.getPrototypeOf,aw=Object.prototype.hasOwnProperty,iw=(e,t)=>function(){return t||(0,e[U4(e)[0]])((t={exports:{}}).exports,t),t.exports},ow=(e,t)=>{for(var n in t)em(e,n,{get:t[n],enumerable:!0})},$d=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of U4(t))!aw.call(e,a)&&a!==n&&em(e,a,{get:()=>t[a],enumerable:!(r=nw(t,a))||r.enumerable});return e},sw=(e,t,n)=>($d(e,t,"default"),n&&$d(n,t,"default")),H4=(e,t,n)=>(n=e!=null?tw(rw(e)):{},$d(t||!e||!e.__esModule?em(n,"default",{value:e,enumerable:!0}):n,e)),q4=iw({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(T,A=void 0){super(A),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,T)=>(...A)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):T.singleCallbackArg||A.length<=1&&T.singleCallbackArg!==!1?C.resolve(A[0]):C.resolve(A)},c=C=>C==1?"argument":"arguments",d=(C,T)=>function(D,...I){if(I.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${I.length}`);return new Promise((F,R)=>{if(T.fallbackToNoCallback)try{D[C](...I,l({resolve:F,reject:R},T))}catch{D[C](...I),T.fallbackToNoCallback=!1,T.noCallback=!0,F()}else T.noCallback?(D[C](...I),F()):D[C](...I,l({resolve:F,reject:R},T))})},m=(C,T,A)=>new Proxy(T,{apply(D,I,F){return A.call(I,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,T={},A={})=>{let D=Object.create(null),I={has(R,B){return B in C||B in D},get(R,B,P){if(B in D)return D[B];if(!(B in C))return;let _=C[B];if(typeof _=="function")if(typeof T[B]=="function")_=m(C,C[B],T[B]);else if(p(A,B)){let O=d(B,A[B]);_=m(C,C[B],O)}else _=_.bind(C);else if(typeof _=="object"&&_!==null&&(p(T,B)||p(A,B)))_=g(_,T[B],A[B]);else if(p(A,"*"))_=g(_,T[B],A["*"]);else return Object.defineProperty(D,B,{configurable:!0,enumerable:!0,get(){return C[B]},set(O){C[B]=O}}),_;return D[B]=_,_},set(R,B,P,_){return B in D?D[B]=P:C[B]=P,!0},defineProperty(R,B,P){return Reflect.defineProperty(D,B,P)},deleteProperty(R,B){return Reflect.deleteProperty(D,B)}},F=Object.create(C);return new Proxy(F,I)},b=C=>({addListener(T,A,...D){T.addListener(C.get(A),...D)},hasListener(T,A){return T.hasListener(C.get(A))},removeListener(T,A){T.removeListener(C.get(A))}}),h=new s(C=>typeof C!="function"?C:function(A){let D=g(A,{},{getContent:{minArgs:0,maxArgs:0}});C(D)}),f=new s(C=>typeof C!="function"?C:function(A,D,I){let F=!1,R,B=new Promise(z=>{R=function(V){F=!0,z(V)}}),P;try{P=C(A,D,R)}catch(z){P=Promise.reject(z)}let _=P!==!0&&u(P);if(P!==!0&&!_&&!F)return!1;let O=z=>{z.then(V=>{I(V)},V=>{let ie;V&&(V instanceof Error||typeof V.message=="string")?ie=V.message:ie="An unexpected error occurred",I({__mozWebExtensionPolyfillReject__:!0,message:ie})}).catch(V=>{})};return O(_?P:B),!0}),y=({reject:C,resolve:T},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?T():C(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?C(new Error(A.message)):T(A)},v=(C,T,A,...D)=>{if(D.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${D.length}`);return new Promise((I,F)=>{let R=y.bind(null,{resolve:I,reject:F});D.push(R),A.sendMessage(...D)})},S={devtools:{network:{onRequestFinished:b(h)}},runtime:{onMessage:b(f),onMessageExternal:b(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),z4={};ow(z4,{default:()=>pl});var uw=H4(q4());sw(z4,H4(q4()));var{default:j4,...lw}=uw,pl=j4!==void 0?j4:lw;globalThis.immersiveTranslateBrowserAPI=pl;var cw=` .toastify { padding: 12px 20px; color: #ffffff; @@ -5530,23 +5530,23 @@ select.text-gray-6 { max-width: fit-content; } } -`,nm="immersive-translate-toastify-shadow-root",rm=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(nm)){let t=document.getElementById(nm);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=nm,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=dw,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function fl(e){e=e||{},new rm({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var le=ke();function te(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):le.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function ua(){return le.PROD==="1"}function am(){return le.PROD_API==="1"}function V4(){return le.HAS_CSP_ERROR=="1"}function it(){if(le.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function hl(){return typeof Deno<"u"}var zN=ke().PROD==="1",Xi=ke().PROD!=="1";function bl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function yl(){return le.IMMERSIVE_TRANSLATE_JSSDK==="1"}function $i(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var im=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function xl(e,t){let n=$i(),r=setTimeout(()=>n.reject(new im),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function st(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var K4=class{#e=0;#t=[];#n=[];#r=$i();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tNw,bgBlue:()=>qw,bgBrightBlack:()=>Vw,bgBrightBlue:()=>Jw,bgBrightCyan:()=>Xw,bgBrightGreen:()=>Yw,bgBrightMagenta:()=>Zw,bgBrightRed:()=>Kw,bgBrightWhite:()=>$w,bgBrightYellow:()=>Qw,bgCyan:()=>Ww,bgGreen:()=>Uw,bgMagenta:()=>zw,bgRed:()=>jw,bgRgb24:()=>rE,bgRgb8:()=>tE,bgWhite:()=>Gw,bgYellow:()=>Hw,black:()=>Tw,blue:()=>Aw,bold:()=>fw,brightBlack:()=>J4,brightBlue:()=>Fw,brightCyan:()=>_w,brightGreen:()=>Rw,brightMagenta:()=>Bw,brightRed:()=>Mw,brightWhite:()=>Ow,brightYellow:()=>Iw,cyan:()=>Dw,dim:()=>hw,getColorEnabled:()=>pw,gray:()=>Pw,green:()=>ww,hidden:()=>vw,inverse:()=>xw,italic:()=>bw,magenta:()=>kw,red:()=>Cw,reset:()=>gw,rgb24:()=>nE,rgb8:()=>eE,setColorEnabled:()=>mw,strikethrough:()=>Sw,stripColor:()=>iE,underline:()=>yw,white:()=>Lw,yellow:()=>Ew});var{Deno:Y4}=globalThis,Q4=typeof Y4?.noColor=="boolean"?Y4.noColor:!0,om=!Q4;function mw(e){Q4||(om=e)}function pw(){return om}function Pe(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Me(e,t){return om?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function gw(e){return Me(e,Pe([0],0))}function fw(e){return Me(e,Pe([1],22))}function hw(e){return Me(e,Pe([2],22))}function bw(e){return Me(e,Pe([3],23))}function yw(e){return Me(e,Pe([4],24))}function xw(e){return Me(e,Pe([7],27))}function vw(e){return Me(e,Pe([8],28))}function Sw(e){return Me(e,Pe([9],29))}function Tw(e){return Me(e,Pe([30],39))}function Cw(e){return Me(e,Pe([31],39))}function ww(e){return Me(e,Pe([32],39))}function Ew(e){return Me(e,Pe([33],39))}function Aw(e){return Me(e,Pe([34],39))}function kw(e){return Me(e,Pe([35],39))}function Dw(e){return Me(e,Pe([36],39))}function Lw(e){return Me(e,Pe([37],39))}function Pw(e){return J4(e)}function J4(e){return Me(e,Pe([90],39))}function Mw(e){return Me(e,Pe([91],39))}function Rw(e){return Me(e,Pe([92],39))}function Iw(e){return Me(e,Pe([93],39))}function Fw(e){return Me(e,Pe([94],39))}function Bw(e){return Me(e,Pe([95],39))}function _w(e){return Me(e,Pe([96],39))}function Ow(e){return Me(e,Pe([97],39))}function Nw(e){return Me(e,Pe([40],49))}function jw(e){return Me(e,Pe([41],49))}function Uw(e){return Me(e,Pe([42],49))}function Hw(e){return Me(e,Pe([43],49))}function qw(e){return Me(e,Pe([44],49))}function zw(e){return Me(e,Pe([45],49))}function Ww(e){return Me(e,Pe([46],49))}function Gw(e){return Me(e,Pe([47],49))}function Vw(e){return Me(e,Pe([100],49))}function Kw(e){return Me(e,Pe([101],49))}function Yw(e){return Me(e,Pe([102],49))}function Qw(e){return Me(e,Pe([103],49))}function Jw(e){return Me(e,Pe([104],49))}function Zw(e){return Me(e,Pe([105],49))}function Xw(e){return Me(e,Pe([106],49))}function $w(e){return Me(e,Pe([107],49))}function Pa(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function eE(e,t){return Me(e,Pe([38,5,Pa(t)],39))}function tE(e,t){return Me(e,Pe([48,5,Pa(t)],49))}function nE(e,t){return typeof t=="number"?Me(e,Pe([38,2,t>>16&255,t>>8&255,t&255],39)):Me(e,Pe([38,2,Pa(t.r),Pa(t.g),Pa(t.b)],39))}function rE(e,t){return typeof t=="number"?Me(e,Pe([48,2,t>>16&255,t>>8&255,t&255],49)):Me(e,Pe([48,2,Pa(t.r),Pa(t.g),Pa(t.b)],49))}var aE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function iE(e){return e.replace(aE,"")}var sm=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},oE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function um(e,t){let n={...oE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new sm(a,n.maxAttempts)}var la=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Ts(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=la[(t[r-2]&3)<<4|t[r-1]>>4],n+=la[(t[r-1]&15)<<2|t[r]>>6],n+=la[t[r]&63];return r===a+1&&(n+=la[t[r-2]>>2],n+=la[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=la[t[r-2]>>2],n+=la[(t[r-2]&3)<<4|t[r-1]>>4],n+=la[(t[r-1]&15)<<2],n+="="),n}var sE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,uE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,lE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,lm={Space_Separator:sE,ID_Start:uE,ID_Continue:lE},Bt={isSpaceSeparator(e){return typeof e=="string"&&lm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||lm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||lm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},dm,Pn,da,Sl,Ma,hr,en,gm,ws,cE=function(e,t){dm=String(e),Pn="start",da=[],Sl=0,Ma=1,hr=0,en=void 0,gm=void 0,ws=void 0;do en=dE(),gE[Pn]();while(en.type!=="eof");return typeof t=="function"?mm({"":ws},"",t):ws};function mm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ma();if(!Bt.isHexDigit(n))throw bt(U());e+=U()}return String.fromCodePoint(parseInt(e,16))}var gE={start(){if(en.type==="eof")throw yi();cm()},beforePropertyName(){switch(en.type){case"identifier":case"string":gm=en.value,Pn="afterPropertyName";return;case"punctuator":vl();return;case"eof":throw yi()}},afterPropertyName(){if(en.type==="eof")throw yi();Pn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw yi();cm()},beforeArrayValue(){if(en.type==="eof")throw yi();if(en.type==="punctuator"&&en.value==="]"){vl();return}cm()},afterPropertyValue(){if(en.type==="eof")throw yi();switch(en.value){case",":Pn="beforePropertyName";return;case"}":vl()}},afterArrayValue(){if(en.type==="eof")throw yi();switch(en.value){case",":Pn="beforeArrayValue";return;case"]":vl()}},end(){}};function cm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(ws===void 0)ws=e;else{let t=da[da.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,gm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")da.push(e),Array.isArray(e)?Pn="beforeArrayValue":Pn="beforePropertyName";else{let t=da[da.length-1];t==null?Pn="end":Array.isArray(t)?Pn="afterArrayValue":Pn="afterPropertyValue"}}function vl(){da.pop();let e=da[da.length-1];e==null?Pn="end":Array.isArray(e)?Pn="afterArrayValue":Pn="afterPropertyValue"}function bt(e){return fm(e===void 0?`JSON5: invalid end of input at ${Ma}:${hr}`:`JSON5: invalid character '${fE(e)}' at ${Ma}:${hr}`)}function yi(){return fm(`JSON5: invalid end of input at ${Ma}:${hr}`)}function Z4(){return hr-=5,fm(`JSON5: invalid identifier character at ${Ma}:${hr}`)}function fE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function fm(e){let t=new SyntaxError(e);return t.lineNumber=Ma,t.columnNumber=hr,t}var hE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vh[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let v of b){let S=l(v,g);if(S!==void 0){let w=m(v)+":";s!==""&&(w+=" "),w+=S,f.push(w)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let S=`, +`,tm="immersive-translate-toastify-shadow-root",nm=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(tm)){let t=document.getElementById(tm);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=tm,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=cw,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function gl(e){e=e||{},new nm({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var le=ke();function te(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):le.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function oa(){return le.PROD==="1"}function rm(){return le.PROD_API==="1"}function W4(){return le.HAS_CSP_ERROR=="1"}function it(){if(le.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function fl(){return typeof Deno<"u"}var WN=ke().PROD==="1",Xi=ke().PROD!=="1";function hl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function bl(){return le.IMMERSIVE_TRANSLATE_JSSDK==="1"}function $i(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var am=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function yl(e,t){let n=$i(),r=setTimeout(()=>n.reject(new am),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function ot(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var G4=class{#e=0;#t=[];#n=[];#r=$i();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tOw,bgBlue:()=>Hw,bgBrightBlack:()=>Gw,bgBrightBlue:()=>Qw,bgBrightCyan:()=>Zw,bgBrightGreen:()=>Kw,bgBrightMagenta:()=>Jw,bgBrightRed:()=>Vw,bgBrightWhite:()=>Xw,bgBrightYellow:()=>Yw,bgCyan:()=>zw,bgGreen:()=>jw,bgMagenta:()=>qw,bgRed:()=>Nw,bgRgb24:()=>nE,bgRgb8:()=>eE,bgWhite:()=>Ww,bgYellow:()=>Uw,black:()=>Sw,blue:()=>Ew,bold:()=>gw,brightBlack:()=>Y4,brightBlue:()=>Iw,brightCyan:()=>Bw,brightGreen:()=>Mw,brightMagenta:()=>Fw,brightRed:()=>Pw,brightWhite:()=>_w,brightYellow:()=>Rw,cyan:()=>kw,dim:()=>fw,getColorEnabled:()=>mw,gray:()=>Lw,green:()=>Cw,hidden:()=>xw,inverse:()=>yw,italic:()=>hw,magenta:()=>Aw,red:()=>Tw,reset:()=>pw,rgb24:()=>tE,rgb8:()=>$w,setColorEnabled:()=>dw,strikethrough:()=>vw,stripColor:()=>aE,underline:()=>bw,white:()=>Dw,yellow:()=>ww});var{Deno:V4}=globalThis,K4=typeof V4?.noColor=="boolean"?V4.noColor:!0,im=!K4;function dw(e){K4||(im=e)}function mw(){return im}function Pe(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Me(e,t){return im?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function pw(e){return Me(e,Pe([0],0))}function gw(e){return Me(e,Pe([1],22))}function fw(e){return Me(e,Pe([2],22))}function hw(e){return Me(e,Pe([3],23))}function bw(e){return Me(e,Pe([4],24))}function yw(e){return Me(e,Pe([7],27))}function xw(e){return Me(e,Pe([8],28))}function vw(e){return Me(e,Pe([9],29))}function Sw(e){return Me(e,Pe([30],39))}function Tw(e){return Me(e,Pe([31],39))}function Cw(e){return Me(e,Pe([32],39))}function ww(e){return Me(e,Pe([33],39))}function Ew(e){return Me(e,Pe([34],39))}function Aw(e){return Me(e,Pe([35],39))}function kw(e){return Me(e,Pe([36],39))}function Dw(e){return Me(e,Pe([37],39))}function Lw(e){return Y4(e)}function Y4(e){return Me(e,Pe([90],39))}function Pw(e){return Me(e,Pe([91],39))}function Mw(e){return Me(e,Pe([92],39))}function Rw(e){return Me(e,Pe([93],39))}function Iw(e){return Me(e,Pe([94],39))}function Fw(e){return Me(e,Pe([95],39))}function Bw(e){return Me(e,Pe([96],39))}function _w(e){return Me(e,Pe([97],39))}function Ow(e){return Me(e,Pe([40],49))}function Nw(e){return Me(e,Pe([41],49))}function jw(e){return Me(e,Pe([42],49))}function Uw(e){return Me(e,Pe([43],49))}function Hw(e){return Me(e,Pe([44],49))}function qw(e){return Me(e,Pe([45],49))}function zw(e){return Me(e,Pe([46],49))}function Ww(e){return Me(e,Pe([47],49))}function Gw(e){return Me(e,Pe([100],49))}function Vw(e){return Me(e,Pe([101],49))}function Kw(e){return Me(e,Pe([102],49))}function Yw(e){return Me(e,Pe([103],49))}function Qw(e){return Me(e,Pe([104],49))}function Jw(e){return Me(e,Pe([105],49))}function Zw(e){return Me(e,Pe([106],49))}function Xw(e){return Me(e,Pe([107],49))}function La(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function $w(e,t){return Me(e,Pe([38,5,La(t)],39))}function eE(e,t){return Me(e,Pe([48,5,La(t)],49))}function tE(e,t){return typeof t=="number"?Me(e,Pe([38,2,t>>16&255,t>>8&255,t&255],39)):Me(e,Pe([38,2,La(t.r),La(t.g),La(t.b)],39))}function nE(e,t){return typeof t=="number"?Me(e,Pe([48,2,t>>16&255,t>>8&255,t&255],49)):Me(e,Pe([48,2,La(t.r),La(t.g),La(t.b)],49))}var rE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function aE(e){return e.replace(rE,"")}var om=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},iE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function sm(e,t){let n={...iE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new om(a,n.maxAttempts)}var sa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Ts(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=sa[(t[r-2]&3)<<4|t[r-1]>>4],n+=sa[(t[r-1]&15)<<2|t[r]>>6],n+=sa[t[r]&63];return r===a+1&&(n+=sa[t[r-2]>>2],n+=sa[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=sa[t[r-2]>>2],n+=sa[(t[r-2]&3)<<4|t[r-1]>>4],n+=sa[(t[r-1]&15)<<2],n+="="),n}var oE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,sE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,uE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,um={Space_Separator:oE,ID_Start:sE,ID_Continue:uE},Bt={isSpaceSeparator(e){return typeof e=="string"&&um.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||um.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||um.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},cm,Ln,la,vl,Pa,hr,en,pm,ws,lE=function(e,t){cm=String(e),Ln="start",la=[],vl=0,Pa=1,hr=0,en=void 0,pm=void 0,ws=void 0;do en=cE(),pE[Ln]();while(en.type!=="eof");return typeof t=="function"?dm({"":ws},"",t):ws};function dm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ca();if(!Bt.isHexDigit(n))throw bt(U());e+=U()}return String.fromCodePoint(parseInt(e,16))}var pE={start(){if(en.type==="eof")throw bi();lm()},beforePropertyName(){switch(en.type){case"identifier":case"string":pm=en.value,Ln="afterPropertyName";return;case"punctuator":xl();return;case"eof":throw bi()}},afterPropertyName(){if(en.type==="eof")throw bi();Ln="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw bi();lm()},beforeArrayValue(){if(en.type==="eof")throw bi();if(en.type==="punctuator"&&en.value==="]"){xl();return}lm()},afterPropertyValue(){if(en.type==="eof")throw bi();switch(en.value){case",":Ln="beforePropertyName";return;case"}":xl()}},afterArrayValue(){if(en.type==="eof")throw bi();switch(en.value){case",":Ln="beforeArrayValue";return;case"]":xl()}},end(){}};function lm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(ws===void 0)ws=e;else{let t=la[la.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,pm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")la.push(e),Array.isArray(e)?Ln="beforeArrayValue":Ln="beforePropertyName";else{let t=la[la.length-1];t==null?Ln="end":Array.isArray(t)?Ln="afterArrayValue":Ln="afterPropertyValue"}}function xl(){la.pop();let e=la[la.length-1];e==null?Ln="end":Array.isArray(e)?Ln="afterArrayValue":Ln="afterPropertyValue"}function bt(e){return gm(e===void 0?`JSON5: invalid end of input at ${Pa}:${hr}`:`JSON5: invalid character '${gE(e)}' at ${Pa}:${hr}`)}function bi(){return gm(`JSON5: invalid end of input at ${Pa}:${hr}`)}function Q4(){return hr-=5,gm(`JSON5: invalid identifier character at ${Pa}:${hr}`)}function gE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function gm(e){let t=new SyntaxError(e);return t.lineNumber=Pa,t.columnNumber=hr,t}var fE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let b;typeof g=="string"?b=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(b=String(g)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,b){let h=b[g];switch(h!=null&&(typeof h.toJSON5=="function"?h=h.toJSON5(g):typeof h.toJSON=="function"&&(h=h.toJSON(g))),o&&(h=o.call(b,g,h)),h instanceof Number?h=Number(h):h instanceof String?h=String(h):h instanceof Boolean&&(h=h.valueOf()),h){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof h=="string")return c(h,!1);if(typeof h=="number")return String(h);if(typeof h=="object")return Array.isArray(h)?p(h):d(h)}function c(g){let b={"'":.1,'"':.2},h={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vb[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let b=a;a=a+s;let h=i||Object.keys(g),f=[];for(let v of h){let S=l(v,g);if(S!==void 0){let w=m(v)+":";s!==""&&(w+=" "),w+=S,f.push(w)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let S=`, `+a;v=f.join(S),y=`{ `+a+v+`, -`+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!Bt.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let b=a;a=a+s;let h=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),kE=(e,t)=>{for(var n in t)bm(e,n,{get:t[n],enumerable:!0})},hm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of CE(t))!EE.call(e,a)&&a!==n&&bm(e,a,{get:()=>t[a],enumerable:!(r=TE(t,a))||r.enumerable});return e},DE=(e,t,n)=>(hm(e,t,"default"),n&&hm(n,t,"default")),t3=(e,t,n)=>(n=e!=null?SE(wE(e)):{},hm(t||!e||!e.__esModule?bm(n,"default",{value:e,enumerable:!0}):n,e)),n3=AE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Cl=="object"&&Cl&&Cl.Object===Object&&Cl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(A,D,I){var F,R,B,L,_,O,z=0,V=!1,ie=!1,je=!0;if(typeof A!="function")throw new TypeError(n);D=T(D)||0,S(I)&&(V=!!I.leading,ie="maxWait"in I,B=ie?h(T(I.maxWait)||0,D):B,je="trailing"in I?!!I.trailing:je);function Le(me){var fe=F,ve=R;return F=R=void 0,z=me,L=A.apply(ve,fe),L}function N(me){return z=me,_=setTimeout(we,D),V?Le(me):L}function q(me){var fe=me-O,ve=me-z,Ue=D-fe;return ie?b(Ue,B-ve):Ue}function Z(me){var fe=me-O,ve=me-z;return O===void 0||fe>=D||fe<0||ie&&ve>=B}function we(){var me=f();if(Z(me))return pe(me);_=setTimeout(we,q(me))}function pe(me){return _=void 0,je&&F?Le(me):(F=R=void 0,L)}function Ge(){_!==void 0&&clearTimeout(_),z=0,F=O=R=_=void 0}function de(){return _===void 0?L:pe(f())}function ge(){var me=f(),fe=Z(me);if(F=arguments,R=this,O=me,fe){if(_===void 0)return N(O);if(ie)return _=setTimeout(we,D),Le(O)}return _===void 0&&(_=setTimeout(we,D)),L}return ge.cancel=Ge,ge.flush=de,ge}function v(A,D,I){var F=!0,R=!0;if(typeof A!="function")throw new TypeError(n);return S(I)&&(F="leading"in I?!!I.leading:F,R="trailing"in I?!!I.trailing:R),y(A,D,{leading:F,maxWait:D,trailing:R})}function S(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function w(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||w(A)&&g.call(A)==a}function T(A){if(typeof A=="number")return A;if(C(A))return r;if(S(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=S(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var I=s.test(A);return I||u.test(A)?l(A.slice(2),I?2:8):o.test(A)?r:+A}t.exports=v}),r3={};kE(r3,{default:()=>Yn});var LE=t3(n3());DE(r3,t3(n3()));var{default:e3,...PE}=LE,Yn=e3!==void 0?e3:PE;var wl=globalThis||(typeof window<"u"?window:self),ME=Object.create,xm=Object.defineProperty,RE=Object.getOwnPropertyDescriptor,IE=Object.getOwnPropertyNames,FE=Object.getPrototypeOf,BE=Object.prototype.hasOwnProperty,_E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),OE=(e,t)=>{for(var n in t)xm(e,n,{get:t[n],enumerable:!0})},ym=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of IE(t))!BE.call(e,a)&&a!==n&&xm(e,a,{get:()=>t[a],enumerable:!(r=RE(t,a))||r.enumerable});return e},NE=(e,t,n)=>(ym(e,t,"default"),n&&ym(n,t,"default")),i3=(e,t,n)=>(n=e!=null?ME(FE(e)):{},ym(t||!e||!e.__esModule?xm(n,"default",{value:e,enumerable:!0}):n,e)),o3=_E((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof wl=="object"&&wl&&wl.Object===Object&&wl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(T,A,D){var I,F,R,B,L,_,O=0,z=!1,V=!1,ie=!0;if(typeof T!="function")throw new TypeError(n);A=C(A)||0,v(D)&&(z=!!D.leading,V="maxWait"in D,R=V?h(C(D.maxWait)||0,A):R,ie="trailing"in D?!!D.trailing:ie);function je(ge){var me=I,fe=F;return I=F=void 0,O=ge,B=T.apply(fe,me),B}function Le(ge){return O=ge,L=setTimeout(Z,A),z?je(ge):B}function N(ge){var me=ge-_,fe=ge-O,ve=A-me;return V?b(ve,R-fe):ve}function q(ge){var me=ge-_,fe=ge-O;return _===void 0||me>=A||me<0||V&&fe>=R}function Z(){var ge=f();if(q(ge))return we(ge);L=setTimeout(Z,N(ge))}function we(ge){return L=void 0,ie&&I?je(ge):(I=F=void 0,B)}function pe(){L!==void 0&&clearTimeout(L),O=0,I=_=F=L=void 0}function Ge(){return L===void 0?B:we(f())}function de(){var ge=f(),me=q(ge);if(I=arguments,F=this,_=ge,me){if(L===void 0)return Le(_);if(V)return L=setTimeout(Z,A),je(_)}return L===void 0&&(L=setTimeout(Z,A)),B}return de.cancel=pe,de.flush=Ge,de}function v(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function S(T){return!!T&&typeof T=="object"}function w(T){return typeof T=="symbol"||S(T)&&g.call(T)==a}function C(T){if(typeof T=="number")return T;if(w(T))return r;if(v(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=v(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(i,"");var D=s.test(T);return D||u.test(T)?l(T.slice(2),D?2:8):o.test(T)?r:+T}t.exports=y}),s3={};OE(s3,{default:()=>Mn});var jE=i3(o3());NE(s3,i3(o3()));var{default:a3,...UE}=jE,Mn=a3!==void 0?a3:UE;var HE=Object.create,Sm=Object.defineProperty,qE=Object.getOwnPropertyDescriptor,zE=Object.getOwnPropertyNames,WE=Object.getPrototypeOf,GE=Object.prototype.hasOwnProperty,VE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KE=(e,t)=>{for(var n in t)Sm(e,n,{get:t[n],enumerable:!0})},vm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zE(t))!GE.call(e,a)&&a!==n&&Sm(e,a,{get:()=>t[a],enumerable:!(r=qE(t,a))||r.enumerable});return e},YE=(e,t,n)=>(vm(e,t,"default"),n&&vm(n,t,"default")),l3=(e,t,n)=>(n=e!=null?HE(WE(e)):{},vm(t||!e||!e.__esModule?Sm(n,"default",{value:e,enumerable:!0}):n,e)),c3=VE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,q){var Z={};for(var we in N)q.indexOf(we)>=0||Object.prototype.hasOwnProperty.call(N,we)&&(Z[we]=N[we]);return Z}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},h=Object.assign||function(N){for(var q=1;q'+we+"",ve.onclick=function(){return R(Ue,fe)},ve.listener=function(G){(D(G)||I(G))&&_()},F(ve,fe),Ge&&Ge<1&&(Ge=1),!ge&&Ge&&S(Ge).then(function(){return R(Ue,fe)})},z=d.force=function(N,q){var Z=N.type,we=Z===void 0?5:Z,pe=N.text,Ge=N.buttonText,de=Ge===void 0?"OK":Ge,ge=N.callback,me=N.position,fe=me===void 0?f.positions.force||fe.top:me;w(),_();var ve=document.createElement("div"),Ue=C();ve.id=Ue;var G=document.createElement("div");G.classList.add(f.classes.textbox),G.classList.add(f.classes.backgroundInfo),G.innerHTML='
'+pe+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(T[we]),be.innerHTML=de,be.onclick=function(){R(Ue,fe),L(),ge?ge():q&&q()},ve.appendChild(G),ve.appendChild(be),ve.listener=function(at){D(at)&&be.click()},F(ve,fe),B()},V=d.confirm=function(N,q,Z){var we=N.text,pe=N.submitText,Ge=pe===void 0?"Yes":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,ve=N.position,Ue=ve===void 0?f.positions.confirm||Ue.top:ve;w(),_();var G=document.createElement("div"),be=C();G.id=be;var at=document.createElement("div");at.classList.add(f.classes.textbox),at.classList.add(f.classes.backgroundInfo),at.innerHTML='
'+we+"
";var Je=document.createElement("div");Je.classList.add(f.classes.button),Je.classList.add(f.classes.elementHalf),Je.classList.add(f.classes.backgroundSuccess),Je.innerHTML=Ge,Je.onclick=function(){R(be,Ue),L(),me?me():q&&q()};var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(f.classes.elementHalf),xe.classList.add(f.classes.backgroundError),xe.innerHTML=ge,xe.onclick=function(){R(be,Ue),L(),fe?fe():Z&&Z()},G.appendChild(at),G.appendChild(Je),G.appendChild(xe),G.listener=function(vt){D(vt)?Je.click():I(vt)&&xe.click()},F(G,Ue),B(G,Ue)},ie=function(N,q,Z){var we=N.text,pe=N.submitText,Ge=pe===void 0?"Submit":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,ve=N.position,Ue=ve===void 0?f.positions.input||Ue.top:ve,G=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var be=document.createElement("div"),at=C();be.id=at;var Je=document.createElement("div");Je.classList.add(f.classes.textbox),Je.classList.add(f.classes.backgroundInfo),Je.innerHTML='
'+we+"
";var xe=document.createElement("input");xe.classList.add(f.classes.inputField),xe.setAttribute("autocapitalize",G.autocapitalize||"none"),xe.setAttribute("autocomplete",G.autocomplete||"off"),xe.setAttribute("autocorrect",G.autocorrect||"off"),xe.setAttribute("autofocus",G.autofocus||"true"),xe.setAttribute("inputmode",G.inputmode||"verbatim"),xe.setAttribute("max",G.max||""),xe.setAttribute("maxlength",G.maxlength||""),xe.setAttribute("min",G.min||""),xe.setAttribute("minlength",G.minlength||""),xe.setAttribute("placeholder",G.placeholder||""),xe.setAttribute("spellcheck",G.spellcheck||"default"),xe.setAttribute("step",G.step||"any"),xe.setAttribute("type",G.type||"text"),xe.value=G.value||"",G.allowed&&(xe.oninput=function(){var Dt=void 0;if(Array.isArray(G.allowed)){for(var Ft="",kn=G.allowed,sr=0;sr'+Z+"",fe.appendChild(Ue),de.forEach(function(be,at){var Je=be.type,xe=Je===void 0?1:Je,vt=be.text,Vt=be.handler,Dt=document.createElement("div");Dt.classList.add(T[xe]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Ft=de[at+1];Ft&&!Ft.type&&(Ft.type=1),Ft&&Ft.type===xe&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){R(ve,me),L(),Vt()},fe.appendChild(Dt)});var G=document.createElement("div");G.classList.add(f.classes.backgroundNeutral),G.classList.add(f.classes.button),G.innerHTML=pe,G.onclick=function(){R(ve,me),L(),Ge?Ge():q&&q()},fe.appendChild(G),fe.listener=function(be){I(be)&&G.click()},F(fe,me),B(fe,me)},Le=d.date=function(N,q,Z){var we=N.value,pe=we===void 0?new Date:we,Ge=N.submitText,de=Ge===void 0?"OK":Ge,ge=N.cancelText,me=ge===void 0?"Cancel":ge,fe=N.submitCallback,ve=N.cancelCallback,Ue=N.position,G=Ue===void 0?f.positions.date||G.top:Ue;w(),_();var be="▾",at=document.createElement("div"),Je=document.createElement("div"),xe=document.createElement("div"),vt=function(St){at.innerHTML=f.dateMonths[St.getMonth()],Je.innerHTML=St.getDate(),xe.innerHTML=St.getFullYear()},Vt=function(St){var nt=new Date(pe.getFullYear(),pe.getMonth()+1,0).getDate(),Kn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>nt&&(Kn=nt.toString()),St.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),pe.setDate(Number(Kn))},Dt=function(St){var nt=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=nt,pe.setFullYear(Number(nt))},Ft=function(St){vt(pe)},kn=function(St){var nt=new Date(pe.getFullYear(),pe.getMonth()+St+1,0).getDate();pe.getDate()>nt&&pe.setDate(nt),pe.setMonth(pe.getMonth()+St),vt(pe)},sr=function(St){pe.setDate(pe.getDate()+St),vt(pe)},Ss=function(St){var nt=pe.getFullYear()+St;nt<0?pe.setFullYear(0):pe.setFullYear(pe.getFullYear()+St),vt(pe)},Ur=document.createElement("div"),fi=C();Ur.id=fi;var Qi=document.createElement("div");Qi.classList.add(f.classes.backgroundInfo);var pn=document.createElement("div");pn.classList.add(f.classes.dateSelectorInner);var fr=document.createElement("div");fr.classList.add(f.classes.button),fr.classList.add(f.classes.elementThird),fr.classList.add(f.classes.dateSelectorUp),fr.innerHTML=be;var gn=document.createElement("div");gn.classList.add(f.classes.button),gn.classList.add(f.classes.elementThird),gn.classList.add(f.classes.dateSelectorUp),gn.innerHTML=be;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=be,at.classList.add(f.classes.element),at.classList.add(f.classes.elementThird),at.innerHTML=f.dateMonths[pe.getMonth()],Je.classList.add(f.classes.element),Je.classList.add(f.classes.elementThird),Je.setAttribute("contentEditable",!0),Je.addEventListener("input",Vt),Je.addEventListener("blur",Ft),Je.innerHTML=pe.getDate(),xe.classList.add(f.classes.element),xe.classList.add(f.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Dt),xe.addEventListener("blur",Ft),xe.innerHTML=pe.getFullYear();var aa=document.createElement("div");aa.classList.add(f.classes.button),aa.classList.add(f.classes.elementThird),aa.innerHTML=be;var ia=document.createElement("div");ia.classList.add(f.classes.button),ia.classList.add(f.classes.elementThird),ia.innerHTML=be;var hi=document.createElement("div");hi.classList.add(f.classes.button),hi.classList.add(f.classes.elementThird),hi.innerHTML=be,fr.onclick=function(){return kn(1)},gn.onclick=function(){return sr(1)},Vn.onclick=function(){return Ss(1)},aa.onclick=function(){return kn(-1)},ia.onclick=function(){return sr(-1)},hi.onclick=function(){return Ss(-1)};var Dn=document.createElement("div");Dn.classList.add(f.classes.button),Dn.classList.add(f.classes.elementHalf),Dn.classList.add(f.classes.backgroundSuccess),Dn.innerHTML=de,Dn.onclick=function(){R(fi,G),L(),fe?fe(pe):q&&q(pe)};var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementHalf),oa.classList.add(f.classes.backgroundError),oa.innerHTML=me,oa.onclick=function(){R(fi,G),L(),ve?ve(pe):Z&&Z(pe)},pn.appendChild(fr),pn.appendChild(gn),pn.appendChild(Vn),pn.appendChild(at),pn.appendChild(Je),pn.appendChild(xe),pn.appendChild(aa),pn.appendChild(ia),pn.appendChild(hi),Qi.appendChild(pn),Ur.appendChild(Qi),Ur.appendChild(Dn),Ur.appendChild(oa),Ur.listener=function(St){D(St)?Dn.click():I(St)&&oa.click()},F(Ur,G),B(Ur,G)};d.default={alert:O,force:z,confirm:V,input:ie,select:je,date:Le,setOptions:y,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),d3={};KE(d3,{default:()=>El});var QE=l3(c3());YE(d3,l3(c3()));var{default:u3,...JE}=QE,El=u3!==void 0?u3:JE;var Al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Es(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Tm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function m3(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ieo[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),ZE=e=>Object.keys(eo).find(t=>eo[t]===e),XE=e=>Object.keys(yr).find(t=>yr[t]===e);function y3(e){h3=e||"all"}function As(){return h3||"all"}function $E(){return ut.slice(0)}function e8(){return ut.map(e=>ZE(e)||XE(e)||String.fromCharCode(e))}function t8(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>ks(o))})})}),e}function n8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function r8(e){return typeof e=="string"&&(e=ks(e)),ut.indexOf(e)!==-1}function a8(e,t){let n,r;e||(e=As());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&ut.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ut.splice(0,ut.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in yr)yr[r]===t&&(pa[r]=!1)}}function x3(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&wm(n)});else if(typeof e=="object")e.key&&wm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),wm({key:e,scope:n,method:r,splitKey:"+"})}}var wm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Cm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":ks(u);if(!Tt[l])return;t||(t=As());let c=s>1?Tm(yr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&m3(d.mods,c)))})};function g3(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ut),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function f3(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!pa.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ut.indexOf(r)===-1&&r!==229&&ut.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=kl[i];e[i]&&ut.indexOf(o)===-1?ut.push(o):!e[i]&&ut.indexOf(o)>-1?ut.splice(ut.indexOf(o),1):i==="metaKey"&&e[i]&&ut.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ut=ut.slice(ut.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in yr)yr[i]===r&&(pa[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[kl[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ut.indexOf(17)===-1&&ut.push(17),ut.indexOf(18)===-1&&ut.push(18),tn[17]=!0,tn[18]=!0);let a=As();if(n)for(let i=0;i-1}function pa(e,t,n){ut=[];let r=Cm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&x3(e,i);s1&&(a=Tm(yr,e)),e=e[e.length-1],e=e==="*"?"*":ks(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!o8(o)&&window&&(b3.push(o),Es(o,"keydown",p=>{f3(p,o)},d),p3||(p3=!0,Es(window,"focus",()=>{ut=[]},d),Es(window,"click",()=>{ut=[]},!1)),Es(o,"keyup",p=>{f3(p,o),i8(p)},d))}function s8(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Em={getPressedKeyString:e8,setScope:y3,getScope:As,deleteScope:a8,getPressedKeyCodes:$E,getAllKeyCodes:t8,isPressed:r8,filter:n8,trigger:s8,unbind:x3,keyMap:eo,modifier:yr,modifierMap:kl};for(let e in Em)Object.prototype.hasOwnProperty.call(Em,e)&&(pa[e]=Em[e]);if(typeof window<"u"){let e=window.hotkeys;pa.noConflict=t=>(t&&window.hotkeys===pa&&(window.hotkeys=e),pa),window.hotkeys=pa}var jn=pa;var u8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},S3={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},_t={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Rn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ra={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},H=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=H.getVersionPrecision(e),a=H.getVersionPrecision(t),i=Math.max(r,a),o=0,s=H.map([e,t],u=>{let l=i-H.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return H.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return u8[e]}static getBrowserTypeByAlias(e){return S3[e]||""}},lt=/version\/(\d+(\.?_?\d+)+)/i,l8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=H.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=H.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=H.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=H.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=H.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=H.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=H.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=H.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=H.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=H.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=H.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=H.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=H.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=H.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=H.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=H.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=H.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=H.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=H.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=H.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=H.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=H.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=H.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=H.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=H.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=H.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:H.getFirstMatch(r,e),version:H.getSecondMatch(r,e)}}}],c8=l8,d8=[{test:[/Roku\/DVP/],describe(e){let t=H.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Rn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=H.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Rn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=H.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=H.getWindowsVersionName(t);return{name:Rn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Rn.iOS},n=H.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=H.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=H.getMacOSVersionName(t),r={name:Rn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=H.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Rn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=H.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=H.getAndroidVersionName(t),r={name:Rn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=H.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Rn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=H.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||H.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||H.getFirstMatch(/\bbb(\d+)/i,e);return{name:Rn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=H.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Rn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=H.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Rn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Rn.Linux}}},{test:[/CrOS/],describe(){return{name:Rn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=H.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Rn.PlayStation4,version:t}}}],m8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=H.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:_t.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:_t.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:_t.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:_t.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:_t.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=H.getFirstMatch(/(ipod|iphone)/i,e);return{type:_t.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:_t.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:_t.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:_t.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:_t.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:_t.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:_t.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:_t.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:_t.tv}}}],p8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ra.Blink};let t=H.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ra.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ra.Trident},n=H.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ra.Presto},n=H.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ra.Gecko},n=H.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ra.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ra.WebKit},n=H.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],g8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=H.find(c8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=H.find(d8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=H.find(m8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=H.find(p8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return H.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=H.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=H.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=H.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=H.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(H.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},v3=g8,f8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new v3(e,t)}static parse(e){return new v3(e).getResult()}static get BROWSER_MAP(){return S3}static get ENGINE_MAP(){return Ra}static get OS_MAP(){return Rn}static get PLATFORMS_MAP(){return _t}},to=f8;var{entries:L3,setPrototypeOf:T3,isFrozen:h8,getPrototypeOf:b8,getOwnPropertyDescriptor:y8}=Object,{freeze:In,seal:vr,create:x8}=Object,{apply:Mm,construct:Rm}=typeof Reflect<"u"&&Reflect;Mm||(Mm=function(e,t,n){return e.apply(t,n)});In||(In=function(e){return e});vr||(vr=function(e){return e});Rm||(Rm=function(e,t){return new e(...t)});var v8=lr(Array.prototype.forEach),C3=lr(Array.prototype.pop),Ds=lr(Array.prototype.push),Pl=lr(String.prototype.toLowerCase),Am=lr(String.prototype.toString),S8=lr(String.prototype.match),xr=lr(String.prototype.replace),T8=lr(String.prototype.indexOf),C8=lr(String.prototype.trim),Qn=lr(RegExp.prototype.test),Ls=w8(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),L8=vr(/\${[\w\W]*}/gm),P8=vr(/^data-[\-\w.\u00B7-\uFFFF]/),M8=vr(/^aria-[\-\w]+$/),P3=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),R8=vr(/^(?:\w+script|data):/i),I8=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),M3=vr(/^html$/i),D3=Object.freeze({__proto__:null,MUSTACHE_EXPR:k8,ERB_EXPR:D8,TMPLIT_EXPR:L8,DATA_ATTR:P8,ARIA_ATTR:M8,IS_ALLOWED_URI:P3,IS_SCRIPT_OR_DATA:R8,ATTR_WHITESPACE:I8,DOCTYPE_NAME:M3}),F8=()=>typeof window>"u"?null:window,B8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function R3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F8(),t=M=>R3(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Dl(g,"cloneNode"),b=Dl(g,"nextSibling"),f=Dl(g,"childNodes"),y=Dl(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,S="",{implementation:w,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:A}=a,{importNode:D}=n,I={};t.isSupported=typeof L3=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:z}=D3,{IS_ALLOWED_URI:V}=D3,ie=null,je=Ne({},[...w3,...km,...Dm,...Lm,...E3]),Le=null,N=Ne({},[...A3,...Pm,...k3,...Ll]),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,we=null,pe=!0,Ge=!0,de=!1,ge=!0,me=!1,fe=!1,ve=!1,Ue=!1,G=!1,be=!1,at=!1,Je=!0,xe=!1,vt="user-content-",Vt=!0,Dt=!1,Ft={},kn=null,sr=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ss=null,Ur=Ne({},["audio","video","img","source","image","track"]),fi=null,Qi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pn="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",gn="http://www.w3.org/1999/xhtml",Vn=gn,aa=!1,ia=null,hi=Ne({},[pn,fr,gn],Am),Dn,oa=["application/xhtml+xml","text/html"],St="text/html",nt,Kn=null,YC=a.createElement("form"),M4=function(M){return M instanceof RegExp||M instanceof Function},Zd=function(M){if(!(Kn&&Kn===M)){if((!M||typeof M!="object")&&(M={}),M=no(M),Dn=oa.indexOf(M.PARSER_MEDIA_TYPE)===-1?Dn=St:Dn=M.PARSER_MEDIA_TYPE,nt=Dn==="application/xhtml+xml"?Am:Pl,ie="ALLOWED_TAGS"in M?Ne({},M.ALLOWED_TAGS,nt):je,Le="ALLOWED_ATTR"in M?Ne({},M.ALLOWED_ATTR,nt):N,ia="ALLOWED_NAMESPACES"in M?Ne({},M.ALLOWED_NAMESPACES,Am):hi,fi="ADD_URI_SAFE_ATTR"in M?Ne(no(Qi),M.ADD_URI_SAFE_ATTR,nt):Qi,Ss="ADD_DATA_URI_TAGS"in M?Ne(no(Ur),M.ADD_DATA_URI_TAGS,nt):Ur,kn="FORBID_CONTENTS"in M?Ne({},M.FORBID_CONTENTS,nt):sr,Z="FORBID_TAGS"in M?Ne({},M.FORBID_TAGS,nt):{},we="FORBID_ATTR"in M?Ne({},M.FORBID_ATTR,nt):{},Ft="USE_PROFILES"in M?M.USE_PROFILES:!1,pe=M.ALLOW_ARIA_ATTR!==!1,Ge=M.ALLOW_DATA_ATTR!==!1,de=M.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=M.SAFE_FOR_TEMPLATES||!1,fe=M.WHOLE_DOCUMENT||!1,G=M.RETURN_DOM||!1,be=M.RETURN_DOM_FRAGMENT||!1,at=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Je=M.SANITIZE_DOM!==!1,xe=M.SANITIZE_NAMED_PROPS||!1,Vt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,V=M.ALLOWED_URI_REGEXP||P3,Vn=M.NAMESPACE||gn,q=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&M4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&M4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Ge=!1),be&&(G=!0),Ft&&(ie=Ne({},[...E3]),Le=[],Ft.html===!0&&(Ne(ie,w3),Ne(Le,A3)),Ft.svg===!0&&(Ne(ie,km),Ne(Le,Pm),Ne(Le,Ll)),Ft.svgFilters===!0&&(Ne(ie,Dm),Ne(Le,Pm),Ne(Le,Ll)),Ft.mathMl===!0&&(Ne(ie,Lm),Ne(Le,k3),Ne(Le,Ll))),M.ADD_TAGS&&(ie===je&&(ie=no(ie)),Ne(ie,M.ADD_TAGS,nt)),M.ADD_ATTR&&(Le===N&&(Le=no(Le)),Ne(Le,M.ADD_ATTR,nt)),M.ADD_URI_SAFE_ATTR&&Ne(fi,M.ADD_URI_SAFE_ATTR,nt),M.FORBID_CONTENTS&&(kn===sr&&(kn=no(kn)),Ne(kn,M.FORBID_CONTENTS,nt)),Vt&&(ie["#text"]=!0),fe&&Ne(ie,["html","head","body"]),ie.table&&(Ne(ie,["tbody"]),delete Z.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=B8(p,r)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));In&&In(M),Kn=M}},R4=Ne({},["mi","mo","mn","ms","mtext"]),I4=Ne({},["foreignobject","desc","title","annotation-xml"]),QC=Ne({},["title","style","font","a","script"]),ml=Ne({},km);Ne(ml,Dm),Ne(ml,E8);let Xd=Ne({},Lm);Ne(Xd,A8);let JC=function(M){let se=y(M);(!se||!se.tagName)&&(se={namespaceURI:Vn,tagName:"template"});let Q=Pl(M.tagName),$e=Pl(se.tagName);return ia[M.namespaceURI]?M.namespaceURI===fr?se.namespaceURI===gn?Q==="svg":se.namespaceURI===pn?Q==="svg"&&($e==="annotation-xml"||R4[$e]):!!ml[Q]:M.namespaceURI===pn?se.namespaceURI===gn?Q==="math":se.namespaceURI===fr?Q==="math"&&I4[$e]:!!Xd[Q]:M.namespaceURI===gn?se.namespaceURI===fr&&!I4[$e]||se.namespaceURI===pn&&!R4[$e]?!1:!Xd[Q]&&(QC[Q]||!ml[Q]):!!(Dn==="application/xhtml+xml"&&ia[M.namespaceURI]):!1},Ji=function(M){Ds(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},$d=function(M,se){try{Ds(t.removed,{attribute:se.getAttributeNode(M),from:se})}catch{Ds(t.removed,{attribute:null,from:se})}if(se.removeAttribute(M),M==="is"&&!Le[M])if(G||be)try{Ji(se)}catch{}else try{se.setAttribute(M,"")}catch{}},F4=function(M){let se,Q;if(Ue)M=""+M;else{let Ln=S8(M,/^[\r\n\t ]+/);Q=Ln&&Ln[0]}Dn==="application/xhtml+xml"&&Vn===gn&&(M=''+M+"");let $e=v?v.createHTML(M):M;if(Vn===gn)try{se=new m().parseFromString($e,Dn)}catch{}if(!se||!se.documentElement){se=w.createDocument(Vn,"template",null);try{se.documentElement.innerHTML=aa?S:$e}catch{}}let Kt=se.body||se.documentElement;return M&&Q&&Kt.insertBefore(a.createTextNode(Q),Kt.childNodes[0]||null),Vn===gn?A.call(se,fe?"html":"body")[0]:fe?se.documentElement:Kt},B4=function(M){return C.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},ZC=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},pl=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},sa=function(M,se,Q){I[M]&&v8(I[M],$e=>{$e.call(t,se,Q,Kn)})},_4=function(M){let se;if(sa("beforeSanitizeElements",M,null),ZC(M))return Ji(M),!0;let Q=nt(M.nodeName);if(sa("uponSanitizeElement",M,{tagName:Q,allowedTags:ie}),M.hasChildNodes()&&!pl(M.firstElementChild)&&(!pl(M.content)||!pl(M.content.firstElementChild))&&Qn(/<[/\w]/g,M.innerHTML)&&Qn(/<[/\w]/g,M.textContent))return Ji(M),!0;if(!ie[Q]||Z[Q]){if(!Z[Q]&&N4(Q)&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q)))return!1;if(Vt&&!kn[Q]){let $e=y(M)||M.parentNode,Kt=f(M)||M.childNodes;if(Kt&&$e){let Ln=Kt.length;for(let Nn=Ln-1;Nn>=0;--Nn)$e.insertBefore(h(Kt[Nn],!0),b(M))}}return Ji(M),!0}return M instanceof u&&!JC(M)||(Q==="noscript"||Q==="noembed")&&Qn(/<\/no(script|embed)/i,M.innerHTML)?(Ji(M),!0):(me&&M.nodeType===3&&(se=M.textContent,se=xr(se,F," "),se=xr(se,R," "),se=xr(se,B," "),M.textContent!==se&&(Ds(t.removed,{element:M.cloneNode()}),M.textContent=se)),sa("afterSanitizeElements",M,null),!1)},O4=function(M,se,Q){if(Je&&(se==="id"||se==="name")&&(Q in a||Q in YC))return!1;if(!(Ge&&!we[se]&&Qn(L,se))&&!(pe&&Qn(_,se))){if(!Le[se]||we[se]){if(!(N4(M)&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,M)||q.tagNameCheck instanceof Function&&q.tagNameCheck(M))&&(q.attributeNameCheck instanceof RegExp&&Qn(q.attributeNameCheck,se)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(se))||se==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q))))return!1}else if(!fi[se]&&!Qn(V,xr(Q,z,""))&&!((se==="src"||se==="xlink:href"||se==="href")&&M!=="script"&&T8(Q,"data:")===0&&Ss[M])&&!(de&&!Qn(O,xr(Q,z,"")))&&Q)return!1}return!0},N4=function(M){return M.indexOf("-")>0},j4=function(M){let se,Q,$e,Kt;sa("beforeSanitizeAttributes",M,null);let{attributes:Ln}=M;if(!Ln)return;let Nn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le};for(Kt=Ln.length;Kt--;){se=Ln[Kt];let{name:$t,namespaceURI:Zi}=se;if(Q=$t==="value"?se.value:C8(se.value),$e=nt($t),Nn.attrName=$e,Nn.attrValue=Q,Nn.keepAttr=!0,Nn.forceKeepAttr=void 0,sa("uponSanitizeAttribute",M,Nn),Q=Nn.attrValue,Nn.forceKeepAttr||($d($t,M),!Nn.keepAttr))continue;if(!ge&&Qn(/\/>/i,Q)){$d($t,M);continue}me&&(Q=xr(Q,F," "),Q=xr(Q,R," "),Q=xr(Q,B," "));let U4=nt(M.nodeName);if(O4(U4,$e,Q)){if(xe&&($e==="id"||$e==="name")&&($d($t,M),Q=vt+Q),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zi)switch(p.getAttributeType(U4,$e)){case"TrustedHTML":{Q=v.createHTML(Q);break}case"TrustedScriptURL":{Q=v.createScriptURL(Q);break}}try{Zi?M.setAttributeNS(Zi,$t,Q):M.setAttribute($t,Q),C3(t.removed)}catch{}}}sa("afterSanitizeAttributes",M,null)},XC=function M(se){let Q,$e=B4(se);for(sa("beforeSanitizeShadowDOM",se,null);Q=$e.nextNode();)sa("uponSanitizeShadowNode",Q,null),!_4(Q)&&(Q.content instanceof i&&M(Q.content),j4(Q));sa("afterSanitizeShadowDOM",se,null)};return t.sanitize=function(M){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,$e,Kt,Ln;if(aa=!M,aa&&(M=""),typeof M!="string"&&!pl(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw Ls("dirty is not a string, aborting")}else throw Ls("toString is not a function");if(!t.isSupported)return M;if(ve||Zd(se),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let Zi=nt(M.nodeName);if(!ie[Zi]||Z[Zi])throw Ls("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)Q=F4(""),$e=Q.ownerDocument.importNode(M,!0),$e.nodeType===1&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?Q=$e:Q.appendChild($e);else{if(!G&&!me&&!fe&&M.indexOf("<")===-1)return v&&at?v.createHTML(M):M;if(Q=F4(M),!Q)return G?null:at?S:""}Q&&Ue&&Ji(Q.firstChild);let Nn=B4(Dt?M:Q);for(;Kt=Nn.nextNode();)_4(Kt)||(Kt.content instanceof i&&XC(Kt.content),j4(Kt));if(Dt)return M;if(G){if(be)for(Ln=T.call(Q.ownerDocument);Q.firstChild;)Ln.appendChild(Q.firstChild);else Ln=Q;return(Le.shadowroot||Le.shadowrootmod)&&(Ln=D.call(n,Ln,!0)),Ln}let $t=fe?Q.outerHTML:Q.innerHTML;return fe&&ie["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Qn(M3,Q.ownerDocument.doctype.name)&&($t=" -`+$t),me&&($t=xr($t,F," "),$t=xr($t,R," "),$t=xr($t,B," ")),v&&at?v.createHTML($t):$t},t.setConfig=function(M){Zd(M),ve=!0},t.clearConfig=function(){Kn=null,ve=!1},t.isValidAttribute=function(M,se,Q){Kn||Zd({});let $e=nt(M),Kt=nt(se);return O4($e,Kt,Q)},t.addHook=function(M,se){typeof se=="function"&&(I[M]=I[M]||[],Ds(I[M],se))},t.removeHook=function(M){if(I[M])return C3(I[M])},t.removeHooks=function(M){I[M]&&(I[M]=[])},t.removeAllHooks=function(){I={}},t}var Ze=R3();var _8=Object.create,Fm=Object.defineProperty,O8=Object.getOwnPropertyDescriptor,N8=Object.getOwnPropertyNames,j8=Object.getPrototypeOf,U8=Object.prototype.hasOwnProperty,Bm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),H8=(e,t)=>{for(var n in t)Fm(e,n,{get:t[n],enumerable:!0})},Im=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of N8(t))!U8.call(e,a)&&a!==n&&Fm(e,a,{get:()=>t[a],enumerable:!(r=O8(t,a))||r.enumerable});return e},q8=(e,t,n)=>(Im(e,t,"default"),n&&Im(n,t,"default")),F3=(e,t,n)=>(n=e!=null?_8(j8(e)):{},Im(t||!e||!e.__esModule?Fm(n,"default",{value:e,enumerable:!0}):n,e)),z8=Bm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(G){if(!(!G.parentNode||typeof G.parentNode.tagName>"u")){var be=this._getInnerText(G);if(!(be.length<25)){var at=this._getNodeAncestors(G,5);if(at.length!==0){var Je=0;Je+=1,Je+=be.split(",").length,Je+=Math.min(Math.floor(be.length/100),3),this._forEachNode(at,function(xe,vt){if(!(!xe.tagName||!xe.parentNode||typeof xe.parentNode.tagName>"u")){if(typeof xe.readability>"u"&&(this._initializeNode(xe),h.push(xe)),vt===0)var Vt=1;else vt===1?Vt=2:Vt=vt*3;xe.readability.contentScore+=Je/Vt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(w,0,v),b.length>this._nbTopCandidates&&b.pop();break}}}var T=b[0]||null,A=!1,D;if(T===null||T.tagName==="BODY"){for(T=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),T.appendChild(r.firstChild);r.appendChild(T),this._initializeNode(T)}else if(T){for(var I=[],F=1;F=.75&&I.push(this._getNodeAncestors(b[F]));var R=3;if(I.length>=R)for(D=T.parentNode;D.tagName!=="BODY";){for(var B=0,L=0;L=R){T=D;break}D=D.parentNode}T.readability||this._initializeNode(T),D=T.parentNode;for(var _=T.readability.contentScore,O=_/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var z=D.readability.contentScore;if(z_){T=D;break}_=D.readability.contentScore,D=D.parentNode}for(D=T.parentNode;D.tagName!="BODY"&&D.children.length==1;)T=D,D=T.parentNode;T.readability||this._initializeNode(T)}var V=a.createElement("DIV");i&&(V.id="readability-content");var ie=Math.max(10,T.readability.contentScore*.2);D=T.parentNode;for(var je=D.children,Le=0,N=je.length;Le=ie)Z=!0;else if(q.nodeName==="P"){var pe=this._getLinkDensity(q),Ge=this._getInnerText(q),de=Ge.length;(de>80&&pe<.25||de<80&&de>0&&pe===0&&Ge.search(/\.( |$)/)!==-1)&&(Z=!0)}}Z&&(this.log("Appending node:",q),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(q.nodeName)===-1&&(this.log("Altering sibling:",q,"to div."),q=this._setNodeTag(q,"DIV")),V.appendChild(q),je=D.children,Le-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+V.innerHTML),this._prepArticle(V),this._debug&&this.log("Article content post-prep: "+V.innerHTML),A)T.id="readability-page-1",T.className="page";else{var ge=a.createElement("DIV");for(ge.id="readability-page-1",ge.className="page";V.firstChild;)ge.appendChild(V.firstChild);V.appendChild(ge)}this._debug&&this.log("Article content after paging: "+V.innerHTML);var me=!0,fe=this._getInnerText(V,!0).length;if(fe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||f===1&&C<75||f>1;if(s&&T){for(var A=0;A1)return T;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return T}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),W8=Bm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),B3=Bm((e,t)=>{var n=z8(),r=W8();t.exports={Readability:n,isProbablyReaderable:r}}),_3={};H8(_3,{Readability:()=>Ml,default:()=>j3,isProbablyReaderable:()=>N3});var O3=F3(B3());q8(_3,F3(B3()));var{Readability:Ml,isProbablyReaderable:N3}=O3,{default:I3,...G8}=O3,j3=I3!==void 0?I3:G8;var V8=El.alert;var Y="immersiveTranslate",xi="Immersive Translate",P="immersive-translate",Il="imt";var nn="immersivetranslate.com",K8=`https://config.${nn}/`,aH=`https://app.${nn}/`,ae=ua()||am()?`https://${nn}/`:`https://test.${nn}/`,Rl=`https://dash.${nn}/`,rt=ua()||am()?`https://api2.${nn}/`:`https://test-api2.${nn}/`,W3=`https://github.com/${P}/${P}/`,G3=`https://s.${nn}/`,iH=`https://onboarding.${nn}/`,V3=Y+"DeeplGlobalState",_m=Y+"BingGlobalState",Om=Y+"YandexGlobalState",Nm=Y+"BaiduQianfanGlobalConfigStorageKey",K3=Y+"SiliconCloudGlobalConfigStorageKey",Y3=Y+"ZhipuGlobalConfigStorageKey";var jm=Y+"GoogleAccessToken",Q3=Y+"AuthFlow",J3=P+"-config-latest.json",Y8=Y+"AuthState",Fl=Y+"IframeMessage",oH=Y+"WaitForRateLimit",Bl=Y+"DocumentMessageAsk",Ot=Y+"DocumentMessageTellThirdParty",fn=Y+"showError",vi=Y+"showModal",_l=Y+"showToast",Z3=Y+"DocumentMessageThirdPartyTell",X3=Y+"DocumentMessageEventUpload",$3=Y+"DocumentMessageTypeStopJsSDK",Ol=Y+"DocumentMessageHandler",Nl=Y+"DocumentSetFloatBallActive",jl=`${Y}Share`,Ul=`${Y}ShowFloatBallGuide`,ro=Y+"DocumentMessageTempEnableSubtitleChanged",Ps=`${Y}ToggleMouseHoverTranslateDirectly`,e1=`${Y}ReqDraft`,t1=`${Y}ResDraft`,Q8=`${Y}Container`,n1=`${Y}SpecifiedContainer`,Hl="buildinConfig",Ms="localConfig",Um="openOptionsPage",r1="translateMangaMenuId",Hm="openAboutPage";var qm="openEbookViewer",zm="openEbookBuilder";var Si=`${Y}PageTranslatedStatus`,Rs=`${Y}MangaTranslatedStatus`,sH=`${Y}PageUrlChanged`,Sr=`${Y}ReceiveCommand`,a1=Y+"LastUseMouseHoverTime",Is=Y+"LastUseInputTime",cr=Y+"LastUseManualTranslatePageTime",uH=`${Y}PopupReceiveMessage`,Ti=Y+"DocumentMessageEventTogglePopup",Fs=`${K8}default_config.json`,lH=`${Y}Mark`,Jn=`${Y}Root`,i1=`${Y}Walked`,cH=`data-${P}-walked`,o1=`${Y}Paragraph`,s1=`data-${P}-paragraph`,ao=`data-${P}-translation-element-mark`,u1=`${Y}TranslationElementMark`,dH=`${Y}TranslatedMark`,ql=`${P}-input-injected-css`,l1=`${Y}LoadingId`,Wm=`data-${P}-loading-id`,c1=`${Y}ErrorId`,zl=`data-${P}-error-id`,J8=`${Y}AtomicBlockMark`,d1=`${Y}ExcludeMark`,mH=`data-${P}-exclude-mark`,Z8=`${Y}StayOriginalMark`,pH=`${Y}PreWhitespaceMark`,Wl=`${Y}InlineMark`,m1=`${Y}BlockMark`,gH=`${Y}Left`,fH=`${Y}Right`,hH=`${Y}Width`,bH=`${Y}Height`,yH=`${Y}Top`,xH=`${Y}FontSize`,Bs="lastRunTime";var vH=`${Y}GlobalStyleMark`,io=["@","#"],Gl=" --- ",p1=` -`,Lt=`${P}-target-wrapper`,SH=`${P}-pdf-target-container`,Vl=`${P}-target-inner`,TH=`${P}-source-wrapper`,Gm=`${P}-target-translation-block-wrapper`,CH=`${P}-root-translation-theme`,oo=`${Y}RootTranslationTheme`,g1=`${P}-target-translation-vertical-block-wrapper`,wH=`${P}-target-translation-pdf-block-wrapper`,f1=`${P}-target-translation-pre-whitespace`,Vm=`${P}-target-translation-inline-wrapper`;var h1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var b1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],y1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Rl,Rl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ia="zh-CN",EH=ae+"docs/communities/",AH=W3+"issues/1809",kH=W3+"issues/1179",Kl={type:Y+"ChildFrameToRootFrameIdentifier"},Km=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],_s=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],x1=["ctrl","alt","shift","cmd","command","option","control"];var Yl=ua()?Rl+"#general":"http://localhost:8000/dist/userscript/options/#general",Ym="user_from_plugin",dt="user_info",Ql=ae+"accounts/login?from=plugin",v1=Rl+"#general",DH=ae+"accounts/login?from=plugin&return_url="+encodeURIComponent(v1),S1=Ql+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",T1=Ql+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Os=ae+"profile/",Ns=ae+"auth/pricing/",Fn=ae+"pricing/",X8=ae+"download/",$8=ae+"topup?type=open_ai&",eA=ae+"topup?type=deepl&",C1=ae+"topup?type=comics&",LH=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",w1=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",PH=X8+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",MH=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Jl=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Qm=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",RH=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",E1=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",A1=$8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",k1=eA+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",D1=ae+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",tA=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",Jm=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",IH=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",FH=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",BH=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",_H=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=",L1=ae+"docs/usage/",OH=ae+"docs/communities/",js=ke().TRANSLATE_FILE_URL,NH=js+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",P1=js+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",M1=`${js}download-subtitle/`,R1=`${js}pdf-pro/`,I1=`${js}text/`,Ci=["deepl","openai","gemini","claude"],nA="G-BHWL0KMJB8",rA="7pr-olTJR6GKAjIW48UD0Q",U3="G-MKMD9LWFTR",H3="sitc4WmvShWYwfU0dANM3Q",q3="G-V5H2F5MJFJ",z3="UBjpGOLISEaY5LVXNj3WvQ";function Zl(){return yl()?[`https://www.google-analytics.com/mp/collect?measurement_id=${nA}&api_secret=${rA}`]:ua?[`https://www.google-analytics.com/mp/collect?measurement_id=${U3}&api_secret=${H3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${q3}&api_secret=${z3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${U3}&api_secret=${H3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${q3}&api_secret=${z3}`]}var Us=`https://analytics.${nn}/collect`,aA=`${ae}activities/components/image-pro`;function Zm(e,t){return`${aA}?utm_source=extension&utm_medium=extension&utm_campaign=${e}&lang=${t}`}var F1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",B1="0VmM83i2D1ICuYBf",Xl=`[${Il}-ctx-divider]`,$l=`${Il}_context_preview`;var so=console,Xm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),so.debug(ur.dim(xi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Hs=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&so.log(ur.dim(xi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&so.log(ur.green(xi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&so.warn(ur.yellow(xi+" WARN:"),...t)}error(...t){this.#e<=3&&so.error(ur.red(xi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&so.error(ur.red(xi+" FATAL:"),...t)}timing(){return this.level===0?new Xm:{reset:()=>{},stop:()=>{}}}},k=new Hs;var $m=/iPhone/i,_1=/iPod/i,O1=/iPad/i,N1=/\biOS-universal(?:.+)Mac\b/i,ep=/\bAndroid(?:.+)Mobile\b/i,j1=/Android/i,uo=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ec=/Silk/i,ga=/Windows Phone/i,U1=/\bWindows(?:.+)ARM\b/i,H1=/BlackBerry/i,q1=/BB10/i,z1=/Opera Mini/i,W1=/\b(CriOS|Chrome)(?:.+)Mobile/i,G1=/Mobile(?:.+)Firefox\b/i,V1=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function iA(e){return t=>t.test(e)}function Ve(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=iA(n),i={apple:{phone:a($m)&&!a(ga),ipod:a(_1),tablet:!a($m)&&(a(O1)||V1(t))&&!a(ga),universal:a(N1),device:(a($m)||a(_1)||a(O1)||a(N1)||V1(t))&&!a(ga)},amazon:{phone:a(uo),tablet:!a(uo)&&a(ec),device:a(uo)||a(ec)},android:{phone:!a(ga)&&a(uo)||!a(ga)&&a(ep),tablet:!a(ga)&&!a(uo)&&!a(ep)&&(a(ec)||a(j1)),device:!a(ga)&&(a(uo)||a(ec)||a(ep)||a(j1))||a(/\bokhttp\b/i)},windows:{phone:a(ga),tablet:a(U1),device:a(ga)||a(U1)},other:{blackberry:a(H1),blackberry10:a(q1),opera:a(z1),firefox:a(G1),chrome:a(W1),device:a(H1)||a(q1)||a(z1)||a(G1)||a(W1)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var tp="DENO",tc="CHROME",nc="FIREFOX";function K1(e){let t=tc;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=nc:/deno/i.test(n)&&(t=tp)}catch{}return e===tc&&t===tc||e===nc&&t===nc||e===tp&&t===tp}function Y1(){return K1(tc)}function Q1(){return typeof Deno<"u"}function Tr(){return ke().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:K1(nc)}function Zn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function qs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var J1={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Z1={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:J1,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:J1,query:()=>{},sendMessage:()=>{}}};var re;Q1()?re=Z1:re=globalThis.immersiveTranslateBrowserAPI;var uq=$1(2),X1=$1(3);function $1(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var oA=/\s+/g,sA=/[\t\n\v\f\r ]+/g;function e2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?uA:lA;return String(e).replace(t.style==="html"?sA:oA,t.trim?cA(n):n)}function uA(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function lA(){return" "}function cA(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var t2={}.hasOwnProperty;function dA(e){return e==null?"":e2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function mA(e){return X1(" "+dA(e)+" ")}function pA(e){let t=mA(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function vA(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function SA(e,t,n,r){t=CA(t,n,r);let a=[],i;if(t)for(i in t)rc.call(t,i)&&a.push([i,TA(e,t[i])]);return a.length===0?rp():a.sort(wA)}function TA(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of FA){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?l2(e)?"zh-TW":"zh-CN":t:"auto"}var d2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],ap=new Map(d2),BA=new Map(d2.map(([e,t])=>[t,e]));function m2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>BA.get(s));!t&&t!==0&&(t=25);let a=ic(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...ap.keys()]},o=a2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return ap.get(d)}}let[s,u]=o[0],l=ap.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],ip={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},p2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},op={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},sp={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function $(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return $(document?.documentElement?.lang||"en")}var wi=Y+"CacheKey_";function Ei(e,t){let n=wi+e;return re.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function _A(){let e=re.storage.local.refresh;e&&e()}function up(e,t){let n=wi+e;return re.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wi)).filter(r=>r!==wi+dt);if(n.length>0)return re.storage.local.remove(n)}}var mt={get:Ei,set:Ai,getExpired:up,setExpired:lp,remove:cp,clear:dp,refresh:_A};function ft(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function g2(e){if(e){let t=new Date(e.createTime),n=OA(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function OA(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ws(e){if(e?.isPro)return!0;let t=await mt.get(dt,null);return ft(t)}var f2=Y+"SyncStoreKey_";function Nt(e,t){let n=f2+e;return re.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function ot(e,t){let n=f2+e;return re.storage.sync.set({[n]:t})}var h2=Y+"StoreKey_";function ki(e,t){let n=h2+e;return re.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function b2(e,t){let n=h2+e;return re.storage.local.set({[n]:t})}var y2={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`+b+"]"}return r.pop(),a=b,f}},hE={parse:lE,stringify:fE},bE=hE,Sl=bE;var Z4=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function yE(e,t){return!!(e===t||Z4(e)&&Z4(t))}function xE(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),AE=(e,t)=>{for(var n in t)hm(e,n,{get:t[n],enumerable:!0})},fm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of TE(t))!wE.call(e,a)&&a!==n&&hm(e,a,{get:()=>t[a],enumerable:!(r=SE(t,a))||r.enumerable});return e},kE=(e,t,n)=>(fm(e,t,"default"),n&&fm(n,t,"default")),$4=(e,t,n)=>(n=e!=null?vE(CE(e)):{},fm(t||!e||!e.__esModule?hm(n,"default",{value:e,enumerable:!0}):n,e)),e3=EE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,h=Math.min,f=function(){return m.Date.now()};function y(A,D,I){var F,R,B,P,_,O,z=0,V=!1,ie=!1,je=!0;if(typeof A!="function")throw new TypeError(n);D=T(D)||0,S(I)&&(V=!!I.leading,ie="maxWait"in I,B=ie?b(T(I.maxWait)||0,D):B,je="trailing"in I?!!I.trailing:je);function Le(me){var fe=F,Se=R;return F=R=void 0,z=me,P=A.apply(Se,fe),P}function N(me){return z=me,_=setTimeout(we,D),V?Le(me):P}function q(me){var fe=me-O,Se=me-z,Ue=D-fe;return ie?h(Ue,B-Se):Ue}function Z(me){var fe=me-O,Se=me-z;return O===void 0||fe>=D||fe<0||ie&&Se>=B}function we(){var me=f();if(Z(me))return pe(me);_=setTimeout(we,q(me))}function pe(me){return _=void 0,je&&F?Le(me):(F=R=void 0,P)}function Ge(){_!==void 0&&clearTimeout(_),z=0,F=O=R=_=void 0}function de(){return _===void 0?P:pe(f())}function ge(){var me=f(),fe=Z(me);if(F=arguments,R=this,O=me,fe){if(_===void 0)return N(O);if(ie)return _=setTimeout(we,D),Le(O)}return _===void 0&&(_=setTimeout(we,D)),P}return ge.cancel=Ge,ge.flush=de,ge}function v(A,D,I){var F=!0,R=!0;if(typeof A!="function")throw new TypeError(n);return S(I)&&(F="leading"in I?!!I.leading:F,R="trailing"in I?!!I.trailing:R),y(A,D,{leading:F,maxWait:D,trailing:R})}function S(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function w(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||w(A)&&g.call(A)==a}function T(A){if(typeof A=="number")return A;if(C(A))return r;if(S(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=S(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var I=s.test(A);return I||u.test(A)?l(A.slice(2),I?2:8):o.test(A)?r:+A}t.exports=v}),t3={};AE(t3,{default:()=>Yn});var DE=$4(e3());kE(t3,$4(e3()));var{default:X4,...LE}=DE,Yn=X4!==void 0?X4:LE;var Cl=globalThis||(typeof window<"u"?window:self),PE=Object.create,ym=Object.defineProperty,ME=Object.getOwnPropertyDescriptor,RE=Object.getOwnPropertyNames,IE=Object.getPrototypeOf,FE=Object.prototype.hasOwnProperty,BE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_E=(e,t)=>{for(var n in t)ym(e,n,{get:t[n],enumerable:!0})},bm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of RE(t))!FE.call(e,a)&&a!==n&&ym(e,a,{get:()=>t[a],enumerable:!(r=ME(t,a))||r.enumerable});return e},OE=(e,t,n)=>(bm(e,t,"default"),n&&bm(n,t,"default")),r3=(e,t,n)=>(n=e!=null?PE(IE(e)):{},bm(t||!e||!e.__esModule?ym(n,"default",{value:e,enumerable:!0}):n,e)),a3=BE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Cl=="object"&&Cl&&Cl.Object===Object&&Cl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,h=Math.min,f=function(){return m.Date.now()};function y(T,A,D){var I,F,R,B,P,_,O=0,z=!1,V=!1,ie=!0;if(typeof T!="function")throw new TypeError(n);A=C(A)||0,v(D)&&(z=!!D.leading,V="maxWait"in D,R=V?b(C(D.maxWait)||0,A):R,ie="trailing"in D?!!D.trailing:ie);function je(ge){var me=I,fe=F;return I=F=void 0,O=ge,B=T.apply(fe,me),B}function Le(ge){return O=ge,P=setTimeout(Z,A),z?je(ge):B}function N(ge){var me=ge-_,fe=ge-O,Se=A-me;return V?h(Se,R-fe):Se}function q(ge){var me=ge-_,fe=ge-O;return _===void 0||me>=A||me<0||V&&fe>=R}function Z(){var ge=f();if(q(ge))return we(ge);P=setTimeout(Z,N(ge))}function we(ge){return P=void 0,ie&&I?je(ge):(I=F=void 0,B)}function pe(){P!==void 0&&clearTimeout(P),O=0,I=_=F=P=void 0}function Ge(){return P===void 0?B:we(f())}function de(){var ge=f(),me=q(ge);if(I=arguments,F=this,_=ge,me){if(P===void 0)return Le(_);if(V)return P=setTimeout(Z,A),je(_)}return P===void 0&&(P=setTimeout(Z,A)),B}return de.cancel=pe,de.flush=Ge,de}function v(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function S(T){return!!T&&typeof T=="object"}function w(T){return typeof T=="symbol"||S(T)&&g.call(T)==a}function C(T){if(typeof T=="number")return T;if(w(T))return r;if(v(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=v(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(i,"");var D=s.test(T);return D||u.test(T)?l(T.slice(2),D?2:8):o.test(T)?r:+T}t.exports=y}),i3={};_E(i3,{default:()=>Pn});var NE=r3(a3());OE(i3,r3(a3()));var{default:n3,...jE}=NE,Pn=n3!==void 0?n3:jE;var UE=Object.create,vm=Object.defineProperty,HE=Object.getOwnPropertyDescriptor,qE=Object.getOwnPropertyNames,zE=Object.getPrototypeOf,WE=Object.prototype.hasOwnProperty,GE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),VE=(e,t)=>{for(var n in t)vm(e,n,{get:t[n],enumerable:!0})},xm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qE(t))!WE.call(e,a)&&a!==n&&vm(e,a,{get:()=>t[a],enumerable:!(r=HE(t,a))||r.enumerable});return e},KE=(e,t,n)=>(xm(e,t,"default"),n&&xm(n,t,"default")),s3=(e,t,n)=>(n=e!=null?UE(zE(e)):{},xm(t||!e||!e.__esModule?vm(n,"default",{value:e,enumerable:!0}):n,e)),u3=GE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,b){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:b})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,q){var Z={};for(var we in N)q.indexOf(we)>=0||Object.prototype.hasOwnProperty.call(N,we)&&(Z[we]=N[we]);return Z}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},b=Object.assign||function(N){for(var q=1;q'+we+"",Se.onclick=function(){return R(Ue,fe)},Se.listener=function(G){(D(G)||I(G))&&_()},F(Se,fe),Ge&&Ge<1&&(Ge=1),!ge&&Ge&&S(Ge).then(function(){return R(Ue,fe)})},z=d.force=function(N,q){var Z=N.type,we=Z===void 0?5:Z,pe=N.text,Ge=N.buttonText,de=Ge===void 0?"OK":Ge,ge=N.callback,me=N.position,fe=me===void 0?f.positions.force||fe.top:me;w(),_();var Se=document.createElement("div"),Ue=C();Se.id=Ue;var G=document.createElement("div");G.classList.add(f.classes.textbox),G.classList.add(f.classes.backgroundInfo),G.innerHTML='
'+pe+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(T[we]),be.innerHTML=de,be.onclick=function(){R(Ue,fe),P(),ge?ge():q&&q()},Se.appendChild(G),Se.appendChild(be),Se.listener=function(at){D(at)&&be.click()},F(Se,fe),B()},V=d.confirm=function(N,q,Z){var we=N.text,pe=N.submitText,Ge=pe===void 0?"Yes":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.confirm||Ue.top:Se;w(),_();var G=document.createElement("div"),be=C();G.id=be;var at=document.createElement("div");at.classList.add(f.classes.textbox),at.classList.add(f.classes.backgroundInfo),at.innerHTML='
'+we+"
";var Je=document.createElement("div");Je.classList.add(f.classes.button),Je.classList.add(f.classes.elementHalf),Je.classList.add(f.classes.backgroundSuccess),Je.innerHTML=Ge,Je.onclick=function(){R(be,Ue),P(),me?me():q&&q()};var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(f.classes.elementHalf),xe.classList.add(f.classes.backgroundError),xe.innerHTML=ge,xe.onclick=function(){R(be,Ue),P(),fe?fe():Z&&Z()},G.appendChild(at),G.appendChild(Je),G.appendChild(xe),G.listener=function(vt){D(vt)?Je.click():I(vt)&&xe.click()},F(G,Ue),B(G,Ue)},ie=function(N,q,Z){var we=N.text,pe=N.submitText,Ge=pe===void 0?"Submit":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.input||Ue.top:Se,G=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var be=document.createElement("div"),at=C();be.id=at;var Je=document.createElement("div");Je.classList.add(f.classes.textbox),Je.classList.add(f.classes.backgroundInfo),Je.innerHTML='
'+we+"
";var xe=document.createElement("input");xe.classList.add(f.classes.inputField),xe.setAttribute("autocapitalize",G.autocapitalize||"none"),xe.setAttribute("autocomplete",G.autocomplete||"off"),xe.setAttribute("autocorrect",G.autocorrect||"off"),xe.setAttribute("autofocus",G.autofocus||"true"),xe.setAttribute("inputmode",G.inputmode||"verbatim"),xe.setAttribute("max",G.max||""),xe.setAttribute("maxlength",G.maxlength||""),xe.setAttribute("min",G.min||""),xe.setAttribute("minlength",G.minlength||""),xe.setAttribute("placeholder",G.placeholder||""),xe.setAttribute("spellcheck",G.spellcheck||"default"),xe.setAttribute("step",G.step||"any"),xe.setAttribute("type",G.type||"text"),xe.value=G.value||"",G.allowed&&(xe.oninput=function(){var Dt=void 0;if(Array.isArray(G.allowed)){for(var Ft="",An=G.allowed,sr=0;sr'+Z+"",fe.appendChild(Ue),de.forEach(function(be,at){var Je=be.type,xe=Je===void 0?1:Je,vt=be.text,Vt=be.handler,Dt=document.createElement("div");Dt.classList.add(T[xe]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Ft=de[at+1];Ft&&!Ft.type&&(Ft.type=1),Ft&&Ft.type===xe&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){R(Se,me),P(),Vt()},fe.appendChild(Dt)});var G=document.createElement("div");G.classList.add(f.classes.backgroundNeutral),G.classList.add(f.classes.button),G.innerHTML=pe,G.onclick=function(){R(Se,me),P(),Ge?Ge():q&&q()},fe.appendChild(G),fe.listener=function(be){I(be)&&G.click()},F(fe,me),B(fe,me)},Le=d.date=function(N,q,Z){var we=N.value,pe=we===void 0?new Date:we,Ge=N.submitText,de=Ge===void 0?"OK":Ge,ge=N.cancelText,me=ge===void 0?"Cancel":ge,fe=N.submitCallback,Se=N.cancelCallback,Ue=N.position,G=Ue===void 0?f.positions.date||G.top:Ue;w(),_();var be="▾",at=document.createElement("div"),Je=document.createElement("div"),xe=document.createElement("div"),vt=function(St){at.innerHTML=f.dateMonths[St.getMonth()],Je.innerHTML=St.getDate(),xe.innerHTML=St.getFullYear()},Vt=function(St){var nt=new Date(pe.getFullYear(),pe.getMonth()+1,0).getDate(),Kn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>nt&&(Kn=nt.toString()),St.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),pe.setDate(Number(Kn))},Dt=function(St){var nt=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=nt,pe.setFullYear(Number(nt))},Ft=function(St){vt(pe)},An=function(St){var nt=new Date(pe.getFullYear(),pe.getMonth()+St+1,0).getDate();pe.getDate()>nt&&pe.setDate(nt),pe.setMonth(pe.getMonth()+St),vt(pe)},sr=function(St){pe.setDate(pe.getDate()+St),vt(pe)},Ss=function(St){var nt=pe.getFullYear()+St;nt<0?pe.setFullYear(0):pe.setFullYear(pe.getFullYear()+St),vt(pe)},jr=document.createElement("div"),gi=C();jr.id=gi;var Qi=document.createElement("div");Qi.classList.add(f.classes.backgroundInfo);var pn=document.createElement("div");pn.classList.add(f.classes.dateSelectorInner);var fr=document.createElement("div");fr.classList.add(f.classes.button),fr.classList.add(f.classes.elementThird),fr.classList.add(f.classes.dateSelectorUp),fr.innerHTML=be;var gn=document.createElement("div");gn.classList.add(f.classes.button),gn.classList.add(f.classes.elementThird),gn.classList.add(f.classes.dateSelectorUp),gn.innerHTML=be;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=be,at.classList.add(f.classes.element),at.classList.add(f.classes.elementThird),at.innerHTML=f.dateMonths[pe.getMonth()],Je.classList.add(f.classes.element),Je.classList.add(f.classes.elementThird),Je.setAttribute("contentEditable",!0),Je.addEventListener("input",Vt),Je.addEventListener("blur",Ft),Je.innerHTML=pe.getDate(),xe.classList.add(f.classes.element),xe.classList.add(f.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Dt),xe.addEventListener("blur",Ft),xe.innerHTML=pe.getFullYear();var na=document.createElement("div");na.classList.add(f.classes.button),na.classList.add(f.classes.elementThird),na.innerHTML=be;var ra=document.createElement("div");ra.classList.add(f.classes.button),ra.classList.add(f.classes.elementThird),ra.innerHTML=be;var fi=document.createElement("div");fi.classList.add(f.classes.button),fi.classList.add(f.classes.elementThird),fi.innerHTML=be,fr.onclick=function(){return An(1)},gn.onclick=function(){return sr(1)},Vn.onclick=function(){return Ss(1)},na.onclick=function(){return An(-1)},ra.onclick=function(){return sr(-1)},fi.onclick=function(){return Ss(-1)};var kn=document.createElement("div");kn.classList.add(f.classes.button),kn.classList.add(f.classes.elementHalf),kn.classList.add(f.classes.backgroundSuccess),kn.innerHTML=de,kn.onclick=function(){R(gi,G),P(),fe?fe(pe):q&&q(pe)};var aa=document.createElement("div");aa.classList.add(f.classes.button),aa.classList.add(f.classes.elementHalf),aa.classList.add(f.classes.backgroundError),aa.innerHTML=me,aa.onclick=function(){R(gi,G),P(),Se?Se(pe):Z&&Z(pe)},pn.appendChild(fr),pn.appendChild(gn),pn.appendChild(Vn),pn.appendChild(at),pn.appendChild(Je),pn.appendChild(xe),pn.appendChild(na),pn.appendChild(ra),pn.appendChild(fi),Qi.appendChild(pn),jr.appendChild(Qi),jr.appendChild(kn),jr.appendChild(aa),jr.listener=function(St){D(St)?kn.click():I(St)&&aa.click()},F(jr,G),B(jr,G)};d.default={alert:O,force:z,confirm:V,input:ie,select:je,date:Le,setOptions:y,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),l3={};VE(l3,{default:()=>wl});var YE=s3(u3());KE(l3,s3(u3()));var{default:o3,...QE}=YE,wl=o3!==void 0?o3:QE;var El=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Es(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Sm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function c3(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ieo[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),JE=e=>Object.keys(eo).find(t=>eo[t]===e),ZE=e=>Object.keys(yr).find(t=>yr[t]===e);function h3(e){g3=e||"all"}function As(){return g3||"all"}function XE(){return st.slice(0)}function $E(){return st.map(e=>JE(e)||ZE(e)||String.fromCharCode(e))}function e8(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>ks(o))})})}),e}function t8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function n8(e){return typeof e=="string"&&(e=ks(e)),st.indexOf(e)!==-1}function r8(e,t){let n,r;e||(e=As());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&st.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&st.splice(0,st.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in yr)yr[r]===t&&(da[r]=!1)}}function b3(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&Cm(n)});else if(typeof e=="object")e.key&&Cm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),Cm({key:e,scope:n,method:r,splitKey:"+"})}}var Cm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Tm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":ks(u);if(!Tt[l])return;t||(t=As());let c=s>1?Sm(yr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&c3(d.mods,c)))})};function m3(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(st),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function p3(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!da.filter.call(this,e))return;if((r===93||r===224)&&(r=91),st.indexOf(r)===-1&&r!==229&&st.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Al[i];e[i]&&st.indexOf(o)===-1?st.push(o):!e[i]&&st.indexOf(o)>-1?st.splice(st.indexOf(o),1):i==="metaKey"&&e[i]&&st.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(st=st.slice(st.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in yr)yr[i]===r&&(da[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Al[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(st.indexOf(17)===-1&&st.push(17),st.indexOf(18)===-1&&st.push(18),tn[17]=!0,tn[18]=!0);let a=As();if(n)for(let i=0;i-1}function da(e,t,n){st=[];let r=Tm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&b3(e,i);s1&&(a=Sm(yr,e)),e=e[e.length-1],e=e==="*"?"*":ks(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!i8(o)&&window&&(f3.push(o),Es(o,"keydown",p=>{p3(p,o)},d),d3||(d3=!0,Es(window,"focus",()=>{st=[]},d),Es(window,"click",()=>{st=[]},!1)),Es(o,"keyup",p=>{p3(p,o),a8(p)},d))}function o8(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var wm={getPressedKeyString:$E,setScope:h3,getScope:As,deleteScope:r8,getPressedKeyCodes:XE,getAllKeyCodes:e8,isPressed:n8,filter:t8,trigger:o8,unbind:b3,keyMap:eo,modifier:yr,modifierMap:Al};for(let e in wm)Object.prototype.hasOwnProperty.call(wm,e)&&(da[e]=wm[e]);if(typeof window<"u"){let e=window.hotkeys;da.noConflict=t=>(t&&window.hotkeys===da&&(window.hotkeys=e),da),window.hotkeys=da}var jn=da;var s8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},x3={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},_t={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Mn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ma={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},H=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=H.getVersionPrecision(e),a=H.getVersionPrecision(t),i=Math.max(r,a),o=0,s=H.map([e,t],u=>{let l=i-H.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return H.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return s8[e]}static getBrowserTypeByAlias(e){return x3[e]||""}},ut=/version\/(\d+(\.?_?\d+)+)/i,u8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=H.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=H.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=H.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=H.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=H.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=H.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=H.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=H.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=H.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=H.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=H.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=H.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=H.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=H.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=H.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=H.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=H.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=H.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=H.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=H.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=H.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=H.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=H.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=H.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=H.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=H.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:H.getFirstMatch(r,e),version:H.getSecondMatch(r,e)}}}],l8=u8,c8=[{test:[/Roku\/DVP/],describe(e){let t=H.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Mn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=H.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Mn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=H.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=H.getWindowsVersionName(t);return{name:Mn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Mn.iOS},n=H.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=H.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=H.getMacOSVersionName(t),r={name:Mn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=H.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Mn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=H.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=H.getAndroidVersionName(t),r={name:Mn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=H.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Mn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=H.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||H.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||H.getFirstMatch(/\bbb(\d+)/i,e);return{name:Mn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=H.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Mn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=H.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Mn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Mn.Linux}}},{test:[/CrOS/],describe(){return{name:Mn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=H.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Mn.PlayStation4,version:t}}}],d8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=H.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:_t.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:_t.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:_t.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:_t.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:_t.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=H.getFirstMatch(/(ipod|iphone)/i,e);return{type:_t.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:_t.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:_t.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:_t.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:_t.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:_t.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:_t.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:_t.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:_t.tv}}}],m8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ma.Blink};let t=H.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ma.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ma.Trident},n=H.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ma.Presto},n=H.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ma.Gecko},n=H.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ma.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ma.WebKit},n=H.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],p8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=H.find(l8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=H.find(c8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=H.find(d8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=H.find(m8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return H.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=H.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=H.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=H.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=H.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(H.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},y3=p8,g8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new y3(e,t)}static parse(e){return new y3(e).getResult()}static get BROWSER_MAP(){return x3}static get ENGINE_MAP(){return Ma}static get OS_MAP(){return Mn}static get PLATFORMS_MAP(){return _t}},to=g8;var{entries:k3,setPrototypeOf:v3,isFrozen:f8,getPrototypeOf:h8,getOwnPropertyDescriptor:b8}=Object,{freeze:Rn,seal:vr,create:y8}=Object,{apply:Pm,construct:Mm}=typeof Reflect<"u"&&Reflect;Pm||(Pm=function(e,t,n){return e.apply(t,n)});Rn||(Rn=function(e){return e});vr||(vr=function(e){return e});Mm||(Mm=function(e,t){return new e(...t)});var x8=lr(Array.prototype.forEach),S3=lr(Array.prototype.pop),Ds=lr(Array.prototype.push),Ll=lr(String.prototype.toLowerCase),Em=lr(String.prototype.toString),v8=lr(String.prototype.match),xr=lr(String.prototype.replace),S8=lr(String.prototype.indexOf),T8=lr(String.prototype.trim),Qn=lr(RegExp.prototype.test),Ls=C8(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),D8=vr(/\${[\w\W]*}/gm),L8=vr(/^data-[\-\w.\u00B7-\uFFFF]/),P8=vr(/^aria-[\-\w]+$/),D3=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),M8=vr(/^(?:\w+script|data):/i),R8=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),L3=vr(/^html$/i),A3=Object.freeze({__proto__:null,MUSTACHE_EXPR:A8,ERB_EXPR:k8,TMPLIT_EXPR:D8,DATA_ATTR:L8,ARIA_ATTR:P8,IS_ALLOWED_URI:D3,IS_SCRIPT_OR_DATA:M8,ATTR_WHITESPACE:R8,DOCTYPE_NAME:L3}),I8=()=>typeof window>"u"?null:window,F8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function P3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I8(),t=M=>P3(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,b=kl(g,"cloneNode"),h=kl(g,"nextSibling"),f=kl(g,"childNodes"),y=kl(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,S="",{implementation:w,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:A}=a,{importNode:D}=n,I={};t.isSupported=typeof k3=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:P,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:z}=A3,{IS_ALLOWED_URI:V}=A3,ie=null,je=Oe({},[...T3,...Am,...km,...Dm,...C3]),Le=null,N=Oe({},[...w3,...Lm,...E3,...Dl]),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,we=null,pe=!0,Ge=!0,de=!1,ge=!0,me=!1,fe=!1,Se=!1,Ue=!1,G=!1,be=!1,at=!1,Je=!0,xe=!1,vt="user-content-",Vt=!0,Dt=!1,Ft={},An=null,sr=Oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ss=null,jr=Oe({},["audio","video","img","source","image","track"]),gi=null,Qi=Oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pn="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",gn="http://www.w3.org/1999/xhtml",Vn=gn,na=!1,ra=null,fi=Oe({},[pn,fr,gn],Em),kn,aa=["application/xhtml+xml","text/html"],St="text/html",nt,Kn=null,KC=a.createElement("form"),L4=function(M){return M instanceof RegExp||M instanceof Function},Jd=function(M){if(!(Kn&&Kn===M)){if((!M||typeof M!="object")&&(M={}),M=no(M),kn=aa.indexOf(M.PARSER_MEDIA_TYPE)===-1?kn=St:kn=M.PARSER_MEDIA_TYPE,nt=kn==="application/xhtml+xml"?Em:Ll,ie="ALLOWED_TAGS"in M?Oe({},M.ALLOWED_TAGS,nt):je,Le="ALLOWED_ATTR"in M?Oe({},M.ALLOWED_ATTR,nt):N,ra="ALLOWED_NAMESPACES"in M?Oe({},M.ALLOWED_NAMESPACES,Em):fi,gi="ADD_URI_SAFE_ATTR"in M?Oe(no(Qi),M.ADD_URI_SAFE_ATTR,nt):Qi,Ss="ADD_DATA_URI_TAGS"in M?Oe(no(jr),M.ADD_DATA_URI_TAGS,nt):jr,An="FORBID_CONTENTS"in M?Oe({},M.FORBID_CONTENTS,nt):sr,Z="FORBID_TAGS"in M?Oe({},M.FORBID_TAGS,nt):{},we="FORBID_ATTR"in M?Oe({},M.FORBID_ATTR,nt):{},Ft="USE_PROFILES"in M?M.USE_PROFILES:!1,pe=M.ALLOW_ARIA_ATTR!==!1,Ge=M.ALLOW_DATA_ATTR!==!1,de=M.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=M.SAFE_FOR_TEMPLATES||!1,fe=M.WHOLE_DOCUMENT||!1,G=M.RETURN_DOM||!1,be=M.RETURN_DOM_FRAGMENT||!1,at=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Je=M.SANITIZE_DOM!==!1,xe=M.SANITIZE_NAMED_PROPS||!1,Vt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,V=M.ALLOWED_URI_REGEXP||D3,Vn=M.NAMESPACE||gn,q=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&L4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&L4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Ge=!1),be&&(G=!0),Ft&&(ie=Oe({},[...C3]),Le=[],Ft.html===!0&&(Oe(ie,T3),Oe(Le,w3)),Ft.svg===!0&&(Oe(ie,Am),Oe(Le,Lm),Oe(Le,Dl)),Ft.svgFilters===!0&&(Oe(ie,km),Oe(Le,Lm),Oe(Le,Dl)),Ft.mathMl===!0&&(Oe(ie,Dm),Oe(Le,E3),Oe(Le,Dl))),M.ADD_TAGS&&(ie===je&&(ie=no(ie)),Oe(ie,M.ADD_TAGS,nt)),M.ADD_ATTR&&(Le===N&&(Le=no(Le)),Oe(Le,M.ADD_ATTR,nt)),M.ADD_URI_SAFE_ATTR&&Oe(gi,M.ADD_URI_SAFE_ATTR,nt),M.FORBID_CONTENTS&&(An===sr&&(An=no(An)),Oe(An,M.FORBID_CONTENTS,nt)),Vt&&(ie["#text"]=!0),fe&&Oe(ie,["html","head","body"]),ie.table&&(Oe(ie,["tbody"]),delete Z.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=F8(p,r)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Rn&&Rn(M),Kn=M}},P4=Oe({},["mi","mo","mn","ms","mtext"]),M4=Oe({},["foreignobject","desc","title","annotation-xml"]),YC=Oe({},["title","style","font","a","script"]),dl=Oe({},Am);Oe(dl,km),Oe(dl,w8);let Zd=Oe({},Dm);Oe(Zd,E8);let QC=function(M){let se=y(M);(!se||!se.tagName)&&(se={namespaceURI:Vn,tagName:"template"});let Q=Ll(M.tagName),$e=Ll(se.tagName);return ra[M.namespaceURI]?M.namespaceURI===fr?se.namespaceURI===gn?Q==="svg":se.namespaceURI===pn?Q==="svg"&&($e==="annotation-xml"||P4[$e]):!!dl[Q]:M.namespaceURI===pn?se.namespaceURI===gn?Q==="math":se.namespaceURI===fr?Q==="math"&&M4[$e]:!!Zd[Q]:M.namespaceURI===gn?se.namespaceURI===fr&&!M4[$e]||se.namespaceURI===pn&&!P4[$e]?!1:!Zd[Q]&&(YC[Q]||!dl[Q]):!!(kn==="application/xhtml+xml"&&ra[M.namespaceURI]):!1},Ji=function(M){Ds(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},Xd=function(M,se){try{Ds(t.removed,{attribute:se.getAttributeNode(M),from:se})}catch{Ds(t.removed,{attribute:null,from:se})}if(se.removeAttribute(M),M==="is"&&!Le[M])if(G||be)try{Ji(se)}catch{}else try{se.setAttribute(M,"")}catch{}},R4=function(M){let se,Q;if(Ue)M=""+M;else{let Dn=v8(M,/^[\r\n\t ]+/);Q=Dn&&Dn[0]}kn==="application/xhtml+xml"&&Vn===gn&&(M=''+M+"");let $e=v?v.createHTML(M):M;if(Vn===gn)try{se=new m().parseFromString($e,kn)}catch{}if(!se||!se.documentElement){se=w.createDocument(Vn,"template",null);try{se.documentElement.innerHTML=na?S:$e}catch{}}let Kt=se.body||se.documentElement;return M&&Q&&Kt.insertBefore(a.createTextNode(Q),Kt.childNodes[0]||null),Vn===gn?A.call(se,fe?"html":"body")[0]:fe?se.documentElement:Kt},I4=function(M){return C.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},JC=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},ml=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},ia=function(M,se,Q){I[M]&&x8(I[M],$e=>{$e.call(t,se,Q,Kn)})},F4=function(M){let se;if(ia("beforeSanitizeElements",M,null),JC(M))return Ji(M),!0;let Q=nt(M.nodeName);if(ia("uponSanitizeElement",M,{tagName:Q,allowedTags:ie}),M.hasChildNodes()&&!ml(M.firstElementChild)&&(!ml(M.content)||!ml(M.content.firstElementChild))&&Qn(/<[/\w]/g,M.innerHTML)&&Qn(/<[/\w]/g,M.textContent))return Ji(M),!0;if(!ie[Q]||Z[Q]){if(!Z[Q]&&_4(Q)&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q)))return!1;if(Vt&&!An[Q]){let $e=y(M)||M.parentNode,Kt=f(M)||M.childNodes;if(Kt&&$e){let Dn=Kt.length;for(let Nn=Dn-1;Nn>=0;--Nn)$e.insertBefore(b(Kt[Nn],!0),h(M))}}return Ji(M),!0}return M instanceof u&&!QC(M)||(Q==="noscript"||Q==="noembed")&&Qn(/<\/no(script|embed)/i,M.innerHTML)?(Ji(M),!0):(me&&M.nodeType===3&&(se=M.textContent,se=xr(se,F," "),se=xr(se,R," "),se=xr(se,B," "),M.textContent!==se&&(Ds(t.removed,{element:M.cloneNode()}),M.textContent=se)),ia("afterSanitizeElements",M,null),!1)},B4=function(M,se,Q){if(Je&&(se==="id"||se==="name")&&(Q in a||Q in KC))return!1;if(!(Ge&&!we[se]&&Qn(P,se))&&!(pe&&Qn(_,se))){if(!Le[se]||we[se]){if(!(_4(M)&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,M)||q.tagNameCheck instanceof Function&&q.tagNameCheck(M))&&(q.attributeNameCheck instanceof RegExp&&Qn(q.attributeNameCheck,se)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(se))||se==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q))))return!1}else if(!gi[se]&&!Qn(V,xr(Q,z,""))&&!((se==="src"||se==="xlink:href"||se==="href")&&M!=="script"&&S8(Q,"data:")===0&&Ss[M])&&!(de&&!Qn(O,xr(Q,z,"")))&&Q)return!1}return!0},_4=function(M){return M.indexOf("-")>0},O4=function(M){let se,Q,$e,Kt;ia("beforeSanitizeAttributes",M,null);let{attributes:Dn}=M;if(!Dn)return;let Nn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le};for(Kt=Dn.length;Kt--;){se=Dn[Kt];let{name:$t,namespaceURI:Zi}=se;if(Q=$t==="value"?se.value:T8(se.value),$e=nt($t),Nn.attrName=$e,Nn.attrValue=Q,Nn.keepAttr=!0,Nn.forceKeepAttr=void 0,ia("uponSanitizeAttribute",M,Nn),Q=Nn.attrValue,Nn.forceKeepAttr||(Xd($t,M),!Nn.keepAttr))continue;if(!ge&&Qn(/\/>/i,Q)){Xd($t,M);continue}me&&(Q=xr(Q,F," "),Q=xr(Q,R," "),Q=xr(Q,B," "));let N4=nt(M.nodeName);if(B4(N4,$e,Q)){if(xe&&($e==="id"||$e==="name")&&(Xd($t,M),Q=vt+Q),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zi)switch(p.getAttributeType(N4,$e)){case"TrustedHTML":{Q=v.createHTML(Q);break}case"TrustedScriptURL":{Q=v.createScriptURL(Q);break}}try{Zi?M.setAttributeNS(Zi,$t,Q):M.setAttribute($t,Q),S3(t.removed)}catch{}}}ia("afterSanitizeAttributes",M,null)},ZC=function M(se){let Q,$e=I4(se);for(ia("beforeSanitizeShadowDOM",se,null);Q=$e.nextNode();)ia("uponSanitizeShadowNode",Q,null),!F4(Q)&&(Q.content instanceof i&&M(Q.content),O4(Q));ia("afterSanitizeShadowDOM",se,null)};return t.sanitize=function(M){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,$e,Kt,Dn;if(na=!M,na&&(M=""),typeof M!="string"&&!ml(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw Ls("dirty is not a string, aborting")}else throw Ls("toString is not a function");if(!t.isSupported)return M;if(Se||Jd(se),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let Zi=nt(M.nodeName);if(!ie[Zi]||Z[Zi])throw Ls("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)Q=R4(""),$e=Q.ownerDocument.importNode(M,!0),$e.nodeType===1&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?Q=$e:Q.appendChild($e);else{if(!G&&!me&&!fe&&M.indexOf("<")===-1)return v&&at?v.createHTML(M):M;if(Q=R4(M),!Q)return G?null:at?S:""}Q&&Ue&&Ji(Q.firstChild);let Nn=I4(Dt?M:Q);for(;Kt=Nn.nextNode();)F4(Kt)||(Kt.content instanceof i&&ZC(Kt.content),O4(Kt));if(Dt)return M;if(G){if(be)for(Dn=T.call(Q.ownerDocument);Q.firstChild;)Dn.appendChild(Q.firstChild);else Dn=Q;return(Le.shadowroot||Le.shadowrootmod)&&(Dn=D.call(n,Dn,!0)),Dn}let $t=fe?Q.outerHTML:Q.innerHTML;return fe&&ie["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Qn(L3,Q.ownerDocument.doctype.name)&&($t=" +`+$t),me&&($t=xr($t,F," "),$t=xr($t,R," "),$t=xr($t,B," ")),v&&at?v.createHTML($t):$t},t.setConfig=function(M){Jd(M),Se=!0},t.clearConfig=function(){Kn=null,Se=!1},t.isValidAttribute=function(M,se,Q){Kn||Jd({});let $e=nt(M),Kt=nt(se);return B4($e,Kt,Q)},t.addHook=function(M,se){typeof se=="function"&&(I[M]=I[M]||[],Ds(I[M],se))},t.removeHook=function(M){if(I[M])return S3(I[M])},t.removeHooks=function(M){I[M]&&(I[M]=[])},t.removeAllHooks=function(){I={}},t}var Ze=P3();var B8=Object.create,Im=Object.defineProperty,_8=Object.getOwnPropertyDescriptor,O8=Object.getOwnPropertyNames,N8=Object.getPrototypeOf,j8=Object.prototype.hasOwnProperty,Fm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U8=(e,t)=>{for(var n in t)Im(e,n,{get:t[n],enumerable:!0})},Rm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of O8(t))!j8.call(e,a)&&a!==n&&Im(e,a,{get:()=>t[a],enumerable:!(r=_8(t,a))||r.enumerable});return e},H8=(e,t,n)=>(Rm(e,t,"default"),n&&Rm(n,t,"default")),R3=(e,t,n)=>(n=e!=null?B8(N8(e)):{},Rm(t||!e||!e.__esModule?Im(n,"default",{value:e,enumerable:!0}):n,e)),q8=Fm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,b,h,f){return o(b)+(h||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(G){if(!(!G.parentNode||typeof G.parentNode.tagName>"u")){var be=this._getInnerText(G);if(!(be.length<25)){var at=this._getNodeAncestors(G,5);if(at.length!==0){var Je=0;Je+=1,Je+=be.split(",").length,Je+=Math.min(Math.floor(be.length/100),3),this._forEachNode(at,function(xe,vt){if(!(!xe.tagName||!xe.parentNode||typeof xe.parentNode.tagName>"u")){if(typeof xe.readability>"u"&&(this._initializeNode(xe),b.push(xe)),vt===0)var Vt=1;else vt===1?Vt=2:Vt=vt*3;xe.readability.contentScore+=Je/Vt}})}}}});for(var h=[],f=0,y=b.length;fC.readability.contentScore){h.splice(w,0,v),h.length>this._nbTopCandidates&&h.pop();break}}}var T=h[0]||null,A=!1,D;if(T===null||T.tagName==="BODY"){for(T=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),T.appendChild(r.firstChild);r.appendChild(T),this._initializeNode(T)}else if(T){for(var I=[],F=1;F=.75&&I.push(this._getNodeAncestors(h[F]));var R=3;if(I.length>=R)for(D=T.parentNode;D.tagName!=="BODY";){for(var B=0,P=0;P=R){T=D;break}D=D.parentNode}T.readability||this._initializeNode(T),D=T.parentNode;for(var _=T.readability.contentScore,O=_/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var z=D.readability.contentScore;if(z_){T=D;break}_=D.readability.contentScore,D=D.parentNode}for(D=T.parentNode;D.tagName!="BODY"&&D.children.length==1;)T=D,D=T.parentNode;T.readability||this._initializeNode(T)}var V=a.createElement("DIV");i&&(V.id="readability-content");var ie=Math.max(10,T.readability.contentScore*.2);D=T.parentNode;for(var je=D.children,Le=0,N=je.length;Le=ie)Z=!0;else if(q.nodeName==="P"){var pe=this._getLinkDensity(q),Ge=this._getInnerText(q),de=Ge.length;(de>80&&pe<.25||de<80&&de>0&&pe===0&&Ge.search(/\.( |$)/)!==-1)&&(Z=!0)}}Z&&(this.log("Appending node:",q),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(q.nodeName)===-1&&(this.log("Altering sibling:",q,"to div."),q=this._setNodeTag(q,"DIV")),V.appendChild(q),je=D.children,Le-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+V.innerHTML),this._prepArticle(V),this._debug&&this.log("Article content post-prep: "+V.innerHTML),A)T.id="readability-page-1",T.className="page";else{var ge=a.createElement("DIV");for(ge.id="readability-page-1",ge.className="page";V.firstChild;)ge.appendChild(V.firstChild);V.appendChild(ge)}this._debug&&this.log("Article content after paging: "+V.innerHTML);var me=!0,fe=this._getInnerText(V,!0).length;if(fe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,h=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||b>Math.floor(m/3)||!s&&h<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||f===1&&C<75||f>1;if(s&&T){for(var A=0;A1)return T;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return T}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),z8=Fm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),I3=Fm((e,t)=>{var n=q8(),r=z8();t.exports={Readability:n,isProbablyReaderable:r}}),F3={};U8(F3,{Readability:()=>Pl,default:()=>O3,isProbablyReaderable:()=>_3});var B3=R3(I3());H8(F3,R3(I3()));var{Readability:Pl,isProbablyReaderable:_3}=B3,{default:M3,...W8}=B3,O3=M3!==void 0?M3:W8;var G8=wl.alert;var Y="immersiveTranslate",yi="Immersive Translate",L="immersive-translate",Rl="imt";var nn="immersivetranslate.com",V8=`https://config.${nn}/`,iH=`https://app.${nn}/`,ae=oa()||rm()?`https://${nn}/`:`https://test.${nn}/`,Ml=`https://dash.${nn}/`,rt=oa()||rm()?`https://api2.${nn}/`:`https://test-api2.${nn}/`,q3=`https://github.com/${L}/${L}/`,z3=`https://s.${nn}/`,oH=`https://onboarding.${nn}/`,W3=Y+"DeeplGlobalState",Bm=Y+"BingGlobalState",_m=Y+"YandexGlobalState",Om=Y+"BaiduQianfanGlobalConfigStorageKey",G3=Y+"SiliconCloudGlobalConfigStorageKey",V3=Y+"ZhipuGlobalConfigStorageKey";var Nm=Y+"GoogleAccessToken",K3=Y+"AuthFlow",Y3=L+"-config-latest.json",K8=Y+"AuthState",Il=Y+"IframeMessage",sH=Y+"WaitForRateLimit",Fl=Y+"DocumentMessageAsk",Ot=Y+"DocumentMessageTellThirdParty",Un=Y+"showError",xi=Y+"showModal",Bl=Y+"showToast",Q3=Y+"DocumentMessageThirdPartyTell",J3=Y+"DocumentMessageEventUpload",Z3=Y+"DocumentMessageTypeStopJsSDK",_l=Y+"DocumentMessageHandler",Ol=Y+"DocumentSetFloatBallActive",Nl=`${Y}Share`,jl=`${Y}ShowFloatBallGuide`,ro=Y+"DocumentMessageTempEnableSubtitleChanged",Ps=`${Y}ToggleMouseHoverTranslateDirectly`,X3=`${Y}ReqDraft`,$3=`${Y}ResDraft`,Y8=`${Y}Container`,e1=`${Y}SpecifiedContainer`,Ul="buildinConfig",Ms="localConfig",jm="openOptionsPage",t1="translateMangaMenuId",Um="openAboutPage";var Hm="openEbookViewer",qm="openEbookBuilder";var vi=`${Y}PageTranslatedStatus`,Rs=`${Y}MangaTranslatedStatus`,uH=`${Y}PageUrlChanged`,Sr=`${Y}ReceiveCommand`,n1=Y+"LastUseMouseHoverTime",zm=Y+"LastUseInputTime",cr=Y+"LastUseManualTranslatePageTime",lH=`${Y}PopupReceiveMessage`,Si=Y+"DocumentMessageEventTogglePopup",Is=`${V8}default_config.json`,cH=`${Y}Mark`,Jn=`${Y}Root`,r1=`${Y}Walked`,dH=`data-${L}-walked`,a1=`${Y}Paragraph`,i1=`data-${L}-paragraph`,ao=`data-${L}-translation-element-mark`,o1=`${Y}TranslationElementMark`,mH=`${Y}TranslatedMark`,Hl=`${L}-input-injected-css`,s1=`${Y}LoadingId`,Wm=`data-${L}-loading-id`,u1=`${Y}ErrorId`,ql=`data-${L}-error-id`,Q8=`${Y}AtomicBlockMark`,l1=`${Y}ExcludeMark`,pH=`data-${L}-exclude-mark`,J8=`${Y}StayOriginalMark`,gH=`${Y}PreWhitespaceMark`,zl=`${Y}InlineMark`,c1=`${Y}BlockMark`,fH=`${Y}Left`,hH=`${Y}Right`,bH=`${Y}Width`,yH=`${Y}Height`,xH=`${Y}Top`,vH=`${Y}FontSize`,Fs="lastRunTime";var SH=`${Y}GlobalStyleMark`,io=["@","#"],Wl=" --- ",d1=` +`,Lt=`${L}-target-wrapper`,TH=`${L}-pdf-target-container`,Gl=`${L}-target-inner`,CH=`${L}-source-wrapper`,Gm=`${L}-target-translation-block-wrapper`,wH=`${L}-root-translation-theme`,oo=`${Y}RootTranslationTheme`,m1=`${L}-target-translation-vertical-block-wrapper`,EH=`${L}-target-translation-pdf-block-wrapper`,p1=`${L}-target-translation-pre-whitespace`,Vm=`${L}-target-translation-inline-wrapper`;var g1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var f1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],h1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Ml,Ml+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ra="zh-CN",AH=ae+"docs/communities/",kH=q3+"issues/1809",DH=q3+"issues/1179",Vl={type:Y+"ChildFrameToRootFrameIdentifier"},Km=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Bs=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],b1=["ctrl","alt","shift","cmd","command","option","control"];var Kl=oa()?Ml+"#general":"http://localhost:8000/dist/userscript/options/#general",Ym="user_from_plugin",ct="user_info",Yl=ae+"accounts/login?from=plugin",y1=Ml+"#general",LH=ae+"accounts/login?from=plugin&return_url="+encodeURIComponent(y1),x1=Yl+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",v1=Yl+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",_s=ae+"profile/",Os=ae+"auth/pricing/",In=ae+"pricing/",Z8=ae+"download/",X8=ae+"topup?type=open_ai&",$8=ae+"topup?type=deepl&",S1=ae+"topup?type=comics&",PH=In+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",T1=In+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",MH=Z8+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",RH=In+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Ql=In+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Qm=In+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",IH=_s+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",C1=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",w1=X8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",E1=$8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",A1=ae+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",eA=In+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",Jm=_s+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",FH=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",BH=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",_H=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",OH=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=",k1=ae+"docs/usage/",NH=ae+"docs/communities/",Ns=ke().TRANSLATE_FILE_URL,jH=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",D1=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",L1=`${Ns}download-subtitle/`,P1=`${Ns}pdf-pro/`,M1=`${Ns}text/`,Ti=["deepl","openai","gemini","claude"],tA="G-BHWL0KMJB8",nA="7pr-olTJR6GKAjIW48UD0Q",N3="G-MKMD9LWFTR",j3="sitc4WmvShWYwfU0dANM3Q",U3="G-V5H2F5MJFJ",H3="UBjpGOLISEaY5LVXNj3WvQ";function Jl(){return bl()?[`https://www.google-analytics.com/mp/collect?measurement_id=${tA}&api_secret=${nA}`]:oa?[`https://www.google-analytics.com/mp/collect?measurement_id=${N3}&api_secret=${j3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${U3}&api_secret=${H3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${N3}&api_secret=${j3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${U3}&api_secret=${H3}`]}var js=`https://analytics.${nn}/collect`,rA=`${ae}activities/components/image-pro`;function Zm(e,t){return`${rA}?utm_source=extension&utm_medium=extension&utm_campaign=${e}&lang=${t}`}var R1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",I1="0VmM83i2D1ICuYBf",Zl=`[${Rl}-ctx-divider]`,Xl=`${Rl}_context_preview`;var so=console,Xm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),so.debug(ur.dim(yi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Us=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&so.log(ur.dim(yi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&so.log(ur.green(yi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&so.warn(ur.yellow(yi+" WARN:"),...t)}error(...t){this.#e<=3&&so.error(ur.red(yi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&so.error(ur.red(yi+" FATAL:"),...t)}timing(){return this.level===0?new Xm:{reset:()=>{},stop:()=>{}}}},k=new Us;var $m=/iPhone/i,F1=/iPod/i,B1=/iPad/i,_1=/\biOS-universal(?:.+)Mac\b/i,ep=/\bAndroid(?:.+)Mobile\b/i,O1=/Android/i,uo=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,$l=/Silk/i,ma=/Windows Phone/i,N1=/\bWindows(?:.+)ARM\b/i,j1=/BlackBerry/i,U1=/BB10/i,H1=/Opera Mini/i,q1=/\b(CriOS|Chrome)(?:.+)Mobile/i,z1=/Mobile(?:.+)Firefox\b/i,W1=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function aA(e){return t=>t.test(e)}function Ve(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=aA(n),i={apple:{phone:a($m)&&!a(ma),ipod:a(F1),tablet:!a($m)&&(a(B1)||W1(t))&&!a(ma),universal:a(_1),device:(a($m)||a(F1)||a(B1)||a(_1)||W1(t))&&!a(ma)},amazon:{phone:a(uo),tablet:!a(uo)&&a($l),device:a(uo)||a($l)},android:{phone:!a(ma)&&a(uo)||!a(ma)&&a(ep),tablet:!a(ma)&&!a(uo)&&!a(ep)&&(a($l)||a(O1)),device:!a(ma)&&(a(uo)||a($l)||a(ep)||a(O1))||a(/\bokhttp\b/i)},windows:{phone:a(ma),tablet:a(N1),device:a(ma)||a(N1)},other:{blackberry:a(j1),blackberry10:a(U1),opera:a(H1),firefox:a(z1),chrome:a(q1),device:a(j1)||a(U1)||a(H1)||a(z1)||a(q1)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var tp="DENO",ec="CHROME",tc="FIREFOX";function G1(e){let t=ec;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=tc:/deno/i.test(n)&&(t=tp)}catch{}return e===ec&&t===ec||e===tc&&t===tc||e===tp&&t===tp}function V1(){return G1(ec)}function K1(){return typeof Deno<"u"}function Tr(){return ke().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:G1(tc)}function Zn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Hs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var Y1={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Q1={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Y1,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:Y1,query:()=>{},sendMessage:()=>{}}};var re;K1()?re=Q1:re=globalThis.immersiveTranslateBrowserAPI;var lq=Z1(2),J1=Z1(3);function Z1(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var iA=/\s+/g,oA=/[\t\n\v\f\r ]+/g;function X1(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?sA:uA;return String(e).replace(t.style==="html"?oA:iA,t.trim?lA(n):n)}function sA(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function uA(){return" "}function lA(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var $1={}.hasOwnProperty;function cA(e){return e==null?"":X1(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function dA(e){return J1(" "+cA(e)+" ")}function mA(e){let t=dA(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function xA(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function vA(e,t,n,r){t=TA(t,n,r);let a=[],i;if(t)for(i in t)nc.call(t,i)&&a.push([i,SA(e,t[i])]);return a.length===0?rp():a.sort(CA)}function SA(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of IA){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?s2(e)?"zh-TW":"zh-CN":t:"auto"}var l2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],ap=new Map(l2),FA=new Map(l2.map(([e,t])=>[t,e]));function c2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>FA.get(s));!t&&t!==0&&(t=25);let a=ac(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...ap.keys()]},o=n2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return ap.get(d)}}let[s,u]=o[0],l=ap.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],ip={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},d2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},op={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},sp={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function $(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return $(document?.documentElement?.lang||"en")}var Ci=Y+"CacheKey_";function wi(e,t){let n=Ci+e;return re.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function BA(){let e=re.storage.local.refresh;e&&e()}function up(e,t){let n=Ci+e;return re.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ci)).filter(r=>r!==Ci+ct);if(n.length>0)return re.storage.local.remove(n)}}var dt={get:wi,set:Ei,getExpired:up,setExpired:lp,remove:cp,clear:dp,refresh:BA};function ft(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function m2(e){if(e){let t=new Date(e.createTime),n=_A(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function _A(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function zs(e){if(e?.isPro)return!0;let t=await dt.get(ct,null);return ft(t)}var p2=Y+"SyncStoreKey_";function Nt(e,t){let n=p2+e;return re.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function mt(e,t){let n=p2+e;return re.storage.sync.set({[n]:t})}var g2=Y+"StoreKey_";function Ai(e,t){let n=g2+e;return re.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function f2(e,t){let n=g2+e;return re.storage.local.set({[n]:t})}var h2={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5558,7 +5558,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var x2={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var b2={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5572,7 +5572,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var v2={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var y2={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5585,20 +5585,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var HA=[{code:"zh-CN",messages:y2},{code:"zh-TW",messages:x2},{code:"en",messages:v2}],S2=te()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Di={};for(let e of HA)Di[e.code]=e.messages;async function T2(){try{if(te())return;let e=re.runtime.getURL("locales.json"),t=await K({url:e,responseType:"json",method:"GET",headers:{"Content-Type":"application/json"}});Object.assign(Di,t)}catch{}}function qA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=WA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:P+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function C2(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function zA(e,t,n,r){if(!Di.hasOwnProperty(t)&&!Di.hasOwnProperty(n))return e;let a=C2(Di,t,e);return a===e&&t!==n&&(a=C2(Di,n,e)),qA(a,r)}function WA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function De(e,t,n){return zA(t,e,"en",n)}function w2(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function E2(e){return new Date(e).getTime()}var j=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ci.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=De.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Yl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Yl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=De.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var UA=[{code:"zh-CN",messages:h2},{code:"zh-TW",messages:b2},{code:"en",messages:y2}],x2=te()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],ki={};for(let e of UA)ki[e.code]=e.messages;async function v2(){try{if(te())return;let e=re.runtime.getURL("locales.json"),t=await K({url:e,responseType:"json",method:"GET",headers:{"Content-Type":"application/json"}});Object.assign(ki,t)}catch{}}function HA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=zA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:L+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function S2(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function qA(e,t,n,r){if(!ki.hasOwnProperty(t)&&!ki.hasOwnProperty(n))return e;let a=S2(ki,t,e);return a===e&&t!==n&&(a=S2(ki,n,e)),HA(a,r)}function zA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function De(e,t,n){return qA(t,e,"en",n)}function T2(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function C2(e){return new Date(e).getTime()}var j=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ti.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=De.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Kl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Kl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=De.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Yl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ci.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=De.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:P,href:C1})];mp(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Kl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ti.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=De.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:L,href:S1})];mp(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:De.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=D1,i?o.push(r("proQuotaError.trail",{brandId:P,href:Jm})):o.push(r("proQuotaError.newPackage",{brandId:P,href:s})),mp(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:De.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=A1,i?o.push(r("proQuotaError.trail",{brandId:L,href:Jm})):o.push(r("proQuotaError.newPackage",{brandId:L,href:s})),mp(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:P,href:Jl}));else{let d="";u=="AI"?d=A1:d=k1,o?l.push(r("proQuotaError.trail",{brandId:P,href:Jm})):l.push(r("proQuotaError.package",{brandId:P,href:d,translationService:u})),mp(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:L,href:Ql}));else{let d="";u=="AI"?d=w1:d=E1,o?l.push(r("proQuotaError.trail",{brandId:L,href:Jm})):l.push(r("proQuotaError.package",{brandId:L,href:d,translationService:u})),mp(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function mp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||E2(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:w2(i,"YYYY-MM-DD HH:mm:ss")}))}function oc(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function A2(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function k2(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function sc(e){let{mimeType:t,base64:n}=GA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await um(D2.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await D2(e);return t}async function D2(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=oc(e.body):r=="urlSearchParams"?a.body=A2(e.body):r=="blob"&&e.body&&(a.body=sc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new j("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new j("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of VA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` -`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){k.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){k.error("parse response failed",h)}c&&k.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${nn}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new j("fetchError",m).initNetWork(l.status)}}async function*VA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var KA=new Map;function uc(e){let t=YA(64),n=new CustomEvent(Bl,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{KA.set(t,(i,o)=>{i?a(i):r(o)})})}function YA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var JA="";function Ht(){return JA||lc.version}function lo(){return re.runtime.getManifest().version}function L2(e){let t=Gs(),n=lo();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function Ke(){try{let e=[ke().EBOOK_BUILDER_URL,ke().EBOOK_VIEWER_URL,ke().SUBTITLE_BUILDER_URL,ke().HTML_VIEWER_URL,ke().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+nn];ua()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var Vs=new Map,Fa=class{fromType;logger;constructor(t,n=!1){this.logger=new Hs,n&&this.logger.setLevel("debug"),this.fromType=t,Vs.has(t)||(Vs.set(t,new Map),re.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),b=Vs.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,v);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,v).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Vs.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Vs.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await re.runtime.sendMessage(o);return P2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await re.tabs.sendMessage(i,o);return P2(o,s,this.logger)}}};function P2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new j(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new j("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}var ZA="";function co(){return ZA||globalThis.navigator.userAgent}function Ks(){return co().includes("ImtFxiOS")}function M2(){let t=co().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function fp(){return co().includes("ImtFxAndroid")}function R2(){let e=co();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function I2(){let t=co().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ys(){let e=co();if(Ks()||fp()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var cc=function(){return cc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,XA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Qs(e){return e.then(void 0,function(){}),e}function e7(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function n7(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function r7(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Ba(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function dr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function mo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function $n(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];yt(e,t),dr(e,a7),t[1]=e[0]>>>1,yt(e,t),dr(e,i7),t[1]=e[0]>>>1,yt(e,t)}var dc=[2277735313,289559509],mc=[1291169091,658871167],O2=[0,5],o7=[0,1390208809],s7=[0,944331445];function u7(e,t){var n=r7(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function l7(e){var t;return cc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function c7(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function d7(e){return typeof e!="function"}function m7(e,t){var n=Qs(new Promise(function(r){var a=Date.now();F2(e.bind(null,t),function(){for(var i=[],o=0;o=4}function g7(){var e=window,t=navigator;return er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!J2()}function fc(){var e=window,t=navigator;return er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Ar(){var e=window,t=navigator;return er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Cp(){var e=window,t=e.HTMLElement,n=e.Document;return er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Js(){var e=window;return c7(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Z2(){var e,t,n=window;return er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function f7(){var e=window;return er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function h7(){var e=window;return er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Zs(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function b7(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function y7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function x7(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function wp(){var e=fc(),t=Z2(),n=window,r=navigator,a="connection";return e?er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function v7(){return C7()?-4:S7()}function S7(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(T7())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=w7(a),u=s[0],l=s[1],c=Qs(u.then(function(d){return E7(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function T7(){return Ar()&&!Cp()&&!h7()}function C7(){return Ar()&&Zs()&&Js()}function w7(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(N2("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(Y2(g)&&Qs(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(N2("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function E7(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function nk(){var e=new Date().getFullYear();return Math.max(Er(new Date(e,0,1).getTimezoneOffset()),Er(new Date(e,6,1).getTimezoneOffset()))}function rk(){try{return!!window.sessionStorage}catch{return!0}}function ak(){try{return!!window.localStorage}catch{return!0}}function ik(){if(!(J2()||g7()))try{return!!window.indexedDB}catch{return!0}}function ok(){return!!window.openDatabase}function sk(){return navigator.cpuClass}function uk(){var e=navigator.platform;return e==="MacIntel"&&Ar()&&!Cp()?b7()?"iPad":"iPhone":e}function lk(){return navigator.vendor||""}function ck(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function gk(){return Ar()||wp()}function fk(e){var t;return Cr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return wr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},U2(r),u=0;u`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function mp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||C2(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:T2(i,"YYYY-MM-DD HH:mm:ss")}))}function ic(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function w2(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function E2(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function oc(e){let{mimeType:t,base64:n}=WA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await sm(A2.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await A2(e);return t}async function A2(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=ic(e.body):r=="urlSearchParams"?a.body=w2(e.body):r=="blob"&&e.body&&(a.body=oc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new j("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new j("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let b=d.result;p(b)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of GA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` +`))>=0;){let b=c.slice(0,g).trim();if(c=c.slice(g+1),b.startsWith("event:")||b==="")continue;let h="";if(b.startsWith("data:")&&(h=b.slice(5).trim()),h==="[DONE]")break;let f;try{f=JSON.parse(h??"")}catch(y){k.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(b){k.error("parse response failed",b)}c&&k.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${nn}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new j("fetchError",m).initNetWork(l.status)}}async function*GA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var VA=new Map;function sc(e){let t=KA(64),n=new CustomEvent(Fl,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{VA.set(t,(i,o)=>{i?a(i):r(o)})})}function KA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var QA="";function Ht(){return QA||uc.version}function lo(){return re.runtime.getManifest().version}function k2(e){let t=Ws(),n=lo();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function Ke(){try{let e=[ke().EBOOK_BUILDER_URL,ke().EBOOK_VIEWER_URL,ke().SUBTITLE_BUILDER_URL,ke().HTML_VIEWER_URL,ke().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+nn];oa()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var Gs=new Map,Ia=class{fromType;logger;constructor(t,n=!1){this.logger=new Us,n&&this.logger.setLevel("debug"),this.fromType=t,Gs.has(t)||(Gs.set(t,new Map),re.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),h=Gs.get(m).get(p);if(!h)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=h,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,v);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,v).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Gs.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Gs.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await re.runtime.sendMessage(o);return D2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await re.tabs.sendMessage(i,o);return D2(o,s,this.logger)}}};function D2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new j(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new j("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}var JA="";function co(){return JA||globalThis.navigator.userAgent}function Vs(){return co().includes("ImtFxiOS")}function L2(){let t=co().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function fp(){return co().includes("ImtFxAndroid")}function P2(){let e=co();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function M2(){let t=co().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ks(){let e=co();if(Vs()||fp()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var lc=function(){return lc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,ZA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Ys(e){return e.then(void 0,function(){}),e}function $A(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function t7(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function n7(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Fa(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function dr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function mo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function $n(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];yt(e,t),dr(e,r7),t[1]=e[0]>>>1,yt(e,t),dr(e,a7),t[1]=e[0]>>>1,yt(e,t)}var cc=[2277735313,289559509],dc=[1291169091,658871167],B2=[0,5],i7=[0,1390208809],o7=[0,944331445];function s7(e,t){var n=n7(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function u7(e){var t;return lc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function l7(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function c7(e){return typeof e!="function"}function d7(e,t){var n=Ys(new Promise(function(r){var a=Date.now();R2(e.bind(null,t),function(){for(var i=[],o=0;o=4}function p7(){var e=window,t=navigator;return er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Y2()}function gc(){var e=window,t=navigator;return er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Ar(){var e=window,t=navigator;return er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Cp(){var e=window,t=e.HTMLElement,n=e.Document;return er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Qs(){var e=window;return l7(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Q2(){var e,t,n=window;return er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function g7(){var e=window;return er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function f7(){var e=window;return er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Js(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function h7(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function b7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function y7(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function wp(){var e=gc(),t=Q2(),n=window,r=navigator,a="connection";return e?er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function x7(){return T7()?-4:v7()}function v7(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(S7())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=C7(a),u=s[0],l=s[1],c=Ys(u.then(function(d){return w7(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function S7(){return Ar()&&!Cp()&&!f7()}function T7(){return Ar()&&Js()&&Qs()}function C7(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(_2("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(V2(g)&&Ys(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(_2("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function w7(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function tk(){var e=new Date().getFullYear();return Math.max(Er(new Date(e,0,1).getTimezoneOffset()),Er(new Date(e,6,1).getTimezoneOffset()))}function nk(){try{return!!window.sessionStorage}catch{return!0}}function rk(){try{return!!window.localStorage}catch{return!0}}function ak(){if(!(Y2()||p7()))try{return!!window.indexedDB}catch{return!0}}function ik(){return!!window.openDatabase}function ok(){return navigator.cpuClass}function sk(){var e=navigator.platform;return e==="MacIntel"&&Ar()&&!Cp()?h7()?"iPad":"iPhone":e}function uk(){return navigator.vendor||""}function lk(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function pk(){return Ar()||wp()}function gk(e){var t;return Cr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return wr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},N2(r),u=0;u')}function Pk(){return navigator.pdfViewerEnabled}function Mk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Rk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Ik())return-3;try{return e.canMakePayments()?1:0}catch(t){return Fk(t)}}var Ik=D7;function Fk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Bk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var $2=-1,eb=-2,_k=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Ok=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Nk=["FRAGMENT_SHADER","VERTEX_SHADER"],jk=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],tb="WEBGL_debug_renderer_info",Uk="WEBGL_polygon_mode";function Hk(e){var t,n,r,a,i,o,s=e.cache,u=nb(s);if(!u)return $2;if(!ab(u))return eb;var l=rb()?null:u.getExtension(tb);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function qk(e){var t=e.cache,n=nb(t);if(!n)return $2;if(!ab(n))return eb;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(K2,"/npm-monitoring"),!0),e.send()}catch{}}function iD(e){var t;return e===void 0&&(e={}),Cr(this,void 0,void 0,function(){var n,r,a;return wr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&aD(),n=e.delayFallback,r=e.debug,[4,nD(n)];case 1:return i.sent(),a=Yk({cache:{},debug:r}),[2,rD(a,r)]}})})}var Ep={load:iD,hashComponents:ib,componentsToDebugString:eD};async function Xs(){let e=await Nt("fakeUserId","");e||(e=await ki("fakeUserId",""),e&&await ot("fakeUserId",e));let t=new Date,n=await Nt("installedAt","");return n||(n=await ki("installedAt",""),n&&await ot("installedAt",n)),e?n||(n=new Date(0).toISOString(),await ot("installedAt",n)):(e=await uD(64),await ot("fakeUserId",e)),n||(n=t.toISOString(),await ot("installedAt",n)),{fakeUserId:e,installedAt:n}}var oD=10;async function fo(){let e=await Nt("userTag","");if(e)return e;let{fakeUserId:t}=await Xs(),r=t.charCodeAt(0)%oD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await ot("userTag",e),e}function sD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):lD(i,e)}catch{return sD(64)}}function lD(e,t=32){let n="";for(let a=0;a{}),xc)}async function ub(e,t){try{let n=ke(),r=n.INSTALL_FROM==="firefox_store";if(Ys()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=te(),o=Ke(),s=n.PROD==="1",u=Ht(),l=new Date,{fakeUserId:c,installedAt:d}=await Xs(),m=await fo(),p=await ho(),g=await bo(),h=new Date(d),b=_a(h),f=_a(l),y=b===f,v=24*60*60*1e3,S=l.getTime()-h.getTime()<7*v,w=l.getTime()-h.getTime()<30*v,C=l.getTime()-h.getTime()<365*v,T=Zl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=to.parse(A),I=e.map(F=>{let R=F.params||{};if(D.os&&(R.os_name=D.os.name||"unknown",R.os_version=D.os.version||"unknown",R.os_version_name=D.os.versionName||"unknown"),D.browser){R.browser_name=D.browser.name||"unknown",R.browser_version=D.browser.version||"unknown";let B=Ys();B&&(R.browser_name=B.name,R.browser_version=B.version)}if(D.platform&&(R.platform_type=D.platform.type||"unknown"),D.engine&&(R.engine_name=D.engine.name||"unknown",R.engine_version=D.engine.version||"unknown"),u&&(R.version=u),n.INSTALL_FROM&&(R.install_from=n.INSTALL_FROM),b){R.install_day=hc(h);let B=yc(h);R.install_week=`${B.year}${B.week}`}return R.userscript=i.toString(),y?R.is_new_user_today="1":R.is_new_user_today="0",R.is_new_user_this_week=S?"1":"0",R.is_new_user_this_month=w?"1":"0",R.is_new_user_this_year=C?"1":"0",o?R.main_frame=0:R.main_frame=1,m&&(R.ab_tag=m),p&&(R.ab_group=p),R.campaign=g||"none",{...F,params:R}});T.forEach(async F=>{let R=await $s({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:I})})}),t&&mD(c,I)}catch{}}async function dD(e){return await cD().sendMessage("background:main",e)}function $s(e){return bl()?uc({method:"request",data:e}):te()||hl()?(e.fetchPolyfill=globalThis.GM_fetch,Li(e)):dD({method:"fetch",data:e})}function mD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=bc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);$s({url:Us,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var vc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function hk(){for(var e=0,t=["rec2020","p3","srgb"];e')}function Lk(){return navigator.pdfViewerEnabled}function Pk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Mk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Rk())return-3;try{return e.canMakePayments()?1:0}catch(t){return Ik(t)}}var Rk=k7;function Ik(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Fk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Z2=-1,X2=-2,Bk=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),_k=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Ok=["FRAGMENT_SHADER","VERTEX_SHADER"],Nk=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],$2="WEBGL_debug_renderer_info",jk="WEBGL_polygon_mode";function Uk(e){var t,n,r,a,i,o,s=e.cache,u=eb(s);if(!u)return Z2;if(!nb(u))return X2;var l=tb()?null:u.getExtension($2);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function Hk(e){var t=e.cache,n=eb(t);if(!n)return Z2;if(!nb(n))return X2;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(G2,"/npm-monitoring"),!0),e.send()}catch{}}function aD(e){var t;return e===void 0&&(e={}),Cr(this,void 0,void 0,function(){var n,r,a;return wr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&rD(),n=e.delayFallback,r=e.debug,[4,tD(n)];case 1:return i.sent(),a=Kk({cache:{},debug:r}),[2,nD(a,r)]}})})}var Ep={load:aD,hashComponents:rb,componentsToDebugString:$k};async function Zs(){let e=await Nt("fakeUserId","");e||(e=await Ai("fakeUserId",""),e&&await mt("fakeUserId",e));let t=new Date,n=await Nt("installedAt","");return n||(n=await Ai("installedAt",""),n&&await mt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await mt("installedAt",n)):(e=await sD(64),await mt("fakeUserId",e)),n||(n=t.toISOString(),await mt("installedAt",n)),{fakeUserId:e,installedAt:n}}var iD=10;async function fo(){let e=await Nt("userTag","");if(e)return e;let{fakeUserId:t}=await Zs(),r=t.charCodeAt(0)%iD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await mt("userTag",e),e}function oD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):uD(i,e)}catch{return oD(64)}}function uD(e,t=32){let n="";for(let a=0;a{}),yc)}async function ob(e,t){try{let n=ke(),r=n.INSTALL_FROM==="firefox_store";if(Ks()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=te(),o=Ke(),s=n.PROD==="1",u=Ht(),l=new Date,{fakeUserId:c,installedAt:d}=await Zs(),m=await fo(),p=await ho(),g=await bo(),b=new Date(d),h=Ba(b),f=Ba(l),y=h===f,v=24*60*60*1e3,S=l.getTime()-b.getTime()<7*v,w=l.getTime()-b.getTime()<30*v,C=l.getTime()-b.getTime()<365*v,T=Jl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=to.parse(A),I=e.map(F=>{let R=F.params||{};if(D.os&&(R.os_name=D.os.name||"unknown",R.os_version=D.os.version||"unknown",R.os_version_name=D.os.versionName||"unknown"),D.browser){R.browser_name=D.browser.name||"unknown",R.browser_version=D.browser.version||"unknown";let B=Ks();B&&(R.browser_name=B.name,R.browser_version=B.version)}if(D.platform&&(R.platform_type=D.platform.type||"unknown"),D.engine&&(R.engine_name=D.engine.name||"unknown",R.engine_version=D.engine.version||"unknown"),u&&(R.version=u),n.INSTALL_FROM&&(R.install_from=n.INSTALL_FROM),h){R.install_day=fc(b);let B=bc(b);R.install_week=`${B.year}${B.week}`}return R.userscript=i.toString(),y?R.is_new_user_today="1":R.is_new_user_today="0",R.is_new_user_this_week=S?"1":"0",R.is_new_user_this_month=w?"1":"0",R.is_new_user_this_year=C?"1":"0",o?R.main_frame=0:R.main_frame=1,m&&(R.ab_tag=m),p&&(R.ab_group=p),R.campaign=g||"none",{...F,params:R}});T.forEach(async F=>{let R=await Xs({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:I})})}),t&&dD(c,I)}catch{}}async function cD(e){return await lD().sendMessage("background:main",e)}function Xs(e){return hl()?sc({method:"request",data:e}):te()||fl()?(e.fetchPolyfill=globalThis.GM_fetch,Di(e)):cD({method:"fetch",data:e})}function dD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=hc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Xs({url:js,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var xc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5853,11 +5853,11 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function Ap(e){return e.replace(//g,">")}var Sc=!1,gD=te();function lb(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function fD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&cb(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Oa(i,Wl)){if(a===!0)return!0;continue}if(eu(i.nodeName,t.inlineTags))return!0;if(!kp(i,t))return!1}}return!0}function Dp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(eu(e.nodeName,n)||kp(e,t)){if(Oa(e,m1)||eu(e.nodeName,["BR"]))return!1;if(Oa(e,Wl))return!0;if(kp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return fD(e,t)}else return Oa(e,Wl);return!1}function cb(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Oa(e,d1,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Oa(e,n1))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||eu(e.nodeName,i))}function yo(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!mb(r)&&r.length>=n}function db(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(mb(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function mb(e){for(let t=0;t127)return!1;return!0}function pb(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function gb(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function fb(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function hb(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function bb(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Oa(e,t,n=!1){return Lp(e,t,"1",n)}function Lp(e,t,n,r=!1){return Sc&&!r?e[Jn]?e[Jn]?.[t]===n:!1:e.dataset?.[t]===n}function xo(e){return(e.innerText||e.textContent||"").trim()}function Pp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Tc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function wt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Sc&&!r?(e[Jn]||(e[Jn]={}),e[Jn][t]||(e[Jn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function yb(e,t,n=!1){if(Sc&&!n){if(!e[Jn]||!e[Jn][t])return;delete e[Jn][t]}else delete e.dataset[t]}function xb(e,t,n=!1){return Sc&&!n?!e[Jn]||!e[Jn][t]?void 0:e[Jn][t]:e.dataset[t]}function kp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!eu(e.nodeName,n)}function Se(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ke())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function hn(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function Na(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(gD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${P}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function eu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function vb(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function Sb(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||cb(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function Tb(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function Cb(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function Ap(e){return e.replace(//g,">")}var vc=!1,pD=te();function sb(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function gD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&ub(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(_a(i,zl)){if(a===!0)return!0;continue}if($s(i.nodeName,t.inlineTags))return!0;if(!kp(i,t))return!1}}return!0}function Dp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if($s(e.nodeName,n)||kp(e,t)){if(_a(e,c1)||$s(e.nodeName,["BR"]))return!1;if(_a(e,zl))return!0;if(kp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return gD(e,t)}else return _a(e,zl);return!1}function ub(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&_a(e,l1,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&_a(e,e1))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||$s(e.nodeName,i))}function yo(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!cb(r)&&r.length>=n}function lb(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(cb(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function cb(e){for(let t=0;t127)return!1;return!0}function db(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function mb(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function pb(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function gb(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function fb(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function _a(e,t,n=!1){return Lp(e,t,"1",n)}function Lp(e,t,n,r=!1){return vc&&!r?e[Jn]?e[Jn]?.[t]===n:!1:e.dataset?.[t]===n}function xo(e){return(e.innerText||e.textContent||"").trim()}function Pp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Sc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function wt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(vc&&!r?(e[Jn]||(e[Jn]={}),e[Jn][t]||(e[Jn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function hb(e,t,n=!1){if(vc&&!n){if(!e[Jn]||!e[Jn][t])return;delete e[Jn][t]}else delete e.dataset[t]}function bb(e,t,n=!1){return vc&&!n?!e[Jn]||!e[Jn][t]?void 0:e[Jn][t]:e.dataset[t]}function kp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!$s(e.nodeName,n)}function ve(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ke())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function fn(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function Oa(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(pD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${L}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function $s(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function yb(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function xb(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||ub(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function vb(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function Sb(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function Eb(e,t,n=!1){let r=hD(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function bD(e,t){let n=[],r=[];for(let a=0;a0?h=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function Cb(e,t,n=!1){let r=fD(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function hD(e,t){let n=[],r=[];for(let a=0;a0?bt){let y=[];Mp(b,t,y);for(let v=0;v0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&Mp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:xD([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var wc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ft(u),c=Object.keys(kr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&it()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=kr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=vo);let h=Rp(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function kb(e,t,n){return wc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:yD(r.config,n))}function yD(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Db(e,t,n="en",r){return wc(e,t,n).find(o=>o.id===r)}function nu(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function Lb(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function Pb(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ci.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function xD(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function vD(e,t){let n=Eb(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function Ec(e,t){return e?`
-
${vD(t,e)}
-
${t}
`:t}function So(e){let t=location.search.includes($l);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var Pc,Re,Bb,SD,ru,Mb,_b,kc={},Ob=[],TD=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ua(e,t){for(var n in t)e[n]=t[n];return e}function Nb(e){var t=e.parentNode;t&&t.removeChild(e)}function au(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Pc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Ac(e,o,r,a,null)}function Ac(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++Bb};return a==null&&Re.vnode!=null&&Re.vnode(i),i}function Et(e){return e.children}function To(e,t){this.props=e,this.context=t}function Co(e,t){if(t==null)return e.__?Co(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Ac(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:Mc}),n.__[e]}function W(e){return iu=1,AD(ey,e)}function AD(e,t,n){var r=ou(Eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ey(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Pt,!Pt.u)){Pt.u=!0;var a=Pt.shouldComponentUpdate;Pt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function J(e,t){var n=ou(Eo++,3);!Re.__s&&Op(n.__H,t)&&(n.__=e,n.i=t,Pt.__H.__h.push(n))}function su(e,t){var n=ou(Eo++,4);!Re.__s&&Op(n.__H,t)&&(n.__=e,n.i=t,Pt.__h.push(n))}function Ce(e){return iu=5,he(function(){return{current:e}},[])}function he(e,t){var n=ou(Eo++,7);return Op(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ae(e,t){return iu=8,he(function(){return e},t)}function Ic(e){var t=Pt.context[e.__c],n=ou(Eo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pt)),t.props.value):e.__}function kD(){for(var e;e=$b.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Rc),e.__H.__h.forEach(_p),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){typeof e.type!="function"||e.o||e.type===Et?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Pt=null,Kb&&Kb(e)},Re.__r=function(e){Yb&&Yb(e),Eo=0;var t=(Pt=e.__c).__H;t&&(Bp===Pt?(t.__h=[],Pt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Mc,n.__N=n.i=void 0})):(t.__h.forEach(Rc),t.__h.forEach(_p),t.__h=[])),Bp=Pt},Re.diffed=function(e){Qb&&Qb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($b.push(t)!==1&&Vb===Re.requestAnimationFrame||((Vb=Re.requestAnimationFrame)||DD)(kD)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Mc&&(n.__=n.__V),n.i=void 0,n.__V=Mc})),Bp=Pt=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Rc),n.__h=n.__h.filter(function(r){return!r.__||_p(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Re.__e(r,n.__v)}}),Jb&&Jb(e,t)},Re.unmount=function(e){Zb&&Zb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Rc(r)}catch(a){t=a}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var Xb=typeof requestAnimationFrame=="function";function DD(e){var t,n=function(){clearTimeout(r),Xb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Xb&&(t=requestAnimationFrame(n))}function Rc(e){var t=Pt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pt=t}function _p(e){var t=Pt;e.__c=e.__(),Pt=t}function Op(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ey(e,t){return typeof t=="function"?t(e):t}var ty=["*://*/*","*","*://*"],ry="immersive-translate-wildcard-placeholder.com";function Np(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>ty.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(ty.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return PD(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,ry),m;try{m=new URL(d)}catch{return k.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=LD(l+":",ny(p),ny(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function ny(e){return e.replaceAll(ry,"*")}function LD(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function ze(e,t){return Np(e,t)!==null}function PD(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var ay=null;if(typeof trustedTypes<"u")try{ay=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var iy=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(iy=!0)});function Fc(){return iy}var Un=ay;function sy(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(RD(t,o))return"";i=oy(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let b of n){let f=oy(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";continue}u=f,l+=g(b)||""}h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` -`).filter(b=>!!b.trim()).length>1)return t.innerHTML||"";return s;function p(b){return b.replace(/\s+/g,"")}function g(b){return b instanceof HTMLElement?b.innerText:b?.textContent||""}function h(){let b=p(g(u)),f=p(l);if(b==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` +`;continue}else if(h.length>t){let y=[];Mp(h,t,y);for(let v=0;v0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&Mp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(h.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];h.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:yD([...f,...h,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],b=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?b.push(f):g.push(f))});let h=b.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(h.length>0){for(let f of h)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:g}}var Cc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ft(u),c=Object.keys(kr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&it()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=kr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=vo);let b=Rp(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?b:null}).filter(p=>!!p);function m(p,g){let b=!!p.canary,h=!!p.alpha,f=!!p.beta;return g===e[t]||b&&o||h&&(a||o)||f&&(i||a||o)?!0:!h&&!f&&!b}};function Eb(e,t,n){return Cc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:bD(r.config,n))}function bD(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Ab(e,t,n="en",r){return Cc(e,t,n).find(o=>o.id===r)}function tu(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function kb(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function Db(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ti.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function yD(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function xD(e,t){let n=Cb(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function wc(e,t){return e?`
+
${xD(t,e)}
+
${t}
`:t}function So(e){let t=location.search.includes(Xl);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var Lc,Re,Ib,vD,nu,Lb,Fb,Ac={},Bb=[],SD=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ja(e,t){for(var n in t)e[n]=t[n];return e}function _b(e){var t=e.parentNode;t&&t.removeChild(e)}function ru(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Lc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Ec(e,o,r,a,null)}function Ec(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++Ib};return a==null&&Re.vnode!=null&&Re.vnode(i),i}function Et(e){return e.children}function To(e,t){this.props=e,this.context=t}function Co(e,t){if(t==null)return e.__?Co(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Ec(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:Pc}),n.__[e]}function W(e){return au=1,ED(Xb,e)}function ED(e,t,n){var r=iu(Eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Xb(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Pt,!Pt.u)){Pt.u=!0;var a=Pt.shouldComponentUpdate;Pt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function J(e,t){var n=iu(Eo++,3);!Re.__s&&Op(n.__H,t)&&(n.__=e,n.i=t,Pt.__H.__h.push(n))}function ou(e,t){var n=iu(Eo++,4);!Re.__s&&Op(n.__H,t)&&(n.__=e,n.i=t,Pt.__h.push(n))}function Ce(e){return au=5,he(function(){return{current:e}},[])}function he(e,t){var n=iu(Eo++,7);return Op(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ae(e,t){return au=8,he(function(){return e},t)}function Rc(e){var t=Pt.context[e.__c],n=iu(Eo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pt)),t.props.value):e.__}function AD(){for(var e;e=Zb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Mc),e.__H.__h.forEach(_p),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){typeof e.type!="function"||e.o||e.type===Et?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Pt=null,Gb&&Gb(e)},Re.__r=function(e){Vb&&Vb(e),Eo=0;var t=(Pt=e.__c).__H;t&&(Bp===Pt?(t.__h=[],Pt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Pc,n.__N=n.i=void 0})):(t.__h.forEach(Mc),t.__h.forEach(_p),t.__h=[])),Bp=Pt},Re.diffed=function(e){Kb&&Kb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Zb.push(t)!==1&&Wb===Re.requestAnimationFrame||((Wb=Re.requestAnimationFrame)||kD)(AD)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Pc&&(n.__=n.__V),n.i=void 0,n.__V=Pc})),Bp=Pt=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Mc),n.__h=n.__h.filter(function(r){return!r.__||_p(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Re.__e(r,n.__v)}}),Yb&&Yb(e,t)},Re.unmount=function(e){Qb&&Qb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Mc(r)}catch(a){t=a}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var Jb=typeof requestAnimationFrame=="function";function kD(e){var t,n=function(){clearTimeout(r),Jb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Jb&&(t=requestAnimationFrame(n))}function Mc(e){var t=Pt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pt=t}function _p(e){var t=Pt;e.__c=e.__(),Pt=t}function Op(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Xb(e,t){return typeof t=="function"?t(e):t}var $b=["*://*/*","*","*://*"],ty="immersive-translate-wildcard-placeholder.com";function Np(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>$b.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if($b.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return LD(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let h=u.split("://");l=h[0],l==="*"&&h.length>1&&(l="*",u="https://"+h[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,ty),m;try{m=new URL(d)}catch{return k.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let b=DD(l+":",ey(p),ey(g));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function ey(e){return e.replaceAll(ty,"*")}function DD(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function We(e,t){return Np(e,t)!==null}function LD(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var ny=null;if(typeof trustedTypes<"u")try{ny=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var ry=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(ry=!0)});function Ic(){return ry}var Bn=ny;function iy(e,t,n,r,a){if(!e)return"";for(let h of r||[])if(t?.querySelector(h))return"";let i=n[0],o=n[n.length-1];if(MD(t,o))return"";i=ay(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let h of n){let f=ay(t,h);if(c+=g(h),u&&f!=u){b(),u=f,l=g(h)||"";continue}u=f,l+=g(h)||""}b();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` +`).filter(h=>!!h.trim()).length>1)return t.innerHTML||"";return s;function p(h){return h.replace(/\s+/g,"")}function g(h){return h instanceof HTMLElement?h.innerText:h?.textContent||""}function b(){let h=p(g(u)),f=p(l);if(h==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` `)&&y?.startsWith(` `)||!c.endsWith(` `)&&y?.endsWith(` -`)){s+=l;return}s+=gy(u,a)}else s+=l}}function uy(e,t,n,r,a){if(!e||!t)return"";let i=gy(n,a)||"";return t.replace(i,r)}var jp=globalThis.document?.createElement("div");function MD(e){return jp?(jp.innerHTML=Un?.createHTML(e)||e,jp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function ly(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||MD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function cy(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function dy(e,t,n,r){let a="";return n?a=my(e,t,n):a=py(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function my(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?my(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function py(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return py(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function gy(e,t){if(e instanceof HTMLElement){if(tu(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=my(u,a)}else s+=l}}function oy(e,t,n,r,a){if(!e||!t)return"";let i=my(n,a)||"";return t.replace(i,r)}var jp=globalThis.document?.createElement("div");function PD(e){return jp?(jp.innerHTML=Bn?.createHTML(e)||e,jp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function sy(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||PD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function uy(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let h=o.findIndex(y=>y.tag==m);if(h==-1)return d;let f=o[h];return o=o.slice(h+1),n?``:``}else{let h=e[m];if(!h)return d;if(o.unshift(h),n)return`<${n}${m}>`;if(!h.attributes)return`<${h.tag}>`;let f=a||"";return`<${h.tag} ${r||"id"}=${f}${h.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let h=s[0],f=s[1],y=u[u.length-1];h?.tag==m?(h.end==g?(h.endTag=d,h.end=g+d.length,u.push(h)):h.end==y?.begin&&y.end==g&&(h.endTag=d,h.end=g+d.length,h.times++,u[u.length-1]=h),s.shift()):f?.tag==m&&f.end==h.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function ly(e,t,n,r){let a="";return n?a=cy(e,t,n):a=dy(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function cy(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?cy(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function dy(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return dy(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function my(e,t){if(e instanceof HTMLElement){if(eu(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` `)<0?r=Ze.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=Ze.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}else if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}else return e?.outerHTML;return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function RD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function oy(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Bc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Up(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Dr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ao(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function fy(e,t){let n=t||e.translationService;return Ao(e,n,e.config.translationServices)?Up(e.rule):e.rule}function uu(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var ID=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function tr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Hr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(tr(e,i))return!1;if(tr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!tr(e,o)),c;function d(){return n&&n.display?!!ID.includes(n.display):tr(e,r)}}var At=tr;function Mi(e){return!!e.shadowRoot}function qa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function lu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function qr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Pi(e,t,n=!1){let r=e?.[t];return qr(r,n)}function ko(e,t){return ja(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Hp(e){let{rule:t}=e,n=FD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function FD(e){let t=e.config.loadingTheme;return`${P}-loading-${t}`}function cu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,l1,t.toString());let i=Hp(e);return a.append(n?" ...":Ze.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Do(e,t){return e.querySelector(`[${Wm}='${t}']`)}function by(){document.querySelectorAll(`[${Wm}]`).forEach(t=>{t.remove()})}function yy(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function xy(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Na(n)&&t.push(n)}),t}function qp(e,t){return t?BD(e):_D(e)}function BD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=vy(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Ap(p),m.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function _D(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=vy(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=Ap(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){k.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function zp(e,t){return t?OD(e):ND(e)}function OD(e){let{text:t,variables:n}=e,r=uu(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function ND(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function vy(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Lo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||bb(l)||pb(l)||hb(l)||gb(l)||fb(l)||UD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:yo(i?.trim(),n,r)}function Ri(e){return e.nodeType===Node.ELEMENT_NODE}function Sy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Lr(){return await Nt("fakeUserId","")}async function jD(){return await Nt("installedAt","")}async function Po(e,t){let r=ke().INSTALL_FROM,a=Ht(),i=await jD(),o=await Lr(),s=await qt(),u=!1,l=await mt.get(dt,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await fo(),m=await bo(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await ho();return g&&(p.abGroup=g),p}function du(e,t){let[n,r]=W();return J(()=>{!e||!t||(async()=>{let a=await Wp(e,t);r(a)})()},[e,t,r]),n}async function Wp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!it()&&te()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Nt("installedAt","");new Date(o).getTime()s==n),a=HD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function HD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Cy(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function wy(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{_c[e]=setTimeout(()=>{n("")},t)})}function Ay(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function za(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new j(t,n).initNetWork(e.status)}function jc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function ha(){return fp()?"imtAndroid":Ks()?"imtIOS":te()?"userscript":it()?"safari":Tr()?"firefox":Y1()?"chrome":"other"}function zr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Uc(e){return e?.getAttribute("imt-state")||""}function Wr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Hc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(tr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function ky(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Dy(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function Ly(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var qD={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Oc={...qD};function ba(e){Oc[e]||(Oc[e]=Date.now())}var hy=!1;function Py(){if(hy)return;hy=!0;let e=Oc.initial,t={...Oc};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(Y+"PerformanceData",JSON.stringify(t))}function Ga(e){if(e.beta)return!1;if(it()&&e.spVersion)return Wa(lo(),e.spVersion);if(R2()&&e.gspVersion){let t=I2();if(t)return Wa(t,e.gspVersion)}if(Ks()&&e.ispVersion){let t=M2();if(t)return Wa(t,e.ispVersion)}return!1}function Wa(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Vp(e){e.message?.indexOf("token invalid")>=0&&(mt.remove(dt),mu())}async function My(e){let n=(await qt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),zD(a.toString())}function zD(e){try{it()?Gr(e):globalThis.open(e)}catch{globalThis.open(e)}}function Ry(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function Iy(e){return ft(e)}function qc(e){return Array.isArray(e)?e:e?[e]:[]}function zc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Wc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Fy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function pu(e,t){let n={...e};return jy(n,t),WD(n,t),n}function Ny(e,t,n){let r={...e};return Dr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Dr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function WD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;jy(e,a)}function Dr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=By(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=By(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=qc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!_y(u))return;d=Kp(c,l)}else if(s=="remove_v"){if(!_y(u))return;d=Oy(c,l)}else s==="add"?d=Kp(c,l):s=="remove"&&(d=Oy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Kp(c,l):d=l,r(o,d)})}function jy(e,t){return Dr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Kp(e,t){let n;if(Array.isArray(e)){let r=qc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function By(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function _y(e){let t=Ht();return e&&Wa(t,e)}function Oy(e,t){if(Array.isArray(e)){let n=qc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Uy="userConfig",Gc="userPromptPool",Vc="userObjectPool";async function Kc(){let e=await Vy(Uy)||{},t=await Ii(Gc)||{},n=await Ii(Vc)||{};return GD(e,t,n)}async function Hy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Yp(e);await Gy(Uy,t),await Pr(Gc,n),await Pr(Vc,r)}function Yp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return qy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),zy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function GD(e,t,n){return qy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),zy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function qy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function zy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Va(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Wy(r);for(let o of i)delete a[o]}),n}function Qp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Wy(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Wy(e){let t=kr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=vo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Ky(e,t){return Yy(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function Yy(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>Yy(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Dr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),JD(l),QD(n,u,l),l=await eL(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Jy(){if(le.PROD==="1")return{};let e={};if(le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(le.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=le.DEEPL_PROXY_ENDPOINT),le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}le.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=le.IMMERSIVE_TRANSLATE_SERVICE);let t={};return le.DEBUG==="1"&&(t.debug=!0,t.cache=!1),le.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await re.storage.local.get(Ms);if(e[Ms]){let t=e[Ms],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await re.storage.local.set({[Ms]:e})}async function Zy(e){await re.storage.local.set({[Hl]:e})}async function Xy(){return le.DEBUG==="1"?void 0:(await re.storage.local.get(Hl))[Hl]}async function Yc(){let e=await Xy(),n={...Gs(),...vc,buildinConfigUpdatedAt:le.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function ln(){return Kc()}function Vr(e){return Hy(e)}async function Gy(e,t){await re.storage.sync.set({[e]:t})}async function Vy(e){return(await re.storage.sync.get(e))[e]}async function Pr(e,t){await re.storage.local.set({[e]:t})}async function Ii(e){return(await re.storage.local.get(e))[e]}var $y={};function Qc(e){return $y[e]}function e9(e,t){$y[e]=t}var VD=async()=>{let e=["zh-CN"];try{e=await re.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>S2.find(a=>a===r));return n||"en"},Gs=()=>{let e={...vc,buildinConfigUpdatedAt:le.BUILD_TIME};return{...e,targetLanguage:Ia,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function KD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function YD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ia;let n=await Nt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Qy(l,r[s]))}),Dr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Qy(l,n[s]))}),Dr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function JD(e){try{let t=await Nt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Qy(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function ZD(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Nt("installedAt",""),p=Number(await ki("translage_page_daily",0)),g=Number(await Nt(cr,0)),h;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function $D(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function eL(e,t){let n=await tL(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=pu(e[o],t[o]));else if(o==="translationServices")t9(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(te()||it()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?Ny(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(le.PROD==="0"&&le.DEV_RULES){let s=JSON.parse(le.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function tL(){let e={};if(!te()&&re.commands&&re.commands.getAll){let t=await re.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function n9(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Ky(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Dr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&t9(i,e),s&&(r=pu(r,s))}),r}function Ka(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function nL(e,t){return e<>>32-t}function Zc(e,t,n,r,a,i){return Ka(nL(Ka(Ka(t,e),Ka(r,i)),a),n)}function bn(e,t,n,r,a,i,o){return Zc(t&n|~t&r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return Zc(t&r|n&~r,e,t,a,i,o)}function xn(e,t,n,r,a,i,o){return Zc(t^n^r,e,t,a,i,o)}function vn(e,t,n,r,a,i,o){return Zc(n^(t|~r),e,t,a,i,o)}function Jc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Jp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Jc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Jc(a.concat(Jp(t)),512+t.length*8),r9(Jc(i.concat(o),512+128))}function a9(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Zp(e){return unescape(encodeURIComponent(e))}function i9(e){return rL(Zp(e))}function iL(e){return a9(i9(e))}function o9(e,t){return aL(Zp(e),Zp(t))}function oL(e,t){return a9(o9(e,t))}function nr(e,t,n){return t?n?o9(t,e):oL(t,e):n?i9(e):iL(e)}var Ro=[],iK=1e3*3600*24;async function Xc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function s9(e){let t=`${P}-${e.service}@${e.from}->${e.to}`;return await lL(t,{...e,createAt:new Date().getTime()})}async function u9(e){let t=nr(e.originalText),n=`${P}-${e.service}@${e.from}->${e.to}`;return await uL(n,t)}async function uL(e,t){let n=await Xc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function lL(e,t){let n=await Xc(e);return(await l9()).includes(e)||await cL(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function cL(e){let t="cache_list",n=await Xc(P+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Ro.push(e)},a.onerror=i=>{n.close()}}async function l9(){if(Ro&&Ro.length>0)return Ro;let e=await Xc(P+"-cacheList","cache_list");return Ro=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Ro}async function c9(){try{let t=(await l9()).map(r=>dL(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function dL(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var $c="Original";function Ye(){return $c}function _n(e){$c=e,m9($c);let t=new CustomEvent(Ot,{detail:JSON.stringify({type:"updatePageStatus",payload:$c})});document.dispatchEvent(t)}var d9="Original";function Io(){return d9}function mr(e,t){if(t)return;d9=e;let n=new CustomEvent(Rs,{detail:e});document.dispatchEvent(n)}var g9="auto",e0="auto",p9="auto";function f9(e){g9=e}function rr(e){e0=e}function pt(){return e0!=="auto"?e0:p9!=="auto"?p9:g9}function t0(){return e0}function Fi(e){return e?.id?.endsWith("pdfWebPage")||!1}function Bi(e){try{if(!e||!Fi(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function Xp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function n0(e){return $p(JSON.stringify(e))}async function $p(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var pr,tg=0,r0=!1,gu="initial",ng=!1,h9="",b9,y9,rg=!1,eg=new Map;async function Fo(e,t,n,r){if(rg=!1,y9=e.sourceProgram,b9=e.specialAiAssistant,r!=null&&ng&&pr||pr&&h9==n&&!n.trim())return;gu="initial",pr=void 0,ng=r||!1;let a=e.rule.bodyRule;if(r0=!1,!n||!a||!e.isPro||(tg=(a.contextTimeout||0)/100,tg<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(r0=i.enableAIContext||!1,!!r0&&e.user?.token)){gu="requesting";try{let o=await $p(n);if(eg.has(o)){pr=eg.get(o);return}let s=await K({url:rt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});h9=n,pr={theme:s.theme,termsRaw:s.terms,terms:mL(s.terms)},eg.set(o,pr)}catch{}finally{gu="finished"}k.debug("requestTermsByContext contextTerms",pr)}}function x9(){ng||(gu="initial",pr=void 0)}function v9(){rg=!0}function a0(){return b9?null:{contextTerms:pr,used:rg,sourceProgram:y9}}async function S9(){if(!(!r0||gu=="initial")){for(let e=0;ee.includes(n)):[]}function mL(e){let t=[];return e.split(` -`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var _e={},Kr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return _e.getIsDulSubtitle();if(n==="getPageStatus")return Ye();n==="updateContextState"&&await _e.updateContextState(r);let a=await _e.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await _e.translateTheWholePage(r),ot(cr,i);else if(n==="translateTheMainPage")await _e.translateTheMainPage(r),ot(cr,i);else if(n==="translateToThePageEndImmediately")await _e.translateToThePageEndImmediately(r),ot(cr,i);else if(n==="toggleTranslateManga")await _e.toggleTranslateManga(),ot(cr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Fi(a?.rule)){let s=Bi(a.rule);Bo(!0,s||o);return}await _e.toggleTranslatePage(r),ot(cr,i)}else if(n==="toggleTranslateTheWholePage")await _e.toggleTranslateTheWholePage(r),ot(cr,i);else if(n==="toggleTranslateTheMainPage")await _e.toggleTranslateTheMainPage(r),ot(cr,i);else if(n==="toggleOnlyTransation")await _e.ensureSwitchTranslationMode(r),ot(cr,i);else if(n=="toggleEnableEditTranslation")_e.toggleEnableEditTranslation();else if(n==="translatePage")await _e.translatePage(a,r),ot(cr,i);else if(n==="toggleTranslationMask")await _e.toggleTranslationMask(r);else if(n==="restorePage")_e.restorePage();else if(n==="retryFailedParagraphs")_e.retryFailedParagraphs();else if(n=="change_translate_service")_e.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await _e.switchTranslationMode(r.mode),await _e.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")_e.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(jl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await _e.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Ps,{detail:r}));else if(n==="translateWithOpenAI")await _e.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await _e.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await _e.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await _e.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await _e.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await _e.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await _e.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await _e.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await _e.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Ke()||await _e.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Ke())return JSON.stringify(a);await st(5e3)}else if(n==="inputSelectedTextTranslate")await _e.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return _e.popupEventReport(a,r);if(n==="updateFloatBallEnable")return _e.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}})):n===r1&&await _e.translateSelectImage(a,r)}};function C9(e){Object.assign(_e,e)}function w9(e){Object.assign(_e,e)}function E9(e){Object.assign(_e,e)}var pL=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ye();if(n==="getCurrentPageLanguage"){let a=pt();return _e.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return rr(r),pt();if(n==="getContextString"){let a=_e.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=_e.getPureGlobalContext();return Bi(a?.rule)}else if(n=="getAIContextInfo")return a0()}},i0,o0;function A9(){let e=s0();Ke()||gL(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function s0(){return i0||(i0=new Fa("content_script",!1).getConnection("main",Kr),i0)}function gL(){return o0||(o0=new Fa("content_script",!1).getConnection("main_sync",pL,{sync:!0}),o0)}var ag=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],u0="https://transmart.qq.com/api/imt",ya=class e{static langMapReverse=new Map(ag.map(([t,n])=>[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await K({url:u0,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function fL(e,t){return Math.floor(Math.random()*(t-e+1))+e}var hL=30,ig="RATE_LIMITER_TICKS",_o=class e{static strictTicks={};static clearStrictTicks(){Pr(ig,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Ii(ig)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Pr(ig,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=fL(4,hL);await st(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ct(e){return await s0().sendMessage("background:main",e)}function K(e){return bl()?uc({method:"request",data:e}):te()||hl()?(e.fetchPolyfill=globalThis.GM_fetch,Li(e)):ct({method:"fetch",data:e})}function Sn(){return te()?qt():ct({method:"getConfig"})}function Wt(e){return te()?Vr(e):ct({method:"setUserConfig",data:e})}function Mt(){return te()?ln():ct({method:"getUserConfig"})}function On(){return te()?Yt():ct({method:"getLocalConfig"})}function xa(e){return te()?zt(e):ct({method:"setLocalConfig",data:e})}function k9(e){return te()?Zy(e):ct({method:"setBuildinConfig",data:e})}async function Be(e){if(e.text){let n=ic(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(te()||it()){if(e.translateService&&!Cc.includes(e.translateService))return Promise.resolve("auto");let r=m2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ct({method:"detectLanguage",data:e});return Promise.resolve(t)}function D9(){return ct({method:"detectTabLanguage"})}async function l0(e){let t=await Be({text:e,pageLangs:["en"]});try{if(te()||it()){let n=e.substring(0,200);t=await ya.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function m9(e){let t=new CustomEvent(Si,{detail:e});if(document.dispatchEvent(t),te())return;s0().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function L9(e){return te()?u9(e):ct({method:"queryParagraphCache",data:e})}async function P9(e){if(te()){await s9(e);return}return ct({method:"setParagraphCache",data:e})}async function M9(){if(te())return Promise.resolve();await ct({method:"mockRequest"})}function Ya(e=!1,t=""){return document.querySelector(`meta[name=${P}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):te()?(re.runtime.openOptionsPage(e,t),Promise.resolve()):ct({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Qa(e=""){return te()||it()?ke().OPTIONS_URL:re.runtime.getURL("options.html")}function R9(e=""){return re&&re.runtime&&re.runtime.getURL?re.runtime.getURL("options.html"):""}function c0(e=!1){return te()?(re.extra.openAboutPage(e),Promise.resolve()):ct({method:"openAboutPage"})}function Gr(e){return te()?(re.extra.openInTab(e),Promise.resolve()):ct({method:"openInTab",data:e})}function I9(e=!1){return te()?(re.extra.openEbookViewerPage(e),Promise.resolve()):ct({method:"openEbookViewerPage"})}function F9(e=!1){return te()?(re.extra.openEbookBuilderPage(e),Promise.resolve()):ct({method:"openEbookBuilderPage"})}function d0(e){it()}function Bo(e=!1,t){return te()?(re.extra.openPdfViewerPage(e),Promise.resolve()):ct({method:"openPdfViewerPage",data:{url:t}})}function B9(e=!1){return te()?(re.extra.openSubtitleBuilderPage(e),Promise.resolve()):ct({method:"openSubtitleBuilderPage"})}function fu(e){return te()?Promise.resolve():ct({method:"setBadge",data:{text:e}})}function _9(){return te()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ct({method:"autoSyncLatestConfig"})}function m0(e,t=!1){return te()?re.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function O9(e,t){return te()||le.MOCK==="1"?_o.getDelay(e,t):ct({method:"getDelay",data:{key:e,options:t}})}async function N9(){return te()?!1:ct({method:"getIsSupportIsOnToolbar"})}async function j9(){return te()?!1:ct({method:"getIsOnToolbar"})}async function og(){if(!te())return ct({method:"updateVideoSubtitleStatus"})}function _i({targetLanguage:e,text:t}){te()||ct({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function mu(){te()||ct({method:"updateImageMenu"})}async function U9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",sg(t),"AES-GCM",!0,["encrypt","decrypt"]),a=sg(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:sg(n)},r,a);return bL(i)}catch{return Promise.reject("Encryption failed")}}function bL(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=B.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let O=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),O.enableAIContext&&(L.ai_assistant="ai_context"),O&&(O.provider&&(L.translation_service_provider=O.provider),n.translationService==="openai"&&O.provider==="custom"&&(O.apiUrl?O.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),O.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=hc(y);let O=yc(y);L.install_week=`${O.year}${O.week}`}if(n.user){let O=g2(n.user);O&&Object.keys(O).forEach(z=>{L[z]=O[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=T?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let O=n.url;try{let z=new URL(O);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...B,params:L}});if(i)return;I.forEach(async B=>{let L=await K({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&yL(p,R),n.config.enablePerformanceReport&&SL(n,R)}catch(r){k.debug("report error",r)}}function yL(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};H9(r);let a=Date.now()+(Math.random()*100).toFixed(0);K({url:Us,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var xL=Date.now(),vL=["translate_page","translate_video_subtitle"];function SL(e,t){try{t.forEach(async n=>{if(!vL.includes(n.name)||e.config.performanceBlockUrls?.some(l=>ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};H9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-xL},s=await U9(JSON.stringify(o),F1,B1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);K({url:Us,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function H9(e){return e?.install_day&&(e.install_day=bc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Ja(e){return e!=null}function W9(e,t,n){return`${e.type}#${t}#${n}`}function G9(e,t,n,r,a){return{body:a,id:r,type:W9(e,t,n)}}function TL(e,t,n,r){return{id:n,response:r,type:W9(e,"ask",t)}}function V9(e,t,n,r){if(Ja(r)){let a=r.type;if(Ja(a)&&Ja(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function CL(e,t,n){if(Ja(n)){let r=n.type;if(Ja(r)&&Ja(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function wL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function EL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;CL(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function AL(e,t,n,r){let a=i=>{let o=i.data;V9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function q9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(V9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(TL(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function kL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(G9(t,"tell",n,i,r),a)}async function z9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await EL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(G9(n,"ask",r,s,a),i),u}var Za=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;q9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ja(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await z9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(AL(this.thisWindow,this.protocol,t,n))}tell(t,n){kL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(q9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return z9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){wL(this.listeners)}};var K9;async function Y9(){if(Ke()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Za.iframe(Kl,"*",{targetWindow:t});K9=n,await Za.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function Q9(){return K9}function J9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ee=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Ab(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof j?new j(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f?.callback?.(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let S=p[b],w=0;for(let C=0;C{let w=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(w=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(T=>T.text),forces:f.tempSentences.map(T=>T.force),xpaths:f.tempSentences.map(T=>T.xpath||""),from:w,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=p1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let T=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(T=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=qr(this.serviceConfig);if(f.tempSentences.forEach((O,z)=>{let V=qp({text:O.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);O.force!==!0&&(V&&V.text&&V.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:O,from:w,to:f.to})}let I="";T&&T.length>=2?I=A.map((O,z)=>{let{item:V}=O;return z===A.length-1?V.text:V.text+T[0]+(z+1)+T[1]}).join(""):I=A.map(({item:O})=>O.text).join(C);let F=await this.translate({text:I,from:w,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:R}=F,B=[];if(T&&T.length>=2){let O=`${T[0]}\\d+${T[1]}`;T&&T.length>=3&&(O=T[2]);let z=new RegExp(O,"g");B=R.split(z)}else B=R.split(C);let L=[];if(B.length>A.length){for(let O=0;OO.text);return D=qr(this.serviceConfig,!0),L.forEach((O,z)=>{let V=A[z],ie=V.index,je=V.variables||{};Object.keys(je).length>0&&(O=zp({text:O,delimiters:D,variables:je},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ie]=O}),{sourceTempSentences:f.tempSentences,text:_,from:F.from,to:F.to}}};m.push(S().then(w=>{let{text:C,sourceTempSentences:T}=w;for(let A=0;A{if(w instanceof j&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=qr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=qp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=qr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=zp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Be({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Oo="input is invalid type",ug=typeof window=="object",Xa=ug?window:{};Xa.JS_SHA256_NO_WINDOW&&(ug=!1);var DL=!ug&&typeof self=="object",LL=!Xa.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;LL?Xa=global:DL&&(Xa=self);var mQ=!Xa.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,pQ=typeof define=="function"&&define.amd,hu=!Xa.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ce="0123456789abcdef".split(""),PL=[-2147483648,8388608,32768,128],Mr=[24,16,8,0],p0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],g0=["hex","array","digest","arrayBuffer"],rn=[];(Xa.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});hu&&(Xa.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Z9=function(e,t){return function(n){return new an(t,!0).update(n)[e]()}},$9=function(e){var t=Z9("hex",e);t.create=function(){return new an(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};an.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=PL[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};an.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+p0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+p0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+p0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+p0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};an.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ce[e>>28&15]+ce[e>>24&15]+ce[e>>20&15]+ce[e>>16&15]+ce[e>>12&15]+ce[e>>8&15]+ce[e>>4&15]+ce[e&15]+ce[t>>28&15]+ce[t>>24&15]+ce[t>>20&15]+ce[t>>16&15]+ce[t>>12&15]+ce[t>>8&15]+ce[t>>4&15]+ce[t&15]+ce[n>>28&15]+ce[n>>24&15]+ce[n>>20&15]+ce[n>>16&15]+ce[n>>12&15]+ce[n>>8&15]+ce[n>>4&15]+ce[n&15]+ce[r>>28&15]+ce[r>>24&15]+ce[r>>20&15]+ce[r>>16&15]+ce[r>>12&15]+ce[r>>8&15]+ce[r>>4&15]+ce[r&15]+ce[a>>28&15]+ce[a>>24&15]+ce[a>>20&15]+ce[a>>16&15]+ce[a>>12&15]+ce[a>>8&15]+ce[a>>4&15]+ce[a&15]+ce[i>>28&15]+ce[i>>24&15]+ce[i>>20&15]+ce[i>>16&15]+ce[i>>12&15]+ce[i>>8&15]+ce[i>>4&15]+ce[i&15]+ce[o>>28&15]+ce[o>>24&15]+ce[o>>20&15]+ce[o>>16&15]+ce[o>>12&15]+ce[o>>8&15]+ce[o>>4&15]+ce[o&15];return this.is224||(u+=ce[s>>28&15]+ce[s>>24&15]+ce[s>>20&15]+ce[s>>16&15]+ce[s>>12&15]+ce[s>>8&15]+ce[s>>4&15]+ce[s&15]),u};an.prototype.toString=an.prototype.hex;an.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};an.prototype.array=an.prototype.digest;an.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function f0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Oo);if(hu&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!hu||!ArrayBuffer.isView(e)))throw new Error(Oo)}else throw new Error(Oo);e.length>64&&(e=new an(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}an.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}f0.prototype=new an;f0.prototype.finalize=function(){if(an.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();an.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),an.prototype.finalize.call(this)}};var No=$9();No.sha256=No;No.sha224=$9(!0);No.sha256.hmac=e6();No.sha224.hmac=e6(!0);var t6=No;var n6=t6.sha256;function Hn(e){return Promise.resolve(n6(e))}function jo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=n6.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function r6(e,t){let n=await ar(e,t);return jo(n)}async function h0(e,t){let n=ML(t),r=await ar(e,n);return jo(r)}function ML(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var a6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],bu=class e extends Ee{static langMap=new Map(a6);maxTextGroupLength=50;static langMapReverse=new Map(a6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new j("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function MD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function ay(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Fc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Up(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Dr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ao(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function py(e,t){let n=t||e.translationService;return Ao(e,n,e.config.translationServices)?Up(e.rule):e.rule}function su(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var RD=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function tr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Ur(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(tr(e,i))return!1;if(tr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!tr(e,o)),c;function d(){return n&&n.display?!!RD.includes(n.display):tr(e,r)}}var At=tr;function Pi(e){return!!e.shadowRoot}function Ha(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function uu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Hr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Li(e,t,n=!1){let r=e?.[t];return Hr(r,n)}function ko(e,t){return Na(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Hp(e){let{rule:t}=e,n=ID(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function ID(e){let t=e.config.loadingTheme;return`${L}-loading-${t}`}function lu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,s1,t.toString());let i=Hp(e);return a.append(n?" ...":Ze.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Do(e,t){return e.querySelector(`[${Wm}='${t}']`)}function fy(){document.querySelectorAll(`[${Wm}]`).forEach(t=>{t.remove()})}function hy(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function by(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Oa(n)&&t.push(n)}),t}function qp(e,t){return t?FD(e):BD(e)}function FD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,b)=>{if(g=="id"&&u[b+2]=="=")return p;let h=l++;return t[`${h}`]=yy(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Ap(p),m.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function BD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,b)=>g.tl&&!b.tl?1:!g.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,b,h)=>{if(b=="id"&&l[h+2]=="=")return g;let f=c++;return t[`${f}`]=yy(b,d),o.length>2?g.replace(b,`<${o[2]}${f}>`):g.replace(b,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let b=c++;return t[`${b}`]=Ap(g),o.length>2?p.replace(g,`<${o[2]}${b}>`):p.replace(g,`${o[0]}${b}${o[1]}`)})})}catch(d){k.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function zp(e,t){return t?_D(e):OD(e)}function _D(e){let{text:t,variables:n}=e,r=su(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function OD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function yy(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Lo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||fb(l)||db(l)||gb(l)||mb(l)||pb(l)||jD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:yo(i?.trim(),n,r)}function Mi(e){return e.nodeType===Node.ELEMENT_NODE}function xy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Lr(){return await Nt("fakeUserId","")}async function ND(){return await Nt("installedAt","")}async function Po(e,t){let r=ke().INSTALL_FROM,a=Ht(),i=await ND(),o=await Lr(),s=await qt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await fo(),m=await bo(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await ho();return g&&(p.abGroup=g),p}function cu(e,t){let[n,r]=W();return J(()=>{!e||!t||(async()=>{let a=await Wp(e,t);r(a)})()},[e,t,r]),n}async function Wp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!it()&&te()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Nt("installedAt","");new Date(o).getTime()s==n),a=UD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function UD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Sy(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function Ty(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Bc[e]=setTimeout(()=>{n("")},t)})}function wy(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function qa(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new j(t,n).initNetWork(e.status)}function Nc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function ga(){return fp()?"imtAndroid":Vs()?"imtIOS":te()?"userscript":it()?"safari":Tr()?"firefox":V1()?"chrome":"other"}function qr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function jc(e){return e?.getAttribute("imt-state")||""}function zr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Uc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(tr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Ey(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Ay(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function ky(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var HD={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},_c={...HD};function fa(e){_c[e]||(_c[e]=Date.now())}var gy=!1;function Dy(){if(gy)return;gy=!0;let e=_c.initial,t={..._c};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(Y+"PerformanceData",JSON.stringify(t))}function Wa(e){if(e.beta)return!1;if(it()&&e.spVersion)return za(lo(),e.spVersion);if(P2()&&e.gspVersion){let t=M2();if(t)return za(t,e.gspVersion)}if(Vs()&&e.ispVersion){let t=L2();if(t)return za(t,e.ispVersion)}return!1}function za(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Vp(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),du())}async function Ly(e){let n=(await qt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),qD(a.toString())}function qD(e){try{it()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function Py(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function My(e){return ft(e)}function Hc(e){return Array.isArray(e)?e:e?[e]:[]}function qc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function zc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ry(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function mu(e,t){let n={...e};return Oy(n,t),zD(n,t),n}function _y(e,t,n){let r={...e};return Dr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Dr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function zD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;Oy(e,a)}function Dr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Iy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,b]=Iy(i);o=m+"."+p,s=g,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Hc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!Fy(u))return;d=Kp(c,l)}else if(s=="remove_v"){if(!Fy(u))return;d=By(c,l)}else s==="add"?d=Kp(c,l):s=="remove"&&(d=By(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Kp(c,l):d=l,r(o,d)})}function Oy(e,t){return Dr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Kp(e,t){let n;if(Array.isArray(e)){let r=Hc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Iy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Fy(e){let t=Ht();return e&&za(t,e)}function By(e,t){if(Array.isArray(e)){let n=Hc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Ny="userConfig",Wc="userPromptPool",Gc="userObjectPool";async function Vc(){let e=await Wy(Ny)||{},t=await Ri(Wc)||{},n=await Ri(Gc)||{};return WD(e,t,n)}async function jy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Yp(e);await zy(Ny,t),await Pr(Wc,n),await Pr(Gc,r)}function Yp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Uy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Hy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function WD(e,t,n){return Uy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Hy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Uy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Hy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ga(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=qy(r);for(let o of i)delete a[o]}),n}function Qp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=qy(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function qy(e){let t=kr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=vo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Gy(e,t){return Vy(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function Vy(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>Vy(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Dr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await QD(l),YD(n,u,l),l=await $D(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Yy(){if(le.PROD==="1")return{};let e={};if(le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(le.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=le.DEEPL_PROXY_ENDPOINT),le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}le.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=le.IMMERSIVE_TRANSLATE_SERVICE);let t={};return le.DEBUG==="1"&&(t.debug=!0,t.cache=!1),le.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await re.storage.local.get(Ms);if(e[Ms]){let t=e[Ms],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await re.storage.local.set({[Ms]:e})}async function Qy(e){await re.storage.local.set({[Ul]:e})}async function Jy(){return le.DEBUG==="1"?void 0:(await re.storage.local.get(Ul))[Ul]}async function Kc(){let e=await Jy(),n={...Ws(),...xc,buildinConfigUpdatedAt:le.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function ln(){return Vc()}function Gr(e){return jy(e)}async function zy(e,t){await re.storage.sync.set({[e]:t})}async function Wy(e){return(await re.storage.sync.get(e))[e]}async function Pr(e,t){await re.storage.local.set({[e]:t})}async function Ri(e){return(await re.storage.local.get(e))[e]}var Zy={};function Yc(e){return Zy[e]}function Xy(e,t){Zy[e]=t}var GD=async()=>{let e=["zh-CN"];try{e=await re.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>x2.find(a=>a===r));return n||"en"},Ws=()=>{let e={...xc,buildinConfigUpdatedAt:le.BUILD_TIME};return{...e,targetLanguage:Ra,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function VD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function KD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ra;let n=await Nt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Ky(l,r[s]))}),Dr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Ky(l,n[s]))}),Dr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function QD(e){try{let t=await Nt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Ky(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function JD(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Nt("installedAt",""),p=Number(await Ai("translage_page_daily",0)),g=Number(await Nt(cr,0)),b;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function XD(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function $D(e,t){let n=await eL(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=mu(e[o],t[o]));else if(o==="translationServices")$y(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(te()||it()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?_y(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(le.PROD==="0"&&le.DEV_RULES){let s=JSON.parse(le.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function eL(){let e={};if(!te()&&re.commands&&re.commands.getAll){let t=await re.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function e9(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Gy(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Dr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&$y(i,e),s&&(r=mu(r,s))}),r}function Va(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function tL(e,t){return e<>>32-t}function Jc(e,t,n,r,a,i){return Va(tL(Va(Va(t,e),Va(r,i)),a),n)}function hn(e,t,n,r,a,i,o){return Jc(t&n|~t&r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return Jc(t&r|n&~r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return Jc(t^n^r,e,t,a,i,o)}function xn(e,t,n,r,a,i,o){return Jc(n^(t|~r),e,t,a,i,o)}function Qc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Jp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Qc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Qc(a.concat(Jp(t)),512+t.length*8),t9(Qc(i.concat(o),512+128))}function n9(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Zp(e){return unescape(encodeURIComponent(e))}function r9(e){return nL(Zp(e))}function aL(e){return n9(r9(e))}function a9(e,t){return rL(Zp(e),Zp(t))}function iL(e,t){return n9(a9(e,t))}function nr(e,t,n){return t?n?a9(t,e):iL(t,e):n?r9(e):aL(e)}var Ro=[],oK=1e3*3600*24;async function Zc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function i9(e){let t=`${L}-${e.service}@${e.from}->${e.to}`;return await uL(t,{...e,createAt:new Date().getTime()})}async function o9(e){let t=nr(e.originalText),n=`${L}-${e.service}@${e.from}->${e.to}`;return await sL(n,t)}async function sL(e,t){let n=await Zc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function uL(e,t){let n=await Zc(e);return(await s9()).includes(e)||await lL(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function lL(e){let t="cache_list",n=await Zc(L+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Ro.push(e)},a.onerror=i=>{n.close()}}async function s9(){if(Ro&&Ro.length>0)return Ro;let e=await Zc(L+"-cacheList","cache_list");return Ro=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Ro}async function u9(){try{let t=(await s9()).map(r=>cL(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function cL(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var Xc="Original";function Ye(){return Xc}function _n(e){Xc=e,c9(Xc);let t=new CustomEvent(Ot,{detail:JSON.stringify({type:"updatePageStatus",payload:Xc})});document.dispatchEvent(t)}var l9="Original";function Io(){return l9}function mr(e,t){if(t)return;l9=e;let n=new CustomEvent(Rs,{detail:e});document.dispatchEvent(n)}var m9="auto",$c="auto",d9="auto";function p9(e){m9=e}function rr(e){$c=e}function pt(){return $c!=="auto"?$c:d9!=="auto"?d9:m9}function e0(){return $c}function Ii(e){return e?.id?.endsWith("pdfWebPage")||!1}function Fi(e){try{if(!e||!Ii(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function Xp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function t0(e){return $p(JSON.stringify(e))}async function $p(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var pr,tg=0,n0=!1,pu="initial",ng=!1,g9="",f9,h9,rg=!1,eg=new Map;async function Fo(e,t,n,r){if(rg=!1,h9=e.sourceProgram,f9=e.specialAiAssistant,r!=null&&ng&&pr||pr&&g9==n&&!n.trim())return;pu="initial",pr=void 0,ng=r||!1;let a=e.rule.bodyRule;if(n0=!1,!n||!a||!e.isPro||(tg=(a.contextTimeout||0)/100,tg<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(n0=i.enableAIContext||!1,!!n0&&e.user?.token)){pu="requesting";try{let o=await $p(n);if(eg.has(o)){pr=eg.get(o);return}let s=await K({url:rt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});g9=n,pr={theme:s.theme,termsRaw:s.terms,terms:dL(s.terms)},eg.set(o,pr)}catch{}finally{pu="finished"}k.debug("requestTermsByContext contextTerms",pr)}}function b9(){ng||(pu="initial",pr=void 0)}function y9(){rg=!0}function r0(){return f9?null:{contextTerms:pr,used:rg,sourceProgram:h9}}async function x9(){if(!(!n0||pu=="initial")){for(let e=0;ee.includes(n)):[]}function dL(e){let t=[];return e.split(` +`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Be={},Vr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Be.getIsDulSubtitle();if(n==="getPageStatus")return Ye();n==="updateContextState"&&await Be.updateContextState(r);let a=await Be.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Be.translateTheWholePage(r),mt(cr,i);else if(n==="translateTheMainPage")await Be.translateTheMainPage(r),mt(cr,i);else if(n==="translateToThePageEndImmediately")await Be.translateToThePageEndImmediately(r),mt(cr,i);else if(n==="toggleTranslateManga")await Be.toggleTranslateManga(),mt(cr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Ii(a?.rule)){let s=Fi(a.rule);Bo(!0,s||o);return}await Be.toggleTranslatePage(r),mt(cr,i)}else if(n==="toggleTranslateTheWholePage")await Be.toggleTranslateTheWholePage(r),mt(cr,i);else if(n==="toggleTranslateTheMainPage")await Be.toggleTranslateTheMainPage(r),mt(cr,i);else if(n==="toggleOnlyTransation")await Be.ensureSwitchTranslationMode(r),mt(cr,i);else if(n=="toggleEnableEditTranslation")Be.toggleEnableEditTranslation();else if(n==="translatePage")await Be.translatePage(a,r),mt(cr,i);else if(n==="toggleTranslationMask")await Be.toggleTranslationMask(r);else if(n==="restorePage")Be.restorePage();else if(n==="retryFailedParagraphs")Be.retryFailedParagraphs();else if(n=="change_translate_service")Be.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Be.switchTranslationMode(r.mode),await Be.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Be.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Nl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Be.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Ps,{detail:r}));else if(n==="translateWithOpenAI")await Be.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Be.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Be.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Be.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Be.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Be.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Be.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Be.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Be.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Ke()||await Be.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Ke())return JSON.stringify(a);await ot(5e3)}else if(n==="inputSelectedTextTranslate")await Be.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Be.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Be.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(xi,{detail:{type:"webReport"}})):n===t1&&await Be.translateSelectImage(a,r)}};function S9(e){Object.assign(Be,e)}function T9(e){Object.assign(Be,e)}function C9(e){Object.assign(Be,e)}var mL=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ye();if(n==="getCurrentPageLanguage"){let a=pt();return Be.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return rr(r),pt();if(n==="getContextString"){let a=Be.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Be.getPureGlobalContext();return Fi(a?.rule)}else if(n=="getAIContextInfo")return r0()}},a0,i0;function w9(){let e=o0();Ke()||pL(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function o0(){return a0||(a0=new Ia("content_script",!1).getConnection("main",Vr),a0)}function pL(){return i0||(i0=new Ia("content_script",!1).getConnection("main_sync",mL,{sync:!0}),i0)}var ag=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],s0="https://transmart.qq.com/api/imt",ha=class e{static langMapReverse=new Map(ag.map(([t,n])=>[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await K({url:s0,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function gL(e,t){return Math.floor(Math.random()*(t-e+1))+e}var fL=30,ig="RATE_LIMITER_TICKS",_o=class e{static strictTicks={};static clearStrictTicks(){Pr(ig,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Ri(ig)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Pr(ig,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=gL(4,fL);await ot(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await o0().sendMessage("background:main",e)}function K(e){return hl()?sc({method:"request",data:e}):te()||fl()?(e.fetchPolyfill=globalThis.GM_fetch,Di(e)):lt({method:"fetch",data:e})}function vn(){return te()?qt():lt({method:"getConfig"})}function Wt(e){return te()?Gr(e):lt({method:"setUserConfig",data:e})}function Mt(){return te()?ln():lt({method:"getUserConfig"})}function On(){return te()?Yt():lt({method:"getLocalConfig"})}function ba(e){return te()?zt(e):lt({method:"setLocalConfig",data:e})}function E9(e){return te()?Qy(e):lt({method:"setBuildinConfig",data:e})}async function Ne(e){if(e.text){let n=ac(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(te()||it()){if(e.translateService&&!Tc.includes(e.translateService))return Promise.resolve("auto");let r=c2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function A9(){return lt({method:"detectTabLanguage"})}async function u0(e){let t=await Ne({text:e,pageLangs:["en"]});try{if(te()||it()){let n=e.substring(0,200);t=await ha.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function c9(e){let t=new CustomEvent(vi,{detail:e});if(document.dispatchEvent(t),te())return;o0().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function k9(e){return te()?o9(e):lt({method:"queryParagraphCache",data:e})}async function D9(e){if(te()){await i9(e);return}return lt({method:"setParagraphCache",data:e})}async function L9(){if(te())return Promise.resolve();await lt({method:"mockRequest"})}function Ka(e=!1,t=""){return document.querySelector(`meta[name=${L}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):te()?(re.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Ya(e=""){return te()||it()?ke().OPTIONS_URL:re.runtime.getURL("options.html")}function P9(e=""){return re&&re.runtime&&re.runtime.getURL?re.runtime.getURL("options.html"):""}function l0(e=!1){return te()?(re.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Wr(e){return te()?(re.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function M9(e=!1){return te()?(re.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function R9(e=!1){return te()?(re.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function c0(e){it()}function Bo(e=!1,t){return te()?(re.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function I9(e=!1){return te()?(re.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function gu(e){return te()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function F9(){return te()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function d0(e,t=!1){return te()?re.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function B9(e,t){return te()||le.MOCK==="1"?_o.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function _9(){return te()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function O9(){return te()?!1:lt({method:"getIsOnToolbar"})}async function og(){if(!te())return lt({method:"updateVideoSubtitleStatus"})}function Bi({targetLanguage:e,text:t}){te()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function du(){te()||lt({method:"updateImageMenu"})}async function N9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",sg(t),"AES-GCM",!0,["encrypt","decrypt"]),a=sg(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:sg(n)},r,a);return hL(i)}catch{return Promise.reject("Encryption failed")}}function hL(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let P=B.params||{};if(F.os&&(P.os_name=F.os.name||"unknown",P.os_version=F.os.version||"unknown",P.os_version_name=F.os.versionName||"unknown"),F.browser&&(P.browser_name=F.browser.name||"unknown",P.browser_version=F.browser.version||"unknown",r&&(P.browser_name=r.name,P.browser_version=r.version)),F.platform&&(P.platform_type=F.platform.type||"unknown"),F.engine&&(P.engine_name=F.engine.name||"unknown",P.engine_version=F.engine.version||"unknown"),n.translationService){P.translation_service||(P.translation_service=n.translationService);let O=n.config.translationServices?.[n.translationService];!P.ai_assistant&&P.translation_service&&n.specialAiAssistant?.applyTranslationService==P.translation_service&&(P.ai_assistant=n?.specialAiAssistant.id),O.enableAIContext&&(P.ai_assistant="ai_context"),O&&(O.provider&&(P.translation_service_provider=O.provider),n.translationService==="openai"&&O.provider==="custom"&&(O.apiUrl?O.apiUrl.startsWith("https://api.openai.com/")?P.openai_is_official="1":P.openai_is_official="0":P.openai_is_official="1"),O.extends=="ai"&&!P.ai_assistant&&(P.ai_assistant="common"))}if(P.translation_service&&P.translation_service.startsWith("custom")&&(P.translation_service="custom-ai"),P.ai_assistant&&P.ai_assistant.startsWith("custom")&&(P.ai_assistant="custom"),P.ai_assistant_use&&P.ai_assistant_use.startsWith("custom")&&(P.ai_assistant_use="custom"),n.targetLanguage&&(P.target_language=n.targetLanguage),n.config.interfaceLanguage&&(P.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?P.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":P.enable_default_always_translated_urls="0",d&&(P.version=d),n.config.enableInputTranslation?P.enable_input_translation=n.config.enableInputTranslation?"1":"0":P.enable_input_translation="0",n.config.translationTheme&&(P.translation_theme=n.config.translationTheme),n.config.alpha&&(P.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?P.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):P.always_translate_languages="none",a.INSTALL_FROM&&(P.install_from=a.INSTALL_FROM),n.config.beta&&(P.beta=n.config.alpha.toString()),n.config.translationArea&&(P.translation_area=n.config.translationArea),v){P.install_day=fc(y);let O=bc(y);P.install_week=`${O.year}${O.week}`}if(n.user){let O=m2(n.user);O&&Object.keys(O).forEach(z=>{P[z]=O[z]})}else P.user_type="anonymous";n.config.translationMode&&(P.translation_mode=n.config.translationMode),P.userscript=o.toString(),w?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=T?"1":"0",P.is_new_user_this_month=A?"1":"0",P.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?P.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():P.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),P.page_type=_,s?P.main_frame=0:P.main_frame=1,!c){let O=n.url;try{let z=new URL(O);P.site_host=z.hostname}catch{P.site_host="unknown"}n.sourceLanguage&&(P.source_language=n.sourceLanguage)}return b&&(P.ab_tag=b),h&&(P.ab_group=h),P.campaign=f||"none",{...B,params:P}});if(i)return;I.forEach(async B=>{let P=await K({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&bL(p,R),n.config.enablePerformanceReport&&vL(n,R)}catch(r){k.debug("report error",r)}}function bL(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};j9(r);let a=Date.now()+(Math.random()*100).toFixed(0);K({url:js,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var yL=Date.now(),xL=["translate_page","translate_video_subtitle"];function vL(e,t){try{t.forEach(async n=>{if(!xL.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};j9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-yL},s=await N9(JSON.stringify(o),R1,I1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);K({url:js,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function j9(e){return e?.install_day&&(e.install_day=hc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Qa(e){return e!=null}function q9(e,t,n){return`${e.type}#${t}#${n}`}function z9(e,t,n,r,a){return{body:a,id:r,type:q9(e,t,n)}}function SL(e,t,n,r){return{id:n,response:r,type:q9(e,"ask",t)}}function W9(e,t,n,r){if(Qa(r)){let a=r.type;if(Qa(a)&&Qa(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function TL(e,t,n){if(Qa(n)){let r=n.type;if(Qa(r)&&Qa(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function CL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function wL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;TL(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function EL(e,t,n,r){let a=i=>{let o=i.data;W9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function U9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(W9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(SL(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function AL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(z9(t,"tell",n,i,r),a)}async function H9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await wL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(z9(n,"ask",r,s,a),i),u}var Ja=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;U9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Qa(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await H9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(EL(this.thisWindow,this.protocol,t,n))}tell(t,n){AL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(U9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return H9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){CL(this.listeners)}};var G9;async function V9(){if(Ke()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Ja.iframe(Vl,"*",{targetWindow:t});G9=n,await Ja.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function K9(){return G9}function Y9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ee=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let h of a)h.from&&h.from!=="auto"&&l.add(h.from),h.refresh&&(i=!0),h.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=wb(a,c,d)}catch(h){if(r)for(let f=0;fh));let m=[],p=[],g=(h,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[h]||(p[h]=f,p[h].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[h].hasError)return;if(y){let C=y instanceof j?new j(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[h].hasError=!0,f?.callback?.(C,null,f.sentence);return}p[h].translatedTexts[f.partIndex]=v;let S=p[h],w=0;for(let C=0;C{let w=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(w=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(T=>T.text),forces:f.tempSentences.map(T=>T.force),xpaths:f.tempSentences.map(T=>T.xpath||""),from:w,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=d1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let T=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(T=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Hr(this.serviceConfig);if(f.tempSentences.forEach((O,z)=>{let V=qp({text:O.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);O.force!==!0&&(V&&V.text&&V.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:O,from:w,to:f.to})}let I="";T&&T.length>=2?I=A.map((O,z)=>{let{item:V}=O;return z===A.length-1?V.text:V.text+T[0]+(z+1)+T[1]}).join(""):I=A.map(({item:O})=>O.text).join(C);let F=await this.translate({text:I,from:w,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:R}=F,B=[];if(T&&T.length>=2){let O=`${T[0]}\\d+${T[1]}`;T&&T.length>=3&&(O=T[2]);let z=new RegExp(O,"g");B=R.split(z)}else B=R.split(C);let P=[];if(B.length>A.length){for(let O=0;OO.text);return D=Hr(this.serviceConfig,!0),P.forEach((O,z)=>{let V=A[z],ie=V.index,je=V.variables||{};Object.keys(je).length>0&&(O=zp({text:O,delimiters:D,variables:je},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ie]=O}),{sourceTempSentences:f.tempSentences,text:_,from:F.from,to:F.to}}};m.push(S().then(w=>{let{text:C,sourceTempSentences:T}=w;for(let A=0;A{if(w instanceof j&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=h.sentence.text;return h.translatedTexts&&h.translatedTexts.length>0&&(f=h.translatedTexts.join("")),{...h.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Hr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=qp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Hr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=zp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ne({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Oo="input is invalid type",ug=typeof window=="object",Za=ug?window:{};Za.JS_SHA256_NO_WINDOW&&(ug=!1);var kL=!ug&&typeof self=="object",DL=!Za.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;DL?Za=global:kL&&(Za=self);var pQ=!Za.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,gQ=typeof define=="function"&&define.amd,fu=!Za.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ce="0123456789abcdef".split(""),LL=[-2147483648,8388608,32768,128],Mr=[24,16,8,0],m0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p0=["hex","array","digest","arrayBuffer"],rn=[];(Za.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});fu&&(Za.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Q9=function(e,t){return function(n){return new an(t,!0).update(n)[e]()}},Z9=function(e){var t=Q9("hex",e);t.create=function(){return new an(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};an.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=LL[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};an.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,b,h,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(h=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(h=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),h=e&t,m=h^e&n^v,b=a&i^~a&o,p=s+d+b+m0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^h,b=s&a^~s&i,p=o+d+b+m0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,b=o&s^~o&a,p=i+d+b+m0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,b=i&o^~i&s,p=a+d+b+m0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};an.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ce[e>>28&15]+ce[e>>24&15]+ce[e>>20&15]+ce[e>>16&15]+ce[e>>12&15]+ce[e>>8&15]+ce[e>>4&15]+ce[e&15]+ce[t>>28&15]+ce[t>>24&15]+ce[t>>20&15]+ce[t>>16&15]+ce[t>>12&15]+ce[t>>8&15]+ce[t>>4&15]+ce[t&15]+ce[n>>28&15]+ce[n>>24&15]+ce[n>>20&15]+ce[n>>16&15]+ce[n>>12&15]+ce[n>>8&15]+ce[n>>4&15]+ce[n&15]+ce[r>>28&15]+ce[r>>24&15]+ce[r>>20&15]+ce[r>>16&15]+ce[r>>12&15]+ce[r>>8&15]+ce[r>>4&15]+ce[r&15]+ce[a>>28&15]+ce[a>>24&15]+ce[a>>20&15]+ce[a>>16&15]+ce[a>>12&15]+ce[a>>8&15]+ce[a>>4&15]+ce[a&15]+ce[i>>28&15]+ce[i>>24&15]+ce[i>>20&15]+ce[i>>16&15]+ce[i>>12&15]+ce[i>>8&15]+ce[i>>4&15]+ce[i&15]+ce[o>>28&15]+ce[o>>24&15]+ce[o>>20&15]+ce[o>>16&15]+ce[o>>12&15]+ce[o>>8&15]+ce[o>>4&15]+ce[o&15];return this.is224||(u+=ce[s>>28&15]+ce[s>>24&15]+ce[s>>20&15]+ce[s>>16&15]+ce[s>>12&15]+ce[s>>8&15]+ce[s>>4&15]+ce[s&15]),u};an.prototype.toString=an.prototype.hex;an.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};an.prototype.array=an.prototype.digest;an.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function g0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Oo);if(fu&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!fu||!ArrayBuffer.isView(e)))throw new Error(Oo)}else throw new Error(Oo);e.length>64&&(e=new an(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}an.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}g0.prototype=new an;g0.prototype.finalize=function(){if(an.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();an.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),an.prototype.finalize.call(this)}};var No=Z9();No.sha256=No;No.sha224=Z9(!0);No.sha256.hmac=X9();No.sha224.hmac=X9(!0);var $9=No;var e6=$9.sha256;function Hn(e){return Promise.resolve(e6(e))}function jo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=e6.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function t6(e,t){let n=await ar(e,t);return jo(n)}async function f0(e,t){let n=PL(t),r=await ar(e,n);return jo(r)}function PL(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var n6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],hu=class e extends Ee{static langMap=new Map(n6);maxTextGroupLength=50;static langMapReverse=new Map(n6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new j("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` `),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Hn(c)].join(` -`),p=await r6(d,`TC3${n}`),g=await h0(i,p),h=await h0("tc3_request",g),b=await h0(m,h),f=await K({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new j(f.Response.Error.Message);return f}};var i6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],RL={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},yu=class e extends Ee{static langMap=new Map(i6);static langMapReverse=new Map(i6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await K({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:RL,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var o6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],xu=class e extends Ee{static langMap=new Map(o6);static langMapReverse=new Map(o6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new j("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new j("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await K({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function IL(e,t){return t?e+(t-e%t):e}function FL(e,t){return e.split(t).length-1}function lg(e){let t=Date.now(),n=1;for(let r of e)n+=FL(r,"i");return IL(t,n)}function BL(e,t){return Math.floor(Math.random()*(t-e+1))+e}function cg(){return BL(1e6,1e8)}var dg="https://www2.deepl.com/jsonrpc",mg="auto",s6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function _L(e=s6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function pg(e){return _L()[e.toLowerCase()]}var OL={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function NL(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function jL(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function UL(e,t,n,r,a,i,o){let s=cg(),u=jL(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=lg(t);let c=await K({retry:2,method:"POST",url:e,body:NL(u),headers:OL}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function u6(e,t,n,r=mg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:UL(e,t,pg(n),pg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var l6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Uo=class e extends Ee{static langMap=new Map(l6);static langMapReverse=new Map(l6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=dg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=xt(dg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await u6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var vu=class e extends Ee{static langMap=new Map(ag);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ya.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=ke(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=c6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await K({url:u0,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new j(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=ke(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=c6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await K({url:u0,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new j(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function c6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function gg(){return Math.random()>=.001}var Ho=class extends Ee{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!gg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await M9(),!gg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var m6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],fg=new Map(m6),d6=new Map(m6.map(([e,t])=>[t,e])),hg=class e extends Ee{static langMap=fg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new j("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await K({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:fg.get(r)||"auto",target_lang:fg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:d6.get(o.source_lang),to:d6.get(o.target_lang)}}else throw new j(i.msg)}},b0=hg;var bg="https://{s}bing.com",b6=bg+"/translator",HL=bg+"/ttranslatev3",qL=bg+"/tspellcheckv3",y0="bingGlobalConfig",y6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],p6=new Map(y6),g6=new Map(y6.map(([e,t])=>[t,e])),f6=1e3,Rr,qo;function yg(e,t){return e.replace("{s}",t?t+".":"")}async function zL(){if(!Rr){let n=await re.storage.local.get(y0);return n&&(Rr=n[y0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Rr;return Date.now()-e>t}async function h6(){let e,t,n,r,a,i,o,s,u,l;try{let c=yg(b6,e),d=await K({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Rr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await re.storage.local.set({[y0]:Rr}),Rr}function WL(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Rr;return yg(e?qL:HL,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Rr.count++:"")}function GL(e,t,n,r){let{token:a,key:i}=Rr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function x6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>f6)throw new Error(`The supported maximum length of text is ${f6}. Please shorten the text.`);qo||(qo=h6()),await qo,await zL()&&(qo=h6(),await qo),t=t||"auto",n=n||"zh-CN",t=p6.get(t)||t,n=p6.get(n)||n;let a=WL(!1),i=GL(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:yg(b6,Rr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await K({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Rr=null,qo=null,await re.storage.local.remove(y0),c.ShowCaptcha)throw new Error(` +`),p=await t6(d,`TC3${n}`),g=await f0(i,p),b=await f0("tc3_request",g),h=await f0(m,b),f=await K({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${h}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new j(f.Response.Error.Message);return f}};var r6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ML={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},bu=class e extends Ee{static langMap=new Map(r6);static langMapReverse=new Map(r6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await K({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:ML,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var a6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],yu=class e extends Ee{static langMap=new Map(a6);static langMapReverse=new Map(a6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new j("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new j("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await K({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function RL(e,t){return t?e+(t-e%t):e}function IL(e,t){return e.split(t).length-1}function lg(e){let t=Date.now(),n=1;for(let r of e)n+=IL(r,"i");return RL(t,n)}function FL(e,t){return Math.floor(Math.random()*(t-e+1))+e}function cg(){return FL(1e6,1e8)}var dg="https://www2.deepl.com/jsonrpc",mg="auto",i6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function BL(e=i6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function pg(e){return BL()[e.toLowerCase()]}var _L={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function OL(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function NL(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function jL(e,t,n,r,a,i,o){let s=cg(),u=NL(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=lg(t);let c=await K({retry:2,method:"POST",url:e,body:OL(u),headers:_L}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function o6(e,t,n,r=mg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:jL(e,t,pg(n),pg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var s6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Uo=class e extends Ee{static langMap=new Map(s6);static langMapReverse=new Map(s6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=dg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=xt(dg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await o6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var xu=class e extends Ee{static langMap=new Map(ag);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ha.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=ke(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=u6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await K({url:s0,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new j(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=ke(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=u6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await K({url:s0,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new j(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ha.detectLanguageRemotelyByTransmart(t)}};function u6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function gg(){return Math.random()>=.001}var Ho=class extends Ee{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!gg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await L9(),!gg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var c6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],fg=new Map(c6),l6=new Map(c6.map(([e,t])=>[t,e])),hg=class e extends Ee{static langMap=fg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new j("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await K({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:fg.get(r)||"auto",target_lang:fg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:l6.get(o.source_lang),to:l6.get(o.target_lang)}}else throw new j(i.msg)}},h0=hg;var bg="https://{s}bing.com",f6=bg+"/translator",UL=bg+"/ttranslatev3",HL=bg+"/tspellcheckv3",b0="bingGlobalConfig",h6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],d6=new Map(h6),m6=new Map(h6.map(([e,t])=>[t,e])),p6=1e3,Rr,qo;function yg(e,t){return e.replace("{s}",t?t+".":"")}async function qL(){if(!Rr){let n=await re.storage.local.get(b0);return n&&(Rr=n[b0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Rr;return Date.now()-e>t}async function g6(){let e,t,n,r,a,i,o,s,u,l;try{let c=yg(f6,e),d=await K({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Rr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await re.storage.local.set({[b0]:Rr}),Rr}function zL(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Rr;return yg(e?HL:UL,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Rr.count++:"")}function WL(e,t,n,r){let{token:a,key:i}=Rr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function b6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>p6)throw new Error(`The supported maximum length of text is ${p6}. Please shorten the text.`);qo||(qo=g6()),await qo,await qL()&&(qo=g6(),await qo),t=t||"auto",n=n||"zh-CN",t=d6.get(t)||t,n=d6.get(n)||n;let a=zL(!1),i=WL(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:yg(f6,Rr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await K({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Rr=null,qo=null,await re.storage.local.remove(b0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:g6.get(m.language),to:g6.get(d.to)}}var x0=new Map;async function xg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=nr(e.body)),x0.has(t))return x0.get(t);let n=K(e);x0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{x0.delete(t)},3e3)}}async function v6(e){return xg(e)}async function Yr(e){if(Ke()){let n=Q9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return xg(e)}else return xg(e)}function S6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function S0(e){await cp(e)}async function Qr(e,t){let n=await up(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return v0(e,t)}return v0(e,t)}async function v0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await lp(e,n,i-1e3),n}var VL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],vg=new Map(VL),Ir=class extends Ee{static langMap=vg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await S0(_m)}async translate(t){let{text:n,from:r,to:a}=t;return n?await x6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Qr(_m,async()=>{let t=await Yr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return S6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=vg.get(n)||"auto",o=vg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await K({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new j("Microsoft translate error "+JSON.stringify(d))}};var KL=["chinese","english","japanese","korean","french","spanish","deutsch"],Jr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},T0=e=>Jr.chinese.test(e),YL=e=>Jr.english.test(e),QL=e=>Jr.japanese.test(e),JL=e=>Jr.korean.test(e),ZL=e=>Jr.french.test(e),XL=e=>Jr.deutsch.test(e),$L=e=>Jr.spanish.test(e),vZ={chinese:br(T0),english:br(YL),japanese:br(QL),korean:br(JL),french:br(ZL),spanish:br($L),deutsch:br(XL)},T6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,SZ=new RegExp(`^(\\d|\\s|${T6.source})+$`),eP=new RegExp(`${Jr.chinese.source}|${Jr.japanese.source}|${Jr.korean.source}`),TZ=br(e=>(e.replace(new RegExp(T6,"g")," ").replace(new RegExp(eP,"g")," x ").match(/\S+/g)||"").length),CZ=[...KL,"others","matchAll"];var w6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Su=new Map(w6),tP=new Map(w6.map(([e,t])=>[t,e])),Sg=class extends Ee{static langMap=Su;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${nn}/v2/translate`;immersiveTranslateDeeplTokenUrl=rt;immersiveTranslateDeeplProApiUrl=rt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new j("authKey are required");if(!this.authKey)throw new j("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=xt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=xt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=xt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=xt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=xt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:Su.get(n)||"",target_lang:Su.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:Su.get(n)||"auto",target_lang:Su.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await K({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>Tg(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new Ir({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&tP.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ua()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},zo=Sg;function Tg(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&T0(t[0])&&C6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&T0(t[t.length-1])&&C6(t,"\u300A")==1?t+"\u300B":nP(e,t)}function nP(e,t){let n=e?.richIdName;return!n||!Ly(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function C6(e,t){return e.split(t).length-1}var rP=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Cg=new Map(rP),wg=class extends Ee{static langMap=Cg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Cg.get(r)||r,to:Cg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await K(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new j(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},E6=wg;var aP=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Eg=new Map(aP),Ag=class extends Ee{static langMap=Eg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Eg.get(a)||a};r!=="auto"&&(i.from=Eg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await K(c);if(d.length===0)throw new j("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},A6=Ag;var iP=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Wo=new Map(iP),kg=class extends Ee{static langMap=Wo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:m6.get(m.language),to:m6.get(d.to)}}var y0=new Map;async function xg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=nr(e.body)),y0.has(t))return y0.get(t);let n=K(e);y0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{y0.delete(t)},3e3)}}async function y6(e){return xg(e)}async function Kr(e){if(Ke()){let n=K9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return xg(e)}else return xg(e)}function x6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function v0(e){await cp(e)}async function Yr(e,t){let n=await up(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return x0(e,t)}return x0(e,t)}async function x0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await lp(e,n,i-1e3),n}var GL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],vg=new Map(GL),Ir=class extends Ee{static langMap=vg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await v0(Bm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await b6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Yr(Bm,async()=>{let t=await Kr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return x6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=vg.get(n)||"auto",o=vg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await K({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new j("Microsoft translate error "+JSON.stringify(d))}};var VL=["chinese","english","japanese","korean","french","spanish","deutsch"],Qr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},S0=e=>Qr.chinese.test(e),KL=e=>Qr.english.test(e),YL=e=>Qr.japanese.test(e),QL=e=>Qr.korean.test(e),JL=e=>Qr.french.test(e),ZL=e=>Qr.deutsch.test(e),XL=e=>Qr.spanish.test(e),SZ={chinese:br(S0),english:br(KL),japanese:br(YL),korean:br(QL),french:br(JL),spanish:br(XL),deutsch:br(ZL)},v6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,TZ=new RegExp(`^(\\d|\\s|${v6.source})+$`),$L=new RegExp(`${Qr.chinese.source}|${Qr.japanese.source}|${Qr.korean.source}`),CZ=br(e=>(e.replace(new RegExp(v6,"g")," ").replace(new RegExp($L,"g")," x ").match(/\S+/g)||"").length),wZ=[...VL,"others","matchAll"];var T6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],vu=new Map(T6),eP=new Map(T6.map(([e,t])=>[t,e])),Sg=class extends Ee{static langMap=vu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${nn}/v2/translate`;immersiveTranslateDeeplTokenUrl=rt;immersiveTranslateDeeplProApiUrl=rt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new j("authKey are required");if(!this.authKey)throw new j("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=xt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=xt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=xt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=xt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=xt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:vu.get(n)||"",target_lang:vu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:vu.get(n)||"auto",target_lang:vu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let b,h={};t.refresh&&(h={"X-Refresh":"True"}),t.debug&&(h={...h,"X-Debug":"True"}),this.provider==="pro"?b=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...h,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...h,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await K({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>Tg(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new Ir({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&eP.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!oa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},zo=Sg;function Tg(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&S0(t[0])&&S6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&S0(t[t.length-1])&&S6(t,"\u300A")==1?t+"\u300B":tP(e,t)}function tP(e,t){let n=e?.richIdName;return!n||!ky(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function S6(e,t){return e.split(t).length-1}var nP=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Cg=new Map(nP),wg=class extends Ee{static langMap=Cg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Cg.get(r)||r,to:Cg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await K(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new j(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},C6=wg;var rP=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Eg=new Map(rP),Ag=class extends Ee{static langMap=Eg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Eg.get(a)||a};r!=="auto"&&(i.from=Eg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await K(c);if(d.length===0)throw new j("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},w6=Ag;var aP=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Wo=new Map(aP),kg=class extends Ee{static langMap=Wo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Wo.get(r)?(i=(await K({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Wo.get(r)||r,target:Wo.get(a)||a})):u.body=JSON.stringify({text:s,source:Wo.get(r),target:Wo.get(a)||a});let l=await K(u);if(l.translatedText==="")throw new j("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},k6=kg;var oP={lang:"en"};function Dg(e){let t=Object.assign({},oP,e),[n,r]=W(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>De(n,i,o)}}var sP=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--sP,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var Lg=wo(null),Go=e=>{let{t,setLang:n,lang:r}=Dg({lang:e.lang});return x(Lg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function oe(){return Ic(Lg)}function P6(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Fr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=uP(e,a)),i||(i=lP(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function uP(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Mg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function lP(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Mg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>ze(a,s.matches)&&!ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function M6(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function C0(e,t,n){n=n||await On();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&D6(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&D6(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await xa(n),await Vr(i)}catch{return!1}return a}async function R6(){return(await On()).aiAssistants||[]}async function cP(e,t){(await Promise.allSettled(e.map(r=>K({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&C0("add",a,t)}})}async function dP(e,t,n=!0){e||(e=await qt()),t||(t=await On());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await gP();i=await pP(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&cP(o,t)}var va=Mn(dP,1500);function D6(e){return Wa(lo(),e.extensionVersion)}function mP(e,t){return t?!Wa(e.version,t):!1}function pP(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{mP(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function gP(){return(await K({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var fP=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function F6(e,t,n,r,a){let i={...t},o=Mg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,M6({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=P6(i,i.langOverrides,n),o||fP.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await S9();i.contextTerms=s}return i}async function Tn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Vo(t,o),f=Vo(t,g),y=s,v=Object.keys(u);for(let G of v){let be=u[G];if(Vo(t,be)){y=G;break}}let S=l,w=Object.keys(c);for(let G of w){let be=c[G];if(be&&Vo(t,be)){S=G;break}}let C=Vo(t,d),T=I6(t,d);T||(T=ze(t,y1)),T||(T=ze(t,n.blockUrls));let A=I6(t,n.inputTranslationUrlPattern);A||(A=ze(t,n.inputTranslationBlockUrls));let D=ze(t,n.mutationBlockUrls),I=Object.keys(p),F={};for(let G of I){let be=p[G];if(be&&be.matches)for(let at of be.matches)F[at]=G}let R=Object.keys(F),B=Np(t,R);B&&(i=F[B]??"auto",F[B]&&F[B]!=="auto"&&rr(F[B]));let L=a.hostname,_=await Hn(L),O=a.pathname+a.search+a.hash,z=await Hn(O),V=`https://${_}.com/${z}`,ie=await Yt(),je=await Yc(),Le=n.translationStartMode,N=bP(ie,n);ie.aiAssistants=yP(N,n),Le==="dynamic"&&f&&(Le="immediate");let q=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(q=n.inputTranslationService);let Z=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Z=n.mouseHoverTranslationService);let we=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(we=n.subtitleTranslateService);let pe=await mt.get(dt,null),Ge=!1;pe&&(Ge=ft(pe)),n.platform=ha();let de={targetLanguage:h,config:n,translationService:y,inputTranslationService:q,mouseHoverTranslationService:Z,subtitleTranslateService:we,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:T,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ie};pe&&(de.user=pe,Ge?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(G=>!de.config.generalRule.bodyTranslateTags.includes(G)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let ge=n.translationServices[de.translationService]||{};ge.immediateTranslationTextCount!==void 0&&hP(ge.immediateTranslationTextCount)&&ge.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCount),de.translationService==="deepl"&&(ge?.authKey?.startsWith("immersive_")||ge?.provider==="pro"&&de.user?.token)&&ge.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ge.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCountForImmersiveDeepl),ge&&ge.translationDebounce&&typeof ge.translationDebounce=="number"&&(de.state.translationDebounce=ge.translationDebounce);let me=je.immediateTranslationTextCount;n.immediateTranslationTextCount!==me&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,ve;globalThis.PDFViewerApplication?ve=fe.find(G=>G.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?ve=fe.find(G=>G.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?ve=fe.find(G=>G.pageType=="ebookBuilder"):ve=fe.find(G=>Vo(t,G)),ve&&ve.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(ve&&(de.rule=pu(Ue,ve),de.rule=n9(n,de.rule,ve)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(G=>!de.rule.bodyTranslateTags.includes(G)&&!de.rule.forceTranslateTags.includes(G))),de.rule.mainFrameSelector){let G=document.querySelector(de.rule.mainFrameSelector);G&&(de.mainFrame=G)}return de}function Vo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&ze(e,r)?!1:n&&n.length>0&&ze(e,n)?!0:i&&i.length>0&&Tc(i)?!1:!!(a&&a.length>0&&Tc(a))}function I6(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&ze(e,n)||r&&r.length>0&&Tc(r))}function hP(e){return typeof e=="number"}function bP(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function yP(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Fy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function B6(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Wo.get(r)?(i=(await K({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Wo.get(r)||r,target:Wo.get(a)||a})):u.body=JSON.stringify({text:s,source:Wo.get(r),target:Wo.get(a)||a});let l=await K(u);if(l.translatedText==="")throw new j("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},E6=kg;var iP={lang:"en"};function Dg(e){let t=Object.assign({},iP,e),[n,r]=W(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>De(n,i,o)}}var oP=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--oP,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var Lg=wo(null),Go=e=>{let{t,setLang:n,lang:r}=Dg({lang:e.lang});return x(Lg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function oe(){return Rc(Lg)}function D6(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function ya(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=sP(e,a)),i||(i=uP(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function sP(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Mg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function uP(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Mg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function L6(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function T0(e,t,n){n=n||await On();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&A6(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&A6(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ba(n),await Gr(i)}catch{return!1}return a}async function P6(){return(await On()).aiAssistants||[]}async function lP(e,t){(await Promise.allSettled(e.map(r=>K({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&T0("add",a,t)}})}async function cP(e,t,n=!0){e||(e=await qt()),t||(t=await On());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await pP();i=await mP(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&lP(o,t)}var xa=Pn(cP,1500);function A6(e){return za(lo(),e.extensionVersion)}function dP(e,t){return t?!za(e.version,t):!1}function mP(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{dP(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function pP(){return(await K({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var gP=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function R6(e,t,n,r,a){let i={...t},o=Mg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,L6({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=D6(i,i.langOverrides,n),o||gP.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await x9();i.contextTerms=s}return i}async function Sn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,b=m||"zh-CN",h=Vo(t,o),f=Vo(t,g),y=s,v=Object.keys(u);for(let G of v){let be=u[G];if(Vo(t,be)){y=G;break}}let S=l,w=Object.keys(c);for(let G of w){let be=c[G];if(be&&Vo(t,be)){S=G;break}}let C=Vo(t,d),T=M6(t,d);T||(T=We(t,h1)),T||(T=We(t,n.blockUrls));let A=M6(t,n.inputTranslationUrlPattern);A||(A=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),I=Object.keys(p),F={};for(let G of I){let be=p[G];if(be&&be.matches)for(let at of be.matches)F[at]=G}let R=Object.keys(F),B=Np(t,R);B&&(i=F[B]??"auto",F[B]&&F[B]!=="auto"&&rr(F[B]));let P=a.hostname,_=await Hn(P),O=a.pathname+a.search+a.hash,z=await Hn(O),V=`https://${_}.com/${z}`,ie=await Yt(),je=await Kc(),Le=n.translationStartMode,N=hP(ie,n);ie.aiAssistants=bP(N,n),Le==="dynamic"&&f&&(Le="immediate");let q=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(q=n.inputTranslationService);let Z=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Z=n.mouseHoverTranslationService);let we=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(we=n.subtitleTranslateService);let pe=await dt.get(ct,null),Ge=!1;pe&&(Ge=ft(pe)),n.platform=ga();let de={targetLanguage:b,config:n,translationService:y,inputTranslationService:q,mouseHoverTranslationService:Z,subtitleTranslateService:we,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:T,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ie};pe&&(de.user=pe,Ge?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(G=>!de.config.generalRule.bodyTranslateTags.includes(G)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let ge=n.translationServices[de.translationService]||{};ge.immediateTranslationTextCount!==void 0&&fP(ge.immediateTranslationTextCount)&&ge.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCount),de.translationService==="deepl"&&(ge?.authKey?.startsWith("immersive_")||ge?.provider==="pro"&&de.user?.token)&&ge.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ge.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCountForImmersiveDeepl),ge&&ge.translationDebounce&&typeof ge.translationDebounce=="number"&&(de.state.translationDebounce=ge.translationDebounce);let me=je.immediateTranslationTextCount;n.immediateTranslationTextCount!==me&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,Se;globalThis.PDFViewerApplication?Se=fe.find(G=>G.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Se=fe.find(G=>G.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Se=fe.find(G=>G.pageType=="ebookBuilder"):Se=fe.find(G=>Vo(t,G)),Se&&Se.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(Se&&(de.rule=mu(Ue,Se),de.rule=e9(n,de.rule,Se)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(G=>!de.rule.bodyTranslateTags.includes(G)&&!de.rule.forceTranslateTags.includes(G))),de.rule.mainFrameSelector){let G=document.querySelector(de.rule.mainFrameSelector);G&&(de.mainFrame=G)}return de}function Vo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&Sc(i)?!1:!!(a&&a.length>0&&Sc(a))}function M6(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&Sc(r))}function fP(e){return typeof e=="number"}function hP(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function bP(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Ry(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function I6(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` `+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var Rg=class extends Ee{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=So()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?Ec(l,s):`${s}${Xl}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let b="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Bc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let I=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let R=0;RR==="from"?c:R==="to"?d+" Language":R==="text"?r:R=="json"?b:R=="yaml"?f:m[R]===""?"":m[R]||F).replace(/{{(.+?)}}/g,(F,R)=>m[R]||F)}}async rawRequest(t){return await K(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=So()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?wc(l,s):`${s}${Zl}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),b=[r];s?.rawTextArrayLength&&(b=r.split(this.translationTextSeparator)),b.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&b.length>1&&(l=this.subtitlePrompt);let h="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Fc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let I=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let R=0;RR==="from"?c:R==="to"?d+" Language":R==="text"?r:R=="json"?h:R=="yaml"?f:m[R]===""?"":m[R]||F).replace(/{{(.+?)}}/g,(F,R)=>m[R]||F)}}async rawRequest(t){return await K(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;a`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;s`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` [theme]`,n.imt_theme,` -\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},$a=Rg;function xP(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var vP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],_6=new Map(vP),Ig=class extends $a{static langMap=_6;provider="custom";immersiveApiUrl=`https://openai-api.${nn}/v1/chat/completions`;immersiveProApiUrl=rt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=xt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=xt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return _6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!zo.langMap.has(n.to)||!zo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new zo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},O6=Ig;function cn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function SP(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Te(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ei(e,t){return e<>>32-t}function Zr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Ko(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function N6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Yo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Xr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var j6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?cn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Zr(a(m,r),t)},this.b64=function(m){return $r(a(m),n)},this.any=function(m,p){return Xr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Zr(i(m,p),t)},this.b64_hmac=function(m,p){return $r(i(m,p),n)},this.any_hmac=function(m,p,g){return Xr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?cn(m):m,N6(o(Yo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?cn(m):m,p=r?cn(p):p,g=Yo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Yo(p)),512+p.length*8),N6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,S=-271733879,w=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Sa(c)),512+c.length*8),Ko(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),S=1732584193,w=-271733879,C=-1732584194,T=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,S.length*8));T<16;T+=1)D[T]=A[T]^909522486,I[T]=A[T]^1549556828;return C=v(D.concat(Sa(w)),512+w.length*8),Ko(v(I.concat(C),512+256))}function s(S,w){return S>>>w|S<<32-w}function u(S,w){return S>>>w}function l(S,w,C){return S&w^~S&C}function c(S,w,C){return S&w^S&C^w&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,w){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=new Array(64),A,D,I,F,R,B,L,_,O,z,V,ie;for(S[w>>5]|=128<<24-w%32,S[(w+64>>9<<4)+15]=w,O=0;O32&&(S=s(S,b.length*8));v<32;v+=1)w[v]=S[v]^909522486,C[v]=S[v]^1549556828;return y=s(w.concat(Sa(f)),1024+f.length*8),Ko(s(C.concat(y),1024+512))}function s(b,f){var y,v,S,w=new Array(80),C=new Array(16),T=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),I=new u(0,0),F=new u(0,0),R=new u(0,0),B=new u(0,0),L=new u(0,0),_=new u(0,0),O=new u(0,0),z=new u(0,0),V=new u(0,0),ie=new u(0,0),je=new u(0,0),Le=new u(0,0),N=new u(0,0),q=new u(0,0),Z=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)w[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),w=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(w>>>16);b.l=v&65535|S<<16,b.h=w&65535|C<<16}function g(b,f,y,v,S){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w>>>16),T=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T>>>16);b.l=w&65535|C<<16,b.h=T&65535|A<<16}function h(b,f,y,v,S,w){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(w.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(w.h&65535)+(T>>>16),D=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(w.h>>>16)+(A>>>16);b.l=C&65535|T<<16,b.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Zr(u(h,r))},this.b64=function(h){return $r(u(h,r),n)},this.any=function(h,b){return Xr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Zr(l(h,b))},this.b64_hmac=function(h,b){return $r(l(h,b),n)},this.any_hmac=function(h,b,f){return Xr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?cn(h):h,c(d(Yo(h),h.length*8))}function l(h,b){h=r?cn(h):h,b=r?cn(b):b;var f,y,v=Yo(h),S=Array(16),w=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,w[f]=v[f]^1549556828;return y=d(S.concat(Yo(b)),512+b.length*8),c(d(w.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,S,w=1732584193,C=4023233417,T=2562383102,A=271733878,D=3285377520,I,F,R,B,L,_,O,z,V,ie;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new j("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new j6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await K({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new j(g.Message);return g}};var TP=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Bg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Fg).sort().join(`&${r}=`)}`:`${r}=${Fg(n)}`}).filter(t=>t).join("&"),Qo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,Bg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return jo(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Xa=Rg;function yP(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var xP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],F6=new Map(xP),Ig=class extends Xa{static langMap=F6;provider="custom";immersiveApiUrl=`https://openai-api.${nn}/v1/chat/completions`;immersiveProApiUrl=rt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=xt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=xt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return F6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!zo.langMap.has(n.to)||!zo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new zo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},B6=Ig;function cn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function vP(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Te(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function $a(e,t){return e<>>32-t}function Jr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Ko(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function _6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Yo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Zr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var O6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?cn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,b="",h=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?h[g]=String.fromCharCode(o):m===64?h[g]=String.fromCharCode(o,s):h[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Jr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Zr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Jr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Zr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?cn(m):m,_6(o(Yo(m),m.length*8))}function i(m,p){var g,b,h,f,y;for(m=r?cn(m):m,p=r?cn(p):p,g=Yo(m),g.length>16&&(g=o(g,m.length*8)),b=Array(16),h=Array(16),y=0;y<16;y+=1)b[y]=g[y]^909522486,h[y]=g[y]^1549556828;return f=o(b.concat(Yo(p)),512+p.length*8),_6(o(h.concat(f),512+128))}function o(m,p){var g,b,h,f,y,v=1732584193,S=-271733879,w=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return b=o(m.concat(va(c)),512+c.length*8),Ko(o(p.concat(b),512+160))}function o(l,c){var d,m,p,g,b,h,f,y,v=Array(80),S=1732584193,w=-271733879,C=-1732584194,T=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,S.length*8));T<16;T+=1)D[T]=A[T]^909522486,I[T]=A[T]^1549556828;return C=v(D.concat(va(w)),512+w.length*8),Ko(v(I.concat(C),512+256))}function s(S,w){return S>>>w|S<<32-w}function u(S,w){return S>>>w}function l(S,w,C){return S&w^~S&C}function c(S,w,C){return S&w^S&C^w&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function b(S){return s(S,28)^s(S,34)^s(S,39)}function h(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,w){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=new Array(64),A,D,I,F,R,B,P,_,O,z,V,ie;for(S[w>>5]|=128<<24-w%32,S[(w+64>>9<<4)+15]=w,O=0;O32&&(S=s(S,h.length*8));v<32;v+=1)w[v]=S[v]^909522486,C[v]=S[v]^1549556828;return y=s(w.concat(va(f)),1024+f.length*8),Ko(s(C.concat(y),1024+512))}function s(h,f){var y,v,S,w=new Array(80),C=new Array(16),T=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),I=new u(0,0),F=new u(0,0),R=new u(0,0),B=new u(0,0),P=new u(0,0),_=new u(0,0),O=new u(0,0),z=new u(0,0),V=new u(0,0),ie=new u(0,0),je=new u(0,0),Le=new u(0,0),N=new u(0,0),q=new u(0,0),Z=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)w[v]=new u(0,0);for(h[f>>5]|=128<<24-(f&31),h[(f+128>>10<<5)+31]=f,S=h.length,v=0;v>>y|f.h<<32-y,h.h=f.h>>>y|f.l<<32-y}function d(h,f,y){h.l=f.h>>>y|f.l<<32-y,h.h=f.l>>>y|f.h<<32-y}function m(h,f,y){h.l=f.l>>>y|f.h<<32-y,h.h=f.h>>>y}function p(h,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),w=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(w>>>16);h.l=v&65535|S<<16,h.h=w&65535|C<<16}function g(h,f,y,v,S){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w>>>16),T=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T>>>16);h.l=w&65535|C<<16,h.h=T&65535|A<<16}function b(h,f,y,v,S,w){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(w.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(w.h&65535)+(T>>>16),D=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(w.h>>>16)+(A>>>16);h.l=C&65535|T<<16,h.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return Jr(u(b,r))},this.b64=function(b){return Xr(u(b,r),n)},this.any=function(b,h){return Zr(u(b,r),h)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,h){return Jr(l(b,h))},this.b64_hmac=function(b,h){return Xr(l(b,h),n)},this.any_hmac=function(b,h,f){return Zr(l(b,h),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?cn(b):b,c(d(Yo(b),b.length*8))}function l(b,h){b=r?cn(b):b,h=r?cn(h):h;var f,y,v=Yo(b),S=Array(16),w=Array(16);for(v.length>16&&(v=d(v,b.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,w[f]=v[f]^1549556828;return y=d(S.concat(Yo(h)),512+h.length*8),c(d(w.concat(y),512+160))}function c(b){var h,f="",y=b.length*32;for(h=0;h>5]>>>h%32&255);return f}function d(b,h){var f,y,v,S,w=1732584193,C=4023233417,T=2562383102,A=271733878,D=3285377520,I,F,R,B,P,_,O,z,V,ie;for(b[h>>5]|=128<>>9<<4)+14]=h,S=b.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new j("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new O6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(b=>{let f=Object.keys(b).sort().map(y=>`${this.encode(y)}=${this.encode(b[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await K({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new j(g.Message);return g}};var SP=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Bg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Fg).sort().join(`&${r}=`)}`:`${r}=${Fg(n)}`}).filter(t=>t).join("&"),Qo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,Bg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return jo(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=Bg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new j(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Bg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return TP.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var H6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],_g=new Map(H6),CP=new Map(H6.map(([e,t])=>[t,e])),Og=class extends Ee{static langMap=_g;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new j("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Qo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await K({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new j(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new j(s.Code,s.Message)}else throw new j("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=_g.get(r),o={TargetLanguage:_g.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Qo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await K({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=CP.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new j(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new j(d.Code,d.Message)}else throw new j("response: "+JSON.stringify(c))}},q6=Og;var z6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ng=new Map(z6),wP=new Map(z6.map(([e,t])=>[t,e])),Cu=class extends Ee{static langMap=Ng;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ng.get(r)||"detect",o=Ng.get(a)||a,u=await K({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=wP.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new j(l.status_code.toString(),l.status_message)}}};var EP=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],jg=new Map(EP),wu=class extends Ee{static langMap=jg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new j("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:jg.get(r)||r,target_lang:jg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await K({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Tg(this.serviceConfig,u.data,a),from:r,to:a};throw new j(u.message||u.message||"API Error")}};var W6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ug=new Map(W6),AP=new Map(W6.map(([e,t])=>[t,e])),Hg=class extends Ee{static langMap=Ug;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new j("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=nr(a+o+n+i);this.domain&&(l=nr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ug.get(s)||"auto",to:Ug.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await K({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new j("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:AP.get(g)||g,to:u,text:h.join(` -`)}}},G6=Hg;var Oi=class extends Ee{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new j("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?kP(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function kP(e){let t=Math.floor(Math.random()*e.length);return e[t]}var V6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],qg=class extends Oi{static langMap=new Map(V6);constructor(t,n,r,a){if(!t?.token)throw new j("token are required");super({...t,isSupportList:!0,langs:V6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},K6=qg;var DP=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],w0=new Map(DP),zg=class extends Ee{static langMap=w0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!w0.get(a))throw new j(`Unsupported language: ${a}`);if(r==="auto")throw new j("Unsupported language: auto");let o=n;return{text:(await K({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${w0.get(r)||"auto"}2${w0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},Y6=zg;var Q6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Wg=new Map(Q6),LP=new Map(Q6.map(([e,t])=>[t,e]));function PP(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Gg=class extends Ee{static langMap=Wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new j("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=MP(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+PP(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Wg.get(r)||"auto",to:Wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await K({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new j(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` -`),from:LP.get(g),to:a}}};function MP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Kg=class extends Ee{static langMap=Vg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Vg.get(r)||"auto",to:Vg.get(a)||a},o=new URLSearchParams(i),s=await K({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new j("Youdao translation failed: "+JSON.stringify(s))}},X6=Kg;var Eu=class extends Oi{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Yg=class extends $a{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=xt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},E0=Yg;var $6=P+"-gemini-fake-user-key",RP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],ex=new Map(RP),Qg=class extends E0{static langMap=ex;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=rt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return ex}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ei($6,""),this.fakeId||(this.fakeId=IP(10),await Ai($6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new j("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function IP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Yr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Zg.get(r)+"-"}${Zg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await K({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var _P=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],ax=new Map(_P),ku=class extends $a{static langMap=ax;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Qr(Nm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Yr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return ax}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(v0(Nm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new j("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new j(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var OP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],ix=new Map(OP),qn=class extends $a{static langMap=ix;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return ix}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var A0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new j(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return jo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Bg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return SP.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var j6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],_g=new Map(j6),TP=new Map(j6.map(([e,t])=>[t,e])),Og=class extends Ee{static langMap=_g;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new j("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Qo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await K({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new j(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new j(s.Code,s.Message)}else throw new j("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=_g.get(r),o={TargetLanguage:_g.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Qo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await K({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=TP.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new j(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new j(d.Code,d.Message)}else throw new j("response: "+JSON.stringify(c))}},U6=Og;var H6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ng=new Map(H6),CP=new Map(H6.map(([e,t])=>[t,e])),Tu=class extends Ee{static langMap=Ng;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ng.get(r)||"detect",o=Ng.get(a)||a,u=await K({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=CP.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new j(l.status_code.toString(),l.status_message)}}};var wP=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],jg=new Map(wP),Cu=class extends Ee{static langMap=jg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new j("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:jg.get(r)||r,target_lang:jg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await K({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Tg(this.serviceConfig,u.data,a),from:r,to:a};throw new j(u.message||u.message||"API Error")}};var q6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ug=new Map(q6),EP=new Map(q6.map(([e,t])=>[t,e])),Hg=class extends Ee{static langMap=Ug;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new j("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=nr(a+o+n+i);this.domain&&(l=nr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ug.get(s)||"auto",to:Ug.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await K({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new j("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,b=p.map(({dst:f})=>f);return{from:EP.get(g)||g,to:u,text:b.join(` +`)}}},z6=Hg;var _i=class extends Ee{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Xs(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new j("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Xs(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),b=o[p];return g==="random"?AP(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ha.detectLanguageRemotelyByTransmart(t)}};function AP(e){let t=Math.floor(Math.random()*e.length);return e[t]}var W6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],qg=class extends _i{static langMap=new Map(W6);constructor(t,n,r,a){if(!t?.token)throw new j("token are required");super({...t,isSupportList:!0,langs:W6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},G6=qg;var kP=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],C0=new Map(kP),zg=class extends Ee{static langMap=C0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!C0.get(a))throw new j(`Unsupported language: ${a}`);if(r==="auto")throw new j("Unsupported language: auto");let o=n;return{text:(await K({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${C0.get(r)||"auto"}2${C0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},V6=zg;var K6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Wg=new Map(K6),DP=new Map(K6.map(([e,t])=>[t,e]));function LP(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Gg=class extends Ee{static langMap=Wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new j("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=PP(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+LP(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Wg.get(r)||"auto",to:Wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await K({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new j(JSON.stringify(m));let p=m.l,[g,b]=p.split("2");return{text:m.translation.join(` +`),from:DP.get(g),to:a}}};function PP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Kg=class extends Ee{static langMap=Vg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Vg.get(r)||"auto",to:Vg.get(a)||a},o=new URLSearchParams(i),s=await K({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new j("Youdao translation failed: "+JSON.stringify(s))}},J6=Kg;var wu=class extends _i{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Yg=class extends Xa{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=xt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},w0=Yg;var Z6=L+"-gemini-fake-user-key",MP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],X6=new Map(MP),Qg=class extends w0{static langMap=X6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=rt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return X6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await wi(Z6,""),this.fakeId||(this.fakeId=RP(10),await Ei(Z6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new j("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function RP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Kr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Zg.get(r)+"-"}${Zg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await K({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var BP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],nx=new Map(BP),Au=class extends Xa{static langMap=nx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Yr(Om+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Kr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return nx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(x0(Om+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new j("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new j(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var _P=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],rx=new Map(_P),qn=class extends Xa{static langMap=rx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return rx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var E0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new j(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return jo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` `+i}}async getCanonicalRequest(t){let n=await Hn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 @@ -5928,59 +5928,59 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var k0=class extends qn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Qr(K3,async()=>{let t=await Yr({responseType:"json",url:`${rt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Xg=["glm-4-flash"],D0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Xg.includes(this.model)&&!this.apiKeys.length)throw new j("apiKey are required");if(!Xg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Qr(Y3,async()=>{let t=await Yr({responseType:"json",url:`${rt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Ir.langMap.has(n.to)||!Ir.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ir(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Xg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var L0={mock:Ho,mock2:Ho,custom:Eu,google:xu,transmart:vu,deepl:zo,volc:q6,volcAlpha:Cu,bing:Ir,tencent:bu,tenAlpha:yu,baidu:G6,caiyun:K6,cai:Y6,openl:b0,youdao:J6,you:X6,d:Uo,dpro:Uo,deeplx:wu,niu:E6,azure:A6,openai:O6,gemini:tx,claude:rx,papago:k6,aliyun:Tu,yandex:Au,qianfan:ku,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:A0,siliconcloud:k0,lingyiwanwu:qn,zhipu:D0};globalThis.TranslationServicesClass=L0;var ti={};Object.keys(kr).forEach(e=>{ti[e]={...kr[e],class:L0[e]}});function P0(e,t){let n=Xn;if(ti[e]&&ti[e].class&&ti[e].class.langMap&&ti[e].class.langMap.size>0){let r=ti[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function ea(e,t,n){if(!e.text)return e;let r=null,a=await Qt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new j("translateFailed","translate failed")}async function ox(e,t){for(let n of e)try{return await ea({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function $g(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new ti[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function NP(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Qt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),va(a,t.localConfig,!1),d=await F6(m,d,{sourceLanguage:NP(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=jP(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ft(t.user),w;try{w=new ti[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let I of b){let F=A instanceof j?new j(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(F,null,I)}}return{sentences:[]}}if(o.cache&&!So(a))for(let A of e.sentences){v++;let D=l;l==="openl"&&(D=l+"-"+d.codename||b0.DEFAULT_CODENAME);let I=w.getCacheKeyPrefix();I&&(D=I+"-"+D);let F=null;try{F=await xl(L9({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(R){k.warn("query cache DB error, but it's ok",R)}if(F){let R={...A,text:F.translatedText};f.sentences[v]=R,n&&n(null,R,A)}else b.push(A)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&k.debug(`use ${y-C} sentences from cache`),!b.length)return f;let T=await w.multipleTranslate({sentences:b},d,(A,D,I)=>{if(n&&n(A,D,I),!A&&D&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||b0.DEFAULT_CODENAME);let R=w.getCacheKeyPrefix();R&&(F=R+"-"+F),o.cache&&xl(P9({translatedText:D.text,from:I.from,to:I.to,detectedFrom:D.from,key:nr(I.text),service:F}),3e3).catch(B=>{k.warn("set cache DB error",B)})}});for(let A of T?.sentences||[]){let D=f.sentences.findIndex(I=>!I);if(D===-1)throw new j("translateFailed","can not match the result");f.sentences[D]=A}return f}function jP(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var UP=1e5;var sx=Date.now();async function Ta(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=HP(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,h=null;async function b(C){let{container:T,onFrame:A,onIgnoreElement:D,id:I,isLongHtml:F}=C,R=document.createTreeWalker(T,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let O=L(_);return O==NodeFilter.FILTER_ACCEPT?ht.mark(_,I,m):QP(_,O,n)&&y(),O}),B=T;if(L(B)===NodeFilter.FILTER_REJECT)return;for(ht.mark(B,I,m);B;){if(a?.interruptEffectDOM)return;let _=Date.now()-sx;if(_>50&&(k.debug("taskTime",_,T),sx=Date.now(),await st(0)),s&&s.length>0){let{currentNode:O,isMatchedSelection:z}=f(R,B,s);if(O)B=O;else break;if(!z)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let O=B;if(O.nodeName==="IFRAME"){A&&A(O),y(),ef(p,!0),B=R.nextNode();continue}O.nodeType===Node.ELEMENT_NODE&&(o&&tf(O,o),c&&rf(O,c));let z=Hr(O,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},O.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&O.childNodes.length==1&&O.childNodes[0].nodeType===Node.TEXT_NODE&&O.innerText?.length==1&&O?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),At(O,i)&&!z){v(O);let je=null;for(;!(je=R.nextSibling())&&R.parentNode(););B=je;continue}let V=Mi(O);if(!ux(p,O)||z){y(O);let je=z?O:O.parentElement;je&&je.childNodes.length>0&&S(p,je,je.immersiveTranslateComputedStyle||null)}V&&O.shadowRoot?.mode==="open"&&(z?A?.(O.shadowRoot):b({...C,container:O.shadowRoot})),O.nodeType===Node.ELEMENT_NODE&&At(O,n.likePreSelectors)&&u&&(F||GP(O,n.advanceTransformPreTagNewLine))}else if(B.nodeType===Node.TEXT_NODE)v(B);else throw new Error("should not be here");B=R.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ri(_)){if(c){let ie=Object.keys(c);if(ie.length>0&&At(_,ie))for(let Le of ie){let N=c[Le];if(_.matches(Le)){let q=c[Le],Z=Object.keys(q);for(let we of Z){let pe=q[we];_.getAttribute(we)!==pe&&(pe===null?_.removeAttribute(we):_.setAttribute(we,pe))}break}}}if(!C.force&&ht.isMarked(_,I)||Sy(_,I)||M0(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!Na(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ie=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ie,nf(ie))return D&&D(_),NodeFilter.FILTER_REJECT;let je=Hr(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ie||null);if(_.isBlock=je,At(_,i)&&je)return NodeFilter.FILTER_REJECT}let O=_.getBoundingClientRect(),{width:z,height:V}=O;return _.nodeName==="IMG"&&(z>48&&V>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&V>0&&d!==!1&&(_.setAttribute("width",z),_.setAttribute("height",V))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||V>0&&V<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let O=_.textContent?.trim();if(!O)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:V,height:ie}=z.getBoundingClientRect();if(V>0&&V<4||ie>0&&ie<4)return NodeFilter.FILTER_REJECT}return l>0&&O.length>=l&&VP(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await b(e)}catch(C){k.error(C)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(C,T,A){let D=T.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(T))if(g=!1,T&&T.nodeType===Node.ELEMENT_NODE)if(Du(T,A))g=!0,h=T,y(),S(p,h,D);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g}}else if(T&&T.nodeType===Node.ELEMENT_NODE)if(Du(T,A))g=!0,h=T,y(),S(p,h,D);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};return{currentNode:T,isMatchedSelection:!0}}function y(C){let T=p.flatNodes.length-1;if(n.skipTrailTextRegex&&T>0)for(let D=T;D>=0;D--){let F=p.flatNodes[D]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(D,1);continue}break}if(C&&C.nodeName==="BR"){if(C.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=JP(C,n);let D=[...p.flatNodes],I=p.flatNodes.filter(F=>C.parentNode?.contains(F));I.length>0&&D.length!=I.length&&(p.flatNodes=I,p.flatNodes.original=D)}let A=WP(p,r,n);A&&t&&t(A),ef(p)}function v(C){if(!ux(p,C)){y(),ef(p);let T=C.parentNode;T&&S(p,T,T.computedStyle)}p.flatNodes.push(C)}function S(C,T,A){C.commonAncestorContainer=T;let D=w(A);C.isPreWhitespace=D}function w(C){return C&&C.whiteSpace&&C.whiteSpace.startsWith("pre")||C&&C.whiteSpace==="break-spaces"||!1}}function ux(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mi(t));let r=zP(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function HP(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function qP(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function tf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function zP(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mi(t)):!1}function WP(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Hc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=qP(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>UP){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Ay(o)}}else return null}function ef(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function nf(e){return e.display==="none"}var ht={_marked_key:i1,isMarked(e,t){return Lp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return yb(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function GP(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=Un?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function VP(e,t,n){let r=e.textContent||"",a=wy(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=lb(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function cx(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||YP(p,a,i,o)||!db(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function rf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function M0(e,t){return KP(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function KP(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(jc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function Du(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function YP(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&M0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(yo(o,t,n))return!0}}return!1}function QP(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Hr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function JP(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Hr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function dx(e,t,n,r,a){let i=t,o=h1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${P}-theme-${i}-${d}: ${m}; -`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=vb(m);s+=`--${P}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var A0=class extends qn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(G3,async()=>{let t=await Kr({responseType:"json",url:`${rt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Xg=["glm-4-flash"],k0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Xg.includes(this.model)&&!this.apiKeys.length)throw new j("apiKey are required");if(!Xg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(V3,async()=>{let t=await Kr({responseType:"json",url:`${rt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Ir.langMap.has(n.to)||!Ir.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ir(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Xg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var D0={mock:Ho,mock2:Ho,custom:wu,google:yu,transmart:xu,deepl:zo,volc:U6,volcAlpha:Tu,bing:Ir,tencent:hu,tenAlpha:bu,baidu:z6,caiyun:G6,cai:V6,openl:h0,youdao:Y6,you:J6,d:Uo,dpro:Uo,deeplx:Cu,niu:C6,azure:w6,openai:B6,gemini:$6,claude:tx,papago:E6,aliyun:Su,yandex:Eu,qianfan:Au,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:E0,siliconcloud:A0,lingyiwanwu:qn,zhipu:k0};globalThis.TranslationServicesClass=D0;var ei={};Object.keys(kr).forEach(e=>{ei[e]={...kr[e],class:D0[e]}});function L0(e,t){let n=Xn;if(ei[e]&&ei[e].class&&ei[e].class.langMap&&ei[e].class.langMap.size>0){let r=ei[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function Oi(e,t,n){if(!e.text)return e;let r=null,a=await Qt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new j("translateFailed","translate failed")}async function ax(e,t){for(let n of e)try{return await Oi({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function $g(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new ei[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function OP(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Qt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),xa(a,t.localConfig,!1),d=await R6(m,d,{sourceLanguage:OP(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=NP(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let h=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ft(t.user),w;try{w=new ei[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){h.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let I of h){let F=A instanceof j?new j(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(F,null,I)}}return{sentences:[]}}if(o.cache&&!So(a))for(let A of e.sentences){v++;let D=l;l==="openl"&&(D=l+"-"+d.codename||h0.DEFAULT_CODENAME);let I=w.getCacheKeyPrefix();I&&(D=I+"-"+D);let F=null;try{F=await yl(k9({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(R){k.warn("query cache DB error, but it's ok",R)}if(F){let R={...A,text:F.translatedText};f.sentences[v]=R,n&&n(null,R,A)}else h.push(A)}else h.push(...e.sentences);let C=h.length;if(y-C>0&&k.debug(`use ${y-C} sentences from cache`),!h.length)return f;let T=await w.multipleTranslate({sentences:h},d,(A,D,I)=>{if(n&&n(A,D,I),!A&&D&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||h0.DEFAULT_CODENAME);let R=w.getCacheKeyPrefix();R&&(F=R+"-"+F),o.cache&&yl(D9({translatedText:D.text,from:I.from,to:I.to,detectedFrom:D.from,key:nr(I.text),service:F}),3e3).catch(B=>{k.warn("set cache DB error",B)})}});for(let A of T?.sentences||[]){let D=f.sentences.findIndex(I=>!I);if(D===-1)throw new j("translateFailed","can not match the result");f.sentences[D]=A}return f}function NP(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var jP=1e5;var ix=Date.now();async function Sa(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=UP(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,b=null;async function h(C){let{container:T,onFrame:A,onIgnoreElement:D,id:I,isLongHtml:F}=C,R=document.createTreeWalker(T,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let O=P(_);return O==NodeFilter.FILTER_ACCEPT?ht.mark(_,I,m):YP(_,O,n)&&y(),O}),B=T;if(P(B)===NodeFilter.FILTER_REJECT)return;for(ht.mark(B,I,m);B;){if(a?.interruptEffectDOM)return;let _=Date.now()-ix;if(_>50&&(k.debug("taskTime",_,T),ix=Date.now(),await ot(0)),s&&s.length>0){let{currentNode:O,isMatchedSelection:z}=f(R,B,s);if(O)B=O;else break;if(!z)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let O=B;if(O.nodeName==="IFRAME"){A&&A(O),y(),ef(p,!0),B=R.nextNode();continue}O.nodeType===Node.ELEMENT_NODE&&(o&&tf(O,o),c&&rf(O,c));let z=Ur(O,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},O.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&O.childNodes.length==1&&O.childNodes[0].nodeType===Node.TEXT_NODE&&O.innerText?.length==1&&O?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),At(O,i)&&!z){v(O);let je=null;for(;!(je=R.nextSibling())&&R.parentNode(););B=je;continue}let V=Pi(O);if(!ox(p,O)||z){y(O);let je=z?O:O.parentElement;je&&je.childNodes.length>0&&S(p,je,je.immersiveTranslateComputedStyle||null)}V&&O.shadowRoot?.mode==="open"&&(z?A?.(O.shadowRoot):h({...C,container:O.shadowRoot})),O.nodeType===Node.ELEMENT_NODE&&At(O,n.likePreSelectors)&&u&&(F||WP(O,n.advanceTransformPreTagNewLine))}else if(B.nodeType===Node.TEXT_NODE)v(B);else throw new Error("should not be here");B=R.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function P(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Mi(_)){if(c){let ie=Object.keys(c);if(ie.length>0&&At(_,ie))for(let Le of ie){let N=c[Le];if(_.matches(Le)){let q=c[Le],Z=Object.keys(q);for(let we of Z){let pe=q[we];_.getAttribute(we)!==pe&&(pe===null?_.removeAttribute(we):_.setAttribute(we,pe))}break}}}if(!C.force&&ht.isMarked(_,I)||xy(_,I)||P0(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!Oa(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ie=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ie,nf(ie))return D&&D(_),NodeFilter.FILTER_REJECT;let je=Ur(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ie||null);if(_.isBlock=je,At(_,i)&&je)return NodeFilter.FILTER_REJECT}let O=_.getBoundingClientRect(),{width:z,height:V}=O;return _.nodeName==="IMG"&&(z>48&&V>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&V>0&&d!==!1&&(_.setAttribute("width",z),_.setAttribute("height",V))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||V>0&&V<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let O=_.textContent?.trim();if(!O)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:V,height:ie}=z.getBoundingClientRect();if(V>0&&V<4||ie>0&&ie<4)return NodeFilter.FILTER_REJECT}return l>0&&O.length>=l&&GP(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await h(e)}catch(C){k.error(C)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(C,T,A){let D=T.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(T))if(g=!1,T&&T.nodeType===Node.ELEMENT_NODE)if(ku(T,A))g=!0,b=T,y(),S(p,b,D);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g}}else if(T&&T.nodeType===Node.ELEMENT_NODE)if(ku(T,A))g=!0,b=T,y(),S(p,b,D);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};return{currentNode:T,isMatchedSelection:!0}}function y(C){let T=p.flatNodes.length-1;if(n.skipTrailTextRegex&&T>0)for(let D=T;D>=0;D--){let F=p.flatNodes[D]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(D,1);continue}break}if(C&&C.nodeName==="BR"){if(C.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=QP(C,n);let D=[...p.flatNodes],I=p.flatNodes.filter(F=>C.parentNode?.contains(F));I.length>0&&D.length!=I.length&&(p.flatNodes=I,p.flatNodes.original=D)}let A=zP(p,r,n);A&&t&&t(A),ef(p)}function v(C){if(!ox(p,C)){y(),ef(p);let T=C.parentNode;T&&S(p,T,T.computedStyle)}p.flatNodes.push(C)}function S(C,T,A){C.commonAncestorContainer=T;let D=w(A);C.isPreWhitespace=D}function w(C){return C&&C.whiteSpace&&C.whiteSpace.startsWith("pre")||C&&C.whiteSpace==="break-spaces"||!1}}function ox(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Pi(t));let r=qP(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function UP(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function HP(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function tf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function qP(e){return e&&e._currentStacks?e._currentStacks.some(t=>Pi(t)):!1}function zP(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Uc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=HP(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>jP){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:wy(o)}}else return null}function ef(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function nf(e){return e.display==="none"}var ht={_marked_key:r1,isMarked(e,t){return Lp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Pi(e)))return hb(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Pi(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Pi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function WP(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=Bn?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function GP(e,t,n){let r=e.textContent||"",a=Ty(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=sb(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function ux(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let b=c[g];if(g==="translate"&&b==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||KP(p,a,i,o)||!lb(f,n,r))continue}p.getAttribute(g)!==b&&(b===null?p.removeAttribute(g):p.setAttribute(g,b))}})}}function rf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function P0(e,t){return VP(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function VP(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(Nc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function ku(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function KP(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&P0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(yo(o,t,n))return!0}}return!1}function YP(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ur(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function QP(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ur(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function lx(e,t,n,r,a){let i=t,o=g1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${L}-theme-${i}-${d}: ${m}; +`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b}=yb(m);s+=`--${L}-theme-${i}-${d}-rgb: ${p}, ${g}, ${b}; `}}}),r||(r="inherit"),e&&(s+=` -.${P}-target-inner { font-family: ${r}; } +.${L}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` -[imt-state="dual"] .${P}-target-translation-theme-${i}-inner{color: ${c};} +[imt-state="dual"] .${L}-target-translation-theme-${i}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;u+=` -[imt-state="dual"] .${P}-target-translation-theme-${i}-inner{font-size: max(13px, ${c}%);} +[imt-state="dual"] .${L}-target-translation-theme-${i}-inner{font-size: max(13px, ${c}%);} `}if(n&&n.weight){let c=n.weight;u+=` -[imt-state="dual"] .${P}-target-translation-theme-${i}-inner{font-weight: ${c};} +[imt-state="dual"] .${L}-target-translation-theme-${i}-inner{font-weight: ${c};} `}n&&n.italics&&(u+=` -[imt-state="dual"] .${P}-target-translation-theme-${i}-inner{font-style: italic;} +[imt-state="dual"] .${L}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?hn(e,l,P+"-user-custom-style"):a&&hn(e,"",P+"-user-custom-style")}function Jo(e,t){let r=ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;hn(e,r,P+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};dx(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?fn(e,l,L+"-user-custom-style"):a&&fn(e,"",L+"-user-custom-style")}function Jo(e,t){let r=ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;fn(e,r,L+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};lx(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&hn(e,s,P+"-dynamic-injected-css")}async function mx(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Be({text:xo(document.body),pageLangs:t})),e}function af(e,t,n=[],r){let a=["notranslate"];return r&&a.push(f1),e&&(a.push(`${P}-target-translation-theme-${e}`),t?a.push(`${Vm}-theme-${e}`):a.push(`${Gm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Vm):a.push(Gm),a}function of(e){let t=["notranslate",Vl];return e&&t.push(`${P}-target-translation-theme-${e}-inner`),t}function px(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Pi(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let w=f.indexOf(S),C=f[w-1]===" ",T=f[w+S.length]===" ",D=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),I=Number(D);if(isNaN(I))return S;let F=o[I];if(F&&F.type==="element"){let R=Ze.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(R=" "+R),T||(R=R+" "),R}else k.error("variable type not supported",F,S);return S}));let y=af(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(g1);let v=of(i);return sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function R0(e,t,n,r,a){let i=t.original||t,o=sy(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function gx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function fx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=So(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=uu(e.targetText):e.targetText=Ze.sanitize(uu(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=Ec(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=dy(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` -`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Pi(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return ZP({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=px(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function ZP(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",w=p[v+y.length]===" ",C=y.match(h);if(!C)return y;let T=C[1],A=Number(T);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let I=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(I=" "+I),w||(I=I+" "),I}else if(D&&D.type==="text"){let I=D.value;return S||(I=" "+I),w||(I=I+" "),I}else k.error("variable type not supported",D,y);return y}));let b=af(l,n,r||[],s),f=of(l);return sf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function lf(e){let t=e[e.length-1];return t?t.text:""}function hx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Ml(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=$P(u.content,t),n&&tM(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:ky(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function bx(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function XP(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` -`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=XP(o,20),u=eM(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return Hc(i,document.body,t)}function eM(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function tM(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function yx(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Gl)||cf(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Lu="";async function cf(e){let t=document.title;if(!t||t.includes(Gl))return;Lu!==t&&(Lu=t);let n=await Be({text:t,pageLangs:[pt(),"en"]});if(!ko(e,n))try{let r=await ea({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Lu,document.title=r.text+Gl+Lu)}catch(r){throw r}}function xx(e){e.rule.isTranslateTitle&&(document.title=Lu)}function Zo(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function I0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Gp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`+t.rule.additionalInjectedCss)),s&&fn(e,s,L+"-dynamic-injected-css")}async function cx(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ne({text:xo(document.body),pageLangs:t})),e}function af(e,t,n=[],r){let a=["notranslate"];return r&&a.push(p1),e&&(a.push(`${L}-target-translation-theme-${e}`),t?a.push(`${Vm}-theme-${e}`):a.push(`${Gm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Vm):a.push(Gm),a}function of(e){let t=["notranslate",Gl];return e&&t.push(`${L}-target-translation-theme-${e}-inner`),t}function dx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Li(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],b=`${p}(\\d+)${g}`,h=new RegExp(b,"g"),f=u;o.length>0&&(f=f.replace(h,S=>{let w=f.indexOf(S),C=f[w-1]===" ",T=f[w+S.length]===" ",D=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),I=Number(D);if(isNaN(I))return S;let F=o[I];if(F&&F.type==="element"){let R=Ze.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(R=" "+R),T||(R=R+" "),R}else k.error("variable type not supported",F,S);return S}));let y=af(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(m1);let v=of(i);return sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function M0(e,t,n,r,a){let i=t.original||t,o=iy(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function mx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function px(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=So(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=su(e.targetText):e.targetText=Ze.sanitize(su(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=wc(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=ly(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` +`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Li(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return JP({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=dx(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function JP(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",w=p[v+y.length]===" ",C=y.match(b);if(!C)return y;let T=C[1],A=Number(T);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let I=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(I=" "+I),w||(I=I+" "),I}else if(D&&D.type==="text"){let I=D.value;return S||(I=" "+I),w||(I=I+" "),I}else k.error("variable type not supported",D,y);return y}));let h=af(l,n,r||[],s),f=of(l);return sf({targetWrapperTag:a,innerClassList:f,classList:h,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function lf(e){let t=e[e.length-1];return t?t.text:""}function gx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Pl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=XP(u.content,t),n&&eM(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Ey(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function fx(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function ZP(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` +`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=ZP(o,20),u=$P(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return Uc(i,document.body,t)}function $P(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function eM(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function hx(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Wl)||cf(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Du="";async function cf(e){let t=document.title;if(!t||t.includes(Wl))return;Du!==t&&(Du=t);let n=await Ne({text:t,pageLangs:[pt(),"en"]});if(!ko(e,n))try{let r=await Oi({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Du,document.title=r.text+Wl+Du)}catch(r){throw r}}function bx(e){e.rule.isTranslateTitle&&(document.title=Du)}function Zo(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function R0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Gp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function vx(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Gp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function yx(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Gp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${P}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function F0(e){let t=fy(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function on(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Up(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var nM={sanitize:e=>e};async function gf(e,t){if(e.interruptEffectDOM)return;ba("consumeContainer");let n=on(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{df(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Xi&&wt(t,"consumeContainer",e.id)}function df(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Na(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${ql}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,zr(t.contentWindow?.document.documentElement,e.translateState),ri(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ri(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ri(e,t,n=!0){ba("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=on(t.ctx),o=0;if(l(t,e,n))return;if(Ri(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ri(d)&&(a&&tf(d,a),i&&rf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await gf(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await st(0))}else Xi&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return df(t,c.shadowRoot,n),!1;if(d==="iframe")return df(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Du(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&Du(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){bx(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=on(c.ctx);return!!(M0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Pu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=Xo(e,t.rootNodes);if(mf(s))return;ni(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Xo(e,t.targetNodes,s);ni(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Xo(e,t.rootNodes);if(mf(s))return;ni(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Xo(e,t.targetNodes);ni(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),bf(t)}catch(s){k.error(s)}ba("inserted"),Py()}}function mf(e){return!e||!Ri(e)?!1:e.classList.contains(Lt)}function Xo(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ni(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var rM=Yn(B0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;ba("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||aM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Xi&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Pi(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=R0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:F0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await hf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:qr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),iM(e,t.text),ff(e,t,r)):(Xi&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function aM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ri(t)&&t.classList.contains(Lt):!1}function iM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function ff(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;ba("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Xi&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,o1,"1",!0),n=="hover"){B0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";rM.call(e,e.ctx,a)}async function B0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await _0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function _0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=cu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;ni(t,u,i.commonAncestorContainer,[s]),bf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Qt(a,t,(i,o,s)=>{let u=s.id,l=oM(e,u.toString());l&&sM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function oM(e,t){return e.find(n=>n.id===t)}function sM(e,t,n,r,a,i){ba("translated");let o=!1,s=r;Do(s.commonAncestorContainer,n.id)?.remove(),bf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(ao,"1");let p=fx(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Zo(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=nM.sanitize(p);m.innerHTML=Un?.createHTML(g)||g,c.targetNodes=[m],Pu(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,c1,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(mf(g)||ni(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=uM(a,c).replaceAll(` -`,"").replaceAll('"',"""),b=c.message.replaceAll(` -`,"").replaceAll('"',"""),f=De(a.config.interfaceLanguage,"retryAllButton"),y=De(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,v=De(a.config.interfaceLanguage,"error.retry"),S=De(a.config.interfaceLanguage,"error.reason"),w=`
<${d.targetWrapperTag} class="${P}-error notranslate"> - <${d.targetWrapperTag} class="${P}-error-wrapper"> - + ${r.innerHTML}`.replaceAll(`data-${L}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function I0(e){let t=py(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function on(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Up(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var tM={sanitize:e=>e};async function gf(e,t){if(e.interruptEffectDOM)return;fa("consumeContainer");let n=on(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{df(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Xi&&wt(t,"consumeContainer",e.id)}function df(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Oa(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Hl}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,qr(t.contentWindow?.document.documentElement,e.translateState),ni(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ni(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ni(e,t,n=!0){fa("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=on(t.ctx),o=0;if(l(t,e,n))return;if(Mi(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Mi(d)&&(a&&tf(d,a),i&&rf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await gf(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await ot(0))}else Xi&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return df(t,c.shadowRoot,n),!1;if(d==="iframe")return df(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return ku(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&ku(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){fx(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=on(c.ctx);return!!(P0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Lu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=Xo(e,t.rootNodes);if(mf(s))return;ti(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Xo(e,t.targetNodes,s);ti(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Xo(e,t.rootNodes);if(mf(s))return;ti(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Xo(e,t.targetNodes);ti(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),bf(t)}catch(s){k.error(s)}fa("inserted"),Dy()}}function mf(e){return!e||!Mi(e)?!1:e.classList.contains(Lt)}function Xo(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ti(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var nM=Yn(F0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;fa("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||rM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Xi&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Li(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=M0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:I0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await hf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Hr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),aM(e,t.text),ff(e,t,r)):(Xi&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function rM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Mi(t)&&t.classList.contains(Lt):!1}function aM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function ff(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;fa("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Xi&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,a1,"1",!0),n=="hover"){F0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";nM.call(e,e.ctx,a)}async function F0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await B0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function B0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=lu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;ti(t,u,i.commonAncestorContainer,[s]),bf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Qt(a,t,(i,o,s)=>{let u=s.id,l=iM(e,u.toString());l&&oM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function iM(e,t){return e.find(n=>n.id===t)}function oM(e,t,n,r,a,i){fa("translated");let o=!1,s=r;Do(s.commonAncestorContainer,n.id)?.remove(),bf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(ao,"1");let p=px(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Zo(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=tM.sanitize(p);m.innerHTML=Bn?.createHTML(g)||g,c.targetNodes=[m],Lu(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,u1,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(mf(g)||ti(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=sM(a,c).replaceAll(` +`,"").replaceAll('"',"""),h=c.message.replaceAll(` +`,"").replaceAll('"',"""),f=De(a.config.interfaceLanguage,"retryAllButton"),y=De(a.config.interfaceLanguage,"errorTooltipTitle")+": "+h,v=De(a.config.interfaceLanguage,"error.retry"),S=De(a.config.interfaceLanguage,"error.reason"),w=`<${d.targetWrapperTag} class="${L}-error notranslate"> + <${d.targetWrapperTag} class="${L}-error-wrapper"> + ${v}    - + ${S} - `;p.innerHTML=Un?.createHTML(w)||w}}}var Sx="";async function hf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=Sx.slice(0,e.rule?.detectTextBufferLength)+" "+o),Sx=s;let u=await Be({text:s,minLength:15,pageLangs:[pt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Lo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Lo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=t0();r.isDetectParagraphLanguage&&(m="auto");let p=pt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!Cc.includes(e.translationService)&&(te()||it())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return ja(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>ja(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Mu(){pf=0}var pf=0;function uM(e,t){pf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new j("contextInvalidated",n)),t instanceof j){let r=t.uiConfig(e);if(n=JSON.stringify(r),pf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(fn,{detail:r}))}return n}function bf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,lM(t,`[${s1}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function lM(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}var cM=[];function Tx(e){cM.push(e)}var yf;function Cx(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=on(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Ru(e,i,t,r)}),yf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&tr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||vf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Ru(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Hr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Mo(r,u.parentElement);c&&(ht.clearToParentMark(u,c),Ru(e,c,t,r));continue}Ru(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ht.isMarked(o,e.id)||Ru(e,o,t,r)})}),yf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Ru(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&xf(t),Ta({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{ji(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function wx(){yf?.disconnect()}function $o({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&hn(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}Ha(x(Go,{lang:t.config.interfaceLanguage,children:x(n,{...r})}),d)}function Ex(e){let t=document.createElement("span");return t.innerHTML=e,(t.textContent||"").trim()}function qe(e,t,n){Fe("translate_video_subtitle",[{name:"translate_video_subtitle",params:{video_platform:n||e.rule.id||""}}],{...e,sourceLanguage:t||"auto"})}function Xe(e,t){return e==t}function Ca(e,t){return!e||!t?!1:e.startsWith("zh")&&t.startsWith("zh")}function Ax(e){let{url:t,method:n,headers:r,body:a}=e,i=new Headers;for(let[u,l]of Object.entries(r))i.append(u,l);let o;return typeof a=="object"?(delete a._formatBodyType,o=JSON.stringify(a)):typeof a=="string"&&(o=a),new Request(t,{method:n,headers:i,body:o})}function kx(e){return e?Object.entries(e).reduce((t,[n,r])=>{if(r==null||r==null||typeof r=="object"&&Object.keys(r).length===0)return t;if(n=="body"&&typeof r=="object"&&r._formatBodyType=="FormData"){let a=new FormData;for(let[i,o]of Object.entries(r))i!=="_formatBodyType"&&a.append(i,o);return t[n]=a,t}return t[n]=r,t},{}):null}function Sf(e){return e.replace(/\n/g," ")}function Dx(e){let t;return e instanceof URL?t=e.href:typeof e=="string"?t=e:e instanceof Request?t=e.url:t=String(e),t}function O0(e,t,n){let r="translationServices."+n,a=t("translationServices."+n);return a!=r?a:e.config.translationServices[n]?.name||a}function es(e){return ts(e).subtitles}function ts(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${zf.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},aR=e=>/]*>[\s\S]*]*>/.test(e),fv=un({name:gv,build:rR,detect:aR,helper:zf,parse:nR});var iR="srt",Nu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},oR=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Nu.toMilliseconds(s[2]),u.end=Nu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},sR=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${Nu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},uR=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),hv=un({name:iR,build:sR,detect:uR,helper:Nu,parse:oR});var lR="sub",Wf=25,cR=(e,t)=>{t.fps||=Wf;let n=t.fps>0?t.fps:Wf,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Wf,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},mR=e=>/^\{\d+\}\{\d+\}.*/.test(e),bv=un({name:lR,build:dR,detect:mR,parse:cR});var pR="vtt",ju={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},gR=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=ju.toMilliseconds(s[2]),l.end=ju.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},fR=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${ju.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},hR=e=>/^\s*WEBVTT\r?\n/.test(e),yv=un({name:pR,build:fR,detect:hR,helper:ju,parse:gR});var bR={vtt:yv,lrc:mv,smi:fv,ssa:lv,ass:cv,sub:bv,srt:hv,sbv:pv,json:dv},xv=bR;var yR=e=>JSON.parse(JSON.stringify(e)),Gf=class{format=xv;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),q0.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];Zo(this.ctx)&&this.isEnableSubtitle()&&(wt(document.documentElement,Y+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${P}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&hn(document,`${t.join(` -`)}`,P+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await We(Se(),{});if(this.initConfig(n),await st(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(Ax(r),kx(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!ze(Se(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return De(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:O0(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function BM(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:z0}})}function _M(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:Gx}})}function OM(){return x("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:x("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function NM(){return x("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:x("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function jM(){return x("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:x("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var Nf=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},un=e=>new Nf(e);var UM="ssa",Ui={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},jf=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sw.split(C,T).join(C).length)(h,",",r.length-1)+1;y.content=h.substring(S),y.data.Text=y.content,y.text=y.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(y)}}}}}t.verbose}return a},Uf=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,sv=un({name:UM,build:Uf,detect:Hf,helper:Ui,parse:jf});var HM="ass",uv=un({name:HM,build:Uf,detect:Hf,helper:Ui,parse:jf});var qM="json",zM=(e,t)=>JSON.parse(e),WM=(e,t)=>JSON.stringify(e,void 0,2),VM=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},lv=un({name:qM,build:WM,detect:VM,parse:zM});var KM="lrc",qf={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},YM=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),cv=un({name:KM,build:QM,detect:JM,helper:qf,parse:YM});var ZM="sbv",_u={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},XM=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},$M=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),dv=un({name:ZM,build:$M,detect:eR,helper:_u,parse:XM});var mv="smi",zf={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},tR=(e,t)=>{if(t.format&&t.format!==mv)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(d){let m={};m.type="caption",m.start=parseInt(d[1]),m.end=m.start+2e3,m.duration=m.end-m.start,m.content=d[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,g=/^([\s\S]*)/i.exec(m.content)||/^]*)>([\s\S]*)/i.exec(m.content);if(g){let b=g[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),b=b.replace(/^\s+/g,"").replace(/\s+$/g,""),p=b.replace(/ /gi," ").replace(/\s+/g,"").length===0,m.text=zf.htmlDecode(b,r)}!t.preserveSpaces&&p?t.verbose:n.push(m),s&&(s.end=m.start,s.duration=s.end-s.start),s=m;continue}t.verbose}return n},nR=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${zf.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},rR=e=>/]*>[\s\S]*]*>/.test(e),pv=un({name:mv,build:nR,detect:rR,helper:zf,parse:tR});var aR="srt",Ou={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},iR=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Ou.toMilliseconds(s[2]),u.end=Ou.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},oR=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Ou.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},sR=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),gv=un({name:aR,build:oR,detect:sR,helper:Ou,parse:iR});var uR="sub",Wf=25,lR=(e,t)=>{t.fps||=Wf;let n=t.fps>0?t.fps:Wf,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Wf,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},dR=e=>/^\{\d+\}\{\d+\}.*/.test(e),fv=un({name:uR,build:cR,detect:dR,parse:lR});var mR="vtt",Nu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},pR=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Nu.toMilliseconds(s[2]),l.end=Nu.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},gR=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Nu.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},fR=e=>/^\s*WEBVTT\r?\n/.test(e),hv=un({name:mR,build:gR,detect:fR,helper:Nu,parse:pR});var hR={vtt:hv,lrc:cv,smi:pv,ssa:sv,ass:uv,sub:fv,srt:gv,sbv:dv,json:lv},bv=hR;var bR=e=>JSON.parse(JSON.stringify(e)),Gf=class{format=bv;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),H0.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];Zo(this.ctx)&&this.isEnableSubtitle()&&(wt(document.documentElement,Y+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${L}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&fn(document,`${t.join(` +`)}`,L+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await He(ve(),{});if(this.initConfig(n),await ot(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(wx(r),Ex(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!We(ve(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return De(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:_0(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=Ze.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Qt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=U0(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Bu(this.ctx,n,r)}getTranslationMode(t){return Ca(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=P+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;qe(this.ctx,n);let r=t.filter(a=>a.text);wa(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(_u(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Mn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&$o({id:P+"quick-button",parent:n,ctx:this.ctx,Component:sv,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:uv+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Hi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return l0(t.slice(0,50).map(n=>n.text).join(" "))}};function Sv(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var G0=class extends tt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!ze(Se(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Xe($(r),this.ctx.targetLanguage);if(a||Ca(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(Vx(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=Gx(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${rt}subtitles/yt-asr-subs`;try{let a=await n0(t),o=(await K({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Xe($(o),r)&&!Ca($(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Xe($(d.languageCode),r)&&!Ca($(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>$(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=$(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=Sv(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>$(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>$(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return $(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=P+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Xe($(a[u]),this.ctx.targetLanguage)&&!Ca($(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:Ex(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await We(Se(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&_u(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await We(Se(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=N0(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Se()&&(this.lastReportUrl=Se(),qe(this.ctx,$(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),j0(a.arrayBuffer,a.document))}catch{}}};var V0=class extends tt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;qe(this.ctx,$(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:$(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,$(i));return}this.downloadSubtitle(o,$(i),[]);let u=await this.requestHumanSubtitle(o,$(i),r);if(u)return this.handleIOSFullScreen(u,$(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,$(i));return l?(this.handleIOSFullScreen(l,$(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[$(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ns(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!te()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Iu(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Se()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ii=class extends tt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),$(i.language)),i.isTranslated=!0;return}qe(this.ctx,$(i.language)),this.translateSubtitle([...i.cues||[]],$(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>xR(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function xR(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var ta=class extends ii{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&qe(this.ctx,$(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,$(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var is=class extends ta{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=ts(r),i=await Be({text:a.subtitles.map(l=>l.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Xe($(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,$(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ai(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var K0=class extends tt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Xe($(a),this.ctx.targetLanguage))return null;qe(this.ctx,$(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,$(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:Sf(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=Br(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${Sf(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Y0=class extends ii{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;qe(this.ctx,$(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,$(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,$(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=es(t),s=es(i),u=ns(o,s);return{text:ai(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=es(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=Br(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),ai(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[$(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Se()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Q0=class extends tt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=Tv(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=Tv(o,r.itemsPath):s=SR(o,r),!s?.length)continue;let u=await Be({text:s.map(l=>Uu(l,r.textKey)).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Uu(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),qe(this.ctx,$(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Uu(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=vR(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function Tv(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Mo(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,qe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return tr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Hp(t);o.append(Ze.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Be({text:n,pageLangs:[pt(),"en"]});return ko(t,r)?void 0:(await ea({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ye(),n=await We(Se(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await We(Se(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var J0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=TR(r),o=await Be({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=Cv(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),qe(this.ctx,$(o));let s=await this.translateSubtitle(a,i,$(o));if(this.config.enableHookDownload)try{let u=Cv(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),$(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Br(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(Hu,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},Hu="http://www.w3.org/ns/ttml";function TR(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Hu,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Hu,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Hu,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function Cv(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Hu,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:wv(i),end:wv(o),text:s})}),r}function wv(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Z0=class extends tt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=ts(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Xe(o,this.ctx.targetLanguage))return null;if(qe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,$(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ns(n.subtitles,es(u));return n.subtitles=l,ai(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=Br(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),ai(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>$(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=ER(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return Be({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Se()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=wR(r),i=CR(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function CR(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function wR(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function ER(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var X0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=N0(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(qe(this.ctx,$(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),j0(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var $0=class extends tt{async requestSubtitle(t){let n=await We(Se(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new is(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Tf(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}Px(a),kf(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var ed=class extends tt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(Ev).forEach(n=>{Ev[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Xe($(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(qe(this.ctx,t),wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=Dx(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},Ev={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var td=class extends ta{constructor(t){super(t),new os(t)}};var nd=class extends ta{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Hi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Be({text:i.map(c=>c.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Xe($(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,$(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Hi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var rd=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Be({text:a.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Xe($(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,$(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),$(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",b=wf(g,l),f=wf(h,l),y=sn(b),v=sn(f);u==="duration"&&(v=y+v);let S=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(S||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var ad=class extends tt{hasSubtitle=!1;async mutationVideoChange(){let t=AR(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(qe(this.ctx,"ja","av"),this.hasSubtitle=!0,wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await K({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Hi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function AR(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var id=class extends tt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(qe(this.ctx,n.language_code),wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var kR={youtube:G0,netflix:V0,webvtt:is,khanacademy:K0,udemy:Y0,hulu:$0,mubi:id,text_track:ii,text_track_dynamic:ta,general:Q0,live:os,ebutt:J0,disneyplus:Z0,"fmp4.xml":X0,multi_attach_vtt:ed,twitter:td,subsrt:nd,xml:rd,av:ad},od;async function Av(e){try{te()&&await st(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=kR[t.type];if(!n)return;od=new n(e)}catch(t){k.error(t)}}async function Vf(){od?.onPageStatusChange()}async function DR(e,t){if(od?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Ke())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Fe("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function LR(){od?.onTranslationModeChanged()}E9({autoEnableSubtitleChanged:DR,reloadSubtitleWithTranslationModeChanged:LR});var ue=null;function qu(){return ue||null}function ud(e){Jo(document,e),PR(e),OR(e),FR(e),_R(e),IR(ue),_n("Translated"),BR(ue),Tx(ss),MR(ue),Vf(),VR()}function PR(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=on(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}cx(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}Zo(e)&&wt(document.documentElement,Y+"_rtl",e.targetLanguage)}function MR(e){let t=e.ctx;Bv(t,!0),Cx(e),Cy(window.location.href)}function RR(e){let t=e.ctx;Bv(t,!1),wx()}async function IR(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await Pv(e.ctx,on(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ri(s,e);await ri(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ri(s,e)}function Pv(e,t){x9(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=hx(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Fo({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function FR(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Yt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await zt({...t,tempTranslationUrlMatches:[...i]})}}function BR(e){e.ctx.rule.isTranslateTitle&&(cf(e.ctx),e.titleDynamicObserver=yx(e.ctx))}function _R(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Kf(e,t){ue&&(e.filterRule=on(e,!0),e.isRichTranslate=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=on(e)),ue.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},ue.translationService=e.translationService,ue.urlChangeDelay=e.rule.urlChangeDelay,ue.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ue.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",zr(document.documentElement,ue.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function OR(e){let t=nu();ue&&(t=ue.id),ue=ue||{},ue.ctx=e,ue.id=t,ue.paragraphQueue=ue.paragraphQueue||[],Kf(e),ue.currentUrl=window.location.href,ue.paragraphEntities=ue.paragraphEntities||{},ue.autoIncreaseParagraphId=ue.autoIncreaseParagraphId||1,ue.interruptEffectDOM=!1,ue.observeContainers=ue.observeContainers||[],ue.observeParagraphs=ue.observeParagraphs||[],ue.dynamicContainerObserver=ue.dynamicContainerObserver||WR(ue),ue.ignoreResizeObserver=ue.ignoreResizeObserver||GR(ue),ue.containerVisibleObserver=ue.containerVisibleObserver||UR(ue),ue.paragraphVisibleObserver=ue.paragraphVisibleObserver||HR(ue),ue.injectCssToDocument=sd,ue.walkContainer=Ta,e.specialAiAssistant=Fr(e,e.translationService,!0),window.onerror=jR(ue,e),window.immersiveTranslateSwitchTranslateState=Qf.bind(ue)}function Mv(e,t){t.getRootNode()instanceof ShadowRoot?sd(t.getRootNode(),e):sd(t.ownerDocument,e),NR(e)}function NR(e){ue||(ue={},ue.ctx=e,ue.id=nu(),Yf(ue,e))}function Yf(e,t){let n={...e};n.injectCssToDocument=sd,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=Qf.bind(n);let r=Fr(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Ao(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function ss(e=!0){ue&&(_n("Original"),Vf(),RR(ue),Mu(),ue.interruptEffectDOM=!0,ue.ignoreResizeObserver?.disconnect(),ue.dynamicContainerObserver?.disconnect(),ue.containerVisibleObserver?.disconnect(),ue.paragraphVisibleObserver?.disconnect(),ue.titleDynamicObserver?.disconnect(),xx(ue.ctx),by(),yy(),e&&Qf.call(ue,"original"),Object.values(ue.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ue=null)}function jR(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),ss(),n=setTimeout(()=>{ud(t)},e.urlChangeDelay||2e3)),!0}}function UR(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await gf(e,r.target),n.unobserve(r.target))})}function HR(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{ff(e,o)}),n.unobserve(a)}})})}var kv;function qR(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function zR(e){if(e.urlChangeDelay<=0||(clearTimeout(kv),e.translateState=="original"))return!1;ss(e.urlChangeDelay>20),kv=setTimeout(()=>{let t=e.ctx;ud(t)},e.urlChangeDelay)}function WR(e){let t=e.ctx.rule,n=on(e.ctx);return new MutationObserver(r=>{if(qR(e)&&(Pv(e.ctx,n),t.mutationConfig.enableUrlChange&&zR(e))||e.interruptEffectDOM)return;let a=Uc(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!tr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&tr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Vl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Dv(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&vf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Dv(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ht.isSkipMarkEle(i.target)&&!ht.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Hr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Mo(n,o.parentElement);l&&(ht.clearToParentMark(o,l),Lv(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&Lv(e,i.target)}catch(o){k.error(o)}}})}function Dv(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{xf(n),Ta({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{ji(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function Lv(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ht.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ri(t,e,n),i.timer=null},a)}function xf(e){e.paragraphs=[],ht.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${P}-walked]`).forEach(t=>{t.paragraphs=void 0,ht.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function vf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function GR(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);nf(i)||(n.unobserve(r.target),ht.clearMark(a),ri(a,e))}})}async function Qf(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await _r(),await st(50),Jt({method:"translatePage"});return}this.translateState=e,zr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{zr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Pu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function sd(e,t){if(e instanceof HTMLIFrameElement){Jo(e.contentDocument,t);return}Jo(e,t)}async function Rv(e){let t=Ke(),n="auto";if(te()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=Pp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})):(r=xo(e.mainFrame).slice(0,1e3),n=await Be({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Be({text:xo(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=Pp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})}else n=await D9();return n==="auto"&&(n=await mx()),f9(n),n}async function Iv(){if(!ue)return;Mu(),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ue.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){ue.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${zl}='${n}']`);i&&i.remove()}}B0.call(ue,ue.ctx)}async function Jf(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Fe("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:pt()});let r=ue?.ctx||t,a=await Yt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:vx(r)},await zt(a);let o=ke().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Gr(o)}catch(i){k.error(i)}}async function Fv(){let e=await Yt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(t1,{detail:JSON.stringify(e.draft)}))}async function VR(){try{if(await Ii("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Lr();await K({url:rt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Pr("reportActive","1")}catch(e){k.error(e)}}function Bv(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(ro,{detail:{tempEnableSubtitle:t}}))}function Zf(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&jn(o,s=>{s.preventDefault();let u=r[i];Jt({method:u,data:{trigger:"shortcut"}})})}}var KR="imt-fb";function Rt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${KR}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function _v(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var ld="DROP_DOWN_DEFAULT_VALUE";function Xf(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:ld,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==ld){s.current.value=ld,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:ld,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function us(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var YR=({date:e})=>{let{t}=oe(),[n,r]=W(!1);return J(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},QR=({minVersion:e})=>{let{t}=oe();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},JR=()=>{let{t:e}=oe();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ae+"docs/installation/"})}})},ZR=({message:e,handleSyncing:t,date:n})=>{let{t:r}=oe();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function $f(e){let{isShowError:t,request:n}=e,[r,a]=W(null),{t:i}=oe(),[o,s]=W(null),[u,l]=W(null),[c,d]=W(""),[m,p]=W(!1),[g,h]=W(!1),[b,f]=W(!1),[y,v]=W(null),[S,w]=W(null),C=Ht(),T=async()=>{d("");let A=o;if(o===null)try{let D=await n({url:Fs});D?(s(D),A=D,p(!0)):(d(i("unknownError")),l(null))}catch(D){l(null),d(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return J(()=>{le.DEBUG||qt().then(A=>{let D=A.buildinConfigUpdatedAt;v(A);let I=new Date(D);if(a(D),C==="0.0.0"){f(!0);return}n({url:Fs}).then(F=>{let R=F,B=R.minVersion,L=C;s(R);let _=R.latestVersion;if(_&&(us(L,_)?w(!0):w(!1)),us(L,B)){let O=R.buildinConfigUpdatedAt;new Date(O)>I?(l(!0),T()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),J(()=>{qt().then(A=>{v(A),va(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x(JR,{}):c?t===!1?null:x(ZR,{handleSyncing:T,message:c,date:r||""}):g?t===!1?null:x(QR,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(YR,{date:r}):null}):null}function XR(){return navigator.userAgent.indexOf("Mac")!==-1}var Ov={Alt:"\u2325"};function ls(e=""){return XR()?Object.keys(Ov).reduce((t,n)=>t.replace(n,Ov[n]),e):e}var Nv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var jv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Uv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),Hv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),qv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var zv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),Wv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),Gv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),Vv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function cs(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function Kv(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=oe();return Ga(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Os,`${e.type}_user_info`);return}e.onOpenUrl(Ql,`${e.type}_user_info`)},children:[x("img",{src:n?Qx:Yx}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x($R,{...e})]})}function $R(e){let{t}=oe(),n=he(()=>cs(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Os,`${e.type}_pro_logo`)},children:x("img",{src:as})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Fn)},children:[x(Rt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Fn,`${e.type}_user_upgrade`)},children:[Wv,x("span",{children:t("popup.upgrade")})]})}var oi=(e,t,n,r)=>{let a=p2[e]||e,i=ip[e]||e,o=op[e],s=sp[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function eh(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=op,a="zh-CN"):n==="zh-TW"?(r=sp,a="zh-TW"):(r=ip,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function Yv({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=oe();if(!t)return null;let o=P0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(eI,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:Jx,style:{maxWidth:"unset"},class:"mx-2"}),x(tI,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function eI(e){let{t}=oe(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=oi(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=oi(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function tI(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=oi(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function si(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=oe();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var th;function dh(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r5(e,t=","){return e.map(dh).join(t)}var a5=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function dd(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function md(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function nI(){}var mn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function i5(e){return e.match(/[-=:;]/g)?.length||0}function sh(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(i5(e),15)<<18}var rI=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function mh({n:e,i:t,v:n=[]},r,a,i){e&&(e=dh({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&md(u)||r.v(s))){var o;i.push(l),a|=u?67108864|sh(l):s=="dark"?1073741824:l[0]=="@"?sh(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~rI.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var ph=new Map;function Qv(e){if(e.d){let t=[],n=nh(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?nh(r,i=>nh(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):rh(i,o)}return rh(o,i)})):r,"&"),r=>rh(r,e.n?"."+a5(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function nh(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function rh(e,t){return e.replace(/&/g,t)}var Jv=new Intl.Collator("en",{numeric:!0});function aI(e,t){for(var n=0,r=e.length;n>1;0>=o5(e[a],t)?n=a+1:r=a}return r}function o5(e,t){let n=e.p&mn.o;return n==(t.p&mn.o)&&(n==mn.b||n==mn.o)?0:e.p-t.p||e.o-t.o||Jv.compare(Zv(e.n),Zv(t.n))||Jv.compare(Xv(e.n),Xv(t.n))}function Zv(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Xv(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ah(e,t){return Math.round(parseInt(e,16)*t)}function ui(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ah(e.substr(1,i),o),ah(e.substr(1+i,i),o),ah(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function s5(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...l5(s,u,fh(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ir(v))m.push(...i(S,{n:s,p:(b=mn[y[7]],u&~mn.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:mn.d,o:0,r:[y],d:i(v,{p:mn.d},d).map(Qv).join("")});continue}if(y[1]=="f"){m.push(...ir(v).map(S=>({p:mn.d,o:0,r:[y],d:i(S,{p:mn.d},d).map(Qv).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+dd(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:i5(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(v).map(S=>d.s(y,u5(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(w,C)=>{let T=d.theme("screens",C);return T?(S|=67108864,md(T,"")):w}),S|=sh(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(o5)}(e,mh(t,n,r,a),n)}function u5(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?ui(s):""+ir(s).filter(u=>Object(u)!==u)})}function gh(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function uh(e,t,n=mn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=ph.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=mh(u,l,c,d),gh(uh(fh(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(h=c,b=g.p??c,h&~mn.o|b)}}):s5(p,u,l,c,d):[{c:dh(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(aI(i,s),0,s);return i}function l5(e,t,n,r,a,i,o,s){return gh((s?n.flatMap(u=>uh([u],r,a,i,o)):uh(n,r,a,i,o)).map(u=>u.p&mn.o&&(u.n||t==mn.b)?{...u,p:u.p&~mn.o|t,o:0}:u),e)}function iI(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=mh(i,o,t);return n&&l5(s,t,n,o,u,l,c,r)},ph.set(e,a),e}function ih(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(oI),i:a}))}}function oI(e,t,n){return n.indexOf(e)==t}var $v=new Map;function fh(e){let t=$v.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&ih(n,r)),a=s+1};for(;s1?d.slice(0,-1)+dd(JSON.stringify([d,m])):d+"("+r5(m)+")",mn.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),$v.set(e,t=r[0])}return t}function c5(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function d5(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?c5(e,t,n=>oh(n).trim()):t.filter(Boolean).reduce((n,r)=>n+oh(r),e?oh(e):"")}function oh(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=d5(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var bme=m5("@"),yme=m5("~");function m5(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return r5(fh(n+e+"("+d5(r,a)+")"))}}function lh(e,t){return Array.isArray(e)?e5(c5(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?e5(e):[e]}var sI=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function e5(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=sI.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function p5(e,...t){var n;let r=lh(e,t),a=(r.find(i=>i.label)?.label||"css")+dd(JSON.stringify(r));return n=(i,o)=>gh(r.flatMap(s=>s5(s,i,o,mn.o)),a),ph.set(a,n),a}var xme=new Proxy(function(e,t){return t5("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return t5(t,n,r)}}});function t5(e,t,n){return{toString(){return p5({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function X(e,t,n){return[e,uI(t,n)]}function uI(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ch(n,1)}):n=>e||{[n[1]]:ch(n,2)}}function ch(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,lI(t,n,r)]}function lI(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=g5(e||a[1]),s=i.theme(o,a.$$)??ds(a.$$,o,i);if(s!=null)return a._=ch(a,0,s),r(a,i,o)}}function Zt(e,t={},n){return[e,cI(t,n)]}function cI(e={},t){return(n,r)=>{let{section:a=g5(n[0]).replace("-","")+"Color"}=e,[i,o]=dI(n.$$);if(!i)return;let s=r.theme(a,i)||ds(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&ds(o,l,r),p=t||(({_:h})=>{let b=zu(c,h);return d?{[d]:b}:b});n._={value:ui(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>ui(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:ui(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>ui(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function dI(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function zu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function ds(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=cd(u5(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function g5(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function cd(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>cd(n)+r+cd(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var vme=Symbol();var f5=new Proxy(nI,{apply(e,t,n){return th(n[0])},get(e,t){let n=th[t];return typeof n=="function"?function(){return n.apply(th,arguments)}:n}});var Sme=function e(t){return new Proxy(function(n,...r){return n5(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return n5(t,r,a,i)}}})}();function n5(e,t,n,r){return{toString(){let a=lh(n,r),i=a5(t+dd(JSON.stringify([t,a])));return(typeof e=="function"?e:f5)(p5({[`@keyframes ${i}`]:lh(n,r)})),i}}}var h5={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Qe("blur"),backdropBrightness:Qe("brightness"),backdropContrast:Qe("contrast"),backdropGrayscale:Qe("grayscale"),backdropHueRotate:Qe("hueRotate"),backdropInvert:Qe("invert"),backdropOpacity:Qe("opacity"),backdropSaturate:Qe("saturate"),backdropSepia:Qe("sepia"),backgroundColor:Qe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Qe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Qe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Qe("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Qe("colors"),caretColor:Qe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Qe("borderColor"),divideOpacity:Qe("borderOpacity"),divideWidth:Qe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Wu(2,6),...Wu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Qe("spacing"),gradientColorStops:Qe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Wu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Wu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Qe("spacing"),placeholderColor:Qe("colors"),placeholderOpacity:Qe("opacity"),outlineColor:Qe("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Qe("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Qe("spacing"),scrollPadding:Qe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Qe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Qe("colors"),textDecorationColor:Qe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Qe("spacing"),textOpacity:Qe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Qe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Wu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function Wu(e,t){let n={};do for(var r=1;rt(e)}var jme={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${h5.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${h5.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},Hme=[X("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:ds(`[${t}]`,"",n)}}})),X("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),X("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[md(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),X("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),X("box-(border|content)","boxSizing",({1:e})=>e+"-box"),X("hidden",{display:"none"}),X("table-(auto|fixed)","tableLayout"),X(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",X("isolate","isolation"),X("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),X("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",pd),X("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),X("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),X("(visible|collapse)","visibility"),X("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),X("flex-((row|col)(-reverse)?)","flexDirection",b5),X("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),X("grid-cols-(\\d+)","gridTemplateColumns",S5),ee("col-","gridColumn"),X("col-(span)-(\\d+)","gridColumn",v5),ee("col-start-","gridColumnStart"),X("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),X("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),X("grid-rows-(\\d+)","gridTemplateRows",S5),ee("row-","gridRow"),X("row-(span)-(\\d+)","gridRow",v5),ee("row-start-","gridRowStart"),X("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),X("row-end-(auto|\\d+)","gridRowEnd"),X("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>pd(b5(e))),X("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",X("justify-","justifyContent",y5),X("(content|items|self)-",e=>({["align-"+e[1]]:y5(e)})),X("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",ms("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",ms("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),X("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:Or(e)}:{fontFamily:Or(e[0]),...e[1]}),X("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),X("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),X("italic","fontStyle"),X("not-italic",{fontStyle:"normal"}),X("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...li({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),X("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),X("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Zt("placeholder-",{property:"color",selector:"&::placeholder"}),X("text-(left|center|right|justify|start|end)","textAlign"),X("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Zt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),X("(overline|underline|line-through)","textDecorationLine"),X("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Zt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),X("decoration-","textDecorationStyle"),X("(uppercase|lowercase|capitalize)","textTransform"),X("normal-case",{textTransform:"none"}),X("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),X("align-","verticalAlign"),X("whitespace-","whiteSpace"),X("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),X("break-words",{overflowWrap:"break-word"}),X("break-all",{wordBreak:"break-all"}),X("break-keep",{wordBreak:"keep-all"}),Zt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Zt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),X("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qi(e," ")},var(--tw-gradient-stops))`),Zt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Zt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Zt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),X("bg-(fixed|local|scroll)","backgroundAttachment"),X("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),X(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),X("bg-blend-","backgroundBlendMode"),X("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Zt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),X("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",pd),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qi(n[0])}-radius`]:t,[`border-${qi(n[1])}-radius`]:t}}),X("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),X("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...li({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Zt("border-([xytrbl])-",{section:"borderColor"},ms("border","Color")),Zt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",ms("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),X("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),X("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Zt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Zt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),X("ring-inset",{"--tw-ring-inset":"inset"}),Zt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...li({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ui(t("ringOffsetColor","","#fff")),"--tw-ring-color":ui(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Zt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...li({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Or(e),"--tw-shadow-colored":Or(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),X("mix-blend-","mixBlendMode"),...x5(),...x5("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Or(e),transitionTimingFunction:e._=="none"?void 0:Or(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Or(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",Or),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Or),ee("delay(?:$|-)","transitionDelay","transitionDelay",Or),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Or(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",X("transform",bh),X("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":T5(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...bh()})),ee("-?(rotate)-","rotate",hh),ee("-?(translate-[xy])-","translate",hh),ee("-?(skew-[xy])-","skew",hh),X("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",pd),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",X("snap-(none)","scroll-snap-type"),X("snap-(x|y|both)",({1:e})=>({...li({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),X("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),X("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),X("snap-(normal|always)","scroll-snap-stop"),X("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",ms("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",ms("scroll-margin")),X("touch-(auto|none|manipulation)","touch-action"),X("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...li({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),X("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),X("outline",{outlineStyle:"solid"}),X("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Zt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],X("select-(none|text|all|auto)","userSelect"),Zt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Zt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),X("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),X("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function pd(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function b5(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Or(e){return e&&""+(e._||e)}function y5({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function ms(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...zu(e+"-"+qi(a[0])+t,r),...zu(e+"-"+qi(a[1])+t,r)}:zu(e+t,r)}}function x5(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...li(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,X(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function hh({1:e,_:t}){return{["--tw-"+e]:t,...bh()}}function bh(){return{...li({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":T5()}),transform:"var(--tw-transform)"}}function T5(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function v5({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function S5({1:e}){return`repeat(${e},minmax(0,1fr))`}function li(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var gd=globalThis||(typeof window<"u"?window:self),gI=Object.create,xh=Object.defineProperty,fI=Object.getOwnPropertyDescriptor,hI=Object.getOwnPropertyNames,bI=Object.getPrototypeOf,yI=Object.prototype.hasOwnProperty,xI=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vI=(e,t)=>{for(var n in t)xh(e,n,{get:t[n],enumerable:!0})},yh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of hI(t))!yI.call(e,a)&&a!==n&&xh(e,a,{get:()=>t[a],enumerable:!(r=fI(t,a))||r.enumerable});return e},SI=(e,t,n)=>(yh(e,t,"default"),n&&yh(n,t,"default")),w5=(e,t,n)=>(n=e!=null?gI(bI(e)):{},yh(t||!e||!e.__esModule?xh(n,"default",{value:e,enumerable:!0}):n,e)),E5=xI((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof gd=="object"&&gd.global===gd?gd:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),A5={};vI(A5,{default:()=>fd});var TI=w5(E5());SI(A5,w5(E5()));var{default:C5,...CI}=TI,fd=C5!==void 0?C5:CI;function q5(e){return typeof e>"u"||e===null}function wI(e){return typeof e=="object"&&e!==null}function EI(e){return Array.isArray(e)?e:q5(e)?[]:[e]}function AI(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Sh(e,t){return Xt.repeat(" ",t-e.length)+e}function BI(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=vh(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Xt.repeat(" ",t.indent)+Sh((e.line-u+1).toString(),c)+" | "+l.str+` +`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Qt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=j0(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Fu(this.ctx,n,r)}getTranslationMode(t){return Ta(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=L+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;ze(this.ctx,n);let r=t.filter(a=>a.text);Ca(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Bu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Pn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&$o({id:L+"quick-button",parent:n,ctx:this.ctx,Component:iv,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:ov+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Hi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return u0(t.slice(0,50).map(n=>n.text).join(" "))}};function xv(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var W0=class extends tt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!We(ve(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Xe($(r),this.ctx.targetLanguage);if(a||Ta(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(Wx(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=zx(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${rt}subtitles/yt-asr-subs`;try{let a=await t0(t),o=(await K({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Xe($(o),r)&&!Ta($(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Xe($(d.languageCode),r)&&!Ta($(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>$(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=$(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=xv(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>$(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>$(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return $(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=L+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Xe($(a[u]),this.ctx.targetLanguage)&&!Ta($(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:Cx(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await He(ve(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Bu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await He(ve(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=O0(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Ne({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==ve()&&(this.lastReportUrl=ve(),ze(this.ctx,$(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),N0(a.arrayBuffer,a.document))}catch{}}};var G0=class extends tt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;ze(this.ctx,$(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:$(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,$(i));return}this.downloadSubtitle(o,$(i),[]);let u=await this.requestHumanSubtitle(o,$(i),r);if(u)return this.handleIOSFullScreen(u,$(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,$(i));return l?(this.handleIOSFullScreen(l,$(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[$(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ns(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!te()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Ru(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(ve()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ai=class extends tt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),$(i.language)),i.isTranslated=!0;return}ze(this.ctx,$(i.language)),this.translateSubtitle([...i.cues||[]],$(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>yR(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function yR(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var $r=class extends ai{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&ze(this.ctx,$(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,$(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var is=class extends $r{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=ts(r),i=await Ne({text:a.subtitles.map(l=>l.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Xe($(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,$(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ri(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}};var V0=class extends tt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Xe($(a),this.ctx.targetLanguage))return null;ze(this.ctx,$(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,$(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:Sf(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=Fr(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${Sf(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var K0=class extends ai{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;ze(this.ctx,$(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,$(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,$(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=es(t),s=es(i),u=ns(o,s);return{text:ri(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=es(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=Fr(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),ri(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[$(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(ve()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Y0=class extends tt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=vv(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=vv(o,r.itemsPath):s=vR(o,r),!s?.length)continue;let u=await Ne({text:s.map(l=>ju(l,r.textKey)).join(` +`),pageLangs:[Ct(),"en"]});if(Xe($(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:ju(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),ze(this.ctx,$(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>ju(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=xR(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function vv(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Mo(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,ze(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return tr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Hp(t);o.append(Ze.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Ne({text:n,pageLangs:[pt(),"en"]});return ko(t,r)?void 0:(await Oi({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ye(),n=await He(ve(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await He(ve(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var Q0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=SR(r),o=await Ne({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(Xe($(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=Sv(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=await this.translateSubtitle(a,i,$(o));if(this.config.enableHookDownload)try{let u=Sv(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),$(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Fr(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(Uu,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},Uu="http://www.w3.org/ns/ttml";function SR(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Uu,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Uu,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Uu,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function Sv(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Uu,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:Tv(i),end:Tv(o),text:s})}),r}function Tv(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var J0=class extends tt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=ts(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Xe(o,this.ctx.targetLanguage))return null;if(ze(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,$(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ns(n.subtitles,es(u));return n.subtitles=l,ri(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=Fr(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),ri(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>$(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=wR(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return Ne({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(ve()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=CR(r),i=TR(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function TR(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function CR(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function wR(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Z0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=O0(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Ne({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(ze(this.ctx,$(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),N0(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var X0=class extends tt{async requestSubtitle(t){let n=await He(ve(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new is(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Tf(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}Dx(a),kf(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var $0=class extends tt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(Cv).forEach(n=>{Cv[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Xe($(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(ze(this.ctx,t),Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=Ax(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},Cv={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var ed=class extends $r{constructor(t){super(t),new os(t)}};var td=class extends $r{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Hi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Ne({text:i.map(c=>c.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Xe($(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Hi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var nd=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Ne({text:a.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Xe($(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),$(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",h=wf(g,l),f=wf(b,l),y=sn(h),v=sn(f);u==="duration"&&(v=y+v);let S=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(S||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var rd=class extends tt{hasSubtitle=!1;async mutationVideoChange(){let t=ER(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(ze(this.ctx,"ja","av"),this.hasSubtitle=!0,Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await K({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Hi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function ER(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var ad=class extends tt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(ze(this.ctx,n.language_code),Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var AR={youtube:W0,netflix:G0,webvtt:is,khanacademy:V0,udemy:K0,hulu:X0,mubi:ad,text_track:ai,text_track_dynamic:$r,general:Y0,live:os,ebutt:Q0,disneyplus:J0,"fmp4.xml":Z0,multi_attach_vtt:$0,twitter:ed,subsrt:td,xml:nd,av:rd},id;async function wv(e){try{te()&&await ot(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=AR[t.type];if(!n)return;id=new n(e)}catch(t){k.error(t)}}async function Vf(){id?.onPageStatusChange()}async function kR(e,t){if(id?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Ke())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ie("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function DR(){id?.onTranslationModeChanged()}C9({autoEnableSubtitleChanged:kR,reloadSubtitleWithTranslationModeChanged:DR});var ue=null;function Hu(){return ue||null}function sd(e){Jo(document,e),LR(e),_R(e),IR(e),BR(e),RR(ue),_n("Translated"),FR(ue),vx(ss),PR(ue),Vf(),GR()}function LR(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=on(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}ux(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}Zo(e)&&wt(document.documentElement,Y+"_rtl",e.targetLanguage)}function PR(e){let t=e.ctx;Iv(t,!0),Sx(e),Sy(window.location.href)}function MR(e){let t=e.ctx;Iv(t,!1),Tx()}async function RR(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await Dv(e.ctx,on(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ni(s,e);await ni(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ni(s,e)}function Dv(e,t){b9(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=gx(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Fo({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function IR(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Yt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await zt({...t,tempTranslationUrlMatches:[...i]})}}function FR(e){e.ctx.rule.isTranslateTitle&&(cf(e.ctx),e.titleDynamicObserver=hx(e.ctx))}function BR(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Kf(e,t){ue&&(e.filterRule=on(e,!0),e.isRichTranslate=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=on(e)),ue.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},ue.translationService=e.translationService,ue.urlChangeDelay=e.rule.urlChangeDelay,ue.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ue.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",qr(document.documentElement,ue.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function _R(e){let t=tu();ue&&(t=ue.id),ue=ue||{},ue.ctx=e,ue.id=t,ue.paragraphQueue=ue.paragraphQueue||[],Kf(e),ue.currentUrl=window.location.href,ue.paragraphEntities=ue.paragraphEntities||{},ue.autoIncreaseParagraphId=ue.autoIncreaseParagraphId||1,ue.interruptEffectDOM=!1,ue.observeContainers=ue.observeContainers||[],ue.observeParagraphs=ue.observeParagraphs||[],ue.dynamicContainerObserver=ue.dynamicContainerObserver||zR(ue),ue.ignoreResizeObserver=ue.ignoreResizeObserver||WR(ue),ue.containerVisibleObserver=ue.containerVisibleObserver||jR(ue),ue.paragraphVisibleObserver=ue.paragraphVisibleObserver||UR(ue),ue.injectCssToDocument=od,ue.walkContainer=Sa,e.specialAiAssistant=ya(e,e.translationService,!0),window.onerror=NR(ue,e),window.immersiveTranslateSwitchTranslateState=Qf.bind(ue)}function Lv(e,t){t.getRootNode()instanceof ShadowRoot?od(t.getRootNode(),e):od(t.ownerDocument,e),OR(e)}function OR(e){ue||(ue={},ue.ctx=e,ue.id=tu(),Yf(ue,e))}function Yf(e,t){let n={...e};n.injectCssToDocument=od,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=Qf.bind(n);let r=ya(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Ao(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function ss(e=!0){ue&&(_n("Original"),Vf(),MR(ue),Pu(),ue.interruptEffectDOM=!0,ue.ignoreResizeObserver?.disconnect(),ue.dynamicContainerObserver?.disconnect(),ue.containerVisibleObserver?.disconnect(),ue.paragraphVisibleObserver?.disconnect(),ue.titleDynamicObserver?.disconnect(),bx(ue.ctx),fy(),hy(),e&&Qf.call(ue,"original"),Object.values(ue.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ue=null)}function NR(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),ss(),n=setTimeout(()=>{sd(t)},e.urlChangeDelay||2e3)),!0}}function jR(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await gf(e,r.target),n.unobserve(r.target))})}function UR(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{ff(e,o)}),n.unobserve(a)}})})}var Ev;function HR(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function qR(e){if(e.urlChangeDelay<=0||(clearTimeout(Ev),e.translateState=="original"))return!1;ss(e.urlChangeDelay>20),Ev=setTimeout(()=>{let t=e.ctx;sd(t)},e.urlChangeDelay)}function zR(e){let t=e.ctx.rule,n=on(e.ctx);return new MutationObserver(r=>{if(HR(e)&&(Dv(e.ctx,n),t.mutationConfig.enableUrlChange&&qR(e))||e.interruptEffectDOM)return;let a=jc(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!tr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&tr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Gl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Av(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&vf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Av(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ht.isSkipMarkEle(i.target)&&!ht.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Ur(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Mo(n,o.parentElement);l&&(ht.clearToParentMark(o,l),kv(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&kv(e,i.target)}catch(o){k.error(o)}}})}function Av(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{xf(n),Sa({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{ji(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function kv(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ht.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ni(t,e,n),i.timer=null},a)}function xf(e){e.paragraphs=[],ht.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${L}-walked]`).forEach(t=>{t.paragraphs=void 0,ht.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function vf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function WR(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);nf(i)||(n.unobserve(r.target),ht.clearMark(a),ni(a,e))}})}async function Qf(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Br(),await ot(50),Jt({method:"translatePage"});return}this.translateState=e,qr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{qr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Lu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function od(e,t){if(e instanceof HTMLIFrameElement){Jo(e.contentDocument,t);return}Jo(e,t)}async function Pv(e){let t=Ke(),n="auto";if(te()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=Pp(e.mainFrame),n=await Ne({text:r,pageLangs:["en"]})):(r=xo(e.mainFrame).slice(0,1e3),n=await Ne({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Ne({text:xo(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=Pp(e.mainFrame),n=await Ne({text:r,pageLangs:["en"]})}else n=await A9();return n==="auto"&&(n=await cx()),p9(n),n}async function Mv(){if(!ue)return;Pu(),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ue.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){ue.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${ql}='${n}']`);i&&i.remove()}}F0.call(ue,ue.ctx)}async function Jf(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ie("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:pt()});let r=ue?.ctx||t,a=await Yt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:yx(r)},await zt(a);let o=ke().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Wr(o)}catch(i){k.error(i)}}async function Rv(){let e=await Yt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent($3,{detail:JSON.stringify(e.draft)}))}async function GR(){try{if(await Ri("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Lr();await K({url:rt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Pr("reportActive","1")}catch(e){k.error(e)}}function Iv(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(ro,{detail:{tempEnableSubtitle:t}}))}function Zf(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&jn(o,s=>{s.preventDefault();let u=r[i];Jt({method:u,data:{trigger:"shortcut"}})})}}var VR="imt-fb";function Rt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${VR}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function Fv(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var ud="DROP_DOWN_DEFAULT_VALUE";function Xf(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:ud,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==ud){s.current.value=ud,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:ud,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function us(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var KR=({date:e})=>{let{t}=oe(),[n,r]=W(!1);return J(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},YR=({minVersion:e})=>{let{t}=oe();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},QR=()=>{let{t:e}=oe();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ae+"docs/installation/"})}})},JR=({message:e,handleSyncing:t,date:n})=>{let{t:r}=oe();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function $f(e){let{isShowError:t,request:n}=e,[r,a]=W(null),{t:i}=oe(),[o,s]=W(null),[u,l]=W(null),[c,d]=W(""),[m,p]=W(!1),[g,b]=W(!1),[h,f]=W(!1),[y,v]=W(null),[S,w]=W(null),C=Ht(),T=async()=>{d("");let A=o;if(o===null)try{let D=await n({url:Is});D?(s(D),A=D,p(!0)):(d(i("unknownError")),l(null))}catch(D){l(null),d(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return J(()=>{le.DEBUG||qt().then(A=>{let D=A.buildinConfigUpdatedAt;v(A);let I=new Date(D);if(a(D),C==="0.0.0"){f(!0);return}n({url:Is}).then(F=>{let R=F,B=R.minVersion,P=C;s(R);let _=R.latestVersion;if(_&&(us(P,_)?w(!0):w(!1)),us(P,B)){let O=R.buildinConfigUpdatedAt;new Date(O)>I?(l(!0),T()):l(!1)}else b(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),J(()=>{qt().then(A=>{v(A),xa(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:h?x(QR,{}):c?t===!1?null:x(JR,{handleSyncing:T,message:c,date:r||""}):g?t===!1?null:x(YR,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(KR,{date:r}):null}):null}function ZR(){return navigator.userAgent.indexOf("Mac")!==-1}var Bv={Alt:"\u2325"};function ls(e=""){return ZR()?Object.keys(Bv).reduce((t,n)=>t.replace(n,Bv[n]),e):e}var _v=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var Ov=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Nv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),jv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),Uv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var Hv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),qv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),zv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),Wv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function cs(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function Gv(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=oe();return Wa(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(_s,`${e.type}_user_info`);return}e.onOpenUrl(Yl,`${e.type}_user_info`)},children:[x("img",{src:n?Kx:Vx}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(XR,{...e})]})}function XR(e){let{t}=oe(),n=he(()=>cs(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(_s,`${e.type}_pro_logo`)},children:x("img",{src:as})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||In)},children:[x(Rt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(In,`${e.type}_user_upgrade`)},children:[qv,x("span",{children:t("popup.upgrade")})]})}var ii=(e,t,n,r)=>{let a=d2[e]||e,i=ip[e]||e,o=op[e],s=sp[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function eh(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=op,a="zh-CN"):n==="zh-TW"?(r=sp,a="zh-TW"):(r=ip,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function Vv({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=oe();if(!t)return null;let o=L0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x($R,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:Yx,style:{maxWidth:"unset"},class:"mx-2"}),x(eI,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function $R(e){let{t}=oe(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=ii(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=ii(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function eI(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=ii(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function oi(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=oe();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var th;function dh(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function t5(e,t=","){return e.map(dh).join(t)}var n5=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function cd(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function dd(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function tI(){}var mn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function r5(e){return e.match(/[-=:;]/g)?.length||0}function sh(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(r5(e),15)<<18}var nI=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function mh({n:e,i:t,v:n=[]},r,a,i){e&&(e=dh({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&dd(u)||r.v(s))){var o;i.push(l),a|=u?67108864|sh(l):s=="dark"?1073741824:l[0]=="@"?sh(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~nI.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var ph=new Map;function Kv(e){if(e.d){let t=[],n=nh(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?nh(r,i=>nh(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):rh(i,o)}return rh(o,i)})):r,"&"),r=>rh(r,e.n?"."+n5(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function nh(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function rh(e,t){return e.replace(/&/g,t)}var Yv=new Intl.Collator("en",{numeric:!0});function rI(e,t){for(var n=0,r=e.length;n>1;0>=a5(e[a],t)?n=a+1:r=a}return r}function a5(e,t){let n=e.p&mn.o;return n==(t.p&mn.o)&&(n==mn.b||n==mn.o)?0:e.p-t.p||e.o-t.o||Yv.compare(Qv(e.n),Qv(t.n))||Yv.compare(Jv(e.n),Jv(t.n))}function Qv(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Jv(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ah(e,t){return Math.round(parseInt(e,16)*t)}function si(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ah(e.substr(1,i),o),ah(e.substr(1+i,i),o),ah(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function i5(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,b=0;for(let y in o||{}){var h,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...s5(s,u,fh(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ir(v))m.push(...i(S,{n:s,p:(h=mn[y[7]],u&~mn.o|h),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:mn.d,o:0,r:[y],d:i(v,{p:mn.d},d).map(Kv).join("")});continue}if(y[1]=="f"){m.push(...ir(v).map(S=>({p:mn.d,o:0,r:[y],d:i(S,{p:mn.d},d).map(Kv).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+cd(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),b+=1,g=Math.max(g,(f=y)[0]=="-"?0:r5(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(v).map(S=>d.s(y,o5(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(w,C)=>{let T=d.theme("screens",C);return T?(S|=67108864,dd(T,"")):w}),S|=sh(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(a5)}(e,mh(t,n,r,a),n)}function o5(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?si(s):""+ir(s).filter(u=>Object(u)!==u)})}function gh(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function uh(e,t,n=mn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,b){let h=ph.get(g.n);return h?h(g,b):b.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=mh(u,l,c,d),gh(uh(fh(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var b,h;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(b=c,h=g.p??c,b&~mn.o|h)}}):i5(p,u,l,c,d):[{c:dh(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(rI(i,s),0,s);return i}function s5(e,t,n,r,a,i,o,s){return gh((s?n.flatMap(u=>uh([u],r,a,i,o)):uh(n,r,a,i,o)).map(u=>u.p&mn.o&&(u.n||t==mn.b)?{...u,p:u.p&~mn.o|t,o:0}:u),e)}function aI(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=mh(i,o,t);return n&&s5(s,t,n,o,u,l,c,r)},ph.set(e,a),e}function ih(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(iI),i:a}))}}function iI(e,t,n){return n.indexOf(e)==t}var Zv=new Map;function fh(e){let t=Zv.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&ih(n,r)),a=s+1};for(;s1?d.slice(0,-1)+cd(JSON.stringify([d,m])):d+"("+t5(m)+")",mn.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Zv.set(e,t=r[0])}return t}function u5(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function l5(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?u5(e,t,n=>oh(n).trim()):t.filter(Boolean).reduce((n,r)=>n+oh(r),e?oh(e):"")}function oh(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=l5(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var yme=c5("@"),xme=c5("~");function c5(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return t5(fh(n+e+"("+l5(r,a)+")"))}}function lh(e,t){return Array.isArray(e)?Xv(u5(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Xv(e):[e]}var oI=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Xv(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=oI.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function d5(e,...t){var n;let r=lh(e,t),a=(r.find(i=>i.label)?.label||"css")+cd(JSON.stringify(r));return n=(i,o)=>gh(r.flatMap(s=>i5(s,i,o,mn.o)),a),ph.set(a,n),a}var vme=new Proxy(function(e,t){return $v("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return $v(t,n,r)}}});function $v(e,t,n){return{toString(){return d5({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function X(e,t,n){return[e,sI(t,n)]}function sI(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ch(n,1)}):n=>e||{[n[1]]:ch(n,2)}}function ch(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,uI(t,n,r)]}function uI(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=m5(e||a[1]),s=i.theme(o,a.$$)??ds(a.$$,o,i);if(s!=null)return a._=ch(a,0,s),r(a,i,o)}}function Zt(e,t={},n){return[e,lI(t,n)]}function lI(e={},t){return(n,r)=>{let{section:a=m5(n[0]).replace("-","")+"Color"}=e,[i,o]=cI(n.$$);if(!i)return;let s=r.theme(a,i)||ds(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&ds(o,l,r),p=t||(({_:b})=>{let h=qu(c,b);return d?{[d]:h}:h});n._={value:si(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:b=>si(s,b),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:si(b,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:h=>si(b,h),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function cI(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function qu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function ds(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=ld(o5(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function m5(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function ld(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>ld(n)+r+ld(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Sme=Symbol();var p5=new Proxy(tI,{apply(e,t,n){return th(n[0])},get(e,t){let n=th[t];return typeof n=="function"?function(){return n.apply(th,arguments)}:n}});var Tme=function e(t){return new Proxy(function(n,...r){return e5(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return e5(t,r,a,i)}}})}();function e5(e,t,n,r){return{toString(){let a=lh(n,r),i=n5(t+cd(JSON.stringify([t,a])));return(typeof e=="function"?e:p5)(d5({[`@keyframes ${i}`]:lh(n,r)})),i}}}var g5={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Qe("blur"),backdropBrightness:Qe("brightness"),backdropContrast:Qe("contrast"),backdropGrayscale:Qe("grayscale"),backdropHueRotate:Qe("hueRotate"),backdropInvert:Qe("invert"),backdropOpacity:Qe("opacity"),backdropSaturate:Qe("saturate"),backdropSepia:Qe("sepia"),backgroundColor:Qe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Qe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Qe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Qe("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Qe("colors"),caretColor:Qe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Qe("borderColor"),divideOpacity:Qe("borderOpacity"),divideWidth:Qe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...zu(2,6),...zu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Qe("spacing"),gradientColorStops:Qe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...zu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...zu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Qe("spacing"),placeholderColor:Qe("colors"),placeholderOpacity:Qe("opacity"),outlineColor:Qe("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Qe("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Qe("spacing"),scrollPadding:Qe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Qe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Qe("colors"),textDecorationColor:Qe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Qe("spacing"),textOpacity:Qe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Qe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...zu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function zu(e,t){let n={};do for(var r=1;rt(e)}var Ume={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${g5.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${g5.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},qme=[X("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:ds(`[${t}]`,"",n)}}})),X("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),X("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[dd(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),X("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),X("box-(border|content)","boxSizing",({1:e})=>e+"-box"),X("hidden",{display:"none"}),X("table-(auto|fixed)","tableLayout"),X(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",X("isolate","isolation"),X("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),X("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",md),X("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),X("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),X("(visible|collapse)","visibility"),X("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),X("flex-((row|col)(-reverse)?)","flexDirection",f5),X("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),X("grid-cols-(\\d+)","gridTemplateColumns",x5),ee("col-","gridColumn"),X("col-(span)-(\\d+)","gridColumn",y5),ee("col-start-","gridColumnStart"),X("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),X("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),X("grid-rows-(\\d+)","gridTemplateRows",x5),ee("row-","gridRow"),X("row-(span)-(\\d+)","gridRow",y5),ee("row-start-","gridRowStart"),X("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),X("row-end-(auto|\\d+)","gridRowEnd"),X("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>md(f5(e))),X("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",X("justify-","justifyContent",h5),X("(content|items|self)-",e=>({["align-"+e[1]]:h5(e)})),X("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",ms("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",ms("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),X("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:_r(e)}:{fontFamily:_r(e[0]),...e[1]}),X("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),X("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),X("italic","fontStyle"),X("not-italic",{fontStyle:"normal"}),X("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ui({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),X("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),X("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Zt("placeholder-",{property:"color",selector:"&::placeholder"}),X("text-(left|center|right|justify|start|end)","textAlign"),X("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Zt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),X("(overline|underline|line-through)","textDecorationLine"),X("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Zt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),X("decoration-","textDecorationStyle"),X("(uppercase|lowercase|capitalize)","textTransform"),X("normal-case",{textTransform:"none"}),X("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),X("align-","verticalAlign"),X("whitespace-","whiteSpace"),X("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),X("break-words",{overflowWrap:"break-word"}),X("break-all",{wordBreak:"break-all"}),X("break-keep",{wordBreak:"keep-all"}),Zt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Zt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),X("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qi(e," ")},var(--tw-gradient-stops))`),Zt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Zt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Zt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),X("bg-(fixed|local|scroll)","backgroundAttachment"),X("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),X(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),X("bg-blend-","backgroundBlendMode"),X("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Zt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),X("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",md),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qi(n[0])}-radius`]:t,[`border-${qi(n[1])}-radius`]:t}}),X("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),X("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ui({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Zt("border-([xytrbl])-",{section:"borderColor"},ms("border","Color")),Zt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",ms("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),X("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),X("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Zt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Zt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),X("ring-inset",{"--tw-ring-inset":"inset"}),Zt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ui({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":si(t("ringOffsetColor","","#fff")),"--tw-ring-color":si(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Zt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...ui({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":_r(e),"--tw-shadow-colored":_r(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),X("mix-blend-","mixBlendMode"),...b5(),...b5("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:_r(e),transitionTimingFunction:e._=="none"?void 0:_r(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:_r(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",_r),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",_r),ee("delay(?:$|-)","transitionDelay","transitionDelay",_r),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=_r(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",X("transform",bh),X("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":v5(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...bh()})),ee("-?(rotate)-","rotate",hh),ee("-?(translate-[xy])-","translate",hh),ee("-?(skew-[xy])-","skew",hh),X("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",md),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",X("snap-(none)","scroll-snap-type"),X("snap-(x|y|both)",({1:e})=>({...ui({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),X("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),X("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),X("snap-(normal|always)","scroll-snap-stop"),X("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",ms("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",ms("scroll-margin")),X("touch-(auto|none|manipulation)","touch-action"),X("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ui({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),X("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),X("outline",{outlineStyle:"solid"}),X("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Zt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],X("select-(none|text|all|auto)","userSelect"),Zt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Zt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),X("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),X("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function md(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function f5(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function _r(e){return e&&""+(e._||e)}function h5({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function ms(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...qu(e+"-"+qi(a[0])+t,r),...qu(e+"-"+qi(a[1])+t,r)}:qu(e+t,r)}}function b5(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ui(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,X(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function hh({1:e,_:t}){return{["--tw-"+e]:t,...bh()}}function bh(){return{...ui({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":v5()}),transform:"var(--tw-transform)"}}function v5(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function y5({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function x5({1:e}){return`repeat(${e},minmax(0,1fr))`}function ui(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var pd=globalThis||(typeof window<"u"?window:self),pI=Object.create,xh=Object.defineProperty,gI=Object.getOwnPropertyDescriptor,fI=Object.getOwnPropertyNames,hI=Object.getPrototypeOf,bI=Object.prototype.hasOwnProperty,yI=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xI=(e,t)=>{for(var n in t)xh(e,n,{get:t[n],enumerable:!0})},yh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of fI(t))!bI.call(e,a)&&a!==n&&xh(e,a,{get:()=>t[a],enumerable:!(r=gI(t,a))||r.enumerable});return e},vI=(e,t,n)=>(yh(e,t,"default"),n&&yh(n,t,"default")),T5=(e,t,n)=>(n=e!=null?pI(hI(e)):{},yh(t||!e||!e.__esModule?xh(n,"default",{value:e,enumerable:!0}):n,e)),C5=yI((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof pd=="object"&&pd.global===pd?pd:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&g||s)&&typeof FileReader<"u"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},h.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),w5={};xI(w5,{default:()=>gd});var SI=T5(C5());vI(w5,T5(C5()));var{default:S5,...TI}=SI,gd=S5!==void 0?S5:TI;function U5(e){return typeof e>"u"||e===null}function CI(e){return typeof e=="object"&&e!==null}function wI(e){return Array.isArray(e)?e:U5(e)?[]:[e]}function EI(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Sh(e,t){return Xt.repeat(" ",t-e.length)+e}function FI(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=vh(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Xt.repeat(" ",t.indent)+Sh((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=vh(e.buffer,r[o],a[o],e.position,d),s+=Xt.repeat(" ",t.indent)+Sh((e.line+1).toString(),c)+" | "+l.str+` `,s+=Xt.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=vh(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=Xt.repeat(" ",t.indent)+Sh((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var _I=BI,OI=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],NI=["scalar","sequence","mapping"];function jI(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function UI(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(OI.indexOf(n)===-1)throw new zn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=jI(t.styleAliases||null),NI.indexOf(this.kind)===-1)throw new zn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var wn=UI;function k5(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function HI(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),uF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function lF(e){return!(e===null||!uF.test(e)||e[e.length-1]==="_")}function cF(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var dF=/^[-+]?[0-9]+e/;function mF(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Xt.isNegativeZero(e))return"-0.0";return n=e.toString(10),dF.test(n)?n.replace("e",".e"):n}function pF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xt.isNegativeZero(e))}var gF=new wn("tag:yaml.org,2002:float",{kind:"scalar",resolve:lF,construct:cF,predicate:pF,represent:mF,defaultStyle:"lowercase"}),fF=VI.extend({implicit:[JI,eF,sF,gF]}),hF=fF,W5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),G5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bF(e){return e===null?!1:W5.exec(e)!==null||G5.exec(e)!==null}function yF(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=W5.exec(e),t===null&&(t=G5.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function xF(e){return e.toISOString()}var vF=new wn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bF,construct:yF,instanceOf:Date,represent:xF});function SF(e){return e==="<<"||e===null}var TF=new wn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:SF}),Dh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function CF(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Dh;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function wF(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Dh,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function EF(e){var t="",n=0,r,a,i=e.length,o=Dh;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function AF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var kF=new wn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:CF,construct:wF,predicate:AF,represent:EF}),DF=Object.prototype.hasOwnProperty,LF=Object.prototype.toString;function PF(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Z5=new Array(256),X5=new Array(256);for(zi=0;zi<256;zi++)Z5[zi]=P5(zi)?1:0,X5[zi]=P5(zi);var zi;function QF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||V5,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $5(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=_I(n),new zn(t,n)}function ye(e,t){throw $5(e,t)}function yd(e,t){e.onWarning&&e.onWarning.call(null,$5(e,t))}var M5={YAML:function(e,t,n){var r,a,i;e.version!==null&&ye(e,"duplication of %YAML directive"),n.length!==1&&ye(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ye(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ye(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&yd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ye(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],Q5.test(r)||ye(e,"ill-formed tag handle (first argument) of the TAG directive"),di.call(e.tagMap,r)&&ye(e,'there is a previously declared suffix for "'+r+'" tag handle'),J5.test(a)||ye(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ye(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function ci(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Xt.repeat(` -`,t-1))}function JF(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||gs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&gs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&gs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&Sd(e)||n&&gs(p))break;if(na(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,Gt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(ci(e,i,o,!1),Ph(e,e.line-u),i=o=e.position,s=!1),Wi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ci(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function ZF(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ci(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else na(n)?(ci(e,r,a,!0),Ph(e,Gt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&Sd(e)?ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ye(e,"unexpected end of the stream within a single quoted scalar")}function XF(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ci(e,n,e.position,!0),e.position++,!0;if(s===92){if(ci(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),na(s))Gt(e,!1,t);else if(s<256&&Z5[s])e.result+=X5[s],e.position++;else if((o=VF(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=GF(s))>=0?i=(i<<4)+o:ye(e,"expected hexadecimal character");e.result+=YF(i),e.position++}else ye(e,"unknown escape sequence");n=r=e.position}else na(s)?(ci(e,n,r,!0),Ph(e,Gt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Sd(e)?ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ye(e,"unexpected end of the stream within a double quoted scalar")}function $F(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ye(e,"expected the node content, but found ','"):ye(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,Gt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,hs(e,t,hd,!1,!0),b=e.tag,h=e.result,Gt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),Gt(e,!0,t),hs(e,t,hd,!1,!0),f=e.result),p?fs(e,s,g,b,h,f,r,a,i):d?s.push(fs(e,null,g,b,h,f,r,a,i)):s.push(h),Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ye(e,"unexpected end of the stream within a flow collection")}function eB(e,t){var n,r,a=Th,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Th===a?a=d===43?D5:HF:ye(e,"repeat of a chomping mode identifier");else if((c=KF(d))>=0)c===0?ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ye(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Wi(d)){do d=e.input.charCodeAt(++e.position);while(Wi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!na(d)&&d!==0)}for(;d!==0;){for(Lh(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),na(d)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),sF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function uF(e){return!(e===null||!sF.test(e)||e[e.length-1]==="_")}function lF(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var cF=/^[-+]?[0-9]+e/;function dF(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Xt.isNegativeZero(e))return"-0.0";return n=e.toString(10),cF.test(n)?n.replace("e",".e"):n}function mF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xt.isNegativeZero(e))}var pF=new Cn("tag:yaml.org,2002:float",{kind:"scalar",resolve:uF,construct:lF,predicate:mF,represent:dF,defaultStyle:"lowercase"}),gF=GI.extend({implicit:[QI,$I,oF,pF]}),fF=gF,q5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),z5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function hF(e){return e===null?!1:q5.exec(e)!==null||z5.exec(e)!==null}function bF(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=q5.exec(e),t===null&&(t=z5.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function yF(e){return e.toISOString()}var xF=new Cn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:hF,construct:bF,instanceOf:Date,represent:yF});function vF(e){return e==="<<"||e===null}var SF=new Cn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:vF}),Dh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function TF(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Dh;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function CF(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Dh,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function wF(e){var t="",n=0,r,a,i=e.length,o=Dh;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function EF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var AF=new Cn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:TF,construct:CF,predicate:EF,represent:wF}),kF=Object.prototype.hasOwnProperty,DF=Object.prototype.toString;function LF(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Q5=new Array(256),J5=new Array(256);for(zi=0;zi<256;zi++)Q5[zi]=D5(zi)?1:0,J5[zi]=D5(zi);var zi;function YF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||W5,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Z5(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=BI(n),new zn(t,n)}function ye(e,t){throw Z5(e,t)}function bd(e,t){e.onWarning&&e.onWarning.call(null,Z5(e,t))}var L5={YAML:function(e,t,n){var r,a,i;e.version!==null&&ye(e,"duplication of %YAML directive"),n.length!==1&&ye(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ye(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ye(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&bd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ye(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],K5.test(r)||ye(e,"ill-formed tag handle (first argument) of the TAG directive"),ci.call(e.tagMap,r)&&ye(e,'there is a previously declared suffix for "'+r+'" tag handle'),Y5.test(a)||ye(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ye(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function li(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Xt.repeat(` +`,t-1))}function QF(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||gs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&gs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&gs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&vd(e)||n&&gs(p))break;if(ea(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,Gt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(li(e,i,o,!1),Ph(e,e.line-u),i=o=e.position,s=!1),Wi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return li(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function JF(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(li(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ea(n)?(li(e,r,a,!0),Ph(e,Gt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&vd(e)?ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ye(e,"unexpected end of the stream within a single quoted scalar")}function ZF(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return li(e,n,e.position,!0),e.position++,!0;if(s===92){if(li(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ea(s))Gt(e,!1,t);else if(s<256&&Q5[s])e.result+=J5[s],e.position++;else if((o=GF(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=WF(s))>=0?i=(i<<4)+o:ye(e,"expected hexadecimal character");e.result+=KF(i),e.position++}else ye(e,"unknown escape sequence");n=r=e.position}else ea(s)?(li(e,n,r,!0),Ph(e,Gt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&vd(e)?ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ye(e,"unexpected end of the stream within a double quoted scalar")}function XF(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),b,h,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ye(e,"expected the node content, but found ','"):ye(e,"missed comma between flow collection entries"),h=b=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,Gt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,hs(e,t,fd,!1,!0),h=e.tag,b=e.result,Gt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),Gt(e,!0,t),hs(e,t,fd,!1,!0),f=e.result),p?fs(e,s,g,h,b,f,r,a,i):d?s.push(fs(e,null,g,h,b,f,r,a,i)):s.push(b),Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ye(e,"unexpected end of the stream within a flow collection")}function $F(e,t){var n,r,a=Th,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Th===a?a=d===43?A5:UF:ye(e,"repeat of a chomping mode identifier");else if((c=VF(d))>=0)c===0?ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ye(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Wi(d)){do d=e.input.charCodeAt(++e.position);while(Wi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ea(d)&&d!==0)}for(;d!==0;){for(Lh(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ea(d)){u++;continue}if(e.lineIndentt)&&u!==0)ye(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),hs(e,t,bd,!0,a)&&(b?g=e.result:h=e.result),b||(fs(e,d,m,p,g,h,o,s,u),p=g=h=null),Gt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ye(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function iB(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Gt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ye(e,"directive name must not be less than one character in length");o!==0;){for(;Wi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!na(o));break}if(na(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Lh(e),di.call(M5,r)?M5[r](e,r,a):yd(e,'unknown document directive "'+r+'"')}if(Gt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Gt(e,!0,-1)):i&&ye(e,"directives end mark is expected"),hs(e,e.lineIndent-1,bd,!1,!0),Gt(e,!0,-1),e.checkLineBreaks&&zF.test(e.input.slice(t,e.position))&&yd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Sd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Gt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=eS(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)ye(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(h&&(o=e.line,s=e.lineStart,u=e.position),hs(e,t,hd,!0,a)&&(h?g=e.result:b=e.result),h||(fs(e,d,m,p,g,b,o,s,u),p=g=b=null),Gt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ye(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function aB(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Gt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ye(e,"directive name must not be less than one character in length");o!==0;){for(;Wi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ea(o));break}if(ea(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Lh(e),ci.call(L5,r)?L5[r](e,r,a):bd(e,'unknown document directive "'+r+'"')}if(Gt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Gt(e,!0,-1)):i&&ye(e,"directives end mark is expected"),hs(e,e.lineIndent-1,hd,!1,!0),Gt(e,!0,-1),e.checkLineBreaks&&qF.test(e.input.slice(t,e.position))&&bd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Gt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=X5(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function lS(e){var t=/^\n* /;return t.test(e)}var cS=1,Ah=2,dS=3,mS=4,ps=5;function BB(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=IB(Gu(e,0))&&FB(Gu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Gu(e,u),!Qu(l))return ps;h=h&&_5(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Gu(e,u),l===Ku)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Qu(l))return ps;h=h&&_5(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?cS:i===Yu?ps:Ah:n>9&&lS(e)?ps:o?i===Yu?ps:Ah:m?mS:dS}function _B(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Yu?'""':"''";if(!e.noCompatMode&&(AB.indexOf(t)!==-1||kB.test(t)))return e.quotingType===Yu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return RB(e,l)}switch(BB(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case cS:return t;case Ah:return"'"+t.replace(/'/g,"''")+"'";case dS:return"|"+O5(t,e.indent)+N5(F5(t,i));case mS:return">"+O5(t,e.indent)+N5(F5(OB(t,o),i));case ps:return'"'+NB(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function O5(e,t){var n=lS(e)?String(t):"",r=e[e.length-1]===` +`+Xt.repeat(" ",e.indent*t)}function MB(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function sS(e){var t=/^\n* /;return t.test(e)}var uS=1,Ah=2,lS=3,cS=4,ps=5;function FB(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,b=RB(Wu(e,0))&&IB(Wu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Wu(e,u),!Yu(l))return ps;b=b&&F5(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Wu(e,u),l===Vu)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Yu(l))return ps;b=b&&F5(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?b&&!o&&!a(e)?uS:i===Ku?ps:Ah:n>9&&sS(e)?ps:o?i===Ku?ps:Ah:m?cS:lS}function BB(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Ku?'""':"''";if(!e.noCompatMode&&(EB.indexOf(t)!==-1||AB.test(t)))return e.quotingType===Ku?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return MB(e,l)}switch(FB(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case uS:return t;case Ah:return"'"+t.replace(/'/g,"''")+"'";case lS:return"|"+B5(t,e.indent)+_5(R5(t,i));case cS:return">"+B5(t,e.indent)+_5(R5(_B(t,o),i));case ps:return'"'+OB(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function B5(e,t){var n=sS(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function N5(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function OB(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,j5(e.slice(0,l),t)}(),a=e[0]===` +`}function _5(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function _B(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,O5(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+j5(u,t),a=i}return r}function j5(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+O5(u,t),a=i}return r}function O5(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function NB(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Gu(e,a),r=En[n],!r&&Qu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||LB(n);return t}function jB(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Ea(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function U5(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Ea(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Eh(e,t)),e.dump&&Ku===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function UB(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ea(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function HB(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Ku===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Eh(e,t)),Ea(e,t+1,c,!0,d)&&(e.dump&&Ku===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function H5(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ea(e,t,n,r,a,i,o){e.tag=null,e.dump=n,H5(e,n,!1)||H5(e,n,!0);var s=nS.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(HB(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(UB(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?U5(e,t-1,e.dump,a):U5(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(jB(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&_B(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function qB(e,t){var n=[],r=[],a,i;for(kh(e,n,r),a=0,i=r.length;ac.selected),[r,a]=W(!1),i=Ce(null),[o,s]=W(pS),[u,l]=W(0);return su(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,S=g+d.height;if(v>m.clientHeight-S){let w=Math.min(y,v);l(m.clientHeight-g-w-h)}else l(0);s(Math.max(pS,y))}},[i.current,r,t]),J(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(fS,{item:n,isDefault:!0}),Vv]}),x(KB,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function KB(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return J(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(fS,{item:o,onClick:e.onClick},o.value))})}function fS(e){let t=e.item,{t:n}=oe();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:as}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var YB={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAACuFBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubf39/q6urm5ubn5+fl5eXn5+fm5ubn5+fk5OTm5ubl5eXk5OTn5+f////m5ub9/f35+fn29vb8/Pz7+/vu7u4bJpnw8PDy8vL19fVX0/z09PRDsvNY1v0dQKkeR64eQqtZ2P0fTLEeRK3p6ekibMcfTrNUz/tRy/lNw/dMwfcfU7YgVbdV0ftTzfpQyPk0l+wzlesdNqRPx/gxk+sljdwjfNEgWLk8pfAwkeotjOkkg9YkgNQkftMhZsMgWrvs7Owsiukrh+glj94khdcjec8gXbwphecmk+Elitsjd84dOqZArfElkd8jdMwhaMQfULQeSbAdPaccLp5OxfhHuPVFtfRCsPI/qvE7o/A1mu0icsstYL1SzPomluIicMkhZMEsXbz4+PhGtvQvj+ohYb8fUbU3nO1Kv/ZIuvU9p/Alh9kgYL4fSrBJvfZBrvI4n+7r6+s+qPHH1+/o6OhW0fs5oe6+w98liNkpWrwcNKHj7Pjt7e4vjukcMaCw3vCnzezq6up0n9qIkckjb8c6oe+q0u2lyes+pOmQseA2jd48idUwdc0bKpvx9vvI3PKu2e+s1e43nu47lN0lh9Y9gtAlfs88fMwkdcg7dcc6b8MibcM5aL4mU7k5XrcfTa4eRqnW4fGtyusol+M/m+AxhNqkr9cugdIjgdEtcM4uasUhXb0fVLPx9/zd7PS04fLi5e+vzew5meiYvuc9nuerweU0nuCCpdo+kNkwkNgsi9dzmNRZi9ElacgqaMgsZMI/Y7omSrAbJJds2/ul5Pe5zeuYweusxek/quk/rug2jOjP0edbredarec9qeYzjOOdteDAw992qd+DrN5ooNwwl9uvuNkqfNlak9dZk9cxfdVMi9OVo9Eqds55i8h6gMFVcL5uc7vJJRypAAAAFHRSTlMAIN/vkHC/EDDPQJ+gr2BgUIAwf8DI8DYAAAgaSURBVGjezZqD+9wwGMeHm70lTdrLrrt5N9u2bdu2bdu2bdu2vf0be5N0TNrt7qZPGz777fu875uk16QxfpV4yeP4kiSIFRsDsWPFjeuLkzBejN9JzDiJYmENsZIki/97FBL6pECF1EFKTAMBhkloMHUFKZQoYbQK8VIlwICfmkgDof4Q10kWMwqJ+D4egtQEeUCETqJIZWLG5U5SFFSoP1KZeD5uhIl+CTMymTixQcJACh4yEJuwPVVBWBGeTNyYYZkRoihsaAjHjhNGNLw85W2M79dcBTMjiCIkCJGJ+QsasXDIRBFjhn5BJX5sPNBAUWAOxLHj/1QjNYoSP6j8YQ0gtadKTEUjYpWY7jGXGtHjd49+LDwQ/SYG4gT656ZPGbuRY4T0szIOxib6bZgYx9EGPYh+I0Fd8ONiP/qt+HHcHzWSqgGJPixxlNFLf/pXPBmiJi/jSydvKlAc+/sRllh1lvEtsmVZpmXy3OQNcTmY8l99TwXs+84QZWTxP7QIIZYFSVxAJ9qJ0k4il0CFiBbpZHFBZYTF9DTEsAjl2DxxgsFgILWfM0ZkcMlSVlIHbMtUl5e4HoaAM/bdbfctmze325wmkweXr1DrR38ZGMfXGyJFyJ0aP1C3cs50nuyjhqGY4vOIiNVpS12gBqTPVC56LI0n+wPmjyLm1wGWVBMRuqXyDxQteipf3qFwSYYO/VqX3fuDFkLKAEvhiKhzxCB0S9EfqbnkZnaHfJCU2viAEhREcALn3QCHlCli0cU1f2DEiCVP8+Vr2zYfwIu2TiF6oAQRok5JjBO6TkRiL+7du/cInkTGiyVLdjTJ8S1tZfYZEEGAPvSxMFFELHtxFYXSO+4Vzl84v7whiQySw/jUGksIjsU1UoK3NO46UVqhzI6ThZs0KdwEEsBzxmRddGotQWLWy7GlBv5EGYWyy5b1zPmFJpAYg+wz2pggv1iLk2jWX7BkdlmFYsuqHsv1HYx901iQ2tKI2DiRCImlEbFnF1OpWmtZD0kbCWNOhfctCFhIxeRBiYeHII277NlVv3IQocOiUmvFjX4C9gO8D0QMbVDiwSypoGpwd9X6ymiE9m7nlXorTvYUdPzCRVYbct7nIlIBJ4cfKal1ltCl9b7wCDTQE1Ftv6Jp56bylkXnOawjlLy1UBt4lBoi78NBpIvJ0tZfmI82bULzRXXK6hnNBJ2bzZjB82YX2exmnTvzmotIEKZjXEz1Iu0/sxSh1y8ResHrU1ZvT+swku2CfAZr/Lljod5dFCcBEaIN/PKsnwErpmSdjw5PyZp1StbVq+ukbd48bdrmaWexQkJqJOTNed80aYlujYyFTY2ISb+ILEdoUtasj9G8ObxVv9zi/s2b92/ev3//xmxW8yOMHWkO8PZCmCcuYzg2NnTuosvrO0xCoyGfMw/N5K1yHVbUcdjFCs0AQ+r0rwM3AJYgDQaOHQNjpBVZWc5hNLrOi5lotGh26FOiBWdQixaFWHpW6BBUJNP0MUEYu4t0kJxBaOYk4DhCZ3i7a7VTvXr1GgRXr62MsTmywW+wJDwRYq/sKrmKvjBYdFSbUsJhFmONZ0HpAJagcEQQsVf1EaxEaONgCUK7eE+14gNaCuY0ZoVY41ctPzMhtelmCQReu6ys2l2NX0fR6GoOo9FMXpQvvn0YcGgkY2uHrWXs/LCpU6dCGjYBHlr6wLsMYcteVV4wGp0u7zATzTvPy+IdBiwasLUQYyMHDBgAUoV2LoLKogETAq5DOAG2tIFfU5xzGqFVxR3azEPHeZlnz6zu3bOwxue6c3YWYo0WiZqLCMFx9c8sLpKHsxEdhdzhARosyj1vW7U6t7ZgK8n9tTtlZUJAGxMKIvoFEkRyu5CnW4M9BXRMgMmoXyD5Uq8XadCgQbdu3UQSdONJtLKt31pQw/SA5bbUJ8cVkIpFL2RzJfP6s0U0TNdPxgo4oevjd11md9avH1tSBUTcHr9yDKvuWtcQ6Nuwr7gBWZOVDBuej+3CLwByWYydLlZh/a+7xNjWimTwYEOeUirTtYG3cRKxE+HXPU/WZXEn44YN1SsqHAya2tf5ZOIVaIhGhHzI6EH6RmcrKWykunkSwvF1P7ilvw5cSO9Bo27Vf+DWtQBxCwng088UQqkdFK+9gXeNvuHNAZva8CJcYeLEiUMmDgmFJg6cGBpYIXWAWtqfwonkS5B2EBumZRFBJ/tZ7c80qr2NdhK98qU7EAgGeGlTcbaiEoJZIkgA/lIxPkPo8NqF4Kpdu1Ah0LAMiWlaBBLczk6FToOCtyQpYNK7AyrDC31mG3X+M5EbTp239IyBsSWJF9tzOw1ERjlMpkpwVdSNDzX0qiWdho+ThKshw+6QEg8x3EVMMryxgGtEaggQVzFFFZkLGmZkhqgbH6pIp+FzAakRqSEyKhW8RhdjTGpEbogcYNRVxHp4ib0PMx6ArWxzx8Ehw03Fun3pIyFm+CcpyTy2bFVTxhDLiHrL1nvz2RBEvfksHTbE9JiRUW+jS3xKWKI62vLpj/4S/M6jjVjuhzT+33dI8zeOm/7pwZlU8f/pI0B5mGmiKDD4Yeb/cCwrVIZEc8CcQNXQz0rsj8gYgx+Vxwvj0N/+o4f+8vOF8I0xK4T3+QKQNFZ4MkZqrDfD25jE+NdlTJCQ0YhMhqKfQipgxVNhyoT8xFOBGxHbJ+ZfpDIQG65jW1ovUT8GEqQAR0VHwsSaT6+sr59e+RLG+C3ET5pE/xFZojhKJKIiXsI4vrhxP38OlyCJL07yX3bSJ5LpZW+NQ/JwAAAAAElFTkSuQmCC",lingyiwanwu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABXFBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/m5ubn5+fl5eXn5+fm5ubn5+fk5OTm5ubl5eXn5+f///8ANSXm5ub8/Pzv7+/09fT6+vrx8fHn5+dAaFwSQTLp6emPp58AMyHv8vG/zclggXf29/fs7Ozp7ezf5uQlUkMvW04gTkD19vZ0kYgUPi3e5eOvwLtYe3EgT0GnuLOAmpJQdGkDNyafs64LPCzr6+ucsKltioDP2dVUeG1HbmIOQDEbQS4IOinc4+G5x8Ojt7Gfs62Wq6Rnhn02YFMgT0DT3Nmpu7WJoJh+lo1wjYQtV0kWRjgA/wC1xMBdfnRNcWY7ZFj3+Pjw8PDr7+7W3tvK1dLH08/Cz8yYrqeSp6GFnZR4lYxwjoVvjYRpgndUcmQbSjwAPSMAWh63w75cdmlDaV00WkwARyIA7gSuurIZQzEAMR4AdxoAiRcAqRAAyQpeVOdNAAAAE3RSTlMAIN/vkHC/MBDPQJ+gr2BgUIB/BTjjCAAABhhJREFUaN7lmldz2kAQgIWQRHGwk+ydkOiiGAjEVCcBbMfdie0kTu+99/b/Z3IIN+Q9SQgmeciXl8xg+5vdvVut7hDcEjwtS5GQ6KcMv6gokhwOCpPEJ0+JFEGMzAQmYwhLpiBeiGl5XVWBoap6XosV4qZoKjyuIXg21BdEKyog6JVoqu+Z8Y2hCEh+ZojpYINueqa8anwK++2CDo7ko141QakfhAquUL1pZJYoXMHXiDMjZ6qAKJw0im+kMFJ5GJlKivrlEapxDwnDXTCSu1SFaFwDj2hxKvpcOESaUsEzasqFJeCnl5hjDMsl6g84Ou7BmESZxcERg7GJ2Vp8iMOjxWdT83swEaL86ov0EkyISzSEPzclbO16X8kS2kto3N5h1NK5coMwGol2K2vYW+JURouu2RlaCWIhkZ4DPhpWfIVGgUs2QVASWbviK1bHNCuIvQLnXM2mLPKJ1VsBnGKC2JLjJS1P/cMr7BQ3WekkceDcOuAUhleYj1IVr/c14oIXnIRR6nMRiFEmrijPcdqL4hxI8QoZ8PHaRYeUzXE2SwAJBHeUVOhZLG92doctBh6K5BRI+fAvaABf58kxzmdBfTWcMTSUowU2jQdyrOYfdICdY7EsvwfQrruofoGeOey+2PyzTo6xCwCvDmP53gGAhQwZJo1NyjQ0cIRpilOQIzJPAdTX+392fgNA/2B1kCRW/DgN25Q9R4ZhCap8Ggh3gRUkg3Qym9KLFJnca8TCxasAc31LpgsAz+YJQhbLl2gOD2i2rhAr35ilkyGZ1yrABr5tEmi+fLy1lSUnuU7vdgl5rQE0B/3s8893zqFEzV4cwfov2nkzyxmyZQBklweOL3t77xxD0egUpyRFgmNWpjdwkHd7e3s/LJ8byH5kRQnSONLfeZLkLOglMuDtry+/31o+b2FFCbJdUsCyxZdo5wk50My7KH2BnhZkZGg0iIOEj4HsFFmQkCEl60Zya/s28gM1pPKSoCCNq+VCcv4+PEB2fRp51EcEBVlcbReSyxWYQyQ5tEeKyLMk4V1SRtewH5Fc8S45hz24BErhBMS7hMAJKP1/JalDiQYrbiUjFj7T0ZuDXrK8CmtuC48u4TLhW9i/AfPn0OcWuoRDVEee755pI5tRESJIW0l7l7SQtqKgDbLmXZJFGyTe6j2Dt/rT/IfWxoV92kPrJ3fAFhsuOuTGxpLDQytsPn7xXl9qrq2tzT5aW2uuH5+AbtTrj1frfbbIw20g5dn24uLi/mCcxh+/5hpG87VAb1UXervVau6+ZcyqdZJ9CFm5Ce3NqyvZh3d3iEmRM92dohqer8VFJnmyUK0uWFdbr9dsNh/C/JKxA/X25mxnw2jxR6IIk8j84W7p4+rqo42tZULupA9os4TdXei/KuiklF2ERunO1dqm8Zw/3M2Yr0BxQEOp1h7fvLW+ufv45nY7WTqAJem22j/8eK6xXd+F3u300+L1fBXtKYwUDRwN3FgobzqdZvP+U2KhuWpuu1mSvKnC0psH3W2ids1acQduth1jwFnFL1dLTx7csDjuqHcI48kKId06LD3q9krLZifKoYcfU6YkjOaraA7V9ZWVpLXPzlZZtZ7t6M/6iwO2bteq1W0osw+KaLbCpmS/R+IN7OKmdUpsbBJGt1o354YLbB0sVZ9vsf+vo0cfojDgDC3gL6Yj8RJ/MZ3ZlwT93Fds95SdDj7w0oPRcO9gBeGX3STAORksNrw58BMcBQ8Fim4PcAzgBIIcRXms/ksDHAMxq1IAnHXHlCXTAPaBHC2wPOAUHcaKRBFwtBPH3LLNQWetYaPI2hx0zvz9I1vnw+diOnHC0DIcDp+9HKNnW+3E4Bi9nEvXnI/R/9WFgBAMTfJqQ+Rf0kQnd0nzD6+bJn9xxrdEJ3EF+O8vMyd9Lcu3jHfBHEIc6K6kUe9X5cERLv09BJPHLv35+JTRg1ELyNcX7JkWR9OoMYqE4RjMKYprcEUcqYZ7Td5ZoRconin3mlRUtzX0g/BLAcE7vmnR9GioSK1EmYGGzgSFMQmfsv/qlRQWJkJgOoJ/iWxK9gmTJBiWJUU5+DpcKCLJp10n6Q9+yapgtI9s1wAAAABJRU5ErkJggg==",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,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",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABC1BMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubl5eXn5+f///8AAADm5ubv7+/7+/thYWEQEBDf39/x8fHs7Oz9/f3p6ekgICD09PRAQED29vZJSUmAgIApKSn4+Pifn5+srKy/v78jIyNRUVFCQkIICAiWlpaDg4NGRkYcHBwMDAy8vLwEBATMzMyOjo51dXVxcXFlZWU0NDTo6OiIiIh5eXlqampWVlY+Pj7Pz8+jo6Nubm48PDwUFBSZmZmLi4s4ODgrKyvj4+PX19fIyMjCwsKxsbGnp6ehoaGQkJAvLy/a2trU1NS3t7d9fX1cXFxOTk5MTEzR0dEmKtMGAAAAEXRSTlMAIN/vkHC/nzAQz2BAr1CAf28vdC8AAAaASURBVGjezVp5X9pAEOVIwm272QRCEhCRQ1REsXhbtZfWo/Zuv/8n6exuwiJhQjD8/PX90bq18DLz3sxOsklERW5FVUr5VJoC0ilNU9RiLrFMJNVMis5AqlTILoehqAgCu1pvmKZDAI7ZatSrtiDKFOMy5F7nKcBomGQGzIbhMp5CMgZFVmESVFskBC3Ok3kuTVJjSZIMKBrGc2lyCgvCJJFgPo9GTQMFVzkyDWizcKZsNAqcRksuFIbbIAuj4dK0uoAahszUgsEo0VIFlVEnz0QdlElG4EhR1yTPhulGYMmmqe2QGDBtms7O5TBITBiSBeOoktiohrIkJUdclmSI5gZZCgxc/RS1yZJg0/zsfVOR3o0Nx51dlSqlkiM2TErVmaLXyRJRnyW+hogeQ3xtmqOACBJLFjXg3sbcS3v8U9N1vfLu4HO0zk/TTx2WmZss93RLH+PTfjQfK08Cmeush/f6E4ycSA5LLhJIU2dYv9ruXP7cEcEYUdqLhgSCcrzteivrjC03BvDHUe+hGqI9pdnIgezpgDdEoqNL7J5ZIaEoUQNp1J5yGAdb+iRqHVQVabDCnEA+wBedymW/ojN8Pdxun/SAH9DEDfbKI5lXIxtwseOW0/2qM2ze+ZnbkLkMokXzgqNIXYKjezWY+JLvm8Ja3WlXYIVDaXGu7BerOsc3IcaIi/H+ixPwXs0Jlz5F0cn9oy6wwVcnXIxhM2DaA1yWFk3x4QHNlnOgA7bg6lc5B+frWb6vT8ctzAD2dTRfyVBv/dQBZWPNI1mbLMi/q+x3PmEfFndIW+W9uIR56wsL456QMQmI4TvzwCvEpvisBT+fYJtXhktizv4tK4EfZIIE/uIwWKVUeqIQ24ShBmFh9Qii5OgxmYltcXVBknvGfmgQS9CsX8C/vdP1HVSUHFSJjZcgCZLcvtVhfSEKEeiENKvwb2jRryRUZGjch09vB0jsss5wcOOHK2hO4Yp+o01STSjIkPI4LkFJciTEGEKM27LtexihY4uS0BBzjcA7ZIpE98QoMylufZqeILlHt/pSQkPq/Rx2pKckO1KM/XX4+RerEilNB233edTBv+Bip0kGe8RHu8KkoROtoWLhHk5TB0vX1jTJJpGAWLg0sjlsYntwOkEpvlPdhpKslhmNFxwzdhcrFJTkm+isInGVzgySMvn+lVWJ7TeWtQVJRBFXDP75I/iCcytIwqSBFt3n6x777wuTtOGrr7wfa+znoxkkpOI3rQd0e6QUFZ4413Ircj4OYBFK4rIOgQgvLIw2Fr0/WdmVS7kPDKdICLskzMJ5ToLPjRsX3urzJ1jtiGK4A5mikrSoJvYsvNl7+5+U5tAiLogcIDGwwahBNbRBAn7rAlv9qj9YwGw/ONuFxH2Y1mQPKxRokLzV4yY+OpT7H4PF17sjIyA8VObQxlr9CrVDJsczYonme/1djHpMjDUr6C6rgvUVmxb59ouTHHIpfGncc29gCZKwFnOJbr+Yh0U/eif62IAnqQdiDNrOrDo5YT7EB4lEBlW+PO4UN1eeBZpiTZz+ZJ2ISdNCNsYSkKjocHcJn9zzFT8XDUxgrzZp4X0uWxMb7gpAkkRFMSoiXwL3p12/LMVozx03hGhDb1Fcmg0fuJuzBkNjpDMMHngy/Hu6R4IP3AwKWinG+8DeXW3yC6/0RY5/CI7fFv7wIyNugnATt3XARyLxw7OzX1t8bhldEBQuVAlHHr9BOeV3h776XXFL9PaWeLCGfDzF0YBsCbwSRY+z6LXzN+3t8kCIMVFzPZFOHDZ4SyCXDrnFflPRx5BiSGNcR3zwgUsP4POixP5EmV2x8pSSo7ILZOmxQ3BY7T/XrG3U+G3PjV+Q18jciD3B0WQoYWTcWsM/zU7n8QzcLbcpPBDsURSOG545iVqXzA9EQon4SPhyY8ID0C2jBSIN1iCRcHf4aRdyVjv/MIeC1AOPuVXqItrHOEkpvNQj25d/+AwJO17yY3TkQMBZniDIMV0uv8yjjdSLHdK8/HHT8g/OXvAIEGexYznZsYHjfziW5SzHcQ6Y8whHoCqp8axgHHZUnlvg0L8e89B/PpLa4sGYNvL6Ao5CajEap0rxMPBgMjQ6jQkUUo3FaSLsyi2bIpmKTOMarVAGFkRaycZ56aqQ4jx17IUlCsi/yiViopiRr161/FevTPnqlVJMLAXZQmn2S2QZNZlYJnJFVdE0/3W4fElRVyIn6R/bSlMcAJnwXgAAAABJRU5ErkJggg==",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA6lBMVEUAAADn5+fm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fl5eXm5ubn5+fm5ubm5ubn5+fk5OTl5eXm5ubl5eXo6Ojn5+f///8Aidbm5ubw8PD7+/v7/f/19fXs7Ozp6en9/f3n5+c3o9/5+fkMj9j39/cDi9cHjNf2+/4YlNonm91htubj8vu23vR3wekgmNsTktn5/P7v9/3f8frW7PnG5fa84PTo6OhZsuXy+f3S6/ih1PCWzu5FqeIunt7n9PvM5/eu2vKo1/GRzO6JyexwvehpuedPruNMrOLq9fxApuGY0O9/xOs6pODa7vkvVpHpAAAAFnRSTlMAIN/vcL8wEJBAn4+gr89gYM9QgG9/jIFk+AAABRFJREFUaN7VmtlW2zAQhr3EiZOQsLSVxmv2nQQogQBl3ynt+79OZRUqx7EsxXY57XeT+Mb/mflnRj6SFFlKO4VqbVvTgaBrhlEtlEtKnqiFigYxaLWtYj4K5SoVaHqW223bDURo2O2ua3lNKlQpZ1UofakHApZroxjaruUHOltqBoliVQ8U2iiBNtWppJVRDQDw2khI10srU6oGQdhICttKJfNZB7Coy/Iy2tbamfJYFNIyhrpWGH4XrY3rg16QdoOfKXEwVblUbUPTRSlxm6CpEhoa+DZKje1LqBR18BooA7YHelGoYaGMWExFUiN/FZVpZFVR+Z4zjYwqfPc18FBOeLAdv25WWe1mpuHHd+VnaNooN+wmFGJNd1GOuHHmG8z0vMw3ohqbzJD8bClEq1c+WYPvU6nB0wV9ucI25JN18ND5KlvH1aVAAGxZjfPemPxMZCoMQE0TiHN1gTtXCM1fHDnv0wRyvYfxgrz/ofddxvsmFNcPZNrBuDNH6GSGhxOpUMx1A3keY8LTPkK7PYzHMq6wAtuUG4w/X3DAEXFmQX77c6kC+/Rn+nYlLN+dUY0WcWQyxISXEySkDXWFUgYfibnrUI3eNfl/iwP635CYJpSlbd+f9jHlYkCeWpgyu5S3XoM2EvD1Cf+mf0aeTvEb9zL50ujHgzhbpyP8RuuAPN6/P3VOZfKl0toSZWt3D7/Ruw0GJJWkPDrifNFZXBPN30NaS8yRM2IPy54IFyrUEjvZ8zH+QzBLnEfMGAm9twNTSnCMEjnq4HeGgyCwGQ4xdcSmlJSyoN1DDuA7RPiGw3SuxE2/oxQEvofeOTtEhBe8xMKRcN5M9v3nMJQa2jJ4mf610HlTMRIHlxNyfY+uuq84QutAtNTXiEhb3CKUB1prFzjKqyOakckVfNIKWXxJVVmTsL4X1rAODcTlFjPGKODyHK/wmLwGg64AIC6XofLtHCLKZIaj9I5QEgBJIs5DOBDnvTmHOMrFQXqR+V5s0910VkK5Sy0yCKf/KdyfPRxheJgswjf+jJv2exxlnGg8v4RPwrlvLZv1tJKwq8QSrnNEGveY0T+KZPLHSt/v85vRUGqcsXIa7rofTnTRn0VD+cYfKwZvQO4vwm+45lUeYzjhD0jeqL9ZysWAO9UY44RRvwMeZ6li3PAXGkb/lLdoleOXX+cOhxgNYufBNNIuTw53+Y2t4cOlXJxxanwRCeWG/3W3AW6i63jEJlNyIQ+fY32vEZEY53eXEsEfTNGJfB/r+xYRUVdNWbRCnD+LP5fYcrCCD8X4D25nCc43+PX08WIY8f7cibWEYK634XEymd+OWyyEZO8tqFCRMsmXFM7X3duH81EH8xlFc+uTLqHUoS14+8FkfjZ9HA37WMRrdHBpym8+gYf+El5QW5SSDjbKH7bxwazPHWY7pQjHbA3OPxDxtl32QMQbH9kDYZiCAssWCCuwLsoZd2WbuwB+zt7bPmx9xJbtB28+s4Qd/7VtdIZJbMnREDP+6K+e59GG9qGHNB9/3MQOzv6H4zmRBlXxMlVywyMa/8KxLFU5znLAvE01hJgAlp0qVRaAWVLkKOjgpwimSw/9pVGN9YOxPXZ9QZJNjclIZoqFIY26AfIyttXkuyGW8bpISNsDlql0Mr7omg8JQjeLSnrUwBvwOReWbDdQgO1PJSUj5Y2Yq1c2u3pllpVcKG7W4i+RVQqqkielcsE0jPfrcPWaWdiRTtIvY9nMlpGXsBcAAAAASUVORK5CYII=",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function Td(e){let t=YB[e];return t}function hS(e){let{t}=oe(),{translationServiceItems:n,translationServiceOptions:r}=XB(e),a=he(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(bS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(QB,{...e,currentTranslationService:a})]}):null}function bS(e){let{t}=oe(),n=he(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=Fr(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(gS,{className:"translate-service",items:n}):x(si,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function QB({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=oe(),u=ZB(e,o),l=JB(e,o),c=Ae((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=he(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Et,{children:d.map(({label:m,items:p},g)=>x(bS,{label:m,items:p,ctx:e},"field-"+g))})}function JB(e,t){return he(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function ZB(e,t){let{lang:n}=oe();return he(()=>{let a=Db(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[kr,Rp,e,n,t])}function XB({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=oe(),d=he(()=>t?kb(t,"translationService",c):[],[t,c]),m=Ae(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=he(()=>{let g=Ga(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=Pb(f,e,g,l,!0),v=Td(f.id);f.id.startsWith("custom-ai")&&(v=Td("custom-ai")),f.id.startsWith("mock")&&(v="");let S=Ci.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Td("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function yS(e){let t;try{t=new URL(e)}catch{return!1}let n=R9(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!($B(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function $B(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function xS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function vS(e){let{t}=oe(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=e_(e),[o,s]=W(()=>a?"excludeMatches":"matches"),u=he(()=>r||a||!1,[r,a]),l=Ae(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(si,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function e_({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=he(()=>new URL(e||""),[e]),t.config&&e&&yS(e)){c=xS(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>ze(e,v)),m=!!y.find(v=>ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=Ae(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(w=>w.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=Ae((f,y)=>{if(f==="default"){s(w=>{let C={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:Ih(e,C.matches),excludeMatches:Ih(e,C.excludeMatches)}}}),h();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(w=>{let C={...w.translationUrlPattern};return C[S]=Ih(e,C[S]),C[v]=zc(y,C[v]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function Ih(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!ze(e,n)):t):[]}var Fh={};function mi(e){let t=Cd(e)||{};Fh[e.sourceUrl+"_"+e.to]={...t,...e}}function Cd(e){return Fh[e.sourceUrl+"_"+e.to]}async function SS(e,t){let n=location.href,r=Object.values(Fh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ve().any,platform:ha(),images:[],version:Ht()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=I0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Va(!1,o)}return a}async function TS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await za(l,"web"),l.json()))}var Ju={width:94,height:80};function CS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?CS(e.parentElement,t+1):e}function bs(e,t,n,r){let a=De.bind(null,e.config.interfaceLanguage),i=CS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Ju.width+"px",c.style.height=Ju.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Ju.width)/2+"px",c.style.top=l.top-u.top+(l.height-Ju.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Ju.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function OB(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Wu(e,a),r=wn[n],!r&&Yu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||DB(n);return t}function NB(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&wa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function N5(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Eh(e,t)),e.dump&&Vu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function jB(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function UB(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Vu===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Eh(e,t)),wa(e,t+1,c,!0,d)&&(e.dump&&Vu===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function j5(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function wa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,j5(e,n,!1)||j5(e,n,!0);var s=eS.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(UB(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(jB(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?N5(e,t-1,e.dump,a):N5(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(NB(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&BB(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function HB(e,t){var n=[],r=[],a,i;for(kh(e,n,r),a=0,i=r.length;ac.selected),[r,a]=W(!1),i=Ce(null),[o,s]=W(dS),[u,l]=W(0);return ou(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,b=20,h=30,f=5,y=m.clientHeight-b*2,v=t.length*h+f*3,S=g+d.height;if(v>m.clientHeight-S){let w=Math.min(y,v);l(m.clientHeight-g-w-b)}else l(0);s(Math.max(dS,y))}},[i.current,r,t]),J(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(pS,{item:n,isDefault:!0}),Wv]}),x(VB,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function VB(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return J(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(pS,{item:o,onClick:e.onClick},o.value))})}function pS(e){let t=e.item,{t:n}=oe();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:as}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var KB={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC9FBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////m5uZvevRidPB8gfhXbu1AYuYjVN5MaOo9n+b8/PwwXOJNoutsqPWLrv5cpfDv7++Mifzr7/5ji/Jahe96q/pPfuxCdujp6enx8fFrkfV0l/f6+vrs7OwybOP9/f33+f9/nfv39/f09PX6+//z9v78/f9qePNSgO319fZnp/Roj/Q8Z+JzqvdDZOc0XePw9P5Zpe9ZcO5LfOuIh/tch/BQa+tIZukrWeHt8fyGhvp6gPdldvFecu9VpO5EeOk1buXo7f3Q3ft8m/pylfZ3f/ZOautDoOg7cubu8v7k6/3U3/3b5PzI1fp0ffVnd/FtgPBWg+5Ube1Lous6YOXP2PzM2vuBrfu/0fqyyPlwqfZzfPVkpvNipvJhc/BPo+xIoeo/Yub09//e5fy8zvuMp/u2zPqlvfp4qvmDovi1xPd4mfesvvaHk/Ztk/V6ifRsefNykvJkjPJfiPFTo+09YeU3XuMxYeIoV+CFrf2nx/uprPt/q/uTlfuIkfvC0fqBhPmbuPimsPiFsveMtvaUr/aEpfZ7nfVuk/V2f/WKqPOIn/NomvOAnu9Zg+5bc+5pjO1HeepLZ+lGb+bp7v7g6v6Xtv7d4fzV2fzHy/u9wvuevPmTnPmuw/eao/eBj/eAoPaEjPZxe/WjtvN0mvJsk/KcrvFfpfFlfO/u7u5WgO5zlOxJeepdgehUeudAdeeRsf7l6P2uwvylwfyPq/zf5vvN0fuws/t7q/vW4PqWoPqgqPm6xvi30/ebsPefrfeKnPfS3Pa9y/a2xvWjuvWgsvVxn/WOmfWBuPSnuvOUrfOEmfNqovJurPFprPBuju58lO1ReuxihOlAn+dFauY2ZuTF0Pq0uvrD3Pmaq/jv8faWvPaQqfZ7ovZ9svN2kfPB0e+vxO9ie+1eh+tmhetJcupzkOhQcudWxvkSAAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAjmSURBVGjezZp1WFNRGMZdwgD7ng1rKkwMQDeGgylDUcTEQjBRUezA7u7u7u7u7u7u7u72H7/v3CHGzt3d2PPo++d8Hn/P+73f+c7hnJtGrNwzyT29MkhlBCSTKhSecg/3NK6URK6UEhuSeqV3cw3Bw5MHGAJDTHqtkQMZtXpTSKCBByk9Uktwz5iWgHQWLWdDeosuADnpJalAuHliBIF6TkB6ylE6i5EosEhAsCfTTmcx7p5oQsuJklbnFCazDBA0ZbEYzMbhShmYLtgYhcQhGwEmzmFZAohM7kAaOkal7JvxFFeqDISEcE4qBJKRiGBISYCWc1raABEUNxkxYKmcpxiIzM0uQ8elUjqkCDMCuVQrUJAioQyXUCQCmes4l0jHTl9KDJyLZCAZbO+bnti7LpIxwPaqzEwIMFwlLSFym6GHcC5UiK3wFSJDj547sHukuPAVfzLSiQpE+6rPo+I7xo5uGVlETCzyv7rXwtmT/ujNb/tKZqucJ8+p0c2iQ+3uykT2e4cpRRQr8uK2Rzlz5qzQME+eMt6nz9Q32+9jz9+M2O8sc+fLcxfnRBXNU6ait/f688/qxtvtMIljRuIWPMnalIcAAtSg/5sEu+NF4YCR4LjZWa0qaYUkqdUDGs72E0zGSIibWCOmi9sS55cvXwIQHUs2LUkhDdTqopUrJ/btUz9Y0IpKpJH62x58yg5CSsemHb/2H+ddqYEaIBqNJirx9uZmAqmkNFg6spNjqUh83NXELI3LleMpoHmz13hXUmOxNJoqWbI03jE7IVagwTL+nL6s809ofP1e7+dnQdWiFMAMnPiyUk1gVNZo2tHfy325epK1avQkLc/wIAEcQ7G9bmuytIuyUkCLsmad1W0SGgEGQmrRH/eOj2b8D4R4CMce0vKCeoAGVYWnoEr08luJkGQj4A977v4ls2D0UmL75N5s3fqZap7SDimNG2Mwu+JCV/RVqzGQKJ5RAiFP9j3oZbFZLyky3FjVWgMIbCKrFxRQptbl/I4jA38qRxkdhw2DaTN8r82S8as+Hata3g0aNEgCSsOGWP+oKEppnGDmgpv1RwY0BJYvK0BwpGUr7md74uMs9iIWBgRUkzeDFM18xPSPxH6YBBWMggJC6GBk6FCAjGBALETJR2IPklKyHS1hgYMVcIYMagQQyGBAtBiKO7OB8yClktp7E+VQTOIk69RfVzQKA8kOmQtDMBR3WCUGQUilXyCV+x60DszlG6skQ5qWBAQwWBADyZRGzjw0wrZRcQKWrCadVKDrx0KTR8Gx/lG1sFjIwNTZkEBIXsU8pMAGCLsTauamJDSzcVVwyvB/nlhuUXmoFUIqCEFCYDkqiIkJqVixzATqZWbNJHVS31W/nlL8JiVisUo2hf4FAhtiIl4A0TMhVLTJkrzVlVZQHymU81EAAR/CEDojpUQrBCnjDRTUutjfT0GY/nWAYB6CEOxhGTGyIUiBZCZsPL3y4J8Mrkhw517lcaAIQ4xEloYQjgUZO5bnjB29crnZ5o5mPnPr/mJhCC4UAcj6C33HjRu3ZvTxVSsAwVDdLrd27/3+9Onw4cMXOwOZA7p2bcrZuCWdirC3507R9fucylt2V1jYAmcgOawKHyVwIulUr9XEwry6MiEYvCAEVftuN0YmLY/0LgRCRs9lzOCxhYUhHTp0aFLq3o24v92Ym0/dUKgGMKr3RsoRdgunZS5GK6N2k1ygITdaxof+kXm3aTMKFuwHlN7Ve1dnlktPFLBnmYQgj3MhpP2QIb6Tuy39jbKk1bS8xQoWLDgDKNULsSEmgLAHJB8H2mhftZSvr2/rUUt/6bL4VtPz5s1brBh6QUz16l3ZA5I96nkGqmrV9gAJjxjVKeVfu2wZnBcEZkAYfu+u7FGfiblp/WSUqjrEFyG5J3fhktVqa758ZVMgqJ6sTctDYPuFzK2QUqWQ0TY8Yko9654Vt6VsPqAAZtAgrBjG35O9/bJ7OEeTDk1orUrxPsLDc0ccDqbrw29ao7BGQEkxAxSAME93SmJhQagPX2RsbxueG9R6cj3sMHNC2bACYY3mAQWCwfixyWxDLMQLIHLW4e4xhbT3HQKUtrm3IySixcRIMNJ5VukCoLB8yZRBSNnAONzhRa6EFUoungECBlVE/vz56xbhzOMH+/OQZEpBpEy3CQkgbkIHbmvvgtqEo48eEQjpFsnFXokpEANeQPmoaMkAwogEpWKslBev71WlfdWmDU2kdUQPgCyryzUv5h/jX7o0YsLmJcc/8BzEZataSsE/goKXnp1yBxlt29DUgQHyqee3trS/v39MzB5aMtplZQdO7dI51Ha1PCiEPSPjE1a/u+ObmzIikHFiTH6f8c2n7q+DlD18+rvAzIYrzSMZgwurhcrIvrHzSzh3l2bemtoYM3KMz6HuW+pUA8jChTFYMVgwW+c2C2GsNQP2FpW7jLUecd11j0BG/tzAACs+Pqun5QtCCBV6GbQ2UMzFB0bPVnSryQBBtfABrZ4eVm1/0H5ExBTwLz2wT2eOl0Ds1r/ojBxTodHNJ74FxMgWFHJg68KgakHVqtFc/Gcl+AWLvMFRoBW2zEfHd4dAWoz0QZWtExQUVAchC3d/PIkIYSPib3DqjZqCDFSjIAqp5v951iWTUfRVFKZisHel1vLwMh4SFkQppXdvxiOMaCO0wUycPUwXHvJwOEL23YzlhGX565pbjtnbU2wrhOypAIy18SJeUtI7c2UbvCTu0AGfhzkXz/0QHSriytbJy+dOdZt3X7Bgc3290fHLZ5Rc3FW9uV6fy7HOXaOjVBiLa4SBqGw//aV15dOG9B890rj+uemfPpy5/gmQTTFoU4MwGoDxPzzL8pTUPDBnEMGgq5LonDJj1BGiEvvJjBwe/S2OM0ziH/1REoXjZrQGxucLbKWTOoYxBhK2DbYZJRGP0QKCT8MpzE6TfYTeQBiVEo0J0OkFCWhCpqLrz1kMZIMci02Q1qIjoAwZ3VP96ZVS+NMrlUcal8gtnZftj8iUckjChXL3kKsUiuTP4dJ6qeSZRBfpB0lhGlCNRficAAAAAElFTkSuQmCC",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC9FBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubl5eXo6Ojn5+f////m5uY3Njc7Ozs4ODgzMzP7+/ulPf3v7+80NDT+//6zVf+sR/+qQv/9/f3s7OypQf+rRv6vTf/x8fH///6tSf+wT/+pQv+mPv2uTP+jOP+kOP35+Pnp6en+/f/9//+lPf+iOf3//v+qQ/+yU/+mP/+kOv339/evSv+rRf+vTf719fX//f+xUP/09PT/+P+lPP+xUv+oP/+kOP+tS/+rQ/+qR/xEREQ8PDz/9P+tRv+rRP+xUP61aPE+Pj7/+v/99v/78f746v6pUu/o6OiPj4+KiopJSUmkOv+sTP2oQ/zu1vrlx/fgvPapTfbn0PTMlPSjo6N5eXmwTf+sSf/47P36+vrx3/qgOfriwfaiQfTRovDBgO7AiOra2trDw8O1tbV8fHtqampkZGRgYGBZWVlRUVH98/+oPf/pzfqsT/rVqPiiPPigOfewWfbHh/W/d/XAfvSqUvTSovKzZPK7dvHJkfCbOe/u7u7dwe6uYO3YverIyMiqqatoaGeyUf/05v337/uzWfvr0frqz/rz6/fFgfemQ/fPnPamSfbs3PW6a/TkzPO5cfPGjfHEhPGvXvGtWfDKneiTON7U09SANsC8vLyfnp6Xl5eHh4ZUNG9ubm5INltVVVVENVJMTEw+OET//P/8+f3x3Pz05PqsSvq2ZPjet/fVp/TYr/OsV/LZtvHQqO6xbuiVOObf39+KONLPz8+ENcW+vr56NrR0NadtNaBpNZhlNIxfNIJaM3hONGNdXF5AQED28/qjQvmdO/S+eu64bu3DkOjRqeeoX+CojL6TY7qwsLGtra1/T6ilpaV1TJd/YZZycnLQoPXm5eetZ+bd2uLNr+K8huGobdzWz9qNONWiZtHOzs6uhs2JQcued72AQLqtobeXfKqQeqCShJ6UlJR9eYRoSYBpXHVNNl9x9fyjAAAAFXRSTlMAIN/vkHC/MBBAn6Cvz2Bgz1CAb39BGFJOAAAKTklEQVRo3s2aZVQbWRTHCyRBFnbb3Z2BEMg0xEgIcZJAgCQQWijuVryUlmKFUijU3d3du93Kdrtdd3d3d3e3L3tfBshhZkgC5PTsn29wzvtx7/++++bJBE8VMInNCp7o64eD/Hw5HBY7MGCCN+XDDvLFGeQbfJ2/dwiBLBIgik5NnMMTYiAhT5OYGi0iQUGB4yUE3BiCgyKtPIxBc6yRWsS5zmccCH8WsiBag7mQxsEJGivGh4OSBAR3Stw0VkwACwXBwzwSL3JMmBv8AOFw2WMMeDPqTImcUXiM4fiMKgxtIjZqWbW4H3sUbkQ6MzXKYFiepWoijqdiY1QqOOPjAcMX1/KwMYun9YDi74eLIFXjoIhwP3+3jEhsnIoEihtGNDZuRbuk+JAMb1B8XHgeiXlFkSO774uLMC9JhE9kXjdZqHa9JKGWeVbegOPA8JZ4OM5mND0V86JSmcznOE33lvkcKuNapyHes4VNq14r5mUl4n7DK+waSJbXJRpeYT4uK8totNlsGKMIwnWF+bgPBA2/sO2zlatXrTrQ+FDpHTr98K+heRfmX+rpaarsFo3UXjhuA5HZiusPrKnOlCflJidLMg+/+UCzEzOnu6kwFInLDQ0N693OxBHiuL/rQGRYUf36BmV1dZJcLhcIBJmSmprT9y+06RFHc66XC6OTFKTQ6TOjmUJhuQxEL2teuUSplCqVyoyMjNkCgUSSbDLVFOwjgBI9nx86QHDq5R/orjgL7Fp8E4Mdtacts6SkACOX5wqSk00KccMDQtnZrGGMMFLcwo8YCuz6oe6bSE0VYTy2wmKxxJCyWKTKJDnEkhdVo3itQ1gJDFJOBKJwL1BXbg0eQjICcS1Gla12jUU6K4VUTIwUIEARJOflKRJeW2rdMcggEU7KTIwiHA8cyXbZ3VtQGClTpsTHx0/Jz8+PgVhQKJAvcWz7vs8LmRhAyd7GbD1kS0P1o2hlNYIAYvLkyfHxO/MhGCUKxaRQTF0U+2DpTC4TBCj9ODVfvojhT8+Wsa1BaZlFMkAomBRwHyCSqChxbELEBk0fl4kBCauk5csH1RYtWzL7eosU4kAIkrJz56wBiClKnBAb0X73+yiQMAZI1mMEpeOjXhxM679E3RLpLDBkALHn+J74PavulVoyADItSgEQwyHRdEYIUCqGQ6x4kMMSHhWyujppEHJg6dITdy+dcrL4rXVbTi1BkKiE2LiIspIKLkpXNvwgZWcPQV4RUuYjmBKAl1OzVfxgklRKQva0vbp/xuLaLbVFOaADEhTJ1NiItOV1Tzk86e3uIQevqBiEhM6jmhIAs0REhey7J0kpjclHnqyY8dDe+vvvatvd+cgjjxQsQRAxQCLUh0R8gGT/SfSGIV0RbRuCVFAn/aQJbNpHo/BheUbGAOTeXR2l9R2n7joyA7Rq9iAkTb1amIUi6daQecpqWjAEuTTclGhwnkX7SLFtkKNIUlIActx+pvhh3RsFR45sPnPnSYkElTAEkqZaV7QD9ZSz0RcrL8L4L1f2DzJCLw+HpMJ05NAal/GkPClDanGEstreWTS3uHFLzsM5X9uP5johp+3zgVG4iaeBmXw57DyxYwgyfQ5lqQ8GiIYayVy5vFoJzTdl5+QNJXPtW+oeqtNt3XxMdyJTYkKQuDizqiznIkRyRXge9asF2ecip5MMBBk+4Bw8hF7BABEI5LCMWGJS8pceeau0bM36/fu3bt1V0ilBvX5qRFyaASAokiasKTvsHHElrKuLO8AACI9Ww364kJquDRIJuKKUgvn1m9+u3bCroGXzXZ3H6jKh1SsgW3Fmg3qdvRdGnMlbEMZ9TMQN03QjBgm5rKOswX4TcJzWgu+XCGDFRQlbs7d5/7GW2i+KO98+0/xAgykKIBEOyCphFpoS5VncwsRtYQuICwMMUA+tezFBFmcKcnPl8gylckljR8dW3dxG3cKShcLilQoo4ISICLM5XX0I58OQjz0Ryu0jznMriSYuyQBVuIeAcsoyc3MFs+WQs6SkFS0tDSsKjq4/UzT3HtKRRVXpKpjx0FYKee9zuZ9in3K3C/uAQIo/zyOIbmVNcrLAQUmqPmFffc9syZoWe3ODYyKC7enp6hUlF1GD7Onncqf3ZHH7dmQDg9QVHh1CN15GtB3My0MYsGb20eOHIa7Mo2+uqyE7yiIzQA5tQl04lEnQhWnG00tYJrQfN0WRGFBmpiQX2sk0MTASIiAQtUp1sOWDcD4zJKsLw2glHEKDYIS+/qBYEWUyAQZ+JHl506aZTGJxAmryaVUqg7rRepnPD2VUJUb7YOHAmkU/DzLaT9ZERQEFKQpJIYYwUD8Bhqq1bPf58PBwJgy/X0TfQXBoDRKk18tKH0wQKxQKGB0JEGKEQNWrUqW379Vm8RGFjuFvY9jXseitnvRl7+HYqVPFYhIAhgMiLi4uzaxSG17v0PTyAcJA4ZPfXbRWP4lx827ULW6PXRSbAIpFAKQ4s9lgUKta1+rmh5MQCojP/4hxKxToXH4puqP29CIYPSEBDY+krkpPN7Sa2++zEV394XQB7gOya9GXX2cNU40pfaMdDQ5ug8xmdXp6lWHZusVFRvjvmkLpkL5tBNMBtePr7pqRtqSyovtOLauqMpth9qlUKrXabChbW6KzyVCVn+ujILIuMJ9aWvFggLBH3JPqdfb69YeXGQyAMBhaDxasLSH0hAwgCPPUpVeGCNwFMyNH3M5fBxAfMGVkGUv2NUAQhnvX1u3S6WD7JXPuSa1nt893VMA8F4d9Wtyf9sFNF3GfQa1WFdh1er2e9rcKBNlB/TX9gxumY7RLyMIytUG1rNFmxGTUP83LBga3y+XhR9DAJqjcFURmbFtmUKmXr7UbMYrOFqLKrcRcSAuzxKEQl/nSy3QnWtUGw+udxZSv3G6H8/1WV0cfkC1S17s5sSNyCsD65RvfmaEjnPGJ/rqdC8kq7CJcnnwMXhIE+OE8lxBb6Sm1avnGR7/7fuvuO2wY6NVv/7j1NgTJekLn/uDDvfVIxtICQ+vGR296/OZf3vv53Xd/++TvW15yQAqfwDAPbCd3dOXOdDP3mN2NGxHkyZuffubZ555/4UUScgk3Yh6f4HDchaLX6Ra/cxMF8vJ2K+ZxIPSDD7qgndg3f/OTE/LvP9ujYd54Hgi44v5IWCaTGZu/+vG9Dz/8+ONPfv/1S8wIDI8DIQvMudQTrgpNJ7TdeadQpycI9xdDtGNuNq5l9H5cNynXXa0j26t/+AwJK/f6MTpdLLDFi4awmK/+Qrx5teF79S5prv51k/cvzq7+FSCdIhpXJQtFwPg/XMs6KOXjuWCeCAwPhK7KxxSMEF2Ve/pkhg2X/tbRMxLRpf9oni+MPhieaHTPF0DX+o4OI4zGnWF4Hsw1uOcYHiBIN8aE2ZToHqER4c5MjQ2jjdS4JKAg/Fj+43l0Bd4gDvODJZ41EgdNvD5g3E+vrnE+vdIMPr3iOZ9esQIneEX+1wYzPyILYoMTXlRAIJvF4Qw+hwsJZrEneZyk/wA88FGt9Hd9mwAAAABJRU5ErkJggg==",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/FBMVEUAAADn5+fm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fl5eXm5ubm5ubm5ubn5+fk5OTl5eXm5ubn5+fm5ubm5ubo6Oj///8EK0jm5ub8/Pzv7+/19fXx8fIoSWPp6enHz9bk6Ov5+frn5+f39/fs7Ozu8fMVOVQJL0v6+/sOM0/r6+twhpcjRV/o6Ojd4+dheow/XXPp7fDK0tmvvMWOoK2Jm6k8WnEZPVjZ3+O9yM+1wMmerbiaqraEl6Y0VGsqS2QgQ1zV2+DBy9K5xM1sgpRnf5BbdYhXcIREYXcvT2jn6+3Q2N2ntb+hsLuVprJ+kqFPan5LZ3w2VW1JZXqjhMOgAAAAFnRSTlMAIN/vcL8wEJBAn4+vz2Bgz6CfgFBvyuvMXgAABPdJREFUaN7Fmudy2kAQgFGjY5zYuVtJhAASzWDcwL3g3hK3vP+7RJKx1yS600qQ5BuPf2jG/thyhTulqGSW9UJxUdXAQ1MNo6DnMql5ouh5FUJQi+X0fAy5QiBouBXbqZsm8zDNumNX3EYgyudmNWSWSr7Ask0WQt22qr6nrMygSBc0z1CpMwn1wJNPqlEMAHDRIMSxkmoyBT8Ik5Ewk2m+aACooGnUcuxMuaggawwlVhhVh8XGroKmx6iGhWHEDKZAS9UiNGyWELsBqkJwqFA1WWLMKsGS1mAFHUksK6ClIx0WmxELLSJHhc1MRWpR0DGrRZHU3GJzwRJXX4UVNidWYDF83SyQevd+/47WyYXQuQQa0Y69E87504BgaYAeWvTIcT74yQPaF2b02A8rvhFZ9OZjl7/R/0EovvG7YyGyIFt+ppDnQXRZ9D+6V56s05/8d3pNucUBbbrDPsuT1exhppD+odziTneYAiBL1uEOD+f4XpowAIUayOY6F9OrSacXgxbIxgWXsvMgHSxpQiDOqMWj+HomCSUbHcjeMadwVROFgg22IAiktsaJdEcdUYMtvc++Tqijz+msCXbKUHp15KDKwnjiH2ldr63LLIIx04CcrOzNNv/AzYY/s0i64EZeehXqocODf2DsOTzOJT0mypfqO9KCbH3jHxhNHh6TJZgvBXtLLjmfPLyMLbGCubgIdrTk++ThUWyJDfmgJJ1ICXbofj+mxPSLkoFVFinBfLHO0Q5NgkXJeKPEpUh2hnfm4OnSnz8G17EkLiyndKhESpDug+Pn7CSGpOJVPgs2RYL/bM/P2bDbGm4dHFMktjccDXDoEpxza8HE2yNIHCh6kjpNgrSO3j/XtkyCc6QKJlmC/3Efxw1KxD2sJZDguDmnSLQUAEsgeWavDKMlDCCJpOv9DF5H5svfkqyfrXu/mliSeUpwq/2tzfl4tHWwzWmSmIXvBhvgXVwhSYUnt/DjaXPreH3XH8IXbY6QWrgEHYpk//1vDmLOwnUwvDXLYTHWk02sA1HigEGcIPcmD0fTmSJOkMSp/m27i0tJrKl+GRctyZboYPLwVig5ES9aOfHy25z6nK8tuMWFbMuWX3EPT+1Kr/3d3VlLLBkx2e7uk6jym1NFHl/1nttix4ktrHvRk+jCb0Cnt5zKZU38db4cfAVaFQ7W4Q5J8bLHhFQhjRvucDbW2pGK1pB5yErikZWepN1H5Kx91ZQffuQDSc7Ll4TOQUviuN1kUqowuV4pYb5ifstuHTI5jp+tgCVwmZxvL+GSXRaBC+WJJIMLl5DDfpgEG1d68IGlj6DWiyvBsgekYdVkkZxuCyTEExyDdh78MCZKMBDyURRiX3bJEgwEq+IyErvbZAkGgg3mMBrfx0SJ/ccxt06/NWn22hSJWYVy/CNbZPeGILHAEB0+U3PWR0n04TOi42AhcPeIkuhjdCQb7zJrcONJJAXJhl/9lWJebfzoCyUroM7rkqZuSy5p/s910/wvzv7FFeD/v8z869eyaFmd5YJ5ER0ysrNclWepr8zoGlQTBOPgpT8FxYgfjOni6wtEFtR4GrMCGAYZ5ROgJlrRwGok0DiEKcwFzFQyTdWqSw1+EFoWx18CzYIaeOxOaJZsyzPA4lJm5levPoW8etXBV6+yudRcSC8Uw18iy+tKap5kcnrWMN5ehysVs/oyOUm/AJAdz9mDSbxUAAAAAElFTkSuQmCC",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function Sd(e){let t=KB[e];return t}function gS(e){let{t}=oe(),{translationServiceItems:n,translationServiceOptions:r}=ZB(e),a=he(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(fS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(YB,{...e,currentTranslationService:a})]}):null}function fS(e){let{t}=oe(),n=he(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=ya(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(mS,{className:"translate-service",items:n}):x(oi,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function YB({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=oe(),u=JB(e,o),l=QB(e,o),c=Ae((m,p)=>{t(g=>{let b=g.translationServices||{},h=b[u.id]||{};return{...g,translationServices:{...b,[u.id]:{...h,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=he(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[m.name],onSelected:h=>{if(b.action=="jumpOptions"){let f=b.args||[];r(...f);return}c(m.name,b.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Et,{children:d.map(({label:m,items:p},g)=>x(fS,{label:m,items:p,ctx:e},"field-"+g))})}function QB(e,t){return he(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function JB(e,t){let{lang:n}=oe();return he(()=>{let a=Ab(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[kr,Rp,e,n,t])}function ZB({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=oe(),d=he(()=>t?Eb(t,"translationService",c):[],[t,c]),m=Ae(g=>{let b=d.find(h=>h.id===g.value);if(b.ok){if(u({translationService:b.id}),n(h=>(a(h.translationService||"",b.id),{...h,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(h=>({...h,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=he(()=>{let g=Wa(t.config),h=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=Db(f,e,g,l,!0),v=Sd(f.id);f.id.startsWith("custom-ai")&&(v=Sd("custom-ai")),f.id.startsWith("mock")&&(v="");let S=Ti.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return h.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Sd("more"),onSelected:()=>{s(!1,"#services")}}),h},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function hS(e){let t;try{t=new URL(e)}catch{return!1}let n=P9(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(XB(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function XB(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function bS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function yS(e){let{t}=oe(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=$B(e),[o,s]=W(()=>a?"excludeMatches":"matches"),u=he(()=>r||a||!1,[r,a]),l=Ae(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(oi,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function $B({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=he(()=>new URL(e||""),[e]),t.config&&e&&hS(e)){c=bS(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>We(e,v)),m=!!y.find(v=>We(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let b=Ae(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(w=>w.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),h=Ae((f,y)=>{if(f==="default"){s(w=>{let C={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:Ih(e,C.matches),excludeMatches:Ih(e,C.excludeMatches)}}}),b();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(w=>{let C={...w.translationUrlPattern};return C[S]=Ih(e,C[S]),C[v]=qc(y,C[v]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:h}}function Ih(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!We(e,n)):t):[]}var Fh={};function di(e){let t=Td(e)||{};Fh[e.sourceUrl+"_"+e.to]={...t,...e}}function Td(e){return Fh[e.sourceUrl+"_"+e.to]}async function xS(e,t){let n=location.href,r=Object.values(Fh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ve().any,platform:ga(),images:[],version:Ht()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=R0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Ga(!1,o)}return a}async function vS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await qa(l,"web"),l.json()))}var Qu={width:94,height:80};function SS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?SS(e.parentElement,t+1):e}function bs(e,t,n,r){let a=De.bind(null,e.config.interfaceLanguage),i=SS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Qu.width+"px",c.style.height=Qu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Qu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Qu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Qu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let d=a("translateFail");r==="gif_not_supported"&&(d=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6229,8 +6229,8 @@ ${s}`)}),ai(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s= - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function Bh(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=De.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Zu=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};var wd=[],wS=[];async function Oh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(Nh()||wd.includes(t))return"";if(wd.length>=s)return new Promise((l,c)=>{wS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});wd.push(t);try{let u=await a_(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await ES(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{wd.shift(),(async()=>{let u=wS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Oh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function t_(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${rt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${AS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await K({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function n_(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function r_(e,t,n){let r=await n_(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),te()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):K({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await k2(a)})}async function a_(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=i_(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await n0(u);mi({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await t_(e,r,l,n.type);if(c.objectKey&&mi({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await r_(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return te()?d=await fetch(_h()+"/trigger",{method:"POST",body:oc(u),headers:{token:e.user?.token||""}}).then(async m=>(await za(m,"manga"),m.json())):d=await K({url:_h()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),mi({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function ES(e,t,n,r,a){let i=Nh();if(i)return;mr("Translating",i);let o=await K({url:_h()+`/${t}/task-state?comicHash=${n}&domain=${AS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Ey(t,r.queryIntervalTime||100),ES(e,t,n,r,a))}function _h(){return rt+"comics"}function i_(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=L0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function AS(e){return e.replaceAll(".","_")}function ys(e,t){return te(t)?!1:o_(e.config,e.isPro)}function o_(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function Ed(e){let t=ha();return!(e?.platforms&&!e.platforms.includes(t))}function Ad(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function kS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var kt,jh,Dd,$u,Ut=!1;function Nh(){return Ut}var DS=!1;function MS(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ut=!1,!DS&&kt.injectedCss&&(hn(document,`${kt.injectedCss}`,P+"-image-injected-css"),DS=!0);let t=!1,n=Mn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=FS(kt);for(let i of a){if(Ut)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await st(20),await r(i,t))}},100);if(Fe("translate_manga",[{name:"translate_manga"}],e),n(),jh=new MutationObserver(a=>{n()}),jh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;$u=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Aa(e,o.target),$u?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}Dd=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?($u?.unobserve(a),$u?.observe(a)):await Aa(e,a)))}}async function Aa(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Io();if(n&&(Ut=!1),Ut||f_(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=u_(e,t);u||(s=bs(e,t,"translating")),n&&Fe("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await l_(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await s_(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||bs(e,t,"success")):(u||bs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&mr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&mr("Error",Ut),g_(e,l),u))return;if(l instanceof Zu)return bs(e,t,"error",l.type);bs(e,t,"error")}finally{n&&mr(i,Ut),s?.remove()}}function RS(){if(!kt)return;Ut=!0,jh?.disconnect(),Dd?.disconnect(),$u?.disconnect();let e=FS(kt);for(let t of e)pi(t)}function pi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&pi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function s_(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await c_(l,c,t.cloneNode(!0))}else o=await BS(t);if(Ut)return;if(!o||o.size<6*1e4){Dd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Xp(o);return await Uh(e,t,s)?!0:s?IS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function IS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await m_(n)||n,u=r||a;try{if(Ut)return;mr("Translating",Ut),Bh(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};mi(l);let d=await Oh(e,u,s,a,i,m=>{Bh(e,o,m)});return d?(l.targetUrl=d,mi(l),await _S(kt,t,d),mr("Translated",Ut),!0):!1}catch(l){if(mi({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function Uh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Cd(r);return a&&a?.targetUrl?(await _S(kt,t,a.targetUrl||""),mr("Translated",Ut),!0):!1}function u_(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Cd(r);return a&&a?.targetUrl}return!1}async function l_(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!p_(a,i)){Dd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await Uh(e,t,o))return!0;let s=null;if(mr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await za(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await d_(i);else{let d=await K({url:i,responseType:"base64"});s=await sc(d)}if(Ut)return;if(await kS(s))throw new Zu("GIFs not supported","gif_not_supported");let l=await Xp(s);if(!o&&(o=l,await Uh(e,t,o)))return!0;if(!o)return!1;return IS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function FS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function BS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function c_(e,t,n){return new Promise((r,a)=>{K({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await BS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function _S(e,t,n){try{return await LS(e,t,n)}catch{let a=await h_(n);return LS(e,t,a)}}async function LS(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function d_(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function m_(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function p_(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!jc(e.inValidSrcRegex,t):!0}var kd=0,Xu=0;function g_(e,t){if(kd!=0){Xu++;return}if(t.message.indexOf("quota exceeded")>0){PS(e,t);return}Xu++,kd=setTimeout(()=>{if(Xu<(kt.errorTimes||3)){kd=0,Xu=0;return}PS(e,t),Xu=0,kd=0},kt.errorInterval||3e3)}function PS(e,t){let r=new j("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(fn,{detail:r}))}function Ld(e){return e.classList.contains("imt-img")||e.hasTranslate}function f_(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function h_(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var el=null,Hh="showImagePricingModal";function OS(e){let t=Ce(null),n=Ce(!1),[r,a]=W(null),[i,o]=W({}),[s,u]=W(0);J(()=>{let d=e.rule.imageRule,m=d?.toolsMinHeight||100,p=d?.toolsMinWidth||100,g=null,h=f=>{f.isHoverMarked||(f.isHoverMarked=!0,!Ad(f.src)&&(f.addEventListener("mouseover",()=>{g&&clearTimeout(g),!f.closest('[contenteditable="true"]')&&(f.width{a(f)},d.toolsDelayTime):a(f)))}),f.addEventListener("mouseout",()=>{g&&clearTimeout(g),setTimeout(()=>{n.current||a(null)},10)})))};el&&el.disconnect();let b=Mn(()=>{document.querySelectorAll("img").forEach(f=>{h(f)})},200);return el=new MutationObserver(()=>{b()}),el.observe(document,{subtree:!0,childList:!0}),()=>{el?.disconnect()}},[n,e]),J(()=>{let d=document.querySelector("#monica-content-root");if(!r){o({});return}let m=()=>{let p=r.getBoundingClientRect(),g=d?56:16,h=p.top+p.height-50,b=p.left+p.width-30-g;o({top:h+"px",left:b+"px"})};return m(),globalThis.addEventListener("wheel",m),()=>{globalThis.removeEventListener("wheel",m)}},[r]),J(()=>{if(!r)return;let d=new IntersectionObserver((m,p)=>{m.forEach(g=>{g.isIntersecting||a(null)})});return d.observe(r),()=>{d.disconnect()}},[r]),J(()=>{t.current&&(t.current.addEventListener("mouseover",()=>{n.current=!0}),t.current.addEventListener("mouseout",()=>{n.current=!1}))},[t]);let l=Ae(async d=>{if(d.translationStatus==="translating")return;if(Ld(d)){pi(d),u(p=>p+1);return}if(setTimeout(()=>{u(p=>p+1)},100),!e.isPro){let p=await mt.get(dt,null);if(ft(p)){e.user=p,e.isPro=!0,await Aa(e,d,!0,"image_tools"),u(g=>g+1);return}tl("image_tools");return}await Aa(e,d,!0,"image_tools"),u(p=>p+1)},[e]),c=he(()=>{if(!r)return null;if(r.translationStatus=="translating")return"translating";if(r.translationStatus=="success"||r.classList.contains("imt-img"))return"success"},[r,s]);return{hoveImage:r,hoveImageStyles:i,containerRef:t,activeRef:n,imageStatus:c,handleTranslate:l}}function NS(e){let[t,n]=W(!1),[r,a]=W("");return J(()=>{if(!e)return;let i=o=>{let u=JSON.parse(o.detail);Fe("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:u.trigger}}],e),u.trigger&&a(u.trigger),n(!0)};return document.addEventListener(Hh,i),()=>{document.removeEventListener(Hh,i)}},[n,e]),{trigger:r,showPricingModal:t,setShowPricingModal:n}}function jS(e){let[t,n]=W(!0),r=Ae(async a=>{if(a==="UntilNext"){n(!1);return}let i=await ln(),o=i.generalRule?.["imageRule.add"]||{};if(a=="AlwaysClose")await Vr({...i,generalRule:{...i.generalRule,"imageRule.add":{...i.generalRule?.["imageRule.add"],enableTools:!1}}});else if(a=="CurrentWebsite"){let s=o.blockToolsUrls||[];await Vr({...i,generalRule:{...i.generalRule,"imageRule.add":{...o,blockToolsUrls:[...s,globalThis.location.hostname]}}})}n(!1)},[]);return J(()=>{let a=ze(e.url,e.rule.imageRule.blockToolsUrls);(!e.rule.imageRule.enableTools||a)&&n(!1)},[e]),{enable:t,handleCloseConfirm:r}}function tl(e){document.dispatchEvent(new CustomEvent(Hh,{detail:JSON.stringify({trigger:e})}))}function Pd(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Na(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var b_=new AbortController,{signal:y_}=b_,rl=0,al=0,Gi=!1,gi,US=0,ka=[];function Gh(e){x_(),Pd().forEach(t=>{Md(e,t)})}function Md(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&w_(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Md(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Md(n,t))}t.document.addEventListener(Ps,s),ka.push(()=>{t.document.removeEventListener(Ps,s)});let u=Yn(m=>{if(!(Math.abs(m.clientX-rl)+Math.abs(m.clientY-al)<=3)&&(rl=m.clientX,al=m.clientY,Gi&&!gi&&Wh(n,!1,t),o||Gi&&!gi)){let p=WS(n.rule,t);if(p){if(zh(p))return;Rd(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;zh(p)||(Rd(n,!0,t),Wh(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=jn.getPressedKeyCodes();if(g.length>1&&jn[p]&&(US=Date.now(),Gi=!1),g.length===1&&jn[p]){let h=Date.now();Gi=!0,gi&&clearTimeout(gi),gi=setTimeout(()=>{let b=US-h;b>0&&b<=i?Gi=!1:l(m),gi=void 0},i)}};if(ka.push(()=>{gi&&clearTimeout(gi)}),a)return;nl("mousemove",u,t),ka.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Gi=!1}if(nl("blur",d,t),ka.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=x1;nl("keyup",HS,t),ka.push(()=>{t.removeEventListener("keyup",HS)}),p.includes(m)?jn("*",{scope:"mouseHover",element:t.document},c):jn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),jn.setScope("mouseHover"),ka.push(()=>{jn.deleteScope("mouseHover")})}}function x_(){try{ka.forEach(e=>e())}catch{}ka=[],jn.setScope("all")}function HS(e){Gi=!1}function nl(e,t,n=window){return n.addEventListener(e,t,{signal:y_})}function Rd(e,t,n,r){if(r=r||WS(e.rule,n),!r){k.debug("can not find selection part!");return}if(S_(e,r,t))return;if(zh(r)){k.debug("exclude dom");return}Mv(e,r);let i=qu();i&&(i.setupMouseHoverListener=Md);let o=on(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=Yf(i,e);Ta({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{Uc(n.document.documentElement)!==l.state.translationMode&&zr(n.document.documentElement,l.state.translationMode),ji(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();ot(a1,p);let g={translation_service:u?.translationService||""};Fe("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function WS(e,t){return v_(rl,al,e,t)}function v_(e,t,n,r){let a=Sb(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=Tb(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:zS(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{C_(e,a)}),!0}function T_(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(P+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${P}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function C_(e,t){let n=qu();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Pu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function qh(e){return!!(e.host&&e.mode)}function qS(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||qh(n))return e;for(;n&&n.nodeName!=="BODY"&&!qh(n)&&Dp(n,t);){let r=n.parentNode;if(r&&qh(r))break;n=r}return n}function zS(e,t){return e.nodeType===Node.TEXT_NODE||Dp(e,t)?qS(e,t):e}function GS(e,t,n){rl=t.clientX,al=t.clientY,Rd(e,!0,n),Wh(e,!0,n)}async function Wh(e,t,n,r){if(!ys(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=Cb(rl,al,e.rule,n);if(!a||Ad(a.src)||a.translationStatus==="translating")return;let i=Ld(a);if(i&&!t||i&&!r)return;if(i){pi(a);return}if(!await Ws(e)){tl("image_mouse_hover");return}Aa(e,a,!0,"image_mouse_hover")}function w_(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Rd(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};nl("mousedown",i,t),nl("mouseup",o,t),ka.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var An=!1,Vh,VS=!1,Id=null,E_=` -.${P}-input { + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function Bh(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=De.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Ju=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};var Cd=[],TS=[];async function Oh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(Nh()||Cd.includes(t))return"";if(Cd.length>=s)return new Promise((l,c)=>{TS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});Cd.push(t);try{let u=await r_(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await CS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{Cd.shift(),(async()=>{let u=TS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Oh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function e_(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${rt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${wS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await K({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function t_(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function n_(e,t,n){let r=await t_(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),te()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):K({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await E2(a)})}async function r_(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=a_(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await t0(u);di({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await e_(e,r,l,n.type);if(c.objectKey&&di({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await n_(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return te()?d=await fetch(_h()+"/trigger",{method:"POST",body:ic(u),headers:{token:e.user?.token||""}}).then(async m=>(await qa(m,"manga"),m.json())):d=await K({url:_h()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),di({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function CS(e,t,n,r,a){let i=Nh();if(i)return;mr("Translating",i);let o=await K({url:_h()+`/${t}/task-state?comicHash=${n}&domain=${wS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Cy(t,r.queryIntervalTime||100),CS(e,t,n,r,a))}function _h(){return rt+"comics"}function a_(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=D0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function wS(e){return e.replaceAll(".","_")}function ys(e,t){return te(t)?!1:i_(e.config,e.isPro)}function i_(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function wd(e){let t=ga();return!(e?.platforms&&!e.platforms.includes(t))}function Ed(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function ES(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var kt,jh,kd,Xu,Ut=!1;function Nh(){return Ut}var AS=!1;function LS(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ut=!1,!AS&&kt.injectedCss&&(fn(document,`${kt.injectedCss}`,L+"-image-injected-css"),AS=!0);let t=!1,n=Pn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=RS(kt);for(let i of a){if(Ut)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await ot(20),await r(i,t))}},100);if(Ie("translate_manga",[{name:"translate_manga"}],e),n(),jh=new MutationObserver(a=>{n()}),jh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;Xu=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Ea(e,o.target),Xu?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}kd=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(Xu?.unobserve(a),Xu?.observe(a)):await Ea(e,a)))}}async function Ea(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Io();if(n&&(Ut=!1),Ut||g_(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=s_(e,t);u||(s=bs(e,t,"translating")),n&&Ie("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await u_(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await o_(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||bs(e,t,"success")):(u||bs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&mr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&mr("Error",Ut),p_(e,l),u))return;if(l instanceof Ju)return bs(e,t,"error",l.type);bs(e,t,"error")}finally{n&&mr(i,Ut),s?.remove()}}function PS(){if(!kt)return;Ut=!0,jh?.disconnect(),kd?.disconnect(),Xu?.disconnect();let e=RS(kt);for(let t of e)mi(t)}function mi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&mi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function o_(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await l_(l,c,t.cloneNode(!0))}else o=await IS(t);if(Ut)return;if(!o||o.size<6*1e4){kd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Xp(o);return await Uh(e,t,s)?!0:s?MS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function MS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await d_(n)||n,u=r||a;try{if(Ut)return;mr("Translating",Ut),Bh(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};di(l);let d=await Oh(e,u,s,a,i,m=>{Bh(e,o,m)});return d?(l.targetUrl=d,di(l),await FS(kt,t,d),mr("Translated",Ut),!0):!1}catch(l){if(di({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function Uh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Td(r);return a&&a?.targetUrl?(await FS(kt,t,a.targetUrl||""),mr("Translated",Ut),!0):!1}function s_(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Td(r);return a&&a?.targetUrl}return!1}async function u_(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!m_(a,i)){kd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await Uh(e,t,o))return!0;let s=null;if(mr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await qa(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await c_(i);else{let d=await K({url:i,responseType:"base64"});s=await oc(d)}if(Ut)return;if(await ES(s))throw new Ju("GIFs not supported","gif_not_supported");let l=await Xp(s);if(!o&&(o=l,await Uh(e,t,o)))return!0;if(!o)return!1;return MS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function RS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function IS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function l_(e,t,n){return new Promise((r,a)=>{K({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await IS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function FS(e,t,n){try{return await kS(e,t,n)}catch{let a=await f_(n);return kS(e,t,a)}}async function kS(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function c_(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function d_(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function m_(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Nc(e.inValidSrcRegex,t):!0}var Ad=0,Zu=0;function p_(e,t){if(Ad!=0){Zu++;return}if(t.message.indexOf("quota exceeded")>0){DS(e,t);return}Zu++,Ad=setTimeout(()=>{if(Zu<(kt.errorTimes||3)){Ad=0,Zu=0;return}DS(e,t),Zu=0,Ad=0},kt.errorInterval||3e3)}function DS(e,t){let r=new j("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(Un,{detail:r}))}function Dd(e){return e.classList.contains("imt-img")||e.hasTranslate}function g_(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function f_(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var $u=null,Hh="showImagePricingModal";function BS(e){let t=Ce(null),n=Ce(!1),[r,a]=W(null),[i,o]=W({}),[s,u]=W(0);J(()=>{let d=e.rule.imageRule,m=d?.toolsMinHeight||100,p=d?.toolsMinWidth||100,g=null,b=f=>{f.isHoverMarked||(f.isHoverMarked=!0,!Ed(f.src)&&(f.addEventListener("mouseover",()=>{g&&clearTimeout(g),!f.closest('[contenteditable="true"]')&&(f.width{a(f)},d.toolsDelayTime):a(f)))}),f.addEventListener("mouseout",()=>{g&&clearTimeout(g),setTimeout(()=>{n.current||a(null)},10)})))};$u&&$u.disconnect();let h=Pn(()=>{document.querySelectorAll("img").forEach(f=>{b(f)})},200);return $u=new MutationObserver(()=>{h()}),$u.observe(document,{subtree:!0,childList:!0}),()=>{$u?.disconnect()}},[n,e]),J(()=>{let d=document.querySelector("#monica-content-root");if(!r){o({});return}let m=()=>{let p=r.getBoundingClientRect(),g=d?56:16,b=p.top+p.height-50,h=p.left+p.width-30-g;o({top:b+"px",left:h+"px"})};return m(),globalThis.addEventListener("wheel",m),()=>{globalThis.removeEventListener("wheel",m)}},[r]),J(()=>{if(!r)return;let d=new IntersectionObserver((m,p)=>{m.forEach(g=>{g.isIntersecting||a(null)})});return d.observe(r),()=>{d.disconnect()}},[r]),J(()=>{t.current&&(t.current.addEventListener("mouseover",()=>{n.current=!0}),t.current.addEventListener("mouseout",()=>{n.current=!1}))},[t]);let l=Ae(async d=>{if(d.translationStatus==="translating")return;if(Dd(d)){mi(d),u(p=>p+1);return}if(setTimeout(()=>{u(p=>p+1)},100),!e.isPro){let p=await dt.get(ct,null);if(ft(p)){e.user=p,e.isPro=!0,await Ea(e,d,!0,"image_tools"),u(g=>g+1);return}el("image_tools");return}await Ea(e,d,!0,"image_tools"),u(p=>p+1)},[e]),c=he(()=>{if(!r)return null;if(r.translationStatus=="translating")return"translating";if(r.translationStatus=="success"||r.classList.contains("imt-img"))return"success"},[r,s]);return{hoveImage:r,hoveImageStyles:i,containerRef:t,activeRef:n,imageStatus:c,handleTranslate:l}}function _S(e){let[t,n]=W(!1),[r,a]=W("");return J(()=>{if(!e)return;let i=o=>{let u=JSON.parse(o.detail);Ie("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:u.trigger}}],e),u.trigger&&a(u.trigger),n(!0)};return document.addEventListener(Hh,i),()=>{document.removeEventListener(Hh,i)}},[n,e]),{trigger:r,showPricingModal:t,setShowPricingModal:n}}function OS(e){let[t,n]=W(!0),r=Ae(async a=>{if(a==="UntilNext"){n(!1);return}let i=await ln(),o=i.generalRule?.["imageRule.add"]||{};if(a=="AlwaysClose")await Gr({...i,generalRule:{...i.generalRule,"imageRule.add":{...i.generalRule?.["imageRule.add"],enableTools:!1}}});else if(a=="CurrentWebsite"){let s=o.blockToolsUrls||[];await Gr({...i,generalRule:{...i.generalRule,"imageRule.add":{...o,blockToolsUrls:[...s,globalThis.location.hostname]}}})}n(!1)},[]);return J(()=>{let a=We(e.url,e.rule.imageRule.blockToolsUrls);(!e.rule.imageRule.enableTools||a)&&n(!1)},[e]),{enable:t,handleCloseConfirm:r}}function el(e){document.dispatchEvent(new CustomEvent(Hh,{detail:JSON.stringify({trigger:e})}))}function Ld(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Oa(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var h_=new AbortController,{signal:b_}=h_,nl=0,rl=0,Gi=!1,pi,NS=0,Aa=[];function Gh(e){y_(),Ld().forEach(t=>{Pd(e,t)})}function Pd(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&C_(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Pd(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Pd(n,t))}t.document.addEventListener(Ps,s),Aa.push(()=>{t.document.removeEventListener(Ps,s)});let u=Yn(m=>{if(!(Math.abs(m.clientX-nl)+Math.abs(m.clientY-rl)<=3)&&(nl=m.clientX,rl=m.clientY,Gi&&!pi&&Wh(n,!1,t),o||Gi&&!pi)){let p=qS(n.rule,t);if(p){if(zh(p))return;Md(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;zh(p)||(Md(n,!0,t),Wh(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=jn.getPressedKeyCodes();if(g.length>1&&jn[p]&&(NS=Date.now(),Gi=!1),g.length===1&&jn[p]){let b=Date.now();Gi=!0,pi&&clearTimeout(pi),pi=setTimeout(()=>{let h=NS-b;h>0&&h<=i?Gi=!1:l(m),pi=void 0},i)}};if(Aa.push(()=>{pi&&clearTimeout(pi)}),a)return;tl("mousemove",u,t),Aa.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Gi=!1}if(tl("blur",d,t),Aa.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=b1;tl("keyup",jS,t),Aa.push(()=>{t.removeEventListener("keyup",jS)}),p.includes(m)?jn("*",{scope:"mouseHover",element:t.document},c):jn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),jn.setScope("mouseHover"),Aa.push(()=>{jn.deleteScope("mouseHover")})}}function y_(){try{Aa.forEach(e=>e())}catch{}Aa=[],jn.setScope("all")}function jS(e){Gi=!1}function tl(e,t,n=window){return n.addEventListener(e,t,{signal:b_})}function Md(e,t,n,r){if(r=r||qS(e.rule,n),!r){k.debug("can not find selection part!");return}if(v_(e,r,t))return;if(zh(r)){k.debug("exclude dom");return}Lv(e,r);let i=Hu();i&&(i.setupMouseHoverListener=Pd);let o=on(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=Yf(i,e);Sa({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{jc(n.document.documentElement)!==l.state.translationMode&&qr(n.document.documentElement,l.state.translationMode),ji(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();mt(n1,p);let g={translation_service:u?.translationService||""};Ie("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function qS(e,t){return x_(nl,rl,e,t)}function x_(e,t,n,r){let a=xb(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=vb(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:HS(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{T_(e,a)}),!0}function S_(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(L+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${L}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function T_(e,t){let n=Hu();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Lu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function qh(e){return!!(e.host&&e.mode)}function US(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||qh(n))return e;for(;n&&n.nodeName!=="BODY"&&!qh(n)&&Dp(n,t);){let r=n.parentNode;if(r&&qh(r))break;n=r}return n}function HS(e,t){return e.nodeType===Node.TEXT_NODE||Dp(e,t)?US(e,t):e}function zS(e,t,n){nl=t.clientX,rl=t.clientY,Md(e,!0,n),Wh(e,!0,n)}async function Wh(e,t,n,r){if(!ys(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=Sb(nl,rl,e.rule,n);if(!a||Ed(a.src)||a.translationStatus==="translating")return;let i=Dd(a);if(i&&!t||i&&!r)return;if(i){mi(a);return}if(!await zs(e)){el("image_mouse_hover");return}Ea(e,a,!0,"image_mouse_hover")}function C_(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Md(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};tl("mousedown",i,t),tl("mouseup",o,t),Aa.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}function w_(){let e=document.querySelector(`#${L}-modal-input-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-modal`);t&&(t.style.display="block")}}function WS(e){let t=`${L}-modal-input-root`,n=`${L}-modal`,r=`${L}-modal-title`,a=`${L}-modal-body`,i=`${L}-modal-footer`,o=document.querySelector(`#${t}`),s,u,l,c;return setTimeout(()=>{w_()},100),new Promise(d=>{let m=d;if(o){let R=o.shadowRoot;if(!R)return;s=R.querySelector(`.${n}`);let B=s.querySelector(`.${r}`),P=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let R=document.createElement("div");R.setAttribute("translate","no"),R.className=`no-translate ${L}-error-modal-input-shadow-root`,R.id=t,R.style.all="initial",R.style.zIndex="2147483647",document.body.appendChild(R);let B=R.attachShadow({mode:"open"}),P=document.createElement("style"),_=ke();P.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,B.appendChild(P),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let O=document.createElement("div");O.className=L+"-modal-content notranslate "+L+"-modal-content-in-input",s.appendChild(O);let z=document.createElement("span");z.textContent="\xD7",z.className=L+"-close",O.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",O.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",O.appendChild(c),l=document.createElement("div"),l.className=i,O.appendChild(l),B.appendChild(s),z.onclick=function(){A(),d("close")},B.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=De.bind(null,e.config.interfaceLanguage),g=`
${z0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Bn?.createHTML(g)||g,c.innerHTML=Bn?.createHTML("")||"";let b=document.createElement("p"),h=p("modalEnableInputTranslationDesc",{1:ae+"docs/input/"});b.innerHTML=Bn?.createHTML(h)||h,b.style.cssText="margin-bottom:12px",c.appendChild(b);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=Ze.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=Bn?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let R=0;R{A_(e,t)})}function A_(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(Id===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;Ve().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(An||Id===!1)return;let p=_d(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(M_(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&KS(t,o,m.target)&&(s=0,Jh(m,e,t,o))}function d(){Vh=l,t.removeEventListener("keyup",Vh),t.addEventListener("keyup",Vh,!0)}R_(e)}function YS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Fd(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var xs;function Yh(e){let t=e.parentElement;if(!t)return;xs=document.createElement("div"),xs.className=P+"-input";let n=`
`;xs.innerHTML=Un?.createHTML(n)||n,t.appendChild(xs);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=E_,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Qh(){xs&&xs.remove()}async function k_(e,t=window){if(An)return;let r=globalThis.getSelection()?.toString();if(r){$h(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let v=m.split(" ")[0];v&&v[0]&&(v=v[0].toLowerCase()+v.slice(1)),v.trim()&&u.flatAlias.includes(v)?(p=Fd(v,u.codeAlias),d=m.slice(v.length+1)):d=m},y=function(){p="";let v=YS(u),S=m.split(v);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let C=m.lastIndexOf(d),T=m.slice(0,C).lastIndexOf(S[S.length-2]);c=m.slice(0,T+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let w=m.slice(c.length+1,m.indexOf(d)).trim();if(p=Fd(w,u.codeAlias),!p){k.warn("not found alias",w);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(v=>i[v]=[v,...i[v]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;Ve().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;An=!0;let c="",d="",m=jr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=QS(d,u),h=await Be({text:g,pageLangs:["en"]});k.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;Yh(l),ot(Is,Date.now());try{e.specialAiAssistant=Fr(e,e.inputTranslationService,!0);let v=await ea(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});Xh(e),tT(e,t,l,c+v.text)}catch(v){if(v instanceof j){let S=v.uiConfig(e);e4(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(fn,{detail:S}))}}finally{An=!1}}catch(a){throw An=!1,a}finally{An=!1,Qh()}}async function Jh(e,t,n,r){if(!An)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=Fd(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=YS(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Fd(b,r.codeAlias),!u){k.warn("not found alias",b);return}},a=_d(n.document,t.rule.enableInputDeepActive);if(!a)return;An=!0;let i="",o="",s=jr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=QS(o,r),c=await Be({text:l,pageLangs:["en"]});k.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!VS){VS=!0;let g=await I_(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(Id=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Wt(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await Wt(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(Id=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Wt(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await Wt(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await Wt(h)}}Yh(a),ot(Is,Date.now());try{t.specialAiAssistant=Fr(t,t.inputTranslationService,!0);let g=await ea(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});Xh(t),tT(t,n,a,i+g.text)}catch(g){if(g instanceof j){let h=g.uiConfig(t);e4(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(fn,{detail:h}))}}finally{An=!1}}catch(a){throw An=!1,a}finally{An=!1,Qh()}}function KS(e,t,n){if(!n)return!1;if(Zh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=D_(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=it()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function D_(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function QS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function JS(e,t){let n=t.innerHTML,r=jr(t);return{html:n.replace(r,e),text:e}}function Bd(e,t,n=!1){let r=jr(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function jr(e){return e.value||e.innerText||e.textContent}async function Nr(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function L_(e,t,n){await Nr(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Nr(10)}async function ZS(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Nr(10))}async function XS(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Nr(20),(t.value||t.value==="")&&(t.value=e.text)}async function $S(e,t){Zh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Nr(20))}var eT=[L_.bind(null,["plain"])];function Zh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function P_(e,t){if(Zh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function tT(e,t,n,r){await Nr(50),await P_(t,n),await Nr(50);let a=e.rule.inputConfig,i=JS(r,n);try{await Nr(50),a?.execCommandDeleteEnable&&!Tr()&&jr(n)?.trim()!=""&&(t.document.execCommand("delete"),await Nr(50)),k.debug("clearContent",jr(n))}catch(o){k.error(o)}for(let o of[...eT,XS,$S,ZS]){await o(i,n);let s=nT(t);if(!s)return;if(k.debug("setContent",o.name,Bd(i,s),jr(s),i),Bd(i,s))break}}function nT(e){return e.document.activeElement}function Xh(e,t=""){Fe("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function M_(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function R_(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Nt(t,"")||Number(await Nt(Is,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{F_()},100),new Promise(d=>{let m=d;if(o){let R=o.shadowRoot;if(!R)return;s=R.querySelector(`.${n}`);let B=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let R=document.createElement("div");R.setAttribute("translate","no"),R.className=`no-translate ${P}-error-modal-input-shadow-root`,R.id=t,R.style.all="initial",R.style.zIndex="2147483647",document.body.appendChild(R);let B=R.attachShadow({mode:"open"}),L=document.createElement("style"),_=ke();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,B.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let O=document.createElement("div");O.className=P+"-modal-content notranslate "+P+"-modal-content-in-input",s.appendChild(O);let z=document.createElement("span");z.textContent="\xD7",z.className=P+"-close",O.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",O.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",O.appendChild(c),l=document.createElement("div"),l.className=i,O.appendChild(l),B.appendChild(s),z.onclick=function(){A(),d("close")},B.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=De.bind(null,e.config.interfaceLanguage),g=`
${W0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Un?.createHTML(g)||g,c.innerHTML=Un?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:ae+"docs/input/"});h.innerHTML=Un?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=Ze.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=Un?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let R=0;R0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function $h(e,t,n,r){if(An)return;try{let o=_d(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;An=!0;let u=e.config.inputTargetLanguage,l=await Be({text:n,pageLangs:["en"]});k.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;Yh(o),ot(Is,Date.now());try{if(e.specialAiAssistant=Fr(e,e.inputTranslationService,!0),Xh(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await ea(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await ea(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof j){let m=d.uiConfig(e);e4(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(fn,{detail:m}))}}finally{An=!1}}catch(o){throw An=!1,o}finally{An=!1,Qh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=JS(l,u);try{await Nr(50),c?.execCommandDeleteEnable&&!Tr()&&jr(u)?.trim()!=""&&(s.document.execCommand("delete"),await Nr(50)),k.debug("clearContent",jr(u))}catch(m){k.error(m)}for(let m of[...eT,XS,$S,ZS]){await m(d,u);let p=nT(s);if(!p)return;if(k.debug("setContent",m.name,Bd(d,p),jr(p),d),Bd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function e4(e){return e==="retry"||e==="changeService"}var il=[];function t4(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),il.push(()=>{document.removeEventListener("click",i)})}function rT(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),il.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Od(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),il.push(()=>{document.removeEventListener("touchstart",r)})}var n4={touchShortcutsOff:()=>{},"multipleClick.2":t4,"multipleClick.3":t4,"multipleClick.4":t4,"slide.left":rT,"slide.right":rT,"fingers.2":Od,"fingers.3":Od,"fingers.4":Od,"fingers.5":Od};async function iT(e,t=window){try{H_();let n=await ln(),r=b1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=__(e,n,a.command),o=n4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{U_(a.command,e,t,l)})})}catch(n){k.error(n)}}function __(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var O_=()=>{r4();let e=new CustomEvent(Sr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},N_=()=>{i4();let e=new CustomEvent(Sr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},j_=()=>{a4();let e=new CustomEvent(Sr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},aT=0,U_=(e,t,n,r)=>{if(!(new Date().getTime()-aT<200)){if(aT=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")O_();else if(e==="touchShortcutsToggleTranslationMask")j_();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")N_();else if(e==="touchShortcutsToggleTranslateTouchElement")GS(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Jh(r,t,n,s)}}};function H_(){il.forEach(e=>{e()}),il=[]}function oT(e){let{t}=oe(),{ctx:n,setSettings:r}=e,a=q_(e);return qs(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(si,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||_s[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(z_,{...e})}function q_({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=oe(),a=he(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=he(()=>_s.filter(s=>!(s==="Off"||_s.includes(a)&&s==="OtherCustom")),[e,a]);return he(()=>i.map(s=>{let u=r("mouseHoldKey",{key:ls(s)}),l=_s.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function z_(e){let{ctx:t,setSettings:n}=e,{t:r}=oe(),a=t.config.generalRule,i=Object.keys(n4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(si,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function sT(e){let{isAlwaysTranslateLang:t}=W_({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=oe();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:oi(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Wc(e.currentLang,u.matches),excludeMatches:Wc(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=zc(e.currentLang,u[i]),u[o]=Wc(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function W_({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function lT({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=oe(),i=ke(),o=he(()=>{let s=[{title:a("widget.translateFile"),icon:Nv,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:zv,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(I1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:Gv,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(R1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(dn,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(uT,{...s})}):x(uT,{...s}))})}function uT(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}async function o4(){let e=["bingGlobalConfig","baiduGlobalConfig",V3,jm];for(let t of e)await re.storage.local.remove(t);te()||await c9(),await dp()}var G_=["bing","transmart","google","yandex"];function dT(e){let{t}=oe();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:as,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Fn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Fn,`${e.type}_trial_pro_service`)}})]}):null}var cT="popup_trial_pro_show_count";function mT(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=W(null),s=Ce(!1);J(()=>{Ei(cT,0).then(l=>{o(l)})},[]);let u=he(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!G_.includes(d)},[t,n,r,i]);return J(()=>{!u||i==null||s.current||(s.current=!0,Ai(cT,i+1))},[u,i,s,a]),{showTrialPro:u}}function pT(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function gT(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function s4(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=W(""),[c,d]=W(null),[m,p]=W(null);J(()=>{mt.get(dt,null).then(y=>{y?(d(y),p(ft(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,h=it();n&&h&&(g=n.generalRule.showSponsorOnSafari);let b=Ga(n),{showTrialPro:f}=mT({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[b&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(Kv,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(X_,{openSharePage:r})]}),x(Yv,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(hS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(dT,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(Y_,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(J_,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x($_,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x($f,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(vS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(oT,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(sT,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(K_,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(V_,{ctx:a})]}),x(lT,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),x(Q_,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function V_({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Ed(e.rule.imageRule))return null;let{t}=oe();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function K_(e){let{t}=oe(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!he(()=>!i.disabled&&Km.includes(i.type||""),[n,Km,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Fc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function Y_(e){let{t}=oe(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(dn,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Uv:Hv})})}function Q_(e){let{t,lang:n}=oe(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=Ae(y=>{i&&(o(v=>Nc({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=du(i,s.rawUserConfig),d=ke(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[jv,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(Z_,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(Xf,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(Fn),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?h():y.value==="changeToTranslateTheMainPage"?b():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(Fn,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(L1,m):y.value==="cleanCache"?o4().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function h(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function b(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function J_({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=oe(),l=r.config,c=he(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");Fi(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?Tr()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):te()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Zn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${ls(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function Z_({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=oe(),o=Ht();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${P}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),My(`${ae}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[L2(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function X_(e){let{t}=oe();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),qv]})}function $_({aiContextInfo:e,curUrl:t}){let{t:n}=oe();if(!e?.visible)return null;let r=he(()=>{let a=new URL(t);return a.searchParams.append($l,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[pT(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(dn,{text:n("contextDiffPreview",{1:r}),children:gT()})]})}var u4={get:(e,t,n)=>re.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>re.storage[n].set({[e]:t})};function Nd(e,t,n){let[r]=W(()=>typeof t=="function"?t():t),[a]=W(n),[i,o]=W(r),[s,u]=W(!1),[l,c]=W("");J(()=>{u4.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=Ae(m=>{let p=typeof m=="function"?m(i):m;k.debug("new settings",p),u4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function l4(e,t,n){let r=[];return function(){let[i,o,s,u]=Nd(e,t,n),l=Ae(c=>{for(let d of r)d(c)},[]);return J(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function fT(e,t){return l4(e,t,"sync")}var eO="userConfig",tO=null,nO=fT(eO,tO);function Da(e){let[t,n,r,a]=nO(),[i,o]=W();J(()=>{(async function(){let u=await Kc();o(u)})()},[t]);let s=Ae(async u=>{let l=typeof u=="function"?u(i):u;l&&c4(l);let{userConfig:c,promptPool:d,objectPool:m}=await Yp(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(d).length,d),k.debug("objectPool size",JSON.stringify(m).length,m),await Pr(Gc,d),await Pr(Vc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function c4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var O3e=1e3*3600*24;async function jd(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await re.storage.local.set({[Bs]:t.toISOString()}),await d4(),te()||await _9()}catch(t){k.error("run cron task failed",t)}}async function hT(){let t=(await Sn()).interval;if(t){let n=await re.storage.local.get(Bs);if(n&&n[Bs]){let r=n[Bs];if(Date.now()-new Date(r).getTime()r?(await re.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Kr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}var X3e=ke().REDIRECT_URL;var F1e=wo([]);function yT(e){let[t,n]=W(null);return J(()=>{qt().then(r=>{n(r),k.debug("current config",r)})},[]),J(()=>{qt().then(r=>{n(r)})},[e]),t}function xT(){let[e,t]=W(null);return J(()=>{Yt().then(r=>{t(r)})},[]),[e,r=>{t(r),zt(r)}]}var uO=Mn(lO,1e3);async function lO(e,t,n){try{if(t===null)return"noupdate";let r=await Yt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Va(t.proSyncAPIKey,t);return await m4(e,c),await zt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await ST(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Ry(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Va(t.proSyncAPIKey,t);return await m4(e,u),await zt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||Iy(n)&&uO(n.token,e,t)},[e,n])}function cO(){let[e,t]=W(null);return J(()=>{mt.get(dt,null).then(n=>{t(n)})},[t]),e}function ST(e){return(location.href?.indexOf("popup.html")>0?Li:K)({responseType:"json",url:rt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function m4(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Li:K)({responseType:"json",url:rt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Hd(e){let{onClose:t}=e,[n,r]=W("Original"),[a,i,o,s]=Da(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});Ud(a,i);let[u,l]=W(null),[c,d]=W(globalThis.location.href),[m,p]=W("auto"),[g,h]=W(null),[b,f]=W({visible:!1,preview:!1}),y=Ce(!1);J(()=>{!g||y.current||(y.current=!0,Fe("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=_=>{r(_.detail)};J(()=>(document.addEventListener(Si,v,!1),Sn().then(_=>{l(_);let O=pt();p(O);let z=Ye();r(z),jd(_.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",C)}),[]),J(()=>{Sn().then(_=>{l(_)})},[a]),J(()=>{c&&u&&qd().then(_=>{h(_)})},[c,u]),J(()=>{let _=a0();f({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let S=Ae((_,O)=>{T("change_translate_service",!1,{translation_service:`${_}_${O}`})()},[]);if(!u||!g)return null;return x(s4,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},aiContextInfo:b,request:K,onClose:A,onToggleEnabled:D,onChangeService:S,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:R,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{F(Bi(g.rule)||c)},openAboutPage:B,openSharePage:T("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:xa,onSetBuildinConfig:k9,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:I,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function w(_){p(_);let O=_v(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:O})),rr(_)}function C(){d(globalThis.location.href)}function T(_,O,z={}){let V={trigger:"page_popup",...z};return()=>{Jt({method:_,data:V}),O&&t()}}function A(){t()}function D(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function I(_,O){let z=_;O&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${O}`),m0(z,!0),setTimeout(()=>{A()},50)}function F(_){_&&(Bo(!1,_),setTimeout(()=>{A()},50))}function R(_=!0,O=""){Ya(_,O),setTimeout(()=>{t()},50)}function B(){c0(),setTimeout(()=>{t()},50)}function L(){B9(),setTimeout(()=>{t()},50)}}function kT(){let[e,t]=W("Original");return J(()=>{let n=Ye();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Si,r),()=>{document.removeEventListener(Si,r)}},[]),{pageStatus:e}}function DT(){let[e,t]=W("Original");return J(()=>{let n=Io();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Rs,r),()=>{document.removeEventListener(Rs,r)}},[]),{mangaStatus:e}}var TT=6,dO={position:"right",top:335};function LT({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=W(!1),l=Ce(!1);l.current=s;let c=Ce(null),d=Ce(!1),m=Ce(n.floatBallConfig||dO),p=Ce(0),g=Ce(0),h=Ce(0),b=Ce(!1),f=Ce(0),y=Ce(0),v=Ce(0),S=Ce(0),w=Ce(!1),C=Ae(T=>{if(!a)if(clearTimeout(c.current),T)u(T);else{let A=Ve().any||Zn();c.current=setTimeout(()=>{u(T),b.current=!1},A?3e3:0)}},[u,c,b,a]);return J(()=>{a||u(!1)},[a]),J(()=>{if(i.current&&m.current){let T=p4(m.current.top);m.current.top=T,i.current.style.top=`${T}px`,i.current.style.display="flex"}},[t,i]),J(()=>{if(!o.current||!i.current)return;let T=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=L.clientX,S.current=L.clientY,w.current=!1,(Ve().any||Zn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{CT({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",F),document.addEventListener("mouseup",D),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},A=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,S.current=L.clientY,w.current))return;let _=L.clientY-g.current+h.current,O=p4(_);i.current.style.top=`${O}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),B(),d.current=!1,clearTimeout(c.current),b.current||C(!1),w.current)return;CT({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let O=p4(L.clientY-30);m.current.top=O;let z=await On();xa({...z,floatBallConfig:m.current})},I=L=>{L.preventDefault&&L.preventDefault(),T(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},B=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",T),o.current.addEventListener("touchstart",I),()=>{o.current&&(o.current.removeEventListener("mousedown",T),o.current.removeEventListener("touchstart",I))}},[t,o,i,c,d,n,C,e]),J(()=>{if(Ve().any)return;let T=D=>{D.target===i.current&&!b.current||!l.current&&ET(D)&&c.current||(b.current=!0,C(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&ET(D)&&c.current)){if(d.current){b.current=!1;return}D.target===i.current&&!b.current||C(!1)}};return i.current?.addEventListener("mouseover",T),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",T),i.current?.removeEventListener("mouseout",A)}},[i,d,C,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function CT({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>TT||i>TT}function PT(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=he(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=he(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=he(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=he(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function MT(){let[e,t]=W(!1);return J(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var wT="hasShownFloatingBallGuide",mO="2024-01-06";function RT(e,t){let[n,r]=W(!1),a=Ae(()=>{ot(wT,new Date().toISOString()),r(!0)},[r]);J(()=>{if(!e.config.enableShowFloatingBallGuide||pt()==e.targetLanguage)return;let o=ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Nt(wT,""),u=await Nt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Ul,o),()=>{document.removeEventListener(Ul,o)}},[]);let i=Ae(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function IT(){document.dispatchEvent(new CustomEvent(Ul))}function FT(e,t){let n=Ce(0),[r,a]=W(!0),[i,o]=W(!1),s=Da(),[u,l]=s,{t:c}=oe(),d=Ae(()=>{e?.config.floatBallTooltipRule&&(Ve().any||Zn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);J(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ve().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=Ae(async()=>{if(!e)return;n.current=n.current+1,d();let h=await ln();l(b=>{let f={...h};return Ve().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=he(()=>Ve().any||!r||Zn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=he(()=>{if(Ve().any||Zn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:oi(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${ls(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function p4(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var g4=0;function ET(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(g4=Date.now(),!0):Date.now()-g4<100}function BT(e,t){J(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Ti,n),()=>{globalThis.document.addEventListener(Ti,n)}},[e,t])}function _T(e,t){let n=Ce(e);n.current=e,J(()=>{!n.current||!t||Fe("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var AT="imt-float-ball-active";function OT(e){J(()=>{let t=!!document.querySelector(`meta[name='${AT}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(AT)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(Nl,n),()=>{document.removeEventListener(Nl,n)}},[])}function NT(e){document.dispatchEvent(new CustomEvent(Nl,{detail:{active:e}}))}function pO({isOpen:e,onClose:t,children:n}){let[r,a]=W(e);return J(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Et,{children:[e&&x("div",{className:`${P}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${P}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${P}-sheet-content`,children:n})})]})}var zd=pO;var Vi="imt-fb";function Wd(e){if(globalThis.innerWidth<=385)return x(zd,{isOpen:e.visible,onClose:e.onClose,children:x(jT,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${P}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${P}-popup-overlay`,class:`${P}-popup-overlay`,children:x("div",{class:`${P}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(jT,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function jT(e){let{t}=oe(),[n,r]=W("UntilNext"),a=Qa()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Vi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Vi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Rt,{type:"modal-close"})})]}),x("div",{class:`${Vi}-close-radio-content mt-3`,children:o.map(s=>x(gO,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Gr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Vi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Vi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function gO(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=fO(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Vi}-radio-sel`:`${Vi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function fO(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}function UT(e){return le.ASSETS_BASE_URL+e}var Ki="imt-fb";function HT(e){let{t}=oe(),n=a=>{a?.target?.id===P+"-popup-overlay"&&e.onClose()},r=he(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:x("div",{class:`${Ki}-guide-container`,style:r,children:[x("img",{class:`${Ki}-guide-bg ${e.fixedPosition}`,src:hO}),x("div",{class:`${Ki}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Ki}-guide-img`,src:UT("images/float_ball_intro.png")}),x("div",{class:`${Ki}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ve().any?` -${t("floatBall.longPress")}`:""]}),x("div",{class:`${Ki}-primary-btn ${Ki}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var hO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var qT="imt-manga";function zT({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=oe(),o=d=>{d?.target?.id===P+"-popup-overlay"&&t()},s=he(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=Ae(()=>{if(t(),!a.isPro){if(a.user)return window.open(w1);window.open(T1)}},[a,t]);return e?x("div",{onClick:o,id:P+"-popup-overlay",class:`${P}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${qT}-guide-bg ${r}`,src:`${G3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${qT}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Rt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var La="imt-fb";function f4(e){let{t}=oe(),n=Da(),[r,a,i,o]=n;Ud(r,a);let s=yT(r),u=e.ctx,{isFullScreen:l}=MT(),[c,d]=W(!1),m=Ce(c);m.current=c;let[p,g]=W(!0),{pageStatus:h}=kT(),b=du(u,r),f=Ae(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Jt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Jt,d]),y=Ae(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:w,ballRef:C,floatBallConfigRef:T,setActive:A}=LT({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),D=b?.fixedPosition||"right",I=D==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:R}=RT(e.ctx,b),{closeTransform:B,logoContainerTransform:L,settingTransform:_,mangaTransform:O}=PT(b,w||F);_T(u,w);let{tooltipDelay:z,disableTooltip:V,tooltipText:ie,handleShowTooltip:je}=FT(u,h);BT(d,m),OT(A);let N=globalThis.innerWidth<=385;return v?x(Et,{children:x("div",{class:`${La}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||F||c?"all":"none"},ref:S,children:[x(bO,{ctx:u,setVisible:g,closeTransform:B,setActive:A,getModalStyle:()=>WT(T.current.top,300,D)}),x(dn,{enableMobile:!0,text:ie,position:I,delay:z,onShow:je,disable:V,children:x("div",{class:`${La}-btn ${D} btn-animate `,ref:C,style:{transform:L,opacity:w||F?1:.5},children:x("div",{children:[x(Rt,{type:"logo"}),x(Rt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(vO,{ctx:u,mangaTransform:O,floatBallConfigRef:T,fixedPosition:D,hidden:F}),x("div",{style:{marginTop:"12px",transform:_},class:`${La}-more-buttons btn-animate`,children:[x(dn,{text:t("translateFileTooltip"),multiple:!0,position:I,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{m0(P1,!0)},children:x(Rt,{type:"file"})})}),x(dn,{text:t("floatBall.setting"),position:I,containerClass:"btn-animate",children:x("div",{class:`${La}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Rt,{type:"setting"})})}),x(TO,{ctx:u,tooltipPosition:I,rule:b,active:w})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:_},class:`${La}-more-buttons btn-animate`,children:x(dn,{text:t("reportTip"),position:I,containerClass:"btn-animate",children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}}))}})})}),x(h4,{onClose:()=>{A(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>WT(T.current.top,500,D)}),x(HT,{visible:F,top:T.current.top,fixedPosition:D,onClose:()=>{R(),A(!1)}})]})}):null}function bO(e){let{t}=oe(),[n,r]=W(!1),a=Da(),[i,o,s,u]=a,l=du(e.ctx,i),c=Ae(m=>{e.ctx&&o(p=>Nc({...p},m))},[e.ctx,o]),d=Ae(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Rt,{type:"close"})}),x(Wd,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function h4(e){let t=n=>{n?.target?.id===P+"-popup-overlay"&&e.onClose()};return e.isSheet?x(zd,{isOpen:e.visible,onClose:e.onClose,children:x(Hd,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:x("div",{class:`${P}-popup-wrapper`,style:e.getModalStyle(),children:x(Hd,{onClose:e.onClose})})}):null}function yO(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var WT=(e,t,n)=>{let a=yO().height,i={position:"fixed"},o=0;return V4()&&(e=xO.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},xO={position:"right",right:0,top:335};function vO({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=W(!1),{mangaStatus:u}=DT(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=oe();J(()=>{c||On().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),zt(p))})},[c,s]);let m=Ae(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await mt.get(dt,null);if(ft(g)){e.user=g,e.isPro=!0,Jt({method:"toggleTranslateManga"});return}s(!0);return}Jt({method:"toggleTranslateManga"})},[]);return!Ed(l)||r||!l?.enable?null:x(Et,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Rt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Rt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Rt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(dn,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"mangaReport"}}))}})})]}),x(zT,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var SO="float_ball_upgrade_show_count";function TO(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=oe(),o=Ga(n.config),s=Ce(!1),[u,l]=W(null),c=he(()=>cs(n.config),[n]),d=p=>cs(p)?.upgradeShowCountCacheKey||SO;J(()=>{Ei(d(n.config),0).then(p=>{l(p)})},[n]);let m=he(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=cs(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return J(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ai(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(dn,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Qm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${La}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Rt,{type:"upgrade"})})})}):x(dn,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{globalThis.open(Qm,"_blank")},children:x(Rt,{type:"upgrade"})})})}async function GT(){try{let e=await qt(),t={url:globalThis.location.href,config:e},n=await Tn(t),r=document.createElement("div");r.id=P+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});CO(a,e,n),document.documentElement.appendChild(r)}catch{}}function CO(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=ke(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);wO(e,[i]),e.appendChild(r),Ha(x(Go,{lang:t.interfaceLanguage,children:x(EO,{ctx:n})}),r)}function wO(e,t){for(let n of t){if(te()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function EO(e){let[t,n]=W(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");J(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Ti,u),()=>{globalThis.document.addEventListener(Ti,u)}},[r]);let o=globalThis.innerWidth,s=Ve().any&&o<=450;return x(h4,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Gd(e){document.dispatchEvent(new CustomEvent(Ti,{detail:e||{}}))}function AO(e,t){for(let n of t){if(te()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Vd(){let e=await Sn(),t=await ln(),n={url:globalThis.location.href,config:e},r=await Tn(n),a=await Wp(r,t),i=ze(r.url,a?.blockUrls),o=await Yt();if(!a?.enable||i)return GT();let s=document.createElement("div");s.id=P+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return kO(u,e,o,r),document.documentElement.appendChild(s),s}function VT(){let e=document.getElementById(P+"-popup");e&&e.remove(),Vd()}function kO(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=ke(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);AO(e,[o]),e.appendChild(a),Ha(x(Go,{lang:t.interfaceLanguage,children:x(f4,{localConfig:n,ctx:r})}),a)}var b4=!1;async function KT(e){if(!e){let t=await Sn(),n={url:globalThis.location.href,config:t};e=await Tn(n)}e.config.debug&&k.setLevel("debug"),e.isTranslateExcludeUrl?k.debug("detect exclude url, do not inject anything."):(b4=!0,Vd().catch(t=>{k.debug("init popup error",t)}))}async function YT(){b4||(b4=!0,Vd().catch(e=>{k.error("init popup error",e)}))}async function QT(e,t){let n,r;if(t){let a=I0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Va(!1,r)}return{siteUrl:location.href,pluginVersion:Ht(),isMobile:Ve().any,platform:ha(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function JT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await za(l,"web"),l.json()))}function ZT(e,t,n){if(e=="manga")return SS(t,n);if(e=="web")return QT(t,n)}function XT(e,t,n,r,a,i){if(e=="manga")return TS(t,n,a,i,r);if(e=="web")return JT(t,n,a,i,r)}function Kd(e,t,n,r,a,i,o){let s=De.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; +`;function Kh(e){Ld().forEach(t=>{A_(e,t)})}function A_(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(Rd===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;Ve().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(En||Rd===!1)return;let p=Bd(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(I_(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&VS(t,o,m.target)&&(s=0,Qh(m,e,t,o))}function d(){Vh=l,t.removeEventListener("keyup",Vh),t.addEventListener("keyup",Vh,!0)}F_(e)}function KS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Id(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var xs;function k_(e){let t=e.parentElement;if(!t)return;xs=document.createElement("div"),xs.className=L+"-input";let n=`
`;xs.innerHTML=Bn?.createHTML(n)||n,t.appendChild(xs);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=E_,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Yh(){xs&&xs.remove()}async function D_(e,t=window){if(En)return;let r=globalThis.getSelection()?.toString();if(r){Zh(e,t,r,"shortcutKey");return}try{let h=function(){p=e.config.inputTargetLanguage;let y=m.split(" ")[0];y&&y[0]&&(y=y[0].toLowerCase()+y.slice(1)),y.trim()&&u.flatAlias.includes(y)?(p=Id(y,u.codeAlias),d=m.slice(y.length+1)):d=m},f=function(){p="";let y=KS(u),v=m.split(y);if(v.length<2)return;if(d=v[v.length-1],c=v[0],v.length>2){let w=m.lastIndexOf(d),C=m.slice(0,w).lastIndexOf(v[v.length-2]);c=m.slice(0,C+v[v.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let S=m.slice(c.length+1,m.indexOf(d)).trim();if(p=Id(S,u.codeAlias),!p){k.warn("not found alias",S);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(y=>i[y]=[y,...i[y]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;Ve().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;En=!0;let c="",d="",m=Nr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?h():(f(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&h());let g=YS(d,u)||"";if(!g||g.length>5e3)return;let b=await Xh({translateContent:g,targetLang:p,ele:l,selfWindow:t});b&&eT(e,t,l,c+b),En=!1}catch(a){throw En=!1,a}finally{En=!1,Yh()}}async function Qh(e,t,n,r){if(!En)try{let d=function(){u=t.config.inputTargetLanguage;let p=s.split(" ")[0];p&&p[0]&&(p=p[0].toLowerCase()+p.slice(1)),p.trim()&&r.flatAlias.includes(p)?(u=Id(p,r.codeAlias),o=s.slice(p.length+1)):o=s},m=function(){u="";let p=KS(r),g=s.split(p);if(g.length<2)return;if(o=g[g.length-1],i=g[0],g.length>2){let h=s.lastIndexOf(o),f=s.slice(0,h).lastIndexOf(g[g.length-2]);i=s.slice(0,f+g[g.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Id(b,r.codeAlias),!u){k.warn("not found alias",b);return}},a=Bd(n.document,t.rule.enableInputDeepActive);if(!a)return;En=!0;let i="",o="",s=Nr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?d():(m(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&d());let l=YS(o,r)||"";if(!l)return;if(t.config.isShowInputTranslationConsent&&!GS){GS=!0;let p=await WS(t);if(e.target&&e.target.focus(),p==="disable_once"||p==="disable_forever"){if(Rd=!1,p==="disable_forever"){let g=await Mt();g.enableInputTranslation=!1,g.isShowInputTranslationConsent=!1,await Wt(g)}else if(p==="disable_once"){let g=await Mt();g.isShowInputTranslationConsent=!1,await Wt(g)}return}else if(p==="close_disable_once"||p==="close_disable_forever"){if(Rd=!1,p==="close_disable_forever"){let g=await Mt();g.enableInputTranslation=!1,g.isShowInputTranslationConsent=!1,await Wt(g)}return}else if(p==="enable"){let g=await Mt();g.enableInputTranslation=!0,g.isShowInputTranslationConsent=!1,await Wt(g)}else if(p==="close_enable"){let g=await Mt();g.enableInputTranslation=!0,await Wt(g)}}let c=await Xh({translateContent:l,targetLang:u,ele:a,selfWindow:n});c&&eT(t,n,a,i+c),En=!1}catch(a){throw En=!1,a}finally{En=!1,Yh()}}function VS(e,t,n){if(!n)return!1;if(Jh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` +`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=L_(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` +`).reverse(),l=it()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function L_(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function YS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function QS(e,t){let n=t.innerHTML,r=Nr(t);return{html:n.replace(r,e),text:e}}function Fd(e,t,n=!1){let r=Nr(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Nr(e){return e.value||e.innerText||e.textContent}async function Or(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function P_(e,t,n){await Or(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Or(10)}async function JS(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Or(10))}async function ZS(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Or(20),(t.value||t.value==="")&&(t.value=e.text)}async function XS(e,t){Jh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Or(20))}var $S=[P_.bind(null,["plain"])];function Jh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function M_(e,t){if(Jh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function eT(e,t,n,r){await Or(50),await M_(t,n),await Or(50);let a=e.rule.inputConfig,i=QS(r,n);try{await Or(50),a?.execCommandDeleteEnable&&!Tr()&&Nr(n)?.trim()!=""&&(t.document.execCommand("delete"),await Or(50)),k.debug("clearContent",Nr(n))}catch(o){k.error(o)}for(let o of[...$S,ZS,XS,JS]){await o(i,n);let s=tT(t);if(!s)return;if(k.debug("setContent",o.name,Fd(i,s),Nr(s),i),Fd(i,s))break}}function tT(e){return e.document.activeElement}function R_(e,t=""){Ie("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function I_(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function F_(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Nt(t,"")||Number(await Nt(zm,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function Zh(e,t,n,r){if(En)return;try{let o=Bd(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;En=!0;let u=e.config.inputTargetLanguage;if(!n)return;let l=await Xh({translateContent:n,targetLang:u,ele:o,selfWindow:t,trigger:r});if(!l)return;o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement?i(t,o,l):a(e,t,o,l)}catch(o){throw En=!1,o}finally{En=!1,Yh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=QS(l,u);try{await Or(50),c?.execCommandDeleteEnable&&!Tr()&&Nr(u)?.trim()!=""&&(s.document.execCommand("delete"),await Or(50)),k.debug("clearContent",Nr(u))}catch(m){k.error(m)}for(let m of[...$S,ZS,XS,JS]){await m(d,u);let p=tT(s);if(!p)return;if(k.debug("setContent",m.name,Fd(d,p),Nr(p),d),Fd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function __(e){return e==="retry"||e==="changeService"}async function Xh(e){let{translateContent:t,targetLang:n,ele:r,selfWindow:a,trigger:i}=e,o=await He(ve(),{}),s=await Ne({text:t,pageLangs:["en"]});k.debug("translateContent",t,s);let u={text:t||"",id:0,from:s,to:n,url:"https://google.com",fromByClient:s,force:!0};k_(r),mt(zm,Date.now());try{o.specialAiAssistant=ya(o,o.inputTranslationService,!0);let l=await Oi(u,{...o,isRichTranslate:!1,translationService:o.inputTranslationService});return R_(o,i),l.text}catch(l){if(l instanceof j){let c=l.uiConfig(o);__(c.action)&&(c.action="none"),a.document.dispatchEvent(new CustomEvent(Un,{detail:c}))}}finally{En=!1}}var al=[];function $h(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),al.push(()=>{document.removeEventListener("click",i)})}function nT(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),al.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function _d(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),al.push(()=>{document.removeEventListener("touchstart",r)})}var e4={touchShortcutsOff:()=>{},"multipleClick.2":$h,"multipleClick.3":$h,"multipleClick.4":$h,"slide.left":nT,"slide.right":nT,"fingers.2":_d,"fingers.3":_d,"fingers.4":_d,"fingers.5":_d};async function aT(e,t=window){try{q_();let n=await ln(),r=f1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=O_(e,n,a.command),o=e4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{H_(a.command,e,t,l)})})}catch(n){k.error(n)}}function O_(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var N_=()=>{t4();let e=new CustomEvent(Sr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},j_=()=>{r4();let e=new CustomEvent(Sr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},U_=()=>{n4();let e=new CustomEvent(Sr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},rT=0,H_=(e,t,n,r)=>{if(!(new Date().getTime()-rT<200)){if(rT=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")N_();else if(e==="touchShortcutsToggleTranslationMask")U_();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")j_();else if(e==="touchShortcutsToggleTranslateTouchElement")zS(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Qh(r,t,n,s)}}};function q_(){al.forEach(e=>{e()}),al=[]}function iT(e){let{t}=oe(),{ctx:n,setSettings:r}=e,a=z_(e);return Hs(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(oi,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Bs[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(W_,{...e})}function z_({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=oe(),a=he(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=he(()=>Bs.filter(s=>!(s==="Off"||Bs.includes(a)&&s==="OtherCustom")),[e,a]);return he(()=>i.map(s=>{let u=r("mouseHoldKey",{key:ls(s)}),l=Bs.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function W_(e){let{ctx:t,setSettings:n}=e,{t:r}=oe(),a=t.config.generalRule,i=Object.keys(e4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(oi,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function oT(e){let{isAlwaysTranslateLang:t}=G_({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=oe();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:ii(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:zc(e.currentLang,u.matches),excludeMatches:zc(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qc(e.currentLang,u[i]),u[o]=zc(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function G_({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function uT({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=oe(),i=ke(),o=he(()=>{let s=[{title:a("widget.translateFile"),icon:_v,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:Hv,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(M1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:zv,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(P1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(dn,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(sT,{...s})}):x(sT,{...s}))})}function sT(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}async function a4(){let e=["bingGlobalConfig","baiduGlobalConfig",W3,Nm];for(let t of e)await re.storage.local.remove(t);te()||await u9(),await dp()}var V_=["bing","transmart","google","yandex"];function cT(e){let{t}=oe();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:as,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(In,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(In,`${e.type}_trial_pro_service`)}})]}):null}var lT="popup_trial_pro_show_count";function dT(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=W(null),s=Ce(!1);J(()=>{wi(lT,0).then(l=>{o(l)})},[]);let u=he(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!V_.includes(d)},[t,n,r,i]);return J(()=>{!u||i==null||s.current||(s.current=!0,Ei(lT,i+1))},[u,i,s,a]),{showTrialPro:u}}function mT(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function pT(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function i4(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=W(""),[c,d]=W(null),[m,p]=W(null);J(()=>{dt.get(ct,null).then(y=>{y?(d(y),p(ft(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,b=it();n&&b&&(g=n.generalRule.showSponsorOnSafari);let h=Wa(n),{showTrialPro:f}=dT({ctx:a,isHidden:h,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[h&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(Gv,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x($_,{openSharePage:r})]}),x(Vv,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(gS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(cT,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(Q_,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(Z_,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x(eO,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x($f,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(yS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(iT,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(oT,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(Y_,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(K_,{ctx:a})]}),x(uT,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:h})]}),x(J_,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function K_({ctx:e}){if(e.rule.imageRule?.type!="manga"||!wd(e.rule.imageRule))return null;let{t}=oe();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function Y_(e){let{t}=oe(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!he(()=>!i.disabled&&Km.includes(i.type||""),[n,Km,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Ic()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function Q_(e){let{t}=oe(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(dn,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Nv:jv})})}function J_(e){let{t,lang:n}=oe(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=Ae(y=>{i&&(o(v=>Oc({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=cu(i,s.rawUserConfig),d=ke(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[Ov,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(X_,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(Xf,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(In),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?b():y.value==="changeToTranslateTheMainPage"?h():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(In,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(k1,m):y.value==="cleanCache"?a4().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function b(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function h(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function Z_({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=oe(),l=r.config,c=he(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");Ii(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?Tr()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):te()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Zn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${ls(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function X_({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=oe(),o=Ht();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${L}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),Ly(`${ae}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[k2(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function $_(e){let{t}=oe();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),Uv]})}function eO({aiContextInfo:e,curUrl:t}){let{t:n}=oe();if(!e?.visible)return null;let r=he(()=>{let a=new URL(t);return a.searchParams.append(Xl,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[mT(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(dn,{text:n("contextDiffPreview",{1:r}),children:pT()})]})}var o4={get:(e,t,n)=>re.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>re.storage[n].set({[e]:t})};function Od(e,t,n){let[r]=W(()=>typeof t=="function"?t():t),[a]=W(n),[i,o]=W(r),[s,u]=W(!1),[l,c]=W("");J(()=>{o4.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=Ae(m=>{let p=typeof m=="function"?m(i):m;k.debug("new settings",p),o4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function s4(e,t,n){let r=[];return function(){let[i,o,s,u]=Od(e,t,n),l=Ae(c=>{for(let d of r)d(c)},[]);return J(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function gT(e,t){return s4(e,t,"sync")}var tO="userConfig",nO=null,rO=gT(tO,nO);function ka(e){let[t,n,r,a]=rO(),[i,o]=W();J(()=>{(async function(){let u=await Vc();o(u)})()},[t]);let s=Ae(async u=>{let l=typeof u=="function"?u(i):u;l&&u4(l);let{userConfig:c,promptPool:d,objectPool:m}=await Yp(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(d).length,d),k.debug("objectPool size",JSON.stringify(m).length,m),await Pr(Wc,d),await Pr(Gc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function u4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Q3e=1e3*3600*24;async function Nd(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await re.storage.local.set({[Fs]:t.toISOString()}),await l4(),te()||await F9()}catch(t){k.error("run cron task failed",t)}}async function fT(){let t=(await vn()).interval;if(t){let n=await re.storage.local.get(Fs);if(n&&n[Fs]){let r=n[Fs];if(Date.now()-new Date(r).getTime()r?(await re.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Vr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}var c1e=ke().REDIRECT_URL;var V1e=wo([]);function bT(e){let[t,n]=W(null);return J(()=>{qt().then(r=>{n(r),k.debug("current config",r)})},[]),J(()=>{qt().then(r=>{n(r)})},[e]),t}function yT(){let[e,t]=W(null);return J(()=>{Yt().then(r=>{t(r)})},[]),[e,r=>{t(r),zt(r)}]}var lO=Pn(cO,1e3);async function cO(e,t,n){try{if(t===null)return"noupdate";let r=await Yt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ga(t.proSyncAPIKey,t);return await c4(e,c),await zt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await vT(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Py(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ga(t.proSyncAPIKey,t);return await c4(e,u),await zt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||My(n)&&lO(n.token,e,t)},[e,n])}function dO(){let[e,t]=W(null);return J(()=>{dt.get(ct,null).then(n=>{t(n)})},[t]),e}function vT(e){return(location.href?.indexOf("popup.html")>0?Di:K)({responseType:"json",url:rt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function c4(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Di:K)({responseType:"json",url:rt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Ud(e){let{onClose:t}=e,[n,r]=W("Original"),[a,i,o,s]=ka(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});jd(a,i);let[u,l]=W(null),[c,d]=W(globalThis.location.href),[m,p]=W("auto"),[g,b]=W(null),[h,f]=W({visible:!1,preview:!1}),y=Ce(!1);J(()=>{!g||y.current||(y.current=!0,Ie("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=_=>{r(_.detail)};J(()=>(document.addEventListener(vi,v,!1),vn().then(_=>{l(_);let O=pt();p(O);let z=Ye();r(z),Nd(_.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",C)}),[]),J(()=>{vn().then(_=>{l(_)})},[a]),J(()=>{c&&u&&Hd().then(_=>{b(_)})},[c,u]),J(()=>{let _=r0();f({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let S=Ae((_,O)=>{T("change_translate_service",!1,{translation_service:`${_}_${O}`})()},[]);if(!u||!g)return null;return x(i4,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},aiContextInfo:h,request:K,onClose:A,onToggleEnabled:D,onChangeService:S,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:R,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{F(Fi(g.rule)||c)},openAboutPage:B,openSharePage:T("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:ba,onSetBuildinConfig:E9,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:I,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function w(_){p(_);let O=Fv(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:O})),rr(_)}function C(){d(globalThis.location.href)}function T(_,O,z={}){let V={trigger:"page_popup",...z};return()=>{Jt({method:_,data:V}),O&&t()}}function A(){t()}function D(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function I(_,O){let z=_;O&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${O}`),d0(z,!0),setTimeout(()=>{A()},50)}function F(_){_&&(Bo(!1,_),setTimeout(()=>{A()},50))}function R(_=!0,O=""){Ka(_,O),setTimeout(()=>{t()},50)}function B(){l0(),setTimeout(()=>{t()},50)}function P(){I9(),setTimeout(()=>{t()},50)}}function AT(){let[e,t]=W("Original");return J(()=>{let n=Ye();t(n);let r=a=>{t(a.detail)};return document.addEventListener(vi,r),()=>{document.removeEventListener(vi,r)}},[]),{pageStatus:e}}function kT(){let[e,t]=W("Original");return J(()=>{let n=Io();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Rs,r),()=>{document.removeEventListener(Rs,r)}},[]),{mangaStatus:e}}var ST=6,mO={position:"right",top:335};function DT({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=W(!1),l=Ce(!1);l.current=s;let c=Ce(null),d=Ce(!1),m=Ce(n.floatBallConfig||mO),p=Ce(0),g=Ce(0),b=Ce(0),h=Ce(!1),f=Ce(0),y=Ce(0),v=Ce(0),S=Ce(0),w=Ce(!1),C=Ae(T=>{if(!a)if(clearTimeout(c.current),T)u(T);else{let A=Ve().any||Zn();c.current=setTimeout(()=>{u(T),h.current=!1},A?3e3:0)}},[u,c,h,a]);return J(()=>{a||u(!1)},[a]),J(()=>{if(i.current&&m.current){let T=d4(m.current.top);m.current.top=T,i.current.style.top=`${T}px`,i.current.style.display="flex"}},[t,i]),J(()=>{if(!o.current||!i.current)return;let T=P=>{P.preventDefault&&P.preventDefault(),p.current=P.clientX,g.current=P.clientY,f.current=Date.now(),b.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=P.clientX,S.current=P.clientY,w.current=!1,(Ve().any||Zn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{TT({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",F),document.addEventListener("mouseup",D),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},A=P=>{if(P.preventDefault&&P.preventDefault(),!d.current||!i.current||(v.current=P.clientX,S.current=P.clientY,w.current))return;let _=P.clientY-g.current+b.current,O=d4(_);i.current.style.top=`${O}px`},D=async P=>{if(P.preventDefault&&P.preventDefault(),B(),d.current=!1,clearTimeout(c.current),h.current||C(!1),w.current)return;TT({startX:p.current,startY:g.current,endX:P.clientX,endY:P.clientY})||(clearTimeout(y.current),e());let O=d4(P.clientY-30);m.current.top=O;let z=await On();ba({...z,floatBallConfig:m.current})},I=P=>{P.preventDefault&&P.preventDefault(),T(P.changedTouches[0])},F=P=>{P.preventDefault&&P.preventDefault(),A(P.changedTouches[0])},R=P=>{P.preventDefault&&P.preventDefault(),D(P.changedTouches[0])},B=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",T),o.current.addEventListener("touchstart",I),()=>{o.current&&(o.current.removeEventListener("mousedown",T),o.current.removeEventListener("touchstart",I))}},[t,o,i,c,d,n,C,e]),J(()=>{if(Ve().any)return;let T=D=>{D.target===i.current&&!h.current||!l.current&&wT(D)&&c.current||(h.current=!0,C(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&wT(D)&&c.current)){if(d.current){h.current=!1;return}D.target===i.current&&!h.current||C(!1)}};return i.current?.addEventListener("mouseover",T),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",T),i.current?.removeEventListener("mouseout",A)}},[i,d,C,t,h,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function TT({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>ST||i>ST}function LT(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=he(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=he(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=he(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=he(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function PT(){let[e,t]=W(!1);return J(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var CT="hasShownFloatingBallGuide",pO="2024-01-06";function MT(e,t){let[n,r]=W(!1),a=Ae(()=>{mt(CT,new Date().toISOString()),r(!0)},[r]);J(()=>{if(!e.config.enableShowFloatingBallGuide||pt()==e.targetLanguage)return;let o=We(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Nt(CT,""),u=await Nt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(jl,o),()=>{document.removeEventListener(jl,o)}},[]);let i=Ae(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function RT(){document.dispatchEvent(new CustomEvent(jl))}function IT(e,t){let n=Ce(0),[r,a]=W(!0),[i,o]=W(!1),s=ka(),[u,l]=s,{t:c}=oe(),d=Ae(()=>{e?.config.floatBallTooltipRule&&(Ve().any||Zn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);J(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ve().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=Ae(async()=>{if(!e)return;n.current=n.current+1,d();let b=await ln();l(h=>{let f={...b};return Ve().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=he(()=>Ve().any||!r||Zn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=he(()=>{if(Ve().any||Zn())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:ii(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${ls(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function d4(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var m4=0;function wT(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(m4=Date.now(),!0):Date.now()-m4<100}function FT(e,t){J(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Si,n),()=>{globalThis.document.addEventListener(Si,n)}},[e,t])}function BT(e,t){let n=Ce(e);n.current=e,J(()=>{!n.current||!t||Ie("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var ET="imt-float-ball-active";function _T(e){J(()=>{let t=!!document.querySelector(`meta[name='${ET}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(ET)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(Ol,n),()=>{document.removeEventListener(Ol,n)}},[])}function OT(e){document.dispatchEvent(new CustomEvent(Ol,{detail:{active:e}}))}function gO({isOpen:e,onClose:t,children:n}){let[r,a]=W(e);return J(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Et,{children:[e&&x("div",{className:`${L}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${L}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${L}-sheet-content`,children:n})})]})}var qd=gO;var Vi="imt-fb";function zd(e){if(globalThis.innerWidth<=385)return x(qd,{isOpen:e.visible,onClose:e.onClose,children:x(NT,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${L}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${L}-popup-overlay`,class:`${L}-popup-overlay`,children:x("div",{class:`${L}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(NT,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function NT(e){let{t}=oe(),[n,r]=W("UntilNext"),a=Ya()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Vi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Vi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Rt,{type:"modal-close"})})]}),x("div",{class:`${Vi}-close-radio-content mt-3`,children:o.map(s=>x(fO,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Wr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Vi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Vi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function fO(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=hO(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Vi}-radio-sel`:`${Vi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function hO(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}function jT(e){return le.ASSETS_BASE_URL+e}var Ki="imt-fb";function UT(e){let{t}=oe(),n=a=>{a?.target?.id===L+"-popup-overlay"&&e.onClose()},r=he(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:L+"-popup-overlay",class:`${L}-popup-overlay`,children:x("div",{class:`${Ki}-guide-container`,style:r,children:[x("img",{class:`${Ki}-guide-bg ${e.fixedPosition}`,src:bO}),x("div",{class:`${Ki}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Ki}-guide-img`,src:jT("images/float_ball_intro.png")}),x("div",{class:`${Ki}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ve().any?` +${t("floatBall.longPress")}`:""]}),x("div",{class:`${Ki}-primary-btn ${Ki}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var bO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var HT="imt-manga";function qT({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=oe(),o=d=>{d?.target?.id===L+"-popup-overlay"&&t()},s=he(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=Ae(()=>{if(t(),!a.isPro){if(a.user)return window.open(T1);window.open(v1)}},[a,t]);return e?x("div",{onClick:o,id:L+"-popup-overlay",class:`${L}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${HT}-guide-bg ${r}`,src:`${z3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${HT}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Rt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var Da="imt-fb";function p4(e){let{t}=oe(),n=ka(),[r,a,i,o]=n;jd(r,a);let s=bT(r),u=e.ctx,{isFullScreen:l}=PT(),[c,d]=W(!1),m=Ce(c);m.current=c;let[p,g]=W(!0),{pageStatus:b}=AT(),h=cu(u,r),f=Ae(()=>{if(h?.clickType==="popup")return d(!0);h?.clickType==="translate"&&Jt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[h,Jt,d]),y=Ae(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:w,ballRef:C,floatBallConfigRef:T,setActive:A}=DT({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),D=h?.fixedPosition||"right",I=D==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:R}=MT(e.ctx,h),{closeTransform:B,logoContainerTransform:P,settingTransform:_,mangaTransform:O}=LT(h,w||F);BT(u,w);let{tooltipDelay:z,disableTooltip:V,tooltipText:ie,handleShowTooltip:je}=IT(u,b);FT(d,m),_T(A);let N=globalThis.innerWidth<=385;return v?x(Et,{children:x("div",{class:`${Da}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||F||c?"all":"none"},ref:S,children:[x(yO,{ctx:u,setVisible:g,closeTransform:B,setActive:A,getModalStyle:()=>zT(T.current.top,300,D)}),x(dn,{enableMobile:!0,text:ie,position:I,delay:z,onShow:je,disable:V,children:x("div",{class:`${Da}-btn ${D} btn-animate `,ref:C,style:{transform:P,opacity:w||F?1:.5},children:x("div",{children:[x(Rt,{type:"logo"}),x(Rt,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),x(SO,{ctx:u,mangaTransform:O,floatBallConfigRef:T,fixedPosition:D,hidden:F}),x("div",{style:{marginTop:"12px",transform:_},class:`${Da}-more-buttons btn-animate`,children:[x(dn,{text:t("translateFileTooltip"),multiple:!0,position:I,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{d0(D1,!0)},children:x(Rt,{type:"file"})})}),x(dn,{text:t("floatBall.setting"),position:I,containerClass:"btn-animate",children:x("div",{class:`${Da}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Rt,{type:"setting"})})}),x(CO,{ctx:u,tooltipPosition:I,rule:h,active:w})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:_},class:`${Da}-more-buttons btn-animate`,children:x(dn,{text:t("reportTip"),position:I,containerClass:"btn-animate",children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xi,{detail:{type:"webReport"}}))}})})}),x(g4,{onClose:()=>{A(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>zT(T.current.top,500,D)}),x(UT,{visible:F,top:T.current.top,fixedPosition:D,onClose:()=>{R(),A(!1)}})]})}):null}function yO(e){let{t}=oe(),[n,r]=W(!1),a=ka(),[i,o,s,u]=a,l=cu(e.ctx,i),c=Ae(m=>{e.ctx&&o(p=>Oc({...p},m))},[e.ctx,o]),d=Ae(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Rt,{type:"close"})}),x(zd,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function g4(e){let t=n=>{n?.target?.id===L+"-popup-overlay"&&e.onClose()};return e.isSheet?x(qd,{isOpen:e.visible,onClose:e.onClose,children:x(Ud,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:L+"-popup-overlay",class:`${L}-popup-overlay`,children:x("div",{class:`${L}-popup-wrapper`,style:e.getModalStyle(),children:x(Ud,{onClose:e.onClose})})}):null}function xO(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var zT=(e,t,n)=>{let a=xO().height,i={position:"fixed"},o=0;return W4()&&(e=vO.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},vO={position:"right",right:0,top:335};function SO({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=W(!1),{mangaStatus:u}=kT(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=oe();J(()=>{c||On().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),zt(p))})},[c,s]);let m=Ae(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await dt.get(ct,null);if(ft(g)){e.user=g,e.isPro=!0,Jt({method:"toggleTranslateManga"});return}s(!0);return}Jt({method:"toggleTranslateManga"})},[]);return!wd(l)||r||!l?.enable?null:x(Et,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Rt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Rt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Rt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(dn,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xi,{detail:{type:"mangaReport"}}))}})})]}),x(qT,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var TO="float_ball_upgrade_show_count";function CO(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=oe(),o=Wa(n.config),s=Ce(!1),[u,l]=W(null),c=he(()=>cs(n.config),[n]),d=p=>cs(p)?.upgradeShowCountCacheKey||TO;J(()=>{wi(d(n.config),0).then(p=>{l(p)})},[n]);let m=he(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=cs(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return J(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ei(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(dn,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Qm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${Da}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Rt,{type:"upgrade"})})})}):x(dn,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(Qm,"_blank")},children:x(Rt,{type:"upgrade"})})})}async function WT(){try{let e=await qt(),t={url:globalThis.location.href,config:e},n=await Sn(t),r=document.createElement("div");r.id=L+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});wO(a,e,n),document.documentElement.appendChild(r)}catch{}}function wO(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=ke(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);EO(e,[i]),e.appendChild(r),Ua(x(Go,{lang:t.interfaceLanguage,children:x(AO,{ctx:n})}),r)}function EO(e,t){for(let n of t){if(te()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function AO(e){let[t,n]=W(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");J(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Si,u),()=>{globalThis.document.addEventListener(Si,u)}},[r]);let o=globalThis.innerWidth,s=Ve().any&&o<=450;return x(g4,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Wd(e){document.dispatchEvent(new CustomEvent(Si,{detail:e||{}}))}function kO(e,t){for(let n of t){if(te()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Gd(){let e=await vn(),t=await ln(),n={url:globalThis.location.href,config:e},r=await Sn(n),a=await Wp(r,t),i=We(r.url,a?.blockUrls),o=await Yt();if(!a?.enable||i)return WT();let s=document.createElement("div");s.id=L+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return DO(u,e,o,r),document.documentElement.appendChild(s),s}function GT(){let e=document.getElementById(L+"-popup");e&&e.remove(),Gd()}function DO(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=ke(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);kO(e,[o]),e.appendChild(a),Ua(x(Go,{lang:t.interfaceLanguage,children:x(p4,{localConfig:n,ctx:r})}),a)}var f4=!1;async function VT(e){if(!e){let t=await vn(),n={url:globalThis.location.href,config:t};e=await Sn(n)}e.config.debug&&k.setLevel("debug"),e.isTranslateExcludeUrl?k.debug("detect exclude url, do not inject anything."):(f4=!0,Gd().catch(t=>{k.debug("init popup error",t)}))}async function KT(){f4||(f4=!0,Gd().catch(e=>{k.error("init popup error",e)}))}async function YT(e,t){let n,r;if(t){let a=R0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Ga(!1,r)}return{siteUrl:location.href,pluginVersion:Ht(),isMobile:Ve().any,platform:ga(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function QT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await qa(l,"web"),l.json()))}function JT(e,t,n){if(e=="manga")return xS(t,n);if(e=="web")return YT(t,n)}function ZT(e,t,n,r,a,i){if(e=="manga")return vS(t,n,a,i,r);if(e=="web")return QT(t,n,a,i,r)}function Vd(e,t,n,r,a,i,o){let s=De.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; @@ -6294,20 +6294,20 @@ ${t("floatBall.longPress")}`:""]}),x("div",{class:`${Ki}-primary-btn ${Ki}-guide flex: 1;`),p.addEventListener("input",function(){C.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),m.append(p),a.append(m);let g=document.createElement("input");g.type="email",g.id="emailReport",g.size=30,g.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";mt.get(dt,null).then(D=>{D&&(h=D.email,g.value=D.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let D=l(this.value);C.disabled=c(),D?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(v),w.append(S),a.append(w);let C=document.createElement("button");C.className=P+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let D=await ZT(e,t,v.checked);C.uploading=!0;try{$T(C,!0),await XT(e,t,p.value,g.value!==h?g.value:"",v.checked,D),DO(s,r,a,i,o)}catch{LO(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,$T(C,!1)}},i.appendChild(C);let T=document.createElement("div");T.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(T);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function $T(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(P+"-loading-spinner"),e.appendChild(n))}function DO(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let b="";dt.get(ct,null).then(D=>{D&&(b=D.email,g.value=D.email)});let h=document.createElement("label");h.htmlFor=g.id,h.innerText=s("reportInfo.email"),h.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(h),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let D=l(this.value);C.disabled=c(),D?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(v),w.append(S),a.append(w);let C=document.createElement("button");C.className=L+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let D=await JT(e,t,v.checked);C.uploading=!0;try{XT(C,!0),await ZT(e,t,p.value,g.value!==b?g.value:"",v.checked,D),LO(s,r,a,i,o)}catch{PO(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,XT(C,!1)}},i.appendChild(C);let T=document.createElement("div");T.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(T);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function XT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(L+"-loading-spinner"),e.appendChild(n))}function LO(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=P+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function LO(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=L+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function PO(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=P+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Kd(s,e,t,r,a,i,o)},i.append(d)}var ra=null;async function eC(e,{srcUrl:t}){if(!ys(e))return;if(!await Ws(e)){tl("image_right_menu");return}if(!ra){k.error("rightMenu image ele not found",t,ra);return}if(ra.translationStatus!=="translating"){if(ra.hasTranslate){pi(ra);return}if(t!==ra.src)try{let r=new URL(t),a=new URL(ra.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,ra.src,r);return}Aa(e,ra,!0,"image_right_menu")}}function tC(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ra=e.target)})}var nC=0;function sl(e){let t=Date.now();if(t-nC<2e3||(nC=t,PO()))return;let n=`${P}-modal-root`,r=`${P}-modal`,a=document.getElementById(n),i=`${P}-modal-title`,o=`${P}-modal-body`,s=`${P}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,ol)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=ke();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=P+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=P+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,ol)}setTimeout(()=>{MO()},100)}function PO(){let e=document.querySelector(`#${P}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-modal`)?.style.display=="block":!1}function MO(){let e=document.querySelector(`#${P}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function ol(e,t=!1){let n=document.querySelector(`#${P}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function rC(e,t,n="sameLang",r,a,i,o){let s=De.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();Wt({...l,sameLangCheck:!1}),o(i,!0)})}var aC=0;async function iC(e){let t=Date.now();if(t-aC<2e3||(aC=t,RO()))return;let n=`${P}-toast-root`,r=`${P}-toast`,a=document.getElementById(n),i=`${P}-toast-msg`,o=`${P}-toast-content`,s=`${P}-toast-hidden`,u,l,c=()=>{l&&y4(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,y4);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=ke();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=P+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,y4)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{IO()},100),d=setTimeout(c,2500)}function RO(){let e=document.querySelector(`#${P}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-toast`)?.style.display=="flex":!1}function IO(){let e=document.querySelector(`#${P}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-toast`);t&&(t.style.display="flex")}}function y4(e,t=!1){let n=document.querySelector(`#${P}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function x4(e,t,n,r="retry",a,i,o,s,u){let l=De.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=Ze.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${P}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",oC({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(S1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Jl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(E1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)},v4(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=Ze.sanitize(m),p.onclick=()=>{sC(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=Ze.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Wt(g),oC({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=P+"-btn",p.innerHTML+=Ze.sanitize(m),s.appendChild(p)}function oC(e){Kr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Sr,{detail:e});globalThis.document.dispatchEvent(t)}var uC=!1,It={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},cC=[()=>{jn.unbind()}],lC=[...cC],FO=Yn(async()=>{await Ya()},50),BO=Yn(async()=>{await c0()},50),_O=Yn(async()=>{await F9()},50),OO=Yn(async()=>{await I9()},50),dC=Yn(e=>{Jt({method:e,data:{trigger:"userscript_menu"}})},50),S4=!1,NO=Mn(()=>{let e=globalThis.getSelection()?.toString().trim();!S4&&e&&e.length>0?_i({text:e}):_i({})},50),jO=()=>{S4=!0,setTimeout(()=>{S4=!1},100)};It.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(uC)return;uC=!0,te()||A9(),n.addEventListener("securitypolicyviolation",It.handleSecurityPolicyViolation),document.addEventListener(Y+"DocumentMessageUser",fC),document.addEventListener(Y+"DocumentMessageUpdateUser",hC),document.addEventListener(Y+"ChangeSuccessService",bC.bind(null,t)),document.addEventListener(Y+"ChangeService",yC.bind(null,t)),document.addEventListener(fn,It.showErrorByEvent.bind(null,t)),document.addEventListener(_l,It.showToastByEvent.bind(null,t)),document.addEventListener(vi,It.showModal.bind(null,t)),n.addEventListener(Y+"EbookLoaded",It.handleEbookLoaded),n.addEventListener(Z3,It.handleThirdPartyTell.bind(null,t)),n.addEventListener(X3,It.eventUpload.bind(null,t)),n.addEventListener(jl,a=>{Ke()||Jf(a,t)}),n.addEventListener(e1,Fv),n.addEventListener("click",a=>{It.handleClick(a,t)}),document.addEventListener("selectionchange",NO),document.addEventListener("contextmenu",jO),tC(),Ke()&&e.addEventListener("message",It.handleGlobalMessage,!1),te()&&(Ke()||n.addEventListener(Sr,It.handlePopupInit)),Ke()||Za.rootIframe(Kl).handleAsk("throttleRequest",v6)};function ll(e,t){qO(),It.SetupDomListenersForOnce(t,e),te()&&(Ke()||(Zf(e.config),zO(e.config))),Zn()&&iT(e,t),it()&&Zf(e.config)}It.handlePopupInit=e=>{YT()};It.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Fl&&Kr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};It.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){ol(n);return}let r=n.getAttribute(`data-${P}-event`);r&&Fe(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${P}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),mC({method:"retryFailedParagraphs"}),ol(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${P}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}sl(x4.bind(null,t,o,i,s));return}}};async function UO(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Wt(e)}async function HO(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Wt(e)}It.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;iC(rC.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};It.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;sl(x4.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};It.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?sl(Kd.bind(null,"manga",e)):r=="webReport"&&sl(Kd.bind(null,"web",e))};It.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=C4()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")mC({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")d0(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")UO();else if(i.type==="toggleEnableInputTranslation")HO();else if(i.type==="syncAppSetting")pC(i.data);else if(i.type==="translatePage")WO(i.data);else if(i.type==="getAsyncTranslationServiceList")a=wc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=P0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await GO(i.data,o)}catch(s){ul(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await VO(o,i.data)}catch(s){ul(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await l0(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await Rx();else if(i.type==="sharePage")Jf({detail:i.data},r);else if(i.type==="switchTranslationMode")T4(i.data);else if(i.type=="getAsyncAiAssistants")a=await R6();else if(i.type=="addAiAssistantAsync")a=await C0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await C0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await E4(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await w4(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Po("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await ob(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await N9());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await j9());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await sb(i.data));else if(i.type==="openPopup")Gd({...i.data,open:!0});else if(i.type==="closePopup")Gd({...i.data,open:!1});else if(i.type==="togglePopup")Gd({...i.data});else if(i.type==="getPageStatusAsync")a=Ye();else if(i.type==="restorePage")KO();else if(i.type==="getPageLanguageAsync")a=pt();else if(i.type==="showFloatBallGuide")IT();else if(i.type=="getAsyncDetectAndSetLanguage")a=await gC(i.data);else if(i.type=="setFloatBallActive")NT(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Fo(r,s,o,!0)}else dC(i.type);a!=null&&i.id&&ul(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};It.handleEbookLoaded=e=>{setTimeout(()=>{Yd()},10)};It.handleSecurityPolicyViolation=e=>{le.HAS_CSP_ERROR="1"};It.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Fe(n.name,[{name:n.name}],{...e})};function qO(){lC.forEach(e=>{e()}),lC=cC}function zO(e){if(te()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=lc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=De(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:qm,title:De(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:zm,title:De(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Um,title:De(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Hm,title:De(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Um?FO():i.id===Hm?BO():i.id===zm?_O():i.id===qm?OO():dC(i.id)},i.key)}}function mC(e){Kr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Sr,{detail:e});globalThis.document.dispatchEvent(t)}async function pC(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await We(Se(),t)}async function WO(e){let t=await pC(e);Gn(t)}function ul(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function GO({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Qt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function VO(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Qt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof j?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof j?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function KO(){Ye()!=="Original"&&_r()}var Yi={};async function A4(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Be({text:t,minLength:200,pageLangs:[Ct(),"en"]});return rr(n),n}async function xC(e){let t=0,n=0;_n("Translating");let r=pt(),a=t0(),i=[...document.querySelectorAll(".source-text")];if(ko(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");wt(c.node,"id",c.id+""),d&&(Do(d,c.id)?.remove(),d.appendChild(cu(e,c.id,!0)))}),await s(l),await st(0)}}catch(u){throw u}finally{t=0,n=0,_n("Translated")}async function s(u){await Qt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Do(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=Ze.sanitize(`${l.message}`),Yi[m]={ok:!1,sentence:d},SC(u,e,t,n,l)):c&&(g.innerHTML=Ze.sanitize(c.text),Yi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function vC(e){let t=0,n=0;_n("Translating"),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yi),a=[],i=[];for(let o of r){let s=Yi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yi[o],c.appendChild(cu(e,o)),i.push(s.sentence))}}}try{await Qt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Do(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=Ze.sanitize(`${o.message}`),Yi[l]={ok:!1,sentence:u},SC(i,e,t,n,o)):s&&(d.innerHTML=Ze.sanitize(s.text),Yi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,_n("Translated")}}function k4(){_n("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function SC(e,t,n,r,a){if(!(a instanceof j))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(fn,{detail:i}))}var Qd={};async function TC(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Be({text:t,pageLangs:["en"]});return rr(n),n}async function CC(e){_n("Translating"),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Qd),n=[];for(let r of t){let a=Qd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${zl}='${r}']`);o&&o.remove(),n.push(a)}}try{Mu(),await _0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{_n("Translated")}}function wC(e){Object.values(Qd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=Xo(e,t.targetNodes);ni(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),_n("Original")}async function EC(e){_n("Translating");let t=nu(),n=qr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Jo(l,e);let c=l.body;if(!c)continue;zr(l.documentElement,e.state.translationMode);let d=on(e);d.isModifyImage=!1;let m=[];await Ta({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await st(0)}o(a),_n("Translated");function o(u){document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=R0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:F0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await hf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),Qd[p.id]=p)}_0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}var ne=null,Jd={},vs,AC=!1;async function Yd(){_o.clearStrictTicks();let e=await We(Se(),{}),t=await On();if(k.debug("init page ctx",e),Av(e),e.rule.pageType=="subtitleBuilder"){A4();return}if(e.rule.pageType=="ebookBuilder"){TC();return}if(vs||(vs=e.state.translationTheme),e.rule.urlChangeDelay&&await st(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await oN(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let s=Qa(),u=document.createElement("meta");u.name=P+"-options-url",u.content=s;try{document.head?.appendChild?.(u)}catch(l){k.warn("inject options url failed",l)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(u=>{let l=document.createElement("meta");l.name=u,l.content=e.rule.globalMeta[u],document.head?.appendChild?.(l)}),e.rule.initialGlobalAttributes&&lx(document.body,e.rule.initialGlobalAttributes),dN(e),e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let s=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");s&&(s.value="helloworld",s.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),s.dispatchEvent(new Event("change")))}AC||(AC=!0,Ke()&&e.rule.useIframePostMessage&&await Y9());let n=e.sourceLanguage;n==="auto"?n=await kC():rr(n);let r=Ty(e,n);if(r&&(e=await We(Se(),{translationMode:r})),e.rule.isInjectMeta)try{let s=await Po(n,e.targetLanguage),u=document.createElement("meta");u.name=P+"-meta",u.content=Ts(JSON.stringify(s)),document.head?.appendChild?.(u)}catch(s){k.warn("inject meta failed",s)}let a=new URL(e.url);(a.searchParams.get("imt_refresh_rule")==="1"||a.searchParams.get("imt_refresh_rule")==="true")&&await d4(),await cN(e);let o=lN(e);if(!o&&!e.isTranslateExcludeUrl&&(k.debug(`detect page language: ${e.url} ${n}`),ja(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto"||J9(n,e.config.translationLanguagePattern)&&(o=!0,k.debug(`match language pattern ${n}, auto translate`))),e.rule.pageType=="ebookBuilder"&&(o=!1),e.rule.pageType!=="pdfReader"&&qs(t)&&Gh(e),o)ne.state.isAutoTranslate=!0,Gn(ne);else if(k.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(ja(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Jd[e.translationService]||(Jd[e.translationService]=!0,Ke()||$g(e).catch(s=>{k.warn("init translation engine error",s)})))}}async function r4(e){if(Ye()==="Original"){let t={};vs&&(t.translationTheme=vs),ne&&(t={...ne.state,...t});let n=await We(Se(),t);if(e?.trigger=="right_menu"&&Fi(n?.rule)){let r=Bi(n.rule);if(r){Bo(!0,r||Se());return}}await Gn({...ne,sourceProgram:"html"},e)}else(Ye()==="Translated"||Ye()==="Error")&&_r()}async function YO(){let e=Io();ne||(ne=await We(Se(),{})),e=="Original"?MS(ne):(RS(),mr("Original"))}function QO(){e9("enableEditTranslation",!ne?.config.enableEditTranslation);let e=Qc("enableEditTranslation");ne&&(ne.config.enableEditTranslation=e);let t=qu();t&&(t.ctx.config.enableEditTranslation=e),document.querySelectorAll(`font.notranslate.${Lt}`).forEach(n=>{e?n.setAttribute("contenteditable","true"):n.removeAttribute("contenteditable")})}async function JO(){if(ne=await We(Se(),{}),ne.rule.pageType=="ebookBuilder")return CC(ne);if(ne.rule.pageType=="subtitleBuilder")return vC(ne);Iv()}async function a4(e){if(Ye()==="Original"){ne=await We(Se(),{}),vs||(vs=ne.state.translationTheme);let t="mask";ne.state.translationTheme==="opacity"&&(t="opacity"),ne=await We(Se(),{translationTheme:t}),await Gn(ne,e)}else if(Ye()==="Translated"){let t="mask";ne?.state?.translationTheme==="opacity"&&(t="opacity");let n=xy().filter(i=>i.contentDocument?.body).map(i=>i.contentDocument.body),r=[ne.mainFrame,...n],a=ne?.state.translationTheme;for(let i of r){let o=xb(i,oo,!0);a==="mask"||a==="opacity"?o!=="none"?wt(i,oo,"none",!0):wt(i,oo,t,!0):o!=="mask"&&o!=="opacity"?wt(i,oo,t,!0):wt(i,oo,"none",!0)}}}async function kC(){let e=await We(Se(),{});return e.rule.pageType=="subtitleBuilder"?A4():Rv(e)}function ZO(e){Ye()==="Original"?xC(e):k4()}function XO(e){Ye()==="Original"?ud(e):ss()}async function _r(){fu(""),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"restorePage",payload:{}})}));let e=await We(Se(),{});if(e.rule.pageType=="subtitleBuilder"){k4();return}else e.rule.pageType=="ebookBuilder"&&wC(e);ss()}function $O(e){e.config.sameLangCheck&&!(e.rule.detectParagraphLanguage||e.state.isDetectParagraphLanguage)&&pt()==e.targetLanguage&&document.dispatchEvent(new CustomEvent(_l,{detail:{type:"sameLang"}}))}async function Gn(e,t){if(ba("initial"),$O(e),Ye()!=="Original"&&await _r(),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Jd[e.translationService]||(Jd[e.translationService]=!0,Ke()||$g(e).catch(r=>{k.warn("init translation engine error",r)})),e.specialAiAssistant=Fr(e,e.translationService,!0),uN(e,t),e.rule.pageType=="subtitleBuilder"){ZO(e),fu("yes");return}if(e.rule.pageType=="ebookBuilder"){EC(e),fu("yes");return}XO(e),fu("yes")}async function eN(e,t){let n=ne?.translationService;if(Ye()==="Original"||n!=e){ne=await We(Se(),{translationService:e});let r=De(ne.config.interfaceLanguage,`translationServices.${e}`);e.startsWith("custom-ai")&&(r=ne.config.translationServices[e].name);let a=De(ne.config.interfaceLanguage,"tempChangeTransToService",{service:r});fl({text:a}),await Gn(ne,t)}else{_r();let r=await Sn(),a={url:Se(),config:r,state:{}},i=await Tn(a);ne=await We(Se(),{translationService:i.translationService})}}async function tN(e){Ye()==="Original"?await D4(e):(Ye()==="Translated"||Ye()==="Error")&&(ne=await We(Se(),{}),ne.state.translationArea!=="main"?await D4(e):_r())}async function D4(e){ne=await We(Se(),{translationArea:"main"}),await Gn(ne,e)}async function DC(e){ne=await We(Se(),{translationArea:"body"}),await Gn(ne,e)}async function gC(e){let t=[Ct(),"en"],n=await Be({text:e,pageLangs:t});return rr(n),n}async function i4(e){let t=await We(Se(),{}),n=t.state.translationMode=="dual"?"translation":"dual";if(t=await We(Se(),{translationMode:n}),Ye()==="Original"){Gn(t,e);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(n)}async function T4(e){if(ne=await We(Se(),{translationMode:e}),Fe("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ne,sourceLanguage:"unknown"}),Ye()==="Original"){Gn(ne);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function nN(e){if(Ye()==="Original")await DC(e);else if(Ye()==="Translated"||Ye()==="Error"){let t={};ne&&ne.state&&(t=ne.state),ne=await We(Se(),t),ne.state.translationArea!=="body"?(ne.state.translationArea="body",ne=await We(Se(),ne.state),await Gn(ne,e)):_r()}}async function LC(e){ne=await We(Se(),{translationStartMode:"immediate"}),await Gn(ne,e)}async function rN(e){Ye()==="Original"?await LC(e):(Ye()==="Translated"||Ye()==="Error")&&_r()}async function PC(){let e=await We(Se(),{});if(!ze(e.url,e.config.inputStyleBlockUrls)){let n=ke().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;hn(document,n,ql)}e.rule.pageType&&e.rule.pageType!=="html"||e.config.enableInputTranslation&&Kh(e)}function C4(){return ne}async function We(e,t){let n=Object.keys(t);if(ne){let r={url:e,config:ne.config,state:{...ne.state,...t}};ne=await Tn(r)}else{let r=await Sn(),a=t;n.length===0&&(a=void 0),ne=await Tn({url:e,config:r,state:a})}return ne.state&&ne.state.translationService&&(ne.translationService=ne.state.translationService),ne.state&&ne.state.targetLanguage&&(ne.targetLanguage=ne.state.targetLanguage),ne}async function aN(){let e=await Mt()||{},t=e.generalRule||{},n=t["subtitleRule.add"]||{},r=!n.preTranslation;await Wt({...e,generalRule:{...t,"subtitleRule.add":{...n,preTranslation:r}}}),r?fl({text:De(ne.config.interfaceLanguage,"videoSubtitlePreTranslationOn")}):fl({text:De(ne.config.interfaceLanguage,"videoSubtitlePreTranslationOff")}),setTimeout(()=>{window.location.reload()},1e3)}async function qd(){let e=await Sn();Qc("enableEditTranslation")!=null&&(e.enableEditTranslation=Qc("enableEditTranslation"));let t;ne&&ne.state&&(t=ne.state);let n={url:Se(),config:e,state:t},r=await Tn(n);return r.state&&r.state.translationService&&(r.translationService=r.state.translationService),ne=r,Kf(ne),await iN(ne),r}async function iN(e){let t=await On();ll(e,window),qs(t)&&Gh(e),e.config.enableInputTranslation&&Kh(e)}function oN(e,t=3e3){return new Promise((n,r)=>{let a=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,i=setInterval(()=>{e.every(s=>document.querySelector(s)!==null)&&(clearInterval(i),a&&clearTimeout(a),n(null))},50)})}async function fC(e){let t=e.detail,n=Mt();ft(t)&&await vT(t.token,n,Wt),mt.set(dt,t);let r=await mt.get(Ym,!1);mt.set(Ym,!1),document.dispatchEvent(new CustomEvent(Y+"DocumentMessageUserResult",{detail:r?"close":"success"})),mu()}function hC(e){k.debug("update user info",e);let t=e.detail;mt.set(dt,t),mu()}async function bC(e){let t=await Mt();if(t.translationService)return;let n=e.config.translationService,r=await v4(e,n);if(e.translationService!==r){if(!r){Fe("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}],e);return}t.translationService=r,Wt(t),e.translationService=r,Fe("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}],e)}}async function yC(e,t){let n=t.detail;if(!e.rule.allowInnerInvoke)return;let r=n.translateService;if(!r)return;let a=n.provider,i=await Mt();i.translationService=r,a&&i?.translationServices?.[r]?.provider&&(i.translationServices[r].provider=a),i.translationServiceChangedbyUserAt=new Date().toISOString(),Wt(i)}async function v4(e,t,n=!0,r){let a=r||e.rule.detectionServiceOrder||["google","bing","transmart","yandex"];return a.sort((i,o)=>i===t?n?-1:1:o===t?n?1:-1:0),await ox(a,e)}async function sC(e){let t=await Mt();t.translationService=e,await Wt(t);let n=await We(Se(),{});n.translationService=e,await Gn(n)}var L4={interfaceLanguage:"",targetLanguage:"",translationService:"",aiAssistantIds:[],subtitleTranslateService:"",inputTranslationService:"",mouseHoverTranslationService:""};async function w4(e,t){let n=await Mt(),r=!1;return Object.keys(L4).forEach(a=>{let i=t[a];i!=null&&((a==="targetLanguage"||a==="interfaceLanguage")&&(i=$(i)),n[a]=i,r=!0)}),r&&(c4(n),await Wt(n),e=await qd()),E4(e)}function E4(e){let t=e.config,n={};return Object.keys(L4).forEach(r=>{t[r]!=null&&(n[r]=t[r])}),n}function sN(e){We(Se(),e),ul("syncContextState",e),e?.targetLanguage&&_i({targetLanguage:e.targetLanguage})}function uN(e,t){let n={};t&&t.trigger&&(n.trigger=t.trigger),Fe("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Fe("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()});let r=e.config.translationServices?.[e.translationService];r.assistantId&&Fe("assistant_translate_page",[{name:"assistant_translate_page",params:{...n,ai_assistant:r.assistantId,ai_assistant_use:e.specialAiAssistant?.id||"common"}}],{...e,sourceLanguage:pt()})}function lN(e){let t=new URL(e.url).searchParams;return!!e.config.autoTranslateParams?.find(r=>{let a=t.get(r)||"";if(r=="crosearch_translate"){let i=t.get("output_locale");i&&(ne.state.targetLanguage=$(i),ne.targetLanguage=$(i))}return["1","true"].includes(a)})||e.state.isAutoTranslate||e.isTranslateUrl}async function cN(e){let t=Il+"_set_";try{let n=[];new URL(location.href).searchParams.forEach((i,o)=>{o.startsWith(t)&&n.push([o,i])});let a={};for(let[i,o]of n){let s=i.replace(t,"");if(L4[s]==null)return;a[s]=o}if(!Object.keys(a).length)return;await w4(e,a)}catch(n){k.error(n)}}async function dN(e){let t=e.config.arxivRule;if(!t?.matches||!ze(e.url,t.matches))return;let r=document.querySelector(t.injectContainerSelector);if(!r)return;let o=new URL(e.url).pathname.split("/").pop();for(let s of t.detectOrders)try{await K({url:`${s}/`+o,responseType:"HEAD",method:"HEAD"});let u=document.createElement("li");u.innerHTML=`${De(e.config.interfaceLanguage,"viewWithImmersiveTranslate")}`,r.appendChild(u);break}catch{}}function mN(e,{text:t,trigger:n}){let r=document.activeElement;r&&(r.tagName!=="INPUT"&&r.tagName!=="TEXTAREA"&&!r.isContentEditable||$h(e,window,t,n))}function pN(e,{translation_service:t}){Fe("change_translate_service",[{name:"change_translate_service",params:{translation_service:t}}],e)}function gN(e,{key:t,events:n}){Fe(t,n,e)}C9({detectCurrentPageLanguage:kC,ensureSwitchTranslationMode:i4,restorePage:_r,retryFailedParagraphs:JO,switchTranslationMode:T4,toggleTranslateManga:YO,toggleTranslatePage:r4,toggleTranslateTheMainPage:tN,toggleTranslateTheWholePage:nN,toggleTranslationMask:a4,toggleEnableEditTranslation:QO,toggleVideoSubtitlePreTranslation:aN,translatePage:Gn,translatePageWithTranslationService:eN,translateTheMainPage:D4,translateTheWholePage:DC,translateToThePageEndImmediately:LC,toggleTranslateToThePageEndImmediately:rN,updateGlobalContext:qd,getPureGlobalContext:C4,getIsDulSubtitle:zx,updateContextState:sN,inputSelectedTextTranslate:mN,reportTranslateService:pN,popupEventReport:gN,updateFloatBallEnable:VT,translateSelectImage:eC});var fN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return x("div",{style:a,onClick:s=>{s?.target?.id===`${P}-modal-overlay`&&r()},id:`${P}-modal-overlay`,children:x("div",{style:i,children:t})})},MC=fN;function RC(e){let t=Ce(null),[n,r]=W(468),[a,i]=W(!1);if(J(()=>{let s=new URL(Zm(e.trigger,e.interfaceLang)),u=l=>{if(l.origin===s.origin)try{let c=l.data;if(!c)return;let d=JSON.parse(c);d.type==="imtClosePricing"?e.onClose():d.type==="imtPricingResize"?d.height&&r(d.height):d.type==="imtGetUserToken"&&t.current?.contentWindow?.postMessage(JSON.stringify({type:"imtUpdateToken",token:e.ctx.user?.token}),l.origin)}catch{}};return globalThis.addEventListener("message",u),()=>{globalThis.removeEventListener("message",u)}},[t,e.ctx]),J(()=>{e.visible||i(!1)},[e.visible]),!e.visible)return null;let o={padding:0,borderRadius:26,transform:"unset",left:"calc(50% - 370px)",top:`calc(50% - ${n/2}px)`,width:740,height:n,overflow:"hidden"};return globalThis.innerWidth<740&&(o={padding:0,borderRadius:26,transform:"unset",left:16,top:`calc(50% - ${n/2}px)`,width:"calc(100% - 32px)",height:n,overflow:"hidden"}),x(MC,{isOpen:e.visible,closeModal:e.onClose,contentStyles:o,children:[x("iframe",{ref:t,src:Zm(e.trigger,e.interfaceLang),style:{width:"100%",height:"100%"},onLoad:()=>{i(!0)}}),x(hN,{hidden:a})]})}function hN(e){return e.hidden?null:x("div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:x("div",{className:`${P}-loading-spinner`,style:"width: 30px !important; height: 30px !important;"})})}function bN(e){let{showPricingModal:t,trigger:n,setShowPricingModal:r}=NS(e.ctx);return x(Et,{children:[x(yN,{ctx:e.ctx}),x(RC,{ctx:e.ctx,visible:t,trigger:n,interfaceLang:e.ctx.config.interfaceLanguage,onClose:()=>{r(!1)}})]})}function yN({ctx:e}){let{hoveImage:t,hoveImageStyles:n,containerRef:r,activeRef:a,imageStatus:i,handleTranslate:o}=OS(e),{t:s}=oe(),{enable:u,handleCloseConfirm:l}=jS(e),c=he(()=>s(i==="translating"?"imageState.translating":i==="success"?"imageTools.resetImage":"imageTools.translateImage"),[t,i]);return u?x("div",{class:"imt-image-tools notranslate",ref:r,style:n,children:t&&x(Et,{children:[x(dn,{enableMobile:!0,text:c,tipStyle:{left:"unset",right:0,transform:"unset"},position:"top",children:x("div",{class:"imt-image-translate-button",onClick:()=>{o(t)},children:[x(Rt,{type:"logo",className:"logo",style:{width:14,height:14}}),x(Rt,{type:"translated",className:"translated-icon",hidden:i!=="success"})]})}),x(xN,{imgElement:t,setActive:d=>{a.current=d},onCloseConfirm:l})]})}):null}function xN(e){let{t}=oe(),[n,r]=W(!1),[a,i]=W({});J(()=>{let s=document.querySelector("#monica-content-root"),u=()=>{if(!e.imgElement)return i({});let l=e.imgElement.getBoundingClientRect(),c=s?56:16,d=l.right-c-360,m=l.top+l.height-100,p=globalThis.innerHeight-260;i({position:"fixed",left:d+"px",top:Math.min(m,p)+"px"})};return u(),globalThis.addEventListener("scroll",u),()=>{globalThis.removeEventListener("scroll",u)}},[e.imgElement]);let o=Qa()+"#manga";return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"close-button",onClick:()=>{e.setActive(!0),r(!0)},children:x(vN,{})}),x(Wd,{title:t("closeImageTools.title"),visible:n,settingUrl:o,onClose:()=>{e.setActive(!1),r(!1)},style:a,onCloseConfirm:e.onCloseConfirm})]})}function IC(e){if(!ys(e))return null;let n=P+"-image-tools";if(document.getElementById(n))return;let r=[le.IMMERSIVE_TRANSLATE_PICO_CSS,le.IMMERSIVE_TRANSLATE_COMMON_CSS,le.IMMERSIVE_TRANSLATE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_IMAGE_TOOLS_CSS].join(` -`);$o({id:n,parent:document.body,ctx:e,Component:bN,props:{ctx:e},style:r,isInsertMount:!0})}function vN(){return x("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_14556_6069)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.8"})}),x("defs",{children:x("clipPath",{id:"clip0_14556_6069",children:x("rect",{width:"14",height:"14",fill:"white"})})})]})}async function FC(e){if(!e){let n=await Sn();e=await Tn({config:n,url:Se()})}if(e.config.debug?k.setLevel("debug"):k.setLevel("info"),!e.isTranslateExcludeUrl){if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){if(e.rule.isInjectMeta){try{let n=await Po("auto",e.targetLanguage),r=document.createElement("meta");r.name=P+"-meta",r.content=Ts(JSON.stringify(n)),document.head?.appendChild?.(r)}catch(n){k.warn("inject meta failed",n)}if(e.rule.isInjectOptionsUrl){let n=Qa(),r=document.createElement("meta");r.name=P+"-options-url",r.content=n;try{document.head?.appendChild?.(r)}catch(a){k.warn("inject options url failed",a)}}if(e.rule.isInjectVersion){let n=Ht(),r=document.createElement("meta");r.name=P+"-version",r.content=n;try{document.head?.appendChild?.(r)}catch(a){k.warn("inject version failed",a)}}}}else await Yd();Ke()||await KT().catch(n=>{k.error(`init popup page error: ${n}`)}),Ke()||hT()}await PC(),IC(e)}var cl={capture:!0,once:!0,passive:!0},OC=()=>document.readyState==="interactive"||document.readyState==="complete",SN=e=>document.readyState===e,dl=(e,t)=>SN(e)||OC()?(t(e),!0):!1,TN=()=>new Promise(e=>{dl("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},cl)}),CN=()=>new Promise(e=>{dl("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},cl)}),wN=()=>new Promise(e=>{dl("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},cl)}),BC=()=>new Promise(e=>{dl("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},cl)}),_C=()=>new Promise(e=>{dl("load",e)||window.addEventListener("load",()=>{e("load")},cl)}),NC={};Object.defineProperties(NC,{state:{get:function(){return document.readyState}},loading:{get:function(){return TN()}},interactive:{get:function(){return CN()}},complete:{get:function(){return wN()}},window:{get:function(){return _C()}},load:{get:function(){return _C()}},domready:{get:function(){return BC()}},dom:{get:function(){return BC()}},ready:{get:function(){return OC()}}});var jC=NC;var UC={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function EN(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function AN(e){if(typeof e!="function")throw new Error(UC.NOT_FUNCTION)}var P4=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:r=!1,verbose:a=!1,backoffFactor:i=1,backoffMaxInterval:o,message:s=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=r,this._isWaiting=!1,this._isResolved=!1,this._verbose=a,this._userMessage=s,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=i,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),AN(t),this._executeFn=EN(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${UC.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=L+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Vd(s,e,t,r,a,i,o)},i.append(d)}var ta=null;async function $T(e,{srcUrl:t}){if(!ys(e))return;if(!await zs(e)){el("image_right_menu");return}if(!ta){k.error("rightMenu image ele not found",t,ta);return}if(ta.translationStatus!=="translating"){if(ta.hasTranslate){mi(ta);return}if(t!==ta.src)try{let r=new URL(t),a=new URL(ta.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,ta.src,r);return}Ea(e,ta,!0,"image_right_menu")}}function eC(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ta=e.target)})}var tC=0;function ol(e){let t=Date.now();if(t-tC<2e3||(tC=t,MO()))return;let n=`${L}-modal-root`,r=`${L}-modal`,a=document.getElementById(n),i=`${L}-modal-title`,o=`${L}-modal-body`,s=`${L}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,il)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${L}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=ke();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=L+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=L+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let b=document.createElement("div");b.className=o+" notranslate",m.appendChild(b);let h=document.createElement("div");h.className=s,m.appendChild(h),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,b,h,il)}setTimeout(()=>{RO()},100)}function MO(){let e=document.querySelector(`#${L}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${L}-modal`)?.style.display=="block":!1}function RO(){let e=document.querySelector(`#${L}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-modal`);t&&(t.style.display="block")}}function il(e,t=!1){let n=document.querySelector(`#${L}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${L}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function nC(e,t,n="sameLang",r,a,i,o){let s=De.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();Wt({...l,sameLangCheck:!1}),o(i,!0)})}var rC=0;async function aC(e){let t=Date.now();if(t-rC<2e3||(rC=t,IO()))return;let n=`${L}-toast-root`,r=`${L}-toast`,a=document.getElementById(n),i=`${L}-toast-msg`,o=`${L}-toast-content`,s=`${L}-toast-hidden`,u,l,c=()=>{l&&h4(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,h4);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${L}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),h=document.createElement("style"),f=ke();h.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(h),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),b.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=L+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},b.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,h4)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{FO()},100),d=setTimeout(c,2500)}function IO(){let e=document.querySelector(`#${L}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${L}-toast`)?.style.display=="flex":!1}function FO(){let e=document.querySelector(`#${L}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-toast`);t&&(t.style.display="flex")}}function h4(e,t=!1){let n=document.querySelector(`#${L}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${L}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function b4(e,t,n,r="retry",a,i,o,s,u){let l=De.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=Ze.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${L}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",iC({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(x1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Ql)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(C1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)},y4(e,e.config.translationService,!1,g).then(b=>{b?(m=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=Ze.sanitize(m),p.onclick=()=>{oC(b),u(p,!0)}):(m=l("goSettings"),p.innerHTML=Ze.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Wt(g),iC({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=L+"-btn",p.innerHTML+=Ze.sanitize(m),s.appendChild(p)}function iC(e){Vr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Sr,{detail:e});globalThis.document.dispatchEvent(t)}var sC=!1,It={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},lC=[()=>{jn.unbind()}],uC=[...lC],BO=Yn(async()=>{await Ka()},50),_O=Yn(async()=>{await l0()},50),OO=Yn(async()=>{await R9()},50),NO=Yn(async()=>{await M9()},50),cC=Yn(e=>{Jt({method:e,data:{trigger:"userscript_menu"}})},50),x4=!1,jO=Pn(()=>{let e=globalThis.getSelection()?.toString().trim();!x4&&e&&e.length>0?Bi({text:e}):Bi({})},50),UO=()=>{x4=!0,setTimeout(()=>{x4=!1},100)};It.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(sC)return;sC=!0,te()||w9(),n.addEventListener("securitypolicyviolation",It.handleSecurityPolicyViolation),document.addEventListener(Y+"DocumentMessageUser",gC),document.addEventListener(Y+"DocumentMessageUpdateUser",fC),document.addEventListener(Y+"ChangeSuccessService",hC.bind(null,t)),document.addEventListener(Y+"ChangeService",bC.bind(null,t)),document.addEventListener(Un,It.showErrorByEvent.bind(null,t)),document.addEventListener(Bl,It.showToastByEvent.bind(null,t)),document.addEventListener(xi,It.showModal.bind(null,t)),n.addEventListener(Y+"EbookLoaded",It.handleEbookLoaded),n.addEventListener(Q3,It.handleThirdPartyTell.bind(null,t)),n.addEventListener(J3,It.eventUpload.bind(null,t)),n.addEventListener(Nl,a=>{Ke()||Jf(a,t)}),n.addEventListener(X3,Rv),n.addEventListener("click",a=>{It.handleClick(a,t)}),document.addEventListener("selectionchange",jO),document.addEventListener("contextmenu",UO),eC(),Ke()&&e.addEventListener("message",It.handleGlobalMessage,!1),te()&&(Ke()||n.addEventListener(Sr,It.handlePopupInit)),Ke()||Ja.rootIframe(Vl).handleAsk("throttleRequest",y6)};function ul(e,t){zO(),It.SetupDomListenersForOnce(t,e),te()&&(Ke()||(Zf(e.config),WO(e.config))),Zn()&&aT(e,t),it()&&Zf(e.config)}It.handlePopupInit=e=>{KT()};It.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Il&&Vr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};It.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){il(n);return}let r=n.getAttribute(`data-${L}-event`);r&&Ie(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${L}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),dC({method:"retryFailedParagraphs"}),il(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${L}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}ol(b4.bind(null,t,o,i,s));return}}};async function HO(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Wt(e)}async function qO(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Wt(e)}It.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;aC(nC.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};It.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;ol(b4.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};It.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?ol(Vd.bind(null,"manga",e)):r=="webReport"&&ol(Vd.bind(null,"web",e))};It.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=S4()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")dC({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")c0(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")HO();else if(i.type==="toggleEnableInputTranslation")qO();else if(i.type==="syncAppSetting")mC(i.data);else if(i.type==="translatePage")GO(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Cc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=L0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await VO(i.data,o)}catch(s){sl(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await KO(o,i.data)}catch(s){sl(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await u0(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await Px();else if(i.type==="sharePage")Jf({detail:i.data},r);else if(i.type==="switchTranslationMode")v4(i.data);else if(i.type=="getAsyncAiAssistants")a=await P6();else if(i.type=="addAiAssistantAsync")a=await T0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await T0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await C4(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await T4(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Po("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await ab(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await _9());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await O9());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await ib(i.data));else if(i.type==="openPopup")Wd({...i.data,open:!0});else if(i.type==="closePopup")Wd({...i.data,open:!1});else if(i.type==="togglePopup")Wd({...i.data});else if(i.type==="getPageStatusAsync")a=Ye();else if(i.type==="restorePage")YO();else if(i.type==="getPageLanguageAsync")a=pt();else if(i.type==="showFloatBallGuide")RT();else if(i.type=="getAsyncDetectAndSetLanguage")a=await pC(i.data);else if(i.type=="setFloatBallActive")OT(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Fo(r,s,o,!0)}else cC(i.type);a!=null&&i.id&&sl(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};It.handleEbookLoaded=e=>{setTimeout(()=>{Kd()},10)};It.handleSecurityPolicyViolation=e=>{le.HAS_CSP_ERROR="1"};It.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ie(n.name,[{name:n.name}],{...e})};function zO(){uC.forEach(e=>{e()}),uC=lC}function WO(e){if(te()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=uc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=De(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Hm,title:De(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:qm,title:De(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:jm,title:De(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Um,title:De(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===jm?BO():i.id===Um?_O():i.id===qm?OO():i.id===Hm?NO():cC(i.id)},i.key)}}function dC(e){Vr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Sr,{detail:e});globalThis.document.dispatchEvent(t)}async function mC(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await He(ve(),t)}async function GO(e){let t=await mC(e);Gn(t)}function sl(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function VO({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Qt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function KO(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Qt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof j?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof j?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function YO(){Ye()!=="Original"&&Br()}var Yi={};async function w4(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ne({text:t,minLength:200,pageLangs:[Ct(),"en"]});return rr(n),n}async function yC(e){let t=0,n=0;_n("Translating");let r=pt(),a=e0(),i=[...document.querySelectorAll(".source-text")];if(ko(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");wt(c.node,"id",c.id+""),d&&(Do(d,c.id)?.remove(),d.appendChild(lu(e,c.id,!0)))}),await s(l),await ot(0)}}catch(u){throw u}finally{t=0,n=0,_n("Translated")}async function s(u){await Qt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Do(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=Ze.sanitize(`${l.message}`),Yi[m]={ok:!1,sentence:d},vC(u,e,t,n,l)):c&&(g.innerHTML=Ze.sanitize(c.text),Yi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function xC(e){let t=0,n=0;_n("Translating"),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yi),a=[],i=[];for(let o of r){let s=Yi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yi[o],c.appendChild(lu(e,o)),i.push(s.sentence))}}}try{await Qt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Do(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=Ze.sanitize(`${o.message}`),Yi[l]={ok:!1,sentence:u},vC(i,e,t,n,o)):s&&(d.innerHTML=Ze.sanitize(s.text),Yi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,_n("Translated")}}function E4(){_n("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function vC(e,t,n,r,a){if(!(a instanceof j))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(Un,{detail:i}))}var Yd={};async function SC(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ne({text:t,pageLangs:["en"]});return rr(n),n}async function TC(e){_n("Translating"),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Yd),n=[];for(let r of t){let a=Yd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${ql}='${r}']`);o&&o.remove(),n.push(a)}}try{Pu(),await B0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{_n("Translated")}}function CC(e){Object.values(Yd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=Xo(e,t.targetNodes);ti(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),_n("Original")}async function wC(e){_n("Translating");let t=tu(),n=Hr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Jo(l,e);let c=l.body;if(!c)continue;qr(l.documentElement,e.state.translationMode);let d=on(e);d.isModifyImage=!1;let m=[];await Sa({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await ot(0)}o(a),_n("Translated");function o(u){document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=M0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:I0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await hf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),Yd[p.id]=p)}B0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}var ne=null,Qd={},vs,EC=!1;async function Kd(){_o.clearStrictTicks();let e=await He(ve(),{}),t=await On();if(k.debug("init page ctx",e),wv(e),e.rule.pageType=="subtitleBuilder"){w4();return}if(e.rule.pageType=="ebookBuilder"){SC();return}if(vs||(vs=e.state.translationTheme),e.rule.urlChangeDelay&&await ot(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await sN(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let s=Ya(),u=document.createElement("meta");u.name=L+"-options-url",u.content=s;try{document.head?.appendChild?.(u)}catch(l){k.warn("inject options url failed",l)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(u=>{let l=document.createElement("meta");l.name=u,l.content=e.rule.globalMeta[u],document.head?.appendChild?.(l)}),e.rule.initialGlobalAttributes&&sx(document.body,e.rule.initialGlobalAttributes),mN(e),e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let s=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");s&&(s.value="helloworld",s.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),s.dispatchEvent(new Event("change")))}EC||(EC=!0,Ke()&&e.rule.useIframePostMessage&&await V9());let n=e.sourceLanguage;n==="auto"?n=await AC():rr(n);let r=vy(e,n);if(r&&(e=await He(ve(),{translationMode:r})),e.rule.isInjectMeta)try{let s=await Po(n,e.targetLanguage),u=document.createElement("meta");u.name=L+"-meta",u.content=Ts(JSON.stringify(s)),document.head?.appendChild?.(u)}catch(s){k.warn("inject meta failed",s)}let a=new URL(e.url);(a.searchParams.get("imt_refresh_rule")==="1"||a.searchParams.get("imt_refresh_rule")==="true")&&await l4(),await dN(e);let o=cN(e);if(!o&&!e.isTranslateExcludeUrl&&(k.debug(`detect page language: ${e.url} ${n}`),Na(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto"||Y9(n,e.config.translationLanguagePattern)&&(o=!0,k.debug(`match language pattern ${n}, auto translate`))),e.rule.pageType=="ebookBuilder"&&(o=!1),e.rule.pageType!=="pdfReader"&&Hs(t)&&Gh(e),o)ne.state.isAutoTranslate=!0,Gn(ne);else if(k.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Na(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Qd[e.translationService]||(Qd[e.translationService]=!0,Ke()||$g(e).catch(s=>{k.warn("init translation engine error",s)})))}}async function t4(e){if(Ye()==="Original"){let t={};vs&&(t.translationTheme=vs),ne&&(t={...ne.state,...t});let n=await He(ve(),t);if(e?.trigger=="right_menu"&&Ii(n?.rule)){let r=Fi(n.rule);if(r){Bo(!0,r||ve());return}}await Gn({...ne,sourceProgram:"html"},e)}else(Ye()==="Translated"||Ye()==="Error")&&Br()}async function QO(){let e=Io();ne||(ne=await He(ve(),{})),e=="Original"?LS(ne):(PS(),mr("Original"))}function JO(){Xy("enableEditTranslation",!ne?.config.enableEditTranslation);let e=Yc("enableEditTranslation");ne&&(ne.config.enableEditTranslation=e);let t=Hu();t&&(t.ctx.config.enableEditTranslation=e),document.querySelectorAll(`font.notranslate.${Lt}`).forEach(n=>{e?n.setAttribute("contenteditable","true"):n.removeAttribute("contenteditable")})}async function ZO(){if(ne=await He(ve(),{}),ne.rule.pageType=="ebookBuilder")return TC(ne);if(ne.rule.pageType=="subtitleBuilder")return xC(ne);Mv()}async function n4(e){if(Ye()==="Original"){ne=await He(ve(),{}),vs||(vs=ne.state.translationTheme);let t="mask";ne.state.translationTheme==="opacity"&&(t="opacity"),ne=await He(ve(),{translationTheme:t}),await Gn(ne,e)}else if(Ye()==="Translated"){let t="mask";ne?.state?.translationTheme==="opacity"&&(t="opacity");let n=by().filter(i=>i.contentDocument?.body).map(i=>i.contentDocument.body),r=[ne.mainFrame,...n],a=ne?.state.translationTheme;for(let i of r){let o=bb(i,oo,!0);a==="mask"||a==="opacity"?o!=="none"?wt(i,oo,"none",!0):wt(i,oo,t,!0):o!=="mask"&&o!=="opacity"?wt(i,oo,t,!0):wt(i,oo,"none",!0)}}}async function AC(){let e=await He(ve(),{});return e.rule.pageType=="subtitleBuilder"?w4():Pv(e)}function XO(e){Ye()==="Original"?yC(e):E4()}function $O(e){Ye()==="Original"?sd(e):ss()}async function Br(){gu(""),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"restorePage",payload:{}})}));let e=await He(ve(),{});if(e.rule.pageType=="subtitleBuilder"){E4();return}else e.rule.pageType=="ebookBuilder"&&CC(e);ss()}function eN(e){e.config.sameLangCheck&&!(e.rule.detectParagraphLanguage||e.state.isDetectParagraphLanguage)&&pt()==e.targetLanguage&&document.dispatchEvent(new CustomEvent(Bl,{detail:{type:"sameLang"}}))}async function Gn(e,t){if(fa("initial"),eN(e),Ye()!=="Original"&&await Br(),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Qd[e.translationService]||(Qd[e.translationService]=!0,Ke()||$g(e).catch(r=>{k.warn("init translation engine error",r)})),e.specialAiAssistant=ya(e,e.translationService,!0),lN(e,t),e.rule.pageType=="subtitleBuilder"){XO(e),gu("yes");return}if(e.rule.pageType=="ebookBuilder"){wC(e),gu("yes");return}$O(e),gu("yes")}async function tN(e,t){let n=ne?.translationService;if(Ye()==="Original"||n!=e){ne=await He(ve(),{translationService:e});let r=De(ne.config.interfaceLanguage,`translationServices.${e}`);e.startsWith("custom-ai")&&(r=ne.config.translationServices[e].name);let a=De(ne.config.interfaceLanguage,"tempChangeTransToService",{service:r});gl({text:a}),await Gn(ne,t)}else{Br();let r=await vn(),a={url:ve(),config:r,state:{}},i=await Sn(a);ne=await He(ve(),{translationService:i.translationService})}}async function nN(e){Ye()==="Original"?await A4(e):(Ye()==="Translated"||Ye()==="Error")&&(ne=await He(ve(),{}),ne.state.translationArea!=="main"?await A4(e):Br())}async function A4(e){ne=await He(ve(),{translationArea:"main"}),await Gn(ne,e)}async function kC(e){ne=await He(ve(),{translationArea:"body"}),await Gn(ne,e)}async function pC(e){let t=[Ct(),"en"],n=await Ne({text:e,pageLangs:t});return rr(n),n}async function r4(e){let t=await He(ve(),{}),n=t.state.translationMode=="dual"?"translation":"dual";if(t=await He(ve(),{translationMode:n}),Ye()==="Original"){Gn(t,e);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(n)}async function v4(e){if(ne=await He(ve(),{translationMode:e}),Ie("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ne,sourceLanguage:"unknown"}),Ye()==="Original"){Gn(ne);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function rN(e){if(Ye()==="Original")await kC(e);else if(Ye()==="Translated"||Ye()==="Error"){let t={};ne&&ne.state&&(t=ne.state),ne=await He(ve(),t),ne.state.translationArea!=="body"?(ne.state.translationArea="body",ne=await He(ve(),ne.state),await Gn(ne,e)):Br()}}async function DC(e){ne=await He(ve(),{translationStartMode:"immediate"}),await Gn(ne,e)}async function aN(e){Ye()==="Original"?await DC(e):(Ye()==="Translated"||Ye()==="Error")&&Br()}async function LC(){let e=await He(ve(),{});if(!We(e.url,e.config.inputStyleBlockUrls)){let n=ke().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;fn(document,n,Hl)}e.rule.pageType&&e.rule.pageType!=="html"||e.config.enableInputTranslation&&Kh(e)}function S4(){return ne}async function He(e,t){let n=Object.keys(t);if(ne){let r={url:e,config:ne.config,state:{...ne.state,...t}};ne=await Sn(r)}else{let r=await vn(),a=t;n.length===0&&(a=void 0),ne=await Sn({url:e,config:r,state:a})}return ne.state&&ne.state.translationService&&(ne.translationService=ne.state.translationService),ne.state&&ne.state.targetLanguage&&(ne.targetLanguage=ne.state.targetLanguage),ne}async function iN(){let e=await Mt()||{},t=e.generalRule||{},n=t["subtitleRule.add"]||{},r=!n.preTranslation;await Wt({...e,generalRule:{...t,"subtitleRule.add":{...n,preTranslation:r}}}),r?gl({text:De(ne.config.interfaceLanguage,"videoSubtitlePreTranslationOn")}):gl({text:De(ne.config.interfaceLanguage,"videoSubtitlePreTranslationOff")}),setTimeout(()=>{window.location.reload()},1e3)}async function Hd(){let e=await vn();Yc("enableEditTranslation")!=null&&(e.enableEditTranslation=Yc("enableEditTranslation"));let t;ne&&ne.state&&(t=ne.state);let n={url:ve(),config:e,state:t},r=await Sn(n);return r.state&&r.state.translationService&&(r.translationService=r.state.translationService),ne=r,Kf(ne),await oN(ne),r}async function oN(e){let t=await On();ul(e,window),Hs(t)&&Gh(e),e.config.enableInputTranslation&&Kh(e)}function sN(e,t=3e3){return new Promise((n,r)=>{let a=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,i=setInterval(()=>{e.every(s=>document.querySelector(s)!==null)&&(clearInterval(i),a&&clearTimeout(a),n(null))},50)})}async function gC(e){let t=e.detail,n=Mt();ft(t)&&await xT(t.token,n,Wt),dt.set(ct,t);let r=await dt.get(Ym,!1);dt.set(Ym,!1),document.dispatchEvent(new CustomEvent(Y+"DocumentMessageUserResult",{detail:r?"close":"success"})),du()}function fC(e){k.debug("update user info",e);let t=e.detail;dt.set(ct,t),du()}async function hC(e){let t=await Mt();if(t.translationService)return;let n=e.config.translationService,r=await y4(e,n);if(e.translationService!==r){if(!r){Ie("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}],e);return}t.translationService=r,Wt(t),e.translationService=r,Ie("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}],e)}}async function bC(e,t){let n=t.detail;if(!e.rule.allowInnerInvoke)return;let r=n.translateService;if(!r)return;let a=n.provider,i=await Mt();i.translationService=r,a&&i?.translationServices?.[r]?.provider&&(i.translationServices[r].provider=a),i.translationServiceChangedbyUserAt=new Date().toISOString(),Wt(i)}async function y4(e,t,n=!0,r){let a=r||e.rule.detectionServiceOrder||["google","bing","transmart","yandex"];return a.sort((i,o)=>i===t?n?-1:1:o===t?n?1:-1:0),await ax(a,e)}async function oC(e){let t=await Mt();t.translationService=e,await Wt(t);let n=await He(ve(),{});n.translationService=e,await Gn(n)}var k4={interfaceLanguage:"",targetLanguage:"",translationService:"",aiAssistantIds:[],subtitleTranslateService:"",inputTranslationService:"",mouseHoverTranslationService:""};async function T4(e,t){let n=await Mt(),r=!1;return Object.keys(k4).forEach(a=>{let i=t[a];i!=null&&((a==="targetLanguage"||a==="interfaceLanguage")&&(i=$(i)),n[a]=i,r=!0)}),r&&(u4(n),await Wt(n),e=await Hd()),C4(e)}function C4(e){let t=e.config,n={};return Object.keys(k4).forEach(r=>{t[r]!=null&&(n[r]=t[r])}),n}function uN(e){He(ve(),e),sl("syncContextState",e),e?.targetLanguage&&Bi({targetLanguage:e.targetLanguage})}function lN(e,t){let n={};t&&t.trigger&&(n.trigger=t.trigger),Ie("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Ie("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()});let r=e.config.translationServices?.[e.translationService];r.assistantId&&Ie("assistant_translate_page",[{name:"assistant_translate_page",params:{...n,ai_assistant:r.assistantId,ai_assistant_use:e.specialAiAssistant?.id||"common"}}],{...e,sourceLanguage:pt()})}function cN(e){let t=new URL(e.url).searchParams;return!!e.config.autoTranslateParams?.find(r=>{let a=t.get(r)||"";if(r=="crosearch_translate"){let i=t.get("output_locale");i&&(ne.state.targetLanguage=$(i),ne.targetLanguage=$(i))}return["1","true"].includes(a)})||e.state.isAutoTranslate||e.isTranslateUrl}async function dN(e){let t=Rl+"_set_";try{let n=[];new URL(location.href).searchParams.forEach((i,o)=>{o.startsWith(t)&&n.push([o,i])});let a={};for(let[i,o]of n){let s=i.replace(t,"");if(k4[s]==null)return;a[s]=o}if(!Object.keys(a).length)return;await T4(e,a)}catch(n){k.error(n)}}async function mN(e){let t=e.config.arxivRule;if(!t?.matches||!We(e.url,t.matches))return;let r=document.querySelector(t.injectContainerSelector);if(!r)return;let o=new URL(e.url).pathname.split("/").pop();for(let s of t.detectOrders)try{await K({url:`${s}/`+o,responseType:"HEAD",method:"HEAD"});let u=document.createElement("li");u.innerHTML=`${De(e.config.interfaceLanguage,"viewWithImmersiveTranslate")}`,r.appendChild(u);break}catch{}}function pN(e,{text:t,trigger:n}){let r=document.activeElement;r&&(r.tagName!=="INPUT"&&r.tagName!=="TEXTAREA"&&!r.isContentEditable||Zh(e,window,t,n))}function gN(e,{translation_service:t}){Ie("change_translate_service",[{name:"change_translate_service",params:{translation_service:t}}],e)}function fN(e,{key:t,events:n}){Ie(t,n,e)}S9({detectCurrentPageLanguage:AC,ensureSwitchTranslationMode:r4,restorePage:Br,retryFailedParagraphs:ZO,switchTranslationMode:v4,toggleTranslateManga:QO,toggleTranslatePage:t4,toggleTranslateTheMainPage:nN,toggleTranslateTheWholePage:rN,toggleTranslationMask:n4,toggleEnableEditTranslation:JO,toggleVideoSubtitlePreTranslation:iN,translatePage:Gn,translatePageWithTranslationService:tN,translateTheMainPage:A4,translateTheWholePage:kC,translateToThePageEndImmediately:DC,toggleTranslateToThePageEndImmediately:aN,updateGlobalContext:Hd,getPureGlobalContext:S4,getIsDulSubtitle:Hx,updateContextState:uN,inputSelectedTextTranslate:pN,reportTranslateService:gN,popupEventReport:fN,updateFloatBallEnable:GT,translateSelectImage:$T});var hN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return x("div",{style:a,onClick:s=>{s?.target?.id===`${L}-modal-overlay`&&r()},id:`${L}-modal-overlay`,children:x("div",{style:i,children:t})})},PC=hN;function MC(e){let t=Ce(null),[n,r]=W(468),[a,i]=W(!1);if(J(()=>{let s=new URL(Zm(e.trigger,e.interfaceLang)),u=l=>{if(l.origin===s.origin)try{let c=l.data;if(!c)return;let d=JSON.parse(c);d.type==="imtClosePricing"?e.onClose():d.type==="imtPricingResize"?d.height&&r(d.height):d.type==="imtGetUserToken"&&t.current?.contentWindow?.postMessage(JSON.stringify({type:"imtUpdateToken",token:e.ctx.user?.token}),l.origin)}catch{}};return globalThis.addEventListener("message",u),()=>{globalThis.removeEventListener("message",u)}},[t,e.ctx]),J(()=>{e.visible||i(!1)},[e.visible]),!e.visible)return null;let o={padding:0,borderRadius:26,transform:"unset",left:"calc(50% - 370px)",top:`calc(50% - ${n/2}px)`,width:740,height:n,overflow:"hidden"};return globalThis.innerWidth<740&&(o={padding:0,borderRadius:26,transform:"unset",left:16,top:`calc(50% - ${n/2}px)`,width:"calc(100% - 32px)",height:n,overflow:"hidden"}),x(PC,{isOpen:e.visible,closeModal:e.onClose,contentStyles:o,children:[x("iframe",{ref:t,src:Zm(e.trigger,e.interfaceLang),style:{width:"100%",height:"100%"},onLoad:()=>{i(!0)}}),x(bN,{hidden:a})]})}function bN(e){return e.hidden?null:x("div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:x("div",{className:`${L}-loading-spinner`,style:"width: 30px !important; height: 30px !important;"})})}function yN(e){let{showPricingModal:t,trigger:n,setShowPricingModal:r}=_S(e.ctx);return x(Et,{children:[x(xN,{ctx:e.ctx}),x(MC,{ctx:e.ctx,visible:t,trigger:n,interfaceLang:e.ctx.config.interfaceLanguage,onClose:()=>{r(!1)}})]})}function xN({ctx:e}){let{hoveImage:t,hoveImageStyles:n,containerRef:r,activeRef:a,imageStatus:i,handleTranslate:o}=BS(e),{t:s}=oe(),{enable:u,handleCloseConfirm:l}=OS(e),c=he(()=>s(i==="translating"?"imageState.translating":i==="success"?"imageTools.resetImage":"imageTools.translateImage"),[t,i]);return u?x("div",{class:"imt-image-tools notranslate",ref:r,style:n,children:t&&x(Et,{children:[x(dn,{enableMobile:!0,text:c,tipStyle:{left:"unset",right:0,transform:"unset"},position:"top",children:x("div",{class:"imt-image-translate-button",onClick:()=>{o(t)},children:[x(Rt,{type:"logo",className:"logo",style:{width:14,height:14}}),x(Rt,{type:"translated",className:"translated-icon",hidden:i!=="success"})]})}),x(vN,{imgElement:t,setActive:d=>{a.current=d},onCloseConfirm:l})]})}):null}function vN(e){let{t}=oe(),[n,r]=W(!1),[a,i]=W({});J(()=>{let s=document.querySelector("#monica-content-root"),u=()=>{if(!e.imgElement)return i({});let l=e.imgElement.getBoundingClientRect(),c=s?56:16,d=l.right-c-360,m=l.top+l.height-100,p=globalThis.innerHeight-260;i({position:"fixed",left:d+"px",top:Math.min(m,p)+"px"})};return u(),globalThis.addEventListener("scroll",u),()=>{globalThis.removeEventListener("scroll",u)}},[e.imgElement]);let o=Ya()+"#manga";return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"close-button",onClick:()=>{e.setActive(!0),r(!0)},children:x(SN,{})}),x(zd,{title:t("closeImageTools.title"),visible:n,settingUrl:o,onClose:()=>{e.setActive(!1),r(!1)},style:a,onCloseConfirm:e.onCloseConfirm})]})}function RC(e){if(!ys(e))return null;let n=L+"-image-tools";if(document.getElementById(n))return;let r=[le.IMMERSIVE_TRANSLATE_PICO_CSS,le.IMMERSIVE_TRANSLATE_COMMON_CSS,le.IMMERSIVE_TRANSLATE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_IMAGE_TOOLS_CSS].join(` +`);$o({id:n,parent:document.body,ctx:e,Component:yN,props:{ctx:e},style:r,isInsertMount:!0})}function SN(){return x("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_14556_6069)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.8"})}),x("defs",{children:x("clipPath",{id:"clip0_14556_6069",children:x("rect",{width:"14",height:"14",fill:"white"})})})]})}async function IC(e){if(!e){let n=await vn();e=await Sn({config:n,url:ve()})}if(e.config.debug?k.setLevel("debug"):k.setLevel("info"),!e.isTranslateExcludeUrl){if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){if(e.rule.isInjectMeta){try{let n=await Po("auto",e.targetLanguage),r=document.createElement("meta");r.name=L+"-meta",r.content=Ts(JSON.stringify(n)),document.head?.appendChild?.(r)}catch(n){k.warn("inject meta failed",n)}if(e.rule.isInjectOptionsUrl){let n=Ya(),r=document.createElement("meta");r.name=L+"-options-url",r.content=n;try{document.head?.appendChild?.(r)}catch(a){k.warn("inject options url failed",a)}}if(e.rule.isInjectVersion){let n=Ht(),r=document.createElement("meta");r.name=L+"-version",r.content=n;try{document.head?.appendChild?.(r)}catch(a){k.warn("inject version failed",a)}}}}else await Kd();Ke()||await VT().catch(n=>{k.error(`init popup page error: ${n}`)}),Ke()||fT()}await LC(),RC(e)}var ll={capture:!0,once:!0,passive:!0},_C=()=>document.readyState==="interactive"||document.readyState==="complete",TN=e=>document.readyState===e,cl=(e,t)=>TN(e)||_C()?(t(e),!0):!1,CN=()=>new Promise(e=>{cl("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},ll)}),wN=()=>new Promise(e=>{cl("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},ll)}),EN=()=>new Promise(e=>{cl("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},ll)}),FC=()=>new Promise(e=>{cl("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},ll)}),BC=()=>new Promise(e=>{cl("load",e)||window.addEventListener("load",()=>{e("load")},ll)}),OC={};Object.defineProperties(OC,{state:{get:function(){return document.readyState}},loading:{get:function(){return CN()}},interactive:{get:function(){return wN()}},complete:{get:function(){return EN()}},window:{get:function(){return BC()}},load:{get:function(){return BC()}},domready:{get:function(){return FC()}},dom:{get:function(){return FC()}},ready:{get:function(){return _C()}}});var NC=OC;var jC={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function AN(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function kN(e){if(typeof e!="function")throw new Error(jC.NOT_FUNCTION)}var D4=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:r=!1,verbose:a=!1,backoffFactor:i=1,backoffMaxInterval:o,message:s=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=r,this._isWaiting=!1,this._isResolved=!1,this._verbose=a,this._userMessage=s,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=i,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),kN(t),this._executeFn=AN(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${jC.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} ${this._lastError.message}`;let n=this.originalStacktraceError.stack;n&&(this._lastError.stack+=n.substring(n.indexOf(` -`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},HC=(e,t)=>new P4(t).execute(e);async function qC(e){try{let t=e.config.domReadyDetectTimeout;return await HC(()=>{let r=e.mainFrame.innerText||"";if(yo(r,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:t!==void 0?t:3e3}),!0}catch(t){if(Ke())throw t;return k.debug("check dom element ready failed:",t,e),!0}}function zC(){let e=document.querySelector(`meta[name=${P}-options]`);return!!(e&&e.getAttribute("content")==="true")}async function GC(){if(!document.getElementById(P+"-status")){k.error("Could not find status element");return}await WC("local"),await WC("sync"),DN();let t=document.getElementById(P+"-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function kN(e,t){let n;try{n=JSON.parse(e.detail)}catch(a){k.error("parse detail failed",a);return}let r=n.id||"default";try{let a=n.data||{},i=await t(a),o={id:r,ok:!0,data:i};document.dispatchEvent(new CustomEvent(Ol,{detail:JSON.stringify({...o,type:"answer"})}))}catch(a){let i={ok:!1,errorName:a.name,errorMessage:a.message,errorDetails:a.details||a.detail};document.dispatchEvent(new CustomEvent(Ol,{detail:JSON.stringify({...i,id:r,type:"answer"})}))}}function DN(){document.addEventListener(Bl,r=>{let a=r;if(k.debug("document message",a),a&&a.detail){let i;try{i=JSON.parse(a.detail)}catch(o){k.error("parse detail failed",o);return}i.type==="ask"?i.method==="request"&&kN(a,K):i.type==="tell"&&i.method==="updateCommands"&&d0(i.data)}});let e=document.getElementById(P+"-manifest");if(!e){k.error("Could not find manifest element");return}let t=re.runtime.getManifest();it()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById(`${P}-message`).addEventListener("change",r=>{try{let a=JSON.parse(r.target.value);a&&a.method==="removeStorageKey"&&a.data&&a.data.area&&a.data.keys&&re.storage[a.data.area].remove(a.data.keys)}catch(a){k.error("parse message error",a)}})}async function WC(e){let t=document.getElementById(P+"-status"),n=document.getElementById(`${P}-${e}-storage`);if(n){k.debug("init storage");let r=await re.storage[e].get(null);n.value=JSON.stringify(r),n.dispatchEvent(new Event("change")),n.addEventListener("change",a=>{try{let i=JSON.parse(a.target.value);re.storage[e].set(i)}catch(i){k.error("save to storage error",i)}}),n.addEventListener("refresh-"+e,async a=>{let i=await re.storage[e].get(null);n.value=JSON.stringify(i),k.debug("refresh ",e,"storage")})}else{k.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}function LN(){try{document.dispatchEvent(new Event($3))}catch{}}function VC(){yl()||LN()}var KC=["textarea","input","button","select","option","iframe","strong","form","body"];async function PN(){VC(),await T2();let e=await qt();e.excludeTranslationHtmlTags&&(KC=e.excludeTranslationHtmlTags),_i({}),Ze.addHook("beforeSanitizeElements",function(r,a,i){let o=(r.nodeName||"").toLowerCase();if(KC.includes(o)){let u=`<${o}>${r.textContent||""}`,l=document.createTextNode(u);return r.replaceWith(l),r}return r}),Ze.addHook("uponSanitizeElement",function(r,a){let i=r.nodeName||"";/\d+$/.test(i)&&(a.allowedTags[a.tagName]=!0),tu(r.tagName)&&(a.allowedTags[r.tagName.toLowerCase()]=!0)}),Ze.addHook("uponSanitizeAttribute",function(r,a){tu(r.tagName)&&(a.allowedAttributes[a.attrName.toLowerCase()]=!0)});let t=Se(),n=await Tn({config:e,url:t});Fe("init_page_daily",[{name:"init_page_daily"}],n),jC.domready.then(()=>{if(n.isTranslateExcludeUrl&&zC())k.debug("detect web options page"),ll(n,window),GC();else{if(!n.config.enabled)return;if(n.rule.isInjectVersion){let a=Ht(),i=document.createElement("meta");i.name=P+"-version",i.content=a;try{document.head?.appendChild?.(i)}catch(o){k.warn("inject version failed",o)}}if(ze(n.url,n.config.blockUrls))return;ll(n,window),qC(n).then(()=>{FC(n).catch(a=>{a&&k.debug("translate page error",a.name,a.message,a)})}).catch(a=>{k.debug("can not detect a valid body: ",a)})}}).catch(r=>{r&&k.debug("translate dom ready detect error",r)})}PN().catch(e=>{k.debug("init error",e)});})(); +`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},UC=(e,t)=>new D4(t).execute(e);async function HC(e){try{let t=e.config.domReadyDetectTimeout;return await UC(()=>{let r=e.mainFrame.innerText||"";if(yo(r,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:t!==void 0?t:3e3}),!0}catch(t){if(Ke())throw t;return k.debug("check dom element ready failed:",t,e),!0}}function qC(){let e=document.querySelector(`meta[name=${L}-options]`);return!!(e&&e.getAttribute("content")==="true")}async function WC(){if(!document.getElementById(L+"-status")){k.error("Could not find status element");return}await zC("local"),await zC("sync"),LN();let t=document.getElementById(L+"-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function DN(e,t){let n;try{n=JSON.parse(e.detail)}catch(a){k.error("parse detail failed",a);return}let r=n.id||"default";try{let a=n.data||{},i=await t(a),o={id:r,ok:!0,data:i};document.dispatchEvent(new CustomEvent(_l,{detail:JSON.stringify({...o,type:"answer"})}))}catch(a){let i={ok:!1,errorName:a.name,errorMessage:a.message,errorDetails:a.details||a.detail};document.dispatchEvent(new CustomEvent(_l,{detail:JSON.stringify({...i,id:r,type:"answer"})}))}}function LN(){document.addEventListener(Fl,r=>{let a=r;if(k.debug("document message",a),a&&a.detail){let i;try{i=JSON.parse(a.detail)}catch(o){k.error("parse detail failed",o);return}i.type==="ask"?i.method==="request"&&DN(a,K):i.type==="tell"&&i.method==="updateCommands"&&c0(i.data)}});let e=document.getElementById(L+"-manifest");if(!e){k.error("Could not find manifest element");return}let t=re.runtime.getManifest();it()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById(`${L}-message`).addEventListener("change",r=>{try{let a=JSON.parse(r.target.value);a&&a.method==="removeStorageKey"&&a.data&&a.data.area&&a.data.keys&&re.storage[a.data.area].remove(a.data.keys)}catch(a){k.error("parse message error",a)}})}async function zC(e){let t=document.getElementById(L+"-status"),n=document.getElementById(`${L}-${e}-storage`);if(n){k.debug("init storage");let r=await re.storage[e].get(null);n.value=JSON.stringify(r),n.dispatchEvent(new Event("change")),n.addEventListener("change",a=>{try{let i=JSON.parse(a.target.value);re.storage[e].set(i)}catch(i){k.error("save to storage error",i)}}),n.addEventListener("refresh-"+e,async a=>{let i=await re.storage[e].get(null);n.value=JSON.stringify(i),k.debug("refresh ",e,"storage")})}else{k.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}function PN(){try{document.dispatchEvent(new Event(Z3))}catch{}}function GC(){bl()||PN()}var VC=["textarea","input","button","select","option","iframe","strong","form","body"];async function MN(){GC(),await v2();let e=await qt();e.excludeTranslationHtmlTags&&(VC=e.excludeTranslationHtmlTags),Bi({}),Ze.addHook("beforeSanitizeElements",function(r,a,i){let o=(r.nodeName||"").toLowerCase();if(VC.includes(o)){let u=`<${o}>${r.textContent||""}`,l=document.createTextNode(u);return r.replaceWith(l),r}return r}),Ze.addHook("uponSanitizeElement",function(r,a){let i=r.nodeName||"";/\d+$/.test(i)&&(a.allowedTags[a.tagName]=!0),eu(r.tagName)&&(a.allowedTags[r.tagName.toLowerCase()]=!0)}),Ze.addHook("uponSanitizeAttribute",function(r,a){eu(r.tagName)&&(a.allowedAttributes[a.attrName.toLowerCase()]=!0)});let t=ve(),n=await Sn({config:e,url:t});Ie("init_page_daily",[{name:"init_page_daily"}],n),NC.domready.then(()=>{if(n.isTranslateExcludeUrl&&qC())k.debug("detect web options page"),ul(n,window),WC();else{if(!n.config.enabled)return;if(n.rule.isInjectVersion){let a=Ht(),i=document.createElement("meta");i.name=L+"-version",i.content=a;try{document.head?.appendChild?.(i)}catch(o){k.warn("inject version failed",o)}}if(We(n.url,n.config.blockUrls))return;ul(n,window),HC(n).then(()=>{IC(n).catch(a=>{a&&k.debug("translate page error",a.name,a.message,a)})}).catch(a=>{k.debug("can not detect a valid body: ",a)})}}).catch(r=>{r&&k.debug("translate dom ready detect error",r)})}MN().catch(e=>{k.debug("init error",e)});})(); /*! * Toastify js 1.12.0 * https://github.com/apvarun/toastify-js diff --git a/dist/chrome/content_start.js b/dist/chrome/content_start.js index bc7a89c..67107ed 100644 --- a/dist/chrome/content_start.js +++ b/dist/chrome/content_start.js @@ -1,4 +1,4 @@ -(()=>{var Js=Object.defineProperty;var Qs=(e,t)=>{for(var a in t)Js(e,a,{get:t[a],enumerable:!0})};var x={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var Js=Object.defineProperty;var Qs=(e,t)=>{for(var a in t)Js(e,a,{get:t[a],enumerable:!0})};var x={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5512,10 +5512,10 @@ To translate an image, right-click on any image and select 'Translate Image'. Ad ${u.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return n("errorReason",{message:s})}getProQuotaError(t,a){let n=it.bind(null,t.config.interfaceLanguage),r=t.user.subscription,{subscriptionType:i,isTrial:u}=r,o=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",s=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[n("proQuotaError.toggleAnotherService",{anotherService:o})];if(i=="onetime_7day")l.push(n("proQuotaError.onetime7day",{brandId:ce,href:Bu}));else{let d="";s=="AI"?d=Pu:d=Ru,u?l.push(n("proQuotaError.trail",{brandId:ce,href:dr})):l.push(n("proQuotaError.package",{brandId:ce,href:d,translationService:s})),Er(t.user,l,n)}let c=a+`${n("proQuotaError.solvedTitle")}

${l.map((d,p)=>`${p+1}. ${d}`).join("
")}`;return n("errorReason",{message:c})}};function Er(e,t,a){if(!e||!e?.subscription)return;let n=e?.subscription,{isTrial:r,openAITokenUsedCountResetTime:i,subscriptionTo:u}=n;!r&&(n.cancelAtPeriodEnd==="false"||ao(u)>i)&&t.push(a("proQuotaError.resetTime",{resetTime:to(i,"YYYY-MM-DD HH:mm:ss")}))}function no(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([a,n])=>{t.append(a,n)}),t}function ro(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([a,n])=>{if(Array.isArray(n))for(let r of n)t.append(a,r);else t.append(a,n)}),t.toString()}function io(e){let{mimeType:t,base64:a}=Cd(e),n=atob(a),r=[],i=512;for(let o=0;o0)try{t=await zn(uo.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(a){throw a&&a.name==="RetryError"&&a.cause?a.cause:a}else t=await uo(e);return t}async function uo(e){e.body;let{url:t,responseType:a,requestType:n,...r}=e;a||(a="json"),n||(n="json"),r={mode:"cors",...r},n=="formData"?r.body=no(e.body):n=="urlSearchParams"?r.body=ro(e.body):n=="blob"&&e.body&&(r.body=io(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let u=e.fetchPolyfill||fetch,o=3e4,s;if(e.timeout&&(o=e.timeout),i){let c=new AbortController,d=c.signal;s=setTimeout(()=>{c.abort()},o),r.signal=d}let l;try{l=await u(t,r)}catch(c){ve.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new bt("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{s&&clearTimeout(s)}if(l.ok&&l.status>=200&&l.status<400){if(a=="HEAD"){if(l.url!==t)throw new bt("fetchError","redirect url:"+l.url);return l.statusText}if(a==="json")return await l.json();if(a==="text")return await l.text();if(a==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),p=l.url;return p||(l.headers.get("X-Final-URL")?p=l.headers.get("X-Final-URL"):p=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:p}}else if(a==="base64"){let c=await l.blob(),d=new FileReader,p=new Promise((m,b)=>{d.onload=function(){let T=d.result;m(T)},d.onerror=function(){b(d.error)}});return d.readAsDataURL(c),p}else if(a==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let p of kd(l.body)){let m=new TextDecoder().decode(p);c+=m;let b;for(;(b=c.indexOf(` -`))>=0;){let T=c.slice(0,b).trim();if(c=c.slice(b+1),T.startsWith("event:")||T==="")continue;let S="";if(T.startsWith("data:")&&(S=T.slice(5).trim()),S==="[DONE]")break;let h;try{h=JSON.parse(S??"")}catch(P){ve.debug("json error",P);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(T){ve.error("parse response failed",T)}c&&ve.error("fail response",c);let d="";c&&(d=c.slice(0,500));let p=d,b=new URL(t).hostname.endsWith(`.${$e}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(p="bingAuth:"+d),b&&(d.includes("quota exceeded")&&(p="ProQuota:"+d),d.includes("translation quota reached")&&(p="NewProQuota:"+d)),new bt("fetchError",p).initNetWork(l.status)}}async function*kd(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var oo={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Fd="";function Ca(){return Fd||oo.version}function Sr(){return ae.runtime.getManifest().version}var Bd="";function Dr(){return Bd||globalThis.navigator.userAgent}function mn(){return Dr().includes("ImtFxiOS")}function Tr(){return Dr().includes("ImtFxAndroid")}function Cr(){let e=Dr();if(mn()||Tr()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var pn=function(){return pn=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Pd()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function ka(e){return e.then(void 0,function(){}),e}function Md(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function Id(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(p,m){u[p]=u[p]||[],u[p].push(m)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function jd(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function Pt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,p=0,m=0;m+=i+l,p+=m>>>16,m&=65535,p+=r+s,d+=p>>>16,p&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=p<<16|m}function ut(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,p=0,m=0;m+=i*l,p+=m>>>16,m&=65535,p+=r*l,d+=p>>>16,p&=65535,p+=i*s,d+=p>>>16,p&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=p<<16|m}function ta(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function Qe(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Ee(e,t),ut(e,Nd),t[1]=e[0]>>>1,Ee(e,t),ut(e,Od),t[1]=e[0]>>>1,Ee(e,t)}var gn=[2277735313,289559509],hn=[1291169091,658871167],mo=[0,5],qd=[0,1390208809],zd=[0,944331445];function Ud(e,t){var a=jd(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function Gd(e){var t;return pn({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`))>=0;){let T=c.slice(0,b).trim();if(c=c.slice(b+1),T.startsWith("event:")||T==="")continue;let S="";if(T.startsWith("data:")&&(S=T.slice(5).trim()),S==="[DONE]")break;let h;try{h=JSON.parse(S??"")}catch(P){ve.debug("json error",P);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(T){ve.error("parse response failed",T)}c&&ve.error("fail response",c);let d="";c&&(d=c.slice(0,500));let p=d,b=new URL(t).hostname.endsWith(`.${$e}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(p="bingAuth:"+d),b&&(d.includes("quota exceeded")&&(p="ProQuota:"+d),d.includes("translation quota reached")&&(p="NewProQuota:"+d)),new bt("fetchError",p).initNetWork(l.status)}}async function*kd(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var oo={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Fd="";function Ca(){return Fd||oo.version}function Sr(){return ae.runtime.getManifest().version}var Bd="";function Dr(){return Bd||globalThis.navigator.userAgent}function mn(){return Dr().includes("ImtFxiOS")}function Tr(){return Dr().includes("ImtFxAndroid")}function Cr(){let e=Dr();if(mn()||Tr()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var pn=function(){return pn=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Pd()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function ka(e){return e.then(void 0,function(){}),e}function Md(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function Id(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(p,m){u[p]=u[p]||[],u[p].push(m)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function jd(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function Pt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,p=0,m=0;m+=i+l,p+=m>>>16,m&=65535,p+=r+s,d+=p>>>16,p&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=p<<16|m}function ut(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,p=0,m=0;m+=i*l,p+=m>>>16,m&=65535,p+=r*l,d+=p>>>16,p&=65535,p+=i*s,d+=p>>>16,p&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=p<<16|m}function ta(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function Qe(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Ee(e,t),ut(e,Nd),t[1]=e[0]>>>1,Ee(e,t),ut(e,Od),t[1]=e[0]>>>1,Ee(e,t)}var gn=[2277735313,289559509],hn=[1291169091,658871167],mo=[0,5],qd=[0,1390208809],zd=[0,944331445];function Ud(e,t){var a=jd(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function Gd(e){var t;return pn({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` `)},e)}function Hd(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Wd(e){return typeof e!="function"}function Kd(e,t){var a=ka(new Promise(function(n){var r=Date.now();so(e.bind(null,t),function(){for(var i=[],u=0;u=4}function $d(){var e=window,t=navigator;return Xe(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Do()}function yn(){var e=window,t=navigator;return Xe(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function gt(){var e=window,t=navigator;return Xe(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Lr(){var e=window,t=e.HTMLElement,a=e.Document;return Xe(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),a&&"pointerLockElement"in a.prototype])>=4}function _a(){var e=window;return Hd(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function To(){var e,t,a=window;return Xe(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function Yd(){var e=window;return Xe([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Zd(){var e=window;return Xe(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Fa(){var e=window,t=navigator,a=e.CSS,n=e.HTMLButtonElement;return Xe([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,a.supports("font-size-adjust: ex-height 0.5"),a.supports("text-transform: full-width")])>=4}function Jd(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Xe(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function Qd(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Xd(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ir(){var e=yn(),t=To(),a=window,n=navigator,r="connection";return e?Xe([!("SharedWorker"in a),n[r]&&"ontypechange"in n[r],!("sinkId"in new window.Audio)])>=2:t?Xe(["onorientationchange"in a,"orientation"in a,/android/i.test(navigator.appVersion)])>=2:!1}function em(){return nm()?-4:tm()}function tm(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(am())return-1;var a=4500,n=5e3,r=new t(1,n,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var u=r.createDynamicsCompressor();u.threshold.value=-50,u.knee.value=40,u.ratio.value=12,u.attack.value=0,u.release.value=.25,i.connect(u),u.connect(r.destination),i.start(0);var o=rm(r),s=o[0],l=o[1],c=ka(s.then(function(d){return im(d.getChannelData(0).subarray(a))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function am(){return gt()&&!Lr()&&!Zd()}function nm(){return gt()&&Fa()&&_a()}function rm(e){var t=3,a=500,n=500,r=5e3,i=function(){},u=new Promise(function(o,s){var l=!1,c=0,d=0;e.oncomplete=function(b){return o(b.renderedBuffer)};var p=function(){setTimeout(function(){return s(po("timeout"))},Math.min(n,d+r-Date.now()))},m=function(){try{var b=e.startRendering();switch(So(b)&&ka(b),e.state){case"running":d=Date.now(),l&&p();break;case"suspended":document.hidden||c++,l&&c>=t?s(po("suspended")):setTimeout(m,a);break}}catch(T){s(T)}};m(),i=function(){l||(l=!0,d>0&&p())}});return[u,i]}function im(e){for(var t=0,a=0;a=0?"+":"").concat(n)}function Im(){var e=new Date().getFullYear();return Math.max(pt(new Date(e,0,1).getTimezoneOffset()),pt(new Date(e,6,1).getTimezoneOffset()))}function jm(){try{return!!window.sessionStorage}catch{return!0}}function Nm(){try{return!!window.localStorage}catch{return!0}}function Om(){if(!(Do()||$d()))try{return!!window.indexedDB}catch{return!0}}function qm(){return!!window.openDatabase}function zm(){return navigator.cpuClass}function Um(){var e=navigator.platform;return e==="MacIntel"&>()&&!Lr()?Jd()?"iPad":"iPhone":e}function Gm(){return navigator.vendor||""}function Hm(){for(var e=[],t=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),o.sort(),[2,o]}})})}function $m(){return gt()||Ir()}function Ym(e){var t;return dt(this,void 0,void 0,function(){var a,n,r,i,s,u,o,s;return mt(this,function(l){switch(l.label){case 0:for(a=document,n=a.createElement("div"),r=new Array(e.length),i={},ho(n),s=0;s')}function cp(){return navigator.pdfViewerEnabled}function dp(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function mp(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(pp())return-3;try{return e.canMakePayments()?1:0}catch(t){return gp(t)}}var pp=sm;function gp(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function hp(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var ko=-1,_o=-2,fp=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),bp=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),yp=["FRAGMENT_SHADER","VERTEX_SHADER"],xp=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Fo="WEBGL_debug_renderer_info",vp="WEBGL_polygon_mode";function wp(e){var t,a,n,r,i,u,o=e.cache,s=Bo(o);if(!s)return ko;if(!Ro(s))return _o;var l=Po()?null:s.getExtension(Fo);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function Ep(e){var t=e.cache,a=Bo(t);if(!a)return ko;if(!Ro(a))return _o;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Eo,"/npm-monitoring"),!0),e.send()}catch{}}function Op(e){var t;return e===void 0&&(e={}),dt(this,void 0,void 0,function(){var a,n,r;return mt(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Np(),a=e.delayFallback,n=e.debug,[4,Ip(a)];case 1:return i.sent(),r=kp({cache:{},debug:n}),[2,jp(r,n)]}})})}var jr={load:Op,hashComponents:Mo,componentsToDebugString:Mp};async function Nr(){let e=await rt("fakeUserId","");e||(e=await Sa("fakeUserId",""),e&&await Ne("fakeUserId",e));let t=new Date,a=await rt("installedAt","");return a||(a=await Sa("installedAt",""),a&&await Ne("installedAt",a)),e?a||(a=new Date(0).toISOString(),await Ne("installedAt",a)):(e=await Up(64),await Ne("fakeUserId",e)),a||(a=t.toISOString(),await Ne("installedAt",a)),{fakeUserId:e,installedAt:a}}var qp=10;async function Or(){let e=await rt("userTag","");if(e)return e;let{fakeUserId:t}=await Nr(),n=t.charCodeAt(0)%qp;return e=String.fromCharCode(n+"a".charCodeAt(0)),await Ne("userTag",e),e}function zp(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Gp(i,e)}catch{return zp(64)}}function Gp(e,t=32){let a="";for(let r=0;r{}),xn)}async function No(e,t){try{let a=Fe(),n=a.INSTALL_FROM==="firefox_store";if(Cr()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=Ce(),u=Ut(),o=a.PROD==="1",s=Ca(),l=new Date,{fakeUserId:c,installedAt:d}=await Nr(),p=await Or(),m=await qr(),b=await zr(),T=new Date(d),S=Ur(T),h=Ur(l),P=S===h,_=24*60*60*1e3,z=l.getTime()-T.getTime()<7*_,te=l.getTime()-T.getTime()<30*_,A=l.getTime()-T.getTime()<365*_,f=Lu(),y="";typeof navigator<"u"&&(y=window.navigator.userAgent);let v=Va.parse(y),R=e.map(O=>{let F=O.params||{};if(v.os&&(F.os_name=v.os.name||"unknown",F.os_version=v.os.version||"unknown",F.os_version_name=v.os.versionName||"unknown"),v.browser){F.browser_name=v.browser.name||"unknown",F.browser_version=v.browser.version||"unknown";let B=Cr();B&&(F.browser_name=B.name,F.browser_version=B.version)}if(v.platform&&(F.platform_type=v.platform.type||"unknown"),v.engine&&(F.engine_name=v.engine.name||"unknown",F.engine_version=v.engine.version||"unknown"),s&&(F.version=s),a.INSTALL_FROM&&(F.install_from=a.INSTALL_FROM),S){F.install_day=Lo(T);let B=jo(T);F.install_week=`${B.year}${B.week}`}return F.userscript=i.toString(),P?F.is_new_user_today="1":F.is_new_user_today="0",F.is_new_user_this_week=z?"1":"0",F.is_new_user_this_month=te?"1":"0",F.is_new_user_this_year=A?"1":"0",u?F.main_frame=0:F.main_frame=1,p&&(F.ab_tag=p),m&&(F.ab_group=m),F.campaign=b||"none",{...O,params:F}});f.forEach(async O=>{let F=await Oo({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&Wp(c,R)}catch{}}async function Hp(e){return await Gr().sendMessage("background:main",e)}function Oo(e){return Oa()?rn({method:"request",data:e}):Ce()||Na()?(e.fetchPolyfill=globalThis.GM_fetch,ln(e)):Hp({method:"fetch",data:e})}function Wp(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Io(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);Oo({url:Iu,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){ve.debug("report self service error",a)}}var vn={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[s]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(s)}}}function Jm(){for(var e=0,t=["rec2020","p3","srgb"];e')}function cp(){return navigator.pdfViewerEnabled}function dp(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function mp(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(pp())return-3;try{return e.canMakePayments()?1:0}catch(t){return gp(t)}}var pp=sm;function gp(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function hp(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var ko=-1,_o=-2,fp=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),bp=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),yp=["FRAGMENT_SHADER","VERTEX_SHADER"],xp=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Fo="WEBGL_debug_renderer_info",vp="WEBGL_polygon_mode";function wp(e){var t,a,n,r,i,u,o=e.cache,s=Bo(o);if(!s)return ko;if(!Ro(s))return _o;var l=Po()?null:s.getExtension(Fo);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function Ep(e){var t=e.cache,a=Bo(t);if(!a)return ko;if(!Ro(a))return _o;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Eo,"/npm-monitoring"),!0),e.send()}catch{}}function Op(e){var t;return e===void 0&&(e={}),dt(this,void 0,void 0,function(){var a,n,r;return mt(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Np(),a=e.delayFallback,n=e.debug,[4,Ip(a)];case 1:return i.sent(),r=kp({cache:{},debug:n}),[2,jp(r,n)]}})})}var jr={load:Op,hashComponents:Mo,componentsToDebugString:Mp};async function Nr(){let e=await rt("fakeUserId","");e||(e=await Sa("fakeUserId",""),e&&await Ne("fakeUserId",e));let t=new Date,a=await rt("installedAt","");return a||(a=await Sa("installedAt",""),a&&await Ne("installedAt",a)),e?a||(a=new Date(0).toISOString(),await Ne("installedAt",a)):(e=await Up(64),await Ne("fakeUserId",e)),a||(a=t.toISOString(),await Ne("installedAt",a)),{fakeUserId:e,installedAt:a}}var qp=10;async function Or(){let e=await rt("userTag","");if(e)return e;let{fakeUserId:t}=await Nr(),n=t.charCodeAt(0)%qp;return e=String.fromCharCode(n+"a".charCodeAt(0)),await Ne("userTag",e),e}function zp(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Gp(i,e)}catch{return zp(64)}}function Gp(e,t=32){let a="";for(let r=0;r{}),xn)}async function No(e,t){try{let a=Fe(),n=a.INSTALL_FROM==="firefox_store";if(Cr()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=Ce(),u=Ut(),o=a.PROD==="1",s=Ca(),l=new Date,{fakeUserId:c,installedAt:d}=await Nr(),p=await Or(),m=await qr(),b=await zr(),T=new Date(d),S=Ur(T),h=Ur(l),P=S===h,_=24*60*60*1e3,z=l.getTime()-T.getTime()<7*_,te=l.getTime()-T.getTime()<30*_,A=l.getTime()-T.getTime()<365*_,f=Lu(),y="";typeof navigator<"u"&&(y=window.navigator.userAgent);let v=Va.parse(y),R=e.map(O=>{let F=O.params||{};if(v.os&&(F.os_name=v.os.name||"unknown",F.os_version=v.os.version||"unknown",F.os_version_name=v.os.versionName||"unknown"),v.browser){F.browser_name=v.browser.name||"unknown",F.browser_version=v.browser.version||"unknown";let B=Cr();B&&(F.browser_name=B.name,F.browser_version=B.version)}if(v.platform&&(F.platform_type=v.platform.type||"unknown"),v.engine&&(F.engine_name=v.engine.name||"unknown",F.engine_version=v.engine.version||"unknown"),s&&(F.version=s),a.INSTALL_FROM&&(F.install_from=a.INSTALL_FROM),S){F.install_day=Lo(T);let B=jo(T);F.install_week=`${B.year}${B.week}`}return F.userscript=i.toString(),P?F.is_new_user_today="1":F.is_new_user_today="0",F.is_new_user_this_week=z?"1":"0",F.is_new_user_this_month=te?"1":"0",F.is_new_user_this_year=A?"1":"0",u?F.main_frame=0:F.main_frame=1,p&&(F.ab_tag=p),m&&(F.ab_group=m),F.campaign=b||"none",{...O,params:F}});f.forEach(async O=>{let F=await Oo({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&Wp(c,R)}catch{}}async function Hp(e){return await Gr().sendMessage("background:main",e)}function Oo(e){return Oa()?rn({method:"request",data:e}):Ce()||Na()?(e.fetchPolyfill=globalThis.GM_fetch,ln(e)):Hp({method:"fetch",data:e})}function Wp(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Io(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);Oo({url:Iu,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){ve.debug("report self service error",a)}}var vn={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5770,11 +5770,11 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var c6=Ce();function wn(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function qo(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ut())return globalThis.location.href;try{let t=globalThis.location.href,a=new URL(t);if(a.protocol==="about:"||a.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let n="";try{n=globalThis.parent.location.href}catch{}return n||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}var Wo,oe,Ko,Vp,Ba,zo,Vo,$o={},Yo=[],$p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Rt(e,t){for(var a in t)e[a]=t[a];return e}function Zo(e){var t=e.parentNode;t&&t.removeChild(e)}function Hr(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ko};return r==null&&oe.vnode!=null&&oe.vnode(i),i}function Kt(e){return e.children}function En(e,t){this.props=e,this.context=t}function ra(e,t){if(t==null)return e.__?ra(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Hr(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=a,m.__b=a.__b+1,(p=h[c])===null||p&&m.key==p.key&&m.type===p.type)h[c]=void 0;else for(d=0;dps.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(ps.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return ig(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let S=s.split("://");l=S[0],l==="*"&&S.length>1&&(l="*",s="https://"+S[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,hs),p;try{p=new URL(d)}catch{return ve.debug("invalid match pattern",d,"raw match value:",c),!1}let m=p.host,b=p.pathname;b==="/"&&(c.replace("://","").includes("/")||(b="/*"));let T=rg(l+":",gs(m),gs(b));return T?T.test(e):!1}});if(o)return o}return null}catch{return null}}function gs(e){return e.replaceAll(hs,"*")}function rg(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function xt(e,t){return Jr(e,t)!==null}function ig(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var ug=null;if(typeof trustedTypes<"u")try{ug=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var og=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(og=!0)});var K6=globalThis.document?.createElement("div");function Qr(){return Tr()?"imtAndroid":mn()?"imtIOS":Ce()?"userscript":Ct()?"safari":Ei()?"firefox":vi()?"chrome":"other"}var sg={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},_w={...sg};function Pa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Tn(e){return Array.isArray(e)?e:e?[e]:[]}function fs(e,t){let a=[...e];for(let n of t)n.startsWith("[+]")&&!a.includes(n.slice(3))?a.push(n.slice(3)):n.startsWith("[-]")?a=a.filter(r=>r!==n.slice(3)):a.includes(n)||a.push(n);return a}function Ra(e,t){let a={...e};return ws(a,t),lg(a,t),a}function vs(e,t,a){let n={...e};return vt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),vt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function lg(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;ws(e,r)}function vt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=bs(i);if(u=="rich"){if(!r)return n(i,e[i]);let[p,m,b,T]=bs(i);u=p+"."+m,o=b,s=T}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Tn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!ys(s))return;d=Xr(c,l)}else if(o=="remove_v"){if(!ys(s))return;d=xs(c,l)}else o==="add"?d=Xr(c,l):o=="remove"&&(d=xs(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Xr(c,l):d=l,n(u,d)})}function ws(e,t){return vt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Xr(e,t){let a;if(Array.isArray(e)){let n=Tn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function bs(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function ys(e){let t=Ca();return e&&Pa(t,e)}function xs(e,t){if(Array.isArray(e)){let a=Tn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var Es="userConfig",Ss="userPromptPool",As="userObjectPool";async function Ds(){let e=await Fs(Es)||{},t=await on(Ss)||{},a=await on(As)||{};return dg(e,t,a)}async function Ts(e){let{userConfig:t,promptPool:a,objectPool:n}=await cg(e);await _s(Es,t),await un(Ss,a),await un(As,n)}function cg(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return Cs(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),ks(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function dg(e,t,a){return Cs(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),ks(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function Cs(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function ks(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}function Bs(e,t){return Ps(e,a=>{let n=[];return n=a.split(/\s*==\s*/),n.length>1?t[n[0]]==n[1].trim():(n=a.split(/\s*!=\s*/),n.length>1?t[n[0]]!=n[1].trim():a=="true")})}function Ps(e,t){let a=!0;e=e.replace(/\((.+?)\)/g,(s,l)=>Ps(l,t)+"");let n=[],r=[],i,u=0,o=/ (&&|\|\|) /g;for(;(i=o.exec(e))!==null;)r.push(e.substring(u,i.index)),n.push(i[0]),u=i.index+i[0].length;if(n.length>0){r.length==n.length&&r.push(e.substring(u));for(let s=0;sArray.isArray(n[c]),getMergedValue:c=>n[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),vt({rule:e.generalRule,valueIsArray:c=>Array.isArray(n.generalRule[c]),getMergedValue:c=>n.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),bg(l),fg(a,s,l),l=await wg(l,s),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function mg(){if(J.PROD==="1")return{};let e={};if(J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(J.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:J.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(J.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:J.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(J.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&J.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:J.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:J.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(J.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:J.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(J.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=J.DEEPL_PROXY_ENDPOINT),J.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=J.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),J.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:J.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}J.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=J.IMMERSIVE_TRANSLATE_SERVICE);let t={};return J.DEBUG==="1"&&(t.debug=!0,t.cache=!1),J.MOCK==="1"&&(t.translationService="mock"),t}async function Ta(){let e=await ae.storage.local.get(xa);if(e[xa]){let t=e[xa],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await wr(i),i}else return{}}async function wr(e){await ae.storage.local.set({[xa]:e})}async function Ms(){return J.DEBUG==="1"?void 0:(await ae.storage.local.get(lr))[lr]}async function Ls(){let e=await Ms(),a={...Ar(),...vn,buildinConfigUpdatedAt:J.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let n=new Date(e.buildinConfigUpdatedAt),r=new Date(a.buildinConfigUpdatedAt);n>r&&(a=e)}return a}function cn(){return Ds()}function dn(e){return Ts(e)}async function _s(e,t){await ae.storage.sync.set({[e]:t})}async function Fs(e){return(await ae.storage.sync.get(e))[e]}async function un(e,t){await ae.storage.local.set({[e]:t})}async function on(e){return(await ae.storage.local.get(e))[e]}var pg=async()=>{let e=["zh-CN"];try{e=await ae.i18n.getAcceptLanguages()}catch(n){ve.warn("get browser language error:",n)}let a=e.map(n=>an(n)).find(n=>Xu.find(r=>r===n));return a||"en"},Ar=()=>{let e={...vn,buildinConfigUpdatedAt:J.BUILD_TIME};return{...e,targetLanguage:Bt,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function gg(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function hg(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Bt;let a=await rt("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=Rs(l,n[o]))}),vt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=Rs(l,a[o]))}),vt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}async function bg(e){try{let t=await rt("installedAt",""),a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){ve.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Rs(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}async function yg(e,t,a){let n=e.interfaceLanguage==="en",r=e.targetLanguage==="en",i=a&&a.translationLanguagePattern&&a.translationLanguagePattern.matches&&a.translationLanguagePattern.matches.length===0,u=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!n&&!r&&!i&&u?a.translationLanguagePattern||(a.translationLanguagePattern={matches:["en"],excludeMatches:[]}):a.translationLanguagePattern={matches:[],excludeMatches:[]};let o=a&&a.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(o=!1);let s=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;s===void 0&&(l.length>0?s=!0:s=!1,e.isChangedAlwaysTranslatedUrls=s,t.isChangedAlwaysTranslatedUrls=s,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,p=await rt("installedAt",""),m=Number(await Sa("translage_page_daily",0)),b=Number(await rt(nt,0)),T;b>0&&(Date.now()-b0&&(Date.now()-mn&&(e=t)}return e}function vg(e,t){let a=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let n=e.tempTranslationUrlMatches.filter(r=>new Date(r.expiredAt)>a);if(n.length>0){let r=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(r)?r:[r],u=Array.from(new Set(i.concat(n.map(o=>o.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:u}}}}async function wg(e,t){let a=await Eg(),n=Object.keys(e),r=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of n){let u=i;if(u==="generalRule")typeof t[u]=="object"&&(e[u]=Ra(e[u],t[u]));else if(u==="translationServices")Is(t,e);else if(typeof t[u]!="string"&&typeof t[u]!="boolean"&&typeof t[u]!="number"&&r.includes(u))t[u]&&(e[u]=Object.assign(e[u],t[u])),u==="shortcuts"&&(Ce()||Ct()?e[u]={...e[u],...a}:e[u]={...a});else if(u==="rules"){if(Array.isArray(t[u])){let o=e.rules||[],s={};for(let c of o)c.id&&(s[c.id]=c);let l=t[u].map(c=>c.id&&s[c.id]?vs(e.generalRule,s[c.id],c):c);e[u]=[...l,...e[u]]}if(J.PROD==="0"&&J.DEV_RULES){let o=JSON.parse(J.DEV_RULES);e[u]=[...o,...e[u]]}}else t[u]!==void 0&&(e[u]=t[u])}return e}async function Eg(){let e={};if(!Ce()&&ae.commands&&ae.commands.getAll){let t=await ae.commands.getAll();for(let a of t)a.name&&a.shortcut&&(e[a.name]=a.shortcut)}return e}function js(e,t,a){let n=t;return a.advanceMergeConfig&&a.advanceMergeConfig.forEach(({condition:r,advanceConfig:i})=>{if(!r||!i||!Bs(r,e))return;let{generalRule:o,translationServices:s,...l}=i;vt({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),s&&Is(i,e),o&&(n=Ra(n,o))}),n}var ia="input is invalid type",ei=typeof window=="object",Mt=ei?window:{};Mt.JS_SHA256_NO_WINDOW&&(ei=!1);var Sg=!ei&&typeof self=="object",Ag=!Mt.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;Ag?Mt=global:Sg&&(Mt=self);var B2=!Mt.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,P2=typeof define=="function"&&define.amd,Ma=!Mt.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",N="0123456789abcdef".split(""),Dg=[-2147483648,8388608,32768,128],ht=[24,16,8,0],Cn=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],kn=["hex","array","digest","arrayBuffer"],Ie=[];(Mt.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Ma&&(Mt.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ns=function(e,t){return function(a){return new je(t,!0).update(a)[e]()}},qs=function(e){var t=Ns("hex",e);t.create=function(){return new je(e)},t.update=function(r){return t.create().update(r)};for(var a=0;a>2]|=e[r]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|n&63)<=57344?(o[i>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<=64?(this.block=o[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};je.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=Dg[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};je.prototype.hash=function(){var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=this.blocks,l,c,d,p,m,b,T,S,h,P,_;for(l=16;l<64;++l)m=s[l-15],c=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=s[l-2],d=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,s[l]=s[l-16]+c+s[l-7]+d<<0;for(_=t&a,l=0;l<64;l+=4)this.first?(this.is224?(S=300032,m=s[0]-1413257819,o=m-150054599<<0,n=m+24177077<<0):(S=704751109,m=s[0]-210244248,o=m-1521486534<<0,n=m+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),S=e&t,p=S^e&a^_,T=r&i^~r&u,m=o+d+T+Cn[l]+s[l],b=c+p,o=n+m<<0,n=m+b<<0),c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),h=n&e,p=h^n&t^S,T=o&r^~o&i,m=u+d+T+Cn[l+1]+s[l+1],b=c+p,u=a+m<<0,a=m+b<<0,c=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),d=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),P=a&n,p=P^a&e^h,T=u&o^~u&r,m=i+d+T+Cn[l+2]+s[l+2],b=c+p,i=t+m<<0,t=m+b<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),_=t&a,p=_^t&n^P,T=i&u^~i&o,m=r+d+T+Cn[l+3]+s[l+3],b=c+p,r=e+m<<0,e=m+b<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+a<<0,this.h3=this.h3+n<<0,this.h4=this.h4+r<<0,this.h5=this.h5+i<<0,this.h6=this.h6+u<<0,this.h7=this.h7+o<<0};je.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=N[e>>28&15]+N[e>>24&15]+N[e>>20&15]+N[e>>16&15]+N[e>>12&15]+N[e>>8&15]+N[e>>4&15]+N[e&15]+N[t>>28&15]+N[t>>24&15]+N[t>>20&15]+N[t>>16&15]+N[t>>12&15]+N[t>>8&15]+N[t>>4&15]+N[t&15]+N[a>>28&15]+N[a>>24&15]+N[a>>20&15]+N[a>>16&15]+N[a>>12&15]+N[a>>8&15]+N[a>>4&15]+N[a&15]+N[n>>28&15]+N[n>>24&15]+N[n>>20&15]+N[n>>16&15]+N[n>>12&15]+N[n>>8&15]+N[n>>4&15]+N[n&15]+N[r>>28&15]+N[r>>24&15]+N[r>>20&15]+N[r>>16&15]+N[r>>12&15]+N[r>>8&15]+N[r>>4&15]+N[r&15]+N[i>>28&15]+N[i>>24&15]+N[i>>20&15]+N[i>>16&15]+N[i>>12&15]+N[i>>8&15]+N[i>>4&15]+N[i&15]+N[u>>28&15]+N[u>>24&15]+N[u>>20&15]+N[u>>16&15]+N[u>>12&15]+N[u>>8&15]+N[u>>4&15]+N[u&15];return this.is224||(s+=N[o>>28&15]+N[o>>24&15]+N[o>>20&15]+N[o>>16&15]+N[o>>12&15]+N[o>>8&15]+N[o>>4&15]+N[o&15]),s};je.prototype.toString=je.prototype.hex;je.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,a>>24&255,a>>16&255,a>>8&255,a&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(o>>24&255,o>>16&255,o>>8&255,o&255),s};je.prototype.array=je.prototype.digest;je.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function _n(e,t,a){var n,r=typeof e;if(r==="string"){var i=[],u=e.length,o=0,s;for(n=0;n>6,i[o++]=128|s&63):s<55296||s>=57344?(i[o++]=224|s>>12,i[o++]=128|s>>6&63,i[o++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++n)&1023),i[o++]=240|s>>18,i[o++]=128|s>>12&63,i[o++]=128|s>>6&63,i[o++]=128|s&63);e=i}else if(r==="object"){if(e===null)throw new Error(ia);if(Ma&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Ma||!ArrayBuffer.isView(e)))throw new Error(ia)}else throw new Error(ia);e.length>64&&(e=new je(t,!0).update(e).array());var l=[],c=[];for(n=0;n<64;++n){var d=e[n]||0;l[n]=92^d,c[n]=54^d}je.call(this,t,a),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=a}_n.prototype=new je;_n.prototype.finalize=function(){if(je.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();je.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),je.prototype.finalize.call(this)}};var ua=qs();ua.sha256=ua;ua.sha224=qs(!0);ua.sha256.hmac=zs();ua.sha224.hmac=zs(!0);var Us=ua;var Tg=Us.sha256;function ti(e){return Promise.resolve(Tg(e))}var Cg=Kr(null);async function _g(e,t,a){a=a||await vr();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&Gs(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&Gs(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await cn();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Yu(a),await dn(i)}catch{return!1}return r}async function Fg(e,t){(await Promise.allSettled(e.map(n=>Ht({url:`${x.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&_g("add",r,t)}})}async function Bg(e,t,a=!0){e||(e=await Wt()),t||(t=await vr());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await Mg();i=await Rg(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&Fg(u,t)}var E1=pa(Bg,1500);function Gs(e){return Pa(Sr(),e.extensionVersion)}function Pg(e,t){return t?!Pa(e.version,t):!1}function Rg(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{Pg(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function Mg(){return(await Ht({url:`${x.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function ai(e){let{url:t,config:a,state:n}=e,r=new URL(t),i="auto",{translationParagraphLanguagePattern:u,translationService:o,translationServices:s,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:p,sourceLanguageUrlPattern:m,immediateTranslationPattern:b}=a,T=p||"zh-CN",S=oa(t,u),h=oa(t,b),P=o,_=Object.keys(s);for(let D of _){let K=s[D];if(oa(t,K)){P=D;break}}let z=l,te=Object.keys(c);for(let D of te){let K=c[D];if(K&&oa(t,K)){z=D;break}}let A=oa(t,d),f=Hs(t,d);f||(f=xt(t,Cu)),f||(f=xt(t,a.blockUrls));let y=Hs(t,a.inputTranslationUrlPattern);y||(y=xt(t,a.inputTranslationBlockUrls));let v=xt(t,a.mutationBlockUrls),R=Object.keys(m),O={};for(let D of R){let K=m[D];if(K&&K.matches)for(let be of K.matches)O[be]=D}let F=Object.keys(O),B=Jr(t,F);B&&(i=O[B]??"auto",O[B]&&O[B]!=="auto"&&hr(O[B]));let Z=r.hostname,V=await ti(Z),fe=r.pathname+r.search+r.hash,we=await ti(fe),ne=`https://${V}.com/${we}`,re=await Ta(),Re=await Ls(),se=a.translationStartMode,E=Ig(re,a);re.aiAssistants=jg(E,a),se==="dynamic"&&h&&(se="immediate");let C=P;a.inputTranslationService&&a.inputTranslationService!=="inherit"&&(C=a.inputTranslationService);let L=P;a.mouseHoverTranslationService&&a.mouseHoverTranslationService!=="inherit"&&(L=a.mouseHoverTranslationService);let ee=P;a.subtitleTranslateService&&a.subtitleTranslateService!=="inherit"&&(ee=a.subtitleTranslateService);let W=await qt.get(Dt,null),de=!1;W&&(de=zt(W)),a.platform=Qr();let q={targetLanguage:T,config:a,translationService:P,inputTranslationService:C,mouseHoverTranslationService:L,subtitleTranslateService:ee,isTranslateUrl:A,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:f,isMutationTranslationExcludeUrl:v,isInputTranslationExcludeUrl:y,rule:a.generalRule,url:t,encryptedUrl:ne,state:n?Object.assign({translationMode:a.translationMode,translationArea:a.translationArea,translationStartMode:se,immediateTranslationTextCount:a.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:S,cache:a.cache,translationTheme:z,isTranslateDirectlyOnHover:!1},n):{translationMode:a.translationMode,translationArea:a.translationArea,translationStartMode:se,immediateTranslationTextCount:a.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:S,cache:a.cache,translationTheme:z,isTranslateDirectlyOnHover:!1},localConfig:re};W&&(q.user=W,de?q.isPro=!0:q.isPro=!1),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(D=>!q.config.generalRule.bodyTranslateTags.includes(D)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(D=>D!==".btn"));let G=a.translationServices[q.translationService]||{};G.immediateTranslationTextCount!==void 0&&Lg(G.immediateTranslationTextCount)&&G.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=G.immediateTranslationTextCount),q.translationService==="deepl"&&(G?.authKey?.startsWith("immersive_")||G?.provider==="pro"&&q.user?.token)&&G.immediateTranslationTextCountForImmersiveDeepl!==void 0&&G.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=G.immediateTranslationTextCountForImmersiveDeepl),G&&G.translationDebounce&&typeof G.translationDebounce=="number"&&(q.state.translationDebounce=G.translationDebounce);let U=Re.immediateTranslationTextCount;a.immediateTranslationTextCount!==U&&(q.state.immediateTranslationTextCount=a.immediateTranslationTextCount);let H=a.rules,Y;globalThis.PDFViewerApplication?Y=H.find(D=>D.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Y=H.find(D=>D.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Y=H.find(D=>D.pageType=="ebookBuilder"):Y=H.find(D=>oa(t,D)),Y&&Y.pageType==="ebookBuilder"&&(q.state.translationStartMode="immediate");let ue=a.generalRule;if(Y&&(q.rule=Ra(ue,Y),q.rule=js(a,q.rule,Y)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(D=>!q.rule.bodyTranslateTags.includes(D)&&!q.rule.forceTranslateTags.includes(D))),q.rule.mainFrameSelector){let D=document.querySelector(q.rule.mainFrameSelector);D&&(q.mainFrame=D)}return q}function oa(e,t){if(!t)return!1;let{matches:a,excludeMatches:n,selectorMatches:r,excludeSelectorMatches:i}=t;return n&&n.length>0&&xt(e,n)?!1:a&&a.length>0&&xt(e,a)?!0:i&&i.length>0&&wn(i)?!1:!!(r&&r.length>0&&wn(r))}function Hs(e,t){if(!t)return!1;let{excludeMatches:a,excludeSelectorMatches:n}=t;return!!(a&&a.length>0&&xt(e,a)||n&&n.length>0&&wn(n))}function Lg(e){return typeof e=="number"}function Ig(e,t){let a=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(r=>{let i=a.findIndex(u=>u.id===r.id);i!==-1?a[i]=r:a.push(r)}),a}function jg(e,t){try{let a=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(n=>{let r=fs(n.matches||[],a[n.id]?.matches||[]);return{...n,matches:r}})}catch(a){return ve.error(a),e}}var sa="imt-subtitle-inject",Fn=class{from;to;constructor(t,a){this.from=t,this.to=a}sendMessages(t){globalThis.postMessage({type:sa,to:this.to,from:this.from,action:t.action,data:t.data,id:t.id||new Date().getTime(),isAsync:!1})}getRandomId(){return(new Date().getTime()+Math.random())*Math.random()}sendAsyncMessages({action:t,data:a}){return new Promise(n=>{let r=this.getRandomId();globalThis.postMessage({type:sa,to:this.to,from:this.from,action:t,data:a,id:r,isAsync:!0});let i=({data:u})=>{sa===u.type&&u.id===r&&u.to===this.from&&(n(u.data),globalThis.removeEventListener("message",i))};globalThis.addEventListener("message",i)})}handleMessageOnce(t){return new Promise(a=>{let n=({data:r})=>{sa===r.type&&r.action===t&&r.to===this.from&&(a(r.data),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)})}handleMessage(t,a){let n=({data:r})=>{sa===r.type&&r.action===t&&r.to===this.from&&a(r)};return globalThis.addEventListener("message",n),()=>{globalThis.removeEventListener("message",n)}}handleMessages(t){let a=({data:n})=>{sa===n.type&&n.to===this.from&&t(n)};return globalThis.addEventListener("message",a),()=>{globalThis.removeEventListener("message",a)}}},Bn=new Fn("content-script","inject"),Ng=new Fn("inject","content-script"),Ws={get(e,t,a){return t in e?(...n)=>{let r=e[t];return typeof r=="function"?r.apply(e,n):Reflect.get(e,t,a)}:n=>e.sendAsyncMessages({action:t,data:n})}},W1=new Proxy(Ng,Ws),K1=new Proxy(Bn,Ws);async function Og(){try{let e=await Gg(qo(),{});if(e.isTranslateExcludeUrl)return;let t=e.rule.subtitleRule;t&&t.type&&!t.disabled&&t.isInject&&zg(e);let a=e.rule.imageRule;a?.enable&&a.type&&qg(e),Ug(e)}catch{}}function qg(e){if(Ce()){let a=Fe().IMMERSIVE_TRANSLATE_IMAGE_INJECT,n=document.createElement("script");n.id="imt-image-inject",n.textContent=a,document.head?.appendChild(n)}else ae.storage.sync.get("open").then(()=>{let t=ae.runtime.getURL("image/inject.js");if(document.querySelector(`script[src='${t}']`))return;let n=document.createElement("script");n.src=t,n.id="imt-image-inject",document.head?.appendChild(n)})}function zg(e){if(Ce()){let a=Fe().IMMERSIVE_TRANSLATE_VIDEO_SUBTITLE_INJECT,n=document.createElement("script");n.id="imt-subtitles-inject",n.textContent=a,document.head?.appendChild(n)}else ae.storage.sync.get("open").then(()=>{let t=ae.runtime.getURL("video-subtitle/inject.js");if(document.querySelector(`script[src='${t}']`))return;let n=document.createElement("script");n.src=t,n.id="imt-subtitles-inject",document.head?.appendChild(n)})}function Ug(e){Bn.handleMessages(({id:t,action:a})=>{if(a==="getConfig"){let n=e.rule.subtitleRule;Bn.sendMessages({id:t,data:n})}})}Og();var la=null;async function Gg(e,t){let a=Object.keys(t);if(la){let n={url:e,config:la.config,state:{...la.state,...t}};la=await ai(n)}else{let n=await Hg(),r=t;a.length===0&&(r=void 0),la=await ai({url:e,config:n,state:r})}return la}function Hg(){return Ce()?Wt():Wg({method:"getConfig"})}async function Wg(e){return await Gr().sendMessage("background:main",e)}})(); +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var c6=Ce();function wn(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function qo(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ut())return globalThis.location.href;try{let t=globalThis.location.href,a=new URL(t);if(a.protocol==="about:"||a.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let n="";try{n=globalThis.parent.location.href}catch{}return n||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}var Wo,oe,Ko,Vp,Ba,zo,Vo,$o={},Yo=[],$p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Rt(e,t){for(var a in t)e[a]=t[a];return e}function Zo(e){var t=e.parentNode;t&&t.removeChild(e)}function Hr(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ko};return r==null&&oe.vnode!=null&&oe.vnode(i),i}function Kt(e){return e.children}function En(e,t){this.props=e,this.context=t}function ra(e,t){if(t==null)return e.__?ra(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Hr(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=a,m.__b=a.__b+1,(p=h[c])===null||p&&m.key==p.key&&m.type===p.type)h[c]=void 0;else for(d=0;dps.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(ps.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return ig(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let S=s.split("://");l=S[0],l==="*"&&S.length>1&&(l="*",s="https://"+S[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,hs),p;try{p=new URL(d)}catch{return ve.debug("invalid match pattern",d,"raw match value:",c),!1}let m=p.host,b=p.pathname;b==="/"&&(c.replace("://","").includes("/")||(b="/*"));let T=rg(l+":",gs(m),gs(b));return T?T.test(e):!1}});if(o)return o}return null}catch{return null}}function gs(e){return e.replaceAll(hs,"*")}function rg(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function xt(e,t){return Jr(e,t)!==null}function ig(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var ug=null;if(typeof trustedTypes<"u")try{ug=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var og=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(og=!0)});var K6=globalThis.document?.createElement("div");function Qr(){return Tr()?"imtAndroid":mn()?"imtIOS":Ce()?"userscript":Ct()?"safari":Ei()?"firefox":vi()?"chrome":"other"}var sg={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},_w={...sg};function Pa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Tn(e){return Array.isArray(e)?e:e?[e]:[]}function fs(e,t){let a=[...e];for(let n of t)n.startsWith("[+]")&&!a.includes(n.slice(3))?a.push(n.slice(3)):n.startsWith("[-]")?a=a.filter(r=>r!==n.slice(3)):a.includes(n)||a.push(n);return a}function Ra(e,t){let a={...e};return ws(a,t),lg(a,t),a}function vs(e,t,a){let n={...e};return vt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),vt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function lg(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;ws(e,r)}function vt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=bs(i);if(u=="rich"){if(!r)return n(i,e[i]);let[p,m,b,T]=bs(i);u=p+"."+m,o=b,s=T}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Tn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!ys(s))return;d=Xr(c,l)}else if(o=="remove_v"){if(!ys(s))return;d=xs(c,l)}else o==="add"?d=Xr(c,l):o=="remove"&&(d=xs(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Xr(c,l):d=l,n(u,d)})}function ws(e,t){return vt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Xr(e,t){let a;if(Array.isArray(e)){let n=Tn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function bs(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function ys(e){let t=Ca();return e&&Pa(t,e)}function xs(e,t){if(Array.isArray(e)){let a=Tn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var Es="userConfig",Ss="userPromptPool",As="userObjectPool";async function Ds(){let e=await Fs(Es)||{},t=await on(Ss)||{},a=await on(As)||{};return dg(e,t,a)}async function Ts(e){let{userConfig:t,promptPool:a,objectPool:n}=await cg(e);await _s(Es,t),await un(Ss,a),await un(As,n)}function cg(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return Cs(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),ks(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function dg(e,t,a){return Cs(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),ks(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function Cs(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function ks(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}function Bs(e,t){return Ps(e,a=>{let n=[];return n=a.split(/\s*==\s*/),n.length>1?t[n[0]]==n[1].trim():(n=a.split(/\s*!=\s*/),n.length>1?t[n[0]]!=n[1].trim():a=="true")})}function Ps(e,t){let a=!0;e=e.replace(/\((.+?)\)/g,(s,l)=>Ps(l,t)+"");let n=[],r=[],i,u=0,o=/ (&&|\|\|) /g;for(;(i=o.exec(e))!==null;)r.push(e.substring(u,i.index)),n.push(i[0]),u=i.index+i[0].length;if(n.length>0){r.length==n.length&&r.push(e.substring(u));for(let s=0;sArray.isArray(n[c]),getMergedValue:c=>n[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),vt({rule:e.generalRule,valueIsArray:c=>Array.isArray(n.generalRule[c]),getMergedValue:c=>n.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await bg(l),fg(a,s,l),l=await wg(l,s),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function mg(){if(J.PROD==="1")return{};let e={};if(J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(J.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:J.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(J.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:J.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(J.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&J.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:J.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:J.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(J.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:J.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(J.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=J.DEEPL_PROXY_ENDPOINT),J.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=J.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),J.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:J.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}J.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=J.IMMERSIVE_TRANSLATE_SERVICE);let t={};return J.DEBUG==="1"&&(t.debug=!0,t.cache=!1),J.MOCK==="1"&&(t.translationService="mock"),t}async function Ta(){let e=await ae.storage.local.get(xa);if(e[xa]){let t=e[xa],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await wr(i),i}else return{}}async function wr(e){await ae.storage.local.set({[xa]:e})}async function Ms(){return J.DEBUG==="1"?void 0:(await ae.storage.local.get(lr))[lr]}async function Ls(){let e=await Ms(),a={...Ar(),...vn,buildinConfigUpdatedAt:J.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let n=new Date(e.buildinConfigUpdatedAt),r=new Date(a.buildinConfigUpdatedAt);n>r&&(a=e)}return a}function cn(){return Ds()}function dn(e){return Ts(e)}async function _s(e,t){await ae.storage.sync.set({[e]:t})}async function Fs(e){return(await ae.storage.sync.get(e))[e]}async function un(e,t){await ae.storage.local.set({[e]:t})}async function on(e){return(await ae.storage.local.get(e))[e]}var pg=async()=>{let e=["zh-CN"];try{e=await ae.i18n.getAcceptLanguages()}catch(n){ve.warn("get browser language error:",n)}let a=e.map(n=>an(n)).find(n=>Xu.find(r=>r===n));return a||"en"},Ar=()=>{let e={...vn,buildinConfigUpdatedAt:J.BUILD_TIME};return{...e,targetLanguage:Bt,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function gg(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function hg(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Bt;let a=await rt("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=Rs(l,n[o]))}),vt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=Rs(l,a[o]))}),vt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}async function bg(e){try{let t=await rt("installedAt",""),a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){ve.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Rs(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}async function yg(e,t,a){let n=e.interfaceLanguage==="en",r=e.targetLanguage==="en",i=a&&a.translationLanguagePattern&&a.translationLanguagePattern.matches&&a.translationLanguagePattern.matches.length===0,u=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!n&&!r&&!i&&u?a.translationLanguagePattern||(a.translationLanguagePattern={matches:["en"],excludeMatches:[]}):a.translationLanguagePattern={matches:[],excludeMatches:[]};let o=a&&a.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(o=!1);let s=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;s===void 0&&(l.length>0?s=!0:s=!1,e.isChangedAlwaysTranslatedUrls=s,t.isChangedAlwaysTranslatedUrls=s,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,p=await rt("installedAt",""),m=Number(await Sa("translage_page_daily",0)),b=Number(await rt(nt,0)),T;b>0&&(Date.now()-b0&&(Date.now()-mn&&(e=t)}return e}function vg(e,t){let a=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let n=e.tempTranslationUrlMatches.filter(r=>new Date(r.expiredAt)>a);if(n.length>0){let r=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(r)?r:[r],u=Array.from(new Set(i.concat(n.map(o=>o.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:u}}}}async function wg(e,t){let a=await Eg(),n=Object.keys(e),r=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of n){let u=i;if(u==="generalRule")typeof t[u]=="object"&&(e[u]=Ra(e[u],t[u]));else if(u==="translationServices")Is(t,e);else if(typeof t[u]!="string"&&typeof t[u]!="boolean"&&typeof t[u]!="number"&&r.includes(u))t[u]&&(e[u]=Object.assign(e[u],t[u])),u==="shortcuts"&&(Ce()||Ct()?e[u]={...e[u],...a}:e[u]={...a});else if(u==="rules"){if(Array.isArray(t[u])){let o=e.rules||[],s={};for(let c of o)c.id&&(s[c.id]=c);let l=t[u].map(c=>c.id&&s[c.id]?vs(e.generalRule,s[c.id],c):c);e[u]=[...l,...e[u]]}if(J.PROD==="0"&&J.DEV_RULES){let o=JSON.parse(J.DEV_RULES);e[u]=[...o,...e[u]]}}else t[u]!==void 0&&(e[u]=t[u])}return e}async function Eg(){let e={};if(!Ce()&&ae.commands&&ae.commands.getAll){let t=await ae.commands.getAll();for(let a of t)a.name&&a.shortcut&&(e[a.name]=a.shortcut)}return e}function js(e,t,a){let n=t;return a.advanceMergeConfig&&a.advanceMergeConfig.forEach(({condition:r,advanceConfig:i})=>{if(!r||!i||!Bs(r,e))return;let{generalRule:o,translationServices:s,...l}=i;vt({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),s&&Is(i,e),o&&(n=Ra(n,o))}),n}var ia="input is invalid type",ei=typeof window=="object",Mt=ei?window:{};Mt.JS_SHA256_NO_WINDOW&&(ei=!1);var Sg=!ei&&typeof self=="object",Ag=!Mt.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;Ag?Mt=global:Sg&&(Mt=self);var B2=!Mt.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,P2=typeof define=="function"&&define.amd,Ma=!Mt.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",N="0123456789abcdef".split(""),Dg=[-2147483648,8388608,32768,128],ht=[24,16,8,0],Cn=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],kn=["hex","array","digest","arrayBuffer"],Ie=[];(Mt.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Ma&&(Mt.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ns=function(e,t){return function(a){return new je(t,!0).update(a)[e]()}},qs=function(e){var t=Ns("hex",e);t.create=function(){return new je(e)},t.update=function(r){return t.create().update(r)};for(var a=0;a>2]|=e[r]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|n&63)<=57344?(o[i>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<=64?(this.block=o[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};je.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=Dg[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};je.prototype.hash=function(){var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=this.blocks,l,c,d,p,m,b,T,S,h,P,_;for(l=16;l<64;++l)m=s[l-15],c=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=s[l-2],d=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,s[l]=s[l-16]+c+s[l-7]+d<<0;for(_=t&a,l=0;l<64;l+=4)this.first?(this.is224?(S=300032,m=s[0]-1413257819,o=m-150054599<<0,n=m+24177077<<0):(S=704751109,m=s[0]-210244248,o=m-1521486534<<0,n=m+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),S=e&t,p=S^e&a^_,T=r&i^~r&u,m=o+d+T+Cn[l]+s[l],b=c+p,o=n+m<<0,n=m+b<<0),c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),h=n&e,p=h^n&t^S,T=o&r^~o&i,m=u+d+T+Cn[l+1]+s[l+1],b=c+p,u=a+m<<0,a=m+b<<0,c=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),d=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),P=a&n,p=P^a&e^h,T=u&o^~u&r,m=i+d+T+Cn[l+2]+s[l+2],b=c+p,i=t+m<<0,t=m+b<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),_=t&a,p=_^t&n^P,T=i&u^~i&o,m=r+d+T+Cn[l+3]+s[l+3],b=c+p,r=e+m<<0,e=m+b<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+a<<0,this.h3=this.h3+n<<0,this.h4=this.h4+r<<0,this.h5=this.h5+i<<0,this.h6=this.h6+u<<0,this.h7=this.h7+o<<0};je.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=N[e>>28&15]+N[e>>24&15]+N[e>>20&15]+N[e>>16&15]+N[e>>12&15]+N[e>>8&15]+N[e>>4&15]+N[e&15]+N[t>>28&15]+N[t>>24&15]+N[t>>20&15]+N[t>>16&15]+N[t>>12&15]+N[t>>8&15]+N[t>>4&15]+N[t&15]+N[a>>28&15]+N[a>>24&15]+N[a>>20&15]+N[a>>16&15]+N[a>>12&15]+N[a>>8&15]+N[a>>4&15]+N[a&15]+N[n>>28&15]+N[n>>24&15]+N[n>>20&15]+N[n>>16&15]+N[n>>12&15]+N[n>>8&15]+N[n>>4&15]+N[n&15]+N[r>>28&15]+N[r>>24&15]+N[r>>20&15]+N[r>>16&15]+N[r>>12&15]+N[r>>8&15]+N[r>>4&15]+N[r&15]+N[i>>28&15]+N[i>>24&15]+N[i>>20&15]+N[i>>16&15]+N[i>>12&15]+N[i>>8&15]+N[i>>4&15]+N[i&15]+N[u>>28&15]+N[u>>24&15]+N[u>>20&15]+N[u>>16&15]+N[u>>12&15]+N[u>>8&15]+N[u>>4&15]+N[u&15];return this.is224||(s+=N[o>>28&15]+N[o>>24&15]+N[o>>20&15]+N[o>>16&15]+N[o>>12&15]+N[o>>8&15]+N[o>>4&15]+N[o&15]),s};je.prototype.toString=je.prototype.hex;je.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,a>>24&255,a>>16&255,a>>8&255,a&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(o>>24&255,o>>16&255,o>>8&255,o&255),s};je.prototype.array=je.prototype.digest;je.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function _n(e,t,a){var n,r=typeof e;if(r==="string"){var i=[],u=e.length,o=0,s;for(n=0;n>6,i[o++]=128|s&63):s<55296||s>=57344?(i[o++]=224|s>>12,i[o++]=128|s>>6&63,i[o++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++n)&1023),i[o++]=240|s>>18,i[o++]=128|s>>12&63,i[o++]=128|s>>6&63,i[o++]=128|s&63);e=i}else if(r==="object"){if(e===null)throw new Error(ia);if(Ma&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Ma||!ArrayBuffer.isView(e)))throw new Error(ia)}else throw new Error(ia);e.length>64&&(e=new je(t,!0).update(e).array());var l=[],c=[];for(n=0;n<64;++n){var d=e[n]||0;l[n]=92^d,c[n]=54^d}je.call(this,t,a),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=a}_n.prototype=new je;_n.prototype.finalize=function(){if(je.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();je.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),je.prototype.finalize.call(this)}};var ua=qs();ua.sha256=ua;ua.sha224=qs(!0);ua.sha256.hmac=zs();ua.sha224.hmac=zs(!0);var Us=ua;var Tg=Us.sha256;function ti(e){return Promise.resolve(Tg(e))}var Cg=Kr(null);async function _g(e,t,a){a=a||await vr();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&Gs(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&Gs(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await cn();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Yu(a),await dn(i)}catch{return!1}return r}async function Fg(e,t){(await Promise.allSettled(e.map(n=>Ht({url:`${x.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&_g("add",r,t)}})}async function Bg(e,t,a=!0){e||(e=await Wt()),t||(t=await vr());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await Mg();i=await Rg(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&Fg(u,t)}var E1=pa(Bg,1500);function Gs(e){return Pa(Sr(),e.extensionVersion)}function Pg(e,t){return t?!Pa(e.version,t):!1}function Rg(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{Pg(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function Mg(){return(await Ht({url:`${x.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function ai(e){let{url:t,config:a,state:n}=e,r=new URL(t),i="auto",{translationParagraphLanguagePattern:u,translationService:o,translationServices:s,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:p,sourceLanguageUrlPattern:m,immediateTranslationPattern:b}=a,T=p||"zh-CN",S=oa(t,u),h=oa(t,b),P=o,_=Object.keys(s);for(let D of _){let K=s[D];if(oa(t,K)){P=D;break}}let z=l,te=Object.keys(c);for(let D of te){let K=c[D];if(K&&oa(t,K)){z=D;break}}let A=oa(t,d),f=Hs(t,d);f||(f=xt(t,Cu)),f||(f=xt(t,a.blockUrls));let y=Hs(t,a.inputTranslationUrlPattern);y||(y=xt(t,a.inputTranslationBlockUrls));let v=xt(t,a.mutationBlockUrls),R=Object.keys(m),O={};for(let D of R){let K=m[D];if(K&&K.matches)for(let be of K.matches)O[be]=D}let F=Object.keys(O),B=Jr(t,F);B&&(i=O[B]??"auto",O[B]&&O[B]!=="auto"&&hr(O[B]));let Z=r.hostname,V=await ti(Z),fe=r.pathname+r.search+r.hash,we=await ti(fe),ne=`https://${V}.com/${we}`,re=await Ta(),Re=await Ls(),se=a.translationStartMode,E=Ig(re,a);re.aiAssistants=jg(E,a),se==="dynamic"&&h&&(se="immediate");let C=P;a.inputTranslationService&&a.inputTranslationService!=="inherit"&&(C=a.inputTranslationService);let L=P;a.mouseHoverTranslationService&&a.mouseHoverTranslationService!=="inherit"&&(L=a.mouseHoverTranslationService);let ee=P;a.subtitleTranslateService&&a.subtitleTranslateService!=="inherit"&&(ee=a.subtitleTranslateService);let W=await qt.get(Dt,null),de=!1;W&&(de=zt(W)),a.platform=Qr();let q={targetLanguage:T,config:a,translationService:P,inputTranslationService:C,mouseHoverTranslationService:L,subtitleTranslateService:ee,isTranslateUrl:A,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:f,isMutationTranslationExcludeUrl:v,isInputTranslationExcludeUrl:y,rule:a.generalRule,url:t,encryptedUrl:ne,state:n?Object.assign({translationMode:a.translationMode,translationArea:a.translationArea,translationStartMode:se,immediateTranslationTextCount:a.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:S,cache:a.cache,translationTheme:z,isTranslateDirectlyOnHover:!1},n):{translationMode:a.translationMode,translationArea:a.translationArea,translationStartMode:se,immediateTranslationTextCount:a.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:S,cache:a.cache,translationTheme:z,isTranslateDirectlyOnHover:!1},localConfig:re};W&&(q.user=W,de?q.isPro=!0:q.isPro=!1),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(D=>!q.config.generalRule.bodyTranslateTags.includes(D)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(D=>D!==".btn"));let G=a.translationServices[q.translationService]||{};G.immediateTranslationTextCount!==void 0&&Lg(G.immediateTranslationTextCount)&&G.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=G.immediateTranslationTextCount),q.translationService==="deepl"&&(G?.authKey?.startsWith("immersive_")||G?.provider==="pro"&&q.user?.token)&&G.immediateTranslationTextCountForImmersiveDeepl!==void 0&&G.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=G.immediateTranslationTextCountForImmersiveDeepl),G&&G.translationDebounce&&typeof G.translationDebounce=="number"&&(q.state.translationDebounce=G.translationDebounce);let U=Re.immediateTranslationTextCount;a.immediateTranslationTextCount!==U&&(q.state.immediateTranslationTextCount=a.immediateTranslationTextCount);let H=a.rules,Y;globalThis.PDFViewerApplication?Y=H.find(D=>D.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Y=H.find(D=>D.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Y=H.find(D=>D.pageType=="ebookBuilder"):Y=H.find(D=>oa(t,D)),Y&&Y.pageType==="ebookBuilder"&&(q.state.translationStartMode="immediate");let ue=a.generalRule;if(Y&&(q.rule=Ra(ue,Y),q.rule=js(a,q.rule,Y)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(D=>!q.rule.bodyTranslateTags.includes(D)&&!q.rule.forceTranslateTags.includes(D))),q.rule.mainFrameSelector){let D=document.querySelector(q.rule.mainFrameSelector);D&&(q.mainFrame=D)}return q}function oa(e,t){if(!t)return!1;let{matches:a,excludeMatches:n,selectorMatches:r,excludeSelectorMatches:i}=t;return n&&n.length>0&&xt(e,n)?!1:a&&a.length>0&&xt(e,a)?!0:i&&i.length>0&&wn(i)?!1:!!(r&&r.length>0&&wn(r))}function Hs(e,t){if(!t)return!1;let{excludeMatches:a,excludeSelectorMatches:n}=t;return!!(a&&a.length>0&&xt(e,a)||n&&n.length>0&&wn(n))}function Lg(e){return typeof e=="number"}function Ig(e,t){let a=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(r=>{let i=a.findIndex(u=>u.id===r.id);i!==-1?a[i]=r:a.push(r)}),a}function jg(e,t){try{let a=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(n=>{let r=fs(n.matches||[],a[n.id]?.matches||[]);return{...n,matches:r}})}catch(a){return ve.error(a),e}}var sa="imt-subtitle-inject",Fn=class{from;to;constructor(t,a){this.from=t,this.to=a}sendMessages(t){globalThis.postMessage({type:sa,to:this.to,from:this.from,action:t.action,data:t.data,id:t.id||new Date().getTime(),isAsync:!1})}getRandomId(){return(new Date().getTime()+Math.random())*Math.random()}sendAsyncMessages({action:t,data:a}){return new Promise(n=>{let r=this.getRandomId();globalThis.postMessage({type:sa,to:this.to,from:this.from,action:t,data:a,id:r,isAsync:!0});let i=({data:u})=>{sa===u.type&&u.id===r&&u.to===this.from&&(n(u.data),globalThis.removeEventListener("message",i))};globalThis.addEventListener("message",i)})}handleMessageOnce(t){return new Promise(a=>{let n=({data:r})=>{sa===r.type&&r.action===t&&r.to===this.from&&(a(r.data),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)})}handleMessage(t,a){let n=({data:r})=>{sa===r.type&&r.action===t&&r.to===this.from&&a(r)};return globalThis.addEventListener("message",n),()=>{globalThis.removeEventListener("message",n)}}handleMessages(t){let a=({data:n})=>{sa===n.type&&n.to===this.from&&t(n)};return globalThis.addEventListener("message",a),()=>{globalThis.removeEventListener("message",a)}}},Bn=new Fn("content-script","inject"),Ng=new Fn("inject","content-script"),Ws={get(e,t,a){return t in e?(...n)=>{let r=e[t];return typeof r=="function"?r.apply(e,n):Reflect.get(e,t,a)}:n=>e.sendAsyncMessages({action:t,data:n})}},W1=new Proxy(Ng,Ws),K1=new Proxy(Bn,Ws);async function Og(){try{let e=await Gg(qo(),{});if(e.isTranslateExcludeUrl)return;let t=e.rule.subtitleRule;t&&t.type&&!t.disabled&&t.isInject&&zg(e);let a=e.rule.imageRule;a?.enable&&a.type&&qg(e),Ug(e)}catch{}}function qg(e){if(Ce()){let a=Fe().IMMERSIVE_TRANSLATE_IMAGE_INJECT,n=document.createElement("script");n.id="imt-image-inject",n.textContent=a,document.head?.appendChild(n)}else ae.storage.sync.get("open").then(()=>{let t=ae.runtime.getURL("image/inject.js");if(document.querySelector(`script[src='${t}']`))return;let n=document.createElement("script");n.src=t,n.id="imt-image-inject",document.head?.appendChild(n)})}function zg(e){if(Ce()){let a=Fe().IMMERSIVE_TRANSLATE_VIDEO_SUBTITLE_INJECT,n=document.createElement("script");n.id="imt-subtitles-inject",n.textContent=a,document.head?.appendChild(n)}else ae.storage.sync.get("open").then(()=>{let t=ae.runtime.getURL("video-subtitle/inject.js");if(document.querySelector(`script[src='${t}']`))return;let n=document.createElement("script");n.src=t,n.id="imt-subtitles-inject",document.head?.appendChild(n)})}function Ug(e){Bn.handleMessages(({id:t,action:a})=>{if(a==="getConfig"){let n=e.rule.subtitleRule;Bn.sendMessages({id:t,data:n})}})}Og();var la=null;async function Gg(e,t){let a=Object.keys(t);if(la){let n={url:e,config:la.config,state:{...la.state,...t}};la=await ai(n)}else{let n=await Hg(),r=t;a.length===0&&(r=void 0),la=await ai({url:e,config:n,state:r})}return la}function Hg(){return Ce()?Wt():Wg({method:"getConfig"})}async function Wg(e){return await Gr().sendMessage("background:main",e)}})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/chrome/locales.json b/dist/chrome/locales.json index db008ce..6ccdebf 100644 --- a/dist/chrome/locales.json +++ b/dist/chrome/locales.json @@ -2501,7 +2501,7 @@ "browserShortcutsSucks": "사용자 지정 바로가기의 형식은:입니다(자동 인식되지 않으므로 직접 입력하세요).", "enableLineBreakDescription": "이 기능을 켜면 긴 단락의 각 문장 끝에 줄 바꿈이 삽입되어 문장을 더 쉽게 읽을 수 있습니다.", "browser.shortBrandName": "Immersive Translate", - "browser.brandName": "몰입형 번역 - 웹 및 PDF 번역", + "browser.brandName": "몰입형 번역 - 웹 사이트 번역 확장 프로그램 | PDF 번역 | 무료", "browser.brandDescription": "[몰입형 번역] 무료 (원문/번역문) 이중 언어 대조 웹사이트 번역 확장 프로그램으로 PDF 번역(조판 유지), 비디오 이중 언어 자막 번역(YouTube, Netflix 등), EPUB 전자책 번역을 지원합니다.", "browser.toggleTranslatePage": "{targetLanguage}로 번역하세요", "browser.toggleTranslateTheWholePage": "페이지의 모든 영역 번역/원문 텍스트 표시", diff --git a/dist/chrome/manifest.json b/dist/chrome/manifest.json index a260b78..b625e00 100644 --- a/dist/chrome/manifest.json +++ b/dist/chrome/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "__MSG_brandName__", "description": "__MSG_brandDescription__", - "version": "1.12.5", + "version": "1.12.6", "default_locale": "en", "background": { "service_worker": "background.js" diff --git a/dist/chrome/options.js b/dist/chrome/options.js index f85c626..937835a 100644 --- a/dist/chrome/options.js +++ b/dist/chrome/options.js @@ -1,4 +1,4 @@ -(()=>{var bE=Object.defineProperty;var yE=(e,t)=>{for(var n in t)bE(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var hE=Object.defineProperty;var bE=(e,t)=>{for(var n in t)hE(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,54 +5447,54 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var CE=Object.create,Gg=Object.defineProperty,xE=Object.getOwnPropertyDescriptor,A2=Object.getOwnPropertyNames,SE=Object.getPrototypeOf,TE=Object.prototype.hasOwnProperty,wE=(e,t)=>function(){return t||(0,e[A2(e)[0]])((t={exports:{}}).exports,t),t.exports},EE=(e,t)=>{for(var n in t)Gg(e,n,{get:t[n],enumerable:!0})},Wg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of A2(t))!TE.call(e,a)&&a!==n&&Gg(e,a,{get:()=>t[a],enumerable:!(r=xE(t,a))||r.enumerable});return e},AE=(e,t,n)=>(Wg(e,t,"default"),n&&Wg(n,t,"default")),k2=(e,t,n)=>(n=e!=null?CE(SE(e)):{},Wg(t||!e||!e.__esModule?Gg(n,"default",{value:e,enumerable:!0}):n,e)),D2=wE({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(T,A=void 0){super(A),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let u=S=>S&&typeof S=="object"&&typeof S.then=="function",l=(S,T)=>(...A)=>{i.runtime.lastError?S.reject(new Error(i.runtime.lastError.message)):T.singleCallbackArg||A.length<=1&&T.singleCallbackArg!==!1?S.resolve(A[0]):S.resolve(A)},c=S=>S==1?"argument":"arguments",m=(S,T)=>function(D,...M){if(M.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${S}(), got ${M.length}`);return new Promise((I,P)=>{if(T.fallbackToNoCallback)try{D[S](...M,l({resolve:I,reject:P},T))}catch{D[S](...M),T.fallbackToNoCallback=!1,T.noCallback=!0,I()}else T.noCallback?(D[S](...M),I()):D[S](...M,l({resolve:I,reject:P},T))})},g=(S,T,A)=>new Proxy(T,{apply(D,M,I){return A.call(M,S,...I)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),f=(S,T={},A={})=>{let D=Object.create(null),M={has(P,R){return R in S||R in D},get(P,R,L){if(R in D)return D[R];if(!(R in S))return;let _=S[R];if(typeof _=="function")if(typeof T[R]=="function")_=g(S,S[R],T[R]);else if(p(A,R)){let U=m(R,A[R]);_=g(S,S[R],U)}else _=_.bind(S);else if(typeof _=="object"&&_!==null&&(p(T,R)||p(A,R)))_=f(_,T[R],A[R]);else if(p(A,"*"))_=f(_,T[R],A["*"]);else return Object.defineProperty(D,R,{configurable:!0,enumerable:!0,get(){return S[R]},set(U){S[R]=U}}),_;return D[R]=_,_},set(P,R,L,_){return R in D?D[R]=L:S[R]=L,!0},defineProperty(P,R,L){return Reflect.defineProperty(D,R,L)},deleteProperty(P,R){return Reflect.deleteProperty(D,R)}},I=Object.create(S);return new Proxy(I,M)},h=S=>({addListener(T,A,...D){T.addListener(S.get(A),...D)},hasListener(T,A){return T.hasListener(S.get(A))},removeListener(T,A){T.removeListener(S.get(A))}}),y=new s(S=>typeof S!="function"?S:function(A){let D=f(A,{},{getContent:{minArgs:0,maxArgs:0}});S(D)}),b=new s(S=>typeof S!="function"?S:function(A,D,M){let I=!1,P,R=new Promise(z=>{P=function(Y){I=!0,z(Y)}}),L;try{L=S(A,D,P)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!I)return!1;let U=z=>{z.then(Y=>{M(Y)},Y=>{let ee;Y&&(Y instanceof Error||typeof Y.message=="string")?ee=Y.message:ee="An unexpected error occurred",M({__mozWebExtensionPolyfillReject__:!0,message:ee})}).catch(Y=>{})};return U(_?L:R),!0}),v=({reject:S,resolve:T},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?T():S(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?S(new Error(A.message)):T(A)},C=(S,T,A,...D)=>{if(D.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${S}(), got ${D.length}`);return new Promise((M,I)=>{let P=v.bind(null,{resolve:M,reject:I});D.push(P),A.sendMessage(...D)})},x={devtools:{network:{onRequestFinished:h(y)}},runtime:{onMessage:h(b),onMessageExternal:h(b),sendMessage:C.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:C.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},f(i,x,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),L2={};EE(L2,{default:()=>qc});var kE=k2(D2());AE(L2,k2(D2()));var{default:E2,...DE}=kE,qc=E2!==void 0?E2:DE;globalThis.immersiveTranslateBrowserAPI=qc;var Kc,Ue,F2,LE,Ru,M2,B2,Vc={},_2=[],ME=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vi(e,t){for(var n in t)e[n]=t[n];return e}function O2(e){var t=e.parentNode;t&&t.removeChild(e)}function mo(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Kc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return zc(e,o,r,a,null)}function zc(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++F2};return a==null&&Ue.vnode!=null&&Ue.vnode(i),i}function le(e){return e.children}function co(e,t){this.props=e,this.context=t}function ts(e,t){if(t==null)return e.__?ts(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?zc(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=b[c])===null||g&&p.key==g.key&&p.type===g.type)b[c]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Yc}),n.__[e]}function N(e){return Iu=1,FE($2,e)}function FE(e,t,n){var r=Fu(rs++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):$2(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Gt,!Gt.u)){Gt.u=!0;var a=Gt.shouldComponentUpdate;Gt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,m!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function q(e,t){var n=Fu(rs++,3);!Ue.__s&&Zg(n.__H,t)&&(n.__=e,n.i=t,Gt.__H.__h.push(n))}function Bu(e,t){var n=Fu(rs++,4);!Ue.__s&&Zg(n.__H,t)&&(n.__=e,n.i=t,Gt.__h.push(n))}function Ce(e){return Iu=5,ne(function(){return{current:e}},[])}function ne(e,t){var n=Fu(rs++,7);return Zg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ue(e,t){return Iu=8,ne(function(){return e},t)}function Se(e){var t=Gt.context[e.__c],n=Fu(rs++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Gt)),t.props.value):e.__}function BE(){for(var e;e=X2.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qc),e.__H.__h.forEach(Jg),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){typeof e.type!="function"||e.o||e.type===le?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Gt=null,G2&&G2(e)},Ue.__r=function(e){K2&&K2(e),rs=0;var t=(Gt=e.__c).__H;t&&(Qg===Gt?(t.__h=[],Gt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Yc,n.__N=n.i=void 0})):(t.__h.forEach(Qc),t.__h.forEach(Jg),t.__h=[])),Qg=Gt},Ue.diffed=function(e){Y2&&Y2(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(X2.push(t)!==1&&W2===Ue.requestAnimationFrame||((W2=Ue.requestAnimationFrame)||_E)(BE)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Yc&&(n.__=n.__V),n.i=void 0,n.__V=Yc})),Qg=Gt=null},Ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Qc),n.__h=n.__h.filter(function(r){return!r.__||Jg(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Ue.__e(r,n.__v)}}),Q2&&Q2(e,t)},Ue.unmount=function(e){J2&&J2(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Qc(r)}catch(a){t=a}}),n.__H=void 0,t&&Ue.__e(t,n.__v))};var Z2=typeof requestAnimationFrame=="function";function _E(e){var t,n=function(){clearTimeout(r),Z2&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Z2&&(t=requestAnimationFrame(n))}function Qc(e){var t=Gt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Gt=t}function Jg(e){var t=Gt;e.__c=e.__(),Gt=t}function Zg(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function $2(e,t){return typeof t=="function"?t(e):t}var _u;function lp(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function lb(e,t=","){return e.map(lp).join(t)}var cp=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function as(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Zc(e,t="@media "){return t+wt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function wt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function eb(e){return e}function Nu(){}var on={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function cb(e){return e.match(/[-=:;]/g)?.length||0}function rp(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(cb(e),15)<<18}var OE=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function dp({n:e,i:t,v:n=[]},r,a,i){e&&(e=lp({n:e,i:t,v:n})),i=[...wt(i)];for(let s of n){let u=r.theme("screens",s);for(let l of wt(u&&Zc(u)||r.v(s))){var o;i.push(l),a|=u?67108864|rp(l):s=="dark"?1073741824:l[0]=="@"?rp(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~OE.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var mp=new Map;function ap(e){if(e.d){let t=[],n=Xg(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Xg(r,i=>Xg(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):$g(i,o)}return $g(o,i)})):r,"&"),r=>$g(r,e.n?"."+cp(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Xg(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function $g(e,t){return e.replace(/&/g,t)}var tb=new Intl.Collator("en",{numeric:!0});function db(e,t){for(var n=0,r=e.length;n>1;0>=mb(e[a],t)?n=a+1:r=a}return r}function mb(e,t){let n=e.p&on.o;return n==(t.p&on.o)&&(n==on.b||n==on.o)?0:e.p-t.p||e.o-t.o||tb.compare(nb(e.n),nb(t.n))||tb.compare(rb(e.n),rb(t.n))}function nb(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function rb(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ep(e,t){return Math.round(parseInt(e,16)*t)}function Ja(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ep(e.substr(1,i),o),ep(e.substr(1+i,i),o),ep(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function gp(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},m){let g=[],p="",f=0,h=0;for(let v in o||{}){var y,b;let C=o[v];if(v[0]=="@"){if(!C)continue;if(v[1]=="a"){g.push(...hp(s,u,Ou(""+C),m,u,l,c,!0));continue}if(v[1]=="l"){for(let x of wt(C))g.push(...i(x,{n:s,p:(y=on[v[7]],u&~on.o|y),r:v[7]=="d"?[]:l,i:c},m));continue}if(v[1]=="i"){g.push(...wt(C).map(x=>({p:-1,o:0,r:[],d:v+" "+x})));continue}if(v[1]=="k"){g.push({p:on.d,o:0,r:[v],d:i(C,{p:on.d},m).map(ap).join("")});continue}if(v[1]=="f"){g.push(...wt(C).map(x=>({p:on.d,o:0,r:[v],d:i(x,{p:on.d},m).map(ap).join("")})));continue}}if(typeof C!="object"||Array.isArray(C))v=="label"&&C?s=C+as(JSON.stringify([u,c,o])):(C||C===0)&&(v=v.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),h+=1,f=Math.max(f,(b=v)[0]=="-"?0:cb(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+wt(C).map(x=>m.s(v,pp(""+x,m.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let x=u;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(w,S)=>{let T=m.theme("screens",S);return T?(x|=67108864,Zc(T,"")):w}),x|=rp(v)),g.push(...i(C,{n:s,p:x,r:[...l,v],i:c},m))}else g.push(...i(C,{p:u,r:[...l,v]},m))}return g.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(f||15,15),r:l,d:p}),g.sort(mb)}(e,dp(t,n,r,a),n)}function pp(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?Ja(s):""+wt(s).filter(u=>Object(u)!==u)})}function fp(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Jc(e,t,n=on.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,m,g){u={...u,i:u.i||g};let p=function(f,h){let y=mp.get(f.n);return y?y(f,h):h.r(f.n,f.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:m,p:c}=dp(u,l,c,m),fp(Jc(Ou(p),l,c,m,u.i),u.n)):Array.isArray(p)?p.map(f=>{var h,y;return{o:0,...f,r:[...wt(m),...wt(f.r)],p:(h=c,y=f.p??c,h&~on.o|y)}}):gp(p,u,l,c,m):[{c:lp(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(db(i,s),0,s);return i}function hp(e,t,n,r,a,i,o,s){return fp((s?n.flatMap(u=>Jc([u],r,a,i,o)):Jc(n,r,a,i,o)).map(u=>u.p&on.o&&(u.n||t==on.b)?{...u,p:u.p&~on.o|t,o:0}:u),e)}function NE(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=dp(i,o,t);return n&&hp(s,t,n,o,u,l,c,r)},mp.set(e,a),e}function tp(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(UE),i:a}))}}function UE(e,t,n){return n.indexOf(e)==t}var ab=new Map;function Ou(e){let t=ab.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&tp(n,r)),a=s+1};for(;s1?m.slice(0,-1)+as(JSON.stringify([m,g])):m+"("+lb(g)+")",on.a,g,/@$/.test(m))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),ab.set(e,t=r[0])}return t}function gb(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function pb(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?gb(e,t,n=>np(n).trim()):t.filter(Boolean).reduce((n,r)=>n+np(r),e?np(e):"")}function np(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=pb(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var GV=fb("@"),KV=fb("~");function fb(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return lb(Ou(n+e+"("+pb(r,a)+")"))}}function ip(e,t){return Array.isArray(e)?ib(gb(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?ib(e):[e]}var jE=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function ib(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=jE.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function hb(e,...t){var n;let r=ip(e,t),a=(r.find(i=>i.label)?.label||"css")+as(JSON.stringify(r));return n=(i,o)=>fp(r.flatMap(s=>gp(s,i,o,on.o)),a),mp.set(a,n),a}var YV=new Proxy(function(e,t){return ob("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return ob(t,n,r)}}});function ob(e,t,n){return{toString(){return hb({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function oe(e,t,n){return[e,op(t,n)]}function op(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):sp(n,1)}):n=>e||{[n[1]]:sp(n,2)}}function sp(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function se(e,t,n,r){return[e,HE(t,n,r)]}function HE(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=bb(e||a[1]),s=i.theme(o,a.$$)??xa(a.$$,o,i);if(s!=null)return a._=sp(a,0,s),r(a,i,o)}}function gn(e,t={},n){return[e,qE(t,n)]}function qE(e={},t){return(n,r)=>{let{section:a=bb(n[0]).replace("-","")+"Color"}=e,[i,o]=zE(n.$$);if(!i)return;let s=r.theme(a,i)||xa(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:m}=e,g=r.theme(l,o||"DEFAULT")||o&&xa(o,l,r),p=t||(({_:h})=>{let y=Uu(c,h);return m?{[m]:y}:y});n._={value:Ja(s,{opacityVariable:u||void 0,opacityValue:g||void 0}),color:h=>Ja(s,h),opacityVariable:u||void 0,opacityValue:g||void 0};let f=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:Ja(h,{opacityVariable:u||void 0,opacityValue:g||"1"}),color:y=>Ja(h,y),opacityVariable:u||void 0,opacityValue:g||void 0},f={"&":f,[r.v("dark")]:p(n,r)})}return f}}function zE(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Uu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function xa(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=is(pp(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function bb(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function is(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>is(n)+r+is(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var QV=Symbol();function ju({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:wt(t.variants),rules:wt(t.rules),ignorelist:wt(t.ignorelist),hash:void 0,stringify:(r,a)=>r+":"+a,finalize:[]};for(let r of wt([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&wt(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:a,darkMode:i=n.darkMode,darkColor:o=n.darkColor,theme:s,variants:u,rules:l,ignorelist:c,hash:m=n.hash,stringify:g=n.stringify,finalize:p}=typeof r=="function"?r(n):r;n={preflight:n.preflight!==!1&&a!==!1&&[...n.preflight,...wt(a)],darkMode:i,darkColor:o,theme:{...n.theme,...s,extend:{...n.theme.extend,...s?.extend}},variants:[...n.variants,...wt(u)],rules:[...n.rules,...wt(l)],ignorelist:[...n.ignorelist,...wt(c)],hash:m,stringify:g,finalize:[...n.finalize,...wt(p)]}}return n}function sb(e,t,n,r,a,i){for(let o of t){let s=n.get(o);s||n.set(o,s=r(o));let u=s(e,a,i);if(u)return u}}function VE(e){var t;return up(e[0],typeof(t=e[1])=="function"?t:()=>t)}function WE(e){var t,n;return Array.isArray(e)?up(e[0],op(e[1],e[2])):up(e,op(t,n))}function up(e,t){return yb(e,(n,r,a,i)=>{let o=r.exec(n);if(o)return o.$$=n.slice(o[0].length),o.dark=i,t(o,a)})}function yb(e,t){let n=wt(e).map(GE);return(r,a,i)=>{for(let o of n){let s=t(r,o,a,i);if(s)return s}}}function GE(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function KE(e,t){let n=ju(e),r=function({theme:u,darkMode:l,darkColor:c=Nu,variants:m,rules:g,hash:p,stringify:f,ignorelist:h,finalize:y}){let b=new Map,v=new Map,C=new Map,x=new Map,w=yb(h,(A,D)=>D.test(A));m.push(["dark",Array.isArray(l)||l=="class"?`${wt(l)[1]||".dark"} &`:typeof l=="string"&&l!="media"?l:"@media (prefers-color-scheme:dark)"]);let S=typeof p=="function"?A=>p(A,as):p?as:eb;S!==eb&&y.push(A=>({...A,n:A.n&&S(A.n),d:A.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,M)=>"--"+S(M).replace("#",""))}));let T={theme:function({extend:A={},...D}){let M={},I={get colors(){return P("colors")},theme:P,negative(){return{}},breakpoints(L){let _={};for(let U in L)typeof L[U]=="string"&&(_["screen-"+U]=L[U]);return _}};return P;function P(L,_,U,z){if(L){if({1:L,2:z}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let xe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,W,te=W)=>xe.push(te)),L=xe.shift(),U=_,_=xe.join("-")}let ee=M[L]||Object.assign(Object.assign(M[L]={},R(D,L)),R(A,L));if(_==null)return ee;_||="DEFAULT";let Re=ee[_]??_.split("-").reduce((xe,H)=>xe?.[H],ee)??U;return z?Ja(Re,{opacityValue:pp(z,P)}):Re}let Y={};for(let ee of[...Object.keys(D),...Object.keys(A)])Y[ee]=P(ee);return Y}function R(L,_){let U=L[_];return typeof U=="function"&&(U=U(I)),U&&/color|fill|stroke/i.test(_)?function z(Y,ee=[]){let Re={};for(let xe in Y){let H=Y[xe],W=[...ee,xe];Re[W.join("-")]=H,xe=="DEFAULT"&&(W=ee,Re[ee.join("-")]=H),typeof H=="object"&&Object.assign(Re,z(H,W))}return Re}(U):U}}(u),e:cp,h:S,s(A,D){return f(A,D,T)},d(A,D,M){return c(A,D,T,M)},v(A){return b.has(A)||b.set(A,sb(A,m,v,VE,T)||"&:"+A),b.get(A)},r(A,D){let M=JSON.stringify([A,D]);return C.has(M)||C.set(M,!w(A,T)&&sb(A,g,x,WE,T,D)),C.get(M)},f(A){return y.reduce((D,M)=>M(D,T),A)}};return T}(n),a=new Map,i=[],o=new Set;t.resume(u=>a.set(u,u),(u,l)=>{t.insert(u,i.length,l),i.push(l),o.add(u)});function s(u){let l=r.f(u),c=ap(l);if(c&&!o.has(c)){o.add(c);let m=db(i,u);t.insert(c,m,u),i.splice(m,0,u)}return l.n}return Object.defineProperties(function(u){if(!a.size)for(let c of wt(n.preflight))typeof c=="function"&&(c=c(r)),c&&(typeof c=="string"?hp("",on.b,Ou(c),r,on.b,[],!1,!0):gp(c,{},r,on.b)).forEach(s);u=""+u;let l=a.get(u);if(!l){let c=new Set;for(let m of Jc(Ou(u),r))c.add(m.c).add(s(m));l=[...c].filter(Boolean).join(" "),a.set(u,l).set(l,l)}return l},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let u=t.snapshot(),l=new Set(o),c=new Map(a),m=[...i];return()=>{u(),o=l,a=c,i=m}},clear(){t.clear(),o=new Set,a=new Map,i=[]},destroy(){this.clear(),t.destroy()}}))}function YE(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function QE(e){let t=new MutationObserver(n);return{observe(a){t.observe(a,{attributeFilter:["class"],subtree:!0,childList:!0}),r(a),n([{target:a,type:""}])},disconnect(){t.disconnect()}};function n(a){for(let{type:i,target:o}of a)if(i[0]=="a")r(o);else for(let s of o.querySelectorAll("[class]"))r(s);t.takeRecords()}function r(a){let i,o=a.getAttribute?.("class");o&&YE(o,i=e(o))&&a.setAttribute("class",i)}}function JE(e=bp,t=typeof document<"u"&&document.documentElement){if(t){let n=QE(e);n.observe(t);let{destroy:r}=e;e.destroy=()=>{n.disconnect(),r.call(e)}}return e}function vb(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function ZE(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:vb(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,r=>r.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,r){try{t.insertRule(n,r)}catch{t.insertRule(":root{}",r)}},resume:Nu}}function XE(e){let t=e&&typeof e!="string"?e:vb(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,r=>r.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,r){t.insertBefore(document.createTextNode(n),t.childNodes[r]||null)},resume:Nu}}function $E(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,a){t.splice(r,0,e?`/*!${a.p.toString(36)},${(2*a.o).toString(36)}${a.n?","+a.n:""}*/${n}`:n)},resume:Nu}}function Cb(e,t){let n=typeof document>"u"?$E(!t):e?XE():ZE();return t||(n.resume=tA),n}function eA(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):wt(e)).join("")}function tA(e,t){let n=eA(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var a;let i;if(r.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;a=r.exec(n),i&&t(n.slice(i.index+i[0].length,a?.index),{p:parseInt(i[1],36),o:parseInt(i[2],36)/2,n:i[3]}),i=a;);}}var bp=new Proxy(Nu,{apply(e,t,n){return _u(n[0])},get(e,t){let n=_u[t];return typeof n=="function"?function(){return n.apply(_u,arguments)}:n}});function xb(e={},t=Cb,n){return _u?.destroy(),_u=JE(KE(e,typeof t=="function"?t():t),n)}function yp(e,t=!0){let n=ju(e);return xb({...n,hash:n.hash??t},()=>Cb(!t))}var JV=function e(t){return new Proxy(function(n,...r){return ub(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return ub(t,r,a,i)}}})}();function ub(e,t,n,r){return{toString(){let a=ip(n,r),i=cp(t+as(JSON.stringify([t,a])));return(typeof e=="function"?e:bp)(hb({[`@keyframes ${i}`]:ip(n,r)})),i}}}var nA=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Sb(e){return nA.get(e)}function Tb(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function wb(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var rA=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Xc(){return({stringify:e})=>({stringify(t,n,r){let a="",i=Sb(t);i&&(a+=e(i,n,r)+";");let o=Tb(t),s=wb(t,n);for(let u of rA)o&u[1]&&(a+=e(u[0]+t,n,r)+";"),s&u[1]&&(a+=e(t,u[0]+n,r)+";");return a+e(t,n,r)}})}var Cp={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...br(4,"rem",4,.5,.5),...br(12,"rem",4,5),14:"3.5rem",...br(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:ot("blur"),backdropBrightness:ot("brightness"),backdropContrast:ot("contrast"),backdropGrayscale:ot("grayscale"),backdropHueRotate:ot("hueRotate"),backdropInvert:ot("invert"),backdropOpacity:ot("opacity"),backdropSaturate:ot("saturate"),backdropSepia:ot("sepia"),backgroundColor:ot("colors"),backgroundImage:{none:"none"},backgroundOpacity:ot("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...br(200,"",100,0,50),...br(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:ot("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:ot("spacing"),borderWidth:{DEFAULT:"1px",...Lr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:ot("colors"),caretColor:ot("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...br(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:ot("borderColor"),divideOpacity:ot("borderOpacity"),divideWidth:ot("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Hu(2,6),...Hu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:ot("spacing"),gradientColorStops:ot("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Hu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Hu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...br(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...br(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:ot("spacing"),placeholderColor:ot("colors"),placeholderOpacity:ot("opacity"),outlineColor:ot("colors"),outlineOffset:Lr(8,"px"),outlineWidth:Lr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:ot("colors"),ringOffsetWidth:Lr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...Lr(8,"px")},rotate:{...Lr(2,"deg"),...Lr(12,"deg",3),...Lr(180,"deg",45)},saturate:br(200,"",100,0,50),scale:{...br(150,"",100,0,50),...br(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:ot("spacing"),scrollPadding:ot("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...Lr(2,"deg"),...Lr(12,"deg",3)},space:ot("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:br(2),textColor:ot("colors"),textDecorationColor:ot("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...Lr(8,"px")},textUnderlineOffset:{auto:"auto",...Lr(8,"px")},textIndent:ot("spacing"),textOpacity:ot("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:ot("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Hu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...br(50,"",1,0,10),auto:"auto"}};function Hu(e,t){let n={};do for(var r=1;rt(e)}var aA={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Cp.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Cp.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},iA=[oe("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:xa(`[${t}]`,"",n)}}})),oe("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),se("aspect-","aspectRatio"),oe("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[Zc(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),se("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),oe("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),oe("box-(border|content)","boxSizing",({1:e})=>e+"-box"),oe("hidden",{display:"none"}),oe("table-(auto|fixed)","tableLayout"),oe(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",oe("isolate","isolation"),oe("object-(contain|cover|fill|none|scale-down)","objectFit"),se("object-","objectPosition"),oe("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",$c),oe("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),oe("(static|fixed|absolute|relative|sticky)","position"),se("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),se("-?(top|bottom|left|right)(?:$|-)","inset"),oe("(visible|collapse)","visibility"),oe("invisible",{visibility:"hidden"}),se("-?z-","zIndex"),oe("flex-((row|col)(-reverse)?)","flexDirection",Eb),oe("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),se("(flex-(?:grow|shrink))(?:$|-)"),se("(flex)-"),se("grow(?:$|-)","flexGrow"),se("shrink(?:$|-)","flexShrink"),se("basis-","flexBasis"),se("-?(order)-"),"-?(order)-(\\d+)",se("grid-cols-","gridTemplateColumns"),oe("grid-cols-(\\d+)","gridTemplateColumns",Lb),se("col-","gridColumn"),oe("col-(span)-(\\d+)","gridColumn",Db),se("col-start-","gridColumnStart"),oe("col-start-(auto|\\d+)","gridColumnStart"),se("col-end-","gridColumnEnd"),oe("col-end-(auto|\\d+)","gridColumnEnd"),se("grid-rows-","gridTemplateRows"),oe("grid-rows-(\\d+)","gridTemplateRows",Lb),se("row-","gridRow"),oe("row-(span)-(\\d+)","gridRow",Db),se("row-start-","gridRowStart"),oe("row-start-(auto|\\d+)","gridRowStart"),se("row-end-","gridRowEnd"),oe("row-end-(auto|\\d+)","gridRowEnd"),oe("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>$c(Eb(e))),oe("grid-flow-(dense)","gridAutoFlow"),se("auto-cols-","gridAutoColumns"),se("auto-rows-","gridAutoRows"),se("gap-x(?:$|-)","gap","columnGap"),se("gap-y(?:$|-)","gap","rowGap"),se("gap(?:$|-)","gap"),"(justify-(?:items|self))-",oe("justify-","justifyContent",Ab),oe("(content|items|self)-",e=>({["align-"+e[1]]:Ab(e)})),oe("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),se("p([xytrbl])?(?:$|-)","padding",os("padding")),se("-?m([xytrbl])?(?:$|-)","margin",os("margin")),se("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),oe("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),se("w-","width"),se("min-w-","minWidth"),se("max-w-","maxWidth"),se("h-","height"),se("min-h-","minHeight"),se("max-h-","maxHeight"),se("font-","fontWeight"),se("font-","fontFamily",({_:e})=>typeof(e=wt(e))[1]=="string"?{fontFamily:Hr(e)}:{fontFamily:Hr(e[0]),...e[1]}),oe("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),oe("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),oe("italic","fontStyle"),oe("not-italic",{fontStyle:"normal"}),oe("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ci({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),se("tracking-","letterSpacing"),se("leading-","lineHeight"),oe("list-(inside|outside)","listStylePosition"),se("list-","listStyleType"),oe("list-","listStyleType"),se("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),gn("placeholder-",{property:"color",selector:"&::placeholder"}),oe("text-(left|center|right|justify|start|end)","textAlign"),oe("text-(ellipsis|clip)","textOverflow"),se("text-opacity-","textOpacity","--tw-text-opacity"),gn("text-",{property:"color"}),se("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),se("indent-","textIndent"),oe("(overline|underline|line-through)","textDecorationLine"),oe("no-underline",{textDecorationLine:"none"}),se("underline-offset-","textUnderlineOffset"),gn("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),se("decoration-","textDecorationThickness"),oe("decoration-","textDecorationStyle"),oe("(uppercase|lowercase|capitalize)","textTransform"),oe("normal-case",{textTransform:"none"}),oe("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),oe("align-","verticalAlign"),oe("whitespace-","whiteSpace"),oe("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),oe("break-words",{overflowWrap:"break-word"}),oe("break-all",{wordBreak:"break-all"}),oe("break-keep",{wordBreak:"keep-all"}),gn("caret-",{opacityVariable:!1,opacitySection:"opacity"}),gn("accent-",{opacityVariable:!1,opacitySection:"opacity"}),oe("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${go(e," ")},var(--tw-gradient-stops))`),gn("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),gn("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),gn("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),oe("bg-(fixed|local|scroll)","backgroundAttachment"),oe("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),oe(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),oe("bg-blend-","backgroundBlendMode"),oe("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),se("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),gn("bg-",{section:"backgroundColor"}),se("bg-","backgroundImage"),se("bg-","backgroundPosition"),oe("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",$c),se("bg-","backgroundSize"),se("rounded(?:$|-)","borderRadius"),se("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${go(n[0])}-radius`]:t,[`border-${go(n[1])}-radius`]:t}}),oe("border-(collapse|separate)","borderCollapse"),se("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),oe("border-(solid|dashed|dotted|double|none)","borderStyle"),se("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...Ci({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),gn("border-([xytrbl])-",{section:"borderColor"},os("border","Color")),gn("border-"),se("border-([xytrbl])(?:$|-)","borderWidth",os("border","Width")),se("border(?:$|-)","borderWidth"),se("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),oe("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),oe("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),se("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${go(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${go(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),gn("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),se("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),gn("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),se("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),oe("ring-inset",{"--tw-ring-inset":"inset"}),gn("ring-",{property:"--tw-ring-color"}),se("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...Ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Ja(t("ringOffsetColor","","#fff")),"--tw-ring-color":Ja(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),gn("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),se("shadow(?:$|-)","boxShadow",({_:e})=>({...Ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Hr(e),"--tw-shadow-colored":Hr(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),se("(opacity)-"),oe("mix-blend-","mixBlendMode"),...kb(),...kb("backdrop-"),se("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Hr(e),transitionTimingFunction:e._=="none"?void 0:Hr(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Hr(t("transitionDuration",""))})),se("duration(?:$|-)","transitionDuration","transitionDuration",Hr),se("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Hr),se("delay(?:$|-)","transitionDelay","transitionDelay",Hr),se("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Hr(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",oe("transform",xp),oe("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Mb(e=="gpu")})),se("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...xp()})),se("-?(rotate)-","rotate",vp),se("-?(translate-[xy])-","translate",vp),se("-?(skew-[xy])-","skew",vp),oe("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",$c),"(appearance)-",se("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",se("(cursor)-"),"(cursor)-",oe("snap-(none)","scroll-snap-type"),oe("snap-(x|y|both)",({1:e})=>({...Ci({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),oe("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),oe("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),oe("snap-(normal|always)","scroll-snap-stop"),oe("scroll-(auto|smooth)","scroll-behavior"),se("scroll-p([xytrbl])?(?:$|-)","padding",os("scroll-padding")),se("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",os("scroll-margin")),oe("touch-(auto|none|manipulation)","touch-action"),oe("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...Ci({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),oe("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),oe("outline",{outlineStyle:"solid"}),oe("outline-(dashed|dotted|double)","outlineStyle"),se("-?(outline-offset)-"),gn("outline-",{opacityVariable:!1,opacitySection:"opacity"}),se("outline-","outlineWidth"),"(pointer-events)-",se("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],oe("select-(none|text|all|auto)","userSelect"),gn("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),gn("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),se("stroke-","strokeWidth"),oe("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),oe("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function $c(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Eb(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function go(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Hr(e){return e&&""+(e._||e)}function Ab({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function os(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Uu(e+"-"+go(a[0])+t,r),...Uu(e+"-"+go(a[1])+t,r)}:Uu(e+t,r)}}function kb(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...Ci(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,oe(`${e}filter`,n),...t.map(r=>se(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:wt(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function vp({1:e,_:t}){return{["--tw-"+e]:t,...xp()}}function xp(){return{...Ci({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Mb()}),transform:"var(--tw-transform)"}}function Mb(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Db({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Lb({1:e}){return`repeat(${e},minmax(0,1fr))`}function Ci(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var oA=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||xa(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:a=t},{e:i,h:o,v:s})=>{let u=is(r)||(n[0]=="["?n:s(n.slice(1)));return`${(u.includes("&")?u:"&"+u).replace(/&/g,`:merge(.${i(o(e+a))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||xa(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||xa(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=xa(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&is(e).replace(/[}]+$/,"").split("{")]];function sA({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:aA,theme:{...Cp,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:oA,rules:iA,finalize(n){return n.n&&n.d&&n.r.some(r=>/^&::(before|after)$/.test(r))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var uA={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},lA={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},cA={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},dA={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},mA={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},gA={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},pA={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},fA={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},hA={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},bA={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yA={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},vA={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},CA={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},xA={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},SA={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},TA={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},wA={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},EA={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},AA={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},kA={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},DA={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},LA={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},MA={__proto__:null,slate:uA,gray:lA,zinc:cA,neutral:dA,stone:mA,red:gA,orange:pA,amber:fA,yellow:hA,lime:bA,green:yA,emerald:vA,teal:CA,cyan:xA,sky:SA,blue:TA,indigo:wA,violet:EA,purple:AA,fuchsia:kA,pink:DA,rose:LA};function e0({disablePreflight:e}={}){return sA({colors:MA,disablePreflight:e})}var t0=globalThis||(typeof window<"u"?window:self),PA=Object.create,Tp=Object.defineProperty,RA=Object.getOwnPropertyDescriptor,IA=Object.getOwnPropertyNames,FA=Object.getPrototypeOf,BA=Object.prototype.hasOwnProperty,_A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),OA=(e,t)=>{for(var n in t)Tp(e,n,{get:t[n],enumerable:!0})},Sp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of IA(t))!BA.call(e,a)&&a!==n&&Tp(e,a,{get:()=>t[a],enumerable:!(r=RA(t,a))||r.enumerable});return e},NA=(e,t,n)=>(Sp(e,t,"default"),n&&Sp(n,t,"default")),Rb=(e,t,n)=>(n=e!=null?PA(FA(e)):{},Sp(t||!e||!e.__esModule?Tp(n,"default",{value:e,enumerable:!0}):n,e)),Ib=_A((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,m){var g=new XMLHttpRequest;g.open("GET",l),g.responseType="blob",g.onload=function(){u(g.response,c,m)},g.onerror=function(){},g.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof t0=="object"&&t0.global===t0?t0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,m){var g=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,m):i(p,p.target="_blank")):(p.href=g.createObjectURL(l),setTimeout(function(){g.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,m){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,m),c);else if(a(l))r(l,c,m);else{var g=document.createElement("a");g.href=l,g.target="_blank",setTimeout(function(){i(g)})}}:function(l,c,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,m);var p=l.type==="application/octet-stream",f=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&f||s)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var C=y.result;C=h?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=C:location=C,g=null},y.readAsDataURL(l)}else{var b=o.URL||o.webkitURL,v=b.createObjectURL(l);g?g.location=v:location.href=v,g=null,setTimeout(function(){b.revokeObjectURL(v)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),Fb={};OA(Fb,{default:()=>po});var UA=Rb(Ib());NA(Fb,Rb(Ib()));var{default:Pb,...jA}=UA,po=Pb!==void 0?Pb:jA;function Jb(e){return typeof e>"u"||e===null}function HA(e){return typeof e=="object"&&e!==null}function qA(e){return Array.isArray(e)?e:Jb(e)?[]:[e]}function zA(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;nfunction(){return t||(0,e[w2(e)[0]])((t={exports:{}}).exports,t),t.exports},wE=(e,t)=>{for(var n in t)Wg(e,n,{get:t[n],enumerable:!0})},Vg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of w2(t))!TE.call(e,a)&&a!==n&&Wg(e,a,{get:()=>t[a],enumerable:!(r=CE(t,a))||r.enumerable});return e},EE=(e,t,n)=>(Vg(e,t,"default"),n&&Vg(n,t,"default")),E2=(e,t,n)=>(n=e!=null?vE(xE(e)):{},Vg(t||!e||!e.__esModule?Wg(n,"default",{value:e,enumerable:!0}):n,e)),A2=SE({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(S,A=void 0){super(A),this.createItem=S}get(S){return this.has(S)||this.set(S,this.createItem(S)),super.get(S)}}let u=T=>T&&typeof T=="object"&&typeof T.then=="function",l=(T,S)=>(...A)=>{i.runtime.lastError?T.reject(new Error(i.runtime.lastError.message)):S.singleCallbackArg||A.length<=1&&S.singleCallbackArg!==!1?T.resolve(A[0]):T.resolve(A)},c=T=>T==1?"argument":"arguments",m=(T,S)=>function(D,...M){if(M.lengthS.maxArgs)throw new Error(`Expected at most ${S.maxArgs} ${c(S.maxArgs)} for ${T}(), got ${M.length}`);return new Promise((I,P)=>{if(S.fallbackToNoCallback)try{D[T](...M,l({resolve:I,reject:P},S))}catch{D[T](...M),S.fallbackToNoCallback=!1,S.noCallback=!0,I()}else S.noCallback?(D[T](...M),I()):D[T](...M,l({resolve:I,reject:P},S))})},g=(T,S,A)=>new Proxy(S,{apply(D,M,I){return A.call(M,T,...I)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),f=(T,S={},A={})=>{let D=Object.create(null),M={has(P,R){return R in T||R in D},get(P,R,L){if(R in D)return D[R];if(!(R in T))return;let _=T[R];if(typeof _=="function")if(typeof S[R]=="function")_=g(T,T[R],S[R]);else if(p(A,R)){let U=m(R,A[R]);_=g(T,T[R],U)}else _=_.bind(T);else if(typeof _=="object"&&_!==null&&(p(S,R)||p(A,R)))_=f(_,S[R],A[R]);else if(p(A,"*"))_=f(_,S[R],A["*"]);else return Object.defineProperty(D,R,{configurable:!0,enumerable:!0,get(){return T[R]},set(U){T[R]=U}}),_;return D[R]=_,_},set(P,R,L,_){return R in D?D[R]=L:T[R]=L,!0},defineProperty(P,R,L){return Reflect.defineProperty(D,R,L)},deleteProperty(P,R){return Reflect.deleteProperty(D,R)}},I=Object.create(T);return new Proxy(I,M)},b=T=>({addListener(S,A,...D){S.addListener(T.get(A),...D)},hasListener(S,A){return S.hasListener(T.get(A))},removeListener(S,A){S.removeListener(T.get(A))}}),y=new s(T=>typeof T!="function"?T:function(A){let D=f(A,{},{getContent:{minArgs:0,maxArgs:0}});T(D)}),h=new s(T=>typeof T!="function"?T:function(A,D,M){let I=!1,P,R=new Promise(z=>{P=function(Y){I=!0,z(Y)}}),L;try{L=T(A,D,P)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!I)return!1;let U=z=>{z.then(Y=>{M(Y)},Y=>{let ee;Y&&(Y instanceof Error||typeof Y.message=="string")?ee=Y.message:ee="An unexpected error occurred",M({__mozWebExtensionPolyfillReject__:!0,message:ee})}).catch(Y=>{})};return U(_?L:R),!0}),v=({reject:T,resolve:S},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?S():T(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?T(new Error(A.message)):S(A)},C=(T,S,A,...D)=>{if(D.lengthS.maxArgs)throw new Error(`Expected at most ${S.maxArgs} ${c(S.maxArgs)} for ${T}(), got ${D.length}`);return new Promise((M,I)=>{let P=v.bind(null,{resolve:M,reject:I});D.push(P),A.sendMessage(...D)})},x={devtools:{network:{onRequestFinished:b(y)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:C.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:C.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},f(i,x,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),k2={};wE(k2,{default:()=>Hc});var AE=E2(A2());EE(k2,E2(A2()));var{default:S2,...kE}=AE,Hc=S2!==void 0?S2:kE;globalThis.immersiveTranslateBrowserAPI=Hc;var Gc,Ue,R2,DE,Ru,D2,I2,zc={},F2=[],LE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vi(e,t){for(var n in t)e[n]=t[n];return e}function B2(e){var t=e.parentNode;t&&t.removeChild(e)}function mo(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Gc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return qc(e,o,r,a,null)}function qc(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++R2};return a==null&&Ue.vnode!=null&&Ue.vnode(i),i}function le(e){return e.children}function co(e,t){this.props=e,this.context=t}function ts(e,t){if(t==null)return e.__?ts(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?qc(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=h[c])===null||g&&p.key==g.key&&p.type===g.type)h[c]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Kc}),n.__[e]}function N(e){return Iu=1,IE(Z2,e)}function IE(e,t,n){var r=Fu(rs++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Z2(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Gt,!Gt.u)){Gt.u=!0;var a=Gt.shouldComponentUpdate;Gt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,m!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function q(e,t){var n=Fu(rs++,3);!Ue.__s&&Jg(n.__H,t)&&(n.__=e,n.i=t,Gt.__H.__h.push(n))}function Bu(e,t){var n=Fu(rs++,4);!Ue.__s&&Jg(n.__H,t)&&(n.__=e,n.i=t,Gt.__h.push(n))}function Ce(e){return Iu=5,ne(function(){return{current:e}},[])}function ne(e,t){var n=Fu(rs++,7);return Jg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ue(e,t){return Iu=8,ne(function(){return e},t)}function Te(e){var t=Gt.context[e.__c],n=Fu(rs++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Gt)),t.props.value):e.__}function FE(){for(var e;e=J2.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Yc),e.__H.__h.forEach(Qg),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){typeof e.type!="function"||e.o||e.type===le?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Gt=null,V2&&V2(e)},Ue.__r=function(e){W2&&W2(e),rs=0;var t=(Gt=e.__c).__H;t&&(Yg===Gt?(t.__h=[],Gt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Kc,n.__N=n.i=void 0})):(t.__h.forEach(Yc),t.__h.forEach(Qg),t.__h=[])),Yg=Gt},Ue.diffed=function(e){G2&&G2(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(J2.push(t)!==1&&z2===Ue.requestAnimationFrame||((z2=Ue.requestAnimationFrame)||BE)(FE)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Kc&&(n.__=n.__V),n.i=void 0,n.__V=Kc})),Yg=Gt=null},Ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Yc),n.__h=n.__h.filter(function(r){return!r.__||Qg(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Ue.__e(r,n.__v)}}),K2&&K2(e,t)},Ue.unmount=function(e){Y2&&Y2(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Yc(r)}catch(a){t=a}}),n.__H=void 0,t&&Ue.__e(t,n.__v))};var Q2=typeof requestAnimationFrame=="function";function BE(e){var t,n=function(){clearTimeout(r),Q2&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Q2&&(t=requestAnimationFrame(n))}function Yc(e){var t=Gt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Gt=t}function Qg(e){var t=Gt;e.__c=e.__(),Gt=t}function Jg(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Z2(e,t){return typeof t=="function"?t(e):t}var _u;function up(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function sb(e,t=","){return e.map(up).join(t)}var lp=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function as(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Jc(e,t="@media "){return t+wt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function wt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function X2(e){return e}function Nu(){}var on={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function ub(e){return e.match(/[-=:;]/g)?.length||0}function np(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(ub(e),15)<<18}var _E=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function cp({n:e,i:t,v:n=[]},r,a,i){e&&(e=up({n:e,i:t,v:n})),i=[...wt(i)];for(let s of n){let u=r.theme("screens",s);for(let l of wt(u&&Jc(u)||r.v(s))){var o;i.push(l),a|=u?67108864|np(l):s=="dark"?1073741824:l[0]=="@"?np(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~_E.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var dp=new Map;function rp(e){if(e.d){let t=[],n=Zg(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Zg(r,i=>Zg(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):Xg(i,o)}return Xg(o,i)})):r,"&"),r=>Xg(r,e.n?"."+lp(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Zg(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function Xg(e,t){return e.replace(/&/g,t)}var $2=new Intl.Collator("en",{numeric:!0});function lb(e,t){for(var n=0,r=e.length;n>1;0>=cb(e[a],t)?n=a+1:r=a}return r}function cb(e,t){let n=e.p&on.o;return n==(t.p&on.o)&&(n==on.b||n==on.o)?0:e.p-t.p||e.o-t.o||$2.compare(eb(e.n),eb(t.n))||$2.compare(tb(e.n),tb(t.n))}function eb(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function tb(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function $g(e,t){return Math.round(parseInt(e,16)*t)}function Qa(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[$g(e.substr(1,i),o),$g(e.substr(1+i,i),o),$g(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function mp(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},m){let g=[],p="",f=0,b=0;for(let v in o||{}){var y,h;let C=o[v];if(v[0]=="@"){if(!C)continue;if(v[1]=="a"){g.push(...fp(s,u,Ou(""+C),m,u,l,c,!0));continue}if(v[1]=="l"){for(let x of wt(C))g.push(...i(x,{n:s,p:(y=on[v[7]],u&~on.o|y),r:v[7]=="d"?[]:l,i:c},m));continue}if(v[1]=="i"){g.push(...wt(C).map(x=>({p:-1,o:0,r:[],d:v+" "+x})));continue}if(v[1]=="k"){g.push({p:on.d,o:0,r:[v],d:i(C,{p:on.d},m).map(rp).join("")});continue}if(v[1]=="f"){g.push(...wt(C).map(x=>({p:on.d,o:0,r:[v],d:i(x,{p:on.d},m).map(rp).join("")})));continue}}if(typeof C!="object"||Array.isArray(C))v=="label"&&C?s=C+as(JSON.stringify([u,c,o])):(C||C===0)&&(v=v.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),b+=1,f=Math.max(f,(h=v)[0]=="-"?0:ub(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+wt(C).map(x=>m.s(v,gp(""+x,m.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let x=u;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(w,T)=>{let S=m.theme("screens",T);return S?(x|=67108864,Jc(S,"")):w}),x|=np(v)),g.push(...i(C,{n:s,p:x,r:[...l,v],i:c},m))}else g.push(...i(C,{p:u,r:[...l,v]},m))}return g.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(f||15,15),r:l,d:p}),g.sort(cb)}(e,cp(t,n,r,a),n)}function gp(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?Qa(s):""+wt(s).filter(u=>Object(u)!==u)})}function pp(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Qc(e,t,n=on.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,m,g){u={...u,i:u.i||g};let p=function(f,b){let y=dp.get(f.n);return y?y(f,b):b.r(f.n,f.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:m,p:c}=cp(u,l,c,m),pp(Qc(Ou(p),l,c,m,u.i),u.n)):Array.isArray(p)?p.map(f=>{var b,y;return{o:0,...f,r:[...wt(m),...wt(f.r)],p:(b=c,y=f.p??c,b&~on.o|y)}}):mp(p,u,l,c,m):[{c:up(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(lb(i,s),0,s);return i}function fp(e,t,n,r,a,i,o,s){return pp((s?n.flatMap(u=>Qc([u],r,a,i,o)):Qc(n,r,a,i,o)).map(u=>u.p&on.o&&(u.n||t==on.b)?{...u,p:u.p&~on.o|t,o:0}:u),e)}function OE(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=cp(i,o,t);return n&&fp(s,t,n,o,u,l,c,r)},dp.set(e,a),e}function ep(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(NE),i:a}))}}function NE(e,t,n){return n.indexOf(e)==t}var nb=new Map;function Ou(e){let t=nb.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&ep(n,r)),a=s+1};for(;s1?m.slice(0,-1)+as(JSON.stringify([m,g])):m+"("+sb(g)+")",on.a,g,/@$/.test(m))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),nb.set(e,t=r[0])}return t}function db(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function mb(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?db(e,t,n=>tp(n).trim()):t.filter(Boolean).reduce((n,r)=>n+tp(r),e?tp(e):"")}function tp(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=mb(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var KV=gb("@"),YV=gb("~");function gb(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return sb(Ou(n+e+"("+mb(r,a)+")"))}}function ap(e,t){return Array.isArray(e)?rb(db(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?rb(e):[e]}var UE=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function rb(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=UE.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function pb(e,...t){var n;let r=ap(e,t),a=(r.find(i=>i.label)?.label||"css")+as(JSON.stringify(r));return n=(i,o)=>pp(r.flatMap(s=>mp(s,i,o,on.o)),a),dp.set(a,n),a}var QV=new Proxy(function(e,t){return ab("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return ab(t,n,r)}}});function ab(e,t,n){return{toString(){return pb({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function oe(e,t,n){return[e,ip(t,n)]}function ip(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):op(n,1)}):n=>e||{[n[1]]:op(n,2)}}function op(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function se(e,t,n,r){return[e,jE(t,n,r)]}function jE(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=fb(e||a[1]),s=i.theme(o,a.$$)??Ca(a.$$,o,i);if(s!=null)return a._=op(a,0,s),r(a,i,o)}}function gn(e,t={},n){return[e,HE(t,n)]}function HE(e={},t){return(n,r)=>{let{section:a=fb(n[0]).replace("-","")+"Color"}=e,[i,o]=qE(n.$$);if(!i)return;let s=r.theme(a,i)||Ca(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:m}=e,g=r.theme(l,o||"DEFAULT")||o&&Ca(o,l,r),p=t||(({_:b})=>{let y=Uu(c,b);return m?{[m]:y}:y});n._={value:Qa(s,{opacityVariable:u||void 0,opacityValue:g||void 0}),color:b=>Qa(s,b),opacityVariable:u||void 0,opacityValue:g||void 0};let f=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:Qa(b,{opacityVariable:u||void 0,opacityValue:g||"1"}),color:y=>Qa(b,y),opacityVariable:u||void 0,opacityValue:g||void 0},f={"&":f,[r.v("dark")]:p(n,r)})}return f}}function qE(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Uu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ca(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=is(gp(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function fb(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function is(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>is(n)+r+is(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var JV=Symbol();function ju({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:wt(t.variants),rules:wt(t.rules),ignorelist:wt(t.ignorelist),hash:void 0,stringify:(r,a)=>r+":"+a,finalize:[]};for(let r of wt([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&wt(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:a,darkMode:i=n.darkMode,darkColor:o=n.darkColor,theme:s,variants:u,rules:l,ignorelist:c,hash:m=n.hash,stringify:g=n.stringify,finalize:p}=typeof r=="function"?r(n):r;n={preflight:n.preflight!==!1&&a!==!1&&[...n.preflight,...wt(a)],darkMode:i,darkColor:o,theme:{...n.theme,...s,extend:{...n.theme.extend,...s?.extend}},variants:[...n.variants,...wt(u)],rules:[...n.rules,...wt(l)],ignorelist:[...n.ignorelist,...wt(c)],hash:m,stringify:g,finalize:[...n.finalize,...wt(p)]}}return n}function ib(e,t,n,r,a,i){for(let o of t){let s=n.get(o);s||n.set(o,s=r(o));let u=s(e,a,i);if(u)return u}}function zE(e){var t;return sp(e[0],typeof(t=e[1])=="function"?t:()=>t)}function VE(e){var t,n;return Array.isArray(e)?sp(e[0],ip(e[1],e[2])):sp(e,ip(t,n))}function sp(e,t){return hb(e,(n,r,a,i)=>{let o=r.exec(n);if(o)return o.$$=n.slice(o[0].length),o.dark=i,t(o,a)})}function hb(e,t){let n=wt(e).map(WE);return(r,a,i)=>{for(let o of n){let s=t(r,o,a,i);if(s)return s}}}function WE(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function GE(e,t){let n=ju(e),r=function({theme:u,darkMode:l,darkColor:c=Nu,variants:m,rules:g,hash:p,stringify:f,ignorelist:b,finalize:y}){let h=new Map,v=new Map,C=new Map,x=new Map,w=hb(b,(A,D)=>D.test(A));m.push(["dark",Array.isArray(l)||l=="class"?`${wt(l)[1]||".dark"} &`:typeof l=="string"&&l!="media"?l:"@media (prefers-color-scheme:dark)"]);let T=typeof p=="function"?A=>p(A,as):p?as:X2;T!==X2&&y.push(A=>({...A,n:A.n&&T(A.n),d:A.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,M)=>"--"+T(M).replace("#",""))}));let S={theme:function({extend:A={},...D}){let M={},I={get colors(){return P("colors")},theme:P,negative(){return{}},breakpoints(L){let _={};for(let U in L)typeof L[U]=="string"&&(_["screen-"+U]=L[U]);return _}};return P;function P(L,_,U,z){if(L){if({1:L,2:z}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let xe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,W,te=W)=>xe.push(te)),L=xe.shift(),U=_,_=xe.join("-")}let ee=M[L]||Object.assign(Object.assign(M[L]={},R(D,L)),R(A,L));if(_==null)return ee;_||="DEFAULT";let Re=ee[_]??_.split("-").reduce((xe,H)=>xe?.[H],ee)??U;return z?Qa(Re,{opacityValue:gp(z,P)}):Re}let Y={};for(let ee of[...Object.keys(D),...Object.keys(A)])Y[ee]=P(ee);return Y}function R(L,_){let U=L[_];return typeof U=="function"&&(U=U(I)),U&&/color|fill|stroke/i.test(_)?function z(Y,ee=[]){let Re={};for(let xe in Y){let H=Y[xe],W=[...ee,xe];Re[W.join("-")]=H,xe=="DEFAULT"&&(W=ee,Re[ee.join("-")]=H),typeof H=="object"&&Object.assign(Re,z(H,W))}return Re}(U):U}}(u),e:lp,h:T,s(A,D){return f(A,D,S)},d(A,D,M){return c(A,D,S,M)},v(A){return h.has(A)||h.set(A,ib(A,m,v,zE,S)||"&:"+A),h.get(A)},r(A,D){let M=JSON.stringify([A,D]);return C.has(M)||C.set(M,!w(A,S)&&ib(A,g,x,VE,S,D)),C.get(M)},f(A){return y.reduce((D,M)=>M(D,S),A)}};return S}(n),a=new Map,i=[],o=new Set;t.resume(u=>a.set(u,u),(u,l)=>{t.insert(u,i.length,l),i.push(l),o.add(u)});function s(u){let l=r.f(u),c=rp(l);if(c&&!o.has(c)){o.add(c);let m=lb(i,u);t.insert(c,m,u),i.splice(m,0,u)}return l.n}return Object.defineProperties(function(u){if(!a.size)for(let c of wt(n.preflight))typeof c=="function"&&(c=c(r)),c&&(typeof c=="string"?fp("",on.b,Ou(c),r,on.b,[],!1,!0):mp(c,{},r,on.b)).forEach(s);u=""+u;let l=a.get(u);if(!l){let c=new Set;for(let m of Qc(Ou(u),r))c.add(m.c).add(s(m));l=[...c].filter(Boolean).join(" "),a.set(u,l).set(l,l)}return l},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let u=t.snapshot(),l=new Set(o),c=new Map(a),m=[...i];return()=>{u(),o=l,a=c,i=m}},clear(){t.clear(),o=new Set,a=new Map,i=[]},destroy(){this.clear(),t.destroy()}}))}function KE(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function YE(e){let t=new MutationObserver(n);return{observe(a){t.observe(a,{attributeFilter:["class"],subtree:!0,childList:!0}),r(a),n([{target:a,type:""}])},disconnect(){t.disconnect()}};function n(a){for(let{type:i,target:o}of a)if(i[0]=="a")r(o);else for(let s of o.querySelectorAll("[class]"))r(s);t.takeRecords()}function r(a){let i,o=a.getAttribute?.("class");o&&KE(o,i=e(o))&&a.setAttribute("class",i)}}function QE(e=hp,t=typeof document<"u"&&document.documentElement){if(t){let n=YE(e);n.observe(t);let{destroy:r}=e;e.destroy=()=>{n.disconnect(),r.call(e)}}return e}function bb(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function JE(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:bb(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,r=>r.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,r){try{t.insertRule(n,r)}catch{t.insertRule(":root{}",r)}},resume:Nu}}function ZE(e){let t=e&&typeof e!="string"?e:bb(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,r=>r.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,r){t.insertBefore(document.createTextNode(n),t.childNodes[r]||null)},resume:Nu}}function XE(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,a){t.splice(r,0,e?`/*!${a.p.toString(36)},${(2*a.o).toString(36)}${a.n?","+a.n:""}*/${n}`:n)},resume:Nu}}function yb(e,t){let n=typeof document>"u"?XE(!t):e?ZE():JE();return t||(n.resume=eA),n}function $E(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):wt(e)).join("")}function eA(e,t){let n=$E(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var a;let i;if(r.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;a=r.exec(n),i&&t(n.slice(i.index+i[0].length,a?.index),{p:parseInt(i[1],36),o:parseInt(i[2],36)/2,n:i[3]}),i=a;);}}var hp=new Proxy(Nu,{apply(e,t,n){return _u(n[0])},get(e,t){let n=_u[t];return typeof n=="function"?function(){return n.apply(_u,arguments)}:n}});function vb(e={},t=yb,n){return _u?.destroy(),_u=QE(GE(e,typeof t=="function"?t():t),n)}function bp(e,t=!0){let n=ju(e);return vb({...n,hash:n.hash??t},()=>yb(!t))}var ZV=function e(t){return new Proxy(function(n,...r){return ob(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return ob(t,r,a,i)}}})}();function ob(e,t,n,r){return{toString(){let a=ap(n,r),i=lp(t+as(JSON.stringify([t,a])));return(typeof e=="function"?e:hp)(pb({[`@keyframes ${i}`]:ap(n,r)})),i}}}var tA=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Cb(e){return tA.get(e)}function xb(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function Tb(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var nA=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Zc(){return({stringify:e})=>({stringify(t,n,r){let a="",i=Cb(t);i&&(a+=e(i,n,r)+";");let o=xb(t),s=Tb(t,n);for(let u of nA)o&u[1]&&(a+=e(u[0]+t,n,r)+";"),s&u[1]&&(a+=e(t,u[0]+n,r)+";");return a+e(t,n,r)}})}var vp={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...hr(4,"rem",4,.5,.5),...hr(12,"rem",4,5),14:"3.5rem",...hr(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:ot("blur"),backdropBrightness:ot("brightness"),backdropContrast:ot("contrast"),backdropGrayscale:ot("grayscale"),backdropHueRotate:ot("hueRotate"),backdropInvert:ot("invert"),backdropOpacity:ot("opacity"),backdropSaturate:ot("saturate"),backdropSepia:ot("sepia"),backgroundColor:ot("colors"),backgroundImage:{none:"none"},backgroundOpacity:ot("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...hr(200,"",100,0,50),...hr(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:ot("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:ot("spacing"),borderWidth:{DEFAULT:"1px",...Dr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:ot("colors"),caretColor:ot("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...hr(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:ot("borderColor"),divideOpacity:ot("borderOpacity"),divideWidth:ot("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Hu(2,6),...Hu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:ot("spacing"),gradientColorStops:ot("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Hu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Hu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...hr(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...hr(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:ot("spacing"),placeholderColor:ot("colors"),placeholderOpacity:ot("opacity"),outlineColor:ot("colors"),outlineOffset:Dr(8,"px"),outlineWidth:Dr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:ot("colors"),ringOffsetWidth:Dr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...Dr(8,"px")},rotate:{...Dr(2,"deg"),...Dr(12,"deg",3),...Dr(180,"deg",45)},saturate:hr(200,"",100,0,50),scale:{...hr(150,"",100,0,50),...hr(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:ot("spacing"),scrollPadding:ot("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...Dr(2,"deg"),...Dr(12,"deg",3)},space:ot("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:hr(2),textColor:ot("colors"),textDecorationColor:ot("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...Dr(8,"px")},textUnderlineOffset:{auto:"auto",...Dr(8,"px")},textIndent:ot("spacing"),textOpacity:ot("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:ot("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Hu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...hr(50,"",1,0,10),auto:"auto"}};function Hu(e,t){let n={};do for(var r=1;rt(e)}var rA={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${vp.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${vp.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},aA=[oe("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ca(`[${t}]`,"",n)}}})),oe("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),se("aspect-","aspectRatio"),oe("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[Jc(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),se("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),oe("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),oe("box-(border|content)","boxSizing",({1:e})=>e+"-box"),oe("hidden",{display:"none"}),oe("table-(auto|fixed)","tableLayout"),oe(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",oe("isolate","isolation"),oe("object-(contain|cover|fill|none|scale-down)","objectFit"),se("object-","objectPosition"),oe("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Xc),oe("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),oe("(static|fixed|absolute|relative|sticky)","position"),se("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),se("-?(top|bottom|left|right)(?:$|-)","inset"),oe("(visible|collapse)","visibility"),oe("invisible",{visibility:"hidden"}),se("-?z-","zIndex"),oe("flex-((row|col)(-reverse)?)","flexDirection",Sb),oe("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),se("(flex-(?:grow|shrink))(?:$|-)"),se("(flex)-"),se("grow(?:$|-)","flexGrow"),se("shrink(?:$|-)","flexShrink"),se("basis-","flexBasis"),se("-?(order)-"),"-?(order)-(\\d+)",se("grid-cols-","gridTemplateColumns"),oe("grid-cols-(\\d+)","gridTemplateColumns",kb),se("col-","gridColumn"),oe("col-(span)-(\\d+)","gridColumn",Ab),se("col-start-","gridColumnStart"),oe("col-start-(auto|\\d+)","gridColumnStart"),se("col-end-","gridColumnEnd"),oe("col-end-(auto|\\d+)","gridColumnEnd"),se("grid-rows-","gridTemplateRows"),oe("grid-rows-(\\d+)","gridTemplateRows",kb),se("row-","gridRow"),oe("row-(span)-(\\d+)","gridRow",Ab),se("row-start-","gridRowStart"),oe("row-start-(auto|\\d+)","gridRowStart"),se("row-end-","gridRowEnd"),oe("row-end-(auto|\\d+)","gridRowEnd"),oe("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Xc(Sb(e))),oe("grid-flow-(dense)","gridAutoFlow"),se("auto-cols-","gridAutoColumns"),se("auto-rows-","gridAutoRows"),se("gap-x(?:$|-)","gap","columnGap"),se("gap-y(?:$|-)","gap","rowGap"),se("gap(?:$|-)","gap"),"(justify-(?:items|self))-",oe("justify-","justifyContent",wb),oe("(content|items|self)-",e=>({["align-"+e[1]]:wb(e)})),oe("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),se("p([xytrbl])?(?:$|-)","padding",os("padding")),se("-?m([xytrbl])?(?:$|-)","margin",os("margin")),se("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),oe("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),se("w-","width"),se("min-w-","minWidth"),se("max-w-","maxWidth"),se("h-","height"),se("min-h-","minHeight"),se("max-h-","maxHeight"),se("font-","fontWeight"),se("font-","fontFamily",({_:e})=>typeof(e=wt(e))[1]=="string"?{fontFamily:jr(e)}:{fontFamily:jr(e[0]),...e[1]}),oe("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),oe("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),oe("italic","fontStyle"),oe("not-italic",{fontStyle:"normal"}),oe("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ci({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),se("tracking-","letterSpacing"),se("leading-","lineHeight"),oe("list-(inside|outside)","listStylePosition"),se("list-","listStyleType"),oe("list-","listStyleType"),se("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),gn("placeholder-",{property:"color",selector:"&::placeholder"}),oe("text-(left|center|right|justify|start|end)","textAlign"),oe("text-(ellipsis|clip)","textOverflow"),se("text-opacity-","textOpacity","--tw-text-opacity"),gn("text-",{property:"color"}),se("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),se("indent-","textIndent"),oe("(overline|underline|line-through)","textDecorationLine"),oe("no-underline",{textDecorationLine:"none"}),se("underline-offset-","textUnderlineOffset"),gn("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),se("decoration-","textDecorationThickness"),oe("decoration-","textDecorationStyle"),oe("(uppercase|lowercase|capitalize)","textTransform"),oe("normal-case",{textTransform:"none"}),oe("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),oe("align-","verticalAlign"),oe("whitespace-","whiteSpace"),oe("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),oe("break-words",{overflowWrap:"break-word"}),oe("break-all",{wordBreak:"break-all"}),oe("break-keep",{wordBreak:"keep-all"}),gn("caret-",{opacityVariable:!1,opacitySection:"opacity"}),gn("accent-",{opacityVariable:!1,opacitySection:"opacity"}),oe("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${go(e," ")},var(--tw-gradient-stops))`),gn("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),gn("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),gn("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),oe("bg-(fixed|local|scroll)","backgroundAttachment"),oe("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),oe(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),oe("bg-blend-","backgroundBlendMode"),oe("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),se("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),gn("bg-",{section:"backgroundColor"}),se("bg-","backgroundImage"),se("bg-","backgroundPosition"),oe("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Xc),se("bg-","backgroundSize"),se("rounded(?:$|-)","borderRadius"),se("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${go(n[0])}-radius`]:t,[`border-${go(n[1])}-radius`]:t}}),oe("border-(collapse|separate)","borderCollapse"),se("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),oe("border-(solid|dashed|dotted|double|none)","borderStyle"),se("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...Ci({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),gn("border-([xytrbl])-",{section:"borderColor"},os("border","Color")),gn("border-"),se("border-([xytrbl])(?:$|-)","borderWidth",os("border","Width")),se("border(?:$|-)","borderWidth"),se("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),oe("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),oe("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),se("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${go(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${go(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),gn("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),se("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),gn("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),se("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),oe("ring-inset",{"--tw-ring-inset":"inset"}),gn("ring-",{property:"--tw-ring-color"}),se("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...Ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Qa(t("ringOffsetColor","","#fff")),"--tw-ring-color":Qa(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),gn("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),se("shadow(?:$|-)","boxShadow",({_:e})=>({...Ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":jr(e),"--tw-shadow-colored":jr(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),se("(opacity)-"),oe("mix-blend-","mixBlendMode"),...Eb(),...Eb("backdrop-"),se("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:jr(e),transitionTimingFunction:e._=="none"?void 0:jr(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:jr(t("transitionDuration",""))})),se("duration(?:$|-)","transitionDuration","transitionDuration",jr),se("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",jr),se("delay(?:$|-)","transitionDelay","transitionDelay",jr),se("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=jr(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",oe("transform",Cp),oe("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Db(e=="gpu")})),se("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Cp()})),se("-?(rotate)-","rotate",yp),se("-?(translate-[xy])-","translate",yp),se("-?(skew-[xy])-","skew",yp),oe("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Xc),"(appearance)-",se("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",se("(cursor)-"),"(cursor)-",oe("snap-(none)","scroll-snap-type"),oe("snap-(x|y|both)",({1:e})=>({...Ci({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),oe("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),oe("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),oe("snap-(normal|always)","scroll-snap-stop"),oe("scroll-(auto|smooth)","scroll-behavior"),se("scroll-p([xytrbl])?(?:$|-)","padding",os("scroll-padding")),se("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",os("scroll-margin")),oe("touch-(auto|none|manipulation)","touch-action"),oe("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...Ci({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),oe("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),oe("outline",{outlineStyle:"solid"}),oe("outline-(dashed|dotted|double)","outlineStyle"),se("-?(outline-offset)-"),gn("outline-",{opacityVariable:!1,opacitySection:"opacity"}),se("outline-","outlineWidth"),"(pointer-events)-",se("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],oe("select-(none|text|all|auto)","userSelect"),gn("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),gn("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),se("stroke-","strokeWidth"),oe("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),oe("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Xc(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Sb(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function go(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function jr(e){return e&&""+(e._||e)}function wb({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function os(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Uu(e+"-"+go(a[0])+t,r),...Uu(e+"-"+go(a[1])+t,r)}:Uu(e+t,r)}}function Eb(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...Ci(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,oe(`${e}filter`,n),...t.map(r=>se(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:wt(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function yp({1:e,_:t}){return{["--tw-"+e]:t,...Cp()}}function Cp(){return{...Ci({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Db()}),transform:"var(--tw-transform)"}}function Db(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Ab({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function kb({1:e}){return`repeat(${e},minmax(0,1fr))`}function Ci(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var iA=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Ca(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:a=t},{e:i,h:o,v:s})=>{let u=is(r)||(n[0]=="["?n:s(n.slice(1)));return`${(u.includes("&")?u:"&"+u).replace(/&/g,`:merge(.${i(o(e+a))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Ca(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Ca(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Ca(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&is(e).replace(/[}]+$/,"").split("{")]];function oA({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:rA,theme:{...vp,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:iA,rules:aA,finalize(n){return n.n&&n.d&&n.r.some(r=>/^&::(before|after)$/.test(r))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var sA={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},uA={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},lA={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},cA={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},dA={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},mA={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gA={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},pA={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},fA={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},hA={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},bA={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},yA={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},vA={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},CA={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},xA={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},TA={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},SA={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},wA={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},EA={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},AA={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},kA={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},DA={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},LA={__proto__:null,slate:sA,gray:uA,zinc:lA,neutral:cA,stone:dA,red:mA,orange:gA,amber:pA,yellow:fA,lime:hA,green:bA,emerald:yA,teal:vA,cyan:CA,sky:xA,blue:TA,indigo:SA,violet:wA,purple:EA,fuchsia:AA,pink:kA,rose:DA};function $c({disablePreflight:e}={}){return oA({colors:LA,disablePreflight:e})}var e0=globalThis||(typeof window<"u"?window:self),MA=Object.create,Tp=Object.defineProperty,PA=Object.getOwnPropertyDescriptor,RA=Object.getOwnPropertyNames,IA=Object.getPrototypeOf,FA=Object.prototype.hasOwnProperty,BA=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_A=(e,t)=>{for(var n in t)Tp(e,n,{get:t[n],enumerable:!0})},xp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of RA(t))!FA.call(e,a)&&a!==n&&Tp(e,a,{get:()=>t[a],enumerable:!(r=PA(t,a))||r.enumerable});return e},OA=(e,t,n)=>(xp(e,t,"default"),n&&xp(n,t,"default")),Mb=(e,t,n)=>(n=e!=null?MA(IA(e)):{},xp(t||!e||!e.__esModule?Tp(n,"default",{value:e,enumerable:!0}):n,e)),Pb=BA((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,m){var g=new XMLHttpRequest;g.open("GET",l),g.responseType="blob",g.onload=function(){u(g.response,c,m)},g.onerror=function(){},g.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof e0=="object"&&e0.global===e0?e0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,m){var g=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,m):i(p,p.target="_blank")):(p.href=g.createObjectURL(l),setTimeout(function(){g.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,m){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,m),c);else if(a(l))r(l,c,m);else{var g=document.createElement("a");g.href=l,g.target="_blank",setTimeout(function(){i(g)})}}:function(l,c,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,m);var p=l.type==="application/octet-stream",f=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&f||s)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var C=y.result;C=b?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=C:location=C,g=null},y.readAsDataURL(l)}else{var h=o.URL||o.webkitURL,v=h.createObjectURL(l);g?g.location=v:location.href=v,g=null,setTimeout(function(){h.revokeObjectURL(v)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),Rb={};_A(Rb,{default:()=>po});var NA=Mb(Pb());OA(Rb,Mb(Pb()));var{default:Lb,...UA}=NA,po=Lb!==void 0?Lb:UA;function Yb(e){return typeof e>"u"||e===null}function jA(e){return typeof e=="object"&&e!==null}function HA(e){return Array.isArray(e)?e:Yb(e)?[]:[e]}function qA(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Ep(e,t){return pn.repeat(" ",t-e.length)+e}function XA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,m=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=wp(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),m),s=pn.repeat(" ",t.indent)+Ep((e.line-u+1).toString(),c)+" | "+l.str+` -`+s;for(l=wp(e.buffer,r[o],a[o],e.position,m),s+=pn.repeat(" ",t.indent)+Ep((e.line+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),r+" "+n):r}function zu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Qb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}zu.prototype=Object.create(Error.prototype);zu.prototype.constructor=zu;zu.prototype.toString=function(e){return this.name+": "+Qb(this,e)};var Kn=zu;function Sp(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function wp(e,t){return pn.repeat(" ",t-e.length)+e}function ZA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,m=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=Sp(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),m),s=pn.repeat(" ",t.indent)+wp((e.line-u+1).toString(),c)+" | "+l.str+` +`+s;for(l=Sp(e.buffer,r[o],a[o],e.position,m),s+=pn.repeat(" ",t.indent)+wp((e.line+1).toString(),c)+" | "+l.str+` `,s+=pn.repeat("-",t.indent+c+3+l.pos)+`^ -`,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=wp(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),m),s+=pn.repeat(" ",t.indent)+Ep((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var $A=XA,ek=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],tk=["scalar","sequence","mapping"];function nk(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function rk(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(ek.indexOf(n)===-1)throw new Yn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=nk(t.styleAliases||null),tk.indexOf(this.kind)===-1)throw new Yn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Dn=rk;function Bb(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function ak(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),bk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function yk(e){return!(e===null||!bk.test(e)||e[e.length-1]==="_")}function vk(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Ck=/^[-+]?[0-9]+e/;function xk(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pn.isNegativeZero(e))return"-0.0";return n=e.toString(10),Ck.test(n)?n.replace("e",".e"):n}function Sk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||pn.isNegativeZero(e))}var o9=new Dn("tag:yaml.org,2002:float",{kind:"scalar",resolve:yk,construct:vk,predicate:Sk,represent:xk,defaultStyle:"lowercase"}),s9=n9.extend({implicit:[r9,a9,i9,o9]}),u9=s9,l9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),c9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Tk(e){return e===null?!1:l9.exec(e)!==null||c9.exec(e)!==null}function wk(e){var t,n,r,a,i,o,s,u=0,l=null,c,m,g;if(t=l9.exec(e),t===null&&(t=c9.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],m=+(t[11]||0),l=(c*60+m)*6e4,t[9]==="-"&&(l=-l)),g=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&g.setTime(g.getTime()-l),g}function Ek(e){return e.toISOString()}var d9=new Dn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Tk,construct:wk,instanceOf:Date,represent:Ek});function Ak(e){return e==="<<"||e===null}var m9=new Dn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ak}),Rp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function kk(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Rp;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function Dk(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Rp,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function Lk(e){var t="",n=0,r,a,i=e.length,o=Rp;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Mk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var g9=new Dn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:kk,construct:Dk,predicate:Mk,represent:Lk}),Pk=Object.prototype.hasOwnProperty,Rk=Object.prototype.toString;function Ik(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var x9=new Array(256),S9=new Array(256);for(fo=0;fo<256;fo++)x9[fo]=Nb(fo)?1:0,S9[fo]=Nb(fo);var fo;function Qk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ip,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function T9(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=$A(n),new Yn(t,n)}function Ae(e,t){throw T9(e,t)}function a0(e,t){e.onWarning&&e.onWarning.call(null,T9(e,t))}var Ub={YAML:function(e,t,n){var r,a,i;e.version!==null&&Ae(e,"duplication of %YAML directive"),n.length!==1&&Ae(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&Ae(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&Ae(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&a0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&Ae(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],v9.test(r)||Ae(e,"ill-formed tag handle (first argument) of the TAG directive"),Si.call(e.tagMap,r)&&Ae(e,'there is a previously declared suffix for "'+r+'" tag handle'),C9.test(a)||Ae(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Ae(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function xi(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=pn.repeat(` -`,t-1))}function Jk(e,t,n){var r,a,i,o,s,u,l,c,m=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),or(p)||us(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),or(a)||n&&us(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),or(a)||n&&us(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),or(r))break}else{if(e.position===e.lineStart&&s0(e)||n&&us(p))break;if(Sa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,sn(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(xi(e,i,o,!1),Bp(e,e.line-u),i=o=e.position,s=!1),ho(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return xi(e,i,o,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function Zk(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(xi(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else Sa(n)?(xi(e,r,a,!0),Bp(e,sn(e,!1,t)),r=a=e.position):e.position===e.lineStart&&s0(e)?Ae(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Ae(e,"unexpected end of the stream within a single quoted scalar")}function Xk(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return xi(e,n,e.position,!0),e.position++,!0;if(s===92){if(xi(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Sa(s))sn(e,!1,t);else if(s<256&&x9[s])e.result+=S9[s],e.position++;else if((o=Gk(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=Wk(s))>=0?i=(i<<4)+o:Ae(e,"expected hexadecimal character");e.result+=Yk(i),e.position++}else Ae(e,"unknown escape sequence");n=r=e.position}else Sa(s)?(xi(e,n,r,!0),Bp(e,sn(e,!1,t)),n=r=e.position):e.position===e.lineStart&&s0(e)?Ae(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Ae(e,"unexpected end of the stream within a double quoted scalar")}function $k(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,m,g,p,f=Object.create(null),h,y,b,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,p=!1,s=[];else if(v===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(sn(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?v===44&&Ae(e,"expected the node content, but found ','"):Ae(e,"missed comma between flow collection entries"),y=h=b=null,m=g=!1,v===63&&(l=e.input.charCodeAt(e.position+1),or(l)&&(m=g=!0,e.position++,sn(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,cs(e,t,n0,!1,!0),y=e.tag,h=e.result,sn(e,!0,t),v=e.input.charCodeAt(e.position),(g||e.line===r)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),sn(e,!0,t),cs(e,t,n0,!1,!0),b=e.result),p?ls(e,s,f,y,h,b,r,a,i):m?s.push(ls(e,null,f,y,h,b,r,a,i)):s.push(h),sn(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}Ae(e,"unexpected end of the stream within a flow collection")}function eD(e,t){var n,r,a=Ap,i=!1,o=!1,s=t,u=0,l=!1,c,m;if(m=e.input.charCodeAt(e.position),m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)Ap===a?a=m===43?_b:Hk:Ae(e,"repeat of a chomping mode identifier");else if((c=Kk(m))>=0)c===0?Ae(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Ae(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(ho(m)){do m=e.input.charCodeAt(++e.position);while(ho(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!Sa(m)&&m!==0)}for(;m!==0;){for(Fp(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),Sa(m)){u++;continue}if(e.lineIndent=a.length);u++)l=Sp(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),m),s+=pn.repeat(" ",t.indent)+wp((e.line+u+1).toString(),c)+" | "+l.str+` +`;return s.replace(/\n$/,"")}var XA=ZA,$A=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ek=["scalar","sequence","mapping"];function tk(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function nk(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if($A.indexOf(n)===-1)throw new Kn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=tk(t.styleAliases||null),ek.indexOf(this.kind)===-1)throw new Kn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Dn=nk;function Ib(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function rk(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),hk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function bk(e){return!(e===null||!hk.test(e)||e[e.length-1]==="_")}function yk(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var vk=/^[-+]?[0-9]+e/;function Ck(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pn.isNegativeZero(e))return"-0.0";return n=e.toString(10),vk.test(n)?n.replace("e",".e"):n}function xk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||pn.isNegativeZero(e))}var a9=new Dn("tag:yaml.org,2002:float",{kind:"scalar",resolve:bk,construct:yk,predicate:xk,represent:Ck,defaultStyle:"lowercase"}),i9=e9.extend({implicit:[t9,n9,r9,a9]}),o9=i9,s9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),u9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Tk(e){return e===null?!1:s9.exec(e)!==null||u9.exec(e)!==null}function Sk(e){var t,n,r,a,i,o,s,u=0,l=null,c,m,g;if(t=s9.exec(e),t===null&&(t=u9.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],m=+(t[11]||0),l=(c*60+m)*6e4,t[9]==="-"&&(l=-l)),g=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&g.setTime(g.getTime()-l),g}function wk(e){return e.toISOString()}var l9=new Dn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Tk,construct:Sk,instanceOf:Date,represent:wk});function Ek(e){return e==="<<"||e===null}var c9=new Dn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ek}),Pp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Ak(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Pp;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function kk(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Pp,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function Dk(e){var t="",n=0,r,a,i=e.length,o=Pp;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Lk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var d9=new Dn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ak,construct:kk,predicate:Lk,represent:Dk}),Mk=Object.prototype.hasOwnProperty,Pk=Object.prototype.toString;function Rk(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var v9=new Array(256),C9=new Array(256);for(fo=0;fo<256;fo++)v9[fo]=_b(fo)?1:0,C9[fo]=_b(fo);var fo;function Yk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Rp,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function x9(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=XA(n),new Kn(t,n)}function Ae(e,t){throw x9(e,t)}function r0(e,t){e.onWarning&&e.onWarning.call(null,x9(e,t))}var Ob={YAML:function(e,t,n){var r,a,i;e.version!==null&&Ae(e,"duplication of %YAML directive"),n.length!==1&&Ae(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&Ae(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&Ae(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&r0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&Ae(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],b9.test(r)||Ae(e,"ill-formed tag handle (first argument) of the TAG directive"),Ti.call(e.tagMap,r)&&Ae(e,'there is a previously declared suffix for "'+r+'" tag handle'),y9.test(a)||Ae(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Ae(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function xi(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=pn.repeat(` +`,t-1))}function Qk(e,t,n){var r,a,i,o,s,u,l,c,m=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),or(p)||us(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),or(a)||n&&us(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),or(a)||n&&us(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),or(r))break}else{if(e.position===e.lineStart&&o0(e)||n&&us(p))break;if(xa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,sn(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(xi(e,i,o,!1),Fp(e,e.line-u),i=o=e.position,s=!1),ho(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return xi(e,i,o,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function Jk(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(xi(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else xa(n)?(xi(e,r,a,!0),Fp(e,sn(e,!1,t)),r=a=e.position):e.position===e.lineStart&&o0(e)?Ae(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Ae(e,"unexpected end of the stream within a single quoted scalar")}function Zk(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return xi(e,n,e.position,!0),e.position++,!0;if(s===92){if(xi(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),xa(s))sn(e,!1,t);else if(s<256&&v9[s])e.result+=C9[s],e.position++;else if((o=Wk(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=Vk(s))>=0?i=(i<<4)+o:Ae(e,"expected hexadecimal character");e.result+=Kk(i),e.position++}else Ae(e,"unknown escape sequence");n=r=e.position}else xa(s)?(xi(e,n,r,!0),Fp(e,sn(e,!1,t)),n=r=e.position):e.position===e.lineStart&&o0(e)?Ae(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Ae(e,"unexpected end of the stream within a double quoted scalar")}function Xk(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,m,g,p,f=Object.create(null),b,y,h,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,p=!1,s=[];else if(v===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(sn(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?v===44&&Ae(e,"expected the node content, but found ','"):Ae(e,"missed comma between flow collection entries"),y=b=h=null,m=g=!1,v===63&&(l=e.input.charCodeAt(e.position+1),or(l)&&(m=g=!0,e.position++,sn(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,cs(e,t,t0,!1,!0),y=e.tag,b=e.result,sn(e,!0,t),v=e.input.charCodeAt(e.position),(g||e.line===r)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),sn(e,!0,t),cs(e,t,t0,!1,!0),h=e.result),p?ls(e,s,f,y,b,h,r,a,i):m?s.push(ls(e,null,f,y,b,h,r,a,i)):s.push(b),sn(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}Ae(e,"unexpected end of the stream within a flow collection")}function $k(e,t){var n,r,a=Ep,i=!1,o=!1,s=t,u=0,l=!1,c,m;if(m=e.input.charCodeAt(e.position),m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)Ep===a?a=m===43?Fb:jk:Ae(e,"repeat of a chomping mode identifier");else if((c=Gk(m))>=0)c===0?Ae(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Ae(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(ho(m)){do m=e.input.charCodeAt(++e.position);while(ho(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!xa(m)&&m!==0)}for(;m!==0;){for(Ip(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),xa(m)){u++;continue}if(e.lineIndentt)&&u!==0)Ae(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(y&&(o=e.line,s=e.lineStart,u=e.position),cs(e,t,r0,!0,a)&&(y?f=e.result:h=e.result),y||(ls(e,m,g,p,f,h,o,s,u),p=f=h=null),sn(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&v!==0)Ae(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),m=0,g=e.implicitTypes.length;m"),e.result!==null&&f.kind!==e.kind&&Ae(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ae(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function iD(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(sn(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&Ae(e,"directive name must not be less than one character in length");o!==0;){for(;ho(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Sa(o));break}if(Sa(o))break;for(n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Fp(e),Si.call(Ub,r)?Ub[r](e,r,a):a0(e,'unknown document directive "'+r+'"')}if(sn(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,sn(e,!0,-1)):i&&Ae(e,"directives end mark is expected"),cs(e,e.lineIndent-1,r0,!1,!0),sn(e,!0,-1),e.checkLineBreaks&&zk.test(e.input.slice(t,e.position))&&a0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&s0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,sn(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=w9(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)Ae(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(y&&(o=e.line,s=e.lineStart,u=e.position),cs(e,t,n0,!0,a)&&(y?f=e.result:b=e.result),y||(ls(e,m,g,p,f,b,o,s,u),p=f=b=null),sn(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&v!==0)Ae(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),m=0,g=e.implicitTypes.length;m"),e.result!==null&&f.kind!==e.kind&&Ae(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ae(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function aD(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(sn(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&Ae(e,"directive name must not be less than one character in length");o!==0;){for(;ho(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!xa(o));break}if(xa(o))break;for(n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Ip(e),Ti.call(Ob,r)?Ob[r](e,r,a):r0(e,'unknown document directive "'+r+'"')}if(sn(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,sn(e,!0,-1)):i&&Ae(e,"directives end mark is expected"),cs(e,e.lineIndent-1,n0,!1,!0),sn(e,!0,-1),e.checkLineBreaks&&qk.test(e.input.slice(t,e.position))&&r0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&o0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,sn(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=T9(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function I9(e){var t=/^\n* /;return t.test(e)}var F9=1,Mp=2,B9=3,_9=4,ss=5;function BD(e,t,n,r,a,i,o,s){var u,l=0,c=null,m=!1,g=!1,p=r!==-1,f=-1,h=ID(qu(e,0))&&FD(qu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=qu(e,u),!Gu(l))return ss;h=h&&Vb(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=qu(e,u),l===Vu)m=!0,p&&(g=g||u-f-1>r&&e[f+1]!==" ",f=u);else if(!Gu(l))return ss;h=h&&Vb(l,c,s),c=l}g=g||p&&u-f-1>r&&e[f+1]!==" "}return!m&&!g?h&&!o&&!a(e)?F9:i===Wu?ss:Mp:n>9&&I9(e)?ss:o?i===Wu?ss:Mp:g?_9:B9}function _D(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Wu?'""':"''";if(!e.noCompatMode&&(AD.indexOf(t)!==-1||kD.test(t)))return e.quotingType===Wu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return RD(e,l)}switch(BD(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case F9:return t;case Mp:return"'"+t.replace(/'/g,"''")+"'";case B9:return"|"+Wb(t,e.indent)+Gb(qb(t,i));case _9:return">"+Wb(t,e.indent)+Gb(qb(OD(t,o),i));case ss:return'"'+ND(t)+'"';default:throw new Yn("impossible error: invalid scalar style")}}()}function Wb(e,t){var n=I9(e)?String(t):"",r=e[e.length-1]===` +`&&(i+=n),i+=o;return i}function Dp(e,t){return` +`+pn.repeat(" ",e.indent*t)}function PD(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function P9(e){var t=/^\n* /;return t.test(e)}var R9=1,Lp=2,I9=3,F9=4,ss=5;function FD(e,t,n,r,a,i,o,s){var u,l=0,c=null,m=!1,g=!1,p=r!==-1,f=-1,b=RD(qu(e,0))&&ID(qu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=qu(e,u),!Gu(l))return ss;b=b&&qb(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=qu(e,u),l===Vu)m=!0,p&&(g=g||u-f-1>r&&e[f+1]!==" ",f=u);else if(!Gu(l))return ss;b=b&&qb(l,c,s),c=l}g=g||p&&u-f-1>r&&e[f+1]!==" "}return!m&&!g?b&&!o&&!a(e)?R9:i===Wu?ss:Lp:n>9&&P9(e)?ss:o?i===Wu?ss:Lp:g?F9:I9}function BD(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Wu?'""':"''";if(!e.noCompatMode&&(ED.indexOf(t)!==-1||AD.test(t)))return e.quotingType===Wu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return PD(e,l)}switch(FD(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case R9:return t;case Lp:return"'"+t.replace(/'/g,"''")+"'";case I9:return"|"+zb(t,e.indent)+Vb(jb(t,i));case F9:return">"+zb(t,e.indent)+Vb(jb(_D(t,o),i));case ss:return'"'+OD(t)+'"';default:throw new Kn("impossible error: invalid scalar style")}}()}function zb(e,t){var n=P9(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function Gb(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function OD(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,Kb(e.slice(0,l),t)}(),a=e[0]===` +`}function Vb(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function _D(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,Wb(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+Kb(u,t),a=i}return r}function Kb(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+Wb(u,t),a=i}return r}function Wb(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function ND(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=qu(e,a),r=Fn[n],!r&&Gu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||LD(n);return t}function UD(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Za(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function Yb(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Za(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Lp(e,t)),e.dump&&Vu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function jD(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Za(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function HD(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,m,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Yn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,m&&(e.dump&&Vu===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,m&&(g+=Lp(e,t)),Za(e,t+1,c,!0,m)&&(e.dump&&Vu===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=i,e.dump=a||"{}"}function Qb(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Za(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Qb(e,n,!1)||Qb(e,n,!0);var s=A9.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",m,g;if(c&&(m=e.duplicates.indexOf(n),g=m!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(c&&g&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(HD(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(jD(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Yb(e,t-1,e.dump,a):Yb(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(UD(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&_D(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Yn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function qD(e,t){var n=[],r=[],a,i;for(Pp(e,n,r),a=0,i=r.length;a{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Np=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function u0(e,t){let n=ds(),r=setTimeout(()=>n.reject(new Np),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function tt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var O9=class{#e=0;#t=[];#n=[];#r=ds();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tIL,bgBlue:()=>OL,bgBrightBlack:()=>HL,bgBrightBlue:()=>WL,bgBrightCyan:()=>KL,bgBrightGreen:()=>zL,bgBrightMagenta:()=>GL,bgBrightRed:()=>qL,bgBrightWhite:()=>YL,bgBrightYellow:()=>VL,bgCyan:()=>UL,bgGreen:()=>BL,bgMagenta:()=>NL,bgRed:()=>FL,bgRgb24:()=>XL,bgRgb8:()=>JL,bgWhite:()=>jL,bgYellow:()=>_L,black:()=>bL,blue:()=>xL,bold:()=>cL,brightBlack:()=>j9,brightBlue:()=>LL,brightCyan:()=>PL,brightGreen:()=>kL,brightMagenta:()=>ML,brightRed:()=>AL,brightWhite:()=>RL,brightYellow:()=>DL,cyan:()=>TL,dim:()=>dL,getColorEnabled:()=>uL,gray:()=>EL,green:()=>vL,hidden:()=>fL,inverse:()=>pL,italic:()=>mL,magenta:()=>SL,red:()=>yL,reset:()=>lL,rgb24:()=>ZL,rgb8:()=>QL,setColorEnabled:()=>sL,strikethrough:()=>hL,stripColor:()=>eM,underline:()=>gL,white:()=>wL,yellow:()=>CL});var{Deno:N9}=globalThis,U9=typeof N9?.noColor=="boolean"?N9.noColor:!0,Up=!U9;function sL(e){U9||(Up=e)}function uL(){return Up}function Be(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function _e(e,t){return Up?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function lL(e){return _e(e,Be([0],0))}function cL(e){return _e(e,Be([1],22))}function dL(e){return _e(e,Be([2],22))}function mL(e){return _e(e,Be([3],23))}function gL(e){return _e(e,Be([4],24))}function pL(e){return _e(e,Be([7],27))}function fL(e){return _e(e,Be([8],28))}function hL(e){return _e(e,Be([9],29))}function bL(e){return _e(e,Be([30],39))}function yL(e){return _e(e,Be([31],39))}function vL(e){return _e(e,Be([32],39))}function CL(e){return _e(e,Be([33],39))}function xL(e){return _e(e,Be([34],39))}function SL(e){return _e(e,Be([35],39))}function TL(e){return _e(e,Be([36],39))}function wL(e){return _e(e,Be([37],39))}function EL(e){return j9(e)}function j9(e){return _e(e,Be([90],39))}function AL(e){return _e(e,Be([91],39))}function kL(e){return _e(e,Be([92],39))}function DL(e){return _e(e,Be([93],39))}function LL(e){return _e(e,Be([94],39))}function ML(e){return _e(e,Be([95],39))}function PL(e){return _e(e,Be([96],39))}function RL(e){return _e(e,Be([97],39))}function IL(e){return _e(e,Be([40],49))}function FL(e){return _e(e,Be([41],49))}function BL(e){return _e(e,Be([42],49))}function _L(e){return _e(e,Be([43],49))}function OL(e){return _e(e,Be([44],49))}function NL(e){return _e(e,Be([45],49))}function UL(e){return _e(e,Be([46],49))}function jL(e){return _e(e,Be([47],49))}function HL(e){return _e(e,Be([100],49))}function qL(e){return _e(e,Be([101],49))}function zL(e){return _e(e,Be([102],49))}function VL(e){return _e(e,Be([103],49))}function WL(e){return _e(e,Be([104],49))}function GL(e){return _e(e,Be([105],49))}function KL(e){return _e(e,Be([106],49))}function YL(e){return _e(e,Be([107],49))}function Ti(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function QL(e,t){return _e(e,Be([38,5,Ti(t)],39))}function JL(e,t){return _e(e,Be([48,5,Ti(t)],49))}function ZL(e,t){return typeof t=="number"?_e(e,Be([38,2,t>>16&255,t>>8&255,t&255],39)):_e(e,Be([38,2,Ti(t.r),Ti(t.g),Ti(t.b)],39))}function XL(e,t){return typeof t=="number"?_e(e,Be([48,2,t>>16&255,t>>8&255,t&255],49)):_e(e,Be([48,2,Ti(t.r),Ti(t.g),Ti(t.b)],49))}var $L=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function eM(e){return e.replace($L,"")}var jp=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},tM={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Hp(e,t){let n={...tM,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new jp(a,n.maxAttempts)}var Xa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function qp(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=Xa[(t[r-2]&3)<<4|t[r-1]>>4],n+=Xa[(t[r-1]&15)<<2|t[r]>>6],n+=Xa[t[r]&63];return r===a+1&&(n+=Xa[t[r-2]>>2],n+=Xa[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=Xa[t[r-2]>>2],n+=Xa[(t[r-2]&3)<<4|t[r-1]>>4],n+=Xa[(t[r-1]&15)<<2],n+="="),n}var nM=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,rM=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,aM=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,zp={Space_Separator:nM,ID_Start:rM,ID_Continue:aM},$t={isSpaceSeparator(e){return typeof e=="string"&&zp.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||zp.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||zp.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Wp,Qn,ei,c0,wi,qr,vn,Yp,Qu,iM=function(e,t){Wp=String(e),Qn="start",ei=[],c0=0,wi=1,qr=0,vn=void 0,Yp=void 0,Qu=void 0;do vn=oM(),lM[Qn]();while(vn.type!=="eof");return typeof t=="function"?Gp({"":Qu},"",t):Qu};function Gp(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ti();if(!$t.isHexDigit(n))throw Ft(G());e+=G()}return String.fromCodePoint(parseInt(e,16))}var lM={start(){if(vn.type==="eof")throw yo();Vp()},beforePropertyName(){switch(vn.type){case"identifier":case"string":Yp=vn.value,Qn="afterPropertyName";return;case"punctuator":l0();return;case"eof":throw yo()}},afterPropertyName(){if(vn.type==="eof")throw yo();Qn="beforePropertyValue"},beforePropertyValue(){if(vn.type==="eof")throw yo();Vp()},beforeArrayValue(){if(vn.type==="eof")throw yo();if(vn.type==="punctuator"&&vn.value==="]"){l0();return}Vp()},afterPropertyValue(){if(vn.type==="eof")throw yo();switch(vn.value){case",":Qn="beforePropertyName";return;case"}":l0()}},afterArrayValue(){if(vn.type==="eof")throw yo();switch(vn.value){case",":Qn="beforeArrayValue";return;case"]":l0()}},end(){}};function Vp(){let e;switch(vn.type){case"punctuator":switch(vn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=vn.value;break}if(Qu===void 0)Qu=e;else{let t=ei[ei.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Yp,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ei.push(e),Array.isArray(e)?Qn="beforeArrayValue":Qn="beforePropertyName";else{let t=ei[ei.length-1];t==null?Qn="end":Array.isArray(t)?Qn="afterArrayValue":Qn="afterPropertyValue"}}function l0(){ei.pop();let e=ei[ei.length-1];e==null?Qn="end":Array.isArray(e)?Qn="afterArrayValue":Qn="afterPropertyValue"}function Ft(e){return Qp(e===void 0?`JSON5: invalid end of input at ${wi}:${qr}`:`JSON5: invalid character '${cM(e)}' at ${wi}:${qr}`)}function yo(){return Qp(`JSON5: invalid end of input at ${wi}:${qr}`)}function H9(){return qr-=5,Qp(`JSON5: invalid identifier character at ${wi}:${qr}`)}function cM(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Qp(e){let t=new SyntaxError(e);return t.lineNumber=wi,t.columnNumber=qr,t}var dM=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let f of t){let h;typeof f=="string"?h=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(h=String(f)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(f,h){let y=h[f];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(f):typeof y.toJSON=="function"&&(y=y.toJSON(f))),o&&(y=o.call(h,f,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return c(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?p(y):m(y)}function c(f){let h={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},b="";for(let C=0;Ch[C]=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let h=a;a=a+s;let y=i||Object.keys(f),b=[];for(let C of y){let x=l(C,f);if(x!==void 0){let w=g(C)+":";s!==""&&(w+=" "),w+=x,b.push(w)}}let v;if(b.length===0)v="{}";else{let C;if(s==="")C=b.join(","),v="{"+C+"}";else{let x=`, -`+a;C=b.join(x),v=`{ +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function OD(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=qu(e,a),r=Fn[n],!r&&Gu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||DD(n);return t}function ND(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Ja(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function Gb(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Ja(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Dp(e,t)),e.dump&&Vu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function UD(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ja(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function jD(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,m,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Kn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,m&&(e.dump&&Vu===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,m&&(g+=Dp(e,t)),Ja(e,t+1,c,!0,m)&&(e.dump&&Vu===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=i,e.dump=a||"{}"}function Kb(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ja(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Kb(e,n,!1)||Kb(e,n,!0);var s=w9.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",m,g;if(c&&(m=e.duplicates.indexOf(n),g=m!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(c&&g&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(jD(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(UD(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Gb(e,t-1,e.dump,a):Gb(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(ND(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&BD(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Kn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function HD(e,t){var n=[],r=[],a,i;for(Mp(e,n,r),a=0,i=r.length;a{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Op=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function s0(e,t){let n=ds(),r=setTimeout(()=>n.reject(new Op),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function tt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var B9=class{#e=0;#t=[];#n=[];#r=ds();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tRL,bgBlue:()=>_L,bgBrightBlack:()=>jL,bgBrightBlue:()=>VL,bgBrightCyan:()=>GL,bgBrightGreen:()=>qL,bgBrightMagenta:()=>WL,bgBrightRed:()=>HL,bgBrightWhite:()=>KL,bgBrightYellow:()=>zL,bgCyan:()=>NL,bgGreen:()=>FL,bgMagenta:()=>OL,bgRed:()=>IL,bgRgb24:()=>ZL,bgRgb8:()=>QL,bgWhite:()=>UL,bgYellow:()=>BL,black:()=>hL,blue:()=>CL,bold:()=>lL,brightBlack:()=>N9,brightBlue:()=>DL,brightCyan:()=>ML,brightGreen:()=>AL,brightMagenta:()=>LL,brightRed:()=>EL,brightWhite:()=>PL,brightYellow:()=>kL,cyan:()=>TL,dim:()=>cL,getColorEnabled:()=>sL,gray:()=>wL,green:()=>yL,hidden:()=>pL,inverse:()=>gL,italic:()=>dL,magenta:()=>xL,red:()=>bL,reset:()=>uL,rgb24:()=>JL,rgb8:()=>YL,setColorEnabled:()=>oL,strikethrough:()=>fL,stripColor:()=>$L,underline:()=>mL,white:()=>SL,yellow:()=>vL});var{Deno:_9}=globalThis,O9=typeof _9?.noColor=="boolean"?_9.noColor:!0,Np=!O9;function oL(e){O9||(Np=e)}function sL(){return Np}function _e(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Oe(e,t){return Np?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function uL(e){return Oe(e,_e([0],0))}function lL(e){return Oe(e,_e([1],22))}function cL(e){return Oe(e,_e([2],22))}function dL(e){return Oe(e,_e([3],23))}function mL(e){return Oe(e,_e([4],24))}function gL(e){return Oe(e,_e([7],27))}function pL(e){return Oe(e,_e([8],28))}function fL(e){return Oe(e,_e([9],29))}function hL(e){return Oe(e,_e([30],39))}function bL(e){return Oe(e,_e([31],39))}function yL(e){return Oe(e,_e([32],39))}function vL(e){return Oe(e,_e([33],39))}function CL(e){return Oe(e,_e([34],39))}function xL(e){return Oe(e,_e([35],39))}function TL(e){return Oe(e,_e([36],39))}function SL(e){return Oe(e,_e([37],39))}function wL(e){return N9(e)}function N9(e){return Oe(e,_e([90],39))}function EL(e){return Oe(e,_e([91],39))}function AL(e){return Oe(e,_e([92],39))}function kL(e){return Oe(e,_e([93],39))}function DL(e){return Oe(e,_e([94],39))}function LL(e){return Oe(e,_e([95],39))}function ML(e){return Oe(e,_e([96],39))}function PL(e){return Oe(e,_e([97],39))}function RL(e){return Oe(e,_e([40],49))}function IL(e){return Oe(e,_e([41],49))}function FL(e){return Oe(e,_e([42],49))}function BL(e){return Oe(e,_e([43],49))}function _L(e){return Oe(e,_e([44],49))}function OL(e){return Oe(e,_e([45],49))}function NL(e){return Oe(e,_e([46],49))}function UL(e){return Oe(e,_e([47],49))}function jL(e){return Oe(e,_e([100],49))}function HL(e){return Oe(e,_e([101],49))}function qL(e){return Oe(e,_e([102],49))}function zL(e){return Oe(e,_e([103],49))}function VL(e){return Oe(e,_e([104],49))}function WL(e){return Oe(e,_e([105],49))}function GL(e){return Oe(e,_e([106],49))}function KL(e){return Oe(e,_e([107],49))}function Si(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function YL(e,t){return Oe(e,_e([38,5,Si(t)],39))}function QL(e,t){return Oe(e,_e([48,5,Si(t)],49))}function JL(e,t){return typeof t=="number"?Oe(e,_e([38,2,t>>16&255,t>>8&255,t&255],39)):Oe(e,_e([38,2,Si(t.r),Si(t.g),Si(t.b)],39))}function ZL(e,t){return typeof t=="number"?Oe(e,_e([48,2,t>>16&255,t>>8&255,t&255],49)):Oe(e,_e([48,2,Si(t.r),Si(t.g),Si(t.b)],49))}var XL=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function $L(e){return e.replace(XL,"")}var Up=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},eM={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function jp(e,t){let n={...eM,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Up(a,n.maxAttempts)}var Za=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Hp(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=Za[(t[r-2]&3)<<4|t[r-1]>>4],n+=Za[(t[r-1]&15)<<2|t[r]>>6],n+=Za[t[r]&63];return r===a+1&&(n+=Za[t[r-2]>>2],n+=Za[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=Za[t[r-2]>>2],n+=Za[(t[r-2]&3)<<4|t[r-1]>>4],n+=Za[(t[r-1]&15)<<2],n+="="),n}var tM=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,nM=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,rM=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,qp={Space_Separator:tM,ID_Start:nM,ID_Continue:rM},$t={isSpaceSeparator(e){return typeof e=="string"&&qp.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||qp.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||qp.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Vp,Yn,$a,l0,wi,Hr,vn,Kp,Qu,aM=function(e,t){Vp=String(e),Yn="start",$a=[],l0=0,wi=1,Hr=0,vn=void 0,Kp=void 0,Qu=void 0;do vn=iM(),uM[Yn]();while(vn.type!=="eof");return typeof t=="function"?Wp({"":Qu},"",t):Qu};function Wp(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ei();if(!$t.isHexDigit(n))throw Ft(G());e+=G()}return String.fromCodePoint(parseInt(e,16))}var uM={start(){if(vn.type==="eof")throw yo();zp()},beforePropertyName(){switch(vn.type){case"identifier":case"string":Kp=vn.value,Yn="afterPropertyName";return;case"punctuator":u0();return;case"eof":throw yo()}},afterPropertyName(){if(vn.type==="eof")throw yo();Yn="beforePropertyValue"},beforePropertyValue(){if(vn.type==="eof")throw yo();zp()},beforeArrayValue(){if(vn.type==="eof")throw yo();if(vn.type==="punctuator"&&vn.value==="]"){u0();return}zp()},afterPropertyValue(){if(vn.type==="eof")throw yo();switch(vn.value){case",":Yn="beforePropertyName";return;case"}":u0()}},afterArrayValue(){if(vn.type==="eof")throw yo();switch(vn.value){case",":Yn="beforeArrayValue";return;case"]":u0()}},end(){}};function zp(){let e;switch(vn.type){case"punctuator":switch(vn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=vn.value;break}if(Qu===void 0)Qu=e;else{let t=$a[$a.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Kp,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")$a.push(e),Array.isArray(e)?Yn="beforeArrayValue":Yn="beforePropertyName";else{let t=$a[$a.length-1];t==null?Yn="end":Array.isArray(t)?Yn="afterArrayValue":Yn="afterPropertyValue"}}function u0(){$a.pop();let e=$a[$a.length-1];e==null?Yn="end":Array.isArray(e)?Yn="afterArrayValue":Yn="afterPropertyValue"}function Ft(e){return Yp(e===void 0?`JSON5: invalid end of input at ${wi}:${Hr}`:`JSON5: invalid character '${lM(e)}' at ${wi}:${Hr}`)}function yo(){return Yp(`JSON5: invalid end of input at ${wi}:${Hr}`)}function U9(){return Hr-=5,Yp(`JSON5: invalid identifier character at ${wi}:${Hr}`)}function lM(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Yp(e){let t=new SyntaxError(e);return t.lineNumber=wi,t.columnNumber=Hr,t}var cM=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let f of t){let b;typeof f=="string"?b=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(b=String(f)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(f,b){let y=b[f];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(f):typeof y.toJSON=="function"&&(y=y.toJSON(f))),o&&(y=o.call(b,f,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return c(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?p(y):m(y)}function c(f){let b={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},h="";for(let C=0;Cb[C]=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=i||Object.keys(f),h=[];for(let C of y){let x=l(C,f);if(x!==void 0){let w=g(C)+":";s!==""&&(w+=" "),w+=x,h.push(w)}}let v;if(h.length===0)v="{}";else{let C;if(s==="")C=h.join(","),v="{"+C+"}";else{let x=`, +`+a;C=h.join(x),v=`{ `+a+C+`, -`+h+"}"}}return r.pop(),a=h,v}function g(f){if(f.length===0)return c(f,!0);let h=String.fromCodePoint(f.codePointAt(0));if(!$t.isIdStartChar(h))return c(f,!0);for(let y=h.length;y=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let h=a;a=a+s;let y=[];for(let v=0;v=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=[];for(let v=0;v()=>(t||e((t={exports:{}}).exports,t),t.exports),SM=(e,t)=>{for(var n in t)Zp(e,n,{get:t[n],enumerable:!0})},Jp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yM(t))!CM.call(e,a)&&a!==n&&Zp(e,a,{get:()=>t[a],enumerable:!(r=bM(t,a))||r.enumerable});return e},TM=(e,t,n)=>(Jp(e,t,"default"),n&&Jp(n,t,"default")),W9=(e,t,n)=>(n=e!=null?hM(vM(e)):{},Jp(t||!e||!e.__esModule?Zp(n,"default",{value:e,enumerable:!0}):n,e)),G9=xM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof m0=="object"&&m0&&m0.Object===Object&&m0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,h=Math.max,y=Math.min,b=function(){return g.Date.now()};function v(A,D,M){var I,P,R,L,_,U,z=0,Y=!1,ee=!1,Re=!0;if(typeof A!="function")throw new TypeError(n);D=T(D)||0,x(M)&&(Y=!!M.leading,ee="maxWait"in M,R=ee?h(T(M.maxWait)||0,D):R,Re="trailing"in M?!!M.trailing:Re);function xe(he){var pe=I,ke=P;return I=P=void 0,z=he,L=A.apply(ke,pe),L}function H(he){return z=he,_=setTimeout(Me,D),Y?xe(he):L}function W(he){var pe=he-U,ke=he-z,Ve=D-pe;return ee?y(Ve,R-ke):Ve}function te(he){var pe=he-U,ke=he-z;return U===void 0||pe>=D||pe<0||ee&&ke>=R}function Me(){var he=b();if(te(he))return ve(he);_=setTimeout(Me,W(he))}function ve(he){return _=void 0,Re&&I?xe(he):(I=P=void 0,L)}function $e(){_!==void 0&&clearTimeout(_),z=0,I=U=P=_=void 0}function Z(){return _===void 0?L:ve(b())}function ce(){var he=b(),pe=te(he);if(I=arguments,P=this,U=he,pe){if(_===void 0)return H(U);if(ee)return _=setTimeout(Me,D),xe(U)}return _===void 0&&(_=setTimeout(Me,D)),L}return ce.cancel=$e,ce.flush=Z,ce}function C(A,D,M){var I=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return x(M)&&(I="leading"in M?!!M.leading:I,P="trailing"in M?!!M.trailing:P),v(A,D,{leading:I,maxWait:D,trailing:P})}function x(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function w(A){return!!A&&typeof A=="object"}function S(A){return typeof A=="symbol"||w(A)&&f.call(A)==a}function T(A){if(typeof A=="number")return A;if(S(A))return r;if(x(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=x(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=C}),K9={};SM(K9,{default:()=>yr});var wM=W9(G9());TM(K9,W9(G9()));var{default:V9,...EM}=wM,yr=V9!==void 0?V9:EM;var g0=globalThis||(typeof window<"u"?window:self),AM=Object.create,$p=Object.defineProperty,kM=Object.getOwnPropertyDescriptor,DM=Object.getOwnPropertyNames,LM=Object.getPrototypeOf,MM=Object.prototype.hasOwnProperty,PM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),RM=(e,t)=>{for(var n in t)$p(e,n,{get:t[n],enumerable:!0})},Xp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of DM(t))!MM.call(e,a)&&a!==n&&$p(e,a,{get:()=>t[a],enumerable:!(r=kM(t,a))||r.enumerable});return e},IM=(e,t,n)=>(Xp(e,t,"default"),n&&Xp(n,t,"default")),Q9=(e,t,n)=>(n=e!=null?AM(LM(e)):{},Xp(t||!e||!e.__esModule?$p(n,"default",{value:e,enumerable:!0}):n,e)),J9=PM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof g0=="object"&&g0&&g0.Object===Object&&g0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,h=Math.max,y=Math.min,b=function(){return g.Date.now()};function v(T,A,D){var M,I,P,R,L,_,U=0,z=!1,Y=!1,ee=!0;if(typeof T!="function")throw new TypeError(n);A=S(A)||0,C(D)&&(z=!!D.leading,Y="maxWait"in D,P=Y?h(S(D.maxWait)||0,A):P,ee="trailing"in D?!!D.trailing:ee);function Re(ce){var he=M,pe=I;return M=I=void 0,U=ce,R=T.apply(pe,he),R}function xe(ce){return U=ce,L=setTimeout(te,A),z?Re(ce):R}function H(ce){var he=ce-_,pe=ce-U,ke=A-he;return Y?y(ke,P-pe):ke}function W(ce){var he=ce-_,pe=ce-U;return _===void 0||he>=A||he<0||Y&&pe>=P}function te(){var ce=b();if(W(ce))return Me(ce);L=setTimeout(te,H(ce))}function Me(ce){return L=void 0,ee&&M?Re(ce):(M=I=void 0,R)}function ve(){L!==void 0&&clearTimeout(L),U=0,M=_=I=L=void 0}function $e(){return L===void 0?R:Me(b())}function Z(){var ce=b(),he=W(ce);if(M=arguments,I=this,_=ce,he){if(L===void 0)return xe(_);if(Y)return L=setTimeout(te,A),Re(_)}return L===void 0&&(L=setTimeout(te,A)),R}return Z.cancel=ve,Z.flush=$e,Z}function C(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function x(T){return!!T&&typeof T=="object"}function w(T){return typeof T=="symbol"||x(T)&&f.call(T)==a}function S(T){if(typeof T=="number")return T;if(w(T))return r;if(C(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=C(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(i,"");var D=s.test(T);return D||u.test(T)?l(T.slice(2),D?2:8):o.test(T)?r:+T}t.exports=v}),Z9={};RM(Z9,{default:()=>Bn});var FM=Q9(J9());IM(Z9,Q9(J9()));var{default:Y9,...BM}=FM,Bn=Y9!==void 0?Y9:BM;var _M=Object.create,tf=Object.defineProperty,OM=Object.getOwnPropertyDescriptor,NM=Object.getOwnPropertyNames,UM=Object.getPrototypeOf,jM=Object.prototype.hasOwnProperty,HM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qM=(e,t)=>{for(var n in t)tf(e,n,{get:t[n],enumerable:!0})},ef=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of NM(t))!jM.call(e,a)&&a!==n&&tf(e,a,{get:()=>t[a],enumerable:!(r=OM(t,a))||r.enumerable});return e},zM=(e,t,n)=>(ef(e,t,"default"),n&&ef(n,t,"default")),$9=(e,t,n)=>(n=e!=null?_M(UM(e)):{},ef(t||!e||!e.__esModule?tf(n,"default",{value:e,enumerable:!0}):n,e)),e6=HM((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,m){l(r)==="object"&&l(i)==="object"?i.exports=m():(s=[],o=m,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function m(p){if(g[p])return g[p].exports;var f=g[p]={i:p,l:!1,exports:{}};return c[p].call(f.exports,f,f.exports,m),f.l=!0,f.exports}var g={};return m.m=c,m.c=g,m.i=function(p){return p},m.d=function(p,f,h){m.o(p,f)||Object.defineProperty(p,f,{configurable:!1,enumerable:!0,get:h})},m.n=function(p){var f=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(f,"a",f),f},m.o=function(p,f){return Object.prototype.hasOwnProperty.call(p,f)},m.p="",m(m.s=0)}([function(c,m,g){function p(H,W){var te={};for(var Me in H)W.indexOf(Me)>=0||Object.prototype.hasOwnProperty.call(H,Me)&&(te[Me]=H[Me]);return te}Object.defineProperty(m,"__esModule",{value:!0});var f=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":l(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":l(H)},h=Object.assign||function(H){for(var W=1;W'+Me+"
",ke.onclick=function(){return P(Ve,pe)},ke.listener=function(J){(D(J)||M(J))&&_()},I(ke,pe),$e&&$e<1&&($e=1),!ce&&$e&&x($e).then(function(){return P(Ve,pe)})},z=m.force=function(H,W){var te=H.type,Me=te===void 0?5:te,ve=H.text,$e=H.buttonText,Z=$e===void 0?"OK":$e,ce=H.callback,he=H.position,pe=he===void 0?b.positions.force||pe.top:he;w(),_();var ke=document.createElement("div"),Ve=S();ke.id=Ve;var J=document.createElement("div");J.classList.add(b.classes.textbox),J.classList.add(b.classes.backgroundInfo),J.innerHTML='
'+ve+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(T[Me]),Ee.innerHTML=Z,Ee.onclick=function(){P(Ve,pe),L(),ce?ce():W&&W()},ke.appendChild(J),ke.appendChild(Ee),ke.listener=function(Ct){D(Ct)&&Ee.click()},I(ke,pe),R()},Y=m.confirm=function(H,W,te){var Me=H.text,ve=H.submitText,$e=ve===void 0?"Yes":ve,Z=H.cancelText,ce=Z===void 0?"Cancel":Z,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,Ve=ke===void 0?b.positions.confirm||Ve.top:ke;w(),_();var J=document.createElement("div"),Ee=S();J.id=Ee;var Ct=document.createElement("div");Ct.classList.add(b.classes.textbox),Ct.classList.add(b.classes.backgroundInfo),Ct.innerHTML='
'+Me+"
";var ut=document.createElement("div");ut.classList.add(b.classes.button),ut.classList.add(b.classes.elementHalf),ut.classList.add(b.classes.backgroundSuccess),ut.innerHTML=$e,ut.onclick=function(){P(Ee,Ve),L(),he?he():W&&W()};var De=document.createElement("div");De.classList.add(b.classes.button),De.classList.add(b.classes.elementHalf),De.classList.add(b.classes.backgroundError),De.innerHTML=ce,De.onclick=function(){P(Ee,Ve),L(),pe?pe():te&&te()},J.appendChild(Ct),J.appendChild(ut),J.appendChild(De),J.listener=function(Nt){D(Nt)?ut.click():M(Nt)&&De.click()},I(J,Ve),R(J,Ve)},ee=function(H,W,te){var Me=H.text,ve=H.submitText,$e=ve===void 0?"Submit":ve,Z=H.cancelText,ce=Z===void 0?"Cancel":Z,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,Ve=ke===void 0?b.positions.input||Ve.top:ke,J=p(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var Ee=document.createElement("div"),Ct=S();Ee.id=Ct;var ut=document.createElement("div");ut.classList.add(b.classes.textbox),ut.classList.add(b.classes.backgroundInfo),ut.innerHTML='
'+Me+"
";var De=document.createElement("input");De.classList.add(b.classes.inputField),De.setAttribute("autocapitalize",J.autocapitalize||"none"),De.setAttribute("autocomplete",J.autocomplete||"off"),De.setAttribute("autocorrect",J.autocorrect||"off"),De.setAttribute("autofocus",J.autofocus||"true"),De.setAttribute("inputmode",J.inputmode||"verbatim"),De.setAttribute("max",J.max||""),De.setAttribute("maxlength",J.maxlength||""),De.setAttribute("min",J.min||""),De.setAttribute("minlength",J.minlength||""),De.setAttribute("placeholder",J.placeholder||""),De.setAttribute("spellcheck",J.spellcheck||"default"),De.setAttribute("step",J.step||"any"),De.setAttribute("type",J.type||"text"),De.value=J.value||"",J.allowed&&(De.oninput=function(){var Wt=void 0;if(Array.isArray(J.allowed)){for(var Xt="",Wn=J.allowed,Dr=0;Dr'+te+"
",pe.appendChild(Ve),Z.forEach(function(Ee,Ct){var ut=Ee.type,De=ut===void 0?1:ut,Nt=Ee.text,dn=Ee.handler,Wt=document.createElement("div");Wt.classList.add(T[De]),Wt.classList.add(b.classes.button),Wt.classList.add(b.classes.selectChoice);var Xt=Z[Ct+1];Xt&&!Xt.type&&(Xt.type=1),Xt&&Xt.type===De&&Wt.classList.add(b.classes.selectChoiceRepeated),Wt.innerHTML=Nt,Wt.onclick=function(){P(ke,he),L(),dn()},pe.appendChild(Wt)});var J=document.createElement("div");J.classList.add(b.classes.backgroundNeutral),J.classList.add(b.classes.button),J.innerHTML=ve,J.onclick=function(){P(ke,he),L(),$e?$e():W&&W()},pe.appendChild(J),pe.listener=function(Ee){M(Ee)&&J.click()},I(pe,he),R(pe,he)},xe=m.date=function(H,W,te){var Me=H.value,ve=Me===void 0?new Date:Me,$e=H.submitText,Z=$e===void 0?"OK":$e,ce=H.cancelText,he=ce===void 0?"Cancel":ce,pe=H.submitCallback,ke=H.cancelCallback,Ve=H.position,J=Ve===void 0?b.positions.date||J.top:Ve;w(),_();var Ee="▾",Ct=document.createElement("div"),ut=document.createElement("div"),De=document.createElement("div"),Nt=function(Ut){Ct.innerHTML=b.dateMonths[Ut.getMonth()],ut.innerHTML=Ut.getDate(),De.innerHTML=Ut.getFullYear()},dn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+1,0).getDate(),hr=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(hr)>xt&&(hr=xt.toString()),Ut.target.textContent=hr,Number(hr)<1&&(hr="1"),ve.setDate(Number(hr))},Wt=function(Ut){var xt=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ut.target.textContent=xt,ve.setFullYear(Number(xt))},Xt=function(Ut){Nt(ve)},Wn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+Ut+1,0).getDate();ve.getDate()>xt&&ve.setDate(xt),ve.setMonth(ve.getMonth()+Ut),Nt(ve)},Dr=function(Ut){ve.setDate(ve.getDate()+Ut),Nt(ve)},Pu=function(Ut){var xt=ve.getFullYear()+Ut;xt<0?ve.setFullYear(0):ve.setFullYear(ve.getFullYear()+Ut),Nt(ve)},va=document.createElement("div"),uo=S();va.id=uo;var Xo=document.createElement("div");Xo.classList.add(b.classes.backgroundInfo);var Rn=document.createElement("div");Rn.classList.add(b.classes.dateSelectorInner);var jr=document.createElement("div");jr.classList.add(b.classes.button),jr.classList.add(b.classes.elementThird),jr.classList.add(b.classes.dateSelectorUp),jr.innerHTML=Ee;var In=document.createElement("div");In.classList.add(b.classes.button),In.classList.add(b.classes.elementThird),In.classList.add(b.classes.dateSelectorUp),In.innerHTML=Ee;var fr=document.createElement("div");fr.classList.add(b.classes.button),fr.classList.add(b.classes.elementThird),fr.classList.add(b.classes.dateSelectorUp),fr.innerHTML=Ee,Ct.classList.add(b.classes.element),Ct.classList.add(b.classes.elementThird),Ct.innerHTML=b.dateMonths[ve.getMonth()],ut.classList.add(b.classes.element),ut.classList.add(b.classes.elementThird),ut.setAttribute("contentEditable",!0),ut.addEventListener("input",dn),ut.addEventListener("blur",Xt),ut.innerHTML=ve.getDate(),De.classList.add(b.classes.element),De.classList.add(b.classes.elementThird),De.setAttribute("contentEditable",!0),De.addEventListener("input",Wt),De.addEventListener("blur",Xt),De.innerHTML=ve.getFullYear();var Ga=document.createElement("div");Ga.classList.add(b.classes.button),Ga.classList.add(b.classes.elementThird),Ga.innerHTML=Ee;var Ka=document.createElement("div");Ka.classList.add(b.classes.button),Ka.classList.add(b.classes.elementThird),Ka.innerHTML=Ee;var lo=document.createElement("div");lo.classList.add(b.classes.button),lo.classList.add(b.classes.elementThird),lo.innerHTML=Ee,jr.onclick=function(){return Wn(1)},In.onclick=function(){return Dr(1)},fr.onclick=function(){return Pu(1)},Ga.onclick=function(){return Wn(-1)},Ka.onclick=function(){return Dr(-1)},lo.onclick=function(){return Pu(-1)};var Gn=document.createElement("div");Gn.classList.add(b.classes.button),Gn.classList.add(b.classes.elementHalf),Gn.classList.add(b.classes.backgroundSuccess),Gn.innerHTML=Z,Gn.onclick=function(){P(uo,J),L(),pe?pe(ve):W&&W(ve)};var Ya=document.createElement("div");Ya.classList.add(b.classes.button),Ya.classList.add(b.classes.elementHalf),Ya.classList.add(b.classes.backgroundError),Ya.innerHTML=he,Ya.onclick=function(){P(uo,J),L(),ke?ke(ve):te&&te(ve)},Rn.appendChild(jr),Rn.appendChild(In),Rn.appendChild(fr),Rn.appendChild(Ct),Rn.appendChild(ut),Rn.appendChild(De),Rn.appendChild(Ga),Rn.appendChild(Ka),Rn.appendChild(lo),Xo.appendChild(Rn),va.appendChild(Xo),va.appendChild(Gn),va.appendChild(Ya),va.listener=function(Ut){D(Ut)?Gn.click():M(Ut)&&Ya.click()},I(va,J),R(va,J)};m.default={alert:U,force:z,confirm:Y,input:ee,select:Re,date:xe,setOptions:v,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),t6={};qM(t6,{default:()=>p0});var VM=$9(e6());zM(t6,$9(e6()));var{default:X9,...WM}=VM,p0=X9!==void 0?X9:WM;var f0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ju(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function nf(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function n6(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ims[e.toLowerCase()]||Vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),KM=e=>Object.keys(ms).find(t=>ms[t]===e),YM=e=>Object.keys(Vr).find(t=>Vr[t]===e);function u6(e){o6=e||"all"}function Zu(){return o6||"all"}function QM(){return Et.slice(0)}function JM(){return Et.map(e=>KM(e)||YM(e)||String.fromCharCode(e))}function ZM(){let e=[];return Object.keys(jt).forEach(t=>{jt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Xu(o))})})}),e}function XM(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function $M(e){return typeof e=="string"&&(e=Xu(e)),Et.indexOf(e)!==-1}function eP(e,t){let n,r;e||(e=Zu());for(let a in jt)if(Object.prototype.hasOwnProperty.call(jt,a))for(n=jt[a],r=0;r=0&&Et.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Et.splice(0,Et.length),(t===93||t===224)&&(t=91),t in Cn){Cn[t]=!1;for(let r in Vr)Vr[r]===t&&(ni[r]=!1)}}function l6(e,...t){if(typeof e>"u")Object.keys(jt).forEach(n=>delete jt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&af(n)});else if(typeof e=="object")e.key&&af(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),af({key:e,scope:n,method:r,splitKey:"+"})}}var af=({key:e,scope:t,method:n,splitKey:r="+"})=>{rf(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Xu(u);if(!jt[l])return;t||(t=Zu());let c=s>1?nf(Vr,o):[];jt[l]=jt[l].filter(m=>!((n?m.method===n:!0)&&m.scope===t&&n6(m.mods,c)))})};function a6(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in Cn)Object.prototype.hasOwnProperty.call(Cn,i)&&(!Cn[i]&&t.mods.indexOf(+i)>-1||Cn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!Cn[16]&&!Cn[18]&&!Cn[17]&&!Cn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Et),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function i6(e,t){let n=jt["*"],r=e.keyCode||e.which||e.charCode;if(!ni.filter.call(this,e))return;if((r===93||r===224)&&(r=91),Et.indexOf(r)===-1&&r!==229&&Et.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=h0[i];e[i]&&Et.indexOf(o)===-1?Et.push(o):!e[i]&&Et.indexOf(o)>-1?Et.splice(Et.indexOf(o),1):i==="metaKey"&&e[i]&&Et.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Et=Et.slice(Et.indexOf(o))))}),r in Cn){Cn[r]=!0;for(let i in Vr)Vr[i]===r&&(ni[i]=!0);if(!n)return}for(let i in Cn)Object.prototype.hasOwnProperty.call(Cn,i)&&(Cn[i]=e[h0[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Et.indexOf(17)===-1&&Et.push(17),Et.indexOf(18)===-1&&Et.push(18),Cn[17]=!0,Cn[18]=!0);let a=Zu();if(n)for(let i=0;i-1}function ni(e,t,n){Et=[];let r=rf(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",m=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&l6(e,i);s1&&(a=nf(Vr,e)),e=e[e.length-1],e=e==="*"?"*":Xu(e),e in jt||(jt[e]=[]),jt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!nP(o)&&window&&(s6.push(o),Ju(o,"keydown",p=>{i6(p,o)},m),r6||(r6=!0,Ju(window,"focus",()=>{Et=[]},m),Ju(window,"click",()=>{Et=[]},!1)),Ju(o,"keyup",p=>{i6(p,o),tP(p)},m))}function rP(e,t="all"){Object.keys(jt).forEach(n=>{jt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var of={getPressedKeyString:JM,setScope:u6,getScope:Zu,deleteScope:eP,getPressedKeyCodes:QM,getAllKeyCodes:ZM,isPressed:$M,filter:XM,trigger:rP,unbind:l6,keyMap:ms,modifier:Vr,modifierMap:h0};for(let e in of)Object.prototype.hasOwnProperty.call(of,e)&&(ni[e]=of[e]);if(typeof window<"u"){let e=window.hotkeys;ni.noConflict=t=>(t&&window.hotkeys===ni&&(window.hotkeys=e),ni),window.hotkeys=ni}var Kt=ni;var aP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},d6={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},en={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Jn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ei={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=K.getVersionPrecision(e),a=K.getVersionPrecision(t),i=Math.max(r,a),o=0,s=K.map([e,t],u=>{let l=i-K.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return K.map(c.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return aP[e]}static getBrowserTypeByAlias(e){return d6[e]||""}},At=/version\/(\d+(\.?_?\d+)+)/i,iP=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(r,e),version:K.getSecondMatch(r,e)}}}],oP=iP,sP=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Jn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Jn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:Jn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Jn.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),r={name:Jn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Jn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),r={name:Jn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Jn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:Jn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Jn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Jn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Jn.Linux}}},{test:[/CrOS/],describe(){return{name:Jn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Jn.PlayStation4,version:t}}}],uP=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:en.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:en.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:en.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:en.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:en.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:en.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:en.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:en.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:en.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:en.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:en.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:en.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:en.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:en.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:en.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:en.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:en.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:en.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:en.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:en.tv}}}],lP=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ei.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ei.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ei.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ei.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ei.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ei.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ei.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],cP=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(oP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(sP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(uP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(lP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=K.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=K.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=K.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=K.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(K.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},c6=cP,dP=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new c6(e,t)}static parse(e){return new c6(e).getResult()}static get BROWSER_MAP(){return d6}static get ENGINE_MAP(){return Ei}static get OS_MAP(){return Jn}static get PLATFORMS_MAP(){return en}},gs=dP;var{entries:v6,setPrototypeOf:m6,isFrozen:mP,getPrototypeOf:gP,getOwnPropertyDescriptor:pP}=Object,{freeze:Zn,seal:Gr,create:fP}=Object,{apply:mf,construct:gf}=typeof Reflect<"u"&&Reflect;mf||(mf=function(e,t,n){return e.apply(t,n)});Zn||(Zn=function(e){return e});Gr||(Gr=function(e){return e});gf||(gf=function(e,t){return new e(...t)});var hP=Pr(Array.prototype.forEach),g6=Pr(Array.prototype.pop),$u=Pr(Array.prototype.push),v0=Pr(String.prototype.toLowerCase),sf=Pr(String.prototype.toString),bP=Pr(String.prototype.match),Wr=Pr(String.prototype.replace),yP=Pr(String.prototype.indexOf),vP=Pr(String.prototype.trim),vr=Pr(RegExp.prototype.test),el=CP(TypeError);function Pr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),EP=Gr(/\${[\w\W]*}/gm),AP=Gr(/^data-[\-\w.\u00B7-\uFFFF]/),kP=Gr(/^aria-[\-\w]+$/),C6=Gr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DP=Gr(/^(?:\w+script|data):/i),LP=Gr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x6=Gr(/^html$/i),y6=Object.freeze({__proto__:null,MUSTACHE_EXPR:TP,ERB_EXPR:wP,TMPLIT_EXPR:EP,DATA_ATTR:AP,ARIA_ATTR:kP,IS_ALLOWED_URI:C6,IS_SCRIPT_OR_DATA:DP,ATTR_WHITESPACE:LP,DOCTYPE_NAME:x6}),MP=()=>typeof window>"u"?null:window,PP=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function S6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MP(),t=B=>S6(B);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:p}=e,f=u.prototype,h=b0(f,"cloneNode"),y=b0(f,"nextSibling"),b=b0(f,"childNodes"),v=b0(f,"parentNode");if(typeof o=="function"){let B=a.createElement("template");B.content&&B.content.ownerDocument&&(a=B.content.ownerDocument)}let C,x="",{implementation:w,createNodeIterator:S,createDocumentFragment:T,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof v6=="function"&&typeof v=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:P,TMPLIT_EXPR:R,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:z}=y6,{IS_ALLOWED_URI:Y}=y6,ee=null,Re=Ke({},[...p6,...uf,...lf,...cf,...f6]),xe=null,H=Ke({},[...h6,...df,...b6,...y0]),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,Me=null,ve=!0,$e=!0,Z=!1,ce=!0,he=!1,pe=!1,ke=!1,Ve=!1,J=!1,Ee=!1,Ct=!1,ut=!0,De=!1,Nt="user-content-",dn=!0,Wt=!1,Xt={},Wn=null,Dr=Ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Pu=null,va=Ke({},["audio","video","img","source","image","track"]),uo=null,Xo=Ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",jr="http://www.w3.org/2000/svg",In="http://www.w3.org/1999/xhtml",fr=In,Ga=!1,Ka=null,lo=Ke({},[Rn,jr,In],sf),Gn,Ya=["application/xhtml+xml","text/html"],Ut="text/html",xt,hr=null,mE=a.createElement("form"),f2=function(B){return B instanceof RegExp||B instanceof Function},qg=function(B){if(!(hr&&hr===B)){if((!B||typeof B!="object")&&(B={}),B=ps(B),Gn=Ya.indexOf(B.PARSER_MEDIA_TYPE)===-1?Gn=Ut:Gn=B.PARSER_MEDIA_TYPE,xt=Gn==="application/xhtml+xml"?sf:v0,ee="ALLOWED_TAGS"in B?Ke({},B.ALLOWED_TAGS,xt):Re,xe="ALLOWED_ATTR"in B?Ke({},B.ALLOWED_ATTR,xt):H,Ka="ALLOWED_NAMESPACES"in B?Ke({},B.ALLOWED_NAMESPACES,sf):lo,uo="ADD_URI_SAFE_ATTR"in B?Ke(ps(Xo),B.ADD_URI_SAFE_ATTR,xt):Xo,Pu="ADD_DATA_URI_TAGS"in B?Ke(ps(va),B.ADD_DATA_URI_TAGS,xt):va,Wn="FORBID_CONTENTS"in B?Ke({},B.FORBID_CONTENTS,xt):Dr,te="FORBID_TAGS"in B?Ke({},B.FORBID_TAGS,xt):{},Me="FORBID_ATTR"in B?Ke({},B.FORBID_ATTR,xt):{},Xt="USE_PROFILES"in B?B.USE_PROFILES:!1,ve=B.ALLOW_ARIA_ATTR!==!1,$e=B.ALLOW_DATA_ATTR!==!1,Z=B.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=B.SAFE_FOR_TEMPLATES||!1,pe=B.WHOLE_DOCUMENT||!1,J=B.RETURN_DOM||!1,Ee=B.RETURN_DOM_FRAGMENT||!1,Ct=B.RETURN_TRUSTED_TYPE||!1,Ve=B.FORCE_BODY||!1,ut=B.SANITIZE_DOM!==!1,De=B.SANITIZE_NAMED_PROPS||!1,dn=B.KEEP_CONTENT!==!1,Wt=B.IN_PLACE||!1,Y=B.ALLOWED_URI_REGEXP||C6,fr=B.NAMESPACE||In,W=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&f2(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&f2(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&($e=!1),Ee&&(J=!0),Xt&&(ee=Ke({},[...f6]),xe=[],Xt.html===!0&&(Ke(ee,p6),Ke(xe,h6)),Xt.svg===!0&&(Ke(ee,uf),Ke(xe,df),Ke(xe,y0)),Xt.svgFilters===!0&&(Ke(ee,lf),Ke(xe,df),Ke(xe,y0)),Xt.mathMl===!0&&(Ke(ee,cf),Ke(xe,b6),Ke(xe,y0))),B.ADD_TAGS&&(ee===Re&&(ee=ps(ee)),Ke(ee,B.ADD_TAGS,xt)),B.ADD_ATTR&&(xe===H&&(xe=ps(xe)),Ke(xe,B.ADD_ATTR,xt)),B.ADD_URI_SAFE_ATTR&&Ke(uo,B.ADD_URI_SAFE_ATTR,xt),B.FORBID_CONTENTS&&(Wn===Dr&&(Wn=ps(Wn)),Ke(Wn,B.FORBID_CONTENTS,xt)),dn&&(ee["#text"]=!0),pe&&Ke(ee,["html","head","body"]),ee.table&&(Ke(ee,["tbody"]),delete te.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=B.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else C===void 0&&(C=PP(p,r)),C!==null&&typeof x=="string"&&(x=C.createHTML(""));Zn&&Zn(B),hr=B}},h2=Ke({},["mi","mo","mn","ms","mtext"]),b2=Ke({},["foreignobject","desc","title","annotation-xml"]),gE=Ke({},["title","style","font","a","script"]),jc=Ke({},uf);Ke(jc,lf),Ke(jc,xP);let zg=Ke({},cf);Ke(zg,SP);let pE=function(B){let ge=v(B);(!ge||!ge.tagName)&&(ge={namespaceURI:fr,tagName:"template"});let ie=v0(B.tagName),gt=v0(ge.tagName);return Ka[B.namespaceURI]?B.namespaceURI===jr?ge.namespaceURI===In?ie==="svg":ge.namespaceURI===Rn?ie==="svg"&&(gt==="annotation-xml"||h2[gt]):!!jc[ie]:B.namespaceURI===Rn?ge.namespaceURI===In?ie==="math":ge.namespaceURI===jr?ie==="math"&&b2[gt]:!!zg[ie]:B.namespaceURI===In?ge.namespaceURI===jr&&!b2[gt]||ge.namespaceURI===Rn&&!h2[gt]?!1:!zg[ie]&&(gE[ie]||!jc[ie]):!!(Gn==="application/xhtml+xml"&&Ka[B.namespaceURI]):!1},$o=function(B){$u(t.removed,{element:B});try{B.parentNode.removeChild(B)}catch{B.remove()}},Vg=function(B,ge){try{$u(t.removed,{attribute:ge.getAttributeNode(B),from:ge})}catch{$u(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(B),B==="is"&&!xe[B])if(J||Ee)try{$o(ge)}catch{}else try{ge.setAttribute(B,"")}catch{}},y2=function(B){let ge,ie;if(Ve)B=""+B;else{let Kn=bP(B,/^[\r\n\t ]+/);ie=Kn&&Kn[0]}Gn==="application/xhtml+xml"&&fr===In&&(B=''+B+"");let gt=C?C.createHTML(B):B;if(fr===In)try{ge=new g().parseFromString(gt,Gn)}catch{}if(!ge||!ge.documentElement){ge=w.createDocument(fr,"template",null);try{ge.documentElement.innerHTML=Ga?x:gt}catch{}}let mn=ge.body||ge.documentElement;return B&&ie&&mn.insertBefore(a.createTextNode(ie),mn.childNodes[0]||null),fr===In?A.call(ge,pe?"html":"body")[0]:pe?ge.documentElement:mn},v2=function(B){return S.call(B.ownerDocument||B,B,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},fE=function(B){return B instanceof m&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},Hc=function(B){return typeof s=="object"?B instanceof s:B&&typeof B=="object"&&typeof B.nodeType=="number"&&typeof B.nodeName=="string"},Qa=function(B,ge,ie){M[B]&&hP(M[B],gt=>{gt.call(t,ge,ie,hr)})},C2=function(B){let ge;if(Qa("beforeSanitizeElements",B,null),fE(B))return $o(B),!0;let ie=xt(B.nodeName);if(Qa("uponSanitizeElement",B,{tagName:ie,allowedTags:ee}),B.hasChildNodes()&&!Hc(B.firstElementChild)&&(!Hc(B.content)||!Hc(B.content.firstElementChild))&&vr(/<[/\w]/g,B.innerHTML)&&vr(/<[/\w]/g,B.textContent))return $o(B),!0;if(!ee[ie]||te[ie]){if(!te[ie]&&S2(ie)&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie)))return!1;if(dn&&!Wn[ie]){let gt=v(B)||B.parentNode,mn=b(B)||B.childNodes;if(mn&>){let Kn=mn.length;for(let ir=Kn-1;ir>=0;--ir)gt.insertBefore(h(mn[ir],!0),y(B))}}return $o(B),!0}return B instanceof u&&!pE(B)||(ie==="noscript"||ie==="noembed")&&vr(/<\/no(script|embed)/i,B.innerHTML)?($o(B),!0):(he&&B.nodeType===3&&(ge=B.textContent,ge=Wr(ge,I," "),ge=Wr(ge,P," "),ge=Wr(ge,R," "),B.textContent!==ge&&($u(t.removed,{element:B.cloneNode()}),B.textContent=ge)),Qa("afterSanitizeElements",B,null),!1)},x2=function(B,ge,ie){if(ut&&(ge==="id"||ge==="name")&&(ie in a||ie in mE))return!1;if(!($e&&!Me[ge]&&vr(L,ge))&&!(ve&&vr(_,ge))){if(!xe[ge]||Me[ge]){if(!(S2(B)&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,B)||W.tagNameCheck instanceof Function&&W.tagNameCheck(B))&&(W.attributeNameCheck instanceof RegExp&&vr(W.attributeNameCheck,ge)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(ge))||ge==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie))))return!1}else if(!uo[ge]&&!vr(Y,Wr(ie,z,""))&&!((ge==="src"||ge==="xlink:href"||ge==="href")&&B!=="script"&&yP(ie,"data:")===0&&Pu[B])&&!(Z&&!vr(U,Wr(ie,z,"")))&&ie)return!1}return!0},S2=function(B){return B.indexOf("-")>0},T2=function(B){let ge,ie,gt,mn;Qa("beforeSanitizeAttributes",B,null);let{attributes:Kn}=B;if(!Kn)return;let ir={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(mn=Kn.length;mn--;){ge=Kn[mn];let{name:yn,namespaceURI:es}=ge;if(ie=yn==="value"?ge.value:vP(ge.value),gt=xt(yn),ir.attrName=gt,ir.attrValue=ie,ir.keepAttr=!0,ir.forceKeepAttr=void 0,Qa("uponSanitizeAttribute",B,ir),ie=ir.attrValue,ir.forceKeepAttr||(Vg(yn,B),!ir.keepAttr))continue;if(!ce&&vr(/\/>/i,ie)){Vg(yn,B);continue}he&&(ie=Wr(ie,I," "),ie=Wr(ie,P," "),ie=Wr(ie,R," "));let w2=xt(B.nodeName);if(x2(w2,gt,ie)){if(De&&(gt==="id"||gt==="name")&&(Vg(yn,B),ie=Nt+ie),C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!es)switch(p.getAttributeType(w2,gt)){case"TrustedHTML":{ie=C.createHTML(ie);break}case"TrustedScriptURL":{ie=C.createScriptURL(ie);break}}try{es?B.setAttributeNS(es,yn,ie):B.setAttribute(yn,ie),g6(t.removed)}catch{}}}Qa("afterSanitizeAttributes",B,null)},hE=function B(ge){let ie,gt=v2(ge);for(Qa("beforeSanitizeShadowDOM",ge,null);ie=gt.nextNode();)Qa("uponSanitizeShadowNode",ie,null),!C2(ie)&&(ie.content instanceof i&&B(ie.content),T2(ie));Qa("afterSanitizeShadowDOM",ge,null)};return t.sanitize=function(B){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie,gt,mn,Kn;if(Ga=!B,Ga&&(B=""),typeof B!="string"&&!Hc(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw el("dirty is not a string, aborting")}else throw el("toString is not a function");if(!t.isSupported)return B;if(ke||qg(ge),t.removed=[],typeof B=="string"&&(Wt=!1),Wt){if(B.nodeName){let es=xt(B.nodeName);if(!ee[es]||te[es])throw el("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof s)ie=y2(""),gt=ie.ownerDocument.importNode(B,!0),gt.nodeType===1&>.nodeName==="BODY"||gt.nodeName==="HTML"?ie=gt:ie.appendChild(gt);else{if(!J&&!he&&!pe&&B.indexOf("<")===-1)return C&&Ct?C.createHTML(B):B;if(ie=y2(B),!ie)return J?null:Ct?x:""}ie&&Ve&&$o(ie.firstChild);let ir=v2(Wt?B:ie);for(;mn=ir.nextNode();)C2(mn)||(mn.content instanceof i&&hE(mn.content),T2(mn));if(Wt)return B;if(J){if(Ee)for(Kn=T.call(ie.ownerDocument);ie.firstChild;)Kn.appendChild(ie.firstChild);else Kn=ie;return(xe.shadowroot||xe.shadowrootmod)&&(Kn=D.call(n,Kn,!0)),Kn}let yn=pe?ie.outerHTML:ie.innerHTML;return pe&&ee["!doctype"]&&ie.ownerDocument&&ie.ownerDocument.doctype&&ie.ownerDocument.doctype.name&&vr(x6,ie.ownerDocument.doctype.name)&&(yn=" -`+yn),he&&(yn=Wr(yn,I," "),yn=Wr(yn,P," "),yn=Wr(yn,R," ")),C&&Ct?C.createHTML(yn):yn},t.setConfig=function(B){qg(B),ke=!0},t.clearConfig=function(){hr=null,ke=!1},t.isValidAttribute=function(B,ge,ie){hr||qg({});let gt=xt(B),mn=xt(ge);return x2(gt,mn,ie)},t.addHook=function(B,ge){typeof ge=="function"&&(M[B]=M[B]||[],$u(M[B],ge))},t.removeHook=function(B){if(M[B])return g6(M[B])},t.removeHooks=function(B){M[B]&&(M[B]=[])},t.removeAllHooks=function(){M={}},t}var lt=S6();var RP=Object.create,ff=Object.defineProperty,IP=Object.getOwnPropertyDescriptor,FP=Object.getOwnPropertyNames,BP=Object.getPrototypeOf,_P=Object.prototype.hasOwnProperty,hf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),OP=(e,t)=>{for(var n in t)ff(e,n,{get:t[n],enumerable:!0})},pf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of FP(t))!_P.call(e,a)&&a!==n&&ff(e,a,{get:()=>t[a],enumerable:!(r=IP(t,a))||r.enumerable});return e},NP=(e,t,n)=>(pf(e,t,"default"),n&&pf(n,t,"default")),w6=(e,t,n)=>(n=e!=null?RP(BP(e)):{},pf(t||!e||!e.__esModule?ff(n,"default",{value:e,enumerable:!0}):n,e)),UP=hf((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var m=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(m,l)}else{for(var g=this._doc.createElement("span");l.firstChild;)g.appendChild(l.firstChild);l.parentNode.replaceChild(g,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),m=l.getAttribute("poster"),g=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),m&&l.setAttribute("poster",o(m)),g){var p=g.replace(this.REGEXPS.srcsetUrl,function(f,h,y,b){return o(h)+(y||"")+b});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var m=r.getElementsByTagName("h1");m.length===1&&(a=this._getInnerText(m[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var g=s(a);return g<=4&&(!o||g!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ve=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ve&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ve=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var m=null,g=l.firstChild;g;){var p=g.nextSibling;if(this._isPhrasingContent(g))m!==null?m.appendChild(g):this._isWhitespace(g)||(m=a.createElement("p"),l.replaceChild(m,g),m.appendChild(g));else if(m!==null){for(;m.lastChild&&this._isWhitespace(m.lastChild);)m.removeChild(m.lastChild);m=null}g=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var f=l.children[0];l.parentNode.replaceChild(f,l),l=f,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(J){if(!(!J.parentNode||typeof J.parentNode.tagName>"u")){var Ee=this._getInnerText(J);if(!(Ee.length<25)){var Ct=this._getNodeAncestors(J,5);if(Ct.length!==0){var ut=0;ut+=1,ut+=Ee.split(",").length,ut+=Math.min(Math.floor(Ee.length/100),3),this._forEachNode(Ct,function(De,Nt){if(!(!De.tagName||!De.parentNode||typeof De.parentNode.tagName>"u")){if(typeof De.readability>"u"&&(this._initializeNode(De),h.push(De)),Nt===0)var dn=1;else Nt===1?dn=2:dn=Nt*3;De.readability.contentScore+=ut/dn}})}}}});for(var y=[],b=0,v=h.length;bS.readability.contentScore){y.splice(w,0,C),y.length>this._nbTopCandidates&&y.pop();break}}}var T=y[0]||null,A=!1,D;if(T===null||T.tagName==="BODY"){for(T=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),T.appendChild(r.firstChild);r.appendChild(T),this._initializeNode(T)}else if(T){for(var M=[],I=1;I=.75&&M.push(this._getNodeAncestors(y[I]));var P=3;if(M.length>=P)for(D=T.parentNode;D.tagName!=="BODY";){for(var R=0,L=0;L=P){T=D;break}D=D.parentNode}T.readability||this._initializeNode(T),D=T.parentNode;for(var _=T.readability.contentScore,U=_/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var z=D.readability.contentScore;if(z_){T=D;break}_=D.readability.contentScore,D=D.parentNode}for(D=T.parentNode;D.tagName!="BODY"&&D.children.length==1;)T=D,D=T.parentNode;T.readability||this._initializeNode(T)}var Y=a.createElement("DIV");i&&(Y.id="readability-content");var ee=Math.max(10,T.readability.contentScore*.2);D=T.parentNode;for(var Re=D.children,xe=0,H=Re.length;xe=ee)te=!0;else if(W.nodeName==="P"){var ve=this._getLinkDensity(W),$e=this._getInnerText(W),Z=$e.length;(Z>80&&ve<.25||Z<80&&Z>0&&ve===0&&$e.search(/\.( |$)/)!==-1)&&(te=!0)}}te&&(this.log("Appending node:",W),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(W.nodeName)===-1&&(this.log("Altering sibling:",W,"to div."),W=this._setNodeTag(W,"DIV")),Y.appendChild(W),Re=D.children,xe-=1,H-=1)}if(this._debug&&this.log("Article content pre-prep: "+Y.innerHTML),this._prepArticle(Y),this._debug&&this.log("Article content post-prep: "+Y.innerHTML),A)T.id="readability-page-1",T.className="page";else{var ce=a.createElement("DIV");for(ce.id="readability-page-1",ce.className="page";Y.firstChild;)ce.appendChild(Y.firstChild);Y.appendChild(ce)}this._debug&&this.log("Article content after paging: "+Y.innerHTML);var he=!0,pe=this._getInnerText(Y,!0).length;if(pe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(g){return(g["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,m=this._textSimilarity(u.headline,l)>.75;m&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(g){return g&&typeof g.name=="string"}).map(function(g){return g.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(g){this.log(g.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),m=l.getAttribute("property"),g=l.getAttribute("content");if(g){var p=null,f=null;m&&(p=m.match(s),p&&(f=p[0].toLowerCase().replace(/\s/g,""),i[f]=g.trim())),!p&&c&&u.test(c)&&(f=c,g&&(f=f.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[f]=g.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var m=["col","colgroup","tfoot","thead","th"],g=function(f){return!!o.getElementsByTagName(f)[0]};if(m.some(g)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var m=0;if(c+m<0)return!0;if(this._getCharCount(i,",")<10){for(var g=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,f=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,y=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),b=0,v=this._getAllNodesWithTag(i,["object","embed","iframe"]),C=0;C1&&g/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&f>g||h>Math.floor(g/3)||!s&&y<.9&&S<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||b===1&&S<75||b>1;if(s&&T){for(var A=0;A1)return T;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return T}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),jP=hf((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(g){c.add(g.parentNode)}),u=Array.from(c)}var m=0;return[].some.call(u,function(g){if(!o.visibilityChecker(g))return!1;var p=g.className+" "+g.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||g.matches("li p"))return!1;var f=g.textContent.trim().length;return fo.minScore)})}typeof t=="object"&&(t.exports=a)}),E6=hf((e,t)=>{var n=UP(),r=jP();t.exports={Readability:n,isProbablyReaderable:r}}),A6={};OP(A6,{Readability:()=>C0,default:()=>L6,isProbablyReaderable:()=>D6});var k6=w6(E6());NP(A6,w6(E6()));var{Readability:C0,isProbablyReaderable:D6}=k6,{default:T6,...HP}=k6,L6=T6!==void 0?T6:HP;var bf=p0.alert;function Te(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var we=Te();function X(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):we.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Ta(){return we.PROD==="1"}function yf(){return we.PROD_API==="1"}function M6(){return we.HAS_CSP_ERROR=="1"}function He(){if(we.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function fs(){return we.IMMERSIVE_TRANSLATE_SAFARI==="1"}function x0(){return typeof Deno<"u"}var XK=Te().PROD==="1",hs=Te().PROD!=="1";function S0(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function tl(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}function vf(){return we.IMMERSIVE_TRANSLATE_JSSDK==="1"}var re="immersiveTranslate",vo="Immersive Translate",F="immersive-translate",k0="imt",Co="immersivetranslate",P6="pdf/index.html";var et="immersivetranslate.com",qP=`https://config.${et}/`,nY=`https://app.${et}/`,Q=Ta()||yf()?`https://${et}/`:`https://test.${et}/`,bs=`https://dash.${et}/`,ct=Ta()||yf()?`https://api2.${et}/`:`https://test-api2.${et}/`,nl=`https://github.com/${F}/${F}/`,xn=`https://s.${et}/`,rY=`https://onboarding.${et}/`,R6=re+"DeeplGlobalState",Cf=re+"BingGlobalState",xf=re+"YandexGlobalState",Sf=re+"BaiduQianfanGlobalConfigStorageKey",I6=re+"SiliconCloudGlobalConfigStorageKey",F6=re+"ZhipuGlobalConfigStorageKey",D0="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",Ai=re+"GoogleAccessToken",rl=re+"AuthFlow",L0=F+"-config-latest.json",Tf=re+"AuthState",M0=re+"IframeMessage",aY=re+"WaitForRateLimit",B6=re+"DocumentMessageAsk",tn=re+"DocumentMessageTellThirdParty",_n=re+"showError",xo=re+"showModal",P0=re+"showToast",_6=re+"DocumentMessageThirdPartyTell",O6=re+"DocumentMessageEventUpload",iY=re+"DocumentMessageTypeStopJsSDK",zP=re+"DocumentMessageHandler",R0=re+"DocumentSetFloatBallActive",I0=`${re}Share`,F0=`${re}ShowFloatBallGuide`,ys=re+"DocumentMessageTempEnableSubtitleChanged",al=`${re}ToggleMouseHoverTranslateDirectly`,N6=`${re}ReqDraft`,U6=`${re}ResDraft`,VP=`${re}Container`,j6=`${re}SpecifiedContainer`,B0="buildinConfig",vs="localConfig",il="openOptionsPage",ol="translateMangaMenuId",wf="openAboutPage",H6="translateLocalPdfFile",sl="openEbookViewer",ul="openEbookBuilder";var So=`${re}PageTranslatedStatus`,ll=`${re}MangaTranslatedStatus`,oY=`${re}PageUrlChanged`,Kr=`${re}ReceiveCommand`,q6=re+"LastUseMouseHoverTime",cl=re+"LastUseInputTime",Rr=re+"LastUseManualTranslatePageTime",sY=`${re}PopupReceiveMessage`,To=re+"DocumentMessageEventTogglePopup",ki=`${qP}default_config.json`,uY=`${re}Mark`,Cr=`${re}Root`,z6=`${re}Walked`,lY=`data-${F}-walked`,V6=`${re}Paragraph`,W6=`data-${F}-paragraph`,Cs=`data-${F}-translation-element-mark`,G6=`${re}TranslationElementMark`,cY=`${re}TranslatedMark`,Ef=`${F}-input-injected-css`,K6=`${re}LoadingId`,Af=`data-${F}-loading-id`,Y6=`${re}ErrorId`,_0=`data-${F}-error-id`,WP=`${re}AtomicBlockMark`,Q6=`${re}ExcludeMark`,dY=`data-${F}-exclude-mark`,GP=`${re}StayOriginalMark`,mY=`${re}PreWhitespaceMark`,O0=`${re}InlineMark`,J6=`${re}BlockMark`,gY=`${re}Left`,pY=`${re}Right`,fY=`${re}Width`,hY=`${re}Height`,bY=`${re}Top`,yY=`${re}FontSize`,Z6="lastRunTime";var vY=`${re}GlobalStyleMark`,xs=["@","#"],N0=" --- ",X6=` -`,Yt=`${F}-target-wrapper`,CY=`${F}-pdf-target-container`,U0=`${F}-target-inner`,xY=`${F}-source-wrapper`,kf=`${F}-target-translation-block-wrapper`,SY=`${F}-root-translation-theme`,Ss=`${re}RootTranslationTheme`,$6=`${F}-target-translation-vertical-block-wrapper`,TY=`${F}-target-translation-pdf-block-wrapper`,ey=`${F}-target-translation-pre-whitespace`,Df=`${F}-target-translation-inline-wrapper`,Lf=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],dl={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var j0=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],ty=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",bs,bs+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Di="zh-CN",ml=Q+"docs/communities/",ny=nl+"issues/1809",ry=nl+"issues/1179",H0={type:re+"ChildFrameToRootFrameIdentifier"},Mf=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],ri=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],ay=["ctrl","alt","shift","cmd","command","option","control"],q0=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],z0=Ta()?bs+"#general":"http://localhost:8000/dist/userscript/options/#general",gl="user_from_plugin",pt="user_info",Ts=Q+"accounts/login?from=plugin",Pf=bs+"#general",iy=Q+"accounts/login?from=plugin&return_url="+encodeURIComponent(Pf),oy=Ts+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",sy=Ts+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Li=Q+"profile/",pl=Q+"auth/pricing/",Ln=Q+"pricing/",KP=Q+"download/",YP=Q+"topup?type=open_ai&",QP=Q+"topup?type=deepl&",uy=Q+"topup?type=comics&",wY=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",ly=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",cy=KP+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",EY=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",V0=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Rf=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",AY=Li+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",dy=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",my=YP+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",gy=QP+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",py=Q+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",fy=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",If=Li+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Ff=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Bf=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",fl=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",hy=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=",hl=Q+"docs/usage/",_f=Q+"docs/communities/",bl=Te().TRANSLATE_FILE_URL,by=bl+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",yy=bl+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",vy=`${bl}download-subtitle/`,Cy=`${bl}pdf-pro/`,yl=`${bl}text/`,ai=["deepl","openai","gemini","claude"],xy="G-BHWL0KMJB8",Sy="7pr-olTJR6GKAjIW48UD0Q",T0="G-MKMD9LWFTR",w0="sitc4WmvShWYwfU0dANM3Q",E0="G-V5H2F5MJFJ",A0="UBjpGOLISEaY5LVXNj3WvQ",Ty="G-0LPWNREXBB",wy="JVF4YeOaTVyDV27CTLhPtQ";function Ey(){return vf()?[{measurementId:xy,apiSecret:Sy}]:Ta?[{measurementId:T0,apiSecret:w0},{measurementId:E0,apiSecret:A0}]:[{measurementId:T0,apiSecret:w0},{measurementId:E0,apiSecret:A0}]}function vl(){return vf()?[`https://www.google-analytics.com/mp/collect?measurement_id=${xy}&api_secret=${Sy}`]:Ta?[`https://www.google-analytics.com/mp/collect?measurement_id=${T0}&api_secret=${w0}`,`https://www.google-analytics.com/mp/collect?measurement_id=${E0}&api_secret=${A0}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${T0}&api_secret=${w0}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${E0}&api_secret=${A0}`]}var Cl=`https://analytics.${et}/collect`,kY=`${Q}activities/components/image-pro`;var Ay="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",ky="0VmM83i2D1ICuYBf",W0=`[${k0}-ctx-divider]`,G0=`${k0}_context_preview`,Dy=`\u{1F44B} \u563F\uFF0C\u4F60\u53D1\u73B0\u4E86\u5F69\u86CB\uFF01 +`+b+"]"}return r.pop(),a=b,h}},dM={parse:aM,stringify:cM},mM=dM,c0=mM;var H9=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function gM(e,t){return!!(e===t||H9(e)&&H9(t))}function pM(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),xM=(e,t)=>{for(var n in t)Jp(e,n,{get:t[n],enumerable:!0})},Qp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of bM(t))!vM.call(e,a)&&a!==n&&Jp(e,a,{get:()=>t[a],enumerable:!(r=hM(t,a))||r.enumerable});return e},TM=(e,t,n)=>(Qp(e,t,"default"),n&&Qp(n,t,"default")),z9=(e,t,n)=>(n=e!=null?fM(yM(e)):{},Qp(t||!e||!e.__esModule?Jp(n,"default",{value:e,enumerable:!0}):n,e)),V9=CM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof d0=="object"&&d0&&d0.Object===Object&&d0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(A,D,M){var I,P,R,L,_,U,z=0,Y=!1,ee=!1,Re=!0;if(typeof A!="function")throw new TypeError(n);D=S(D)||0,x(M)&&(Y=!!M.leading,ee="maxWait"in M,R=ee?b(S(M.maxWait)||0,D):R,Re="trailing"in M?!!M.trailing:Re);function xe(he){var pe=I,ke=P;return I=P=void 0,z=he,L=A.apply(ke,pe),L}function H(he){return z=he,_=setTimeout(Me,D),Y?xe(he):L}function W(he){var pe=he-U,ke=he-z,ze=D-pe;return ee?y(ze,R-ke):ze}function te(he){var pe=he-U,ke=he-z;return U===void 0||pe>=D||pe<0||ee&&ke>=R}function Me(){var he=h();if(te(he))return ve(he);_=setTimeout(Me,W(he))}function ve(he){return _=void 0,Re&&I?xe(he):(I=P=void 0,L)}function $e(){_!==void 0&&clearTimeout(_),z=0,I=U=P=_=void 0}function Z(){return _===void 0?L:ve(h())}function ce(){var he=h(),pe=te(he);if(I=arguments,P=this,U=he,pe){if(_===void 0)return H(U);if(ee)return _=setTimeout(Me,D),xe(U)}return _===void 0&&(_=setTimeout(Me,D)),L}return ce.cancel=$e,ce.flush=Z,ce}function C(A,D,M){var I=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return x(M)&&(I="leading"in M?!!M.leading:I,P="trailing"in M?!!M.trailing:P),v(A,D,{leading:I,maxWait:D,trailing:P})}function x(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function w(A){return!!A&&typeof A=="object"}function T(A){return typeof A=="symbol"||w(A)&&f.call(A)==a}function S(A){if(typeof A=="number")return A;if(T(A))return r;if(x(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=x(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=C}),W9={};xM(W9,{default:()=>br});var SM=z9(V9());TM(W9,z9(V9()));var{default:q9,...wM}=SM,br=q9!==void 0?q9:wM;var m0=globalThis||(typeof window<"u"?window:self),EM=Object.create,Xp=Object.defineProperty,AM=Object.getOwnPropertyDescriptor,kM=Object.getOwnPropertyNames,DM=Object.getPrototypeOf,LM=Object.prototype.hasOwnProperty,MM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),PM=(e,t)=>{for(var n in t)Xp(e,n,{get:t[n],enumerable:!0})},Zp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kM(t))!LM.call(e,a)&&a!==n&&Xp(e,a,{get:()=>t[a],enumerable:!(r=AM(t,a))||r.enumerable});return e},RM=(e,t,n)=>(Zp(e,t,"default"),n&&Zp(n,t,"default")),K9=(e,t,n)=>(n=e!=null?EM(DM(e)):{},Zp(t||!e||!e.__esModule?Xp(n,"default",{value:e,enumerable:!0}):n,e)),Y9=MM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof m0=="object"&&m0&&m0.Object===Object&&m0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(S,A,D){var M,I,P,R,L,_,U=0,z=!1,Y=!1,ee=!0;if(typeof S!="function")throw new TypeError(n);A=T(A)||0,C(D)&&(z=!!D.leading,Y="maxWait"in D,P=Y?b(T(D.maxWait)||0,A):P,ee="trailing"in D?!!D.trailing:ee);function Re(ce){var he=M,pe=I;return M=I=void 0,U=ce,R=S.apply(pe,he),R}function xe(ce){return U=ce,L=setTimeout(te,A),z?Re(ce):R}function H(ce){var he=ce-_,pe=ce-U,ke=A-he;return Y?y(ke,P-pe):ke}function W(ce){var he=ce-_,pe=ce-U;return _===void 0||he>=A||he<0||Y&&pe>=P}function te(){var ce=h();if(W(ce))return Me(ce);L=setTimeout(te,H(ce))}function Me(ce){return L=void 0,ee&&M?Re(ce):(M=I=void 0,R)}function ve(){L!==void 0&&clearTimeout(L),U=0,M=_=I=L=void 0}function $e(){return L===void 0?R:Me(h())}function Z(){var ce=h(),he=W(ce);if(M=arguments,I=this,_=ce,he){if(L===void 0)return xe(_);if(Y)return L=setTimeout(te,A),Re(_)}return L===void 0&&(L=setTimeout(te,A)),R}return Z.cancel=ve,Z.flush=$e,Z}function C(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function x(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||x(S)&&f.call(S)==a}function T(S){if(typeof S=="number")return S;if(w(S))return r;if(C(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=C(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(i,"");var D=s.test(S);return D||u.test(S)?l(S.slice(2),D?2:8):o.test(S)?r:+S}t.exports=v}),Q9={};PM(Q9,{default:()=>Bn});var IM=K9(Y9());RM(Q9,K9(Y9()));var{default:G9,...FM}=IM,Bn=G9!==void 0?G9:FM;var BM=Object.create,ef=Object.defineProperty,_M=Object.getOwnPropertyDescriptor,OM=Object.getOwnPropertyNames,NM=Object.getPrototypeOf,UM=Object.prototype.hasOwnProperty,jM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),HM=(e,t)=>{for(var n in t)ef(e,n,{get:t[n],enumerable:!0})},$p=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of OM(t))!UM.call(e,a)&&a!==n&&ef(e,a,{get:()=>t[a],enumerable:!(r=_M(t,a))||r.enumerable});return e},qM=(e,t,n)=>($p(e,t,"default"),n&&$p(n,t,"default")),Z9=(e,t,n)=>(n=e!=null?BM(NM(e)):{},$p(t||!e||!e.__esModule?ef(n,"default",{value:e,enumerable:!0}):n,e)),X9=jM((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,m){l(r)==="object"&&l(i)==="object"?i.exports=m():(s=[],o=m,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function m(p){if(g[p])return g[p].exports;var f=g[p]={i:p,l:!1,exports:{}};return c[p].call(f.exports,f,f.exports,m),f.l=!0,f.exports}var g={};return m.m=c,m.c=g,m.i=function(p){return p},m.d=function(p,f,b){m.o(p,f)||Object.defineProperty(p,f,{configurable:!1,enumerable:!0,get:b})},m.n=function(p){var f=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(f,"a",f),f},m.o=function(p,f){return Object.prototype.hasOwnProperty.call(p,f)},m.p="",m(m.s=0)}([function(c,m,g){function p(H,W){var te={};for(var Me in H)W.indexOf(Me)>=0||Object.prototype.hasOwnProperty.call(H,Me)&&(te[Me]=H[Me]);return te}Object.defineProperty(m,"__esModule",{value:!0});var f=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":l(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":l(H)},b=Object.assign||function(H){for(var W=1;W'+Me+"",ke.onclick=function(){return P(ze,pe)},ke.listener=function(J){(D(J)||M(J))&&_()},I(ke,pe),$e&&$e<1&&($e=1),!ce&&$e&&x($e).then(function(){return P(ze,pe)})},z=m.force=function(H,W){var te=H.type,Me=te===void 0?5:te,ve=H.text,$e=H.buttonText,Z=$e===void 0?"OK":$e,ce=H.callback,he=H.position,pe=he===void 0?h.positions.force||pe.top:he;w(),_();var ke=document.createElement("div"),ze=T();ke.id=ze;var J=document.createElement("div");J.classList.add(h.classes.textbox),J.classList.add(h.classes.backgroundInfo),J.innerHTML='
'+ve+"
";var Ee=document.createElement("div");Ee.classList.add(h.classes.button),Ee.classList.add(S[Me]),Ee.innerHTML=Z,Ee.onclick=function(){P(ze,pe),L(),ce?ce():W&&W()},ke.appendChild(J),ke.appendChild(Ee),ke.listener=function(Ct){D(Ct)&&Ee.click()},I(ke,pe),R()},Y=m.confirm=function(H,W,te){var Me=H.text,ve=H.submitText,$e=ve===void 0?"Yes":ve,Z=H.cancelText,ce=Z===void 0?"Cancel":Z,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,ze=ke===void 0?h.positions.confirm||ze.top:ke;w(),_();var J=document.createElement("div"),Ee=T();J.id=Ee;var Ct=document.createElement("div");Ct.classList.add(h.classes.textbox),Ct.classList.add(h.classes.backgroundInfo),Ct.innerHTML='
'+Me+"
";var ut=document.createElement("div");ut.classList.add(h.classes.button),ut.classList.add(h.classes.elementHalf),ut.classList.add(h.classes.backgroundSuccess),ut.innerHTML=$e,ut.onclick=function(){P(Ee,ze),L(),he?he():W&&W()};var De=document.createElement("div");De.classList.add(h.classes.button),De.classList.add(h.classes.elementHalf),De.classList.add(h.classes.backgroundError),De.innerHTML=ce,De.onclick=function(){P(Ee,ze),L(),pe?pe():te&&te()},J.appendChild(Ct),J.appendChild(ut),J.appendChild(De),J.listener=function(Nt){D(Nt)?ut.click():M(Nt)&&De.click()},I(J,ze),R(J,ze)},ee=function(H,W,te){var Me=H.text,ve=H.submitText,$e=ve===void 0?"Submit":ve,Z=H.cancelText,ce=Z===void 0?"Cancel":Z,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,ze=ke===void 0?h.positions.input||ze.top:ke,J=p(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var Ee=document.createElement("div"),Ct=T();Ee.id=Ct;var ut=document.createElement("div");ut.classList.add(h.classes.textbox),ut.classList.add(h.classes.backgroundInfo),ut.innerHTML='
'+Me+"
";var De=document.createElement("input");De.classList.add(h.classes.inputField),De.setAttribute("autocapitalize",J.autocapitalize||"none"),De.setAttribute("autocomplete",J.autocomplete||"off"),De.setAttribute("autocorrect",J.autocorrect||"off"),De.setAttribute("autofocus",J.autofocus||"true"),De.setAttribute("inputmode",J.inputmode||"verbatim"),De.setAttribute("max",J.max||""),De.setAttribute("maxlength",J.maxlength||""),De.setAttribute("min",J.min||""),De.setAttribute("minlength",J.minlength||""),De.setAttribute("placeholder",J.placeholder||""),De.setAttribute("spellcheck",J.spellcheck||"default"),De.setAttribute("step",J.step||"any"),De.setAttribute("type",J.type||"text"),De.value=J.value||"",J.allowed&&(De.oninput=function(){var Wt=void 0;if(Array.isArray(J.allowed)){for(var Xt="",Vn=J.allowed,kr=0;kr'+te+"",pe.appendChild(ze),Z.forEach(function(Ee,Ct){var ut=Ee.type,De=ut===void 0?1:ut,Nt=Ee.text,dn=Ee.handler,Wt=document.createElement("div");Wt.classList.add(S[De]),Wt.classList.add(h.classes.button),Wt.classList.add(h.classes.selectChoice);var Xt=Z[Ct+1];Xt&&!Xt.type&&(Xt.type=1),Xt&&Xt.type===De&&Wt.classList.add(h.classes.selectChoiceRepeated),Wt.innerHTML=Nt,Wt.onclick=function(){P(ke,he),L(),dn()},pe.appendChild(Wt)});var J=document.createElement("div");J.classList.add(h.classes.backgroundNeutral),J.classList.add(h.classes.button),J.innerHTML=ve,J.onclick=function(){P(ke,he),L(),$e?$e():W&&W()},pe.appendChild(J),pe.listener=function(Ee){M(Ee)&&J.click()},I(pe,he),R(pe,he)},xe=m.date=function(H,W,te){var Me=H.value,ve=Me===void 0?new Date:Me,$e=H.submitText,Z=$e===void 0?"OK":$e,ce=H.cancelText,he=ce===void 0?"Cancel":ce,pe=H.submitCallback,ke=H.cancelCallback,ze=H.position,J=ze===void 0?h.positions.date||J.top:ze;w(),_();var Ee="▾",Ct=document.createElement("div"),ut=document.createElement("div"),De=document.createElement("div"),Nt=function(Ut){Ct.innerHTML=h.dateMonths[Ut.getMonth()],ut.innerHTML=Ut.getDate(),De.innerHTML=Ut.getFullYear()},dn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+1,0).getDate(),fr=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(fr)>xt&&(fr=xt.toString()),Ut.target.textContent=fr,Number(fr)<1&&(fr="1"),ve.setDate(Number(fr))},Wt=function(Ut){var xt=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ut.target.textContent=xt,ve.setFullYear(Number(xt))},Xt=function(Ut){Nt(ve)},Vn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+Ut+1,0).getDate();ve.getDate()>xt&&ve.setDate(xt),ve.setMonth(ve.getMonth()+Ut),Nt(ve)},kr=function(Ut){ve.setDate(ve.getDate()+Ut),Nt(ve)},Pu=function(Ut){var xt=ve.getFullYear()+Ut;xt<0?ve.setFullYear(0):ve.setFullYear(ve.getFullYear()+Ut),Nt(ve)},ya=document.createElement("div"),uo=T();ya.id=uo;var Xo=document.createElement("div");Xo.classList.add(h.classes.backgroundInfo);var Rn=document.createElement("div");Rn.classList.add(h.classes.dateSelectorInner);var Ur=document.createElement("div");Ur.classList.add(h.classes.button),Ur.classList.add(h.classes.elementThird),Ur.classList.add(h.classes.dateSelectorUp),Ur.innerHTML=Ee;var In=document.createElement("div");In.classList.add(h.classes.button),In.classList.add(h.classes.elementThird),In.classList.add(h.classes.dateSelectorUp),In.innerHTML=Ee;var pr=document.createElement("div");pr.classList.add(h.classes.button),pr.classList.add(h.classes.elementThird),pr.classList.add(h.classes.dateSelectorUp),pr.innerHTML=Ee,Ct.classList.add(h.classes.element),Ct.classList.add(h.classes.elementThird),Ct.innerHTML=h.dateMonths[ve.getMonth()],ut.classList.add(h.classes.element),ut.classList.add(h.classes.elementThird),ut.setAttribute("contentEditable",!0),ut.addEventListener("input",dn),ut.addEventListener("blur",Xt),ut.innerHTML=ve.getDate(),De.classList.add(h.classes.element),De.classList.add(h.classes.elementThird),De.setAttribute("contentEditable",!0),De.addEventListener("input",Wt),De.addEventListener("blur",Xt),De.innerHTML=ve.getFullYear();var Wa=document.createElement("div");Wa.classList.add(h.classes.button),Wa.classList.add(h.classes.elementThird),Wa.innerHTML=Ee;var Ga=document.createElement("div");Ga.classList.add(h.classes.button),Ga.classList.add(h.classes.elementThird),Ga.innerHTML=Ee;var lo=document.createElement("div");lo.classList.add(h.classes.button),lo.classList.add(h.classes.elementThird),lo.innerHTML=Ee,Ur.onclick=function(){return Vn(1)},In.onclick=function(){return kr(1)},pr.onclick=function(){return Pu(1)},Wa.onclick=function(){return Vn(-1)},Ga.onclick=function(){return kr(-1)},lo.onclick=function(){return Pu(-1)};var Wn=document.createElement("div");Wn.classList.add(h.classes.button),Wn.classList.add(h.classes.elementHalf),Wn.classList.add(h.classes.backgroundSuccess),Wn.innerHTML=Z,Wn.onclick=function(){P(uo,J),L(),pe?pe(ve):W&&W(ve)};var Ka=document.createElement("div");Ka.classList.add(h.classes.button),Ka.classList.add(h.classes.elementHalf),Ka.classList.add(h.classes.backgroundError),Ka.innerHTML=he,Ka.onclick=function(){P(uo,J),L(),ke?ke(ve):te&&te(ve)},Rn.appendChild(Ur),Rn.appendChild(In),Rn.appendChild(pr),Rn.appendChild(Ct),Rn.appendChild(ut),Rn.appendChild(De),Rn.appendChild(Wa),Rn.appendChild(Ga),Rn.appendChild(lo),Xo.appendChild(Rn),ya.appendChild(Xo),ya.appendChild(Wn),ya.appendChild(Ka),ya.listener=function(Ut){D(Ut)?Wn.click():M(Ut)&&Ka.click()},I(ya,J),R(ya,J)};m.default={alert:U,force:z,confirm:Y,input:ee,select:Re,date:xe,setOptions:v,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),$9={};HM($9,{default:()=>g0});var zM=Z9(X9());qM($9,Z9(X9()));var{default:J9,...VM}=zM,g0=J9!==void 0?J9:VM;var p0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ju(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function tf(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function e6(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ims[e.toLowerCase()]||zr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),WM=e=>Object.keys(ms).find(t=>ms[t]===e),KM=e=>Object.keys(zr).find(t=>zr[t]===e);function o6(e){a6=e||"all"}function Zu(){return a6||"all"}function YM(){return Et.slice(0)}function QM(){return Et.map(e=>WM(e)||KM(e)||String.fromCharCode(e))}function JM(){let e=[];return Object.keys(jt).forEach(t=>{jt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Xu(o))})})}),e}function ZM(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function XM(e){return typeof e=="string"&&(e=Xu(e)),Et.indexOf(e)!==-1}function $M(e,t){let n,r;e||(e=Zu());for(let a in jt)if(Object.prototype.hasOwnProperty.call(jt,a))for(n=jt[a],r=0;r=0&&Et.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Et.splice(0,Et.length),(t===93||t===224)&&(t=91),t in Cn){Cn[t]=!1;for(let r in zr)zr[r]===t&&(ti[r]=!1)}}function s6(e,...t){if(typeof e>"u")Object.keys(jt).forEach(n=>delete jt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&rf(n)});else if(typeof e=="object")e.key&&rf(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),rf({key:e,scope:n,method:r,splitKey:"+"})}}var rf=({key:e,scope:t,method:n,splitKey:r="+"})=>{nf(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Xu(u);if(!jt[l])return;t||(t=Zu());let c=s>1?tf(zr,o):[];jt[l]=jt[l].filter(m=>!((n?m.method===n:!0)&&m.scope===t&&e6(m.mods,c)))})};function n6(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in Cn)Object.prototype.hasOwnProperty.call(Cn,i)&&(!Cn[i]&&t.mods.indexOf(+i)>-1||Cn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!Cn[16]&&!Cn[18]&&!Cn[17]&&!Cn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Et),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function r6(e,t){let n=jt["*"],r=e.keyCode||e.which||e.charCode;if(!ti.filter.call(this,e))return;if((r===93||r===224)&&(r=91),Et.indexOf(r)===-1&&r!==229&&Et.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=f0[i];e[i]&&Et.indexOf(o)===-1?Et.push(o):!e[i]&&Et.indexOf(o)>-1?Et.splice(Et.indexOf(o),1):i==="metaKey"&&e[i]&&Et.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Et=Et.slice(Et.indexOf(o))))}),r in Cn){Cn[r]=!0;for(let i in zr)zr[i]===r&&(ti[i]=!0);if(!n)return}for(let i in Cn)Object.prototype.hasOwnProperty.call(Cn,i)&&(Cn[i]=e[f0[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Et.indexOf(17)===-1&&Et.push(17),Et.indexOf(18)===-1&&Et.push(18),Cn[17]=!0,Cn[18]=!0);let a=Zu();if(n)for(let i=0;i-1}function ti(e,t,n){Et=[];let r=nf(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",m=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&s6(e,i);s1&&(a=tf(zr,e)),e=e[e.length-1],e=e==="*"?"*":Xu(e),e in jt||(jt[e]=[]),jt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!tP(o)&&window&&(i6.push(o),Ju(o,"keydown",p=>{r6(p,o)},m),t6||(t6=!0,Ju(window,"focus",()=>{Et=[]},m),Ju(window,"click",()=>{Et=[]},!1)),Ju(o,"keyup",p=>{r6(p,o),eP(p)},m))}function nP(e,t="all"){Object.keys(jt).forEach(n=>{jt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var af={getPressedKeyString:QM,setScope:o6,getScope:Zu,deleteScope:$M,getPressedKeyCodes:YM,getAllKeyCodes:JM,isPressed:XM,filter:ZM,trigger:nP,unbind:s6,keyMap:ms,modifier:zr,modifierMap:f0};for(let e in af)Object.prototype.hasOwnProperty.call(af,e)&&(ti[e]=af[e]);if(typeof window<"u"){let e=window.hotkeys;ti.noConflict=t=>(t&&window.hotkeys===ti&&(window.hotkeys=e),ti),window.hotkeys=ti}var Kt=ti;var rP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},l6={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},en={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Qn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ei={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=K.getVersionPrecision(e),a=K.getVersionPrecision(t),i=Math.max(r,a),o=0,s=K.map([e,t],u=>{let l=i-K.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return K.map(c.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return rP[e]}static getBrowserTypeByAlias(e){return l6[e]||""}},At=/version\/(\d+(\.?_?\d+)+)/i,aP=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(r,e),version:K.getSecondMatch(r,e)}}}],iP=aP,oP=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Qn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Qn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:Qn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Qn.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),r={name:Qn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Qn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),r={name:Qn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Qn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:Qn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Qn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Qn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Qn.Linux}}},{test:[/CrOS/],describe(){return{name:Qn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Qn.PlayStation4,version:t}}}],sP=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:en.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:en.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:en.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:en.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:en.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:en.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:en.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:en.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:en.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:en.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:en.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:en.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:en.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:en.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:en.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:en.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:en.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:en.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:en.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:en.tv}}}],uP=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ei.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ei.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ei.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ei.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ei.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ei.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ei.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],lP=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(iP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(oP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(sP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(uP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=K.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=K.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=K.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=K.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(K.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},u6=lP,cP=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new u6(e,t)}static parse(e){return new u6(e).getResult()}static get BROWSER_MAP(){return l6}static get ENGINE_MAP(){return Ei}static get OS_MAP(){return Qn}static get PLATFORMS_MAP(){return en}},gs=cP;var{entries:b6,setPrototypeOf:c6,isFrozen:dP,getPrototypeOf:mP,getOwnPropertyDescriptor:gP}=Object,{freeze:Jn,seal:Wr,create:pP}=Object,{apply:df,construct:mf}=typeof Reflect<"u"&&Reflect;df||(df=function(e,t,n){return e.apply(t,n)});Jn||(Jn=function(e){return e});Wr||(Wr=function(e){return e});mf||(mf=function(e,t){return new e(...t)});var fP=Mr(Array.prototype.forEach),d6=Mr(Array.prototype.pop),$u=Mr(Array.prototype.push),y0=Mr(String.prototype.toLowerCase),of=Mr(String.prototype.toString),hP=Mr(String.prototype.match),Vr=Mr(String.prototype.replace),bP=Mr(String.prototype.indexOf),yP=Mr(String.prototype.trim),yr=Mr(RegExp.prototype.test),el=vP(TypeError);function Mr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),wP=Wr(/\${[\w\W]*}/gm),EP=Wr(/^data-[\-\w.\u00B7-\uFFFF]/),AP=Wr(/^aria-[\-\w]+$/),y6=Wr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kP=Wr(/^(?:\w+script|data):/i),DP=Wr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),v6=Wr(/^html$/i),h6=Object.freeze({__proto__:null,MUSTACHE_EXPR:TP,ERB_EXPR:SP,TMPLIT_EXPR:wP,DATA_ATTR:EP,ARIA_ATTR:AP,IS_ALLOWED_URI:y6,IS_SCRIPT_OR_DATA:kP,ATTR_WHITESPACE:DP,DOCTYPE_NAME:v6}),LP=()=>typeof window>"u"?null:window,MP=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function C6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LP(),t=B=>C6(B);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:p}=e,f=u.prototype,b=h0(f,"cloneNode"),y=h0(f,"nextSibling"),h=h0(f,"childNodes"),v=h0(f,"parentNode");if(typeof o=="function"){let B=a.createElement("template");B.content&&B.content.ownerDocument&&(a=B.content.ownerDocument)}let C,x="",{implementation:w,createNodeIterator:T,createDocumentFragment:S,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof b6=="function"&&typeof v=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:P,TMPLIT_EXPR:R,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:z}=h6,{IS_ALLOWED_URI:Y}=h6,ee=null,Re=Ge({},[...m6,...sf,...uf,...lf,...g6]),xe=null,H=Ge({},[...p6,...cf,...f6,...b0]),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,Me=null,ve=!0,$e=!0,Z=!1,ce=!0,he=!1,pe=!1,ke=!1,ze=!1,J=!1,Ee=!1,Ct=!1,ut=!0,De=!1,Nt="user-content-",dn=!0,Wt=!1,Xt={},Vn=null,kr=Ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Pu=null,ya=Ge({},["audio","video","img","source","image","track"]),uo=null,Xo=Ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",Ur="http://www.w3.org/2000/svg",In="http://www.w3.org/1999/xhtml",pr=In,Wa=!1,Ga=null,lo=Ge({},[Rn,Ur,In],of),Wn,Ka=["application/xhtml+xml","text/html"],Ut="text/html",xt,fr=null,dE=a.createElement("form"),g2=function(B){return B instanceof RegExp||B instanceof Function},Hg=function(B){if(!(fr&&fr===B)){if((!B||typeof B!="object")&&(B={}),B=ps(B),Wn=Ka.indexOf(B.PARSER_MEDIA_TYPE)===-1?Wn=Ut:Wn=B.PARSER_MEDIA_TYPE,xt=Wn==="application/xhtml+xml"?of:y0,ee="ALLOWED_TAGS"in B?Ge({},B.ALLOWED_TAGS,xt):Re,xe="ALLOWED_ATTR"in B?Ge({},B.ALLOWED_ATTR,xt):H,Ga="ALLOWED_NAMESPACES"in B?Ge({},B.ALLOWED_NAMESPACES,of):lo,uo="ADD_URI_SAFE_ATTR"in B?Ge(ps(Xo),B.ADD_URI_SAFE_ATTR,xt):Xo,Pu="ADD_DATA_URI_TAGS"in B?Ge(ps(ya),B.ADD_DATA_URI_TAGS,xt):ya,Vn="FORBID_CONTENTS"in B?Ge({},B.FORBID_CONTENTS,xt):kr,te="FORBID_TAGS"in B?Ge({},B.FORBID_TAGS,xt):{},Me="FORBID_ATTR"in B?Ge({},B.FORBID_ATTR,xt):{},Xt="USE_PROFILES"in B?B.USE_PROFILES:!1,ve=B.ALLOW_ARIA_ATTR!==!1,$e=B.ALLOW_DATA_ATTR!==!1,Z=B.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=B.SAFE_FOR_TEMPLATES||!1,pe=B.WHOLE_DOCUMENT||!1,J=B.RETURN_DOM||!1,Ee=B.RETURN_DOM_FRAGMENT||!1,Ct=B.RETURN_TRUSTED_TYPE||!1,ze=B.FORCE_BODY||!1,ut=B.SANITIZE_DOM!==!1,De=B.SANITIZE_NAMED_PROPS||!1,dn=B.KEEP_CONTENT!==!1,Wt=B.IN_PLACE||!1,Y=B.ALLOWED_URI_REGEXP||y6,pr=B.NAMESPACE||In,W=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&g2(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&g2(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&($e=!1),Ee&&(J=!0),Xt&&(ee=Ge({},[...g6]),xe=[],Xt.html===!0&&(Ge(ee,m6),Ge(xe,p6)),Xt.svg===!0&&(Ge(ee,sf),Ge(xe,cf),Ge(xe,b0)),Xt.svgFilters===!0&&(Ge(ee,uf),Ge(xe,cf),Ge(xe,b0)),Xt.mathMl===!0&&(Ge(ee,lf),Ge(xe,f6),Ge(xe,b0))),B.ADD_TAGS&&(ee===Re&&(ee=ps(ee)),Ge(ee,B.ADD_TAGS,xt)),B.ADD_ATTR&&(xe===H&&(xe=ps(xe)),Ge(xe,B.ADD_ATTR,xt)),B.ADD_URI_SAFE_ATTR&&Ge(uo,B.ADD_URI_SAFE_ATTR,xt),B.FORBID_CONTENTS&&(Vn===kr&&(Vn=ps(Vn)),Ge(Vn,B.FORBID_CONTENTS,xt)),dn&&(ee["#text"]=!0),pe&&Ge(ee,["html","head","body"]),ee.table&&(Ge(ee,["tbody"]),delete te.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=B.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else C===void 0&&(C=MP(p,r)),C!==null&&typeof x=="string"&&(x=C.createHTML(""));Jn&&Jn(B),fr=B}},p2=Ge({},["mi","mo","mn","ms","mtext"]),f2=Ge({},["foreignobject","desc","title","annotation-xml"]),mE=Ge({},["title","style","font","a","script"]),Uc=Ge({},sf);Ge(Uc,uf),Ge(Uc,CP);let qg=Ge({},lf);Ge(qg,xP);let gE=function(B){let ge=v(B);(!ge||!ge.tagName)&&(ge={namespaceURI:pr,tagName:"template"});let ie=y0(B.tagName),gt=y0(ge.tagName);return Ga[B.namespaceURI]?B.namespaceURI===Ur?ge.namespaceURI===In?ie==="svg":ge.namespaceURI===Rn?ie==="svg"&&(gt==="annotation-xml"||p2[gt]):!!Uc[ie]:B.namespaceURI===Rn?ge.namespaceURI===In?ie==="math":ge.namespaceURI===Ur?ie==="math"&&f2[gt]:!!qg[ie]:B.namespaceURI===In?ge.namespaceURI===Ur&&!f2[gt]||ge.namespaceURI===Rn&&!p2[gt]?!1:!qg[ie]&&(mE[ie]||!Uc[ie]):!!(Wn==="application/xhtml+xml"&&Ga[B.namespaceURI]):!1},$o=function(B){$u(t.removed,{element:B});try{B.parentNode.removeChild(B)}catch{B.remove()}},zg=function(B,ge){try{$u(t.removed,{attribute:ge.getAttributeNode(B),from:ge})}catch{$u(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(B),B==="is"&&!xe[B])if(J||Ee)try{$o(ge)}catch{}else try{ge.setAttribute(B,"")}catch{}},h2=function(B){let ge,ie;if(ze)B=""+B;else{let Gn=hP(B,/^[\r\n\t ]+/);ie=Gn&&Gn[0]}Wn==="application/xhtml+xml"&&pr===In&&(B=''+B+"");let gt=C?C.createHTML(B):B;if(pr===In)try{ge=new g().parseFromString(gt,Wn)}catch{}if(!ge||!ge.documentElement){ge=w.createDocument(pr,"template",null);try{ge.documentElement.innerHTML=Wa?x:gt}catch{}}let mn=ge.body||ge.documentElement;return B&&ie&&mn.insertBefore(a.createTextNode(ie),mn.childNodes[0]||null),pr===In?A.call(ge,pe?"html":"body")[0]:pe?ge.documentElement:mn},b2=function(B){return T.call(B.ownerDocument||B,B,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},pE=function(B){return B instanceof m&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},jc=function(B){return typeof s=="object"?B instanceof s:B&&typeof B=="object"&&typeof B.nodeType=="number"&&typeof B.nodeName=="string"},Ya=function(B,ge,ie){M[B]&&fP(M[B],gt=>{gt.call(t,ge,ie,fr)})},y2=function(B){let ge;if(Ya("beforeSanitizeElements",B,null),pE(B))return $o(B),!0;let ie=xt(B.nodeName);if(Ya("uponSanitizeElement",B,{tagName:ie,allowedTags:ee}),B.hasChildNodes()&&!jc(B.firstElementChild)&&(!jc(B.content)||!jc(B.content.firstElementChild))&&yr(/<[/\w]/g,B.innerHTML)&&yr(/<[/\w]/g,B.textContent))return $o(B),!0;if(!ee[ie]||te[ie]){if(!te[ie]&&C2(ie)&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie)))return!1;if(dn&&!Vn[ie]){let gt=v(B)||B.parentNode,mn=h(B)||B.childNodes;if(mn&>){let Gn=mn.length;for(let ir=Gn-1;ir>=0;--ir)gt.insertBefore(b(mn[ir],!0),y(B))}}return $o(B),!0}return B instanceof u&&!gE(B)||(ie==="noscript"||ie==="noembed")&&yr(/<\/no(script|embed)/i,B.innerHTML)?($o(B),!0):(he&&B.nodeType===3&&(ge=B.textContent,ge=Vr(ge,I," "),ge=Vr(ge,P," "),ge=Vr(ge,R," "),B.textContent!==ge&&($u(t.removed,{element:B.cloneNode()}),B.textContent=ge)),Ya("afterSanitizeElements",B,null),!1)},v2=function(B,ge,ie){if(ut&&(ge==="id"||ge==="name")&&(ie in a||ie in dE))return!1;if(!($e&&!Me[ge]&&yr(L,ge))&&!(ve&&yr(_,ge))){if(!xe[ge]||Me[ge]){if(!(C2(B)&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,B)||W.tagNameCheck instanceof Function&&W.tagNameCheck(B))&&(W.attributeNameCheck instanceof RegExp&&yr(W.attributeNameCheck,ge)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(ge))||ge==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie))))return!1}else if(!uo[ge]&&!yr(Y,Vr(ie,z,""))&&!((ge==="src"||ge==="xlink:href"||ge==="href")&&B!=="script"&&bP(ie,"data:")===0&&Pu[B])&&!(Z&&!yr(U,Vr(ie,z,"")))&&ie)return!1}return!0},C2=function(B){return B.indexOf("-")>0},x2=function(B){let ge,ie,gt,mn;Ya("beforeSanitizeAttributes",B,null);let{attributes:Gn}=B;if(!Gn)return;let ir={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(mn=Gn.length;mn--;){ge=Gn[mn];let{name:yn,namespaceURI:es}=ge;if(ie=yn==="value"?ge.value:yP(ge.value),gt=xt(yn),ir.attrName=gt,ir.attrValue=ie,ir.keepAttr=!0,ir.forceKeepAttr=void 0,Ya("uponSanitizeAttribute",B,ir),ie=ir.attrValue,ir.forceKeepAttr||(zg(yn,B),!ir.keepAttr))continue;if(!ce&&yr(/\/>/i,ie)){zg(yn,B);continue}he&&(ie=Vr(ie,I," "),ie=Vr(ie,P," "),ie=Vr(ie,R," "));let T2=xt(B.nodeName);if(v2(T2,gt,ie)){if(De&&(gt==="id"||gt==="name")&&(zg(yn,B),ie=Nt+ie),C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!es)switch(p.getAttributeType(T2,gt)){case"TrustedHTML":{ie=C.createHTML(ie);break}case"TrustedScriptURL":{ie=C.createScriptURL(ie);break}}try{es?B.setAttributeNS(es,yn,ie):B.setAttribute(yn,ie),d6(t.removed)}catch{}}}Ya("afterSanitizeAttributes",B,null)},fE=function B(ge){let ie,gt=b2(ge);for(Ya("beforeSanitizeShadowDOM",ge,null);ie=gt.nextNode();)Ya("uponSanitizeShadowNode",ie,null),!y2(ie)&&(ie.content instanceof i&&B(ie.content),x2(ie));Ya("afterSanitizeShadowDOM",ge,null)};return t.sanitize=function(B){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie,gt,mn,Gn;if(Wa=!B,Wa&&(B=""),typeof B!="string"&&!jc(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw el("dirty is not a string, aborting")}else throw el("toString is not a function");if(!t.isSupported)return B;if(ke||Hg(ge),t.removed=[],typeof B=="string"&&(Wt=!1),Wt){if(B.nodeName){let es=xt(B.nodeName);if(!ee[es]||te[es])throw el("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof s)ie=h2(""),gt=ie.ownerDocument.importNode(B,!0),gt.nodeType===1&>.nodeName==="BODY"||gt.nodeName==="HTML"?ie=gt:ie.appendChild(gt);else{if(!J&&!he&&!pe&&B.indexOf("<")===-1)return C&&Ct?C.createHTML(B):B;if(ie=h2(B),!ie)return J?null:Ct?x:""}ie&&ze&&$o(ie.firstChild);let ir=b2(Wt?B:ie);for(;mn=ir.nextNode();)y2(mn)||(mn.content instanceof i&&fE(mn.content),x2(mn));if(Wt)return B;if(J){if(Ee)for(Gn=S.call(ie.ownerDocument);ie.firstChild;)Gn.appendChild(ie.firstChild);else Gn=ie;return(xe.shadowroot||xe.shadowrootmod)&&(Gn=D.call(n,Gn,!0)),Gn}let yn=pe?ie.outerHTML:ie.innerHTML;return pe&&ee["!doctype"]&&ie.ownerDocument&&ie.ownerDocument.doctype&&ie.ownerDocument.doctype.name&&yr(v6,ie.ownerDocument.doctype.name)&&(yn=" +`+yn),he&&(yn=Vr(yn,I," "),yn=Vr(yn,P," "),yn=Vr(yn,R," ")),C&&Ct?C.createHTML(yn):yn},t.setConfig=function(B){Hg(B),ke=!0},t.clearConfig=function(){fr=null,ke=!1},t.isValidAttribute=function(B,ge,ie){fr||Hg({});let gt=xt(B),mn=xt(ge);return v2(gt,mn,ie)},t.addHook=function(B,ge){typeof ge=="function"&&(M[B]=M[B]||[],$u(M[B],ge))},t.removeHook=function(B){if(M[B])return d6(M[B])},t.removeHooks=function(B){M[B]&&(M[B]=[])},t.removeAllHooks=function(){M={}},t}var lt=C6();var PP=Object.create,pf=Object.defineProperty,RP=Object.getOwnPropertyDescriptor,IP=Object.getOwnPropertyNames,FP=Object.getPrototypeOf,BP=Object.prototype.hasOwnProperty,ff=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_P=(e,t)=>{for(var n in t)pf(e,n,{get:t[n],enumerable:!0})},gf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of IP(t))!BP.call(e,a)&&a!==n&&pf(e,a,{get:()=>t[a],enumerable:!(r=RP(t,a))||r.enumerable});return e},OP=(e,t,n)=>(gf(e,t,"default"),n&&gf(n,t,"default")),T6=(e,t,n)=>(n=e!=null?PP(FP(e)):{},gf(t||!e||!e.__esModule?pf(n,"default",{value:e,enumerable:!0}):n,e)),NP=ff((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var m=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(m,l)}else{for(var g=this._doc.createElement("span");l.firstChild;)g.appendChild(l.firstChild);l.parentNode.replaceChild(g,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),m=l.getAttribute("poster"),g=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),m&&l.setAttribute("poster",o(m)),g){var p=g.replace(this.REGEXPS.srcsetUrl,function(f,b,y,h){return o(b)+(y||"")+h});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var m=r.getElementsByTagName("h1");m.length===1&&(a=this._getInnerText(m[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var g=s(a);return g<=4&&(!o||g!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let ze=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(ze&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),ze=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var m=null,g=l.firstChild;g;){var p=g.nextSibling;if(this._isPhrasingContent(g))m!==null?m.appendChild(g):this._isWhitespace(g)||(m=a.createElement("p"),l.replaceChild(m,g),m.appendChild(g));else if(m!==null){for(;m.lastChild&&this._isWhitespace(m.lastChild);)m.removeChild(m.lastChild);m=null}g=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var f=l.children[0];l.parentNode.replaceChild(f,l),l=f,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(J){if(!(!J.parentNode||typeof J.parentNode.tagName>"u")){var Ee=this._getInnerText(J);if(!(Ee.length<25)){var Ct=this._getNodeAncestors(J,5);if(Ct.length!==0){var ut=0;ut+=1,ut+=Ee.split(",").length,ut+=Math.min(Math.floor(Ee.length/100),3),this._forEachNode(Ct,function(De,Nt){if(!(!De.tagName||!De.parentNode||typeof De.parentNode.tagName>"u")){if(typeof De.readability>"u"&&(this._initializeNode(De),b.push(De)),Nt===0)var dn=1;else Nt===1?dn=2:dn=Nt*3;De.readability.contentScore+=ut/dn}})}}}});for(var y=[],h=0,v=b.length;hT.readability.contentScore){y.splice(w,0,C),y.length>this._nbTopCandidates&&y.pop();break}}}var S=y[0]||null,A=!1,D;if(S===null||S.tagName==="BODY"){for(S=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),S.appendChild(r.firstChild);r.appendChild(S),this._initializeNode(S)}else if(S){for(var M=[],I=1;I=.75&&M.push(this._getNodeAncestors(y[I]));var P=3;if(M.length>=P)for(D=S.parentNode;D.tagName!=="BODY";){for(var R=0,L=0;L=P){S=D;break}D=D.parentNode}S.readability||this._initializeNode(S),D=S.parentNode;for(var _=S.readability.contentScore,U=_/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var z=D.readability.contentScore;if(z_){S=D;break}_=D.readability.contentScore,D=D.parentNode}for(D=S.parentNode;D.tagName!="BODY"&&D.children.length==1;)S=D,D=S.parentNode;S.readability||this._initializeNode(S)}var Y=a.createElement("DIV");i&&(Y.id="readability-content");var ee=Math.max(10,S.readability.contentScore*.2);D=S.parentNode;for(var Re=D.children,xe=0,H=Re.length;xe=ee)te=!0;else if(W.nodeName==="P"){var ve=this._getLinkDensity(W),$e=this._getInnerText(W),Z=$e.length;(Z>80&&ve<.25||Z<80&&Z>0&&ve===0&&$e.search(/\.( |$)/)!==-1)&&(te=!0)}}te&&(this.log("Appending node:",W),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(W.nodeName)===-1&&(this.log("Altering sibling:",W,"to div."),W=this._setNodeTag(W,"DIV")),Y.appendChild(W),Re=D.children,xe-=1,H-=1)}if(this._debug&&this.log("Article content pre-prep: "+Y.innerHTML),this._prepArticle(Y),this._debug&&this.log("Article content post-prep: "+Y.innerHTML),A)S.id="readability-page-1",S.className="page";else{var ce=a.createElement("DIV");for(ce.id="readability-page-1",ce.className="page";Y.firstChild;)ce.appendChild(Y.firstChild);Y.appendChild(ce)}this._debug&&this.log("Article content after paging: "+Y.innerHTML);var he=!0,pe=this._getInnerText(Y,!0).length;if(pe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(g){return(g["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,m=this._textSimilarity(u.headline,l)>.75;m&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(g){return g&&typeof g.name=="string"}).map(function(g){return g.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(g){this.log(g.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),m=l.getAttribute("property"),g=l.getAttribute("content");if(g){var p=null,f=null;m&&(p=m.match(s),p&&(f=p[0].toLowerCase().replace(/\s/g,""),i[f]=g.trim())),!p&&c&&u.test(c)&&(f=c,g&&(f=f.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[f]=g.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var m=["col","colgroup","tfoot","thead","th"],g=function(f){return!!o.getElementsByTagName(f)[0]};if(m.some(g)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var m=0;if(c+m<0)return!0;if(this._getCharCount(i,",")<10){for(var g=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,f=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,y=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),h=0,v=this._getAllNodesWithTag(i,["object","embed","iframe"]),C=0;C1&&g/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&f>g||b>Math.floor(g/3)||!s&&y<.9&&T<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||h===1&&T<75||h>1;if(s&&S){for(var A=0;A1)return S;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return S}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),UP=ff((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(g){c.add(g.parentNode)}),u=Array.from(c)}var m=0;return[].some.call(u,function(g){if(!o.visibilityChecker(g))return!1;var p=g.className+" "+g.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||g.matches("li p"))return!1;var f=g.textContent.trim().length;return fo.minScore)})}typeof t=="object"&&(t.exports=a)}),S6=ff((e,t)=>{var n=NP(),r=UP();t.exports={Readability:n,isProbablyReaderable:r}}),w6={};_P(w6,{Readability:()=>v0,default:()=>k6,isProbablyReaderable:()=>A6});var E6=T6(S6());OP(w6,T6(S6()));var{Readability:v0,isProbablyReaderable:A6}=E6,{default:x6,...jP}=E6,k6=x6!==void 0?x6:jP;var hf=g0.alert;function Se(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var we=Se();function X(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):we.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Ta(){return we.PROD==="1"}function bf(){return we.PROD_API==="1"}function D6(){return we.HAS_CSP_ERROR=="1"}function He(){if(we.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function fs(){return we.IMMERSIVE_TRANSLATE_SAFARI==="1"}function C0(){return typeof Deno<"u"}var $K=Se().PROD==="1",hs=Se().PROD!=="1";function x0(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function tl(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}function yf(){return we.IMMERSIVE_TRANSLATE_JSSDK==="1"}var re="immersiveTranslate",vo="Immersive Translate",F="immersive-translate",A0="imt",Co="immersivetranslate",L6="pdf/index.html";var et="immersivetranslate.com",HP=`https://config.${et}/`,rY=`https://app.${et}/`,Q=Ta()||bf()?`https://${et}/`:`https://test.${et}/`,bs=`https://dash.${et}/`,ct=Ta()||bf()?`https://api2.${et}/`:`https://test-api2.${et}/`,nl=`https://github.com/${F}/${F}/`,xn=`https://s.${et}/`,aY=`https://onboarding.${et}/`,M6=re+"DeeplGlobalState",vf=re+"BingGlobalState",Cf=re+"YandexGlobalState",xf=re+"BaiduQianfanGlobalConfigStorageKey",P6=re+"SiliconCloudGlobalConfigStorageKey",R6=re+"ZhipuGlobalConfigStorageKey",k0="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",Ai=re+"GoogleAccessToken",rl=re+"AuthFlow",D0=F+"-config-latest.json",Tf=re+"AuthState",L0=re+"IframeMessage",iY=re+"WaitForRateLimit",I6=re+"DocumentMessageAsk",tn=re+"DocumentMessageTellThirdParty",sr=re+"showError",xo=re+"showModal",M0=re+"showToast",F6=re+"DocumentMessageThirdPartyTell",B6=re+"DocumentMessageEventUpload",oY=re+"DocumentMessageTypeStopJsSDK",qP=re+"DocumentMessageHandler",P0=re+"DocumentSetFloatBallActive",R0=`${re}Share`,I0=`${re}ShowFloatBallGuide`,ys=re+"DocumentMessageTempEnableSubtitleChanged",al=`${re}ToggleMouseHoverTranslateDirectly`,_6=`${re}ReqDraft`,O6=`${re}ResDraft`,zP=`${re}Container`,N6=`${re}SpecifiedContainer`,F0="buildinConfig",vs="localConfig",il="openOptionsPage",ol="translateMangaMenuId",Sf="openAboutPage",U6="translateLocalPdfFile",sl="openEbookViewer",ul="openEbookBuilder";var To=`${re}PageTranslatedStatus`,ll=`${re}MangaTranslatedStatus`,sY=`${re}PageUrlChanged`,Gr=`${re}ReceiveCommand`,j6=re+"LastUseMouseHoverTime",wf=re+"LastUseInputTime",Pr=re+"LastUseManualTranslatePageTime",uY=`${re}PopupReceiveMessage`,So=re+"DocumentMessageEventTogglePopup",ki=`${HP}default_config.json`,lY=`${re}Mark`,vr=`${re}Root`,H6=`${re}Walked`,cY=`data-${F}-walked`,q6=`${re}Paragraph`,z6=`data-${F}-paragraph`,Cs=`data-${F}-translation-element-mark`,V6=`${re}TranslationElementMark`,dY=`${re}TranslatedMark`,Ef=`${F}-input-injected-css`,W6=`${re}LoadingId`,Af=`data-${F}-loading-id`,G6=`${re}ErrorId`,B0=`data-${F}-error-id`,VP=`${re}AtomicBlockMark`,K6=`${re}ExcludeMark`,mY=`data-${F}-exclude-mark`,WP=`${re}StayOriginalMark`,gY=`${re}PreWhitespaceMark`,_0=`${re}InlineMark`,Y6=`${re}BlockMark`,pY=`${re}Left`,fY=`${re}Right`,hY=`${re}Width`,bY=`${re}Height`,yY=`${re}Top`,vY=`${re}FontSize`,Q6="lastRunTime";var CY=`${re}GlobalStyleMark`,xs=["@","#"],O0=" --- ",J6=` +`,Yt=`${F}-target-wrapper`,xY=`${F}-pdf-target-container`,N0=`${F}-target-inner`,TY=`${F}-source-wrapper`,kf=`${F}-target-translation-block-wrapper`,SY=`${F}-root-translation-theme`,Ts=`${re}RootTranslationTheme`,Z6=`${F}-target-translation-vertical-block-wrapper`,wY=`${F}-target-translation-pdf-block-wrapper`,X6=`${F}-target-translation-pre-whitespace`,Df=`${F}-target-translation-inline-wrapper`,Lf=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],cl={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var U0=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],$6=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",bs,bs+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Di="zh-CN",dl=Q+"docs/communities/",ey=nl+"issues/1809",ty=nl+"issues/1179",j0={type:re+"ChildFrameToRootFrameIdentifier"},Mf=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],ni=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],ny=["ctrl","alt","shift","cmd","command","option","control"],H0=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],q0=Ta()?bs+"#general":"http://localhost:8000/dist/userscript/options/#general",ml="user_from_plugin",pt="user_info",Ss=Q+"accounts/login?from=plugin",Pf=bs+"#general",ry=Q+"accounts/login?from=plugin&return_url="+encodeURIComponent(Pf),ay=Ss+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",iy=Ss+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Li=Q+"profile/",gl=Q+"auth/pricing/",Ln=Q+"pricing/",GP=Q+"download/",KP=Q+"topup?type=open_ai&",YP=Q+"topup?type=deepl&",oy=Q+"topup?type=comics&",EY=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",sy=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",uy=GP+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",AY=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",z0=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Rf=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",kY=Li+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",ly=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",cy=KP+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",dy=YP+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",my=Q+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",gy=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",If=Li+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Ff=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Bf=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",pl=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",py=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=",fl=Q+"docs/usage/",_f=Q+"docs/communities/",hl=Se().TRANSLATE_FILE_URL,fy=hl+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",hy=hl+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",by=`${hl}download-subtitle/`,yy=`${hl}pdf-pro/`,bl=`${hl}text/`,ri=["deepl","openai","gemini","claude"],vy="G-BHWL0KMJB8",Cy="7pr-olTJR6GKAjIW48UD0Q",T0="G-MKMD9LWFTR",S0="sitc4WmvShWYwfU0dANM3Q",w0="G-V5H2F5MJFJ",E0="UBjpGOLISEaY5LVXNj3WvQ",xy="G-0LPWNREXBB",Ty="JVF4YeOaTVyDV27CTLhPtQ";function Sy(){return yf()?[{measurementId:vy,apiSecret:Cy}]:Ta?[{measurementId:T0,apiSecret:S0},{measurementId:w0,apiSecret:E0}]:[{measurementId:T0,apiSecret:S0},{measurementId:w0,apiSecret:E0}]}function yl(){return yf()?[`https://www.google-analytics.com/mp/collect?measurement_id=${vy}&api_secret=${Cy}`]:Ta?[`https://www.google-analytics.com/mp/collect?measurement_id=${T0}&api_secret=${S0}`,`https://www.google-analytics.com/mp/collect?measurement_id=${w0}&api_secret=${E0}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${T0}&api_secret=${S0}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${w0}&api_secret=${E0}`]}var vl=`https://analytics.${et}/collect`,DY=`${Q}activities/components/image-pro`;var wy="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",Ey="0VmM83i2D1ICuYBf",V0=`[${A0}-ctx-divider]`,W0=`${A0}_context_preview`,Ay=`\u{1F44B} \u563F\uFF0C\u4F60\u53D1\u73B0\u4E86\u5F69\u86CB\uFF01 \u65E2\u7136\u88AB\u4F60\u53D1\u73B0\u4E86\uFF0C\u4E0D\u5982\u770B\u770B\u6211\u4EEC\u7684\u804C\u4F4D\uFF1F \u5173\u4E8E\u6211\u4EEC: @@ -5509,27 +5509,27 @@ select.text-gray-6 { \u6B22\u8FCE\u52A0\u5165\u6211\u4EEC\uFF01 \u{1F4EE} \u6295\u9012\u7B80\u5386: hr@immersivetranslate.com - \u{1FAE1} \u4E86\u89E3\u66F4\u591A: https://immersivetranslate.com/zh-Hans/docs/joinUs/`;var ws=console,Of=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=Mr.green;r>1e4?a=Mr.red:r>1e3&&(a=Mr.yellow),ws.debug(Mr.dim(vo+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},xl=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&ws.log(Mr.dim(vo+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&ws.log(Mr.green(vo+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&ws.warn(Mr.yellow(vo+" WARN:"),...t)}error(...t){this.#e<=3&&ws.error(Mr.red(vo+" ERROR:"),...t)}fatal(...t){this.#e<=4&&ws.error(Mr.red(vo+" FATAL:"),...t)}timing(){return this.level===0?new Of:{reset:()=>{},stop:()=>{}}}},k=new xl;function St(){try{let e=[Te().EBOOK_BUILDER_URL,Te().EBOOK_VIEWER_URL,Te().SUBTITLE_BUILDER_URL,Te().HTML_VIEWER_URL,Te().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+et];Ta()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var sr=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Nf={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},Ly={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Uf={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},jf={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function ae(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sr.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":sr[a]}else return"auto";else return sr[r]}function Ht(){return ae(document?.documentElement?.lang||"en")}var Hf=/iPhone/i,My=/iPod/i,Py=/iPad/i,Ry=/\biOS-universal(?:.+)Mac\b/i,qf=/\bAndroid(?:.+)Mobile\b/i,Iy=/Android/i,Es=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,K0=/Silk/i,ii=/Windows Phone/i,Fy=/\bWindows(?:.+)ARM\b/i,By=/BlackBerry/i,_y=/BB10/i,Oy=/Opera Mini/i,Ny=/\b(CriOS|Chrome)(?:.+)Mobile/i,Uy=/Mobile(?:.+)Firefox\b/i,jy=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function JP(e){return t=>t.test(e)}function qe(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=JP(n),i={apple:{phone:a(Hf)&&!a(ii),ipod:a(My),tablet:!a(Hf)&&(a(Py)||jy(t))&&!a(ii),universal:a(Ry),device:(a(Hf)||a(My)||a(Py)||a(Ry)||jy(t))&&!a(ii)},amazon:{phone:a(Es),tablet:!a(Es)&&a(K0),device:a(Es)||a(K0)},android:{phone:!a(ii)&&a(Es)||!a(ii)&&a(qf),tablet:!a(ii)&&!a(Es)&&!a(qf)&&(a(K0)||a(Iy)),device:!a(ii)&&(a(Es)||a(K0)||a(qf)||a(Iy))||a(/\bokhttp\b/i)},windows:{phone:a(ii),tablet:a(Fy),device:a(ii)||a(Fy)},other:{blackberry:a(By),blackberry10:a(_y),opera:a(Oy),firefox:a(Uy),chrome:a(Ny),device:a(By)||a(_y)||a(Oy)||a(Uy)||a(Ny)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var zf="DENO",Y0="CHROME",Q0="FIREFOX";function Hy(e){let t=Y0;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Q0:/deno/i.test(n)&&(t=zf)}catch{}return e===Y0&&t===Y0||e===Q0&&t===Q0||e===zf&&t===zf}function J0(){return Hy(Y0)}function qy(){return typeof Deno<"u"}function Xn(){return Te().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:Hy(Q0)}function xr(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function zy(){return!!globalThis.matchMedia("(pointer:fine)").matches}function Yr(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var Vy={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Wy={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Vy,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:Vy,query:()=>{},sendMessage:()=>{}}};var j;qy()?j=Wy:j=globalThis.immersiveTranslateBrowserAPI;var wo=re+"CacheKey_";function Eo(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function ZP(){let e=j.storage.local.refresh;e&&e()}function Vf(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wo)).filter(r=>r!==wo+pt);if(n.length>0)return j.storage.local.remove(n)}}var nt={get:Eo,set:Ao,getExpired:Vf,setExpired:Wf,remove:Gf,clear:Kf,refresh:ZP};function kt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Gy(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function Ky(e){if(e){let t=new Date(e.createTime),n=XP(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function XP(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function As(e){if(e?.isPro)return!0;let t=await nt.get(pt,null);return kt(t)}var Yy=re+"SyncStoreKey_";function Pt(e,t){let n=Yy+e;return j.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function Qe(e,t){let n=Yy+e;return j.storage.sync.set({[n]:t})}var Qy=re+"StoreKey_";function ko(e,t){let n=Qy+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Jy(e,t){let n=Qy+e;return j.storage.local.set({[n]:t})}var SQ=Xy(2),Zy=Xy(3);function Xy(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var $P=/\s+/g,eR=/[\t\n\v\f\r ]+/g;function $y(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?tR:nR;return String(e).replace(t.style==="html"?eR:$P,t.trim?rR(n):n)}function tR(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function nR(){return" "}function rR(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var e5={}.hasOwnProperty;function aR(e){return e==null?"":$y(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function iR(e){return Zy(" "+aR(e)+" ")}function oR(e){let t=iR(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function gR(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function pR(e,t,n,r){t=hR(t,n,r);let a=[],i;if(t)for(i in t)Z0.call(t,i)&&a.push([i,fR(e,t[i])]);return a.length===0?Qf():a.sort(bR)}function fR(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of kR){let u=s[1],l=s[0],c=e.match(u),m=c?c.length:0;o[l]=m,m>n&&(n=m,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?u5(e)?"zh-TW":"zh-CN":t:"auto"}var c5=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Jf=new Map(c5),DR=new Map(c5.map(([e,t])=>[t,e]));function d5(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>DR.get(s));!t&&t!==0&&(t=25);let a=$0(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Jf.keys()]},o=r5(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(m=="eng"&&g<.95)break;return Jf.get(m)}}let[s,u]=o[0],l=Jf.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}function Mi(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function LR(e,t){return e<>>32-t}function td(e,t,n,r,a,i){return Mi(LR(Mi(Mi(t,e),Mi(r,i)),a),n)}function On(e,t,n,r,a,i,o){return td(t&n|~t&r,e,t,a,i,o)}function Nn(e,t,n,r,a,i,o){return td(t&r|n&~r,e,t,a,i,o)}function Un(e,t,n,r,a,i,o){return td(t^n^r,e,t,a,i,o)}function jn(e,t,n,r,a,i,o){return td(n^(t|~r),e,t,a,i,o)}function ed(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Zf(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=ed(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=ed(a.concat(Zf(t)),512+t.length*8),m5(ed(i.concat(o),512+128))}function g5(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Xf(e){return unescape(encodeURIComponent(e))}function p5(e){return MR(Xf(e))}function RR(e){return g5(p5(e))}function f5(e,t){return PR(Xf(e),Xf(t))}function IR(e,t){return g5(f5(e,t))}function Sr(e,t,n){return t?n?f5(t,e):IR(t,e):n?p5(e):RR(e)}var nd=["caiyun","cai"],h5=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],ks={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: + \u{1FAE1} \u4E86\u89E3\u66F4\u591A: https://immersivetranslate.com/zh-Hans/docs/joinUs/`;var ws=console,Of=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=Lr.green;r>1e4?a=Lr.red:r>1e3&&(a=Lr.yellow),ws.debug(Lr.dim(vo+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Cl=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&ws.log(Lr.dim(vo+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&ws.log(Lr.green(vo+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&ws.warn(Lr.yellow(vo+" WARN:"),...t)}error(...t){this.#e<=3&&ws.error(Lr.red(vo+" ERROR:"),...t)}fatal(...t){this.#e<=4&&ws.error(Lr.red(vo+" FATAL:"),...t)}timing(){return this.level===0?new Of:{reset:()=>{},stop:()=>{}}}},k=new Cl;function Tt(){try{let e=[Se().EBOOK_BUILDER_URL,Se().EBOOK_VIEWER_URL,Se().SUBTITLE_BUILDER_URL,Se().HTML_VIEWER_URL,Se().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+et];Ta()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var ur=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Nf={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},ky={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Uf={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},jf={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function ae(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=ur.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":ur[a]}else return"auto";else return ur[r]}function Ht(){return ae(document?.documentElement?.lang||"en")}var Hf=/iPhone/i,Dy=/iPod/i,Ly=/iPad/i,My=/\biOS-universal(?:.+)Mac\b/i,qf=/\bAndroid(?:.+)Mobile\b/i,Py=/Android/i,Es=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,G0=/Silk/i,ai=/Windows Phone/i,Ry=/\bWindows(?:.+)ARM\b/i,Iy=/BlackBerry/i,Fy=/BB10/i,By=/Opera Mini/i,_y=/\b(CriOS|Chrome)(?:.+)Mobile/i,Oy=/Mobile(?:.+)Firefox\b/i,Ny=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function QP(e){return t=>t.test(e)}function qe(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=QP(n),i={apple:{phone:a(Hf)&&!a(ai),ipod:a(Dy),tablet:!a(Hf)&&(a(Ly)||Ny(t))&&!a(ai),universal:a(My),device:(a(Hf)||a(Dy)||a(Ly)||a(My)||Ny(t))&&!a(ai)},amazon:{phone:a(Es),tablet:!a(Es)&&a(G0),device:a(Es)||a(G0)},android:{phone:!a(ai)&&a(Es)||!a(ai)&&a(qf),tablet:!a(ai)&&!a(Es)&&!a(qf)&&(a(G0)||a(Py)),device:!a(ai)&&(a(Es)||a(G0)||a(qf)||a(Py))||a(/\bokhttp\b/i)},windows:{phone:a(ai),tablet:a(Ry),device:a(ai)||a(Ry)},other:{blackberry:a(Iy),blackberry10:a(Fy),opera:a(By),firefox:a(Oy),chrome:a(_y),device:a(Iy)||a(Fy)||a(By)||a(Oy)||a(_y)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var zf="DENO",K0="CHROME",Y0="FIREFOX";function Uy(e){let t=K0;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Y0:/deno/i.test(n)&&(t=zf)}catch{}return e===K0&&t===K0||e===Y0&&t===Y0||e===zf&&t===zf}function Q0(){return Uy(K0)}function jy(){return typeof Deno<"u"}function Zn(){return Se().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:Uy(Y0)}function Cr(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Hy(){return!!globalThis.matchMedia("(pointer:fine)").matches}function Kr(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var qy={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},zy={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:qy,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:qy,query:()=>{},sendMessage:()=>{}}};var j;jy()?j=zy:j=globalThis.immersiveTranslateBrowserAPI;var wo=re+"CacheKey_";function Eo(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function JP(){let e=j.storage.local.refresh;e&&e()}function Vf(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wo)).filter(r=>r!==wo+pt);if(n.length>0)return j.storage.local.remove(n)}}var nt={get:Eo,set:Ao,getExpired:Vf,setExpired:Wf,remove:Gf,clear:Kf,refresh:JP};function kt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Vy(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function Wy(e){if(e){let t=new Date(e.createTime),n=ZP(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function ZP(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function As(e){if(e?.isPro)return!0;let t=await nt.get(pt,null);return kt(t)}var Gy=re+"SyncStoreKey_";function Pt(e,t){let n=Gy+e;return j.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function rt(e,t){let n=Gy+e;return j.storage.sync.set({[n]:t})}var Ky=re+"StoreKey_";function ko(e,t){let n=Ky+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Yy(e,t){let n=Ky+e;return j.storage.local.set({[n]:t})}var SQ=Jy(2),Qy=Jy(3);function Jy(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var XP=/\s+/g,$P=/[\t\n\v\f\r ]+/g;function Zy(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?eR:tR;return String(e).replace(t.style==="html"?$P:XP,t.trim?nR(n):n)}function eR(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function tR(){return" "}function nR(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var Xy={}.hasOwnProperty;function rR(e){return e==null?"":Zy(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function aR(e){return Qy(" "+rR(e)+" ")}function iR(e){let t=aR(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function mR(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function gR(e,t,n,r){t=fR(t,n,r);let a=[],i;if(t)for(i in t)J0.call(t,i)&&a.push([i,pR(e,t[i])]);return a.length===0?Qf():a.sort(hR)}function pR(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of AR){let u=s[1],l=s[0],c=e.match(u),m=c?c.length:0;o[l]=m,m>n&&(n=m,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?o5(e)?"zh-TW":"zh-CN":t:"auto"}var u5=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Jf=new Map(u5),kR=new Map(u5.map(([e,t])=>[t,e]));function l5(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>kR.get(s));!t&&t!==0&&(t=25);let a=X0(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Jf.keys()]},o=t5(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(m=="eng"&&g<.95)break;return Jf.get(m)}}let[s,u]=o[0],l=Jf.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}function Mi(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function DR(e,t){return e<>>32-t}function ed(e,t,n,r,a,i){return Mi(DR(Mi(Mi(t,e),Mi(r,i)),a),n)}function _n(e,t,n,r,a,i,o){return ed(t&n|~t&r,e,t,a,i,o)}function On(e,t,n,r,a,i,o){return ed(t&r|n&~r,e,t,a,i,o)}function Nn(e,t,n,r,a,i,o){return ed(t^n^r,e,t,a,i,o)}function Un(e,t,n,r,a,i,o){return ed(n^(t|~r),e,t,a,i,o)}function $0(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Zf(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=$0(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=$0(a.concat(Zf(t)),512+t.length*8),c5($0(i.concat(o),512+128))}function d5(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Xf(e){return unescape(encodeURIComponent(e))}function m5(e){return LR(Xf(e))}function PR(e){return d5(m5(e))}function g5(e,t){return MR(Xf(e),Xf(t))}function RR(e,t){return d5(g5(e,t))}function xr(e,t,n){return t?n?g5(t,e):RR(t,e):n?m5(e):PR(e)}var td=["caiyun","cai"],p5=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],ks={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Qr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:Q+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Yr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:Q+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:Q+"docs/services/deepL/",link1:"https://www.deepl.com/zh/whydeepl",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_deepl",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:Q+"docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password",sensitive:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!1}]},openai:{ai:!0,name:"Open AI",homepage:"https://openai.com/api/",docUrl:Q+"docs/services/openai/",link1:"https://readit.plus/a/GKQas/understanding-chatgpt",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_openai",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:Q+"docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo-1106",providers:["custom"],options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom"],label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{providers:["custom","pro"],label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4-1106-preview",value:"gpt-4-1106-preview"},{providers:["custom"],label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{providers:["custom"],label:"gpt-4o",value:"gpt-4o"},{providers:["custom"],label:"gpt-4o-mini",value:"gpt-4o-mini"},{providers:["custom"],label:"gpt-4-turbo",value:"gpt-4-turbo"},{providers:["custom"],label:"gpt-4",value:"gpt-4"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",default:10,providers:["custom"]},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/openai/",optional:!0,providers:["custom"]},{name:"enableAIContext",labelKey:"field.enableAIContext",descriptionKey:"description.enableAIContext",required:!1,type:"boolean",default:!1,optional:!1},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},gemini:{ai:!0,name:"Gemini",homepage:"https://ai.google.dev/aistudio/",docUrl:Q+"docs/services/gemini/",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_gemini",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"geminiCustomDescription",descriptionLink1:"https://ai.google.dev/aistudio/",descriptionLink2:Q+"docs/services/gemini/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",providers:["custom"],options:[{label:"gemini-1.5-pro-latest",value:"gemini-1.5-pro-latest"},{label:"gemini-1.5-flash",value:"gemini-1.5-flash"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/gemini/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},claude:{ai:!0,name:"Claude",homepage:"https://www.anthropic.com/",docUrl:Q+"docs/services/claude/",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_claude",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"claudeCustomDescription",descriptionLink1:"https://www.anthropic.com/",descriptionLink2:Q+"docs/services/claude/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"claude-3-haiku-20240307",providers:["custom"],options:[{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-5-sonnet-20240620",value:"claude-3-5-sonnet-20240620"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"claude-2.1",value:"claude-2.1"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",providers:["custom"],descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:10,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.anthropic.com/v1/messages",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/claude/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},siliconcloud:{ai:!0,name:"siliconcloud",homepage:"https://cloud.siliconflow.cn/",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],default:"Qwen/Qwen2.5-7B-Instruct",options:[{label:"Qwen/Qwen2.5-7B-Instruct",value:"Qwen/Qwen2.5-7B-Instruct"},{label:"meta-llama/Meta-Llama-3.1-8B-Instruct",value:"meta-llama/Meta-Llama-3.1-8B-Instruct"},{label:"THUDM/glm-4-9b-chat",value:"THUDM/glm-4-9b-chat"},{label:"google/gemma-2-9b-it",value:"google/gemma-2-9b-it"},{label:"01-ai/Yi-1.5-9B-Chat-16K",value:"01-ai/Yi-1.5-9B-Chat-16K"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"APIKEY",descriptionKey:"description.siliconcloudCustomAPIKey",descriptionLink1:"https://siliconflow.cn/",providers:["custom"],required:!1,type:"password",sensitive:!0,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0,default:5},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},yandex:{name:"Yandex",homepage:"https://translate.yandex.com/"},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},lingyiwanwu:{ai:!0,name:"lingyiwanwu",homepage:"https://platform.lingyiwanwu.com/docs",docUrl:Q+"docs/services/lingyiwanwu/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"yi-large",value:"yi-large"},{label:"yi-large-turbo",value:"yi-large-turbo"},{label:"yi-large-rag",value:"yi-large-rag"},{label:"yi-medium",value:"yi-medium"},{label:"yi-medium-200k",value:"yi-medium-200k"},{label:"yi-spark",value:"yi-spark"},{label:"yi-vision",value:"yi-vision"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:Q+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:Q+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:Q+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:Q+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:Q+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:Q+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:Q+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:Q+"docs/services/custom/",docUrl:Q+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:xs,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:Q+"docs/services/openL/",beta:!0,allProps:[...h5,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:h5},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:Q+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:Q+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":ks,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:Q+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:Q+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:Q+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:Q+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:Q+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:Q+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:Q+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:Q+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:Q+"docs/services/custom/",docUrl:Q+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:xs,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:Q+"docs/services/openL/",beta:!0,allProps:[...p5,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:p5},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:Q+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:Q+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":ks,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:Q+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},"aliyun-bailian":{ai:!0,name:"aliyun-bailian",homepage:"https://bailian.console.aliyun.com/",docUrl:Q+"docs/services/aliyun-bailian/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"qwen-long",options:[{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-long",value:"qwen-long"},{label:"qwen-max",value:"qwen-max"},{label:"qwen1.5-7b-chat",value:"qwen1.5-7b-chat"},{label:"qwen1.5-14b-chat",value:"qwen1.5-14b-chat"},{label:"qwen1.5-32b-chat",value:"qwen1.5-32b-chat"},{label:"qwen1.5-72b-chat",value:"qwen1.5-72b-chat"},{label:"qwen1.5-110b-chat",value:"qwen1.5-110b-chat"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:Q+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:Q+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function FR(e,t,n=!1){let r=[];for(let u=0;u=0&&u=0&&lc.length&&(c.length=f.length,c.previous=[g,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function b5(e,t,n=!1){let r=FR(e,t,n),a=[],i=0,o=0,s=0;for(;i=1024&&ru+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function BR(e,t){let n=[],r=[];for(let a=0;a0?h=0&&u=0&&lc.length&&(c.length=f.length,c.previous=[g,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function f5(e,t,n=!1){let r=IR(e,t,n),a=[],i=0,o=0,s=0;for(;i=1024&&ru+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function FR(e,t){let n=[],r=[];for(let a=0;a0?bt){let v=[];$f(y,t,v);for(let C=0;C0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&$f(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:b.i18n?.[r]?.name||b.name,value:b.id}))?.filter(b=>b.label&&b.value)||[];if(y.length>0){let b=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];y.length>1&&b.push({label:"aiAssistant.auto",value:"auto"});let v={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:_R([...b,...y,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(v),o.props=[v]}}let f=[],h=[];if(l||m==="pro"&&(c=!1),p.length>0){p.forEach(b=>{g.length>0&&b.providers&&b.providers.length>0&&!b.providers.includes(m)||(b.optional?h.push(b):f.push(b))});let y=h.concat(f).filter(b=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(b.name,s.model,b.required)));if(y.length>0){for(let b of y)if(!s[b.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:m,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:f}}var Ds=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=kt(u),c=Object.keys(Qr);t!=="translationService"&&c.unshift("inherit");let m=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...m].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&He()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let f=Qr[p];e.config.translationServices[p]?.type=="custom-ai"&&(f=ks);let h=e4(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||g(f,p)?h:null}).filter(p=>!!p);function g(p,f){let h=!!p.canary,y=!!p.alpha,b=!!p.beta;return f===e[t]||h&&o||y&&(a||o)||b&&(i||a||o)?!0:!y&&!b&&!h}};function Ls(e,t,n){return Ds(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:t4(r.config,n))}function t4(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Ms(e,t,n="en",r){return Ds(e,t,n).find(o=>o.id===r)}function wl(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function v5(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function rd(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=ai.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function _R(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function OR(e,t){let n=b5(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function ad(e,t){return e?`
-
${OR(t,e)}
-
${t}
`:t}function Ps(e){let t=location.search.includes(G0);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var Rs=[],fJ=1e3*3600*24;async function El(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function id(e){let t=`${F}-${e.service}@${e.from}->${e.to}`;return await UR(t,{...e,createAt:new Date().getTime()})}async function od(e){let t=Sr(e.originalText),n=`${F}-${e.service}@${e.from}->${e.to}`;return await NR(n,t)}async function NR(e,t){let n=await El(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function UR(e,t){let n=await El(e);return(await n4()).includes(e)||await jR(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function jR(e){let t="cache_list",n=await El(F+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Rs.push(e)},a.onerror=i=>{n.close()}}async function n4(){if(Rs&&Rs.length>0)return Rs;let e=await El(F+"-cacheList","cache_list");return Rs=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Rs}async function sd(){try{let e=[];(await n4()).forEach(r=>{e.push(HR(r))});let n=await Promise.all(e);return Tl(n.reduce((r,a)=>r+a,0))}catch{return Tl(0)}}async function HR(e){let t=await El(e),r=[...t.objectStoreNames].reduce((o,s)=>{let u=qR(t,s);return o.push(u),o},[]),a=await Promise.all(r);return t.close(),a.reduce((o,s)=>o+s,0)}async function qR(e,t){return await new Promise((n,r)=>{try{if(e==null)return r();let a=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=o=>{try{let s=i.result;if(s){let u=s.value,l=JSON.stringify(u);a+=l.length,s.continue()}else n(a)}catch(s){r(s)}},i.onerror=o=>r("error in "+t+": "+o)}catch(a){r(a)}})}async function C5(){try{let t=(await n4()).map(r=>zR(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function zR(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var ud="Original";function st(){return ud}function $n(e){ud=e,S5(ud);let t=new CustomEvent(tn,{detail:JSON.stringify({type:"updatePageStatus",payload:ud})});document.dispatchEvent(t)}var x5="Original";function Is(){return x5}function Ir(e,t){if(t)return;x5=e;let n=new CustomEvent(ll,{detail:e});document.dispatchEvent(n)}var w5="auto",ld="auto",T5="auto";function E5(e){w5=e}function Tr(e){ld=e}function Lt(){return ld!=="auto"?ld:T5!=="auto"?T5:w5}function cd(){return ld}var Al=new Map,wa=class{fromType;logger;constructor(t,n=!1){this.logger=new xl,n&&this.logger.setLevel("debug"),this.fromType=t,Al.has(t)||(Al.set(t,new Map),j.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let m=a4(s),{type:g,name:p}=m;if(g!==t)return!1;let f=a4(o),y=Al.get(g).get(p);if(!y)return this.logger.debug(`no message handler for ${g}:${s}, but it's ok`),!1;let{messageHandler:b,sync:v}=y,C={type:t,name:f.name,id:u,url:l,active:c};if(v){try{let x=b(r.payload,C);i({ok:!0,data:x})}catch(x){i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.details,errorStatus:x.status})}return!1}else return b(r.payload,C).then(x=>{i({ok:!0,data:x})}).catch(x=>{i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.message,errorStatus:x.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Al.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new r4(`${i}:${t}`,this.logger);return Al.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},r4=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=a4(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await j.runtime.sendMessage(o);return A5(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await j.tabs.sendMessage(i,o);return A5(o,s,this.logger)}}};function A5(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new V(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new V("noResponse","Unknown error")}function a4(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Do(e){return e?.id?.endsWith("pdfWebPage")||!1}function Lo(e){try{if(!e||!Do(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function i4(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function dd(e){return o4(JSON.stringify(e))}async function o4(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var Fr,u4=0,md=!1,kl="initial",l4=!1,k5="",D5,L5,c4=!1,s4=new Map;async function Fs(e,t,n,r){if(c4=!1,L5=e.sourceProgram,D5=e.specialAiAssistant,r!=null&&l4&&Fr||Fr&&k5==n&&!n.trim())return;kl="initial",Fr=void 0,l4=r||!1;let a=e.rule.bodyRule;if(md=!1,!n||!a||!e.isPro||(u4=(a.contextTimeout||0)/100,u4<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(md=i.enableAIContext||!1,!!md&&e.user?.token)){kl="requesting";try{let o=await o4(n);if(s4.has(o)){Fr=s4.get(o);return}let s=await $({url:ct+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});k5=n,Fr={theme:s.theme,termsRaw:s.terms,terms:VR(s.terms)},s4.set(o,Fr)}catch{}finally{kl="finished"}k.debug("requestTermsByContext contextTerms",Fr)}}function M5(){l4||(kl="initial",Fr=void 0)}function P5(){c4=!0}function gd(){return D5?null:{contextTerms:Fr,used:c4,sourceProgram:L5}}async function R5(){if(!(!md||kl=="initial")){for(let e=0;ee.includes(n)):[]}function VR(e){let t=[];return e.split(` -`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var We={},Ea=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return We.getIsDulSubtitle();if(n==="getPageStatus")return st();n==="updateContextState"&&await We.updateContextState(r);let a=await We.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await We.translateTheWholePage(r),Qe(Rr,i);else if(n==="translateTheMainPage")await We.translateTheMainPage(r),Qe(Rr,i);else if(n==="translateToThePageEndImmediately")await We.translateToThePageEndImmediately(r),Qe(Rr,i);else if(n==="toggleTranslateManga")await We.toggleTranslateManga(),Qe(Rr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Do(a?.rule)){let s=Lo(a.rule);Bs(!0,s||o);return}await We.toggleTranslatePage(r),Qe(Rr,i)}else if(n==="toggleTranslateTheWholePage")await We.toggleTranslateTheWholePage(r),Qe(Rr,i);else if(n==="toggleTranslateTheMainPage")await We.toggleTranslateTheMainPage(r),Qe(Rr,i);else if(n==="toggleOnlyTransation")await We.ensureSwitchTranslationMode(r),Qe(Rr,i);else if(n=="toggleEnableEditTranslation")We.toggleEnableEditTranslation();else if(n==="translatePage")await We.translatePage(a,r),Qe(Rr,i);else if(n==="toggleTranslationMask")await We.toggleTranslationMask(r);else if(n==="restorePage")We.restorePage();else if(n==="retryFailedParagraphs")We.retryFailedParagraphs();else if(n=="change_translate_service")We.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await We.switchTranslationMode(r.mode),await We.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")We.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(I0,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await We.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(al,{detail:r}));else if(n==="translateWithOpenAI")await We.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await We.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await We.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await We.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await We.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await We.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await We.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await We.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await We.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")St()||await We.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!St())return JSON.stringify(a);await tt(5e3)}else if(n==="inputSelectedTextTranslate")await We.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return We.popupEventReport(a,r);if(n==="updateFloatBallEnable")return We.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(xo,{detail:{type:"webReport"}})):n===ol&&await We.translateSelectImage(a,r)}};function F5(e){Object.assign(We,e)}function B5(e){Object.assign(We,e)}function _5(e){Object.assign(We,e)}var WR=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return st();if(n==="getCurrentPageLanguage"){let a=Lt();return We.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Tr(r),Lt();if(n==="getContextString"){let a=We.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=We.getPureGlobalContext();return Lo(a?.rule)}else if(n=="getAIContextInfo")return gd()}},pd,fd;function O5(){let e=hd();St()||GR(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function hd(){return pd||(pd=new wa("content_script",!1).getConnection("main",Ea),pd)}function GR(){return fd||(fd=new wa("content_script",!1).getConnection("main_sync",WR,{sync:!0}),fd)}var KR=new Map;function bd(e){let t=YR(64),n=new CustomEvent(B6,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{KR.set(t,(i,o)=>{i?a(i):r(o)})})}function YR(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await $({url:yd,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function QR(e,t){return Math.floor(Math.random()*(t-e+1))+e}var JR=30,m4="RATE_LIMITER_TICKS",Ri=class e{static strictTicks={};static clearStrictTicks(){Jr(m4,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mo(m4)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Jr(m4,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=QR(4,JR);await tt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function Tt(e){return await hd().sendMessage("background:main",e)}function $(e){return S0()?bd({method:"request",data:e}):X()||x0()?(e.fetchPolyfill=globalThis.GM_fetch,Or(e)):Tt({method:"fetch",data:e})}function N5(e){return X()?Promise.resolve():Tt({method:"reportOptionsPageView",data:e})}function Br(){return X()?Je():Tt({method:"getConfig"})}function un(e){return X()?ur(e):Tt({method:"setUserConfig",data:e})}function Qt(){return X()?ln():Tt({method:"getUserConfig"})}function Mn(){return X()?Rt():Tt({method:"getLocalConfig"})}function _r(e){return X()?Dt(e):Tt({method:"setLocalConfig",data:e})}function U5(e){return X()?$5(e):Tt({method:"setBuildinConfig",data:e})}async function ze(e){if(e.text){let n=$0(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(X()||He()){if(e.translateService&&!nd.includes(e.translateService))return Promise.resolve("auto");let r=d5(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await Tt({method:"detectLanguage",data:e});return Promise.resolve(t)}function j5(){return Tt({method:"detectTabLanguage"})}async function vd(e){let t=await ze({text:e,pageLangs:["en"]});try{if(X()||He()){let n=e.substring(0,200);t=await oi.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function S5(e){let t=new CustomEvent(So,{detail:e});if(document.dispatchEvent(t),X())return;hd().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function H5(e){return X()?od(e):Tt({method:"queryParagraphCache",data:e})}async function q5(e){if(X()){await id(e);return}return Tt({method:"setParagraphCache",data:e})}async function z5(){if(X())return Promise.resolve();await Tt({method:"mockRequest"})}function Aa(e=!1,t=""){return document.querySelector(`meta[name=${F}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):X()?(j.runtime.openOptionsPage(e,t),Promise.resolve()):Tt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Cd(e=""){return X()||He()?Te().OPTIONS_URL:j.runtime.getURL("options.html")}function V5(e=""){return j&&j.runtime&&j.runtime.getURL?j.runtime.getURL("options.html"):""}function xd(e=!1){return X()?(j.extra.openAboutPage(e),Promise.resolve()):Tt({method:"openAboutPage"})}function ka(e){return X()?(j.extra.openInTab(e),Promise.resolve()):Tt({method:"openInTab",data:e})}function W5(e=!1){return X()?(j.extra.openEbookViewerPage(e),Promise.resolve()):Tt({method:"openEbookViewerPage"})}function G5(e=!1){return X()?(j.extra.openEbookBuilderPage(e),Promise.resolve()):Tt({method:"openEbookBuilderPage"})}function K5(e){He()}function Bs(e=!1,t){return X()?(j.extra.openPdfViewerPage(e),Promise.resolve()):Tt({method:"openPdfViewerPage",data:{url:t}})}function Y5(e=!1){return X()?(j.extra.openSubtitleBuilderPage(e),Promise.resolve()):Tt({method:"openSubtitleBuilderPage"})}function Dl(e){return X()?Promise.resolve():Tt({method:"setBadge",data:{text:e}})}function Q5(){return X()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Tt({method:"autoSyncLatestConfig"})}function Sd(e,t=!1){return X()?j.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function J5(e,t){return X()||we.MOCK==="1"?Ri.getDelay(e,t):Tt({method:"getDelay",data:{key:e,options:t}})}async function Z5(){return X()?!1:Tt({method:"getIsSupportIsOnToolbar"})}async function X5(){return X()?!1:Tt({method:"getIsOnToolbar"})}async function g4(){if(!X())return Tt({method:"updateVideoSubtitleStatus"})}function Ll({targetLanguage:e,text:t}){X()||Tt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ml(){X()||Tt({method:"updateImageMenu"})}var ev={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(y.length>t){let v=[];$f(y,t,v);for(let C=0;C0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&$f(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:h.i18n?.[r]?.name||h.name,value:h.id}))?.filter(h=>h.label&&h.value)||[];if(y.length>0){let h=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];y.length>1&&h.push({label:"aiAssistant.auto",value:"auto"});let v={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:BR([...h,...y,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(v),o.props=[v]}}let f=[],b=[];if(l||m==="pro"&&(c=!1),p.length>0){p.forEach(h=>{g.length>0&&h.providers&&h.providers.length>0&&!h.providers.includes(m)||(h.optional?b.push(h):f.push(h))});let y=b.concat(f).filter(h=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(h.name,s.model,h.required)));if(y.length>0){for(let h of y)if(!s[h.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:m,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:f}}var Ds=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=kt(u),c=Object.keys(Yr);t!=="translationService"&&c.unshift("inherit");let m=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...m].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&He()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let f=Yr[p];e.config.translationServices[p]?.type=="custom-ai"&&(f=ks);let b=e4(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||g(f,p)?b:null}).filter(p=>!!p);function g(p,f){let b=!!p.canary,y=!!p.alpha,h=!!p.beta;return f===e[t]||b&&o||y&&(a||o)||h&&(i||a||o)?!0:!y&&!h&&!b}};function Ls(e,t,n){return Ds(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:t4(r.config,n))}function t4(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Ms(e,t,n="en",r){return Ds(e,t,n).find(o=>o.id===r)}function Sl(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function b5(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function nd(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=ri.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function BR(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function _R(e,t){let n=f5(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function rd(e,t){return e?`
+
${_R(t,e)}
+
${t}
`:t}function Ps(e){let t=location.search.includes(W0);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var Rs=[],hJ=1e3*3600*24;async function wl(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function ad(e){let t=`${F}-${e.service}@${e.from}->${e.to}`;return await NR(t,{...e,createAt:new Date().getTime()})}async function id(e){let t=xr(e.originalText),n=`${F}-${e.service}@${e.from}->${e.to}`;return await OR(n,t)}async function OR(e,t){let n=await wl(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function NR(e,t){let n=await wl(e);return(await n4()).includes(e)||await UR(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function UR(e){let t="cache_list",n=await wl(F+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Rs.push(e)},a.onerror=i=>{n.close()}}async function n4(){if(Rs&&Rs.length>0)return Rs;let e=await wl(F+"-cacheList","cache_list");return Rs=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Rs}async function od(){try{let e=[];(await n4()).forEach(r=>{e.push(jR(r))});let n=await Promise.all(e);return Tl(n.reduce((r,a)=>r+a,0))}catch{return Tl(0)}}async function jR(e){let t=await wl(e),r=[...t.objectStoreNames].reduce((o,s)=>{let u=HR(t,s);return o.push(u),o},[]),a=await Promise.all(r);return t.close(),a.reduce((o,s)=>o+s,0)}async function HR(e,t){return await new Promise((n,r)=>{try{if(e==null)return r();let a=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=o=>{try{let s=i.result;if(s){let u=s.value,l=JSON.stringify(u);a+=l.length,s.continue()}else n(a)}catch(s){r(s)}},i.onerror=o=>r("error in "+t+": "+o)}catch(a){r(a)}})}async function y5(){try{let t=(await n4()).map(r=>qR(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function qR(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var sd="Original";function st(){return sd}function Xn(e){sd=e,C5(sd);let t=new CustomEvent(tn,{detail:JSON.stringify({type:"updatePageStatus",payload:sd})});document.dispatchEvent(t)}var v5="Original";function Is(){return v5}function Rr(e,t){if(t)return;v5=e;let n=new CustomEvent(ll,{detail:e});document.dispatchEvent(n)}var T5="auto",ud="auto",x5="auto";function S5(e){T5=e}function Tr(e){ud=e}function Lt(){return ud!=="auto"?ud:x5!=="auto"?x5:T5}function ld(){return ud}var El=new Map,Sa=class{fromType;logger;constructor(t,n=!1){this.logger=new Cl,n&&this.logger.setLevel("debug"),this.fromType=t,El.has(t)||(El.set(t,new Map),j.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let m=a4(s),{type:g,name:p}=m;if(g!==t)return!1;let f=a4(o),y=El.get(g).get(p);if(!y)return this.logger.debug(`no message handler for ${g}:${s}, but it's ok`),!1;let{messageHandler:h,sync:v}=y,C={type:t,name:f.name,id:u,url:l,active:c};if(v){try{let x=h(r.payload,C);i({ok:!0,data:x})}catch(x){i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.details,errorStatus:x.status})}return!1}else return h(r.payload,C).then(x=>{i({ok:!0,data:x})}).catch(x=>{i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.message,errorStatus:x.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=El.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new r4(`${i}:${t}`,this.logger);return El.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},r4=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=a4(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await j.runtime.sendMessage(o);return w5(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await j.tabs.sendMessage(i,o);return w5(o,s,this.logger)}}};function w5(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new V(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new V("noResponse","Unknown error")}function a4(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Do(e){return e?.id?.endsWith("pdfWebPage")||!1}function Lo(e){try{if(!e||!Do(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function i4(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function cd(e){return o4(JSON.stringify(e))}async function o4(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var Ir,u4=0,dd=!1,Al="initial",l4=!1,E5="",A5,k5,c4=!1,s4=new Map;async function Fs(e,t,n,r){if(c4=!1,k5=e.sourceProgram,A5=e.specialAiAssistant,r!=null&&l4&&Ir||Ir&&E5==n&&!n.trim())return;Al="initial",Ir=void 0,l4=r||!1;let a=e.rule.bodyRule;if(dd=!1,!n||!a||!e.isPro||(u4=(a.contextTimeout||0)/100,u4<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(dd=i.enableAIContext||!1,!!dd&&e.user?.token)){Al="requesting";try{let o=await o4(n);if(s4.has(o)){Ir=s4.get(o);return}let s=await $({url:ct+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});E5=n,Ir={theme:s.theme,termsRaw:s.terms,terms:zR(s.terms)},s4.set(o,Ir)}catch{}finally{Al="finished"}k.debug("requestTermsByContext contextTerms",Ir)}}function D5(){l4||(Al="initial",Ir=void 0)}function L5(){c4=!0}function md(){return A5?null:{contextTerms:Ir,used:c4,sourceProgram:k5}}async function M5(){if(!(!dd||Al=="initial")){for(let e=0;ee.includes(n)):[]}function zR(e){let t=[];return e.split(` +`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Ve={},wa=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Ve.getIsDulSubtitle();if(n==="getPageStatus")return st();n==="updateContextState"&&await Ve.updateContextState(r);let a=await Ve.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Ve.translateTheWholePage(r),rt(Pr,i);else if(n==="translateTheMainPage")await Ve.translateTheMainPage(r),rt(Pr,i);else if(n==="translateToThePageEndImmediately")await Ve.translateToThePageEndImmediately(r),rt(Pr,i);else if(n==="toggleTranslateManga")await Ve.toggleTranslateManga(),rt(Pr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Do(a?.rule)){let s=Lo(a.rule);Bs(!0,s||o);return}await Ve.toggleTranslatePage(r),rt(Pr,i)}else if(n==="toggleTranslateTheWholePage")await Ve.toggleTranslateTheWholePage(r),rt(Pr,i);else if(n==="toggleTranslateTheMainPage")await Ve.toggleTranslateTheMainPage(r),rt(Pr,i);else if(n==="toggleOnlyTransation")await Ve.ensureSwitchTranslationMode(r),rt(Pr,i);else if(n=="toggleEnableEditTranslation")Ve.toggleEnableEditTranslation();else if(n==="translatePage")await Ve.translatePage(a,r),rt(Pr,i);else if(n==="toggleTranslationMask")await Ve.toggleTranslationMask(r);else if(n==="restorePage")Ve.restorePage();else if(n==="retryFailedParagraphs")Ve.retryFailedParagraphs();else if(n=="change_translate_service")Ve.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Ve.switchTranslationMode(r.mode),await Ve.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Ve.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(R0,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Ve.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(al,{detail:r}));else if(n==="translateWithOpenAI")await Ve.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Ve.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Ve.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Ve.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Ve.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Ve.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Ve.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Ve.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Ve.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Tt()||await Ve.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Tt())return JSON.stringify(a);await tt(5e3)}else if(n==="inputSelectedTextTranslate")await Ve.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Ve.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Ve.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(xo,{detail:{type:"webReport"}})):n===ol&&await Ve.translateSelectImage(a,r)}};function R5(e){Object.assign(Ve,e)}function I5(e){Object.assign(Ve,e)}function F5(e){Object.assign(Ve,e)}var VR=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return st();if(n==="getCurrentPageLanguage"){let a=Lt();return Ve.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Tr(r),Lt();if(n==="getContextString"){let a=Ve.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Ve.getPureGlobalContext();return Lo(a?.rule)}else if(n=="getAIContextInfo")return md()}},gd,pd;function B5(){let e=fd();Tt()||WR(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function fd(){return gd||(gd=new Sa("content_script",!1).getConnection("main",wa),gd)}function WR(){return pd||(pd=new Sa("content_script",!1).getConnection("main_sync",VR,{sync:!0}),pd)}var GR=new Map;function hd(e){let t=KR(64),n=new CustomEvent(I6,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{GR.set(t,(i,o)=>{i?a(i):r(o)})})}function KR(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await $({url:bd,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function YR(e,t){return Math.floor(Math.random()*(t-e+1))+e}var QR=30,m4="RATE_LIMITER_TICKS",Ri=class e{static strictTicks={};static clearStrictTicks(){Qr(m4,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mo(m4)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Qr(m4,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=YR(4,QR);await tt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function St(e){return await fd().sendMessage("background:main",e)}function $(e){return x0()?hd({method:"request",data:e}):X()||C0()?(e.fetchPolyfill=globalThis.GM_fetch,_r(e)):St({method:"fetch",data:e})}function _5(e){return X()?Promise.resolve():St({method:"reportOptionsPageView",data:e})}function Fr(){return X()?Qe():St({method:"getConfig"})}function un(e){return X()?lr(e):St({method:"setUserConfig",data:e})}function Qt(){return X()?ln():St({method:"getUserConfig"})}function Mn(){return X()?Rt():St({method:"getLocalConfig"})}function Br(e){return X()?Dt(e):St({method:"setLocalConfig",data:e})}function O5(e){return X()?Z5(e):St({method:"setBuildinConfig",data:e})}async function Ke(e){if(e.text){let n=X0(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(X()||He()){if(e.translateService&&!td.includes(e.translateService))return Promise.resolve("auto");let r=l5(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await St({method:"detectLanguage",data:e});return Promise.resolve(t)}function N5(){return St({method:"detectTabLanguage"})}async function yd(e){let t=await Ke({text:e,pageLangs:["en"]});try{if(X()||He()){let n=e.substring(0,200);t=await ii.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function C5(e){let t=new CustomEvent(To,{detail:e});if(document.dispatchEvent(t),X())return;fd().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function U5(e){return X()?id(e):St({method:"queryParagraphCache",data:e})}async function j5(e){if(X()){await ad(e);return}return St({method:"setParagraphCache",data:e})}async function H5(){if(X())return Promise.resolve();await St({method:"mockRequest"})}function Ea(e=!1,t=""){return document.querySelector(`meta[name=${F}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):X()?(j.runtime.openOptionsPage(e,t),Promise.resolve()):St({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function vd(e=""){return X()||He()?Se().OPTIONS_URL:j.runtime.getURL("options.html")}function q5(e=""){return j&&j.runtime&&j.runtime.getURL?j.runtime.getURL("options.html"):""}function Cd(e=!1){return X()?(j.extra.openAboutPage(e),Promise.resolve()):St({method:"openAboutPage"})}function Aa(e){return X()?(j.extra.openInTab(e),Promise.resolve()):St({method:"openInTab",data:e})}function z5(e=!1){return X()?(j.extra.openEbookViewerPage(e),Promise.resolve()):St({method:"openEbookViewerPage"})}function V5(e=!1){return X()?(j.extra.openEbookBuilderPage(e),Promise.resolve()):St({method:"openEbookBuilderPage"})}function W5(e){He()}function Bs(e=!1,t){return X()?(j.extra.openPdfViewerPage(e),Promise.resolve()):St({method:"openPdfViewerPage",data:{url:t}})}function G5(e=!1){return X()?(j.extra.openSubtitleBuilderPage(e),Promise.resolve()):St({method:"openSubtitleBuilderPage"})}function kl(e){return X()?Promise.resolve():St({method:"setBadge",data:{text:e}})}function K5(){return X()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):St({method:"autoSyncLatestConfig"})}function xd(e,t=!1){return X()?j.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function Y5(e,t){return X()||we.MOCK==="1"?Ri.getDelay(e,t):St({method:"getDelay",data:{key:e,options:t}})}async function Q5(){return X()?!1:St({method:"getIsSupportIsOnToolbar"})}async function J5(){return X()?!1:St({method:"getIsOnToolbar"})}async function g4(){if(!X())return St({method:"updateVideoSubtitleStatus"})}function Dl({targetLanguage:e,text:t}){X()||St({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ll(){X()||St({method:"updateImageMenu"})}var X5={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5541,7 +5541,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var tv={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var $5={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5555,7 +5555,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var nv={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var ev={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5568,20 +5568,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var eI=[{code:"zh-CN",messages:ev},{code:"zh-TW",messages:tv},{code:"en",messages:nv}],Td=X()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ii={};for(let e of eI)Ii[e.code]=e.messages;function tI(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=rI(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:F+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let m=n.substring(u+s.length,c),g=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${m}`,`<${l} ${g}>${m}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function rv(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function nI(e,t,n,r){if(!Ii.hasOwnProperty(t)&&!Ii.hasOwnProperty(n))return e;let a=rv(Ii,t,e);return a===e&&t!==n&&(a=rv(Ii,n,e)),tI(a,r)}function rI(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return nI(t,e,"en",n)}function av(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function iv(e){return new Date(e).getTime()}var V=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return ai.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:z0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:z0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var $R=[{code:"zh-CN",messages:X5},{code:"zh-TW",messages:$5},{code:"en",messages:ev}],Td=X()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ii={};for(let e of $R)Ii[e.code]=e.messages;function eI(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=nI(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:F+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let m=n.substring(u+s.length,c),g=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${m}`,`<${l} ${g}>${m}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function tv(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function tI(e,t,n,r){if(!Ii.hasOwnProperty(t)&&!Ii.hasOwnProperty(n))return e;let a=tv(Ii,t,e);return a===e&&t!==n&&(a=tv(Ii,n,e)),eI(a,r)}function nI(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return tI(t,e,"en",n)}function nv(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function rv(e){return new Date(e).getTime()}var V=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return ri.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:q0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:q0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:z0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(ai.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:F,href:uy})];p4(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:q0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(ri.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:F,href:oy})];p4(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=py,i?o.push(r("proQuotaError.trail",{brandId:F,href:If})):o.push(r("proQuotaError.newPackage",{brandId:F,href:s})),p4(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=my,i?o.push(r("proQuotaError.trail",{brandId:F,href:If})):o.push(r("proQuotaError.newPackage",{brandId:F,href:s})),p4(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:F,href:V0}));else{let m="";u=="AI"?m=my:m=gy,o?l.push(r("proQuotaError.trail",{brandId:F,href:If})):l.push(r("proQuotaError.package",{brandId:F,href:m,translationService:u})),p4(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:F,href:z0}));else{let m="";u=="AI"?m=cy:m=dy,o?l.push(r("proQuotaError.trail",{brandId:F,href:If})):l.push(r("proQuotaError.package",{brandId:F,href:m,translationService:u})),p4(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((m,g)=>`${g+1}. ${m}`).join("
")}`;return r("errorReason",{message:c})}};function p4(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||iv(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:av(i,"YYYY-MM-DD HH:mm:ss")}))}function wd(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function ov(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function sv(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function Ed(e){let{mimeType:t,base64:n}=aI(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await Hp(uv.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await uv(e);return t}async function uv(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=wd(e.body):r=="urlSearchParams"?a.body=ov(e.body):r=="blob"&&e.body&&(a.body=Ed(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,m=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=m}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let m=c.message||"Unknown Error";throw new V("fetchError",m).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new V("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),m=Object.fromEntries([...l.headers.entries()]),g=l.url;return g||(l.headers.get("X-Final-URL")?g=l.headers.get("X-Final-URL"):g=t),{body:c,headers:m,status:l.status,statusText:l.statusText,url:g}}else if(n==="base64"){let c=await l.blob(),m=new FileReader,g=new Promise((p,f)=>{m.onload=function(){let h=m.result;p(h)},m.onerror=function(){f(m.error)}});return m.readAsDataURL(c),g}else if(n==="stream"){let c="",m;if(l.body&&l.body instanceof ReadableStream)for await(let g of iI(l.body)){let p=new TextDecoder().decode(g);c+=p;let f;for(;(f=c.indexOf(` -`))>=0;){let h=c.slice(0,f).trim();if(c=c.slice(f+1),h.startsWith("event:")||h==="")continue;let y="";if(h.startsWith("data:")&&(y=h.slice(5).trim()),y==="[DONE]")break;let b;try{b=JSON.parse(y??"")}catch(v){k.debug("json error",v);continue}m=b}}return m}}else{let c;try{c=await l.text()}catch(h){k.error("parse response failed",h)}c&&k.error("fail response",c);let m="";c&&(m=c.slice(0,500));let g=m,f=new URL(t).hostname.endsWith(`.${et}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(g="bingAuth:"+m),f&&(m.includes("quota exceeded")&&(g="ProQuota:"+m),m.includes("translation quota reached")&&(g="NewProQuota:"+m)),new V("fetchError",g).initNetWork(l.status)}}async function*iI(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var oI="";function _s(){return oI||globalThis.navigator.userAgent}function Pl(){return _s().includes("ImtFxiOS")}function lv(){let t=_s().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function f4(){return _s().includes("ImtFxAndroid")}function cv(){let e=_s();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function dv(){let t=_s().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Fi(){let e=_s();if(Pl()||f4()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Ad=function(){return Ad=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,sI()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Rl(e){return e.then(void 0,function(){}),e}function lI(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function dI(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(g,p){o[g]=o[g]||[],o[g].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(m)u(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function mI(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Bi(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i+l,g+=p>>>16,p&=65535,g+=a+u,m+=g>>>16,g&=65535,m+=r+s,c+=m>>>16,m&=65535,c+=n+o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Nr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i*l,g+=p>>>16,p&=65535,g+=a*l,m+=g>>>16,g&=65535,g+=i*u,m+=g>>>16,g&=65535,m+=r*l,c+=m>>>16,m&=65535,m+=a*u,c+=m>>>16,m&=65535,m+=i*s,c+=m>>>16,m&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Os(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function wr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];_t(e,t),Nr(e,gI),t[1]=e[0]>>>1,_t(e,t),Nr(e,pI),t[1]=e[0]>>>1,_t(e,t)}var kd=[2277735313,289559509],Dd=[1291169091,658871167],fv=[0,5],fI=[0,1390208809],hI=[0,944331445];function bI(e,t){var n=mI(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function yI(e){var t;return Ad({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function vI(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function CI(e){return typeof e!="function"}function xI(e,t){var n=Rl(new Promise(function(r){var a=Date.now();mv(e.bind(null,t),function(){for(var i=[],o=0;o=4}function TI(){var e=window,t=navigator;return Er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Dv()}function Pd(){var e=window,t=navigator;return Er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function ea(){var e=window,t=navigator;return Er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function T4(){var e=window,t=e.HTMLElement,n=e.Document;return Er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Il(){var e=window;return vI(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Lv(){var e,t,n=window;return Er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function wI(){var e=window;return Er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function EI(){var e=window;return Er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Fl(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return Er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function AI(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function kI(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function DI(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function w4(){var e=Pd(),t=Lv(),n=window,r=navigator,a="connection";return e?Er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?Er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function LI(){return RI()?-4:MI()}function MI(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(PI())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=II(a),u=s[0],l=s[1],c=Rl(u.then(function(m){return FI(m.getChannelData(0).subarray(n))},function(m){if(m.name==="timeout"||m.name==="suspended")return-3;throw m}));return function(){return l(),c}}function PI(){return ea()&&!T4()&&!EI()}function RI(){return ea()&&Fl()&&Il()}function II(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,m=0;e.oncomplete=function(f){return s(f.renderedBuffer)};var g=function(){setTimeout(function(){return u(hv("timeout"))},Math.min(r,m+a-Date.now()))},p=function(){try{var f=e.startRendering();switch(Av(f)&&Rl(f),e.state){case"running":m=Date.now(),l&&g();break;case"suspended":document.hidden||c++,l&&c>=t?u(hv("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,m>0&&g())}});return[o,i]}function FI(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function dF(){var e=new Date().getFullYear();return Math.max($r(new Date(e,0,1).getTimezoneOffset()),$r(new Date(e,6,1).getTimezoneOffset()))}function mF(){try{return!!window.sessionStorage}catch{return!0}}function gF(){try{return!!window.localStorage}catch{return!0}}function pF(){if(!(Dv()||TI()))try{return!!window.indexedDB}catch{return!0}}function fF(){return!!window.openDatabase}function hF(){return navigator.cpuClass}function bF(){var e=navigator.platform;return e==="MacIntel"&&ea()&&!T4()?AI()?"iPad":"iPhone":e}function yF(){return navigator.vendor||""}function vF(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tm.length*.6}),s.sort(),[2,s]}})})}function TF(){return ea()||w4()}function wF(e){var t;return Zr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Xr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},yv(r),u=0;u`${g+1}. ${m}`).join("
")}`;return r("errorReason",{message:c})}};function p4(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||rv(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:nv(i,"YYYY-MM-DD HH:mm:ss")}))}function Sd(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function av(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function iv(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function wd(e){let{mimeType:t,base64:n}=rI(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await jp(ov.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await ov(e);return t}async function ov(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Sd(e.body):r=="urlSearchParams"?a.body=av(e.body):r=="blob"&&e.body&&(a.body=wd(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,m=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=m}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let m=c.message||"Unknown Error";throw new V("fetchError",m).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new V("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),m=Object.fromEntries([...l.headers.entries()]),g=l.url;return g||(l.headers.get("X-Final-URL")?g=l.headers.get("X-Final-URL"):g=t),{body:c,headers:m,status:l.status,statusText:l.statusText,url:g}}else if(n==="base64"){let c=await l.blob(),m=new FileReader,g=new Promise((p,f)=>{m.onload=function(){let b=m.result;p(b)},m.onerror=function(){f(m.error)}});return m.readAsDataURL(c),g}else if(n==="stream"){let c="",m;if(l.body&&l.body instanceof ReadableStream)for await(let g of aI(l.body)){let p=new TextDecoder().decode(g);c+=p;let f;for(;(f=c.indexOf(` +`))>=0;){let b=c.slice(0,f).trim();if(c=c.slice(f+1),b.startsWith("event:")||b==="")continue;let y="";if(b.startsWith("data:")&&(y=b.slice(5).trim()),y==="[DONE]")break;let h;try{h=JSON.parse(y??"")}catch(v){k.debug("json error",v);continue}m=h}}return m}}else{let c;try{c=await l.text()}catch(b){k.error("parse response failed",b)}c&&k.error("fail response",c);let m="";c&&(m=c.slice(0,500));let g=m,f=new URL(t).hostname.endsWith(`.${et}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(g="bingAuth:"+m),f&&(m.includes("quota exceeded")&&(g="ProQuota:"+m),m.includes("translation quota reached")&&(g="NewProQuota:"+m)),new V("fetchError",g).initNetWork(l.status)}}async function*aI(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var iI="";function _s(){return iI||globalThis.navigator.userAgent}function Ml(){return _s().includes("ImtFxiOS")}function sv(){let t=_s().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function f4(){return _s().includes("ImtFxAndroid")}function uv(){let e=_s();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function lv(){let t=_s().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Fi(){let e=_s();if(Ml()||f4()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Ed=function(){return Ed=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,oI()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Pl(e){return e.then(void 0,function(){}),e}function uI(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function cI(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(g,p){o[g]=o[g]||[],o[g].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(m)u(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function dI(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Bi(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i+l,g+=p>>>16,p&=65535,g+=a+u,m+=g>>>16,g&=65535,m+=r+s,c+=m>>>16,m&=65535,c+=n+o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Or(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i*l,g+=p>>>16,p&=65535,g+=a*l,m+=g>>>16,g&=65535,g+=i*u,m+=g>>>16,g&=65535,m+=r*l,c+=m>>>16,m&=65535,m+=a*u,c+=m>>>16,m&=65535,m+=i*s,c+=m>>>16,m&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Os(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function Sr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];_t(e,t),Or(e,mI),t[1]=e[0]>>>1,_t(e,t),Or(e,gI),t[1]=e[0]>>>1,_t(e,t)}var Ad=[2277735313,289559509],kd=[1291169091,658871167],gv=[0,5],pI=[0,1390208809],fI=[0,944331445];function hI(e,t){var n=dI(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function bI(e){var t;return Ed({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function yI(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function vI(e){return typeof e!="function"}function CI(e,t){var n=Pl(new Promise(function(r){var a=Date.now();cv(e.bind(null,t),function(){for(var i=[],o=0;o=4}function TI(){var e=window,t=navigator;return wr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Av()}function Md(){var e=window,t=navigator;return wr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function $r(){var e=window,t=navigator;return wr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function S4(){var e=window,t=e.HTMLElement,n=e.Document;return wr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Rl(){var e=window;return yI(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function kv(){var e,t,n=window;return wr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function SI(){var e=window;return wr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function wI(){var e=window;return wr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Il(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return wr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function EI(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return wr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function AI(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function kI(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function w4(){var e=Md(),t=kv(),n=window,r=navigator,a="connection";return e?wr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?wr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function DI(){return PI()?-4:LI()}function LI(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(MI())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=RI(a),u=s[0],l=s[1],c=Pl(u.then(function(m){return II(m.getChannelData(0).subarray(n))},function(m){if(m.name==="timeout"||m.name==="suspended")return-3;throw m}));return function(){return l(),c}}function MI(){return $r()&&!S4()&&!wI()}function PI(){return $r()&&Il()&&Rl()}function RI(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,m=0;e.oncomplete=function(f){return s(f.renderedBuffer)};var g=function(){setTimeout(function(){return u(pv("timeout"))},Math.min(r,m+a-Date.now()))},p=function(){try{var f=e.startRendering();switch(wv(f)&&Pl(f),e.state){case"running":m=Date.now(),l&&g();break;case"suspended":document.hidden||c++,l&&c>=t?u(pv("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,m>0&&g())}});return[o,i]}function II(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function cF(){var e=new Date().getFullYear();return Math.max(Xr(new Date(e,0,1).getTimezoneOffset()),Xr(new Date(e,6,1).getTimezoneOffset()))}function dF(){try{return!!window.sessionStorage}catch{return!0}}function mF(){try{return!!window.localStorage}catch{return!0}}function gF(){if(!(Av()||TI()))try{return!!window.indexedDB}catch{return!0}}function pF(){return!!window.openDatabase}function fF(){return navigator.cpuClass}function hF(){var e=navigator.platform;return e==="MacIntel"&&$r()&&!S4()?EI()?"iPad":"iPhone":e}function bF(){return navigator.vendor||""}function yF(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tm.length*.6}),s.sort(),[2,s]}})})}function TF(){return $r()||w4()}function SF(e){var t;return Jr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Zr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},hv(r),u=0;u')}function UF(){return navigator.pdfViewerEnabled}function jF(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function HF(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(qF())return-3;try{return e.canMakePayments()?1:0}catch(t){return zF(t)}}var qF=OI;function zF(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function VF(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Pv=-1,Rv=-2,WF=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),GF=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),KF=["FRAGMENT_SHADER","VERTEX_SHADER"],YF=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Iv="WEBGL_debug_renderer_info",QF="WEBGL_polygon_mode";function JF(e){var t,n,r,a,i,o,s=e.cache,u=Fv(s);if(!u)return Pv;if(!_v(u))return Rv;var l=Bv()?null:u.getExtension(Iv);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function ZF(e){var t=e.cache,n=Fv(t);if(!n)return Pv;if(!_v(n))return Rv;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,m=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Ev,"/npm-monitoring"),!0),e.send()}catch{}}function pB(e){var t;return e===void 0&&(e={}),Zr(this,void 0,void 0,function(){var n,r,a;return Xr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&gB(),n=e.delayFallback,r=e.debug,[4,dB(n)];case 1:return i.sent(),a=rB({cache:{},debug:r}),[2,mB(a,r)]}})})}var E4={load:pB,hashComponents:Ov,componentsToDebugString:lB};async function _i(){let e=await Pt("fakeUserId","");e||(e=await ko("fakeUserId",""),e&&await Qe("fakeUserId",e));let t=new Date,n=await Pt("installedAt","");return n||(n=await ko("installedAt",""),n&&await Qe("installedAt",n)),e?n||(n=new Date(0).toISOString(),await Qe("installedAt",n)):(e=await hB(64),await Qe("fakeUserId",e)),n||(n=t.toISOString(),await Qe("installedAt",n)),{fakeUserId:e,installedAt:n}}var fB=10;async function js(){let e=await Pt("userTag","");if(e)return e;let{fakeUserId:t}=await _i(),r=t.charCodeAt(0)%fB;return e=String.fromCharCode(r+"a".charCodeAt(0)),await Qe("userTag",e),e}function Bl(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):bB(i,e)}catch{return Bl(64)}}function bB(e,t=32){let n="";for(let a=0;a{}),Bd)}async function jv(e,t){try{let n=Te(),r=n.INSTALL_FROM==="firefox_store";if(Fi()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=X(),o=St(),s=n.PROD==="1",u=Hn(),l=new Date,{fakeUserId:c,installedAt:m}=await _i(),g=await js(),p=await Hs(),f=await qs(),h=new Date(m),y=Oi(h),b=Oi(l),v=y===b,C=24*60*60*1e3,x=l.getTime()-h.getTime()<7*C,w=l.getTime()-h.getTime()<30*C,S=l.getTime()-h.getTime()<365*C,T=vl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=gs.parse(A),M=e.map(I=>{let P=I.params||{};if(D.os&&(P.os_name=D.os.name||"unknown",P.os_version=D.os.version||"unknown",P.os_version_name=D.os.versionName||"unknown"),D.browser){P.browser_name=D.browser.name||"unknown",P.browser_version=D.browser.version||"unknown";let R=Fi();R&&(P.browser_name=R.name,P.browser_version=R.version)}if(D.platform&&(P.platform_type=D.platform.type||"unknown"),D.engine&&(P.engine_name=D.engine.name||"unknown",P.engine_version=D.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),y){P.install_day=Rd(h);let R=Fd(h);P.install_week=`${R.year}${R.week}`}return P.userscript=i.toString(),v?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=x?"1":"0",P.is_new_user_this_month=w?"1":"0",P.is_new_user_this_year=S?"1":"0",o?P.main_frame=0:P.main_frame=1,g&&(P.ab_tag=g),p&&(P.ab_group=p),P.campaign=f||"none",{...I,params:P}});T.forEach(async I=>{let P=await _l({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&CB(c,M)}catch{}}async function vB(e){return await yB().sendMessage("background:main",e)}function _l(e){return S0()?bd({method:"request",data:e}):X()||x0()?(e.fetchPolyfill=globalThis.GM_fetch,Or(e)):vB({method:"fetch",data:e})}function CB(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Id(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);_l({url:Cl,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var _d={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function EF(){for(var e=0,t=["rec2020","p3","srgb"];e')}function NF(){return navigator.pdfViewerEnabled}function UF(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function jF(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(HF())return-3;try{return e.canMakePayments()?1:0}catch(t){return qF(t)}}var HF=_I;function qF(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function zF(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Lv=-1,Mv=-2,VF=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),WF=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),GF=["FRAGMENT_SHADER","VERTEX_SHADER"],KF=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Pv="WEBGL_debug_renderer_info",YF="WEBGL_polygon_mode";function QF(e){var t,n,r,a,i,o,s=e.cache,u=Rv(s);if(!u)return Lv;if(!Fv(u))return Mv;var l=Iv()?null:u.getExtension(Pv);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function JF(e){var t=e.cache,n=Rv(t);if(!n)return Lv;if(!Fv(n))return Mv;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,m=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Sv,"/npm-monitoring"),!0),e.send()}catch{}}function gB(e){var t;return e===void 0&&(e={}),Jr(this,void 0,void 0,function(){var n,r,a;return Zr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&mB(),n=e.delayFallback,r=e.debug,[4,cB(n)];case 1:return i.sent(),a=nB({cache:{},debug:r}),[2,dB(a,r)]}})})}var E4={load:gB,hashComponents:Bv,componentsToDebugString:uB};async function _i(){let e=await Pt("fakeUserId","");e||(e=await ko("fakeUserId",""),e&&await rt("fakeUserId",e));let t=new Date,n=await Pt("installedAt","");return n||(n=await ko("installedAt",""),n&&await rt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await rt("installedAt",n)):(e=await fB(64),await rt("fakeUserId",e)),n||(n=t.toISOString(),await rt("installedAt",n)),{fakeUserId:e,installedAt:n}}var pB=10;async function js(){let e=await Pt("userTag","");if(e)return e;let{fakeUserId:t}=await _i(),r=t.charCodeAt(0)%pB;return e=String.fromCharCode(r+"a".charCodeAt(0)),await rt("userTag",e),e}function Fl(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):hB(i,e)}catch{return Fl(64)}}function hB(e,t=32){let n="";for(let a=0;a{}),Fd)}async function Nv(e,t){try{let n=Se(),r=n.INSTALL_FROM==="firefox_store";if(Fi()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=X(),o=Tt(),s=n.PROD==="1",u=jn(),l=new Date,{fakeUserId:c,installedAt:m}=await _i(),g=await js(),p=await Hs(),f=await qs(),b=new Date(m),y=Oi(b),h=Oi(l),v=y===h,C=24*60*60*1e3,x=l.getTime()-b.getTime()<7*C,w=l.getTime()-b.getTime()<30*C,T=l.getTime()-b.getTime()<365*C,S=yl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=gs.parse(A),M=e.map(I=>{let P=I.params||{};if(D.os&&(P.os_name=D.os.name||"unknown",P.os_version=D.os.version||"unknown",P.os_version_name=D.os.versionName||"unknown"),D.browser){P.browser_name=D.browser.name||"unknown",P.browser_version=D.browser.version||"unknown";let R=Fi();R&&(P.browser_name=R.name,P.browser_version=R.version)}if(D.platform&&(P.platform_type=D.platform.type||"unknown"),D.engine&&(P.engine_name=D.engine.name||"unknown",P.engine_version=D.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),y){P.install_day=Pd(b);let R=Id(b);P.install_week=`${R.year}${R.week}`}return P.userscript=i.toString(),v?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=x?"1":"0",P.is_new_user_this_month=w?"1":"0",P.is_new_user_this_year=T?"1":"0",o?P.main_frame=0:P.main_frame=1,g&&(P.ab_tag=g),p&&(P.ab_group=p),P.campaign=f||"none",{...I,params:P}});S.forEach(async I=>{let P=await Bl({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&vB(c,M)}catch{}}async function yB(e){return await bB().sendMessage("background:main",e)}function Bl(e){return x0()?hd({method:"request",data:e}):X()||C0()?(e.fetchPolyfill=globalThis.GM_fetch,_r(e)):yB({method:"fetch",data:e})}function vB(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Rd(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Bl({url:vl,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var Bd={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5836,19 +5836,19 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function tr(e){if(e.beta)return!1;if(He()&&e.spVersion)return Da(nr(),e.spVersion);if(cv()&&e.gspVersion){let t=dv();if(t)return Da(t,e.gspVersion)}if(Pl()&&e.ispVersion){let t=lv();if(t)return Da(t,e.ispVersion)}return!1}function Da(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Ol(e){e.message?.indexOf("token invalid")>=0&&(nt.remove(pt),Ml())}async function lr(e){let n=(await Je())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),SB(a.toString())}function SB(e){try{He()?ka(e):globalThis.open(e)}catch{globalThis.open(e)}}function Hv(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function qv(e){return kt(e)}function Od(e){return e?e.map(n=>{let r=TB(n),a={url:r?.url||"",name:r?.siteName||""};if(!r?.browserNames)return a;let i=La();return r.browserNames.split(",").includes(i)?a:null}).filter(n=>!!n):[]}function TB(e){let t=/^(https?:\/\/[^[]+)(\[[^\]]+\])(\[[^\]]+\])?$/,n=e.match(t);if(n&&n.length>0){let r=n[1],a=n[2]?.replace("[","")?.replace("]",""),i=n[3]?.replace("[","")?.replace("]","");return{url:r,siteName:a,browserNames:i}}else return null}function Nd(e){return Array.isArray(e)?e:e?[e]:[]}function qn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Jt(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ud(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Nl(e,t){let n={...e};return Kv(n,t),wB(n,t),n}function Gv(e,t,n){let r={...e};return ta({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),ta({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function wB(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;Kv(e,a)}function ta({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=zv(i);if(o=="rich"){if(!a)return r(i,e[i]);let[g,p,f,h]=zv(i);o=g+"."+p,s=f,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Nd(e[i]));let c=t(o);if(c==null){r(o,l);return}let m;if(s=="add_v"){if(!Vv(u))return;m=A4(c,l)}else if(s=="remove_v"){if(!Vv(u))return;m=Wv(c,l)}else s==="add"?m=A4(c,l):s=="remove"&&(m=Wv(c,l));if(m){r(o,m);return}Array.isArray(e[o])&&o.startsWith("additional")?m=A4(c,l):m=l,r(o,m)})}function Kv(e,t){return ta({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function A4(e,t){let n;if(Array.isArray(e)){let r=Nd(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function zv(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Vv(e){let t=Hn();return e&&Da(t,e)}function Wv(e,t){if(Array.isArray(e)){let n=Nd(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Yv="userConfig",jd="userPromptPool",Hd="userObjectPool";async function qd(){let e=await eC(Yv)||{},t=await Mo(jd)||{},n=await Mo(Hd)||{};return EB(e,t,n)}async function Qv(e){let{userConfig:t,promptPool:n,objectPool:r}=await k4(e);await $v(Yv,t),await Jr(jd,n),await Jr(Hd,r)}function k4(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Jv(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Zv(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function EB(e,t,n){return Jv(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Zv(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Jv(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Zv(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ni(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Xv(r);for(let o of i)delete a[o]}),n}function D4(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Xv(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Xv(e){let t=Qr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=ks.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function tC(e,t){return nC(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function nC(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>nC(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,m)=>{c!="generalRule"&&(l[c]=m)}}),ta({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,m)=>{l.generalRule[c]=m}}),MB(l),LB(n,u,l),l=await FB(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Po(){if(we.PROD==="1")return{};let e={};if(we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(we.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:we.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(we.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:we.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(we.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&we.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:we.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:we.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(we.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:we.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(we.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=we.DEEPL_PROXY_ENDPOINT),we.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=we.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),we.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:we.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}we.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=we.IMMERSIVE_TRANSLATE_SERVICE);let t={};return we.DEBUG==="1"&&(t.debug=!0,t.cache=!1),we.MOCK==="1"&&(t.translationService="mock"),t}async function Rt(){let e=await j.storage.local.get(vs);if(e[vs]){let t=e[vs],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Dt(i),i}else return{}}async function Dt(e){await j.storage.local.set({[vs]:e})}async function $5(e){await j.storage.local.set({[B0]:e})}async function aC(){return we.DEBUG==="1"?void 0:(await j.storage.local.get(B0))[B0]}async function Vs(){await j.storage.local.set({[vs]:{}})}async function Ws(){let e=await aC(),n={...Ul(),..._d,buildinConfigUpdatedAt:we.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function ln(){return qd()}function ur(e){return Qv(e)}async function $v(e,t){await j.storage.sync.set({[e]:t})}async function eC(e){return(await j.storage.sync.get(e))[e]}async function Jr(e,t){await j.storage.local.set({[e]:t})}async function Mo(e){return(await j.storage.local.get(e))[e]}var iC={};function zd(e){return iC[e]}function oC(e,t){iC[e]=t}var AB=async()=>{let e=["zh-CN"];try{e=await j.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>ae(r)).find(r=>Td.find(a=>a===r));return n||"en"},Ul=()=>{let e={..._d,buildinConfigUpdatedAt:we.BUILD_TIME};return{...e,targetLanguage:Di,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function kB(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function DB(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Di;let n=await Pt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=rC(l,r[s]))}),ta({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=rC(l,n[s]))}),ta({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function MB(e){try{let t=await Pt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function rC(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function PB(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let m=(e?.translationLanguagePattern?.matches?.length||0)>0,g=await Pt("installedAt",""),p=Number(await ko("translage_page_daily",0)),f=Number(await Pt(Rr,0)),h;f>0&&(Date.now()-f0&&(Date.now()-pr&&(e=t)}return e}function IB(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function FB(e,t){let n=await BB(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=Nl(e[o],t[o]));else if(o==="translationServices")sC(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(X()||He()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?Gv(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(we.PROD==="0"&&we.DEV_RULES){let s=JSON.parse(we.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function BB(){let e={};if(!X()&&j.commands&&j.commands.getAll){let t=await j.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function uC(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!tC(a,e))return;let{generalRule:s,translationServices:u,...l}=i;ta({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,m)=>{e[c]=m}}),u&&sC(i,e),s&&(r=Nl(r,s))}),r}var Vd={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var OB="";function Hn(){return OB||Vd.version}function nr(){return j.runtime.getManifest().version}function Ro(e){let t=Ul(),n=nr();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function L4(e){return e.replace(//g,">")}var lC=["*://*/*","*","*://*"],dC="immersive-translate-wildcard-placeholder.com";function M4(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>lC.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(lC.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,m=l.port===o;return l.port?c&&m:c}else return UB(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let y=u.split("://");l=y[0],l==="*"&&y.length>1&&(l="*",u="https://"+y[1])}else l="*",u="https://"+u;let m=u.replace(/\*/g,dC),g;try{g=new URL(m)}catch{return k.debug("invalid match pattern",m,"raw match value:",c),!1}let p=g.host,f=g.pathname;f==="/"&&(c.replace("://","").includes("/")||(f="/*"));let h=NB(l+":",cC(p),cC(f));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function cC(e){return e.replaceAll(dC,"*")}function NB(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function dt(e,t){return M4(e,t)!==null}function UB(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var mC=null;if(typeof trustedTypes<"u")try{mC=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var gC=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(gC=!0)});function Wd(){return gC}var cr=mC;function fC(e,t,n,r,a){if(!e)return"";for(let y of r||[])if(t?.querySelector(y))return"";let i=n[0],o=n[n.length-1];if(HB(t,o))return"";i=pC(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let y of n){let b=pC(t,y);if(c+=f(y),u&&b!=u){h(),u=b,l=f(y)||"";continue}u=b,l+=f(y)||""}h();let m=p(c),g=p(t.textContent||"");if(m==g&&t.innerText.split(` -`).filter(y=>!!y.trim()).length>1)return t.innerHTML||"";return s;function p(y){return y.replace(/\s+/g,"")}function f(y){return y instanceof HTMLElement?y.innerText:y?.textContent||""}function h(){let y=p(f(u)),b=p(l);if(y==b){let v=f(u).replace(/ */g,"");if(!c.startsWith(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function er(e){if(e.beta)return!1;if(He()&&e.spVersion)return ka(tr(),e.spVersion);if(uv()&&e.gspVersion){let t=lv();if(t)return ka(t,e.gspVersion)}if(Ml()&&e.ispVersion){let t=sv();if(t)return ka(t,e.ispVersion)}return!1}function ka(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function _l(e){e.message?.indexOf("token invalid")>=0&&(nt.remove(pt),Ll())}async function cr(e){let n=(await Qe())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),xB(a.toString())}function xB(e){try{He()?Aa(e):globalThis.open(e)}catch{globalThis.open(e)}}function Uv(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function jv(e){return kt(e)}function _d(e){return e?e.map(n=>{let r=TB(n),a={url:r?.url||"",name:r?.siteName||""};if(!r?.browserNames)return a;let i=Da();return r.browserNames.split(",").includes(i)?a:null}).filter(n=>!!n):[]}function TB(e){let t=/^(https?:\/\/[^[]+)(\[[^\]]+\])(\[[^\]]+\])?$/,n=e.match(t);if(n&&n.length>0){let r=n[1],a=n[2]?.replace("[","")?.replace("]",""),i=n[3]?.replace("[","")?.replace("]","");return{url:r,siteName:a,browserNames:i}}else return null}function Od(e){return Array.isArray(e)?e:e?[e]:[]}function Hn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Jt(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Nd(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Ol(e,t){let n={...e};return Wv(n,t),SB(n,t),n}function Vv(e,t,n){let r={...e};return ea({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),ea({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function SB(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;Wv(e,a)}function ea({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Hv(i);if(o=="rich"){if(!a)return r(i,e[i]);let[g,p,f,b]=Hv(i);o=g+"."+p,s=f,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Od(e[i]));let c=t(o);if(c==null){r(o,l);return}let m;if(s=="add_v"){if(!qv(u))return;m=A4(c,l)}else if(s=="remove_v"){if(!qv(u))return;m=zv(c,l)}else s==="add"?m=A4(c,l):s=="remove"&&(m=zv(c,l));if(m){r(o,m);return}Array.isArray(e[o])&&o.startsWith("additional")?m=A4(c,l):m=l,r(o,m)})}function Wv(e,t){return ea({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function A4(e,t){let n;if(Array.isArray(e)){let r=Od(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Hv(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function qv(e){let t=jn();return e&&ka(t,e)}function zv(e,t){if(Array.isArray(e)){let n=Od(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Gv="userConfig",Ud="userPromptPool",jd="userObjectPool";async function Hd(){let e=await Xv(Gv)||{},t=await Mo(Ud)||{},n=await Mo(jd)||{};return wB(e,t,n)}async function Kv(e){let{userConfig:t,promptPool:n,objectPool:r}=await k4(e);await Zv(Gv,t),await Qr(Ud,n),await Qr(jd,r)}function k4(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Yv(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Qv(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function wB(e,t,n){return Yv(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Qv(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Yv(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Qv(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ni(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Jv(r);for(let o of i)delete a[o]}),n}function D4(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Jv(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Jv(e){let t=Yr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=ks.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function $v(e,t){return eC(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function eC(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>eC(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,m)=>{c!="generalRule"&&(l[c]=m)}}),ea({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,m)=>{l.generalRule[c]=m}}),await LB(l),DB(n,u,l),l=await IB(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Po(){if(we.PROD==="1")return{};let e={};if(we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(we.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:we.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(we.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:we.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(we.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&we.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:we.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:we.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(we.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:we.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(we.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=we.DEEPL_PROXY_ENDPOINT),we.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=we.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),we.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:we.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}we.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=we.IMMERSIVE_TRANSLATE_SERVICE);let t={};return we.DEBUG==="1"&&(t.debug=!0,t.cache=!1),we.MOCK==="1"&&(t.translationService="mock"),t}async function Rt(){let e=await j.storage.local.get(vs);if(e[vs]){let t=e[vs],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Dt(i),i}else return{}}async function Dt(e){await j.storage.local.set({[vs]:e})}async function Z5(e){await j.storage.local.set({[F0]:e})}async function nC(){return we.DEBUG==="1"?void 0:(await j.storage.local.get(F0))[F0]}async function Vs(){await j.storage.local.set({[vs]:{}})}async function Ws(){let e=await nC(),n={...Nl(),...Bd,buildinConfigUpdatedAt:we.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function ln(){return Hd()}function lr(e){return Kv(e)}async function Zv(e,t){await j.storage.sync.set({[e]:t})}async function Xv(e){return(await j.storage.sync.get(e))[e]}async function Qr(e,t){await j.storage.local.set({[e]:t})}async function Mo(e){return(await j.storage.local.get(e))[e]}var rC={};function qd(e){return rC[e]}function aC(e,t){rC[e]=t}var EB=async()=>{let e=["zh-CN"];try{e=await j.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>ae(r)).find(r=>Td.find(a=>a===r));return n||"en"},Nl=()=>{let e={...Bd,buildinConfigUpdatedAt:we.BUILD_TIME};return{...e,targetLanguage:Di,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function AB(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function kB(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Di;let n=await Pt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=tC(l,r[s]))}),ea({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=tC(l,n[s]))}),ea({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function LB(e){try{let t=await Pt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function tC(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function MB(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let m=(e?.translationLanguagePattern?.matches?.length||0)>0,g=await Pt("installedAt",""),p=Number(await ko("translage_page_daily",0)),f=Number(await Pt(Pr,0)),b;f>0&&(Date.now()-f0&&(Date.now()-pr&&(e=t)}return e}function RB(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function IB(e,t){let n=await FB(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=Ol(e[o],t[o]));else if(o==="translationServices")iC(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(X()||He()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?Vv(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(we.PROD==="0"&&we.DEV_RULES){let s=JSON.parse(we.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function FB(){let e={};if(!X()&&j.commands&&j.commands.getAll){let t=await j.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function oC(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!$v(a,e))return;let{generalRule:s,translationServices:u,...l}=i;ea({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,m)=>{e[c]=m}}),u&&iC(i,e),s&&(r=Ol(r,s))}),r}var zd={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var _B="";function jn(){return _B||zd.version}function tr(){return j.runtime.getManifest().version}function Ro(e){let t=Nl(),n=tr();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function L4(e){return e.replace(//g,">")}var sC=["*://*/*","*","*://*"],lC="immersive-translate-wildcard-placeholder.com";function M4(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>sC.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(sC.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,m=l.port===o;return l.port?c&&m:c}else return NB(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let y=u.split("://");l=y[0],l==="*"&&y.length>1&&(l="*",u="https://"+y[1])}else l="*",u="https://"+u;let m=u.replace(/\*/g,lC),g;try{g=new URL(m)}catch{return k.debug("invalid match pattern",m,"raw match value:",c),!1}let p=g.host,f=g.pathname;f==="/"&&(c.replace("://","").includes("/")||(f="/*"));let b=OB(l+":",uC(p),uC(f));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function uC(e){return e.replaceAll(lC,"*")}function OB(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function dt(e,t){return M4(e,t)!==null}function NB(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var cC=null;if(typeof trustedTypes<"u")try{cC=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var dC=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(dC=!0)});function Vd(){return dC}var nr=cC;function gC(e,t,n,r,a){if(!e)return"";for(let y of r||[])if(t?.querySelector(y))return"";let i=n[0],o=n[n.length-1];if(jB(t,o))return"";i=mC(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let y of n){let h=mC(t,y);if(c+=f(y),u&&h!=u){b(),u=h,l=f(y)||"";continue}u=h,l+=f(y)||""}b();let m=p(c),g=p(t.textContent||"");if(m==g&&t.innerText.split(` +`).filter(y=>!!y.trim()).length>1)return t.innerHTML||"";return s;function p(y){return y.replace(/\s+/g,"")}function f(y){return y instanceof HTMLElement?y.innerText:y?.textContent||""}function b(){let y=p(f(u)),h=p(l);if(y==h){let v=f(u).replace(/ */g,"");if(!c.startsWith(` `)&&v?.startsWith(` `)||!c.endsWith(` `)&&v?.endsWith(` -`)){s+=l;return}s+=SC(u,a)}else s+=l}}function hC(e,t,n,r,a){if(!e||!t)return"";let i=SC(n,a)||"";return t.replace(i,r)}var P4=globalThis.document?.createElement("div");function jB(e){return P4?(P4.innerHTML=cr?.createHTML(e)||e,P4?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function bC(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||jB(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function yC(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(m,g,p,f)=>{if(t[f+1]=="/"){let y=o.findIndex(v=>v.tag==g);if(y==-1)return m;let b=o[y];return o=o.slice(y+1),n?``:``}else{let y=e[g];if(!y)return m;if(o.unshift(y),n)return`<${n}${g}>`;if(!y.attributes)return`<${y.tag}>`;let b=a||"";return`<${y.tag} ${r||"id"}=${b}${y.id}${b}>`}});l.replace(i,(m,g,p,f)=>{if(l[f+1]=="/"){let y=s[0],b=s[1],v=u[u.length-1];y?.tag==g?(y.end==f?(y.endTag=m,y.end=f+m.length,u.push(y)):y.end==v?.begin&&v.end==f&&(y.endTag=m,y.end=f+m.length,y.times++,u[u.length-1]=y),s.shift()):b?.tag==g&&b.end==y.begin&&b.end==f&&(b.endTag=m,b.end=f+m.length,u.push(b),s.shift(),s.shift())}else s.unshift({tag:g,startTag:m,begin:f,end:f+m.length,times:0});return m});let c=l.slice();return u.forEach(m=>{if(!m.times)return;let g=Object.keys(e).length,p="";e[g]={tag:n||m.tag,content:"",id:g},n?p=`<${n}${g}>`:p=`<${m.tag} ${r||"id"}=${g}>`,e[g].content=c.slice(m.begin,m.end),l=l.replace(e[g].content,p)}),l}function vC(e,t,n,r){let a="";return n?a=CC(e,t,n):a=xC(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function CC(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),m=e[c];return m?l=="/"?m.content?"":``:m.content?CC(e,m.content,n):m.attributes?`<${m.tag} ${m.attributes}>`:`<${m.tag}>`:i})}function xC(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return xC(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function SC(e,t){if(e instanceof HTMLElement){if(wC(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=CC(u,a)}else s+=l}}function pC(e,t,n,r,a){if(!e||!t)return"";let i=CC(n,a)||"";return t.replace(i,r)}var P4=globalThis.document?.createElement("div");function UB(e){return P4?(P4.innerHTML=nr?.createHTML(e)||e,P4?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function fC(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||UB(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function hC(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(m,g,p,f)=>{if(t[f+1]=="/"){let y=o.findIndex(v=>v.tag==g);if(y==-1)return m;let h=o[y];return o=o.slice(y+1),n?``:``}else{let y=e[g];if(!y)return m;if(o.unshift(y),n)return`<${n}${g}>`;if(!y.attributes)return`<${y.tag}>`;let h=a||"";return`<${y.tag} ${r||"id"}=${h}${y.id}${h}>`}});l.replace(i,(m,g,p,f)=>{if(l[f+1]=="/"){let y=s[0],h=s[1],v=u[u.length-1];y?.tag==g?(y.end==f?(y.endTag=m,y.end=f+m.length,u.push(y)):y.end==v?.begin&&v.end==f&&(y.endTag=m,y.end=f+m.length,y.times++,u[u.length-1]=y),s.shift()):h?.tag==g&&h.end==y.begin&&h.end==f&&(h.endTag=m,h.end=f+m.length,u.push(h),s.shift(),s.shift())}else s.unshift({tag:g,startTag:m,begin:f,end:f+m.length,times:0});return m});let c=l.slice();return u.forEach(m=>{if(!m.times)return;let g=Object.keys(e).length,p="";e[g]={tag:n||m.tag,content:"",id:g},n?p=`<${n}${g}>`:p=`<${m.tag} ${r||"id"}=${g}>`,e[g].content=c.slice(m.begin,m.end),l=l.replace(e[g].content,p)}),l}function bC(e,t,n,r){let a="";return n?a=yC(e,t,n):a=vC(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function yC(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),m=e[c];return m?l=="/"?m.content?"":``:m.content?yC(e,m.content,n):m.attributes?`<${m.tag} ${m.attributes}>`:`<${m.tag}>`:i})}function vC(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return vC(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function CC(e,t){if(e instanceof HTMLElement){if(TC(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` `)<0?r=lt.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=lt.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}else if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}else return e?.outerHTML;return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function HB(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function pC(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Gd(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function R4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),ta({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Gs(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function TC(e,t){let n=t||e.translationService;return Gs(e,n,e.config.translationServices)?R4(e.rule):e.rule}function jl(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var qB=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Ar(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Ma(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Ar(e,i))return!1;if(Ar(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Ar(e,o)),c;function m(){return n&&n.display?!!qB.includes(n.display):Ar(e,r)}}var qt=Ar;function Io(e){return!!e.shadowRoot}function Ui(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Hl(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Pa(e,t=!1){let n=xs;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Fo(e,t,n=!1){let r=e?.[t];return Pa(r,n)}function Ks(e,t){return Pi(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function I4(e){let{rule:t}=e,n=zB(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function zB(e){let t=e.config.loadingTheme;return`${F}-loading-${t}`}function ql(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Yt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,K6,t.toString());let i=I4(e);return a.append(n?" ...":lt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Ys(e,t){return e.querySelector(`[${Af}='${t}']`)}function AC(){document.querySelectorAll(`[${Af}]`).forEach(t=>{t.remove()})}function kC(){document.querySelectorAll(`.${Yt}-error`).forEach(t=>{t.remove()})}function DC(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{qi(n)&&t.push(n)}),t}function F4(e,t){return t?VB(e):WB(e)}function VB(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,h)=>{if(f=="id"&&u[h+2]=="=")return p;let y=l++;return t[`${y}`]=LC(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=L4(p),g.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function WB(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,h)=>f.tl&&!h.tl?1:!f.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,h,y)=>{if(h=="id"&&l[y+2]=="=")return f;let b=c++;return t[`${b}`]=LC(h,m),o.length>2?f.replace(h,`<${o[2]}${b}>`):f.replace(h,`${o[0]}${b}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let h=c++;return t[`${h}`]=L4(f),o.length>2?p.replace(f,`<${o[2]}${h}>`):p.replace(f,`${o[0]}${h}${o[1]}`)})})}catch(m){k.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function B4(e,t){return t?GB(e):KB(e)}function GB(e){let{text:t,variables:n}=e,r=jl(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function KB(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function LC(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Qs(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||GC(l)||qC(l)||WC(l)||zC(l)||VC(l)||QB(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:$d(i?.trim(),n,r)}function Bo(e){return e.nodeType===Node.ELEMENT_NODE}function MC(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function PC(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function na(){return await Pt("fakeUserId","")}async function YB(){return await Pt("installedAt","")}async function Qd(e,t){let r=Te().INSTALL_FROM,a=Hn(),i=await YB(),o=await na(),s=await Je(),u=!1,l=await nt.get(pt,null),c=!1;l&&kt(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await js(),g=await qs(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Hs();return f&&(p.abGroup=f),p}function ui(e,t){let[n,r]=N();return q(()=>{!e||!t||(async()=>{let a=await _4(e,t);r(a)})()},[e,t,r]),n}async function _4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!He()&&X()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Pt("installedAt","");new Date(o).getTime()s==n),a=N4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>dt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>dt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function N4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function IC(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function FC(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function BC(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Kd[e]=setTimeout(()=>{n("")},t)})}function OC(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Hi(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Jd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function La(){return f4()?"imtAndroid":Pl()?"imtIOS":X()?"userscript":He()?"safari":Xn()?"firefox":J0()?"chrome":"other"}function Ra(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Zd(e){return e?.getAttribute("imt-state")||""}function Ia(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Xd(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Ar(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function NC(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function UC(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function jC(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var JB={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Yd={...JB};function li(e){Yd[e]||(Yd[e]=Date.now())}var EC=!1;function HC(){if(EC)return;EC=!0;let e=Yd.initial,t={...Yd};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(re+"PerformanceData",JSON.stringify(t))}var em=!1,ZB=X();function KC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function XB(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&YC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(zi(i,O0)){if(a===!0)return!0;continue}if(zl(i.nodeName,t.inlineTags))return!0;if(!U4(i,t))return!1}}return!0}function j4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(zl(e.nodeName,n)||U4(e,t)){if(zi(e,J6)||zl(e.nodeName,["BR"]))return!1;if(zi(e,O0))return!0;if(U4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return XB(e,t)}else return zi(e,O0);return!1}function YC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&zi(e,Q6,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&zi(e,j6))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||zl(e.nodeName,i))}function $d(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!JC(r)&&r.length>=n}function QC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(JC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function JC(e){for(let t=0;t127)return!1;return!0}function qC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function zC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function VC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function WC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function GC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function zi(e,t,n=!1){return H4(e,t,"1",n)}function H4(e,t,n,r=!1){return em&&!r?e[Cr]?e[Cr]?.[t]===n:!1:e.dataset?.[t]===n}function Zs(e){return(e.innerText||e.textContent||"").trim()}function q4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function tm(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(em&&!r?(e[Cr]||(e[Cr]={}),e[Cr][t]||(e[Cr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function ZC(e,t,n=!1){if(em&&!n){if(!e[Cr]||!e[Cr][t])return;delete e[Cr][t]}else delete e.dataset[t]}function XC(e,t,n=!1){return em&&!n?!e[Cr]||!e[Cr][t]?void 0:e[Cr][t]:e.dataset[t]}function U4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!zl(e.nodeName,n)}function Fe(){if(!globalThis||!globalThis.location)return"https://example.com";if(!St())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function rr(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function qi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(ZB){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${F}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function zl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function $C(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function ex(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||YC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function tx(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function nx(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${F}-theme-${i}-${m}: ${g}; -`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:h}=$C(g);s+=`--${F}-theme-${i}-${m}-rgb: ${p}, ${f}, ${h}; +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function jB(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function mC(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Wd(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function R4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),ea({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Gs(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function xC(e,t){let n=t||e.translationService;return Gs(e,n,e.config.translationServices)?R4(e.rule):e.rule}function Ul(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var HB=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Er(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function La(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Er(e,i))return!1;if(Er(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Er(e,o)),c;function m(){return n&&n.display?!!HB.includes(n.display):Er(e,r)}}var qt=Er;function Io(e){return!!e.shadowRoot}function Ui(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function jl(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Ma(e,t=!1){let n=xs;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Fo(e,t,n=!1){let r=e?.[t];return Ma(r,n)}function Ks(e,t){return Pi(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function I4(e){let{rule:t}=e,n=qB(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function qB(e){let t=e.config.loadingTheme;return`${F}-loading-${t}`}function Hl(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Yt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,W6,t.toString());let i=I4(e);return a.append(n?" ...":lt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Ys(e,t){return e.querySelector(`[${Af}='${t}']`)}function wC(){document.querySelectorAll(`[${Af}]`).forEach(t=>{t.remove()})}function EC(){document.querySelectorAll(`.${Yt}-error`).forEach(t=>{t.remove()})}function AC(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{qi(n)&&t.push(n)}),t}function F4(e,t){return t?zB(e):VB(e)}function zB(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,b)=>{if(f=="id"&&u[b+2]=="=")return p;let y=l++;return t[`${y}`]=kC(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=L4(p),g.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function VB(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,b)=>f.tl&&!b.tl?1:!f.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,b,y)=>{if(b=="id"&&l[y+2]=="=")return f;let h=c++;return t[`${h}`]=kC(b,m),o.length>2?f.replace(b,`<${o[2]}${h}>`):f.replace(b,`${o[0]}${h}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let b=c++;return t[`${b}`]=L4(f),o.length>2?p.replace(f,`<${o[2]}${b}>`):p.replace(f,`${o[0]}${b}${o[1]}`)})})}catch(m){k.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function B4(e,t){return t?WB(e):GB(e)}function WB(e){let{text:t,variables:n}=e,r=Ul(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function GB(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function kC(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Qs(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||VC(l)||jC(l)||zC(l)||HC(l)||qC(l)||YB(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Xd(i?.trim(),n,r)}function Bo(e){return e.nodeType===Node.ELEMENT_NODE}function DC(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function LC(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ta(){return await Pt("fakeUserId","")}async function KB(){return await Pt("installedAt","")}async function Yd(e,t){let r=Se().INSTALL_FROM,a=jn(),i=await KB(),o=await ta(),s=await Qe(),u=!1,l=await nt.get(pt,null),c=!1;l&&kt(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await js(),g=await qs(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Hs();return f&&(p.abGroup=f),p}function si(e,t){let[n,r]=N();return q(()=>{!e||!t||(async()=>{let a=await _4(e,t);r(a)})()},[e,t,r]),n}async function _4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!He()&&X()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Pt("installedAt","");new Date(o).getTime()s==n),a=N4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>dt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>dt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function N4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function PC(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function RC(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function IC(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Gd[e]=setTimeout(()=>{n("")},t)})}function BC(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Hi(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Qd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Da(){return f4()?"imtAndroid":Ml()?"imtIOS":X()?"userscript":He()?"safari":Zn()?"firefox":Q0()?"chrome":"other"}function Pa(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Jd(e){return e?.getAttribute("imt-state")||""}function Ra(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Zd(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Er(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function _C(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function OC(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function NC(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var QB={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Kd={...QB};function ui(e){Kd[e]||(Kd[e]=Date.now())}var SC=!1;function UC(){if(SC)return;SC=!0;let e=Kd.initial,t={...Kd};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(re+"PerformanceData",JSON.stringify(t))}var $d=!1,JB=X();function WC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function ZB(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&GC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(zi(i,_0)){if(a===!0)return!0;continue}if(ql(i.nodeName,t.inlineTags))return!0;if(!U4(i,t))return!1}}return!0}function j4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(ql(e.nodeName,n)||U4(e,t)){if(zi(e,Y6)||ql(e.nodeName,["BR"]))return!1;if(zi(e,_0))return!0;if(U4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return ZB(e,t)}else return zi(e,_0);return!1}function GC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&zi(e,K6,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&zi(e,N6))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||ql(e.nodeName,i))}function Xd(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!YC(r)&&r.length>=n}function KC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(YC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function YC(e){for(let t=0;t127)return!1;return!0}function jC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function HC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function qC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function zC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function VC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function zi(e,t,n=!1){return H4(e,t,"1",n)}function H4(e,t,n,r=!1){return $d&&!r?e[vr]?e[vr]?.[t]===n:!1:e.dataset?.[t]===n}function Zs(e){return(e.innerText||e.textContent||"").trim()}function q4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function em(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||($d&&!r?(e[vr]||(e[vr]={}),e[vr][t]||(e[vr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function QC(e,t,n=!1){if($d&&!n){if(!e[vr]||!e[vr][t])return;delete e[vr][t]}else delete e.dataset[t]}function JC(e,t,n=!1){return $d&&!n?!e[vr]||!e[vr][t]?void 0:e[vr][t]:e.dataset[t]}function U4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!ql(e.nodeName,n)}function Ie(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Tt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function rr(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function qi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(JB){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${F}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function ql(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function ZC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function XC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||GC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function $C(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function ex(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${F}-theme-${i}-${m}: ${g}; +`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b}=ZC(g);s+=`--${F}-theme-${i}-${m}-rgb: ${p}, ${f}, ${b}; `}}}),r||(r="inherit"),e&&(s+=` .${F}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5861,45 +5861,45 @@ Translate the content to {{to}} Language: [imt-state="dual"] .${F}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?rr(e,l,F+"-user-custom-style"):a&&rr(e,"",F+"-user-custom-style")}function Vi(e,t){let r=Te().IMMERSIVE_TRANSLATE_INJECTED_CSS;rr(e,r,F+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Xs(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?rr(e,l,F+"-user-custom-style"):a&&rr(e,"",F+"-user-custom-style")}function Vi(e,t){let r=Se().IMMERSIVE_TRANSLATE_INJECTED_CSS;rr(e,r,F+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Xs(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&rr(e,s,F+"-dynamic-injected-css")}var $B=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--$B,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ue.vnode&&Ue.vnode(u),u}function z4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(le,{children:n["#services"]}):a.test(e)?d(le,{children:n["#ai"]}):d(le,{children:n[e]!=null?n[e]:t})}function _o(){let[e,t]=N(location.hash);return q(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var nm=()=>sr.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=Ly[e]||e,i=Nf[e]||e,o=Uf[e],s=jf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Wi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Uf,a="zh-CN"):n==="zh-TW"?(r=jf,a="zh-TW"):(r=Nf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function V4(e){let t=j.runtime.getURL(P6),n=new URL(t);return e&&(e.startsWith("http")||!Xn())&&n.searchParams.set("file",e),n.href}var Fa=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return k.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=L0){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return k.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw k.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function rx(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${D0}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function ax(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function rm(e,t,n,r,a,i,o){if(k.debug(`autoSyncStrategy accessToken: ${e}`),t===null){k.debug("autoSyncStrategy settings is null");return}let s=new Fa(e);try{let u=(await s.findByName(L0)).files;k.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(k.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)k.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())k.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),tl()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(Ai);if(t[Ai])return t[Ai]}static async removeAuthInfo(){return await j.storage.local.remove(Ai)}static setAuthInfo(t){return j.storage.local.set({[Ai]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(k.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await ix(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=rx(this._state,this._redirectUrl);return k.debug(this.CLASSNAME,"auth url: "+r),tl()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[rl]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(k.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let h=new URL(f.url||""),y=ax(f.url);h.pathname.startsWith("/auth-done")&&y?.access_token&&(k.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{k.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{k.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var t_="https://www.googleapis.com/oauth2/v3/tokeninfo",n_=D0,r_=Te().REDIRECT_URL;function ix(e){if(!e)throw"Authorization failure";let t=`${t_}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===n_?i(e):o("Token validation error")})})}return fetch(n).then(r)}function W4(e,t=!1){let n=r_;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Gi(e,n).auth(t)}function G4(e,t=!1){return W4(e,t).then(n=>n.access_token||null)}async function ox(){}var a_="https://www.google-analytics.com/mp/collect",i_=30,o_=100;async function s_(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>i_?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function sx(e){Ey().forEach(({measurementId:t,apiSecret:n})=>{ux({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function $s(e,t,n){return ux({measurement_id:Ty,api_secret:wy,page_title:e,page_location:t,time:n})}async function ux(e){try{let t=Te(),n=Fi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await _i(),i=`${a_}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await s_(),engagement_time_msec:e.time||o_,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){k.error(t)}}var Vl=new Map;function u_(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function K4(e){let t=await m_(),n=Date.now();if(t){if(Vl.has(e))return;let r=await j.tabs.get(e),a=u_(r.url);if(!a)return;Vl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}lx(e)}function lx(e){if(Vl.has(e)){let t=Vl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Vl.delete(e),c_(t.hostname,n)}}async function l_(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Wl().sendMessage(`content_script:main:${n}`,e)}function c_(e,t){$s(`${e}(video)`,e,t),d_(t)}var am="videoWatchTimeDay";async function d_(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(am,null);if(!a){await Qe(am,{day:r,time:e});return}if(a.day!==r){$s("day-video."+et,"day-video."+et,a.time),await Qe(am,{day:r,time:e});return}let i={day:r,time:a.time+e};await Qe(am,i)}catch(t){k.error(t)}}async function m_(){try{return await l_({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Gl=new Map;async function cx(e){let t=await Y4(),n=Date.now();if(t=="Translated"){if(Gl.has(e))return;let r=await j.tabs.get(e),a=g_(r.url);if(!a)return;Gl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}p_(e)}function g_(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function p_(e){if(Gl.has(e)){let t=Gl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Gl.delete(e),h_(t.hostname,n)}}async function f_(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Wl().sendMessage(`content_script:main:${n}`,e)}function h_(e,t){$s(e,e,t),b_(t)}async function Y4(){try{return await f_({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var im="readTimeDay";async function b_(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(im,null);if(!a){await Qe(im,{day:r,time:e});return}if(a.day!==r){$s("day."+et,"day."+et,a.time),await Qe(im,{day:r,time:e});return}let i={day:r,time:a.time+e};await Qe(im,i)}catch(t){k.error(t)}}var om,y_=async function(e,t){let{method:n,data:r}=e;if(k.debug("background received message",n,r||" "),n==="mock")await tt(150);else{if(n==="queryParagraphCache")return od(r);if(n==="setParagraphCache")return id(r);if(n==="calculateSize")return sd();if(n==="fetch")return Or(r);if(n==="getConfig")return Je();if(n==="getLocalConfig")return Rt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=Te().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=Te().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=Te().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=Te().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=V4(a);(He()||!a)&&(i=Te().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return Dt(r);if(n=="getUserConfig")return ln();if(n=="setUserConfig")return ur(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await dx(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return ae(o.languages[0].language);for(let s of o.languages){let u=ae(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return k.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await dx(j.tabs.detectLanguage(t.id),1500,"auto");return ae(a)}catch(a){return k.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await ox()}catch(a){k.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(eu({}),v_(a,i)),a&&cx(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Ri.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")sx(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&K4(a)}else n==="updateToggleTranslateContextMenu"?eu(r):n==="updateImageMenu"&&Oo()}}};function Wl(){return om||(om=new wa("background",!1).getConnection("main",y_),om)}function sm(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function v_(e,t){if(He())return;let n=await C_();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:sm("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:sm("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:sm("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:sm("icons",n)}))}async function C_(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function dx(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function x_(){return navigator.userAgent.indexOf("Mac")!==-1}var S_="";function gx(){return S_||globalThis.navigator.userAgent}function T_(){let e=gx();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var mx={Alt:"\u2325"};function Ba(e=""){return x_()?Object.keys(mx).reduce((t,n)=>t.replace(n,mx[n]),e):e}var w_="";function E_(){return w_||globalThis.location.hostname}function px(){try{let e=E_(),t=new URL(Pf);if(e===t.hostname||!T_())return!0;let n=/Version\/([\d\.]+)/,r=gx().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return k.error("Error checking if options supported",e),!0}}function ci(e,t){return X(t)?!1:fx(e.config,e.isPro)}function fx(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function hx(){if(X())return!1;let e=await Je(),t=await As();return fx(e,t)}function um(e){let t=La();return!(e?.platforms&&!e.platforms.includes(t))}function Q4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function bx(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function A_(){return J0()&&!He()}var Kl=A_()?["action"]:["browser_action","page_action"],yx="",k_=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Kl]},{id:ol,contexts:["image"]},{id:il,contexts:Kl},{id:sl,contexts:Kl},{id:ul,contexts:Kl},{id:H6,contexts:Kl}];async function Yl(e){e=e||await Je(),k.debug("update ContextMenu",e);for(let t of k_){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function eu({targetLanguage:e,text:t}){let n=await Je(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)yx=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await Y4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Ba(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),yx=""}j.contextMenus.update(r,{title:i,visible:a})}async function Oo(){try{let e=await hx();j.contextMenus.update(ol,{visible:e})}catch{}}function vx(e,t){let n=t;n||(n=Te().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${F}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function lm(e,t,n,r,a){let i=t.original||t,o=fC(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let b=0;b0&&i[b].textContent.length0&&(x=m[b-1].text),bf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function Cx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function xx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=Ps(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=jl(e.targetText):e.targetText=lt.sanitize(jl(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let f=0;f/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=ad(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=vC(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` -`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let m={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},g=Fo(t.config.translationServices,t.translationService);if(g.length>2){let p=g[2];return D_({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=Sx(m,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function J4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function D_(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),x=p[C-1]===" ",w=p[C+v.length]===" ",S=v.match(h);if(!S)return v;let T=S[1],A=Number(T);if(isNaN(A))return v;let D=o[Number(A)];if(D&&D.type==="element"){let M=lt.sanitize(D.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return x||(M=" "+M),w||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return x||(M=" "+M),w||(M=M+" "),M}else k.error("variable type not supported",D,v);return v}));let y=tu(l,n,r||[],s),b=nu(l);return X4({targetWrapperTag:a,innerClassList:b,classList:y,html:p,targetElementEffectAttributeName:Cs,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function X4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function Z4(e){let t=e[e.length-1];return t?t.text:""}function tu(e,t,n=[],r){let a=["notranslate"];return r&&a.push(ey),e&&(a.push(`${F}-target-translation-theme-${e}`),t?a.push(`${Df}-theme-${e}`):a.push(`${kf}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Df):a.push(kf),a}function nu(e){let t=["notranslate",U0];return e&&t.push(`${F}-target-translation-theme-${e}-inner`),t}function Sx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Fo(n.config.translationServices,n.translationService,!0),g="afterend",p=m[0],f=m[1],h=`${p}(\\d+)${f}`,y=new RegExp(h,"g"),b=u;o.length>0&&(b=b.replace(y,x=>{let w=b.indexOf(x),S=b[w-1]===" ",T=b[w+x.length]===" ",D=x.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(D);if(isNaN(M))return x;let I=o[M];if(I&&I.type==="element"){let P=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return S||(P=" "+P),T||(P=P+" "),P}else k.error("variable type not supported",I,x);return x}));let v=tu(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push($6);let C=nu(i);return X4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:b,targetElementEffectAttributeName:Cs,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function rt(e){bf({type:"success",text:e})}function bt(e){bf({type:"error",text:e})}var $4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function cm(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");q(()=>{$4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=ue(g=>{let p=typeof g=="function"?g(i):g;k.debug("new settings",p),$4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function dm(e,t,n){let r=[];return function(){let[i,o,s,u]=cm(e,t,n),l=ue(c=>{for(let m of r)m(c)},[]);return q(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function Tx(e,t){return dm(e,t,"local")}function wx(e,t){return dm(e,t,"sync")}var L_="userConfig",M_=null,P_=wx(L_,M_);function Oe(e){let[t,n,r,a]=P_(),[i,o]=N();q(()=>{(async function(){let u=await qd();o(u)})()},[t]);let s=ue(async u=>{let l=typeof u=="function"?u(i):u;l&&eh(l);let{userConfig:c,promptPool:m,objectPool:g}=await k4(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(m).length,m),k.debug("objectPool size",JSON.stringify(g).length,g),await Jr(jd,m),await Jr(Hd,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function eh(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Ie=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=y5(a,c,m)}catch(y){if(r)for(let b=0;by));let g=[],p=[],f=(y,b,v)=>{let C="";if(b.translatedTexts&&b.translatedTexts[0]&&(C=b.translatedTexts[0]),p[y]||(p[y]=b,p[y].translatedTexts=Array(b.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let S=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,b?.callback?.(S,null,b.sentence);return}p[y].translatedTexts[b.partIndex]=C;let x=p[y],w=0;for(let S=0;S{let w=b.from;if(b.fromByClient&&b.fromByClient!=="auto"&&(w=b.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:b.tempSentences.map(T=>T.text),forces:b.tempSentences.map(T=>T.force),xpaths:b.tempSentences.map(T=>T.xpath||""),from:w,to:b.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:b.tempSentences};{let S=X6;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(S=this.serviceConfig.translationTextSeparator);let T=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(T=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Pa(this.serviceConfig);if(b.tempSentences.forEach((U,z)=>{let Y=F4({text:U.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:b.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);U.force!==!0&&(Y&&Y.text&&Y.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:b.tempSentences,text:U,from:w,to:b.to})}let M="";T&&T.length>=2?M=A.map((U,z)=>{let{item:Y}=U;return z===A.length-1?Y.text:Y.text+T[0]+(z+1)+T[1]}).join(""):M=A.map(({item:U})=>U.text).join(S);let I=await this.translate({text:M,from:w,to:b.to,url:v,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:b.inArticleContext}),{text:P}=I,R=[];if(T&&T.length>=2){let U=`${T[0]}\\d+${T[1]}`;T&&T.length>=3&&(U=T[2]);let z=new RegExp(U,"g");R=P.split(z)}else R=P.split(S);let L=[];if(R.length>A.length){for(let U=0;UU.text);return D=Pa(this.serviceConfig,!0),L.forEach((U,z)=>{let Y=A[z],ee=Y.index,Re=Y.variables||{};Object.keys(Re).length>0&&(U=B4({text:U,delimiters:D,variables:Re},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ee]=U}),{sourceTempSentences:b.tempSentences,text:_,from:I.from,to:I.to}}};g.push(x().then(w=>{let{text:S,sourceTempSentences:T}=w;for(let A=0;A{if(w instanceof V&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let S=0;S{let b=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(b=y.translatedTexts.join("")),{...y.sentence,text:b}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Pa(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=F4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Pa(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=B4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Lt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var ru="input is invalid type",th=typeof window=="object",Ki=th?window:{};Ki.JS_SHA256_NO_WINDOW&&(th=!1);var R_=!th&&typeof self=="object",I_=!Ki.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;I_?Ki=global:R_&&(Ki=self);var Wae=!Ki.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Gae=typeof define=="function"&&define.amd,Ql=!Ki.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ye="0123456789abcdef".split(""),F_=[-2147483648,8388608,32768,128],ra=[24,16,8,0],mm=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],gm=["hex","array","digest","arrayBuffer"],Sn=[];(Ki.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Ql&&(Ki.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ex=function(e,t){return function(n){return new Tn(t,!0).update(n)[e]()}},kx=function(e){var t=Ex("hex",e);t.create=function(){return new Tn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Tn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=F_[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Tn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,h,y,b,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,h=a&i^~a&o,p=s+m+h+mm[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),b=r&e,g=b^r&t^y,h=s&a^~s&i,p=o+m+h+mm[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^b,h=o&s^~o&a,p=i+m+h+mm[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,h=i&o^~i&s,p=a+m+h+mm[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Tn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ye[e>>28&15]+ye[e>>24&15]+ye[e>>20&15]+ye[e>>16&15]+ye[e>>12&15]+ye[e>>8&15]+ye[e>>4&15]+ye[e&15]+ye[t>>28&15]+ye[t>>24&15]+ye[t>>20&15]+ye[t>>16&15]+ye[t>>12&15]+ye[t>>8&15]+ye[t>>4&15]+ye[t&15]+ye[n>>28&15]+ye[n>>24&15]+ye[n>>20&15]+ye[n>>16&15]+ye[n>>12&15]+ye[n>>8&15]+ye[n>>4&15]+ye[n&15]+ye[r>>28&15]+ye[r>>24&15]+ye[r>>20&15]+ye[r>>16&15]+ye[r>>12&15]+ye[r>>8&15]+ye[r>>4&15]+ye[r&15]+ye[a>>28&15]+ye[a>>24&15]+ye[a>>20&15]+ye[a>>16&15]+ye[a>>12&15]+ye[a>>8&15]+ye[a>>4&15]+ye[a&15]+ye[i>>28&15]+ye[i>>24&15]+ye[i>>20&15]+ye[i>>16&15]+ye[i>>12&15]+ye[i>>8&15]+ye[i>>4&15]+ye[i&15]+ye[o>>28&15]+ye[o>>24&15]+ye[o>>20&15]+ye[o>>16&15]+ye[o>>12&15]+ye[o>>8&15]+ye[o>>4&15]+ye[o&15];return this.is224||(u+=ye[s>>28&15]+ye[s>>24&15]+ye[s>>20&15]+ye[s>>16&15]+ye[s>>12&15]+ye[s>>8&15]+ye[s>>4&15]+ye[s&15]),u};Tn.prototype.toString=Tn.prototype.hex;Tn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Tn.prototype.array=Tn.prototype.digest;Tn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function pm(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(ru);if(Ql&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Ql||!ArrayBuffer.isView(e)))throw new Error(ru)}else throw new Error(ru);e.length>64&&(e=new Tn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Tn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}pm.prototype=new Tn;pm.prototype.finalize=function(){if(Tn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Tn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Tn.prototype.finalize.call(this)}};var au=kx();au.sha256=au;au.sha224=kx(!0);au.sha256.hmac=Dx();au.sha224.hmac=Dx(!0);var Lx=au;var Mx=Lx.sha256;function dr(e){return Promise.resolve(Mx(e))}function iu(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function kr(e,t){let n=Mx.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Px(e,t){let n=await kr(e,t);return iu(n)}async function fm(e,t){let n=B_(t),r=await kr(e,n);return iu(r)}function B_(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Rx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Jl=class e extends Ie{static langMap=new Map(Rx);maxTextGroupLength=50;static langMapReverse=new Map(Rx.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await dr(a)].join(` +`+t.rule.additionalInjectedCss)),s&&rr(e,s,F+"-dynamic-injected-css")}var XB=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--XB,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ue.vnode&&Ue.vnode(u),u}function z4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(le,{children:n["#services"]}):a.test(e)?d(le,{children:n["#ai"]}):d(le,{children:n[e]!=null?n[e]:t})}function _o(){let[e,t]=N(location.hash);return q(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var tm=()=>ur.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=ky[e]||e,i=Nf[e]||e,o=Uf[e],s=jf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Wi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Uf,a="zh-CN"):n==="zh-TW"?(r=jf,a="zh-TW"):(r=Nf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function V4(e){let t=j.runtime.getURL(L6),n=new URL(t);return e&&(e.startsWith("http")||!Zn())&&n.searchParams.set("file",e),n.href}var Ia=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return k.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=D0){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return k.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw k.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function tx(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${k0}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function nx(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function nm(e,t,n,r,a,i,o){if(k.debug(`autoSyncStrategy accessToken: ${e}`),t===null){k.debug("autoSyncStrategy settings is null");return}let s=new Ia(e);try{let u=(await s.findByName(D0)).files;k.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(k.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)k.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())k.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),tl()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(Ai);if(t[Ai])return t[Ai]}static async removeAuthInfo(){return await j.storage.local.remove(Ai)}static setAuthInfo(t){return j.storage.local.set({[Ai]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(k.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await rx(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=tx(this._state,this._redirectUrl);return k.debug(this.CLASSNAME,"auth url: "+r),tl()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[rl]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(k.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let b=new URL(f.url||""),y=nx(f.url);b.pathname.startsWith("/auth-done")&&y?.access_token&&(k.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{k.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{k.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var e_="https://www.googleapis.com/oauth2/v3/tokeninfo",t_=k0,n_=Se().REDIRECT_URL;function rx(e){if(!e)throw"Authorization failure";let t=`${e_}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===t_?i(e):o("Token validation error")})})}return fetch(n).then(r)}function W4(e,t=!1){let n=n_;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Gi(e,n).auth(t)}function G4(e,t=!1){return W4(e,t).then(n=>n.access_token||null)}async function ax(){}var r_="https://www.google-analytics.com/mp/collect",a_=30,i_=100;async function o_(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>a_?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function ix(e){Sy().forEach(({measurementId:t,apiSecret:n})=>{ox({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function $s(e,t,n){return ox({measurement_id:xy,api_secret:Ty,page_title:e,page_location:t,time:n})}async function ox(e){try{let t=Se(),n=Fi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await _i(),i=`${r_}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await o_(),engagement_time_msec:e.time||i_,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){k.error(t)}}var zl=new Map;function s_(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function K4(e){let t=await d_(),n=Date.now();if(t){if(zl.has(e))return;let r=await j.tabs.get(e),a=s_(r.url);if(!a)return;zl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}sx(e)}function sx(e){if(zl.has(e)){let t=zl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),zl.delete(e),l_(t.hostname,n)}}async function u_(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Vl().sendMessage(`content_script:main:${n}`,e)}function l_(e,t){$s(`${e}(video)`,e,t),c_(t)}var rm="videoWatchTimeDay";async function c_(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(rm,null);if(!a){await rt(rm,{day:r,time:e});return}if(a.day!==r){$s("day-video."+et,"day-video."+et,a.time),await rt(rm,{day:r,time:e});return}let i={day:r,time:a.time+e};await rt(rm,i)}catch(t){k.error(t)}}async function d_(){try{return await u_({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Wl=new Map;async function ux(e){let t=await Y4(),n=Date.now();if(t=="Translated"){if(Wl.has(e))return;let r=await j.tabs.get(e),a=m_(r.url);if(!a)return;Wl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}g_(e)}function m_(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function g_(e){if(Wl.has(e)){let t=Wl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Wl.delete(e),f_(t.hostname,n)}}async function p_(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Vl().sendMessage(`content_script:main:${n}`,e)}function f_(e,t){$s(e,e,t),h_(t)}async function Y4(){try{return await p_({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var am="readTimeDay";async function h_(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(am,null);if(!a){await rt(am,{day:r,time:e});return}if(a.day!==r){$s("day."+et,"day."+et,a.time),await rt(am,{day:r,time:e});return}let i={day:r,time:a.time+e};await rt(am,i)}catch(t){k.error(t)}}var im,b_=async function(e,t){let{method:n,data:r}=e;if(k.debug("background received message",n,r||" "),n==="mock")await tt(150);else{if(n==="queryParagraphCache")return id(r);if(n==="setParagraphCache")return ad(r);if(n==="calculateSize")return od();if(n==="fetch")return _r(r);if(n==="getConfig")return Qe();if(n==="getLocalConfig")return Rt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=Se().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=Se().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=Se().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=Se().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=V4(a);(He()||!a)&&(i=Se().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return Dt(r);if(n=="getUserConfig")return ln();if(n=="setUserConfig")return lr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await lx(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return ae(o.languages[0].language);for(let s of o.languages){let u=ae(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return k.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await lx(j.tabs.detectLanguage(t.id),1500,"auto");return ae(a)}catch(a){return k.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await ax()}catch(a){k.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(eu({}),y_(a,i)),a&&ux(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Ri.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")ix(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&K4(a)}else n==="updateToggleTranslateContextMenu"?eu(r):n==="updateImageMenu"&&Oo()}}};function Vl(){return im||(im=new Sa("background",!1).getConnection("main",b_),im)}function om(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function y_(e,t){if(He())return;let n=await v_();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:om("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:om("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:om("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:om("icons",n)}))}async function v_(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function lx(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function C_(){return navigator.userAgent.indexOf("Mac")!==-1}var x_="";function dx(){return x_||globalThis.navigator.userAgent}function T_(){let e=dx();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var cx={Alt:"\u2325"};function Fa(e=""){return C_()?Object.keys(cx).reduce((t,n)=>t.replace(n,cx[n]),e):e}var S_="";function w_(){return S_||globalThis.location.hostname}function mx(){try{let e=w_(),t=new URL(Pf);if(e===t.hostname||!T_())return!0;let n=/Version\/([\d\.]+)/,r=dx().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return k.error("Error checking if options supported",e),!0}}function li(e,t){return X(t)?!1:gx(e.config,e.isPro)}function gx(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function px(){if(X())return!1;let e=await Qe(),t=await As();return gx(e,t)}function sm(e){let t=Da();return!(e?.platforms&&!e.platforms.includes(t))}function Q4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function fx(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function E_(){return Q0()&&!He()}var Gl=E_()?["action"]:["browser_action","page_action"],hx="",A_=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Gl]},{id:ol,contexts:["image"]},{id:il,contexts:Gl},{id:sl,contexts:Gl},{id:ul,contexts:Gl},{id:U6,contexts:Gl}];async function Kl(e){e=e||await Qe(),k.debug("update ContextMenu",e);for(let t of A_){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function eu({targetLanguage:e,text:t}){let n=await Qe(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)hx=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await Y4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Fa(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),hx=""}j.contextMenus.update(r,{title:i,visible:a})}async function Oo(){try{let e=await px();j.contextMenus.update(ol,{visible:e})}catch{}}function bx(e,t){let n=t;n||(n=Se().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${F}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function um(e,t,n,r,a){let i=t.original||t,o=gC(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let h=0;h0&&i[h].textContent.length0&&(x=m[h-1].text),hf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function yx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function vx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=Ps(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=Ul(e.targetText):e.targetText=lt.sanitize(Ul(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let f=0;f/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=rd(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=bC(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` +`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let m={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},g=Fo(t.config.translationServices,t.translationService);if(g.length>2){let p=g[2];return k_({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=Cx(m,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function J4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function k_(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),x=p[C-1]===" ",w=p[C+v.length]===" ",T=v.match(b);if(!T)return v;let S=T[1],A=Number(S);if(isNaN(A))return v;let D=o[Number(A)];if(D&&D.type==="element"){let M=lt.sanitize(D.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return x||(M=" "+M),w||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return x||(M=" "+M),w||(M=M+" "),M}else k.error("variable type not supported",D,v);return v}));let y=tu(l,n,r||[],s),h=nu(l);return X4({targetWrapperTag:a,innerClassList:h,classList:y,html:p,targetElementEffectAttributeName:Cs,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function X4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function Z4(e){let t=e[e.length-1];return t?t.text:""}function tu(e,t,n=[],r){let a=["notranslate"];return r&&a.push(X6),e&&(a.push(`${F}-target-translation-theme-${e}`),t?a.push(`${Df}-theme-${e}`):a.push(`${kf}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Df):a.push(kf),a}function nu(e){let t=["notranslate",N0];return e&&t.push(`${F}-target-translation-theme-${e}-inner`),t}function Cx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Fo(n.config.translationServices,n.translationService,!0),g="afterend",p=m[0],f=m[1],b=`${p}(\\d+)${f}`,y=new RegExp(b,"g"),h=u;o.length>0&&(h=h.replace(y,x=>{let w=h.indexOf(x),T=h[w-1]===" ",S=h[w+x.length]===" ",D=x.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(D);if(isNaN(M))return x;let I=o[M];if(I&&I.type==="element"){let P=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return T||(P=" "+P),S||(P=P+" "),P}else k.error("variable type not supported",I,x);return x}));let v=tu(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(Z6);let C=nu(i);return X4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:h,targetElementEffectAttributeName:Cs,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function at(e){hf({type:"success",text:e})}function bt(e){hf({type:"error",text:e})}var $4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function lm(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");q(()=>{$4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=ue(g=>{let p=typeof g=="function"?g(i):g;k.debug("new settings",p),$4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function cm(e,t,n){let r=[];return function(){let[i,o,s,u]=lm(e,t,n),l=ue(c=>{for(let m of r)m(c)},[]);return q(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function xx(e,t){return cm(e,t,"local")}function Tx(e,t){return cm(e,t,"sync")}var D_="userConfig",L_=null,M_=Tx(D_,L_);function Ne(e){let[t,n,r,a]=M_(),[i,o]=N();q(()=>{(async function(){let u=await Hd();o(u)})()},[t]);let s=ue(async u=>{let l=typeof u=="function"?u(i):u;l&&eh(l);let{userConfig:c,promptPool:m,objectPool:g}=await k4(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(m).length,m),k.debug("objectPool size",JSON.stringify(g).length,g),await Qr(Ud,m),await Qr(jd,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function eh(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Fe=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=h5(a,c,m)}catch(y){if(r)for(let h=0;hy));let g=[],p=[],f=(y,h,v)=>{let C="";if(h.translatedTexts&&h.translatedTexts[0]&&(C=h.translatedTexts[0]),p[y]||(p[y]=h,p[y].translatedTexts=Array(h.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let T=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,h?.callback?.(T,null,h.sentence);return}p[y].translatedTexts[h.partIndex]=C;let x=p[y],w=0;for(let T=0;T{let w=h.from;if(h.fromByClient&&h.fromByClient!=="auto"&&(w=h.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:h.tempSentences.map(S=>S.text),forces:h.tempSentences.map(S=>S.force),xpaths:h.tempSentences.map(S=>S.xpath||""),from:w,to:h.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:h.tempSentences};{let T=J6;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(T=this.serviceConfig.translationTextSeparator);let S=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(S=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Ma(this.serviceConfig);if(h.tempSentences.forEach((U,z)=>{let Y=F4({text:U.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:h.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);U.force!==!0&&(Y&&Y.text&&Y.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:h.tempSentences,text:U,from:w,to:h.to})}let M="";S&&S.length>=2?M=A.map((U,z)=>{let{item:Y}=U;return z===A.length-1?Y.text:Y.text+S[0]+(z+1)+S[1]}).join(""):M=A.map(({item:U})=>U.text).join(T);let I=await this.translate({text:M,from:w,to:h.to,url:v,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:h.inArticleContext}),{text:P}=I,R=[];if(S&&S.length>=2){let U=`${S[0]}\\d+${S[1]}`;S&&S.length>=3&&(U=S[2]);let z=new RegExp(U,"g");R=P.split(z)}else R=P.split(T);let L=[];if(R.length>A.length){for(let U=0;UU.text);return D=Ma(this.serviceConfig,!0),L.forEach((U,z)=>{let Y=A[z],ee=Y.index,Re=Y.variables||{};Object.keys(Re).length>0&&(U=B4({text:U,delimiters:D,variables:Re},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ee]=U}),{sourceTempSentences:h.tempSentences,text:_,from:I.from,to:I.to}}};g.push(x().then(w=>{let{text:T,sourceTempSentences:S}=w;for(let A=0;A{if(w instanceof V&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let T=0;T{let h=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(h=y.translatedTexts.join("")),{...y.sentence,text:h}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Ma(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=F4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Ma(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=B4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ke({text:t,minLength:18,pageLangs:[Lt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var ru="input is invalid type",th=typeof window=="object",Ki=th?window:{};Ki.JS_SHA256_NO_WINDOW&&(th=!1);var P_=!th&&typeof self=="object",R_=!Ki.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;R_?Ki=global:P_&&(Ki=self);var Gae=!Ki.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Kae=typeof define=="function"&&define.amd,Yl=!Ki.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ye="0123456789abcdef".split(""),I_=[-2147483648,8388608,32768,128],na=[24,16,8,0],dm=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],mm=["hex","array","digest","arrayBuffer"],Tn=[];(Ki.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Yl&&(Ki.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Sx=function(e,t){return function(n){return new Sn(t,!0).update(n)[e]()}},Ex=function(e){var t=Sx("hex",e);t.create=function(){return new Sn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Sn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=I_[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Sn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,b,y,h,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,b=a&i^~a&o,p=s+m+b+dm[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),h=r&e,g=h^r&t^y,b=s&a^~s&i,p=o+m+b+dm[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^h,b=o&s^~o&a,p=i+m+b+dm[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,b=i&o^~i&s,p=a+m+b+dm[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Sn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ye[e>>28&15]+ye[e>>24&15]+ye[e>>20&15]+ye[e>>16&15]+ye[e>>12&15]+ye[e>>8&15]+ye[e>>4&15]+ye[e&15]+ye[t>>28&15]+ye[t>>24&15]+ye[t>>20&15]+ye[t>>16&15]+ye[t>>12&15]+ye[t>>8&15]+ye[t>>4&15]+ye[t&15]+ye[n>>28&15]+ye[n>>24&15]+ye[n>>20&15]+ye[n>>16&15]+ye[n>>12&15]+ye[n>>8&15]+ye[n>>4&15]+ye[n&15]+ye[r>>28&15]+ye[r>>24&15]+ye[r>>20&15]+ye[r>>16&15]+ye[r>>12&15]+ye[r>>8&15]+ye[r>>4&15]+ye[r&15]+ye[a>>28&15]+ye[a>>24&15]+ye[a>>20&15]+ye[a>>16&15]+ye[a>>12&15]+ye[a>>8&15]+ye[a>>4&15]+ye[a&15]+ye[i>>28&15]+ye[i>>24&15]+ye[i>>20&15]+ye[i>>16&15]+ye[i>>12&15]+ye[i>>8&15]+ye[i>>4&15]+ye[i&15]+ye[o>>28&15]+ye[o>>24&15]+ye[o>>20&15]+ye[o>>16&15]+ye[o>>12&15]+ye[o>>8&15]+ye[o>>4&15]+ye[o&15];return this.is224||(u+=ye[s>>28&15]+ye[s>>24&15]+ye[s>>20&15]+ye[s>>16&15]+ye[s>>12&15]+ye[s>>8&15]+ye[s>>4&15]+ye[s&15]),u};Sn.prototype.toString=Sn.prototype.hex;Sn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Sn.prototype.array=Sn.prototype.digest;Sn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function gm(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(ru);if(Yl&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Yl||!ArrayBuffer.isView(e)))throw new Error(ru)}else throw new Error(ru);e.length>64&&(e=new Sn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Sn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}gm.prototype=new Sn;gm.prototype.finalize=function(){if(Sn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sn.prototype.finalize.call(this)}};var au=Ex();au.sha256=au;au.sha224=Ex(!0);au.sha256.hmac=Ax();au.sha224.hmac=Ax(!0);var kx=au;var Dx=kx.sha256;function dr(e){return Promise.resolve(Dx(e))}function iu(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Ar(e,t){let n=Dx.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Lx(e,t){let n=await Ar(e,t);return iu(n)}async function pm(e,t){let n=F_(t),r=await Ar(e,n);return iu(r)}function F_(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Mx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Ql=class e extends Fe{static langMap=new Map(Mx);maxTextGroupLength=50;static langMapReverse=new Map(Mx.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await dr(a)].join(` `),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await dr(c)].join(` -`),p=await Px(m,`TC3${n}`),f=await fm(i,p),h=await fm("tc3_request",f),y=await fm(g,h),b=await $({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new V(b.Response.Error.Message);return b}};var Ix=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],__={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Zl=class e extends Ie{static langMap=new Map(Ix);static langMapReverse=new Map(Ix.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await $({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:__,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var Fx=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Xl=class e extends Ie{static langMap=new Map(Fx);static langMapReverse=new Map(Fx.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await $({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function O_(e,t){return t?e+(t-e%t):e}function N_(e,t){return e.split(t).length-1}function nh(e){let t=Date.now(),n=1;for(let r of e)n+=N_(r,"i");return O_(t,n)}function U_(e,t){return Math.floor(Math.random()*(t-e+1))+e}function rh(){return U_(1e6,1e8)}var ah="https://www2.deepl.com/jsonrpc",ih="auto",Bx=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function j_(e=Bx){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function oh(e){return j_()[e.toLowerCase()]}var H_={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function q_(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function z_(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function V_(e,t,n,r,a,i,o){let s=rh(),u=z_(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=nh(t);let c=await $({retry:2,method:"POST",url:e,body:q_(u),headers:H_}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function _x(e,t,n,r=ih,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:V_(e,t,oh(n),oh(r)??"auto",a,i,o):{text:[],from:r,to:n}}var Ox=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ou=class e extends Ie{static langMap=new Map(Ox);static langMapReverse=new Map(Ox.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=ah;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Bt(ah,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await _x(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var $l=class e extends Ie{static langMap=new Map(d4);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=oi.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Te(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=Nx());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await $({url:yd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Te(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=Nx()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await $({url:yd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new V(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return oi.detectLanguageRemotelyByTransmart(t)}};function Nx(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function sh(){return Math.random()>=.001}var su=class extends Ie{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!sh())throw new V("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await z5(),!sh())throw new V("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var jx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],uh=new Map(jx),Ux=new Map(jx.map(([e,t])=>[t,e])),lh=class e extends Ie{static langMap=uh;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new V("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await $({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:uh.get(r)||"auto",target_lang:uh.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:Ux.get(o.source_lang),to:Ux.get(o.target_lang)}}else throw new V(i.msg)}},hm=lh;var ch="https://{s}bing.com",Wx=ch+"/translator",W_=ch+"/ttranslatev3",G_=ch+"/tspellcheckv3",bm="bingGlobalConfig",Gx=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Hx=new Map(Gx),qx=new Map(Gx.map(([e,t])=>[t,e])),zx=1e3,aa,uu;function dh(e,t){return e.replace("{s}",t?t+".":"")}async function K_(){if(!aa){let n=await j.storage.local.get(bm);return n&&(aa=n[bm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=aa;return Date.now()-e>t}async function Vx(){let e,t,n,r,a,i,o,s,u,l;try{let c=dh(Wx,e),m=await $({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return aa={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[bm]:aa}),aa}function Y_(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=aa;return dh(e?G_:W_,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+aa.count++:"")}function Q_(e,t,n,r){let{token:a,key:i}=aa,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function Kx(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>zx)throw new Error(`The supported maximum length of text is ${zx}. Please shorten the text.`);uu||(uu=Vx()),await uu,await K_()&&(uu=Vx(),await uu),t=t||"auto",n=n||"zh-CN",t=Hx.get(t)||t,n=Hx.get(n)||n;let a=Y_(!1),i=Q_(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:dh(Wx,aa.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await $({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(aa=null,uu=null,await j.storage.local.remove(bm),c.ShowCaptcha)throw new Error(` +`),p=await Lx(m,`TC3${n}`),f=await pm(i,p),b=await pm("tc3_request",f),y=await pm(g,b),h=await $({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new V(h.Response.Error.Message);return h}};var Px=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],B_={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Jl=class e extends Fe{static langMap=new Map(Px);static langMapReverse=new Map(Px.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await $({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:B_,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var Rx=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Zl=class e extends Fe{static langMap=new Map(Rx);static langMapReverse=new Map(Rx.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await $({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function __(e,t){return t?e+(t-e%t):e}function O_(e,t){return e.split(t).length-1}function nh(e){let t=Date.now(),n=1;for(let r of e)n+=O_(r,"i");return __(t,n)}function N_(e,t){return Math.floor(Math.random()*(t-e+1))+e}function rh(){return N_(1e6,1e8)}var ah="https://www2.deepl.com/jsonrpc",ih="auto",Ix=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function U_(e=Ix){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function oh(e){return U_()[e.toLowerCase()]}var j_={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function H_(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function q_(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function z_(e,t,n,r,a,i,o){let s=rh(),u=q_(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=nh(t);let c=await $({retry:2,method:"POST",url:e,body:H_(u),headers:j_}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function Fx(e,t,n,r=ih,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:z_(e,t,oh(n),oh(r)??"auto",a,i,o):{text:[],from:r,to:n}}var Bx=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ou=class e extends Fe{static langMap=new Map(Bx);static langMapReverse=new Map(Bx.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=ah;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Bt(ah,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await Fx(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var Xl=class e extends Fe{static langMap=new Map(d4);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ii.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Se(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=_x());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await $({url:bd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Se(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=_x()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await $({url:bd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new V(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ii.detectLanguageRemotelyByTransmart(t)}};function _x(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function sh(){return Math.random()>=.001}var su=class extends Fe{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!sh())throw new V("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await H5(),!sh())throw new V("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var Nx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],uh=new Map(Nx),Ox=new Map(Nx.map(([e,t])=>[t,e])),lh=class e extends Fe{static langMap=uh;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new V("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await $({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:uh.get(r)||"auto",target_lang:uh.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:Ox.get(o.source_lang),to:Ox.get(o.target_lang)}}else throw new V(i.msg)}},fm=lh;var ch="https://{s}bing.com",zx=ch+"/translator",V_=ch+"/ttranslatev3",W_=ch+"/tspellcheckv3",hm="bingGlobalConfig",Vx=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Ux=new Map(Vx),jx=new Map(Vx.map(([e,t])=>[t,e])),Hx=1e3,ra,uu;function dh(e,t){return e.replace("{s}",t?t+".":"")}async function G_(){if(!ra){let n=await j.storage.local.get(hm);return n&&(ra=n[hm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=ra;return Date.now()-e>t}async function qx(){let e,t,n,r,a,i,o,s,u,l;try{let c=dh(zx,e),m=await $({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return ra={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[hm]:ra}),ra}function K_(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=ra;return dh(e?W_:V_,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+ra.count++:"")}function Y_(e,t,n,r){let{token:a,key:i}=ra,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function Wx(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Hx)throw new Error(`The supported maximum length of text is ${Hx}. Please shorten the text.`);uu||(uu=qx()),await uu,await G_()&&(uu=qx(),await uu),t=t||"auto",n=n||"zh-CN",t=Ux.get(t)||t,n=Ux.get(n)||n;let a=K_(!1),i=Y_(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:dh(zx,ra.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await $({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(ra=null,uu=null,await j.storage.local.remove(hm),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:qx.get(g.language),to:qx.get(m.to)}}function Yi(e){return e!=null}function Jx(e,t,n){return`${e.type}#${t}#${n}`}function Zx(e,t,n,r,a){return{body:a,id:r,type:Jx(e,t,n)}}function J_(e,t,n,r){return{id:n,response:r,type:Jx(e,"ask",t)}}function Xx(e,t,n,r){if(Yi(r)){let a=r.type;if(Yi(a)&&Yi(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function Z_(e,t,n){if(Yi(n)){let r=n.type;if(Yi(r)&&Yi(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function X_(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function $_(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;Z_(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function eO(e,t,n,r){let a=i=>{let o=i.data;Xx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function Yx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Xx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(J_(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function tO(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(Zx(t,"tell",n,i,r),a)}async function Qx(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await $_(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(Zx(n,"ask",r,s,a),i),u}var Qi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;Yx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Yi(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Qx(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(eO(this.thisWindow,this.protocol,t,n))}tell(t,n){tO(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Yx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Qx(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){X_(this.listeners)}};var $x;async function e8(){if(St()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qi.iframe(H0,"*",{targetWindow:t});$x=n,await Qi.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function t8(){return $x}var ym=new Map;async function mh(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Sr(e.body)),ym.has(t))return ym.get(t);let n=$(e);ym.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{ym.delete(t)},3e3)}}async function n8(e){return mh(e)}async function _a(e){if(St()){let n=t8();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return mh(e)}else return mh(e)}function r8(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function Cm(e){await Gf(e)}async function Oa(e,t){let n=await Vf(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return vm(e,t)}return vm(e,t)}async function vm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Wf(e,n,i-1e3),n}var nO=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],gh=new Map(nO),ia=class extends Ie{static langMap=gh;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await Cm(Cf)}async translate(t){let{text:n,from:r,to:a}=t;return n?await Kx(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Oa(Cf,async()=>{let t=await _a({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return r8(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=gh.get(n)||"auto",o=gh.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await $({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var rO=["chinese","english","japanese","korean","french","spanish","deutsch"],Na={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},xm=e=>Na.chinese.test(e),aO=e=>Na.english.test(e),iO=e=>Na.japanese.test(e),oO=e=>Na.korean.test(e),sO=e=>Na.french.test(e),uO=e=>Na.deutsch.test(e),lO=e=>Na.spanish.test(e),fse={chinese:zr(xm),english:zr(aO),japanese:zr(iO),korean:zr(oO),french:zr(sO),spanish:zr(lO),deutsch:zr(uO)},a8=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,hse=new RegExp(`^(\\d|\\s|${a8.source})+$`),cO=new RegExp(`${Na.chinese.source}|${Na.japanese.source}|${Na.korean.source}`),bse=zr(e=>(e.replace(new RegExp(a8,"g")," ").replace(new RegExp(cO,"g")," x ").match(/\S+/g)||"").length),yse=[...rO,"others","matchAll"];var o8=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ec=new Map(o8),dO=new Map(o8.map(([e,t])=>[t,e])),ph=class extends Ie{static langMap=ec;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ct;immersiveTranslateDeeplProApiUrl=ct+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Bt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Bt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Bt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Bt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Bt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:ec.get(n)||"",target_lang:ec.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:ec.get(n)||"auto",target_lang:ec.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let h,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?h=await $({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await $({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await $({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>fh(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},g=await new ia({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&dO.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!Ta()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},lu=ph;function fh(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&xm(t[0])&&i8(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&xm(t[t.length-1])&&i8(t,"\u300A")==1?t+"\u300B":mO(e,t)}function mO(e,t){let n=e?.richIdName;return!n||!jC(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function i8(e,t){return e.split(t).length-1}var gO=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],hh=new Map(gO),bh=class extends Ie{static langMap=hh;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:hh.get(r)||r,to:hh.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await $(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new V(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},s8=bh;var pO=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],yh=new Map(pO),vh=class extends Ie{static langMap=yh;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:yh.get(a)||a};r!=="auto"&&(i.from=yh.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await $(c);if(m.length===0)throw new V("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},u8=vh;var fO=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],cu=new Map(fO),Ch=class extends Ie{static langMap=cu;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:jx.get(g.language),to:jx.get(m.to)}}function Yi(e){return e!=null}function Yx(e,t,n){return`${e.type}#${t}#${n}`}function Qx(e,t,n,r,a){return{body:a,id:r,type:Yx(e,t,n)}}function Q_(e,t,n,r){return{id:n,response:r,type:Yx(e,"ask",t)}}function Jx(e,t,n,r){if(Yi(r)){let a=r.type;if(Yi(a)&&Yi(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function J_(e,t,n){if(Yi(n)){let r=n.type;if(Yi(r)&&Yi(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function Z_(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function X_(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;J_(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function $_(e,t,n,r){let a=i=>{let o=i.data;Jx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function Gx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Jx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(Q_(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function eO(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(Qx(t,"tell",n,i,r),a)}async function Kx(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await X_(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(Qx(n,"ask",r,s,a),i),u}var Qi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;Gx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Yi(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Kx(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push($_(this.thisWindow,this.protocol,t,n))}tell(t,n){eO(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Gx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Kx(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){Z_(this.listeners)}};var Zx;async function Xx(){if(Tt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qi.iframe(j0,"*",{targetWindow:t});Zx=n,await Qi.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function $x(){return Zx}var bm=new Map;async function mh(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=xr(e.body)),bm.has(t))return bm.get(t);let n=$(e);bm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{bm.delete(t)},3e3)}}async function e8(e){return mh(e)}async function Ba(e){if(Tt()){let n=$x();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return mh(e)}else return mh(e)}function t8(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function vm(e){await Gf(e)}async function _a(e,t){let n=await Vf(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return ym(e,t)}return ym(e,t)}async function ym(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Wf(e,n,i-1e3),n}var tO=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],gh=new Map(tO),aa=class extends Fe{static langMap=gh;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await vm(vf)}async translate(t){let{text:n,from:r,to:a}=t;return n?await Wx(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await _a(vf,async()=>{let t=await Ba({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return t8(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=gh.get(n)||"auto",o=gh.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await $({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var nO=["chinese","english","japanese","korean","french","spanish","deutsch"],Oa={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},Cm=e=>Oa.chinese.test(e),rO=e=>Oa.english.test(e),aO=e=>Oa.japanese.test(e),iO=e=>Oa.korean.test(e),oO=e=>Oa.french.test(e),sO=e=>Oa.deutsch.test(e),uO=e=>Oa.spanish.test(e),hse={chinese:qr(Cm),english:qr(rO),japanese:qr(aO),korean:qr(iO),french:qr(oO),spanish:qr(uO),deutsch:qr(sO)},n8=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,bse=new RegExp(`^(\\d|\\s|${n8.source})+$`),lO=new RegExp(`${Oa.chinese.source}|${Oa.japanese.source}|${Oa.korean.source}`),yse=qr(e=>(e.replace(new RegExp(n8,"g")," ").replace(new RegExp(lO,"g")," x ").match(/\S+/g)||"").length),vse=[...nO,"others","matchAll"];var a8=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],$l=new Map(a8),cO=new Map(a8.map(([e,t])=>[t,e])),ph=class extends Fe{static langMap=$l;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ct;immersiveTranslateDeeplProApiUrl=ct+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Bt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Bt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Bt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Bt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Bt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:$l.get(n)||"",target_lang:$l.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:$l.get(n)||"auto",target_lang:$l.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let b,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?b=await $({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await $({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await $({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>fh(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},g=await new aa({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&cO.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!Ta()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},lu=ph;function fh(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&Cm(t[0])&&r8(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&Cm(t[t.length-1])&&r8(t,"\u300A")==1?t+"\u300B":dO(e,t)}function dO(e,t){let n=e?.richIdName;return!n||!NC(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function r8(e,t){return e.split(t).length-1}var mO=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],hh=new Map(mO),bh=class extends Fe{static langMap=hh;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:hh.get(r)||r,to:hh.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await $(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new V(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},i8=bh;var gO=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],yh=new Map(gO),vh=class extends Fe{static langMap=yh;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:yh.get(a)||a};r!=="auto"&&(i.from=yh.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await $(c);if(m.length===0)throw new V("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},o8=vh;var pO=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],cu=new Map(pO),Ch=class extends Fe{static langMap=cu;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!cu.get(r)?(i=(await $({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||cu.get(r)||r,target:cu.get(a)||a})):u.body=JSON.stringify({text:s,source:cu.get(r),target:cu.get(a)||a});let l=await $(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},l8=Ch;var hO={lang:"en"};function xh(e){let t=Object.assign({},hO,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var Sh=ns(null),Ji=e=>{let{t,setLang:n,lang:r}=xh({lang:e.lang});return d(Sh.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return Se(Sh)}function c8(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function oa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=bO(e,a)),i||(i=tc(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function bO(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Th({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function tc(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Th(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>dt(a,s.matches)&&!dt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function du(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function No(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&di(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&di(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await _r(n),await ur(i)}catch{return!1}return a}async function nc(){return(await Mn()).aiAssistants||[]}async function yO(e,t){(await Promise.allSettled(e.map(r=>$({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&No("add",a,t)}})}async function wh(e,t,n=!0){e||(e=await Je()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await Eh();i=await CO(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&yO(o,t)}var sa=Bn(wh,1500);function di(e){return Da(nr(),e.extensionVersion)}function vO(e,t){return t?!Da(e.version,t):!1}function CO(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{vO(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function Eh(){return(await $({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function Ah(e){return await $({url:`${E.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function Sm(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=ue(async()=>{try{let s=await nc();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=ue(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await Ah(s);if(di(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await No(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return q(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var xO=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function m8(e,t,n,r,a){let i={...t},o=Th(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,du({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=c8(i,i.langOverrides,n),o||xO.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await R5();i.contextTerms=s}return i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,h=g||"zh-CN",y=mu(t,o),b=mu(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(mu(t,Ee)){v=J;break}}let x=l,w=Object.keys(c);for(let J of w){let Ee=c[J];if(Ee&&mu(t,Ee)){x=J;break}}let S=mu(t,m),T=d8(t,m);T||(T=dt(t,ty)),T||(T=dt(t,n.blockUrls));let A=d8(t,n.inputTranslationUrlPattern);A||(A=dt(t,n.inputTranslationBlockUrls));let D=dt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let Ct of Ee.matches)I[Ct]=J}let P=Object.keys(I),R=M4(t,P);R&&(i=I[R]??"auto",I[R]&&I[R]!=="auto"&&Tr(I[R]));let L=a.hostname,_=await dr(L),U=a.pathname+a.search+a.hash,z=await dr(U),Y=`https://${_}.com/${z}`,ee=await Rt(),Re=await Ws(),xe=n.translationStartMode,H=TO(ee,n);ee.aiAssistants=wO(H,n),xe==="dynamic"&&b&&(xe="immediate");let W=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(W=n.inputTranslationService);let te=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(te=n.mouseHoverTranslationService);let Me=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Me=n.subtitleTranslateService);let ve=await nt.get(pt,null),$e=!1;ve&&($e=kt(ve)),n.platform=La();let Z={targetLanguage:h,config:n,translationService:v,inputTranslationService:W,mouseHoverTranslationService:te,subtitleTranslateService:Me,isTranslateUrl:S,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:T,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:Y,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},localConfig:ee};ve&&(Z.user=ve,$e?Z.isPro=!0:Z.isPro=!1),Z.state.translationArea==="body"&&(Z.config.generalRule.excludeTags=Z.config.generalRule.excludeTags.filter(J=>!Z.config.generalRule.bodyTranslateTags.includes(J)),Z.config.generalRule.additionalExcludeSelectors=Z.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let ce=n.translationServices[Z.translationService]||{};ce.immediateTranslationTextCount!==void 0&&SO(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(Z.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),Z.translationService==="deepl"&&(ce?.authKey?.startsWith("immersive_")||ce?.provider==="pro"&&Z.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(Z.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(Z.state.translationDebounce=ce.translationDebounce);let he=Re.immediateTranslationTextCount;n.immediateTranslationTextCount!==he&&(Z.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,ke;globalThis.PDFViewerApplication?ke=pe.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?ke=pe.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?ke=pe.find(J=>J.pageType=="ebookBuilder"):ke=pe.find(J=>mu(t,J)),ke&&ke.pageType==="ebookBuilder"&&(Z.state.translationStartMode="immediate");let Ve=n.generalRule;if(ke&&(Z.rule=Nl(Ve,ke),Z.rule=uC(n,Z.rule,ke)),Z.rule.selectors.length>0&&(Z.rule.paragraphMinTextCount=2,Z.rule.paragraphMinWordCount=1),Z.state.translationArea==="body"&&Z.rule.excludeTags&&(Z.rule.excludeTags=Z.rule.excludeTags.filter(J=>!Z.rule.bodyTranslateTags.includes(J)&&!Z.rule.forceTranslateTags.includes(J))),Z.rule.mainFrameSelector){let J=document.querySelector(Z.rule.mainFrameSelector);J&&(Z.mainFrame=J)}return Z}function mu(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&dt(e,r)?!1:n&&n.length>0&&dt(e,n)?!0:i&&i.length>0&&tm(i)?!1:!!(a&&a.length>0&&tm(a))}function d8(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&dt(e,n)||r&&r.length>0&&tm(r))}function SO(e){return typeof e=="number"}function TO(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function wO(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Ud(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function g8(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!cu.get(r)?(i=(await $({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||cu.get(r)||r,target:cu.get(a)||a})):u.body=JSON.stringify({text:s,source:cu.get(r),target:cu.get(a)||a});let l=await $(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},s8=Ch;var fO={lang:"en"};function xh(e){let t=Object.assign({},fO,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var Th=ns(null),Ji=e=>{let{t,setLang:n,lang:r}=xh({lang:e.lang});return d(Th.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return Te(Th)}function u8(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function di(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=hO(e,a)),i||(i=ec(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function hO(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Sh({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function ec(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Sh(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>dt(a,s.matches)&&!dt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function du(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function No(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&ci(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&ci(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Br(n),await lr(i)}catch{return!1}return a}async function tc(){return(await Mn()).aiAssistants||[]}async function bO(e,t){(await Promise.allSettled(e.map(r=>$({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&No("add",a,t)}})}async function wh(e,t,n=!0){e||(e=await Qe()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await Eh();i=await vO(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&bO(o,t)}var ia=Bn(wh,1500);function ci(e){return ka(tr(),e.extensionVersion)}function yO(e,t){return t?!ka(e.version,t):!1}function vO(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{yO(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function Eh(){return(await $({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function Ah(e){return await $({url:`${E.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function xm(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=ue(async()=>{try{let s=await tc();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=ue(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await Ah(s);if(ci(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await No(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return q(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var CO=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function c8(e,t,n,r,a){let i={...t},o=Sh(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,du({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=u8(i,i.langOverrides,n),o||CO.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await M5();i.contextTerms=s}return i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,b=g||"zh-CN",y=mu(t,o),h=mu(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(mu(t,Ee)){v=J;break}}let x=l,w=Object.keys(c);for(let J of w){let Ee=c[J];if(Ee&&mu(t,Ee)){x=J;break}}let T=mu(t,m),S=l8(t,m);S||(S=dt(t,$6)),S||(S=dt(t,n.blockUrls));let A=l8(t,n.inputTranslationUrlPattern);A||(A=dt(t,n.inputTranslationBlockUrls));let D=dt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let Ct of Ee.matches)I[Ct]=J}let P=Object.keys(I),R=M4(t,P);R&&(i=I[R]??"auto",I[R]&&I[R]!=="auto"&&Tr(I[R]));let L=a.hostname,_=await dr(L),U=a.pathname+a.search+a.hash,z=await dr(U),Y=`https://${_}.com/${z}`,ee=await Rt(),Re=await Ws(),xe=n.translationStartMode,H=TO(ee,n);ee.aiAssistants=SO(H,n),xe==="dynamic"&&h&&(xe="immediate");let W=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(W=n.inputTranslationService);let te=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(te=n.mouseHoverTranslationService);let Me=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Me=n.subtitleTranslateService);let ve=await nt.get(pt,null),$e=!1;ve&&($e=kt(ve)),n.platform=Da();let Z={targetLanguage:b,config:n,translationService:v,inputTranslationService:W,mouseHoverTranslationService:te,subtitleTranslateService:Me,isTranslateUrl:T,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:S,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:Y,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},localConfig:ee};ve&&(Z.user=ve,$e?Z.isPro=!0:Z.isPro=!1),Z.state.translationArea==="body"&&(Z.config.generalRule.excludeTags=Z.config.generalRule.excludeTags.filter(J=>!Z.config.generalRule.bodyTranslateTags.includes(J)),Z.config.generalRule.additionalExcludeSelectors=Z.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let ce=n.translationServices[Z.translationService]||{};ce.immediateTranslationTextCount!==void 0&&xO(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(Z.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),Z.translationService==="deepl"&&(ce?.authKey?.startsWith("immersive_")||ce?.provider==="pro"&&Z.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(Z.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(Z.state.translationDebounce=ce.translationDebounce);let he=Re.immediateTranslationTextCount;n.immediateTranslationTextCount!==he&&(Z.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,ke;globalThis.PDFViewerApplication?ke=pe.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?ke=pe.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?ke=pe.find(J=>J.pageType=="ebookBuilder"):ke=pe.find(J=>mu(t,J)),ke&&ke.pageType==="ebookBuilder"&&(Z.state.translationStartMode="immediate");let ze=n.generalRule;if(ke&&(Z.rule=Ol(ze,ke),Z.rule=oC(n,Z.rule,ke)),Z.rule.selectors.length>0&&(Z.rule.paragraphMinTextCount=2,Z.rule.paragraphMinWordCount=1),Z.state.translationArea==="body"&&Z.rule.excludeTags&&(Z.rule.excludeTags=Z.rule.excludeTags.filter(J=>!Z.rule.bodyTranslateTags.includes(J)&&!Z.rule.forceTranslateTags.includes(J))),Z.rule.mainFrameSelector){let J=document.querySelector(Z.rule.mainFrameSelector);J&&(Z.mainFrame=J)}return Z}function mu(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&dt(e,r)?!1:n&&n.length>0&&dt(e,n)?!0:i&&i.length>0&&em(i)?!1:!!(a&&a.length>0&&em(a))}function l8(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&dt(e,n)||r&&r.length>0&&em(r))}function xO(e){return typeof e=="number"}function TO(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function SO(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Nd(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function d8(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` -`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var kh=class extends Ie{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` +`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var kh=class extends Fe{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=Ps()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?ad(l,s):`${s}${W0}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,m=u.get(i)||i,g=this.serviceConfig.env||{};g={...g};let p=s?.sourceProgram,f=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),f&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let y="",b="",v=l.includes("{{json}}"),C=l.includes("{{yaml}}");if(Gd(r)&&this.isRichTranslate?g.content_type="html":g.html_only="",v){let M=[],I=g.imt_json_item||"";f&&(I=g.imt_subtitle_json_item||I);for(let P=0;PP==="from"?c:P==="to"?m+" Language":P==="text"?r:P=="json"?y:P=="yaml"?b:g[P]===""?"":g[P]||I).replace(/{{(.+?)}}/g,(I,P)=>g[P]||I)}}async rawRequest(t){return await $(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=Ps()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?rd(l,s):`${s}${V0}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,m=u.get(i)||i,g=this.serviceConfig.env||{};g={...g};let p=s?.sourceProgram,f=["subtitle","videoSubtitle"].includes(p),b=[r];s?.rawTextArrayLength&&(b=r.split(this.translationTextSeparator)),b.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),f&&this.subtitlePrompt&&b.length>1&&(l=this.subtitlePrompt);let y="",h="",v=l.includes("{{json}}"),C=l.includes("{{yaml}}");if(Wd(r)&&this.isRichTranslate?g.content_type="html":g.html_only="",v){let M=[],I=g.imt_json_item||"";f&&(I=g.imt_subtitle_json_item||I);for(let P=0;PP==="from"?c:P==="to"?m+" Language":P==="text"?r:P=="json"?y:P=="yaml"?h:g[P]===""?"":g[P]||I).replace(/{{(.+?)}}/g,(I,P)=>g[P]||I)}}async rawRequest(t){return await $(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;a`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;s`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` [theme]`,n.imt_theme,` -\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Sr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Zi=kh;function EO(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var AO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],p8=new Map(AO),Dh=class extends Zi{static langMap=p8;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ct+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Bt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Bt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return p8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Sr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!lu.langMap.has(n.to)||!lu.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new lu(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},f8=Dh;function Pn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function kO(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Le(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Xi(e,t){return e<>>32-t}function Ua(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function gu(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function h8(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function pu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ja(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var b8={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Pn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,h="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return Ua(a(g,r),t)},this.b64=function(g){return Ha(a(g),n)},this.any=function(g,p){return ja(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return Ua(i(g,p),t)},this.b64_hmac=function(g,p){return Ha(i(g,p),n)},this.any_hmac=function(g,p,f){return ja(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Pn(g):g,h8(o(pu(g),g.length*8))}function i(g,p){var f,h,y,b,v;for(g=r?Pn(g):g,p=r?Pn(p):p,f=pu(g),f.length>16&&(f=o(f,g.length*8)),h=Array(16),y=Array(16),v=0;v<16;v+=1)h[v]=f[v]^909522486,y[v]=f[v]^1549556828;return b=o(h.concat(pu(p)),512+p.length*8),h8(o(y.concat(b),512+128))}function o(g,p){var f,h,y,b,v,C=1732584193,x=-271733879,w=-1732584194,S=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return h=o(g.concat(mi(c)),512+c.length*8),gu(o(p.concat(h),512+160))}function o(l,c){var m,g,p,f,h,y,b,v,C=Array(80),x=1732584193,w=-271733879,S=-1732584194,T=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(A=C(A,x.length*8));T<16;T+=1)D[T]=A[T]^909522486,M[T]=A[T]^1549556828;return S=C(D.concat(mi(w)),512+w.length*8),gu(C(M.concat(S),512+256))}function s(x,w){return x>>>w|x<<32-w}function u(x,w){return x>>>w}function l(x,w,S){return x&w^~x&S}function c(x,w,S){return x&w^x&S^w&S}function m(x){return s(x,2)^s(x,13)^s(x,22)}function g(x){return s(x,6)^s(x,11)^s(x,25)}function p(x){return s(x,7)^s(x,18)^u(x,3)}function f(x){return s(x,17)^s(x,19)^u(x,10)}function h(x){return s(x,28)^s(x,34)^s(x,39)}function y(x){return s(x,14)^s(x,18)^s(x,41)}function b(x){return s(x,1)^s(x,8)^u(x,7)}function v(x){return s(x,19)^s(x,61)^u(x,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(x,w){var S=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=new Array(64),A,D,M,I,P,R,L,_,U,z,Y,ee;for(x[w>>5]|=128<<24-w%32,x[(w+64>>9<<4)+15]=w,U=0;U32&&(x=s(x,y.length*8));C<32;C+=1)w[C]=x[C]^909522486,S[C]=x[C]^1549556828;return v=s(w.concat(mi(b)),1024+b.length*8),gu(s(S.concat(v),1024+512))}function s(y,b){var v,C,x,w=new Array(80),S=new Array(16),T=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),I=new u(0,0),P=new u(0,0),R=new u(0,0),L=new u(0,0),_=new u(0,0),U=new u(0,0),z=new u(0,0),Y=new u(0,0),ee=new u(0,0),Re=new u(0,0),xe=new u(0,0),H=new u(0,0),W=new u(0,0),te=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)w[C]=new u(0,0);for(y[b>>5]|=128<<24-(b&31),y[(b+128>>10<<5)+31]=b,x=y.length,C=0;C>>v|b.h<<32-v,y.h=b.h>>>v|b.l<<32-v}function m(y,b,v){y.l=b.h>>>v|b.l<<32-v,y.h=b.l>>>v|b.h<<32-v}function g(y,b,v){y.l=b.l>>>v|b.h<<32-v,y.h=b.h>>>v}function p(y,b,v){var C=(b.l&65535)+(v.l&65535),x=(b.l>>>16)+(v.l>>>16)+(C>>>16),w=(b.h&65535)+(v.h&65535)+(x>>>16),S=(b.h>>>16)+(v.h>>>16)+(w>>>16);y.l=C&65535|x<<16,y.h=w&65535|S<<16}function f(y,b,v,C,x){var w=(b.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535),S=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(w>>>16),T=(b.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(S>>>16),A=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(T>>>16);y.l=w&65535|S<<16,y.h=T&65535|A<<16}function h(y,b,v,C,x,w){var S=(b.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535)+(w.l&65535),T=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(w.l>>>16)+(S>>>16),A=(b.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(w.h&65535)+(T>>>16),D=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(w.h>>>16)+(A>>>16);y.l=S&65535|T<<16,y.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Ua(u(h,r))},this.b64=function(h){return Ha(u(h,r),n)},this.any=function(h,y){return ja(u(h,r),y)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,y){return Ua(l(h,y))},this.b64_hmac=function(h,y){return Ha(l(h,y),n)},this.any_hmac=function(h,y,b){return ja(l(h,y),b)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?Pn(h):h,c(m(pu(h),h.length*8))}function l(h,y){h=r?Pn(h):h,y=r?Pn(y):y;var b,v,C=pu(h),x=Array(16),w=Array(16);for(C.length>16&&(C=m(C,h.length*8)),b=0;b<16;b+=1)x[b]=C[b]^909522486,w[b]=C[b]^1549556828;return v=m(x.concat(pu(y)),512+y.length*8),c(m(w.concat(v),512+160))}function c(h){var y,b="",v=h.length*32;for(y=0;y>5]>>>y%32&255);return b}function m(h,y){var b,v,C,x,w=1732584193,S=4023233417,T=2562383102,A=271733878,D=3285377520,M,I,P,R,L,_,U,z,Y,ee;for(h[y>>5]|=128<>>9<<4)+14]=y,x=h.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new b8.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(h=>{let b=Object.keys(h).sort().map(v=>`${this.encode(v)}=${this.encode(h[v])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await $({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var DO=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],nn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Lh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Mh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Lh(t);if(r)return Array.isArray(n)?`${r}=${n.map(Lh).sort().join(`&${r}=`)}`:`${r}=${Lh(n)}`}).filter(t=>t).join("&"),fu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${nn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[nn.tokenHeader]=t.sessionToken),a[nn.dateHeader]=r,a[nn.notSignBody]="",a[nn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[nn.algorithmKey]=nn.algorithm,a[nn.signHeadersKey]="",a[nn.signQueriesKey]=void 0,a[nn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[nn.signQueriesKey]=Object.keys(a).sort().join(";"),a[nn.signatureKey]=s,Mh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[nn.dateHeader]=n,t.sessionToken&&(this.request.headers[nn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[nn.contentSha256Header]=await dr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return iu(await kr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(nn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Zi=kh;function wO(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var EO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],m8=new Map(EO),Dh=class extends Zi{static langMap=m8;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ct+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Bt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Bt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return m8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!lu.langMap.has(n.to)||!lu.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new lu(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},g8=Dh;function Pn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function AO(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Le(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Xi(e,t){return e<>>32-t}function Na(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function gu(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function p8(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function pu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Ua(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var f8={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Pn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,b="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return Na(a(g,r),t)},this.b64=function(g){return ja(a(g),n)},this.any=function(g,p){return Ua(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return Na(i(g,p),t)},this.b64_hmac=function(g,p){return ja(i(g,p),n)},this.any_hmac=function(g,p,f){return Ua(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Pn(g):g,p8(o(pu(g),g.length*8))}function i(g,p){var f,b,y,h,v;for(g=r?Pn(g):g,p=r?Pn(p):p,f=pu(g),f.length>16&&(f=o(f,g.length*8)),b=Array(16),y=Array(16),v=0;v<16;v+=1)b[v]=f[v]^909522486,y[v]=f[v]^1549556828;return h=o(b.concat(pu(p)),512+p.length*8),p8(o(y.concat(h),512+128))}function o(g,p){var f,b,y,h,v,C=1732584193,x=-271733879,w=-1732584194,T=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return b=o(g.concat(mi(c)),512+c.length*8),gu(o(p.concat(b),512+160))}function o(l,c){var m,g,p,f,b,y,h,v,C=Array(80),x=1732584193,w=-271733879,T=-1732584194,S=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(A=C(A,x.length*8));S<16;S+=1)D[S]=A[S]^909522486,M[S]=A[S]^1549556828;return T=C(D.concat(mi(w)),512+w.length*8),gu(C(M.concat(T),512+256))}function s(x,w){return x>>>w|x<<32-w}function u(x,w){return x>>>w}function l(x,w,T){return x&w^~x&T}function c(x,w,T){return x&w^x&T^w&T}function m(x){return s(x,2)^s(x,13)^s(x,22)}function g(x){return s(x,6)^s(x,11)^s(x,25)}function p(x){return s(x,7)^s(x,18)^u(x,3)}function f(x){return s(x,17)^s(x,19)^u(x,10)}function b(x){return s(x,28)^s(x,34)^s(x,39)}function y(x){return s(x,14)^s(x,18)^s(x,41)}function h(x){return s(x,1)^s(x,8)^u(x,7)}function v(x){return s(x,19)^s(x,61)^u(x,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(x,w){var T=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],S=new Array(64),A,D,M,I,P,R,L,_,U,z,Y,ee;for(x[w>>5]|=128<<24-w%32,x[(w+64>>9<<4)+15]=w,U=0;U32&&(x=s(x,y.length*8));C<32;C+=1)w[C]=x[C]^909522486,T[C]=x[C]^1549556828;return v=s(w.concat(mi(h)),1024+h.length*8),gu(s(T.concat(v),1024+512))}function s(y,h){var v,C,x,w=new Array(80),T=new Array(16),S=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),I=new u(0,0),P=new u(0,0),R=new u(0,0),L=new u(0,0),_=new u(0,0),U=new u(0,0),z=new u(0,0),Y=new u(0,0),ee=new u(0,0),Re=new u(0,0),xe=new u(0,0),H=new u(0,0),W=new u(0,0),te=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)w[C]=new u(0,0);for(y[h>>5]|=128<<24-(h&31),y[(h+128>>10<<5)+31]=h,x=y.length,C=0;C>>v|h.h<<32-v,y.h=h.h>>>v|h.l<<32-v}function m(y,h,v){y.l=h.h>>>v|h.l<<32-v,y.h=h.l>>>v|h.h<<32-v}function g(y,h,v){y.l=h.l>>>v|h.h<<32-v,y.h=h.h>>>v}function p(y,h,v){var C=(h.l&65535)+(v.l&65535),x=(h.l>>>16)+(v.l>>>16)+(C>>>16),w=(h.h&65535)+(v.h&65535)+(x>>>16),T=(h.h>>>16)+(v.h>>>16)+(w>>>16);y.l=C&65535|x<<16,y.h=w&65535|T<<16}function f(y,h,v,C,x){var w=(h.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535),T=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(w>>>16),S=(h.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(T>>>16),A=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(S>>>16);y.l=w&65535|T<<16,y.h=S&65535|A<<16}function b(y,h,v,C,x,w){var T=(h.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535)+(w.l&65535),S=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(w.l>>>16)+(T>>>16),A=(h.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(w.h&65535)+(S>>>16),D=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(w.h>>>16)+(A>>>16);y.l=T&65535|S<<16,y.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return Na(u(b,r))},this.b64=function(b){return ja(u(b,r),n)},this.any=function(b,y){return Ua(u(b,r),y)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,y){return Na(l(b,y))},this.b64_hmac=function(b,y){return ja(l(b,y),n)},this.any_hmac=function(b,y,h){return Ua(l(b,y),h)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?Pn(b):b,c(m(pu(b),b.length*8))}function l(b,y){b=r?Pn(b):b,y=r?Pn(y):y;var h,v,C=pu(b),x=Array(16),w=Array(16);for(C.length>16&&(C=m(C,b.length*8)),h=0;h<16;h+=1)x[h]=C[h]^909522486,w[h]=C[h]^1549556828;return v=m(x.concat(pu(y)),512+y.length*8),c(m(w.concat(v),512+160))}function c(b){var y,h="",v=b.length*32;for(y=0;y>5]>>>y%32&255);return h}function m(b,y){var h,v,C,x,w=1732584193,T=4023233417,S=2562383102,A=271733878,D=3285377520,M,I,P,R,L,_,U,z,Y,ee;for(b[y>>5]|=128<>>9<<4)+14]=y,x=b.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new f8.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(v=>`${this.encode(v)}=${this.encode(b[v])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await $({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var kO=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],nn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Lh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Mh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Lh(t);if(r)return Array.isArray(n)?`${r}=${n.map(Lh).sort().join(`&${r}=`)}`:`${r}=${Lh(n)}`}).filter(t=>t).join("&"),fu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${nn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[nn.tokenHeader]=t.sessionToken),a[nn.dateHeader]=r,a[nn.notSignBody]="",a[nn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[nn.algorithmKey]=nn.algorithm,a[nn.signHeadersKey]="",a[nn.signQueriesKey]=void 0,a[nn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[nn.signQueriesKey]=Object.keys(a).sort().join(";"),a[nn.signatureKey]=s,Mh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[nn.dateHeader]=n,t.sessionToken&&(this.request.headers[nn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[nn.contentSha256Header]=await dr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return iu(await Ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(nn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=Mh(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new V(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await dr(t)}async hexEncodedBodyHash(){return this.request.headers[nn.contentSha256Header]?this.request.headers[nn.contentSha256Header]:this.request.body?await this.hexEncodedHash(Mh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return DO.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await kr(n,`${nn.kDatePrefix}${t.secretKey}`),o=await kr(r,i),s=await kr(a,o);return kr(nn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,nn.v4Identifier].join("/")}};var v8=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ph=new Map(v8),LO=new Map(v8.map(([e,t])=>[t,e])),Rh=class extends Ie{static langMap=Ph;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new fu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await $({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Ph.get(r),o={TargetLanguage:Ph.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new fu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await $({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=LO.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},C8=Rh;var x8=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ih=new Map(x8),MO=new Map(x8.map(([e,t])=>[t,e])),ac=class extends Ie{static langMap=Ih;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ih.get(r)||"detect",o=Ih.get(a)||a,u=await $({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=MO.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var PO=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Fh=new Map(PO),ic=class extends Ie{static langMap=Fh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Fh.get(r)||r,target_lang:Fh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await $({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:fh(this.serviceConfig,u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var S8=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Bh=new Map(S8),RO=new Map(S8.map(([e,t])=>[t,e])),_h=class extends Ie{static langMap=Bh;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Sr(a+o+n+i);this.domain&&(l=Sr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Bh.get(s)||"auto",to:Bh.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await $({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,h=p.map(({dst:b})=>b);return{from:RO.get(f)||f,to:u,text:h.join(` -`)}}},T8=_h;var Uo=class extends Ie{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await _l(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await _l(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),h=o[p];return f==="random"?IO(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return oi.detectLanguageRemotelyByTransmart(t)}};function IO(e){let t=Math.floor(Math.random()*e.length);return e[t]}var w8=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Oh=class extends Uo{static langMap=new Map(w8);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:w8,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},E8=Oh;var FO=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Tm=new Map(FO),Nh=class extends Ie{static langMap=Tm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!Tm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await $({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Tm.get(r)||"auto"}2${Tm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},A8=Nh;var k8=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Uh=new Map(k8),BO=new Map(k8.map(([e,t])=>[t,e]));function _O(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var jh=class extends Ie{static langMap=Uh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=OO(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+_O(n)+i+o+this.appSecret,u=await dr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Uh.get(r)||"auto",to:Uh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await $({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,h]=p.split("2");return{text:g.translation.join(` -`),from:BO.get(f),to:a}}};function OO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var qh=class extends Ie{static langMap=Hh;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Hh.get(r)||"auto",to:Hh.get(a)||a},o=new URLSearchParams(i),s=await $({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},M8=qh;var oc=class extends Uo{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||xs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var zh=class extends Zi{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Bt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},wm=zh;var P8=F+"-gemini-fake-user-key",NO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],R8=new Map(NO),Vh=class extends wm{static langMap=R8;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ct+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return R8}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Eo(P8,""),this.fakeId||(this.fakeId=UO(10),await Ao(P8,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function UO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await _a({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Gh.get(r)+"-"}${Gh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await $({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var qO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],_8=new Map(qO),uc=class extends Zi{static langMap=_8;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Oa(Sf+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await _a({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return _8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(vm(Sf+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var zO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],O8=new Map(zO),mr=class extends Zi{static langMap=O8;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return O8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var Em=class extends mr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await kr(t,"TC3"+this.secret_key),a=await kr(this.service,r),i=await kr("tc3_request",a),o=await kr(n,i);return iu(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await dr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await dr(t)}async hexEncodedBodyHash(){return this.request.headers[nn.contentSha256Header]?this.request.headers[nn.contentSha256Header]:this.request.body?await this.hexEncodedHash(Mh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return kO.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Ar(n,`${nn.kDatePrefix}${t.secretKey}`),o=await Ar(r,i),s=await Ar(a,o);return Ar(nn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,nn.v4Identifier].join("/")}};var b8=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ph=new Map(b8),DO=new Map(b8.map(([e,t])=>[t,e])),Rh=class extends Fe{static langMap=Ph;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new fu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await $({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Ph.get(r),o={TargetLanguage:Ph.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new fu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await $({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=DO.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},y8=Rh;var v8=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ih=new Map(v8),LO=new Map(v8.map(([e,t])=>[t,e])),rc=class extends Fe{static langMap=Ih;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ih.get(r)||"detect",o=Ih.get(a)||a,u=await $({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=LO.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var MO=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Fh=new Map(MO),ac=class extends Fe{static langMap=Fh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Fh.get(r)||r,target_lang:Fh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await $({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:fh(this.serviceConfig,u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var C8=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Bh=new Map(C8),PO=new Map(C8.map(([e,t])=>[t,e])),_h=class extends Fe{static langMap=Bh;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=xr(a+o+n+i);this.domain&&(l=xr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Bh.get(s)||"auto",to:Bh.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await $({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,b=p.map(({dst:h})=>h);return{from:PO.get(f)||f,to:u,text:b.join(` +`)}}},x8=_h;var Uo=class extends Fe{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Bl(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Bl(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),b=o[p];return f==="random"?RO(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ii.detectLanguageRemotelyByTransmart(t)}};function RO(e){let t=Math.floor(Math.random()*e.length);return e[t]}var T8=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Oh=class extends Uo{static langMap=new Map(T8);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:T8,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},S8=Oh;var IO=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Tm=new Map(IO),Nh=class extends Fe{static langMap=Tm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!Tm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await $({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Tm.get(r)||"auto"}2${Tm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},w8=Nh;var E8=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Uh=new Map(E8),FO=new Map(E8.map(([e,t])=>[t,e]));function BO(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var jh=class extends Fe{static langMap=Uh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=_O(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+BO(n)+i+o+this.appSecret,u=await dr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Uh.get(r)||"auto",to:Uh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await $({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,b]=p.split("2");return{text:g.translation.join(` +`),from:FO.get(f),to:a}}};function _O(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var qh=class extends Fe{static langMap=Hh;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Hh.get(r)||"auto",to:Hh.get(a)||a},o=new URLSearchParams(i),s=await $({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},D8=qh;var ic=class extends Uo{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||xs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var zh=class extends Zi{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Bt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},Sm=zh;var L8=F+"-gemini-fake-user-key",OO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],M8=new Map(OO),Vh=class extends Sm{static langMap=M8;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ct+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return M8}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Eo(L8,""),this.fakeId||(this.fakeId=NO(10),await Ao(L8,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function NO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ba({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Gh.get(r)+"-"}${Gh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await $({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var HO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],F8=new Map(HO),sc=class extends Zi{static langMap=F8;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await _a(xf+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ba({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return F8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(ym(xf+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var qO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],B8=new Map(qO),mr=class extends Zi{static langMap=B8;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return B8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var wm=class extends mr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Ar(t,"TC3"+this.secret_key),a=await Ar(this.service,r),i=await Ar("tc3_request",a),o=await Ar(n,i);return iu(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await dr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` `+i}}async getCanonicalRequest(t){let n=await dr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 @@ -5910,47 +5910,47 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var Am=class extends mr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await na()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Oa(I6,async()=>{let t=await _a({responseType:"json",url:`${ct}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Kh=["glm-4-flash"],km=class extends mr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Kh.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!Kh.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await na()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Oa(F6,async()=>{let t=await _a({responseType:"json",url:`${ct}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ia.langMap.has(n.to)||!ia.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ia(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Kh.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var ua={mock:su,mock2:su,custom:oc,google:Xl,transmart:$l,deepl:lu,volc:C8,volcAlpha:ac,bing:ia,tencent:Jl,tenAlpha:Zl,baidu:T8,caiyun:E8,cai:A8,openl:hm,youdao:D8,you:M8,d:ou,dpro:ou,deeplx:ic,niu:s8,azure:u8,openai:f8,gemini:I8,claude:B8,papago:l8,aliyun:rc,yandex:sc,qianfan:uc,"custom-ai":mr,deepseek:mr,"aliyun-bailian":mr,doubao:mr,hunyuan:Em,siliconcloud:Am,lingyiwanwu:mr,zhipu:km};globalThis.TranslationServicesClass=ua;var $i={};Object.keys(Qr).forEach(e=>{$i[e]={...Qr[e],class:ua[e]}});function eo(e,t){let n=sr;if($i[e]&&$i[e].class&&$i[e].class.langMap&&$i[e].class.langMap.size>0){let r=$i[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return sr}async function gr(e,t,n){if(!e.text)return e;let r=null,a=await fn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function N8(e,t){for(let n of e)try{return await gr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Yh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=kt(e.user);await new $i[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function VO(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function fn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),sa(a,t.localConfig,!1),m=await m8(g,m,{sourceLanguage:VO(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(f&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=WO(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let y=[],b={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,x=kt(t.user),w;try{w=new $i[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:x,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){y.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=A instanceof V?new V(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(I,null,M)}}return{sentences:[]}}if(o.cache&&!Ps(a))for(let A of e.sentences){C++;let D=l;l==="openl"&&(D=l+"-"+m.codename||hm.DEFAULT_CODENAME);let M=w.getCacheKeyPrefix();M&&(D=M+"-"+D);let I=null;try{I=await u0(H5({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(P){k.warn("query cache DB error, but it's ok",P)}if(I){let P={...A,text:I.translatedText};b.sentences[C]=P,n&&n(null,P,A)}else y.push(A)}else y.push(...e.sentences);let S=y.length;if(v-S>0&&k.debug(`use ${v-S} sentences from cache`),!y.length)return b;let T=await w.multipleTranslate({sentences:y},m,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||hm.DEFAULT_CODENAME);let P=w.getCacheKeyPrefix();P&&(I=P+"-"+I),o.cache&&u0(q5({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:Sr(M.text),service:I}),3e3).catch(R=>{k.warn("set cache DB error",R)})}});for(let A of T?.sentences||[]){let D=b.sentences.findIndex(M=>!M);if(D===-1)throw new V("translateFailed","can not match the result");b.sentences[D]=A}return b}function WO(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function be(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function la(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Qh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function jo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let h=0;he.service&&e.service in ua?ua[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,ua]),p=ne(()=>e.service&&e.service in ua?ua[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,ua]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(le,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let h=f.target.value,y=Array.isArray(r)?h.split(","):h;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(le,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Jh(e){let{t}=O(),n=Ce(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===F+"-overlay"&&r(o)};return d("dialog",{id:F+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function Dm(e,t){return t.some(n=>n.label===e)}function U8(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);Dm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);Dm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());Dm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:Dm(r,n)||n.push({label:r,value:r})}),n}var GO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),h=Ce(null),y=Ce(null),b=()=>{u||!l&&(qe().any||xr())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||xr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{h.current&&(clearTimeout(h.current),m?.()),f(!1)},x=ne(()=>{let T={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(T.maxWidth="200px",o&&(T.width=o+"px"),T.whiteSpace="normal"),c?.width&&(T.width=c.width),c?.maxWidth&&(T.maxWidth=c.maxWidth),c?.whiteSpace&&(T.whiteSpace=c.whiteSpace),T},[i,o,c]),w=ne(()=>{let T={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...T,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...T,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...T,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...T,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),S=T=>Wd()?d("div",{style:x,role:"tooltip",children:T}):d("div",{style:x,role:"tooltip",dangerouslySetInnerHTML:{__html:T}});return d("div",{class:a,onMouseEnter:b,onMouseLeave:C,onTouchStart:()=>{l&&b()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:w,children:S(e)})]})},yt=GO;function lc(e){let{disableTipText:t}=e;return e.disabled&&t?d(yt,{text:t,enableMobile:!0,tipStyle:{left:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(j8,{...e})}):d(j8,{...e})}function j8(e){return d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})}function ca(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,disableTipText:h}=e;p=p??(m.default||"");let y={},b={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(b=u.translationServices[e.service]),b.env){let C=Object.keys(b.env);for(let x=0;xQO(t,m,b),[m,b]);if(e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),q(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[Zh(t,m),"\uFF1A"]}),d(Qh,{maxWidth:200,disabled:f,items:m.options.map(C=>({label:`${C.label?t(C.label):C.value}`,value:C.value,selected:p===C.value,onSelected:()=>{if(C.action=="jumpOptions"){let x=C.args||[];Aa(...x);return}g(C.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let C=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[Zh(t,m),"\uFF1A"]}),d(Qh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let w=x.label===x.value?x.value:x.label;return{label:t(w),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Jh,{visible:o,value:b.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(w=>{let S=w.translationServices?.[e.service||""];return S?(S.customModels=x,{...w}):w}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=C.includes(p);a&&!x&&g(C[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(jo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(jo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(jo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let C=p,x="";C||(C="#FFFFFF",x="#FFFFFF");let{hex:w,opacity:S}=YO(C);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:T=>{g(T.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:w,style:{opacity:S},disabled:f,onInput:T=>{g(T.target.value)}})]})})}else return m.type=="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d(lc,{id:m.name,checked:p,disableTipText:h,disabled:f,onChange:C=>g(C)}),Zh(t,m),KO(t,m,y)]})}):null}}function Zh(e,t){if(typeof t.labelKey=="object")return t.labelKey;let n=t.name;return t.label&&(n=t.label),t.labelKey&&(n=e(t.labelKey)),n}function KO(e,t,n){return t.descriptionKey?typeof t.descriptionKey=="object"?d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},children:t.descriptionKey}):d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},dangerouslySetInnerHTML:{__html:e(t.descriptionKey,n)}}):null}function YO(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function QO(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=U8(i,n.customModels||[]),[...i,a]}function H8(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function cc(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d(H8,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function da(e){let{t}=O(),n=Ce(null),{toggleModal:r}=e,a=i=>{i?.target?.id===F+"-overlay"&&r(i)};return d("dialog",{id:F+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function qa(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(le,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function Ho(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);q(()=>{Kt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(da,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(qa,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ma(){let e=["bingGlobalConfig","baiduGlobalConfig",R6,Ai];for(let t of e)await j.storage.local.remove(t);X()||await C5(),await Kf()}function q8(){return X()?Promise.resolve("0 B"):sd()}var Lm='',z8=` +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var Em=class extends mr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ta()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await _a(P6,async()=>{let t=await Ba({responseType:"json",url:`${ct}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Kh=["glm-4-flash"],Am=class extends mr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Kh.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!Kh.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ta()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await _a(R6,async()=>{let t=await Ba({responseType:"json",url:`${ct}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!aa.langMap.has(n.to)||!aa.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new aa(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Kh.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:su,mock2:su,custom:ic,google:Zl,transmart:Xl,deepl:lu,volc:y8,volcAlpha:rc,bing:aa,tencent:Ql,tenAlpha:Jl,baidu:x8,caiyun:S8,cai:w8,openl:fm,youdao:A8,you:D8,d:ou,dpro:ou,deeplx:ac,niu:i8,azure:o8,openai:g8,gemini:P8,claude:I8,papago:s8,aliyun:nc,yandex:oc,qianfan:sc,"custom-ai":mr,deepseek:mr,"aliyun-bailian":mr,doubao:mr,hunyuan:wm,siliconcloud:Em,lingyiwanwu:mr,zhipu:Am};globalThis.TranslationServicesClass=oa;var $i={};Object.keys(Yr).forEach(e=>{$i[e]={...Yr[e],class:oa[e]}});function eo(e,t){let n=ur;if($i[e]&&$i[e].class&&$i[e].class.langMap&&$i[e].class.langMap.size>0){let r=$i[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return ur}async function sa(e,t,n){if(!e.text)return e;let r=null,a=await fn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function _8(e,t){for(let n of e)try{return await sa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Yh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=kt(e.user);await new $i[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function zO(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function fn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=await c8(g,m,{sourceLanguage:zO(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(f&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=VO(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let y=[],h={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,x=kt(t.user),w;try{w=new $i[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:x,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){y.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=A instanceof V?new V(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(I,null,M)}}return{sentences:[]}}if(o.cache&&!Ps(a))for(let A of e.sentences){C++;let D=l;l==="openl"&&(D=l+"-"+m.codename||fm.DEFAULT_CODENAME);let M=w.getCacheKeyPrefix();M&&(D=M+"-"+D);let I=null;try{I=await s0(U5({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(P){k.warn("query cache DB error, but it's ok",P)}if(I){let P={...A,text:I.translatedText};h.sentences[C]=P,n&&n(null,P,A)}else y.push(A)}else y.push(...e.sentences);let T=y.length;if(v-T>0&&k.debug(`use ${v-T} sentences from cache`),!y.length)return h;let S=await w.multipleTranslate({sentences:y},m,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||fm.DEFAULT_CODENAME);let P=w.getCacheKeyPrefix();P&&(I=P+"-"+I),o.cache&&s0(j5({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:xr(M.text),service:I}),3e3).catch(R=>{k.warn("set cache DB error",R)})}});for(let A of S?.sentences||[]){let D=h.sentences.findIndex(M=>!M);if(D===-1)throw new V("translateFailed","can not match the result");h.sentences[D]=A}return h}function VO(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function be(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function ua(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Qh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function jo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let b=0;be.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=ne(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(le,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let b=f.target.value,y=Array.isArray(r)?b.split(","):b;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(le,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Jh(e){let{t}=O(),n=Ce(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===F+"-overlay"&&r(o)};return d("dialog",{id:F+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function km(e,t){return t.some(n=>n.label===e)}function O8(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);km(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);km(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());km(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:km(r,n)||n.push({label:r,value:r})}),n}var WO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),b=Ce(null),y=Ce(null),h=()=>{u||!l&&(qe().any||Cr())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||Cr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{b.current&&(clearTimeout(b.current),m?.()),f(!1)},x=ne(()=>{let S={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(S.maxWidth="200px",o&&(S.width=o+"px"),S.whiteSpace="normal"),c?.width&&(S.width=c.width),c?.maxWidth&&(S.maxWidth=c.maxWidth),c?.whiteSpace&&(S.whiteSpace=c.whiteSpace),S},[i,o,c]),w=ne(()=>{let S={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...S,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...S,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...S,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...S,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),T=S=>Vd()?d("div",{style:x,role:"tooltip",children:S}):d("div",{style:x,role:"tooltip",dangerouslySetInnerHTML:{__html:S}});return d("div",{class:a,onMouseEnter:h,onMouseLeave:C,onTouchStart:()=>{l&&h()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:w,children:T(e)})]})},yt=WO;function uc(e){let{disableTipText:t}=e;return e.disabled&&t?d(yt,{text:t,enableMobile:!0,tipStyle:{left:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(N8,{...e})}):d(N8,{...e})}function N8(e){return d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})}function la(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,disableTipText:b}=e;p=p??(m.default||"");let y={},h={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(h=u.translationServices[e.service]),h.env){let C=Object.keys(h.env);for(let x=0;xYO(t,m,h),[m,h]);if(e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),q(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[Zh(t,m),"\uFF1A"]}),d(Qh,{maxWidth:200,disabled:f,items:m.options.map(C=>({label:`${C.label?t(C.label):C.value}`,value:C.value,selected:p===C.value,onSelected:()=>{if(C.action=="jumpOptions"){let x=C.args||[];Ea(...x);return}g(C.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let C=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[Zh(t,m),"\uFF1A"]}),d(Qh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let w=x.label===x.value?x.value:x.label;return{label:t(w),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Jh,{visible:o,value:h.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(w=>{let T=w.translationServices?.[e.service||""];return T?(T.customModels=x,{...w}):w}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=C.includes(p);a&&!x&&g(C[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(jo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(jo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(jo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let C=p,x="";C||(C="#FFFFFF",x="#FFFFFF");let{hex:w,opacity:T}=KO(C);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:S=>{g(S.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:w,style:{opacity:T},disabled:f,onInput:S=>{g(S.target.value)}})]})})}else return m.type=="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d(uc,{id:m.name,checked:p,disableTipText:b,disabled:f,onChange:C=>g(C)}),Zh(t,m),GO(t,m,y)]})}):null}}function Zh(e,t){if(typeof t.labelKey=="object")return t.labelKey;let n=t.name;return t.label&&(n=t.label),t.labelKey&&(n=e(t.labelKey)),n}function GO(e,t,n){return t.descriptionKey?typeof t.descriptionKey=="object"?d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},children:t.descriptionKey}):d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},dangerouslySetInnerHTML:{__html:e(t.descriptionKey,n)}}):null}function KO(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function YO(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=O8(i,n.customModels||[]),[...i,a]}function U8(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function lc(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d(U8,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function ca(e){let{t}=O(),n=Ce(null),{toggleModal:r}=e,a=i=>{i?.target?.id===F+"-overlay"&&r(i)};return d("dialog",{id:F+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ha(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(le,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function Ho(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);q(()=>{Kt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(ca,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ha,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function da(){let e=["bingGlobalConfig","baiduGlobalConfig",M6,Ai];for(let t of e)await j.storage.local.remove(t);X()||await y5(),await Kf()}function j8(){return X()?Promise.resolve("0 B"):od()}var Dm='',H8=` -`,gi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var V8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=",W8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",G8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",K8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function JO(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Fa(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Xh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Oe(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[h,y]=N({});q(()=>{n&&v().then(()=>g(!1))},[n]);let b=T=>{T?.target?.id===F+"-overlay"&&t()};function v(){return new Fa(n).listAll().then(A=>{c(A)}).catch(A=>r())}function C(T){if(T.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let A=F+"-config-"+zs()+".json";new Fa(n).uploadConfig(i,A).catch(D=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function x(T,A,D){T.preventDefault(),y({[D]:!0}),new Fa(n).getConfig(A).then(M=>{o(()=>({...M})),rt(a("importSuccess"))}).catch(M=>{k.error(M),bt(a("importFail"))}).finally(()=>y({}))}function w(T,A){new Fa(n).getConfig(T).then(D=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(D,null,2))),M.setAttribute("download",A),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(D=>{k.error("download google config file failed",D),bt(a("downloadFail")+": "+D.message)})}function S(T){T.preventDefault(),o({...i,autoSync:!1}),Gi.revoke(n).then(()=>t())}return d("dialog",{id:F+"-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:T=>{T.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((T,A)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:D=>{D.preventDefault(),w(T.id,T.name)},class:"block truncate w-40 sm:w-auto",children:T.name.replace(F+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(T.modifiedTime).toLocaleString(),",\xA0",Tl(parseInt(T.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":h[A],disabled:h[A],onClick:D=>x(D,T.id,A),children:a("import_hint")}),d(JO,{accessToken:n,id:T.id,listAllFiles:v})]})]},"file"+A))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:S,disabled:m,children:a("revokeAuth")})]})]})})}function za(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=ns([]);function ft(e){let[t,n]=N(null);return q(()=>{Je().then(r=>{n(r),k.debug("current config",r)})},[]),q(()=>{Je().then(r=>{n(r)})},[e]),t}function cn(e){let[t,n]=N(null);return q(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function Y8(){let[e,t]=N(!1),n=nr();return q(()=>{X(!0)&&(!n||n=="0.0.0"||za(n,"0.9.0")||t(!0))},[n]),[e,t]}function ga(){let[e,t]=N(null);return q(()=>{Rt().then(r=>{t(r)})},[]),[e,r=>{t(r),Dt(r)}]}function Mm(e){let[t,n]=N(null);return q(()=>{nt.get(pt,null).then(r=>{n(r?kt(r):!1)}).catch(r=>{n(!1)})},[]),q(()=>{n(kt(e))},[e]),t}var at=class extends co{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(k.error("ErrorBoundary",this.error,this.info),d(ZO,{error:this.error,info:this.info})):this.props.children}};function ZO({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var Q8=k;function XO(){let[e,t]=N(null);return q(()=>{Je().then(n=>{t(n)})},[]),e}function e1(){let[e,t,n,r,a]=Oe(),i=XO();Ze(e,t);let{t:o,setLang:s}=O(),[u,l]=ga();if(!i)return null;return d(at,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!fs()&&d(g,{}),d(p,{config:i})]})});function c(){let f=b=>{b.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Po(),updatedAt:new Date().toISOString()}),Vs().catch(v=>{Q8.error("clean local config error",v)}),ma().catch(v=>{Q8.error("clean cache error",v)}),rt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},h=b=>{t(()=>({...b}))},y=b=>{b.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let x=C.target,w=new FileReader;w.onload=function(){try{let S=JSON.parse(w.result);h(S),rt(o("successImportConfig"))}catch(S){bt(`Invalid JSON ${S.message}`)}},w.readAsText(x.files[0])},v.click(),document.body.removeChild(v)};return d(le,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[eN,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{if(b.preventDefault(),fs()){let v=Te();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});po.saveAs(v,F+"-config-"+zs()+".txt")}},role:"button",children:[tN,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(!1),[x,w]=N("");q(()=>{if(tl()&&n){let R=localStorage.getItem(rl);if(localStorage.removeItem(rl),R){let L=globalThis.localStorage.getItem(Tf);k.debug("import_export","rawAuthInfoStr",L);let _={},U={},z="";if(L){globalThis.localStorage.removeItem(Tf);try{_=JSON.parse(L),U=_.state||{},z=_.access_token||""}catch(Y){k.error("parse state error",Y)}}if(z&&U&&(Gi.setAuthInfo({access_token:z}),k.debug("import_export","Google OAuth:",_),_)){let Y=_.state;k.debug("state",Y),Y?.mode==="auto"?(b(!0),I(z)):(C(!0),D(z))}}}},[n]);function S(){b(!0),G4({source:globalThis.location.href,mode:"auto"},!0).then(R=>{k.debug("import_export","Google OAuth:"+R),R!==null&&I(R)}).catch(R=>{R&&R.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(R)})}function T(){C(!0),h(!1),G4({source:globalThis.location.href,mode:"manual"},!0).then(R=>{k.debug("import_export","Google OAuth:"+R),R!==null&&D(R)}).catch(R=>{R&&R.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(R)})}function A(){w(""),S()}function D(R){w(R),C(!1),h(!0)}function M(R){b(!1),C(!1),h(!1),t({...e,autoSync:!1}),k.error("import_export","Google OAuth error:"+R),bt(o("authFail"))}function I(R){b(!0),k.debug("sync latest with drive",R,e),w(R),rm(R,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?rt(o("successSyncConfig")):rt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{b(!1)})}function P(R){t({...e,autoSync:R.checked}),R.checked&&S()}return d(le,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:R=>{R.preventDefault(),S()},"aria-busy":y,href:"#",role:"button",children:[y?d(le,{}):J8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:R=>{R.preventDefault(),T()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Xh,{onClose:()=>h(!1),authExpire:A,accessToken:x}):null]})}function p({config:f}){let h=X8(),[y,b]=N(!1),[v,C]=N(""),[x,w]=N(""),{t:S}=O();if(!h||!h.token)return null;let T=kt(h);async function A(){confirm(S("proRightOpenPro"))?window.open(fy):k.debug("\u53D6\u6D88\u4F1A\u5458")}async function D(){if(!T){A();return}try{if(y)return;b(!0),w("");let L=await Pm(h?.token,e,a),_="";switch(L){case"upload":{_=S("successSyncConfigToAccount");break}case"override":{_=S("successSyncConfigInAccount");break}default:_=S("syncConfigNoUpdate")}C(_)}catch(L){C(""),w(L.message)}finally{b(!1)}}let M=ue(L=>{if(!T){A();return}l({...u,proAutoSync:L})},[]),I=ue(L=>{if(!T){A();return}t(_=>({..._,proSyncAPIKey:L}))},[]),P=u?.proAutoSync!=!1,R=e?.proSyncAPIKey!=!1;return T||(P=!1,R=!1),d(le,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:S("syncToAccount")}),d("h6",{class:"!text-sm",children:S("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!P)},checked:P}),S("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!R)},checked:R}),S("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),D()},"aria-busy":y,href:"#",role:"button",children:[J8," ",S("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&!v&&u?.accountLastSyncedAt&&T),children:S("lastSyncedAt",{date:PC(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:He()||T,children:d("span",{dangerouslySetInnerHTML:{__html:S("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!x,children:x})]})}}var $O=Bn(Pm,1e3);async function Pm(e,t,n){try{if(t===null)return"noupdate";let r=await Rt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ni(t.proSyncAPIKey,t);return await $h(e,c),await Dt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await $8(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Hv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ni(t.proSyncAPIKey,t);return await $h(e,u),await Dt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||qv(n)&&$O(n.token,e,t)},[e,n])}function X8(){let[e,t]=N(null);return q(()=>{nt.get(pt,null).then(n=>{t(n)})},[t]),e}function $8(e){return(location.href?.indexOf("popup.html")>0?Or:$)({responseType:"json",url:ct+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function $h(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Or:$)({responseType:"json",url:ct+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var J8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),eN=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),tN=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var nN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${F}-modal-overlay`&&r()},id:`${F}-modal-overlay`,children:d("div",{style:i,children:t})})},eS=nN;var t1="Arial",dc=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===t1.toLowerCase()?!0:tS(t1,t).join("")!==tS(e,t).join("")}catch{return!1}};function tS(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+t1,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function n1(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||tr(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function nS(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",r1(t),"AES-GCM",!0,["encrypt","decrypt"]),a=r1(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:r1(n)},r,a);return rN(i)}catch{return Promise.reject("Encryption failed")}}function rN(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=R.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let U=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),U.enableAIContext&&(L.ai_assistant="ai_context"),U&&(U.provider&&(L.translation_service_provider=U.provider),n.translationService==="openai"&&U.provider==="custom"&&(U.apiUrl?U.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),U.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=Rd(v);let U=Fd(v);L.install_week=`${U.year}${U.week}`}if(n.user){let U=Ky(n.user);U&&Object.keys(U).forEach(z=>{L[z]=U[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=T?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let U=n.url;try{let z=new URL(U);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),y&&(L.ab_group=y),L.campaign=b||"none",{...R,params:L}});if(i)return;M.forEach(async R=>{let L=await $({responseType:"text",url:R,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&aN(p,P),n.config.enablePerformanceReport&&sN(n,P)}catch(r){k.debug("report error",r)}}function aN(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};rS(r);let a=Date.now()+(Math.random()*100).toFixed(0);$({url:Cl,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var iN=Date.now(),oN=["translate_page","translate_video_subtitle"];function sN(e,t){try{t.forEach(async n=>{if(!oN.includes(n.name)||e.config.performanceBlockUrls?.some(l=>dt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};rS(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-iN},s=await nS(JSON.stringify(o),Ay,ky);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);$({url:Cl,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function rS(e){return e?.install_day&&(e.install_day=Id(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function a1(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function aS(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}function iS(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_20007_2576)",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),d("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),d("defs",{children:d("clipPath",{id:"clip0_20007_2576",children:d("rect",{width:"16",height:"16",fill:"white"})})})]})}function Rm(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function to({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=He(),[m,g]=N(!1),[p,f]=N(""),[h,y]=N(""),[b,v,C,x,w]=Se(me),S=Mm(i),T=P=>{v(R=>{let L={...R,[n]:P};return n==="translationService"&&(Ne("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${P}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},A=ne(()=>{if(!t)return[];t.user=i??t.user;let P=Ls(t,n,l);return o?.length&&(P=P.filter(R=>o.find(L=>L==R.id))),P},[t,i,n,l,o]),D=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:P}=e,R=t[n],L=P?.[R],_=tc(L,t.localConfig.aiAssistants||[]);if(_&&L){let U=du(_);return{...L,...U,aiAssistant:_}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let P=t[n];return Ms(t,n,l,P)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(le,{children:[d("div",{class:"nav",children:[d(be,{title:r||u("service"),description:a||u("select translation service")}),d(uN,{selectService:T,translationServiceItems:A,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!S,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(lN,{verifiedErrorMessage:p}),d(cN,{ctx:t,curServiceConfig:D,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:h,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(o1,{config:e,curServiceItem:M,setSettings:v,isProUser:!!S,t:u}),d(s1,{curServiceItem:M,t:u}),d(u1,{curServiceItem:M,t:u}),d(i1,{currentTranslationServiceItem:M,t:u}),l1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!S,t:u}),c1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!S,t:u})]})]})}function i1({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function uN({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:rd(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function lN({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function cN({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await tt(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await gr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){k.debug("e.status",c.status),k.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){k.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function o1({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(n1,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function s1({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function u1({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function l1({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(le,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l,hidden:c,descriptionKey:m,disableTipText:g}=sS(a,e,t,n,o,i);return d("div",{class:"mt-2",hidden:c,children:[d(ca,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:{...o,descriptionKey:m},value:u,disabled:l,onSetSettings:r,disableTipText:g,onChange:p=>{r(f=>{let h=f.translationServices||{},y=h[n.id]||{};return uS(e,y,o.name,p),{...f,translationServices:{...h,[n.id]:{...y,[o.name]:p}}}})},onFinish:()=>{rt(i("saved"))}},o.name+n.id),d(dN,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function c1({isProUser:e,config:t,curServiceConfig:n,curServiceItem:r,setSettings:a,t:i,forceExpand:o}){if(!n||!t||!r?.optionalProps?.length||!a)return null;let s=r?.id.startsWith("custom-ai"),u=d(le,{children:[d("div",{children:r.optionalProps.map((l,c)=>{let{value:m,disabled:g,hidden:p,descriptionKey:f}=sS(e,t,n,r,l,i);return n?.aiAssistant&&!n?.aiAssistant?.enableRichTranslate&&l.name=="enableRichTranslate"?null:d("div",{class:"mt-2",hidden:p,children:d(ca,{config:t,service:r?.id,disabled:g,field:{...l,descriptionKey:f},value:m,onSetSettings:a,onChange:h=>{a(y=>{let b=y.translationServices||{},v=b[r.id]||{};return uS(t,v,l.name,h),{...y,translationServices:{...b,[r.id]:{...v,[l.name]:h}}}})},onFinish:()=>{rt(i("saved"))}},l.name+r.id+n.assistantId+n.fallbackAssistantId)},"service-item-optional-prop-"+l.name+c)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:l=>{l.preventDefault(),window.confirm(i("confirmResetToDefaultSettings"))&&a(m=>{let g=m.translationServices||{};setTimeout(()=>window.location.reload(),50);let p=g[r.id]||{};if(s){let f=["type","name","extends","apiUrl","APIKEY"];Object.keys(p).forEach(h=>{f.includes(h)||delete p[h]})}else p={};return{...m,translationServices:{...g,[r.id]:p}}})},children:i("resetToDefaultSettings")})]});return o?u:d(le,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[i("moreOptions"),"\xA0\u{1F449}"]}),u]})})}function dN({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=ue(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ca,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{rt(a("saved"))}})}function oS(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function sS(e,t,n,r,a,i){let o="",s=a.descriptionKey,u=!1;if(!a)return{value:"",hidden:u,disabled:!1};let l=!1;n.aiAssistant&&["systemPrompt","prompt","multiplePrompt","subtitlePrompt","enableRichTranslate","maxTextGroupLengthPerRequestForSubtitle","maxTextGroupLengthPerRequest","maxTextLengthPerRequest"].includes(a.name)&&(l=!0);let c=n[a.name];return a.name=="enableRichTranslate"&&(t.translationMode=="dual"?c=n.dualEnableRichTranslate??n.enableRichTranslate:t.translationMode=="translation"&&(c=n.translationEnableRichTranslate??n.enableRichTranslate)),a.descriptionKey=="description.enableRichTranslate"&&t.translationMode=="dual"&&n.dualEnableRichTranslate!=null&&n.extends=="ai"&&(a.descriptionKey="description.aiDualEnableRichTranslate"),a.descriptionKey=="description.aiDualEnableRichTranslate"&&t.translationMode=="translation"&&(a.descriptionKey="description.enableRichTranslate"),a.name==="apiUrl"&&r?.id==="openai"&&n?.APIKEY?.startsWith("immersiveopenai_")&&(l=!0,c=`https://openai-api.${et}/v1/chat/completions`),a.name=="placeholderDelimiters"&&(a.default=n.placeholderDelimiters||a.default),a.name=="enableAIContext"&&n.aiAssistant&&(l=!0,o=i("enableAIContext.aiAssistantDisableTips")),a.name=="enableAIContext"&&(a.descriptionLink1=fl,e||(l=!0,c=!1,o=i("onlyProUseProTooltip",{1:hy+"enableAIContext"}))),a.name=="enableAIContext"&&!Da(nr(),"1.12.1")&&(u=!0),a.name=="enableAIContext"&&(s=d(le,{children:[d("span",{dangerouslySetInnerHTML:{__html:i(a.descriptionKey||"",{1:a.descriptionLink1})}}),d(yt,{containerStyle:{display:"inline-flex"},text:i("description.enableAIContextTip"),tipStyle:{width:200},multiple:!0,enableMobile:!0,children:d(Rm,{})})]})),{value:c,hidden:u,disabled:l,descriptionKey:s,disableTipText:o}}function uS(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function lS(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function cS(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function dS(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function mS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function gS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function pS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function fS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var bS=nm();function Im(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=cn(o);Ze(t,n);let[u,l]=Y8(),[c,m]=N(null);return q(()=>()=>{Kt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[d(mN,{}),d(TN,{config:o,user:c,setUser:m}),d(yN,{config:o}),d(to,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(gN,{config:o}),d(RN,{config:o}),d(vN,{config:o}),d(CN,{config:o}),d(xN,{config:o}),d(SN,{config:o}),d(pN,{config:o,ctx:s}),d(bN,{setSettings:n,config:o}),d(eS,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${F}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function mN(){let[e,t,n,r,a]=Se(me),i=ft(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Yl({...i,isShowContextMenu:!0}),a({...Po(),updatedAt:new Date().toISOString()}),Vs().catch(c=>{k.error("clean local config error",c)}),ma().catch(c=>{k.error("clean cache error",c)}),rt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ma().then(()=>{rt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(mS,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(gS,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function gN({config:e}){let[t,n,r,a,i]=Se(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(be,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),X(!0)||setTimeout(()=>{Yl()},200)},children:Wi(Td,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function pN({config:e,ctx:t}){let{t:n}=O(),r=Oe(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>DN(l),[l]),f=ue(Bn((v,C)=>{a&&i(x=>{let w=x.translationThemePatterns||{};return{...x,translationTheme:C,translationThemePatterns:{...w,[C]:v}}})},400),[i]),h=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return q(()=>{m&&(Xs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(le,{children:[d(hN,{translationTheme:l,onChange:v=>{let C=v.target;h(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),b(),d(MN,{config:e}),d(fN,{translationThemes:Lf,selectedTheme:l,selectDisplay:h})]})})]});function y(){return d(le,{children:d("font",{class:tu(l,!1,[],!1).join(" "),children:d("font",{class:nu(l).join(" "),children:n("sampleTargetText")})})})}function b(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let x=m||{},w=`theme-${l}-${v.name}`,S=vx(w)||v.default||void 0,T=x[v.name]||S;return d(ca,{config:e,field:v,value:T,onSetSettings:i,onChange:A=>{g(D=>(Xs(document,l,{...D,[v.name]:A},a.selectTranslationFont),{...D,[v.name]:A}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function fN({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:tu(a,!1,[],!1).join(" "),children:d("font",{class:nu(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function hN({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(be,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:Lf.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function bN({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(h=>{let y=h.translationThemePatterns||{},b=y[p]||{},v=b.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=qn(g,C),{...h,translationThemePatterns:{...y,[p]:{...b,matches:C}}}})},c=(g,p)=>{e(f=>{let h=f.translationThemePatterns||{},y=h[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...h,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(da,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(qa,{urls:LN(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function yN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O();if(!e)return null;let s=l=>{eu({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=eo(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Wi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),{handleTranslationLanguagePatternSelected:s}=yS(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(cc,{title:t("always languages"),description:t("always translate the following languages"),languages:bS,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function CN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),{handleTranslationLanguagePatternSelected:s}=yS(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(cc,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:bS,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function xN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];if(g==="edit"){if(!b[c])return p;b[c]=l}return b=qn(l,b),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Rt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],h=f.filter(b=>b.match!==p),y=!1;h.length!==f.length&&(y=!0),y&&Dt({...m,tempTranslationUrlMatches:[...h]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(h=>{f=Jt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function SN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];return g==="edit"&&(v[c]=l),b=Jt(l,h),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(h=>{f=Jt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function yS(e){return{handleTranslationLanguagePatternSelected:ue((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var d1=0,g1;async function vS(e){if(d1>60*10)return null;d1++,nt.refresh(),await tt(300);let t=await nt.get(pt,null);k.debug("loopCheckUser",d1,t),t?(clearTimeout(g1),e(t)):g1=setTimeout(vS.bind(null,e),1500)}function hS(e){let{user:t,lang:n}=e,r=He(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=kN(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):Gy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function TN({config:e,user:t,setUser:n}){let{t:r}=O(),a=He(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=Se(me),m=e.interfaceLanguage;q(()=>(nt.get(pt,null).then(h=>{h&&(n(h),wN(h.token).then(y=>{let b=y.data;b.token=h.token,nt.set(pt,b),n(b),Oo()}).catch(y=>{Ol(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(g1)}),[]);let g=ue(h=>{h&&h.preventDefault&&h.preventDefault(),t?.token&&EN(t.token).finally(async()=>{await nt.remove(pt),await tt(200),await nt.refresh(),n(null),Oo()})},[t]),p=ue(async h=>{px()&&(h&&h.preventDefault&&h.preventDefault(),AN(Ts),await nt.set(gl,!0),vS(y=>{Pm(y.token,o,s),n(y),p1?.close(),window.location.reload()}))},[n]),f=t?.avatar||V8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?tr(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(hS,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Ln}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:gi})]}),d("div",{class:"",children:d("a",{href:`${Li}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:gi})]}),d(hS,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Li,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):tr(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:iy,onClick:p,children:r(a?"loginForSafari":"login")})]})}function wN(e){return $({responseType:"json",url:ct+"v1/user",method:"get",headers:{token:e}})}function EN(e){return $({responseType:"json",url:ct+"v1/user/logout",method:"delete",headers:{token:e}})}var p1=null;function AN(e){let r=screen.width/2-230,a=screen.height/2-640/2;return p1=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),p1}function kN(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function DN(e){let t=[];return dl[e]&&(t=t.concat(dl[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function LN(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var m1="";function MN({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(PN,{config:e,isOpen:n})]})}function PN({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);q(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(h=>dc(h,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(h=>h===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=Se(me),g=p=>{p!==m1&&!dc(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let h=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&h&&f.translationThemePatterns&&f.translationThemePatterns[h]&&(y=f.translationThemePatterns[h]),Xs(document,h,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(m1))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let h=n(`font.${p}`);h.startsWith("font.")&&(h=p);let y=p=="none"?m1:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:h},"locale"+f)})})]})}function RN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function rn(e){return we.ASSETS_BASE_URL+e}var Fm=!1;function f1(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=cn(o);Ze(t,n);let{t:u,lang:l}=O(),c=s&&Ds(s,"translationService",l)||[],m=_o(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),h=Ms(s,"translationService",l,f);return d(BN,{service:f,currentTranslationServiceItem:h,ctx:s})},[m,c]);!Fm&&m==="#services"&&(Fm=!0),q(()=>()=>Fm=!1,[]),q(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Bl(8)}`;if(s?.config.translationServices[f]){p();return}await n(h=>{let y=h.translationServices||{},b=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${b+2}`,{...h,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(yl,"_blank"),children:d(aS,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(yl,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(IN,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function IN({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=Se(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!ai.find(I=>I==e.id),[e]),m=ue(I=>{i(P=>{let R=P.translationServices?.[e.id]||{};return{...P,translationServices:{...P.translationServices,[e.id]:{...R,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},h=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=He(),b=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,b,e.id,e.ok]),x=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!S||i(P=>{Ne("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${P.translationService}_${e.id}`}}],t);let R={...P,translationService:e.id};return R.translationServiceChangedbyUserAt=new Date().toISOString(),R}))},w=t.translationService===e.id,S=w||t4(l,r),T=n("translationServices."+e.id),A=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:F+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:F+"-link"}}),D=e.id;return v&&(T=`${e.name||""} (${n("translationServices.custom-ai")})`,A="",D="custom-ai"),d("div",{class:"service-container","data-selected":w?"true":"false","data-configed":S,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:rn(`images/${D}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:T})]}),d(yt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:S,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:A}}),h&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:x,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),S&&(I=!0),I}}function FN(e,t){let[n,r]=N(!1),[a]=Se(me),[i,o]=N("");return[ue(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await gr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function BN({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=ft(a),{t:c}=O(),m=Mm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,x=t?.id||"",w=C?.[x],S=tc(w,n.localConfig.aiAssistants||[]);if(S&&w){let T=du(S);return{...w,...T,aiAssistant:S}}return w?{...w}:{}}return null},[l,n,t,e]),[p,f,h]=FN(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,b=g?.type,v=c("translationServices."+e)+" "+c("setting");if(b){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(le,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!Fm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&h==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),h&&h!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:h}})}),y&&d("article",{children:[d(o1,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(s1,{curServiceItem:t,t:c}),d(u1,{curServiceItem:t,t:c}),d(i1,{currentTranslationServiceItem:t,t:c}),l1({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),c1({isProUser:!!m,config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(oS,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function pa(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var _N=xn+"assets/uploads/default-oade4Y.png";function xS({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=ue(()=>m(_N),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:h}=Sm(),y=Oe(),[b,v]=y;Ze(b,v);let C=ft(b);q(()=>{Ah(e).then(w=>{a(w),m(w.avatar),o({name:w.i18n[t]?.name||w.name,description:w.i18n[t]?.description||w.description,details:w.i18n[t]?.details||w.details}),u(lt.sanitize(w.i18n[t]?.details||w.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let x=p?.some(w=>w.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:w=>{if(w.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(yt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:di(r),children:d(h1,{assistantID:e,enable:di(r),handleInstall:f,operateLoading:h,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),x&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(b1,{aiAssistant:r,isInstall:x}),C&&d(le,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(le,{children:ON.map((w,S)=>d("div",{className:"mt-2",children:d(ca,{service:"ai",config:C,field:w,value:r[w.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},S)},"custom-assistants-prop-"+S))})]})]})}function h1({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=Ce(null);return q(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(fS,{}):d(pS,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${F}-loading-spinner`})]})]})})}function b1({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=Se(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Ud(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...h],b=u[p];if(e.matches?.find(C=>C===b))y=CS(e.matches||[],h,[b]),y.push(g);else{let C=y.findIndex(x=>x.endsWith(b));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,h)=>{if(h==="edit")return l(g,p);a(y=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...b],C=e.matches?.find(w=>w===g),x=b.find(w=>w.endsWith(g));if(C&&x){if(!x.startsWith("[-]"))return;v=v.filter(w=>w!==x)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=CS(e.matches||[],h,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(Ho,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function CS(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var ON=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function SS(e){let t=Oe(),[n,r]=t;Ze(n,r);let a=ft(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=UN({id:e.assistantID,userConfig:n,setSettings:r}),l=ue(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(le,{children:NN.map((c,m)=>d("div",{class:"mt-2",children:d(ca,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{rt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(b1,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var NN=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function UN({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=ue(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=ue(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var Bm=!1,jN=xn+"assets/uploads/default-oade4Y.png";function y1(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=qN(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let x=v.priority||1e3,w=C.priority||1e3;return x-w})),[o,e]);q(()=>{(async()=>{try{r(!0);let v=await Eh(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Ze(c,m);let g=ft(c),p=cn(g),f=p?.config.interfaceLanguage||"zh-CN",h=_o(),{t:y}=O();q(()=>{wh(void 0,void 0,!0)},[]),!Bm&&h==="#ai"&&(Bm=!0),q(()=>()=>Bm=!1,[]);let b=ne(()=>{if(!h.startsWith("#ai/"))return null;let v=h.slice(4);return v.startsWith("custom")?d(SS,{assistantID:v}):d(xS,{assistantID:v,lang:f,hasAssistantsRoute:Bm})},[h,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(at,{children:d(me.Provider,{value:l,children:[h==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(pa,{image:rn("images/assistant_intro.png"),nightImage:rn("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${F}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(HN,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${F}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),b]})})}function HN({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=ue(()=>i(jN),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=Sm();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(yt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:di(e),children:d(h1,{assistantID:e.id,enable:di(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function qN(){let e=Ce(!1),{t}=O(),[n,r]=Oe();Ze(n,r);let a=n?.customAiAssistants||[];return q(()=>{!n||e.current||(async()=>{try{let s=(await nc()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),No("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return k.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Bl(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var ar={};q0.forEach(e=>{e.labelKey&&(ar[e.key]=e.labelKey)});function v1(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let[o,s]=N(null),{t:u}=O();if(q(()=>{Je().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(zN,{config:l}),d(VN,{config:l,ctx:o}),d(WN,{config:l}),d(to,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(GN,{config:l}),d(KN,{config:l}),d(QN,{config:l}),d(YN,{config:l})]})})}function zN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O();return e?d(le,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${xn}videos/input-translation-demo-202307044.mp4`:`${xn}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function VN({config:e,ctx:t}){let[n,r,a,i,o]=Se(me),{t:s}=O(),u=c=>{r(m=>({...m,inputTargetLanguage:c}))};if(!e)return null;let l=eo(t.inputTranslationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:s("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?s("inputTargetLanguageDescriptionForNoneKey"):s("inputTargetLanguageDescription",{startingKey:ar[e.inputStartingTriggerKey]?s(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),u(c.target.value)},children:Wi(l,12,e.interfaceLanguage).filter(c=>c!=="auto").map((c,m)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Ot(c,e.interfaceLanguage)},"language"+m))})]})}function WN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function GN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(be,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:q0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function KN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:q0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function YN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O(),[s,u]=N(!1),l=b=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(b,v,C,x)=>{l(C),n(w=>{let S=w.inputTranslationUrlPattern,T=[],A=[];S&&S.matches&&S.excludeMatches&&(T=S.matches,A=S.excludeMatches);let D=[...T],M=[...A];return x==="edit"&&(C==="matches"?D[v]=b:M[v]=b),C==="matches"?(D=qn(b,D),M=Jt(b,A)):(D=Jt(b,T),M=qn(b,M)),{...w,inputTranslationUrlPattern:{...w.inputTranslationUrlPattern,matches:D,excludeMatches:M}}})},h=(b,v)=>{n(C=>{let x=C.inputTranslationUrlPattern,w=[];v==="matches"?x&&x.matches&&(w=x.matches):x&&x.excludeMatches&&(w=x.excludeMatches);let S=[...w];return b.forEach(T=>{S=Jt(T,S)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:S}}})},y=(b,v,C)=>{l(v),p(b),m(C)};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(da,{toggleModal:b=>{b.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(qa,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:h,onEditUrl:y})]}):null}function QN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(be,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function C1(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return q(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(tU,{}),d(eU,{}),d(JN,{}),d(ZN,{}),d(XN,{}),d($N,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function JN(){let[e,t,n,r,a]=Se(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),rt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),rt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ +`,gi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var q8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=",z8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",V8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",W8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function QO(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Ia(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Xh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Ne(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[b,y]=N({});q(()=>{n&&v().then(()=>g(!1))},[n]);let h=S=>{S?.target?.id===F+"-overlay"&&t()};function v(){return new Ia(n).listAll().then(A=>{c(A)}).catch(A=>r())}function C(S){if(S.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let A=F+"-config-"+zs()+".json";new Ia(n).uploadConfig(i,A).catch(D=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function x(S,A,D){S.preventDefault(),y({[D]:!0}),new Ia(n).getConfig(A).then(M=>{o(()=>({...M})),at(a("importSuccess"))}).catch(M=>{k.error(M),bt(a("importFail"))}).finally(()=>y({}))}function w(S,A){new Ia(n).getConfig(S).then(D=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(D,null,2))),M.setAttribute("download",A),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(D=>{k.error("download google config file failed",D),bt(a("downloadFail")+": "+D.message)})}function T(S){S.preventDefault(),o({...i,autoSync:!1}),Gi.revoke(n).then(()=>t())}return d("dialog",{id:F+"-overlay",onClick:h,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:S=>{S.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((S,A)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:D=>{D.preventDefault(),w(S.id,S.name)},class:"block truncate w-40 sm:w-auto",children:S.name.replace(F+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(S.modifiedTime).toLocaleString(),",\xA0",Tl(parseInt(S.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":b[A],disabled:b[A],onClick:D=>x(D,S.id,A),children:a("import_hint")}),d(QO,{accessToken:n,id:S.id,listAllFiles:v})]})]},"file"+A))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:T,disabled:m,children:a("revokeAuth")})]})]})})}function qa(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=ns([]);function ft(e){let[t,n]=N(null);return q(()=>{Qe().then(r=>{n(r),k.debug("current config",r)})},[]),q(()=>{Qe().then(r=>{n(r)})},[e]),t}function cn(e){let[t,n]=N(null);return q(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function G8(){let[e,t]=N(!1),n=tr();return q(()=>{X(!0)&&(!n||n=="0.0.0"||qa(n,"0.9.0")||t(!0))},[n]),[e,t]}function ma(){let[e,t]=N(null);return q(()=>{Rt().then(r=>{t(r)})},[]),[e,r=>{t(r),Dt(r)}]}function Lm(e){let[t,n]=N(null);return q(()=>{nt.get(pt,null).then(r=>{n(r?kt(r):!1)}).catch(r=>{n(!1)})},[]),q(()=>{n(kt(e))},[e]),t}var it=class extends co{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(k.error("ErrorBoundary",this.error,this.info),d(JO,{error:this.error,info:this.info})):this.props.children}};function JO({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var K8=k;function ZO(){let[e,t]=N(null);return q(()=>{Qe().then(n=>{t(n)})},[]),e}function e1(){let[e,t,n,r,a]=Ne(),i=ZO();Je(e,t);let{t:o,setLang:s}=O(),[u,l]=ma();if(!i)return null;return d(it,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!fs()&&d(g,{}),d(p,{config:i})]})});function c(){let f=h=>{h.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Po(),updatedAt:new Date().toISOString()}),Vs().catch(v=>{K8.error("clean local config error",v)}),da().catch(v=>{K8.error("clean cache error",v)}),at(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},b=h=>{t(()=>({...h}))},y=h=>{h.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let x=C.target,w=new FileReader;w.onload=function(){try{let T=JSON.parse(w.result);b(T),at(o("successImportConfig"))}catch(T){bt(`Invalid JSON ${T.message}`)}},w.readAsText(x.files[0])},v.click(),document.body.removeChild(v)};return d(le,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[$O,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:h=>{if(h.preventDefault(),fs()){let v=Se();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});po.saveAs(v,F+"-config-"+zs()+".txt")}},role:"button",children:[eN,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(!1),[x,w]=N("");q(()=>{if(tl()&&n){let R=localStorage.getItem(rl);if(localStorage.removeItem(rl),R){let L=globalThis.localStorage.getItem(Tf);k.debug("import_export","rawAuthInfoStr",L);let _={},U={},z="";if(L){globalThis.localStorage.removeItem(Tf);try{_=JSON.parse(L),U=_.state||{},z=_.access_token||""}catch(Y){k.error("parse state error",Y)}}if(z&&U&&(Gi.setAuthInfo({access_token:z}),k.debug("import_export","Google OAuth:",_),_)){let Y=_.state;k.debug("state",Y),Y?.mode==="auto"?(h(!0),I(z)):(C(!0),D(z))}}}},[n]);function T(){h(!0),G4({source:globalThis.location.href,mode:"auto"},!0).then(R=>{k.debug("import_export","Google OAuth:"+R),R!==null&&I(R)}).catch(R=>{R&&R.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(R)})}function S(){C(!0),b(!1),G4({source:globalThis.location.href,mode:"manual"},!0).then(R=>{k.debug("import_export","Google OAuth:"+R),R!==null&&D(R)}).catch(R=>{R&&R.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(R)})}function A(){w(""),T()}function D(R){w(R),C(!1),b(!0)}function M(R){h(!1),C(!1),b(!1),t({...e,autoSync:!1}),k.error("import_export","Google OAuth error:"+R),bt(o("authFail"))}function I(R){h(!0),k.debug("sync latest with drive",R,e),w(R),nm(R,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?at(o("successSyncConfig")):at(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{h(!1)})}function P(R){t({...e,autoSync:R.checked}),R.checked&&T()}return d(le,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:R=>{R.preventDefault(),T()},"aria-busy":y,href:"#",role:"button",children:[y?d(le,{}):Y8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:R=>{R.preventDefault(),S()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Xh,{onClose:()=>b(!1),authExpire:A,accessToken:x}):null]})}function p({config:f}){let b=J8(),[y,h]=N(!1),[v,C]=N(""),[x,w]=N(""),{t:T}=O();if(!b||!b.token)return null;let S=kt(b);async function A(){confirm(T("proRightOpenPro"))?window.open(gy):k.debug("\u53D6\u6D88\u4F1A\u5458")}async function D(){if(!S){A();return}try{if(y)return;h(!0),w("");let L=await Mm(b?.token,e,a),_="";switch(L){case"upload":{_=T("successSyncConfigToAccount");break}case"override":{_=T("successSyncConfigInAccount");break}default:_=T("syncConfigNoUpdate")}C(_)}catch(L){C(""),w(L.message)}finally{h(!1)}}let M=ue(L=>{if(!S){A();return}l({...u,proAutoSync:L})},[]),I=ue(L=>{if(!S){A();return}t(_=>({..._,proSyncAPIKey:L}))},[]),P=u?.proAutoSync!=!1,R=e?.proSyncAPIKey!=!1;return S||(P=!1,R=!1),d(le,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!P)},checked:P}),T("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!R)},checked:R}),T("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),D()},"aria-busy":y,href:"#",role:"button",children:[Y8," ",T("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&!v&&u?.accountLastSyncedAt&&S),children:T("lastSyncedAt",{date:LC(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:He()||S,children:d("span",{dangerouslySetInnerHTML:{__html:T("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!x,children:x})]})}}var XO=Bn(Mm,1e3);async function Mm(e,t,n){try{if(t===null)return"noupdate";let r=await Rt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ni(t.proSyncAPIKey,t);return await $h(e,c),await Dt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await Z8(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Uv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ni(t.proSyncAPIKey,t);return await $h(e,u),await Dt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||jv(n)&&XO(n.token,e,t)},[e,n])}function J8(){let[e,t]=N(null);return q(()=>{nt.get(pt,null).then(n=>{t(n)})},[t]),e}function Z8(e){return(location.href?.indexOf("popup.html")>0?_r:$)({responseType:"json",url:ct+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function $h(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?_r:$)({responseType:"json",url:ct+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var Y8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),$O=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),eN=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var tN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${F}-modal-overlay`&&r()},id:`${F}-modal-overlay`,children:d("div",{style:i,children:t})})},X8=tN;var t1="Arial",cc=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===t1.toLowerCase()?!0:$8(t1,t).join("")!==$8(e,t).join("")}catch{return!1}};function $8(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+t1,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function n1(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function eT(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",r1(t),"AES-GCM",!0,["encrypt","decrypt"]),a=r1(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:r1(n)},r,a);return nN(i)}catch{return Promise.reject("Encryption failed")}}function nN(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=R.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let U=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),U.enableAIContext&&(L.ai_assistant="ai_context"),U&&(U.provider&&(L.translation_service_provider=U.provider),n.translationService==="openai"&&U.provider==="custom"&&(U.apiUrl?U.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),U.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=Pd(v);let U=Id(v);L.install_week=`${U.year}${U.week}`}if(n.user){let U=Wy(n.user);U&&Object.keys(U).forEach(z=>{L[z]=U[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=S?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let U=n.url;try{let z=new URL(U);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),y&&(L.ab_group=y),L.campaign=h||"none",{...R,params:L}});if(i)return;M.forEach(async R=>{let L=await $({responseType:"text",url:R,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&rN(p,P),n.config.enablePerformanceReport&&oN(n,P)}catch(r){k.debug("report error",r)}}function rN(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};tT(r);let a=Date.now()+(Math.random()*100).toFixed(0);$({url:vl,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var aN=Date.now(),iN=["translate_page","translate_video_subtitle"];function oN(e,t){try{t.forEach(async n=>{if(!iN.includes(n.name)||e.config.performanceBlockUrls?.some(l=>dt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};tT(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-aN},s=await eT(JSON.stringify(o),wy,Ey);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);$({url:vl,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function tT(e){return e?.install_day&&(e.install_day=Rd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function a1(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function nT(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}function rT(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_20007_2576)",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),d("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),d("defs",{children:d("clipPath",{id:"clip0_20007_2576",children:d("rect",{width:"16",height:"16",fill:"white"})})})]})}function Pm(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function to({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=He(),[m,g]=N(!1),[p,f]=N(""),[b,y]=N(""),[h,v,C,x,w]=Te(me),T=Lm(i),S=P=>{v(R=>{let L={...R,[n]:P};return n==="translationService"&&(Be("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${P}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},A=ne(()=>{if(!t)return[];t.user=i??t.user;let P=Ls(t,n,l);return o?.length&&(P=P.filter(R=>o.find(L=>L==R.id))),P},[t,i,n,l,o]),D=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:P}=e,R=t[n],L=P?.[R],_=ec(L,t.localConfig.aiAssistants||[]);if(_&&L){let U=du(_);return{...L,...U,aiAssistant:_}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let P=t[n];return Ms(t,n,l,P)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(le,{children:[d("div",{class:"nav",children:[d(be,{title:r||u("service"),description:a||u("select translation service")}),d(sN,{selectService:S,translationServiceItems:A,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!T,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(uN,{verifiedErrorMessage:p}),d(lN,{ctx:t,curServiceConfig:D,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:b,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(o1,{config:e,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),d(s1,{curServiceItem:M,t:u}),d(u1,{curServiceItem:M,t:u}),d(i1,{currentTranslationServiceItem:M,t:u}),l1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),c1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!T,t:u})]})]})}function i1({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function sN({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:nd(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function uN({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function lN({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await tt(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await sa({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){k.debug("e.status",c.status),k.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){k.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function o1({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(n1,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function s1({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function u1({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function l1({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(le,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l,hidden:c,descriptionKey:m,disableTipText:g}=iT(a,e,t,n,o,i);return d("div",{class:"mt-2",hidden:c,children:[d(la,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:{...o,descriptionKey:m},value:u,disabled:l,onSetSettings:r,disableTipText:g,onChange:p=>{r(f=>{let b=f.translationServices||{},y=b[n.id]||{};return oT(e,y,o.name,p),{...f,translationServices:{...b,[n.id]:{...y,[o.name]:p}}}})},onFinish:()=>{at(i("saved"))}},o.name+n.id),d(cN,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function c1({isProUser:e,config:t,curServiceConfig:n,curServiceItem:r,setSettings:a,t:i,forceExpand:o}){if(!n||!t||!r?.optionalProps?.length||!a)return null;let s=r?.id.startsWith("custom-ai"),u=d(le,{children:[d("div",{children:r.optionalProps.map((l,c)=>{let{value:m,disabled:g,hidden:p,descriptionKey:f}=iT(e,t,n,r,l,i);return n?.aiAssistant&&!n?.aiAssistant?.enableRichTranslate&&l.name=="enableRichTranslate"?null:d("div",{class:"mt-2",hidden:p,children:d(la,{config:t,service:r?.id,disabled:g,field:{...l,descriptionKey:f},value:m,onSetSettings:a,onChange:b=>{a(y=>{let h=y.translationServices||{},v=h[r.id]||{};return oT(t,v,l.name,b),{...y,translationServices:{...h,[r.id]:{...v,[l.name]:b}}}})},onFinish:()=>{at(i("saved"))}},l.name+r.id+n.assistantId+n.fallbackAssistantId)},"service-item-optional-prop-"+l.name+c)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:l=>{l.preventDefault(),window.confirm(i("confirmResetToDefaultSettings"))&&a(m=>{let g=m.translationServices||{};setTimeout(()=>window.location.reload(),50);let p=g[r.id]||{};if(s){let f=["type","name","extends","apiUrl","APIKEY"];Object.keys(p).forEach(b=>{f.includes(b)||delete p[b]})}else p={};return{...m,translationServices:{...g,[r.id]:p}}})},children:i("resetToDefaultSettings")})]});return o?u:d(le,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[i("moreOptions"),"\xA0\u{1F449}"]}),u]})})}function cN({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=ue(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(la,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{at(a("saved"))}})}function aT(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function iT(e,t,n,r,a,i){let o="",s=a.descriptionKey,u=!1;if(!a)return{value:"",hidden:u,disabled:!1};let l=!1;n.aiAssistant&&["systemPrompt","prompt","multiplePrompt","subtitlePrompt","enableRichTranslate","maxTextGroupLengthPerRequestForSubtitle","maxTextGroupLengthPerRequest","maxTextLengthPerRequest"].includes(a.name)&&(l=!0);let c=n[a.name];return a.name=="enableRichTranslate"&&(t.translationMode=="dual"?c=n.dualEnableRichTranslate??n.enableRichTranslate:t.translationMode=="translation"&&(c=n.translationEnableRichTranslate??n.enableRichTranslate)),a.descriptionKey=="description.enableRichTranslate"&&t.translationMode=="dual"&&n.dualEnableRichTranslate!=null&&n.extends=="ai"&&(a.descriptionKey="description.aiDualEnableRichTranslate"),a.descriptionKey=="description.aiDualEnableRichTranslate"&&t.translationMode=="translation"&&(a.descriptionKey="description.enableRichTranslate"),a.name==="apiUrl"&&r?.id==="openai"&&n?.APIKEY?.startsWith("immersiveopenai_")&&(l=!0,c=`https://openai-api.${et}/v1/chat/completions`),a.name=="placeholderDelimiters"&&(a.default=n.placeholderDelimiters||a.default),a.name=="enableAIContext"&&n.aiAssistant&&(l=!0,o=i("enableAIContext.aiAssistantDisableTips")),a.name=="enableAIContext"&&(a.descriptionLink1=pl,e||(l=!0,c=!1,o=i("onlyProUseProTooltip",{1:py+"enableAIContext"}))),a.name=="enableAIContext"&&!ka(tr(),"1.12.1")&&(u=!0),a.name=="enableAIContext"&&(s=d(le,{children:[d("span",{dangerouslySetInnerHTML:{__html:i(a.descriptionKey||"",{1:a.descriptionLink1})}}),d(yt,{containerStyle:{display:"inline-flex"},text:i("description.enableAIContextTip"),tipStyle:{width:200},multiple:!0,enableMobile:!0,children:d(Pm,{})})]})),{value:c,hidden:u,disabled:l,descriptionKey:s,disableTipText:o}}function oT(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function sT(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function uT(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function lT(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function cT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function dT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function mT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function gT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var fT=tm();function Rm(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=cn(o);Je(t,n);let[u,l]=G8(),[c,m]=N(null);return q(()=>()=>{Kt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[d(dN,{}),d(TN,{config:o,user:c,setUser:m}),d(bN,{config:o}),d(to,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(mN,{config:o}),d(PN,{config:o}),d(yN,{config:o}),d(vN,{config:o}),d(CN,{config:o}),d(xN,{config:o}),d(gN,{config:o,ctx:s}),d(hN,{setSettings:n,config:o}),d(X8,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${F}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function dN(){let[e,t,n,r,a]=Te(me),i=ft(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Kl({...i,isShowContextMenu:!0}),a({...Po(),updatedAt:new Date().toISOString()}),Vs().catch(c=>{k.error("clean local config error",c)}),da().catch(c=>{k.error("clean cache error",c)}),at(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),da().then(()=>{at(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(cT,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(dT,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function mN({config:e}){let[t,n,r,a,i]=Te(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(be,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),X(!0)||setTimeout(()=>{Kl()},200)},children:Wi(Td,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function gN({config:e,ctx:t}){let{t:n}=O(),r=Ne(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>kN(l),[l]),f=ue(Bn((v,C)=>{a&&i(x=>{let w=x.translationThemePatterns||{};return{...x,translationTheme:C,translationThemePatterns:{...w,[C]:v}}})},400),[i]),b=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return q(()=>{m&&(Xs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(le,{children:[d(fN,{translationTheme:l,onChange:v=>{let C=v.target;b(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),h(),d(LN,{config:e}),d(pN,{translationThemes:Lf,selectedTheme:l,selectDisplay:b})]})})]});function y(){return d(le,{children:d("font",{class:tu(l,!1,[],!1).join(" "),children:d("font",{class:nu(l).join(" "),children:n("sampleTargetText")})})})}function h(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let x=m||{},w=`theme-${l}-${v.name}`,T=bx(w)||v.default||void 0,S=x[v.name]||T;return d(la,{config:e,field:v,value:S,onSetSettings:i,onChange:A=>{g(D=>(Xs(document,l,{...D,[v.name]:A},a.selectTranslationFont),{...D,[v.name]:A}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function pN({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:tu(a,!1,[],!1).join(" "),children:d("font",{class:nu(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function fN({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(be,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:Lf.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function hN({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(b=>{let y=b.translationThemePatterns||{},h=y[p]||{},v=h.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=Hn(g,C),{...b,translationThemePatterns:{...y,[p]:{...h,matches:C}}}})},c=(g,p)=>{e(f=>{let b=f.translationThemePatterns||{},y=b[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...b,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(ca,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ha,{urls:DN(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function bN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=l=>{eu({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=eo(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Wi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function yN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=hT(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(lc,{title:t("always languages"),description:t("always translate the following languages"),languages:fT,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=hT(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(lc,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:fT,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function CN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];if(g==="edit"){if(!h[c])return p;h[c]=l}return h=Hn(l,h),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Rt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],b=f.filter(h=>h.match!==p),y=!1;b.length!==f.length&&(y=!0),y&&Dt({...m,tempTranslationUrlMatches:[...b]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function xN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];return g==="edit"&&(v[c]=l),h=Jt(l,b),v=Hn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function hT(e){return{handleTranslationLanguagePatternSelected:ue((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=Hn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var d1=0,g1;async function bT(e){if(d1>60*10)return null;d1++,nt.refresh(),await tt(300);let t=await nt.get(pt,null);k.debug("loopCheckUser",d1,t),t?(clearTimeout(g1),e(t)):g1=setTimeout(bT.bind(null,e),1500)}function pT(e){let{user:t,lang:n}=e,r=He(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=AN(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`
${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):Vy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function TN({config:e,user:t,setUser:n}){let{t:r}=O(),a=He(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=Te(me),m=e.interfaceLanguage;q(()=>(nt.get(pt,null).then(b=>{b&&(n(b),SN(b.token).then(y=>{let h=y.data;h.token=b.token,nt.set(pt,h),n(h),Oo()}).catch(y=>{_l(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(g1)}),[]);let g=ue(b=>{b&&b.preventDefault&&b.preventDefault(),t?.token&&wN(t.token).finally(async()=>{await nt.remove(pt),await tt(200),await nt.refresh(),n(null),Oo()})},[t]),p=ue(async b=>{mx()&&(b&&b.preventDefault&&b.preventDefault(),EN(Ss),await nt.set(ml,!0),bT(y=>{Mm(y.token,o,s),n(y),p1?.close(),window.location.reload()}))},[n]),f=t?.avatar||q8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(pT,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Ln}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:gi})]}),d("div",{class:"",children:d("a",{href:`${Li}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:gi})]}),d(pT,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Li,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:ry,onClick:p,children:r(a?"loginForSafari":"login")})]})}function SN(e){return $({responseType:"json",url:ct+"v1/user",method:"get",headers:{token:e}})}function wN(e){return $({responseType:"json",url:ct+"v1/user/logout",method:"delete",headers:{token:e}})}var p1=null;function EN(e){let r=screen.width/2-230,a=screen.height/2-640/2;return p1=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),p1}function AN(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function kN(e){let t=[];return cl[e]&&(t=t.concat(cl[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function DN(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var m1="";function LN({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(MN,{config:e,isOpen:n})]})}function MN({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);q(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(b=>cc(b,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(b=>b===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=Te(me),g=p=>{p!==m1&&!cc(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let b=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&b&&f.translationThemePatterns&&f.translationThemePatterns[b]&&(y=f.translationThemePatterns[b]),Xs(document,b,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(m1))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let b=n(`font.${p}`);b.startsWith("font.")&&(b=p);let y=p=="none"?m1:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:b},"locale"+f)})})]})}function PN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function rn(e){return we.ASSETS_BASE_URL+e}var Im=!1;function f1(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=cn(o);Je(t,n);let{t:u,lang:l}=O(),c=s&&Ds(s,"translationService",l)||[],m=_o(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),b=Ms(s,"translationService",l,f);return d(FN,{service:f,currentTranslationServiceItem:b,ctx:s})},[m,c]);!Im&&m==="#services"&&(Im=!0),q(()=>()=>Im=!1,[]),q(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Fl(8)}`;if(s?.config.translationServices[f]){p();return}await n(b=>{let y=b.translationServices||{},h=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${h+2}`,{...b,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(bl,"_blank"),children:d(nT,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(bl,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(RN,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function RN({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=Te(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!ri.find(I=>I==e.id),[e]),m=ue(I=>{i(P=>{let R=P.translationServices?.[e.id]||{};return{...P,translationServices:{...P.translationServices,[e.id]:{...R,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},b=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=He(),h=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,h,e.id,e.ok]),x=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!T||i(P=>{Be("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${P.translationService}_${e.id}`}}],t);let R={...P,translationService:e.id};return R.translationServiceChangedbyUserAt=new Date().toISOString(),R}))},w=t.translationService===e.id,T=w||t4(l,r),S=n("translationServices."+e.id),A=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:F+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:F+"-link"}}),D=e.id;return v&&(S=`${e.name||""} (${n("translationServices.custom-ai")})`,A="",D="custom-ai"),d("div",{class:"service-container","data-selected":w?"true":"false","data-configed":T,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:rn(`images/${D}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:S})]}),d(yt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:T,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:A}}),b&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:x,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),T&&(I=!0),I}}function IN(e,t){let[n,r]=N(!1),[a]=Te(me),[i,o]=N("");return[ue(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await sa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function FN({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Ne(),[a,i,o,s,u]=r,l=ft(a),{t:c}=O(),m=Lm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,x=t?.id||"",w=C?.[x],T=ec(w,n.localConfig.aiAssistants||[]);if(T&&w){let S=du(T);return{...w,...S,aiAssistant:T}}return w?{...w}:{}}return null},[l,n,t,e]),[p,f,b]=IN(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,h=g?.type,v=c("translationServices."+e)+" "+c("setting");if(h){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(le,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!Im){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&b==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),b&&b!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:b}})}),y&&d("article",{children:[d(o1,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(s1,{curServiceItem:t,t:c}),d(u1,{curServiceItem:t,t:c}),d(i1,{currentTranslationServiceItem:t,t:c}),l1({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),c1({isProUser:!!m,config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(aT,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ga(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var BN=xn+"assets/uploads/default-oade4Y.png";function vT({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=ue(()=>m(BN),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:b}=xm(),y=Ne(),[h,v]=y;Je(h,v);let C=ft(h);q(()=>{Ah(e).then(w=>{a(w),m(w.avatar),o({name:w.i18n[t]?.name||w.name,description:w.i18n[t]?.description||w.description,details:w.i18n[t]?.details||w.details}),u(lt.sanitize(w.i18n[t]?.details||w.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let x=p?.some(w=>w.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:w=>{if(w.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(yt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:ci(r),children:d(h1,{assistantID:e,enable:ci(r),handleInstall:f,operateLoading:b,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),x&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(b1,{aiAssistant:r,isInstall:x}),C&&d(le,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(le,{children:_N.map((w,T)=>d("div",{className:"mt-2",children:d(la,{service:"ai",config:C,field:w,value:r[w.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},T)},"custom-assistants-prop-"+T))})]})]})}function h1({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=Ce(null);return q(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(gT,{}):d(mT,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${F}-loading-spinner`})]})]})})}function b1({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Nd(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...b],h=u[p];if(e.matches?.find(C=>C===h))y=yT(e.matches||[],b,[h]),y.push(g);else{let C=y.findIndex(x=>x.endsWith(h));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,b)=>{if(b==="edit")return l(g,p);a(y=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...h],C=e.matches?.find(w=>w===g),x=h.find(w=>w.endsWith(g));if(C&&x){if(!x.startsWith("[-]"))return;v=v.filter(w=>w!==x)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=yT(e.matches||[],b,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(Ho,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function yT(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var _N=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function CT(e){let t=Ne(),[n,r]=t;Je(n,r);let a=ft(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=NN({id:e.assistantID,userConfig:n,setSettings:r}),l=ue(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(le,{children:ON.map((c,m)=>d("div",{class:"mt-2",children:d(la,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{at(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(b1,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var ON=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function NN({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=ue(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=ue(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var Fm=!1,UN=xn+"assets/uploads/default-oade4Y.png";function y1(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=HN(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let x=v.priority||1e3,w=C.priority||1e3;return x-w})),[o,e]);q(()=>{(async()=>{try{r(!0);let v=await Eh(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Ne(),[c,m]=l;Je(c,m);let g=ft(c),p=cn(g),f=p?.config.interfaceLanguage||"zh-CN",b=_o(),{t:y}=O();q(()=>{wh(void 0,void 0,!0)},[]),!Fm&&b==="#ai"&&(Fm=!0),q(()=>()=>Fm=!1,[]);let h=ne(()=>{if(!b.startsWith("#ai/"))return null;let v=b.slice(4);return v.startsWith("custom")?d(CT,{assistantID:v}):d(vT,{assistantID:v,lang:f,hasAssistantsRoute:Fm})},[b,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(it,{children:d(me.Provider,{value:l,children:[b==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ga,{image:rn("images/assistant_intro.png"),nightImage:rn("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${F}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(jN,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${F}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),h]})})}function jN({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=ue(()=>i(UN),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=xm();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(yt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:ci(e),children:d(h1,{assistantID:e.id,enable:ci(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function HN(){let e=Ce(!1),{t}=O(),[n,r]=Ne();Je(n,r);let a=n?.customAiAssistants||[];return q(()=>{!n||e.current||(async()=>{try{let s=(await tc()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),No("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return k.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Fl(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var ar={};H0.forEach(e=>{e.labelKey&&(ar[e.key]=e.labelKey)});function v1(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let[o,s]=N(null),{t:u}=O();if(q(()=>{Qe().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(qN,{config:l}),d(zN,{config:l,ctx:o}),d(VN,{config:l}),d(to,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(WN,{config:l}),d(GN,{config:l}),d(YN,{config:l}),d(KN,{config:l})]})})}function qN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d(le,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${xn}videos/input-translation-demo-202307044.mp4`:`${xn}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function zN({config:e,ctx:t}){let[n,r,a,i,o]=Te(me),{t:s}=O(),u=c=>{r(m=>({...m,inputTargetLanguage:c}))};if(!e)return null;let l=eo(t.inputTranslationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:s("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?s("inputTargetLanguageDescriptionForNoneKey"):s("inputTargetLanguageDescription",{startingKey:ar[e.inputStartingTriggerKey]?s(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),u(c.target.value)},children:Wi(l,12,e.interfaceLanguage).filter(c=>c!=="auto").map((c,m)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Ot(c,e.interfaceLanguage)},"language"+m))})]})}function VN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function WN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(be,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:H0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function GN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:H0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function KN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),[s,u]=N(!1),l=h=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(h,v,C,x)=>{l(C),n(w=>{let T=w.inputTranslationUrlPattern,S=[],A=[];T&&T.matches&&T.excludeMatches&&(S=T.matches,A=T.excludeMatches);let D=[...S],M=[...A];return x==="edit"&&(C==="matches"?D[v]=h:M[v]=h),C==="matches"?(D=Hn(h,D),M=Jt(h,A)):(D=Jt(h,S),M=Hn(h,M)),{...w,inputTranslationUrlPattern:{...w.inputTranslationUrlPattern,matches:D,excludeMatches:M}}})},b=(h,v)=>{n(C=>{let x=C.inputTranslationUrlPattern,w=[];v==="matches"?x&&x.matches&&(w=x.matches):x&&x.excludeMatches&&(w=x.excludeMatches);let T=[...w];return h.forEach(S=>{T=Jt(S,T)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:T}}})},y=(h,v,C)=>{l(v),p(h),m(C)};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:h=>{h.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(ca,{toggleModal:h=>{h.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ha,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:b,onEditUrl:y})]}):null}function YN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(be,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function C1(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return q(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(eU,{}),d($N,{}),d(QN,{}),d(JN,{}),d(ZN,{}),d(XN,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function QN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),at(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),at(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] - }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function ZN(){let[e,t,n,r,a]=Se(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),rt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),rt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function XN(){let[e,t,n,r,a]=Se(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Po()),Vs().catch(l=>{k.error("clean local config error",l)}),ma().catch(l=>{k.error("clean cache error",l)}),rt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),rt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function $N(){let[e,t,n,r,a]=Se(me),i=ft(e),o=cn(i),{t:s}=O(),[u,l]=N("");return q(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=Ku.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Mn();if(!g){p.customAiAssistants=[];let x=p.aiAssistants||[];p.aiAssistants=x.filter(w=>!w.custom),_r(p),rt(s("saved"));return}let f=Ku.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],b=p.customAiAssistants||[],v=y.findIndex(x=>x.id===f.id);v<0?y.push(f):y[v]=f;let C=b.findIndex(x=>x.id===f.id);C<0?b.push(f):b[C]=f,p.customAiAssistants=b,p.aiAssistants=y,_r(p),rt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function eU(){let[e,t,n,r,a]=Se(me),i=ft(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Oo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:ml})}})]})}function tU(){let[e,t,n,r,a]=Se(me),i=ft(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var nU="buildinConfig",rU={},_m=Tx(nU,rU);function TS(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var aU=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},iU=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},oU=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},sU=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},uU=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},lU=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:nl+"releases",children:e})]})},cU=({config:e})=>{let t=Ro(e),{t:n}=O();return t.includes("Preview")?d("p",{class:"text-sm",children:n("theLocalExtensionUpdatePreview")}):d("p",{class:"text-sm",children:n("theLocalExtensionIsUpToUpdate")})},dU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function x1(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=_m(),[c,m]=N(null),[g,p]=N(""),[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(null),[x,w]=N(null),[S,T,A,D]=Oe();Ze(S,T);let[M,I]=N(!1),[P,R]=N(!1),L=nr(),_=xn+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",U=xn+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",z=xn+"assets/uploads/full-intro-en-NlkG5c.mp4",Y={"zh-CN":{poster:xn+"static/official-static/assets/price/video-poster-zh-Hans.png",src:_},"zh-TW":{poster:xn+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:U},en:{poster:xn+"static/official-static/assets/price/video-poster-en.png",src:z}},ee=Y.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?ee=Y["zh-TW"]:r.startsWith("zh")&&(ee=Y["zh-CN"]);let Re=!0;He()&&v&&(Re=v.generalRule.showSponsorOnSafari);let xe=async()=>{p("");let Z=o;if(o===null)try{let ce=await Or({url:ki});ce?(s(ce),Z=ce,h(!0)):(p(n("unknownError")),m(null))}catch(ce){m(null),p(ce.message);return}Z!==null?(l(Z),m(!1),t(Z.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};q(()=>{Je().then(Z=>{R(Z.interfaceLanguage!=="zh-TW");let ce=Z.buildinConfigUpdatedAt;C(Z);let he=new Date(ce);t(ce),Or({url:ki}).then(pe=>{let ke=pe.minVersion,Ve=L;s(pe);let J=pe.releaseVersion||pe.resaleVersion;if(J&&(za(Ve,J)?w(!0):w(!1)),za(Ve,ke)){let Ee=pe.buildinConfigUpdatedAt;new Date(Ee)>he?(m(!0),xe()):m(!1)}else b(!0),m(null)}).catch(pe=>{m(null),p(pe.message)})}),q8().then(Z=>{i(Z)})},[]),q(()=>{Je().then(Z=>{C(Z),sa(Z)})},[S,e]);let H=Z=>{T(ce=>{let he=!ce.alpha;return he?rt(n("enableAlphaSuccess")):rt(n("disableAlphaSuccess")),{...ce,alpha:he}})},W=Z=>{Z.preventDefault(),Z.stopPropagation(),I(!0),ma().then(()=>{I(!1),rt(n("cleanSuccess")),i("0 B")}).catch(ce=>{I(!1),bt(ce.message)})},te=Z=>{T(ce=>({...ce,cache:Z}))},Me=Z=>{T(ce=>({...ce,enabled:Z}))},ve="aboutIntro";Re||(ve="aboutIntroWithoutSponsor");let $e=new Date().getFullYear();return v?d(at,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:TS(7)(H),class:`text-lg ${F}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${F}-no-select`,onClick:Z=>{Z.preventDefault(),lr(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:Ro(v)}),x===!1&&d(lU,{latestVersion:o?.releaseVersion}),x===!0&&d(cU,{config:v}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Me(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{te(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!X(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:W,children:n("cleanCache")})]}),g?d(dU,{handleSyncing:xe,message:g,date:e||""}):y?d(uU,{minVersion:o.minVersion}):c===null?d(oU,{}):c===!0?d(sU,{}):f?d(iU,{date:e}):d(aU,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+Co,5:`https://${Co}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${Co}_tw`,10:"https://x.com/immersivetrans"})}}),P&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:xn+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:xn+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:nl+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ml,onClick:Z=>{Z.preventDefault(),lr(ml)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:Z=>{Z.preventDefault(),lr(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:Z=>{Z.preventDefault(),lr(Q)},children:n("projectHomepage")})}),Re&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:ee.poster,src:ee.src,style:"border-radius: 38px;"})})]})]}),P&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${Co}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",$e," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var mU=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(gU,{...e})]})};function gU(e){let{onAddTag:t,tags:n}=e,r=Ce(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(le,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var wS=mU;var pU=nm();function S1(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=cn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Ze(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=h=>l(`${p}.translation.${h}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(at,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(hU,{config:o,ctx:s}),d(bU,{config:o}),d(fU,{config:o,setSettings:n}),d(yU,{ctx:s}),d(vU,{ctx:s}),d(CU,{config:o}),d(SU,{config:o}),d(xU,{config:o}),d(TU,{config:o}),d(RU,{config:o}),d(wU,{config:o}),d(PU,{config:o}),d(MU,{}),d(EU,{config:o}),d(AU,{config:o}),d(kU,{config:o}),d(DU,{config:o,ctx:s,...m(u,"translationModeLang")}),d(LU,{config:o,...m(u,"translationModeUrl")})]})})})}function fU(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=ue(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(le,{children:[d("div",{class:"nav",children:d(be,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(wS,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function hU({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=Se(me);return d("div",{class:"nav",children:[d(be,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function bU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function yU({ctx:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function vU({ctx:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(be,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function CU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function xU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function SU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return X(!0)?null:d("div",{class:"nav",children:[d(be,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Yl({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function TU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function wU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function EU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function AU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),[s]=_m();return s.generalRule?d("div",{class:"nav",children:[d(be,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function kU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function DU({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=Se(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:N4(e),[t,e,n]),p=(f,h)=>{s(y=>{let b=y.translationModeLanguagePattern,v=b?.[n]||[],C=b?.[m]||[],x=[...v];f?x=Array.from(new Set([...x,h])):x=x.filter(A=>A!==h);let w=C.filter(A=>A!==h),S={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:x,[m]:w}},T=IC(e,h);return T&&(S.translationLanguagePairs=T),S})};return d(cc,{title:r,description:a,languages:pU,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function LU({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=Se(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,h,y,b)=>{o(v=>{let C=v.translationModeUrlPattern,x=C?.[t]||[],w=C?.[c]||[],S=[...x];b==="edit"?S[h]=f:S=Array.from(new Set([...S,f]));let T=w.filter(A=>A!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:S,[c]:T}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(Ho,{title:n,description:r,urls:g,onDeleteUrl:(f,h)=>{o(y=>{let b=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[h]:b}}})},onSubmitAddUrl:m,type:t})}function MU(){let[e,t]=ga(),{t:n}=O();return zy()?null:d("div",{class:"nav",children:[d(be,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function PU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function RU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(be,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function T1(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),s=cn(o),{t:u}=O();return s?d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${Co}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}var hu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Om=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function Nm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Um(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var ES=[];function jm(e,t){let[n,r]=N(ES);return q(()=>{if(n.length||!e.length)return;let i=e.filter(o=>dc(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),ES=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function w1(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var bu=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],Hm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function E1(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let{t:o}=O(),s=ft(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=Od(s.supportedVideoSubtitleSites),c=`
-
${o("feedbackOrMore")} + }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function JN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),at(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),at(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function ZN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Po()),Vs().catch(l=>{k.error("clean local config error",l)}),da().catch(l=>{k.error("clean cache error",l)}),at(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),at(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function XN(){let[e,t,n,r,a]=Te(me),i=ft(e),o=cn(i),{t:s}=O(),[u,l]=N("");return q(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=Ku.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Mn();if(!g){p.customAiAssistants=[];let x=p.aiAssistants||[];p.aiAssistants=x.filter(w=>!w.custom),Br(p),at(s("saved"));return}let f=Ku.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],h=p.customAiAssistants||[],v=y.findIndex(x=>x.id===f.id);v<0?y.push(f):y[v]=f;let C=h.findIndex(x=>x.id===f.id);C<0?h.push(f):h[C]=f,p.customAiAssistants=h,p.aiAssistants=y,Br(p),at(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function $N(){let[e,t,n,r,a]=Te(me),i=ft(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Oo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:dl})}})]})}function eU(){let[e,t,n,r,a]=Te(me),i=ft(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var tU="buildinConfig",nU={},Bm=xx(tU,nU);function xT(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var rU=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},aU=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},iU=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},oU=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},sU=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},uU=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:nl+"releases",children:e})]})},lU=({config:e})=>{let t=Ro(e),{t:n}=O();return t.includes("Preview")?d("p",{class:"text-sm",children:n("theLocalExtensionUpdatePreview")}):d("p",{class:"text-sm",children:n("theLocalExtensionIsUpToUpdate")})},cU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function x1(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=Bm(),[c,m]=N(null),[g,p]=N(""),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[x,w]=N(null),[T,S,A,D]=Ne();Je(T,S);let[M,I]=N(!1),[P,R]=N(!1),L=tr(),_=xn+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",U=xn+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",z=xn+"assets/uploads/full-intro-en-NlkG5c.mp4",Y={"zh-CN":{poster:xn+"static/official-static/assets/price/video-poster-zh-Hans.png",src:_},"zh-TW":{poster:xn+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:U},en:{poster:xn+"static/official-static/assets/price/video-poster-en.png",src:z}},ee=Y.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?ee=Y["zh-TW"]:r.startsWith("zh")&&(ee=Y["zh-CN"]);let Re=!0;He()&&v&&(Re=v.generalRule.showSponsorOnSafari);let xe=async()=>{p("");let Z=o;if(o===null)try{let ce=await _r({url:ki});ce?(s(ce),Z=ce,b(!0)):(p(n("unknownError")),m(null))}catch(ce){m(null),p(ce.message);return}Z!==null?(l(Z),m(!1),t(Z.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};q(()=>{Qe().then(Z=>{R(Z.interfaceLanguage!=="zh-TW");let ce=Z.buildinConfigUpdatedAt;C(Z);let he=new Date(ce);t(ce),_r({url:ki}).then(pe=>{let ke=pe.minVersion,ze=L;s(pe);let J=pe.releaseVersion||pe.resaleVersion;if(J&&(qa(ze,J)?w(!0):w(!1)),qa(ze,ke)){let Ee=pe.buildinConfigUpdatedAt;new Date(Ee)>he?(m(!0),xe()):m(!1)}else h(!0),m(null)}).catch(pe=>{m(null),p(pe.message)})}),j8().then(Z=>{i(Z)})},[]),q(()=>{Qe().then(Z=>{C(Z),ia(Z)})},[T,e]);let H=Z=>{S(ce=>{let he=!ce.alpha;return he?at(n("enableAlphaSuccess")):at(n("disableAlphaSuccess")),{...ce,alpha:he}})},W=Z=>{Z.preventDefault(),Z.stopPropagation(),I(!0),da().then(()=>{I(!1),at(n("cleanSuccess")),i("0 B")}).catch(ce=>{I(!1),bt(ce.message)})},te=Z=>{S(ce=>({...ce,cache:Z}))},Me=Z=>{S(ce=>({...ce,enabled:Z}))},ve="aboutIntro";Re||(ve="aboutIntroWithoutSponsor");let $e=new Date().getFullYear();return v?d(it,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:xT(7)(H),class:`text-lg ${F}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${F}-no-select`,onClick:Z=>{Z.preventDefault(),cr(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:Ro(v)}),x===!1&&d(uU,{latestVersion:o?.releaseVersion}),x===!0&&d(lU,{config:v}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Me(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{te(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!X(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:W,children:n("cleanCache")})]}),g?d(cU,{handleSyncing:xe,message:g,date:e||""}):y?d(sU,{minVersion:o.minVersion}):c===null?d(iU,{}):c===!0?d(oU,{}):f?d(aU,{date:e}):d(rU,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+Co,5:`https://${Co}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${Co}_tw`,10:"https://x.com/immersivetrans"})}}),P&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:xn+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:xn+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:nl+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:dl,onClick:Z=>{Z.preventDefault(),cr(dl)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:Z=>{Z.preventDefault(),cr(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:Z=>{Z.preventDefault(),cr(Q)},children:n("projectHomepage")})}),Re&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:ee.poster,src:ee.src,style:"border-radius: 38px;"})})]})]}),P&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${Co}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",$e," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var dU=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(mU,{...e})]})};function mU(e){let{onAddTag:t,tags:n}=e,r=Ce(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(le,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var TT=dU;var gU=tm();function T1(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=cn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Je(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=b=>l(`${p}.translation.${b}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(it,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(fU,{config:o,ctx:s}),d(hU,{config:o}),d(pU,{config:o,setSettings:n}),d(bU,{ctx:s}),d(yU,{ctx:s}),d(vU,{config:o}),d(xU,{config:o}),d(CU,{config:o}),d(TU,{config:o}),d(PU,{config:o}),d(SU,{config:o}),d(MU,{config:o}),d(LU,{}),d(wU,{config:o}),d(EU,{config:o}),d(AU,{config:o}),d(kU,{config:o,ctx:s,...m(u,"translationModeLang")}),d(DU,{config:o,...m(u,"translationModeUrl")})]})})})}function pU(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=ue(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(le,{children:[d("div",{class:"nav",children:d(be,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(TT,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function fU({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me);return d("div",{class:"nav",children:[d(be,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function hU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function bU({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function yU({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(be,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function vU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function CU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function xU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return X(!0)?null:d("div",{class:"nav",children:[d(be,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Kl({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function TU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function SU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function wU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function EU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),[s]=Bm();return s.generalRule?d("div",{class:"nav",children:[d(be,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function AU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function kU({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=Te(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:N4(e),[t,e,n]),p=(f,b)=>{s(y=>{let h=y.translationModeLanguagePattern,v=h?.[n]||[],C=h?.[m]||[],x=[...v];f?x=Array.from(new Set([...x,b])):x=x.filter(A=>A!==b);let w=C.filter(A=>A!==b),T={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:x,[m]:w}},S=PC(e,b);return S&&(T.translationLanguagePairs=S),T})};return d(lc,{title:r,description:a,languages:gU,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function DU({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=Te(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,b,y,h)=>{o(v=>{let C=v.translationModeUrlPattern,x=C?.[t]||[],w=C?.[c]||[],T=[...x];h==="edit"?T[b]=f:T=Array.from(new Set([...T,f]));let S=w.filter(A=>A!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:T,[c]:S}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(Ho,{title:n,description:r,urls:g,onDeleteUrl:(f,b)=>{o(y=>{let h=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[b]:h}}})},onSubmitAddUrl:m,type:t})}function LU(){let[e,t]=ma(),{t:n}=O();return Hy()?null:d("div",{class:"nav",children:[d(be,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function MU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function PU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(be,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function S1(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),s=cn(o),{t:u}=O();return s?d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${Co}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}var hu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],_m=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function Om(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Nm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var ST=[];function Um(e,t){let[n,r]=N(ST);return q(()=>{if(n.length||!e.length)return;let i=e.filter(o=>cc(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),ST=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function w1(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var bu=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],jm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function E1(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let{t:o}=O(),s=ft(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=_d(s.supportedVideoSubtitleSites),c=``,m=[...l.map((g,p)=>` ${g.name} ${p!==l.length-1?", ":""} - `),c].join("");return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(pa,{image:rn("images/dual_subtitle_intro.png"),nightImage:rn("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(FU,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(to,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(IU,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(BU,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function IU(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function FU(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(le,{children:[d("div",{class:"youtube-header",children:[d(NU,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(be,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(lc,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:fl})}),d(lc,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("onlyProUseProTooltip",{1:fl}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function BU(e){let{t}=O(),[n,r]=N(!1),a=OU(e.subtitleRule,t,n),i=ue(async()=>{let s=(await Ws())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return Hm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(le,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(be,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(_U,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function _U(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(be,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var OU=(e,t,n)=>{let r=Um(t),a=jm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:hu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:hu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:bu,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:bu,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Om,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:Nm(t),selectKey:e.textShadowType}]};function NU(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var AS=ju({presets:[Xc(),e0()]});var UU=1e5;var kS=Date.now();async function pi(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=jU(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:m,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,h=null;async function y(S){let{container:T,onFrame:A,onIgnoreElement:D,id:M,isLongHtml:I}=S,P=document.createTreeWalker(T,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let U=L(_);return U==NodeFilter.FILTER_ACCEPT?It.mark(_,M,g):YU(_,U,n)&&v(),U}),R=T;if(L(R)===NodeFilter.FILTER_REJECT)return;for(It.mark(R,M,g);R;){if(a?.interruptEffectDOM)return;let _=Date.now()-kS;if(_>50&&(k.debug("taskTime",_,T),kS=Date.now(),await tt(0)),s&&s.length>0){let{currentNode:U,isMatchedSelection:z}=b(P,R,s);if(U)R=U;else break;if(!z)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let U=R;if(U.nodeName==="IFRAME"){A&&A(U),v(),A1(p,!0),R=P.nextNode();continue}U.nodeType===Node.ELEMENT_NODE&&(o&&k1(U,o),c&&L1(U,c));let z=Ma(U,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},U.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&U.childNodes.length==1&&U.childNodes[0].nodeType===Node.TEXT_NODE&&U.innerText?.length==1&&U?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),qt(U,i)&&!z){C(U);let Re=null;for(;!(Re=P.nextSibling())&&P.parentNode(););R=Re;continue}let Y=Io(U);if(!DS(p,U)||z){v(U);let Re=z?U:U.parentElement;Re&&Re.childNodes.length>0&&x(p,Re,Re.immersiveTranslateComputedStyle||null)}Y&&U.shadowRoot?.mode==="open"&&(z?A?.(U.shadowRoot):y({...S,container:U.shadowRoot})),U.nodeType===Node.ELEMENT_NODE&&qt(U,n.likePreSelectors)&&u&&(I||VU(U,n.advanceTransformPreTagNewLine))}else if(R.nodeType===Node.TEXT_NODE)C(R);else throw new Error("should not be here");R=P.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bo(_)){if(c){let ee=Object.keys(c);if(ee.length>0&&qt(_,ee))for(let xe of ee){let H=c[xe];if(_.matches(xe)){let W=c[xe],te=Object.keys(W);for(let Me of te){let ve=W[Me];_.getAttribute(Me)!==ve&&(ve===null?_.removeAttribute(Me):_.setAttribute(Me,ve))}break}}}if(!S.force&&It.isMarked(_,M)||MC(_,M)||qm(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!qi(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ee=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ee,D1(ee))return D&&D(_),NodeFilter.FILTER_REJECT;let Re=Ma(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ee||null);if(_.isBlock=Re,qt(_,i)&&Re)return NodeFilter.FILTER_REJECT}let U=_.getBoundingClientRect(),{width:z,height:Y}=U;return _.nodeName==="IMG"&&(z>48&&Y>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&Y>0&&m!==!1&&(_.setAttribute("width",z),_.setAttribute("height",Y))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||Y>0&&Y<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let U=_.textContent?.trim();if(!U)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:Y,height:ee}=z.getBoundingClientRect();if(Y>0&&Y<4||ee>0&&ee<4)return NodeFilter.FILTER_REJECT}return l>0&&U.length>=l&&WU(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await y(e)}catch(S){k.error(S)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&v();function b(S,T,A){let D=T.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(T))if(f=!1,T&&T.nodeType===Node.ELEMENT_NODE)if(mc(T,A))f=!0,h=T,v(),x(p,h,D);else return f=!1,T=S.nextNode(),{currentNode:T,isMatchedSelection:f};else return f=!1,T=S.nextNode(),{currentNode:T,isMatchedSelection:f}}else if(T&&T.nodeType===Node.ELEMENT_NODE)if(mc(T,A))f=!0,h=T,v(),x(p,h,D);else return f=!1,T=S.nextNode(),{currentNode:T,isMatchedSelection:f};else return f=!1,T=S.nextNode(),{currentNode:T,isMatchedSelection:f};return{currentNode:T,isMatchedSelection:!0}}function v(S){let T=p.flatNodes.length-1;if(n.skipTrailTextRegex&&T>0)for(let D=T;D>=0;D--){let I=p.flatNodes[D]?.textContent?.trim()||"";if(!I||new RegExp(n.skipTrailTextRegex).test(I)){p.flatNodes.splice(D,1);continue}break}if(S&&S.nodeName==="BR"){if(S.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=QU(S,n);let D=[...p.flatNodes],M=p.flatNodes.filter(I=>S.parentNode?.contains(I));M.length>0&&D.length!=M.length&&(p.flatNodes=M,p.flatNodes.original=D)}let A=zU(p,r,n);A&&t&&t(A),A1(p)}function C(S){if(!DS(p,S)){v(),A1(p);let T=S.parentNode;T&&x(p,T,T.computedStyle)}p.flatNodes.push(S)}function x(S,T,A){S.commonAncestorContainer=T;let D=w(A);S.isPreWhitespace=D}function w(S){return S&&S.whiteSpace&&S.whiteSpace.startsWith("pre")||S&&S.whiteSpace==="break-spaces"||!1}}function DS(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Io(t));let r=qU(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function jU(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function HU(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function k1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function qU(e){return e&&e._currentStacks?e._currentStacks.some(t=>Io(t)):!1}function zU(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Xd(r,a,n);o||(o=a);let s=[];for(let p of r){let f=HU(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>UU){k.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:OC(o)}}else return null}function A1(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function D1(e){return e.display==="none"}var It={_marked_key:z6,isMarked(e,t){return H4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Io(e)))return ZC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)It.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Io(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Io(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function VU(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let m=document.createElement("br");m.setAttribute("data-imt","1");let g=document.createTextNode(c);l.parentNode.insertBefore(m,l.nextSibling),l.parentNode.insertBefore(g,m.nextSibling),l=g,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=cr?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function WU(e,t,n){let r=e.textContent||"",a=BC(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=KC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function MS(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let h=c[f];if(f==="translate"&&h==="no"){let b=p.innerText||p.textContent||"";if(!b.trim()||KU(p,a,i,o)||!QC(b,n,r))continue}p.getAttribute(f)!==h&&(h===null?p.removeAttribute(f):p.setAttribute(f,h))}})}}function L1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function qm(e,t){return GU(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function GU(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Jd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function mc(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function KU(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&qm(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if($d(o,t,n))return!0}}return!1}function YU(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ma(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function QU(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ma(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function PS(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new C0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=ZU(u.content,t),n&&$U(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:NC(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function RS(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function JU(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` -`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=JU(o,20),u=XU(o),l=null;for(let c of u){let m=document.body.querySelectorAll(c);if(m.length&&(m.forEach(g=>{let p=g.textContent?.trim().length||0,f=l?.textContent?.trim().length||0;p>f&&(s?g.innerText?.includes(s)&&(l=g):l=g)}),l)){i.push(l);break}}}),!!i.length)return Xd(i,document.body,t)}function XU(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function $U(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function IS(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(N0)||M1(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var gc="";async function M1(e){let t=document.title;if(!t||t.includes(N0))return;gc!==t&&(gc=t);let n=await ze({text:t,pageLangs:[Lt(),"en"]});if(!Ks(e,n))try{let r=await gr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=gc,document.title=r.text+N0+gc)}catch(r){throw r}}function FS(e){e.rule.isTranslateTitle&&(document.title=gc)}function yu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function zm(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?O4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + `),c].join("");return d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ga,{image:rn("images/dual_subtitle_intro.png"),nightImage:rn("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(IU,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(to,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(RU,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(FU,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function RU(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function IU(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(le,{children:[d("div",{class:"youtube-header",children:[d(OU,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(be,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(uc,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:pl})}),d(uc,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("onlyProUseProTooltip",{1:pl}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function FU(e){let{t}=O(),[n,r]=N(!1),a=_U(e.subtitleRule,t,n),i=ue(async()=>{let s=(await Ws())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return jm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(le,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(be,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(BU,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function BU(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(be,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var _U=(e,t,n)=>{let r=Nm(t),a=Um(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:hu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:hu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:bu,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:bu,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:_m,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:Om(t),selectKey:e.textShadowType}]};function OU(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var wT=ju({presets:[Zc(),$c()]});var NU=1e5;var ET=Date.now();async function pi(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=UU(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:m,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,b=null;async function y(T){let{container:S,onFrame:A,onIgnoreElement:D,id:M,isLongHtml:I}=T,P=document.createTreeWalker(S,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let U=L(_);return U==NodeFilter.FILTER_ACCEPT?It.mark(_,M,g):KU(_,U,n)&&v(),U}),R=S;if(L(R)===NodeFilter.FILTER_REJECT)return;for(It.mark(R,M,g);R;){if(a?.interruptEffectDOM)return;let _=Date.now()-ET;if(_>50&&(k.debug("taskTime",_,S),ET=Date.now(),await tt(0)),s&&s.length>0){let{currentNode:U,isMatchedSelection:z}=h(P,R,s);if(U)R=U;else break;if(!z)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let U=R;if(U.nodeName==="IFRAME"){A&&A(U),v(),A1(p,!0),R=P.nextNode();continue}U.nodeType===Node.ELEMENT_NODE&&(o&&k1(U,o),c&&L1(U,c));let z=La(U,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},U.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&U.childNodes.length==1&&U.childNodes[0].nodeType===Node.TEXT_NODE&&U.innerText?.length==1&&U?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),qt(U,i)&&!z){C(U);let Re=null;for(;!(Re=P.nextSibling())&&P.parentNode(););R=Re;continue}let Y=Io(U);if(!AT(p,U)||z){v(U);let Re=z?U:U.parentElement;Re&&Re.childNodes.length>0&&x(p,Re,Re.immersiveTranslateComputedStyle||null)}Y&&U.shadowRoot?.mode==="open"&&(z?A?.(U.shadowRoot):y({...T,container:U.shadowRoot})),U.nodeType===Node.ELEMENT_NODE&&qt(U,n.likePreSelectors)&&u&&(I||zU(U,n.advanceTransformPreTagNewLine))}else if(R.nodeType===Node.TEXT_NODE)C(R);else throw new Error("should not be here");R=P.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bo(_)){if(c){let ee=Object.keys(c);if(ee.length>0&&qt(_,ee))for(let xe of ee){let H=c[xe];if(_.matches(xe)){let W=c[xe],te=Object.keys(W);for(let Me of te){let ve=W[Me];_.getAttribute(Me)!==ve&&(ve===null?_.removeAttribute(Me):_.setAttribute(Me,ve))}break}}}if(!T.force&&It.isMarked(_,M)||DC(_,M)||Hm(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!qi(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ee=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ee,D1(ee))return D&&D(_),NodeFilter.FILTER_REJECT;let Re=La(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ee||null);if(_.isBlock=Re,qt(_,i)&&Re)return NodeFilter.FILTER_REJECT}let U=_.getBoundingClientRect(),{width:z,height:Y}=U;return _.nodeName==="IMG"&&(z>48&&Y>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&Y>0&&m!==!1&&(_.setAttribute("width",z),_.setAttribute("height",Y))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||Y>0&&Y<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let U=_.textContent?.trim();if(!U)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:Y,height:ee}=z.getBoundingClientRect();if(Y>0&&Y<4||ee>0&&ee<4)return NodeFilter.FILTER_REJECT}return l>0&&U.length>=l&&VU(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await y(e)}catch(T){k.error(T)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&v();function h(T,S,A){let D=S.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(S))if(f=!1,S&&S.nodeType===Node.ELEMENT_NODE)if(dc(S,A))f=!0,b=S,v(),x(p,b,D);else return f=!1,S=T.nextNode(),{currentNode:S,isMatchedSelection:f};else return f=!1,S=T.nextNode(),{currentNode:S,isMatchedSelection:f}}else if(S&&S.nodeType===Node.ELEMENT_NODE)if(dc(S,A))f=!0,b=S,v(),x(p,b,D);else return f=!1,S=T.nextNode(),{currentNode:S,isMatchedSelection:f};else return f=!1,S=T.nextNode(),{currentNode:S,isMatchedSelection:f};return{currentNode:S,isMatchedSelection:!0}}function v(T){let S=p.flatNodes.length-1;if(n.skipTrailTextRegex&&S>0)for(let D=S;D>=0;D--){let I=p.flatNodes[D]?.textContent?.trim()||"";if(!I||new RegExp(n.skipTrailTextRegex).test(I)){p.flatNodes.splice(D,1);continue}break}if(T&&T.nodeName==="BR"){if(T.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=YU(T,n);let D=[...p.flatNodes],M=p.flatNodes.filter(I=>T.parentNode?.contains(I));M.length>0&&D.length!=M.length&&(p.flatNodes=M,p.flatNodes.original=D)}let A=qU(p,r,n);A&&t&&t(A),A1(p)}function C(T){if(!AT(p,T)){v(),A1(p);let S=T.parentNode;S&&x(p,S,S.computedStyle)}p.flatNodes.push(T)}function x(T,S,A){T.commonAncestorContainer=S;let D=w(A);T.isPreWhitespace=D}function w(T){return T&&T.whiteSpace&&T.whiteSpace.startsWith("pre")||T&&T.whiteSpace==="break-spaces"||!1}}function AT(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Io(t));let r=HU(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function UU(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function jU(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function k1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function HU(e){return e&&e._currentStacks?e._currentStacks.some(t=>Io(t)):!1}function qU(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Zd(r,a,n);o||(o=a);let s=[];for(let p of r){let f=jU(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>NU){k.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:BC(o)}}else return null}function A1(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function D1(e){return e.display==="none"}var It={_marked_key:H6,isMarked(e,t){return H4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Io(e)))return QC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)It.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Io(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Io(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function zU(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let m=document.createElement("br");m.setAttribute("data-imt","1");let g=document.createTextNode(c);l.parentNode.insertBefore(m,l.nextSibling),l.parentNode.insertBefore(g,m.nextSibling),l=g,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=nr?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function VU(e,t,n){let r=e.textContent||"",a=IC(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=WC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function DT(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let b=c[f];if(f==="translate"&&b==="no"){let h=p.innerText||p.textContent||"";if(!h.trim()||GU(p,a,i,o)||!KC(h,n,r))continue}p.getAttribute(f)!==b&&(b===null?p.removeAttribute(f):p.setAttribute(f,b))}})}}function L1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Hm(e,t){return WU(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function WU(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Qd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function dc(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function GU(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Hm(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Xd(o,t,n))return!0}}return!1}function KU(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&La(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function YU(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&La(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function LT(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new v0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=JU(u.content,t),n&&XU(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:_C(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function MT(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function QU(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` +`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=QU(o,20),u=ZU(o),l=null;for(let c of u){let m=document.body.querySelectorAll(c);if(m.length&&(m.forEach(g=>{let p=g.textContent?.trim().length||0,f=l?.textContent?.trim().length||0;p>f&&(s?g.innerText?.includes(s)&&(l=g):l=g)}),l)){i.push(l);break}}}),!!i.length)return Zd(i,document.body,t)}function ZU(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function XU(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function PT(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(O0)||M1(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var mc="";async function M1(e){let t=document.title;if(!t||t.includes(O0))return;mc!==t&&(mc=t);let n=await Ke({text:t,pageLangs:[Lt(),"en"]});if(!Ks(e,n))try{let r=await sa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=mc,document.title=r.text+O0+mc)}catch(r){throw r}}function RT(e){e.rule.isTranslateTitle&&(document.title=mc)}function yu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function qm(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?O4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function BS(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?O4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function IT(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?O4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${F}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function Vm(e){let t=TC(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function En(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=R4(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var ej={sanitize:e=>e};async function F1(e,t){if(e.interruptEffectDOM)return;li("consumeContainer");let n=En(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:zo.bind(null,e),onFrame:r=>{P1(e,r,!0)},onIgnoreElement:r=>{It.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),hs&&zt(t,"consumeContainer",e.id)}function P1(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!qi(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Ef}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Ra(t.contentWindow?.document.documentElement,e.translateState),ro(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ro(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ro(e,t,n=!0){li("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=En(t.ctx),o=0;if(l(t,e,n))return;if(Bo(e)&&u(e)){It.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Bo(m)&&(a&&k1(m,a),i&&L1(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,It.clearMark(c),t.immediateTranslateCapacity>=0){await F1(t,c);let m=Date.now()-r;m>100&&(k.debug("batchTaskTime",m,c),r=Date.now(),await tt(0))}else hs&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return P1(t,c.shadowRoot,n),!1;if(m==="iframe")return P1(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return mc(c,g.selectors);if(t.ctx.rule.enableSkipBuildContainer||g.containerSelectors&&mc(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){RS(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&It.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=En(c.ctx);return!!(qm(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function pc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!It.isSkipMarkEle(a)&&!It.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&qo(t.rootNodes),r=="original"&&n=="translation"){let s=vu(e,t.rootNodes);if(R1(s))return;no(e,s,a,t.targetNodes||[]),qo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=vu(e,t.targetNodes,s);no(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=vu(e,t.rootNodes);if(R1(s))return;no(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=vu(e,t.targetNodes);no(e,s,a,t.rootNodes||[]),qo(t.targetNodes)}r=="dual"&&n=="original"&&qo(t.targetNodes),O1(t)}catch(s){k.error(s)}li("inserted"),HC()}}function R1(e){return!e||!Bo(e)?!1:e.classList.contains(Yt)}function vu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function qo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function no(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var tj=yr(Wm,300);async function zo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;li("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||nj(t.rootNodes)||t.stepState>=2)return;t.stepState=2,hs&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Fo(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=lm(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:Vm(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await _1(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Pa(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(k.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),rj(e,t.text),B1(e,t,r)):(hs&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function nj(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bo(t)&&t.classList.contains(Yt):!1}function rj(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function B1(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;li("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),hs&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,V6,"1",!0),n=="hover"){Wm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";tj.call(e,e.ctx,a)}async function Wm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await Gm(o,{...e,translationService:this.translationService},this.translateState,t)})}async function Gm(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=ql(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;no(t,u,i.commonAncestorContainer,[s]),O1(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await fn(a,t,(i,o,s)=>{let u=s.id,l=aj(e,u.toString());l&&ij.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function aj(e,t){return e.find(n=>n.id===t)}function ij(e,t,n,r,a,i){li("translated");let o=!1,s=r;Ys(s.commonAncestorContainer,n.id)?.remove(),O1(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Yt),g.setAttribute(Cs,"1");let p=xx(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),yu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=ej.sanitize(p);g.innerHTML=cr?.createHTML(f)||f,c.targetNodes=[g],pc(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,Y6,g.toString()),p.classList.add("notranslate",Yt,Yt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(R1(f)||no(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=oj(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${F}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function zm(e){let t=xC(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function En(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=R4(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var $U={sanitize:e=>e};async function F1(e,t){if(e.interruptEffectDOM)return;ui("consumeContainer");let n=En(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:zo.bind(null,e),onFrame:r=>{P1(e,r,!0)},onIgnoreElement:r=>{It.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),hs&&zt(t,"consumeContainer",e.id)}function P1(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!qi(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Ef}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Pa(t.contentWindow?.document.documentElement,e.translateState),ro(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ro(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ro(e,t,n=!0){ui("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=En(t.ctx),o=0;if(l(t,e,n))return;if(Bo(e)&&u(e)){It.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Bo(m)&&(a&&k1(m,a),i&&L1(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,It.clearMark(c),t.immediateTranslateCapacity>=0){await F1(t,c);let m=Date.now()-r;m>100&&(k.debug("batchTaskTime",m,c),r=Date.now(),await tt(0))}else hs&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return P1(t,c.shadowRoot,n),!1;if(m==="iframe")return P1(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return dc(c,g.selectors);if(t.ctx.rule.enableSkipBuildContainer||g.containerSelectors&&dc(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){MT(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&It.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=En(c.ctx);return!!(Hm(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function gc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!It.isSkipMarkEle(a)&&!It.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&qo(t.rootNodes),r=="original"&&n=="translation"){let s=vu(e,t.rootNodes);if(R1(s))return;no(e,s,a,t.targetNodes||[]),qo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=vu(e,t.targetNodes,s);no(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=vu(e,t.rootNodes);if(R1(s))return;no(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=vu(e,t.targetNodes);no(e,s,a,t.rootNodes||[]),qo(t.targetNodes)}r=="dual"&&n=="original"&&qo(t.targetNodes),O1(t)}catch(s){k.error(s)}ui("inserted"),UC()}}function R1(e){return!e||!Bo(e)?!1:e.classList.contains(Yt)}function vu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function qo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function no(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var ej=br(Vm,300);async function zo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;ui("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||tj(t.rootNodes)||t.stepState>=2)return;t.stepState=2,hs&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Fo(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=um(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:zm(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await _1(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Ma(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(k.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),nj(e,t.text),B1(e,t,r)):(hs&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function tj(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bo(t)&&t.classList.contains(Yt):!1}function nj(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function B1(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;ui("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),hs&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,q6,"1",!0),n=="hover"){Vm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";ej.call(e,e.ctx,a)}async function Vm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await Wm(o,{...e,translationService:this.translationService},this.translateState,t)})}async function Wm(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=Hl(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;no(t,u,i.commonAncestorContainer,[s]),O1(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await fn(a,t,(i,o,s)=>{let u=s.id,l=rj(e,u.toString());l&&aj.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function rj(e,t){return e.find(n=>n.id===t)}function aj(e,t,n,r,a,i){ui("translated");let o=!1,s=r;Ys(s.commonAncestorContainer,n.id)?.remove(),O1(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Yt),g.setAttribute(Cs,"1");let p=vx(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),yu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=$U.sanitize(p);g.innerHTML=nr?.createHTML(f)||f,c.targetNodes=[g],gc(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,G6,g.toString()),p.classList.add("notranslate",Yt,Yt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(R1(f)||no(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=ij(a,c).replaceAll(` `,"").replaceAll('"',"""),y=c.message.replaceAll(` -`,"").replaceAll('"',"""),b=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),x=Pe(a.config.interfaceLanguage,"error.reason"),w=`<${m.targetWrapperTag} class="${F}-error notranslate"> +`,"").replaceAll('"',"""),h=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),x=Pe(a.config.interfaceLanguage,"error.reason"),w=`<${m.targetWrapperTag} class="${F}-error notranslate"> <${m.targetWrapperTag} class="${F}-error-wrapper"> - + ${C}    - + ${x} - `;p.innerHTML=cr?.createHTML(w)||w}}}var _S="";async function _1(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=_S.slice(0,e.rule?.detectTextBufferLength)+" "+o),_S=s;let u=await ze({text:s,minLength:15,pageLangs:[Lt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Qs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Qs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=cd();r.isDetectParagraphLanguage&&(g="auto");let p=Lt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!nd.includes(e.translationService)&&(X()||He())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let h=g!=="auto"?g:f;return Pi(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>Pi(h,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function fc(){I1=0}var I1=0;function oj(e,t){I1+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),I1!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(_n,{detail:r}))}return n}function O1(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,sj(t,`[${W6}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function sj(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function OS(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Zs(document.body),pageLangs:t})),e}var uj=[];function NS(e){uj.push(e)}var N1;function US(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=En(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{hc(e,i,t,r)}),N1=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Ar(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||j1(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&hc(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Ma(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Js(r,u.parentElement);c&&(It.clearToParentMark(u,c),hc(e,c,t,r));continue}hc(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{It.isMarked(o,e.id)||hc(e,o,t,r)})}),N1.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function hc(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&U1(t),pi({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{zo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function jS(){N1?.disconnect()}var lj=` + `;p.innerHTML=nr?.createHTML(w)||w}}}var FT="";async function _1(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=FT.slice(0,e.rule?.detectTextBufferLength)+" "+o),FT=s;let u=await Ke({text:s,minLength:15,pageLangs:[Lt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Qs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Qs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=ld();r.isDetectParagraphLanguage&&(g="auto");let p=Lt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!td.includes(e.translationService)&&(X()||He())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let b=g!=="auto"?g:f;return Pi(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>Pi(b,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function pc(){I1=0}var I1=0;function ij(e,t){I1+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),I1!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(sr,{detail:r}))}return n}function O1(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,oj(t,`[${z6}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function oj(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function BT(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ke({text:Zs(document.body),pageLangs:t})),e}var sj=[];function _T(e){sj.push(e)}var N1;function OT(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=En(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{fc(e,i,t,r)}),N1=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Er(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||j1(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&fc(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!La(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Js(r,u.parentElement);c&&(It.clearToParentMark(u,c),fc(e,c,t,r));continue}fc(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{It.isMarked(o,e.id)||fc(e,o,t,r)})}),N1.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function fc(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&U1(t),pi({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{zo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function NT(){N1?.disconnect()}var uj=` .toastify { padding: 12px 20px; color: #ffffff; @@ -6033,10 +6033,10 @@ x-tc-action:`+this.action.toLowerCase()+` max-width: fit-content; } } -`,H1="immersive-translate-toastify-shadow-root",q1=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(H1)){let t=document.getElementById(H1);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=H1,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=lj,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Km(e){e=e||{},new q1({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function HS(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function hn(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{k.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:M0,payload:e},"*")});let n=new CustomEvent(Kr,{detail:e});globalThis.document.dispatchEvent(n)}function z1(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Kt(o,s=>{s.preventDefault();let u=r[i];hn({method:u,data:{trigger:"shortcut"}})})}}var cj="imt-fb";function bn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${cj}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function qS(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Ym="DROP_DOWN_DEFAULT_VALUE";function V1(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return d("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Ym,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Ym){s.current.value=Ym,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Ym,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var dj=({date:e})=>{let{t}=O(),[n,r]=N(!1);return q(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},mj=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},gj=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},pj=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function W1(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(null),[x,w]=N(null),S=Hn(),T=async()=>{m("");let A=o;if(o===null)try{let D=await n({url:ki});D?(s(D),A=D,p(!0)):(m(i("unknownError")),l(null))}catch(D){l(null),m(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return q(()=>{we.DEBUG||Je().then(A=>{let D=A.buildinConfigUpdatedAt;C(A);let M=new Date(D);if(a(D),S==="0.0.0"){b(!0);return}n({url:ki}).then(I=>{let P=I,R=P.minVersion,L=S;s(P);let _=P.latestVersion;if(_&&(za(L,_)?w(!0):w(!1)),za(L,R)){let U=P.buildinConfigUpdatedAt;new Date(U)>M?(l(!0),T()):l(!1)}else h(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),q(()=>{Je().then(A=>{C(A),sa(A)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(gj,{}):c?t===!1?null:d(pj,{handleSyncing:T,message:c,date:r||""}):f?t===!1?null:d(mj,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(dj,{date:r}):null}):null}var zS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var VS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),WS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),GS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),KS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var YS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),QS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),JS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),ZS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function Cu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function XS(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return tr(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Li,`${e.type}_user_info`);return}e.onOpenUrl(Ts,`${e.type}_user_info`)},children:[d("img",{src:n?G8:W8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(fj,{...e})]})}function fj(e){let{t}=O(),n=ne(()=>Cu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Li,`${e.type}_pro_logo`)},children:d("img",{src:gi})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Ln)},children:[d(bn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ln,`${e.type}_user_upgrade`)},children:[QS,d("span",{children:t("popup.upgrade")})]})}function $S({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=eo(t.config.translationService,t.config.targetLanguage),s=sr;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(hj,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:K8,style:{maxWidth:"unset"},class:"mx-2"}),d(bj,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function hj(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function bj(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var eT=220;function tT(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=Ce(null),[o,s]=N(eT),[u,l]=N(0);return Bu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,h=20,y=30,b=5,v=g.clientHeight-h*2,C=t.length*y+b*3,x=f+m.height;if(C>g.clientHeight-x){let w=Math.min(v,C);l(g.clientHeight-f-w-h)}else l(0);s(Math.max(eT,v))}},[i.current,r,t]),q(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(nT,{item:n,isDefault:!0}),ZS]}),d(yj,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function yj(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return q(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(nT,{item:o,onClick:e.onClick},o.value))})}function nT(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:gi}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var vj={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA7VBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/m5ubn5+fl5eXn5+fm5ubn5+fk5OTm5ubl5eXl5eXn5+f////pTRLm5ub+/v3+///8/Pvu7u7w8PDpTRHsZC/xkGvs7Oz2tJnp6en9/f309PTn5+f508P6+vr50cHvgVj39/fqTRH1r5P0q47sXyn88u3o6Ojwh1/29vb2tp3++vn99fH87eb2uaLynHruc0PtazjrVRz76eH64tj51sj3ybb3wKv0p4rxjWf99/T539P5z733w7Dzo4Pznn3rYi3rUBX628/yl3Pve07rWyT2uqMvjnlOAAAAFHRSTlMAIN/vkHC/MBDPQJ+gr2BgUICwf1AE+HAAAAStSURBVGjezZp5W+IwEMZ704KIuxsmtBRrC7JbD8T1AO/11r2+/8fZgtWxmNRAU599/42PP9+ZSTpmoojKXjGNuqPpkEjXLMswq7YiU6pZ04Ahrd6oyCFUjSmgF7S7cd+NSKLI7cfddtCbgmrVogT7izMBeLsuYai/64UTTkMtgKgYekJo90mO+lNObVGMagFAgASuYm9RjG1MTLhESO5iGFMHaEciAMRojbkjFaALYYylzmUjjMnc2g1BN4WzgZGa34whFioHel2yoLo90FQBhgahSxaWGwpQKjoEESkgNwC98i6jTQrKQ4p0BqqdS1GRUZSi8nOOjGLy+NnXICCSFIBjMxkG1m5hRSF7V5rQQ0ZhuT0wmUnvEonqspJvgUekygNrlrGMCZGXFvNN9e4SyYpBz1bYksxgYR0bGSMArnyIC6CWZwSPF6ssI6ioB5XyjKAVoywjKBcLbFm+ESywTy+nr1j/05of0gfniVGFkPBEaetFNOItUD6+B1VMOxNwujXuvNI6Qf086qDG99fIYadeA3bnfvXr0W++0pASFF31N5qojdUDXry0afPAidZgPEGgtk8yNvf/ZFZ9XJ6Nl8qvLTrM/pLmJiUZ3T5OvKDGe5wT30wgdeb527rwEeD/GV7sz0S9RfduL7ebPv7YVov98apNU+KyIEcYp9HNgFJmZezfjDovf0rHZe/HJCk27LDWTjbSUI9OmWFAQ9db2ynmJycptlJl90HrzakeTjAGPAo9SF3/bbE3/YpiQjsHcie0y9eebK9xdoqpGNDNgWwKQQ5TCCfzhmJBXBjyvZkDieFzAumXC+mDgxXMhlAhiI8QZg3rEOVBcFMwJASJQFcAiBhk+G1G5y+QtbxwEYB3IFu4H46bMzokHwvxJUHoWwgVhugQiUHWv85o0MJw5SceS5gDEdHaeyXs5EJ+iEHyN6Ol1CEuDNnMP1YsPCDZEFoAggekCe3iEDyF2Uf9Su5H6zcVoNDV1AmnU63yPr/XaSdyP3iXsb+Zti0X3M8vp4YHzVTHv7+f7VGeh6vT78Pj587ogN/dLTEzT78994ZJy/UwPDx4E7cWPbi4fJh0ZE/yx5y8f57eRHgsyNljtrfbPm3NeD3ysetK5J9zmrtGAlHZSaGjZkYbw5moXs6sjyImJIRKXsN9N/NbzmnGaXbV/7WX13ArBueWi54f+ZmWevAqYFcdXEsS37mllBOtWvpP0A6ndqL1u9VXuiGos8tV1P3XtFNmRSsdrzgYL9mKk2g96RMEpCQF0Eghtp7dj9IvPjD1koVpT1WBnQhXyrrBsdBKGUbKv4pCGVhgJRjBAotlM7pvrrlNCCPJwQqh8eFXtuVfPmPAdsq8RseBQCQxIQZ79OfIHG1o/CGNV8KQpvxx08cPzpDilTgCREpQqJKjIGH8D2PZKWWnyIDZyWfgrgRvITORB2DYcwz9FzAT49BfRKo1vxk3wOcLglrW5sNEbUAb4maWQBzjtnuYjQUwscBoIQCM1GKY0OvnEiYmdKPI6yh1WZtyuuyL5V0vIYDzyS789GqJ8fTKxadXRlWRospynf2IrGaqikzZVdOwrOfncE7dMFeEg/QPIkmRuObwhUMAAAAASUVORK5CYII=",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABXFBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/m5ubn5+fl5eXn5+fm5ubn5+fk5OTm5ubl5eXn5+f///8ANSXm5ub8/Pzv7+/09fT6+vrx8fHn5+dAaFwSQTLp6emPp58AMyHv8vG/zclggXf29/fs7Ozp7ezf5uQlUkMvW04gTkD19vZ0kYgUPi3e5eOvwLtYe3EgT0GnuLOAmpJQdGkDNyafs64LPCzr6+ucsKltioDP2dVUeG1HbmIOQDEbQS4IOinc4+G5x8Ojt7Gfs62Wq6Rnhn02YFMgT0DT3Nmpu7WJoJh+lo1wjYQtV0kWRjgA/wC1xMBdfnRNcWY7ZFj3+Pjw8PDr7+7W3tvK1dLH08/Cz8yYrqeSp6GFnZR4lYxwjoVvjYRpgndUcmQbSjwAPSMAWh63w75cdmlDaV00WkwARyIA7gSuurIZQzEAMR4AdxoAiRcAqRAAyQpeVOdNAAAAE3RSTlMAIN/vkHC/MBDPQJ+gr2BgUIB/BTjjCAAABhhJREFUaN7lmldz2kAQgIWQRHGwk+ydkOiiGAjEVCcBbMfdie0kTu+99/b/Z3IIN+Q9SQgmeciXl8xg+5vdvVut7hDcEjwtS5GQ6KcMv6gokhwOCpPEJ0+JFEGMzAQmYwhLpiBeiGl5XVWBoap6XosV4qZoKjyuIXg21BdEKyog6JVoqu+Z8Y2hCEh+ZojpYINueqa8anwK++2CDo7ko141QakfhAquUL1pZJYoXMHXiDMjZ6qAKJw0im+kMFJ5GJlKivrlEapxDwnDXTCSu1SFaFwDj2hxKvpcOESaUsEzasqFJeCnl5hjDMsl6g84Ou7BmESZxcERg7GJ2Vp8iMOjxWdT83swEaL86ov0EkyISzSEPzclbO16X8kS2kto3N5h1NK5coMwGol2K2vYW+JURouu2RlaCWIhkZ4DPhpWfIVGgUs2QVASWbviK1bHNCuIvQLnXM2mLPKJ1VsBnGKC2JLjJS1P/cMr7BQ3WekkceDcOuAUhleYj1IVr/c14oIXnIRR6nMRiFEmrijPcdqL4hxI8QoZ8PHaRYeUzXE2SwAJBHeUVOhZLG92doctBh6K5BRI+fAvaABf58kxzmdBfTWcMTSUowU2jQdyrOYfdICdY7EsvwfQrruofoGeOey+2PyzTo6xCwCvDmP53gGAhQwZJo1NyjQ0cIRpilOQIzJPAdTX+392fgNA/2B1kCRW/DgN25Q9R4ZhCap8Ggh3gRUkg3Qym9KLFJnca8TCxasAc31LpgsAz+YJQhbLl2gOD2i2rhAr35ilkyGZ1yrABr5tEmi+fLy1lSUnuU7vdgl5rQE0B/3s8893zqFEzV4cwfov2nkzyxmyZQBklweOL3t77xxD0egUpyRFgmNWpjdwkHd7e3s/LJ8byH5kRQnSONLfeZLkLOglMuDtry+/31o+b2FFCbJdUsCyxZdo5wk50My7KH2BnhZkZGg0iIOEj4HsFFmQkCEl60Zya/s28gM1pPKSoCCNq+VCcv4+PEB2fRp51EcEBVlcbReSyxWYQyQ5tEeKyLMk4V1SRtewH5Fc8S45hz24BErhBMS7hMAJKP1/JalDiQYrbiUjFj7T0ZuDXrK8CmtuC48u4TLhW9i/AfPn0OcWuoRDVEee755pI5tRESJIW0l7l7SQtqKgDbLmXZJFGyTe6j2Dt/rT/IfWxoV92kPrJ3fAFhsuOuTGxpLDQytsPn7xXl9qrq2tzT5aW2uuH5+AbtTrj1frfbbIw20g5dn24uLi/mCcxh+/5hpG87VAb1UXervVau6+ZcyqdZJ9CFm5Ce3NqyvZh3d3iEmRM92dohqer8VFJnmyUK0uWFdbr9dsNh/C/JKxA/X25mxnw2jxR6IIk8j84W7p4+rqo42tZULupA9os4TdXei/KuiklF2ERunO1dqm8Zw/3M2Yr0BxQEOp1h7fvLW+ufv45nY7WTqAJem22j/8eK6xXd+F3u300+L1fBXtKYwUDRwN3FgobzqdZvP+U2KhuWpuu1mSvKnC0psH3W2ids1acQduth1jwFnFL1dLTx7csDjuqHcI48kKId06LD3q9krLZifKoYcfU6YkjOaraA7V9ZWVpLXPzlZZtZ7t6M/6iwO2bteq1W0osw+KaLbCpmS/R+IN7OKmdUpsbBJGt1o354YLbB0sVZ9vsf+vo0cfojDgDC3gL6Yj8RJ/MZ3ZlwT93Fds95SdDj7w0oPRcO9gBeGX3STAORksNrw58BMcBQ8Fim4PcAzgBIIcRXms/ksDHAMxq1IAnHXHlCXTAPaBHC2wPOAUHcaKRBFwtBPH3LLNQWetYaPI2hx0zvz9I1vnw+diOnHC0DIcDp+9HKNnW+3E4Bi9nEvXnI/R/9WFgBAMTfJqQ+Rf0kQnd0nzD6+bJn9xxrdEJ3EF+O8vMyd9Lcu3jHfBHEIc6K6kUe9X5cERLv09BJPHLv35+JTRg1ELyNcX7JkWR9OoMYqE4RjMKYprcEUcqYZ7Td5ZoRconin3mlRUtzX0g/BLAcE7vmnR9GioSK1EmYGGzgSFMQmfsv/qlRQWJkJgOoJ/iWxK9gmTJBiWJUU5+DpcKCLJp10n6Q9+yapgtI9s1wAAAABJRU5ErkJggg==",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,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",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function Qm(e){let t=vj[e];return t}function rT(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=Tj(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(aT,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(Cj,{...e,currentTranslationService:a})]}):null}function aT(e){let{t}=O(),n=ne(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=oa(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(tT,{className:"translate-service",items:n}):d(la,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function Cj({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=Sj(e,o),l=xj(e,o),c=ue((g,p)=>{t(f=>{let h=f.translationServices||{},y=h[u.id]||{};return{...f,translationServices:{...h,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[g.name],onSelected:y=>{if(h.action=="jumpOptions"){let b=h.args||[];r(...b);return}c(g.name,h.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(le,{children:m.map(({label:g,items:p},f)=>d(aT,{label:g,items:p,ctx:e},"field-"+f))})}function xj(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function Sj(e,t){let{lang:n}=O();return ne(()=>{let a=Ms(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Qr,e4,e,n,t])}function Tj({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Ls(t,"translationService",c):[],[t,c]),g=ue(f=>{let h=m.find(y=>y.id===f.value);if(h.ok){if(u({translationService:h.id}),n(y=>(a(y.translationService||"",h.id),{...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=tr(t.config),y=m.filter(b=>t.config.showUnconfiguredTranslationServiceInPopup===!1?b.ok:!0).map(b=>{let v=rd(b,e,f,l,!0),C=Qm(b.id);b.id.startsWith("custom-ai")&&(C=Qm("custom-ai")),b.id.startsWith("mock")&&(C="");let x=ai.includes(b.id)&&!b.ok&&!f;return{label:v,value:b.id,selected:b.selected,img:C,onSelected:g,isShowProOrCustom:x,isShowGoSetting:!b.ok&&!x}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Qm("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function iT(e){let t;try{t=new URL(e)}catch{return!1}let n=V5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(wj(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function wj(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function oT(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function sT(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=Ej(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=ue(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(la,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function Ej({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&iT(e)){c=oT(e);let{matches:b,excludeMatches:v}=f;m=!!b.find(C=>dt(e,C)),g=!!v.find(C=>dt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:b}=t.config,{matches:v}=b;v.includes(n)?p=!0:p=!1}let h=ue(()=>{let b=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(w=>w.match!==b),x=!1;C.length!==v.length&&(x=!0),x&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=ue((b,v)=>{if(b==="default"){s(w=>{let S={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:G1(e,S.matches),excludeMatches:G1(e,S.excludeMatches)}}}),h();return}let C=b,x=C==="matches"?"excludeMatches":"matches";l&&s(w=>{let S={...w.translationUrlPattern};return S[x]=G1(e,S[x]),S[C]=qn(v,S[C]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...S}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function G1(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!dt(e,n)):t):[]}function uT(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=Aj(e);return Yr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(la,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),d("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||ri[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(kj,{...e})}function Aj({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>ri.filter(s=>!(s==="Off"||ri.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ba(s)}),l=ri.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function kj(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(bc).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(la,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function lT(e){let{isAlwaysTranslateLang:t}=Dj({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function Dj({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function dT({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=Te(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:zS,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:YS,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(yl,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:JS,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(Cy,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(yt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(cT,{...s})}):d(cT,{...s}))})}function cT(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var Lj=["bing","transmart","google","yandex"];function gT(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:gi,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Ln,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Ln,`${e.type}_trial_pro_service`)}})]}):null}var mT="popup_trial_pro_show_count";function pT(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=Ce(!1);q(()=>{Eo(mT,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!Lj.includes(m)},[t,n,r,i]);return q(()=>{!u||i==null||s.current||(s.current=!0,Ao(mT,i+1))},[u,i,s,a]),{showTrialPro:u}}function K1(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=N(""),[c,m]=N(null),[g,p]=N(null);q(()=>{nt.get(pt,null).then(v=>{v?(m(v),p(kt(v))):p(!1)}).catch(v=>{p(!1)})},[]);let f=!0,h=He();n&&h&&(f=n.generalRule.showSponsorOnSafari);let y=tr(n),{showTrialPro:b}=pT({ctx:a,isHidden:y,isProUser:!!g,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[y&&!g?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(XS,{isLogin:!!c,isProUser:!!g,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(_j,{openSharePage:r})]}),d($S,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(rT,{isProUser:!!g,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:b}),d(gT,{showTrialPro:b,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(Rj,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(Fj,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d(Oj,{aiContextInfo:s,curUrl:a.url}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(W1,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(sT,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(uT,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(lT,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(Pj,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(Mj,{ctx:a})]}),d(dT,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:y})]}),d(Ij,{...e,isProUser:!!g,isShowPricing:f,setMessage:l})]})}function Mj({ctx:e}){if(e.rule.imageRule?.type!="manga"||!um(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function Pj(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&Mf.includes(i.type||""),[n,Mf,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Wd()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function Rj(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(yt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?WS:GS})})}function Ij(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ue(v=>{i&&(o(C=>ji({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ui(i,s.rawUserConfig),m=Te(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[VS,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(Bj,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(V1,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(Ln),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?h():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(Ln,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(hl,g):v.value==="cleanCache"?ma().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&b(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function h(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function b(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function Fj({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Do(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Xn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):X()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(xr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Ba(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function Bj({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=Hn();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${F}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),lr(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[Ro(e.config),e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function _j(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),KS]})}function Oj({aiContextInfo:e,curUrl:t}){let{t:n}=O();if(!e?.visible)return null;let r=ne(()=>{let a=new URL(t);return a.searchParams.append(G0,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return d("div",{class:"flex flex-row mt-3 items-center",children:[iS(),d("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&d(yt,{text:n("contextDiffPreview",{1:r}),children:Rm()})]})}var Lye=1e3*3600*24;async function fT(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[Z6]:t.toISOString()}),await Y1(),X()||await Q5()}catch(t){k.error("run cron task failed",t)}}async function Y1(){try{let e=await Br(),t=await $({url:ki});sa(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;za(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ea({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}function Jm(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});Ze(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,h]=N(null),[y,b]=N({visible:!1,preview:!1}),v=Ce(!1);q(()=>{!f||v.current||(v.current=!0,Ne("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,v]);let C=_=>{r(_.detail)};q(()=>(document.addEventListener(So,C,!1),Br().then(_=>{l(_);let U=Lt();p(U);let z=st();r(z),fT(_.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",S)}),[]),q(()=>{Br().then(_=>{l(_)})},[a]),q(()=>{c&&u&&Zm().then(_=>{h(_)})},[c,u]),q(()=>{let _=gd();b({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let x=ue((_,U)=>{T("change_translate_service",!1,{translation_service:`${_}_${U}`})()},[]);if(!u||!f)return null;return d(K1,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},aiContextInfo:y,request:$,onClose:A,onToggleEnabled:D,onChangeService:x,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{I(Lo(f.rule)||c)},openAboutPage:R,openSharePage:T("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:_r,onSetBuildinConfig:U5,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:M,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function w(_){p(_);let U=qS(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:U})),Tr(_)}function S(){m(globalThis.location.href)}function T(_,U,z={}){let Y={trigger:"page_popup",...z};return()=>{hn({method:_,data:Y}),U&&t()}}function A(){t()}function D(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function M(_,U){let z=_;U&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${U}`),Sd(z,!0),setTimeout(()=>{A()},50)}function I(_){_&&(Bs(!1,_),setTimeout(()=>{A()},50))}function P(_=!0,U=""){Aa(_,U),setTimeout(()=>{t()},50)}function R(){xd(),setTimeout(()=>{t()},50)}function L(){Y5(),setTimeout(()=>{t()},50)}}function xT(){let[e,t]=N("Original");return q(()=>{let n=st();t(n);let r=a=>{t(a.detail)};return document.addEventListener(So,r),()=>{document.removeEventListener(So,r)}},[]),{pageStatus:e}}function ST(){let[e,t]=N("Original");return q(()=>{let n=Is();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ll,r),()=>{document.removeEventListener(ll,r)}},[]),{mangaStatus:e}}var hT=6,Nj={position:"right",top:335};function TT({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=N(!1),l=Ce(!1);l.current=s;let c=Ce(null),m=Ce(!1),g=Ce(n.floatBallConfig||Nj),p=Ce(0),f=Ce(0),h=Ce(0),y=Ce(!1),b=Ce(0),v=Ce(0),C=Ce(0),x=Ce(0),w=Ce(!1),S=ue(T=>{if(!a)if(clearTimeout(c.current),T)u(T);else{let A=qe().any||xr();c.current=setTimeout(()=>{u(T),y.current=!1},A?3e3:0)}},[u,c,y,a]);return q(()=>{a||u(!1)},[a]),q(()=>{if(i.current&&g.current){let T=Q1(g.current.top);g.current.top=T,i.current.style.top=`${T}px`,i.current.style.display="flex"}},[t,i]),q(()=>{if(!o.current||!i.current)return;let T=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,b.current=Date.now(),h.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),S(!0),C.current=L.clientX,x.current=L.clientY,w.current=!1,(qe().any||xr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{bT({startX:p.current,startY:f.current,endX:C.current,endY:x.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",I),document.addEventListener("mouseup",D),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},A=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,x.current=L.clientY,w.current))return;let _=L.clientY-f.current+h.current,U=Q1(_);i.current.style.top=`${U}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),R(),m.current=!1,clearTimeout(c.current),y.current||S(!1),w.current)return;bT({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let U=Q1(L.clientY-30);g.current.top=U;let z=await Mn();_r({...z,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),T(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},P=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},R=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",T),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",T),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,S,e]),q(()=>{if(qe().any)return;let T=D=>{D.target===i.current&&!y.current||!l.current&&vT(D)&&c.current||(y.current=!0,S(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&vT(D)&&c.current)){if(m.current){y.current=!1;return}D.target===i.current&&!y.current||S(!1)}};return i.current?.addEventListener("mouseover",T),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",T),i.current?.removeEventListener("mouseout",A)}},[i,m,S,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:S}}function bT({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>hT||i>hT}function wT(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function ET(){let[e,t]=N(!1);return q(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var yT="hasShownFloatingBallGuide",Uj="2024-01-06";function AT(e,t){let[n,r]=N(!1),a=ue(()=>{Qe(yT,new Date().toISOString()),r(!0)},[r]);q(()=>{if(!e.config.enableShowFloatingBallGuide||Lt()==e.targetLanguage)return;let o=dt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Pt(yT,""),u=await Pt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(F0,o),()=>{document.removeEventListener(F0,o)}},[]);let i=ue(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function kT(){document.dispatchEvent(new CustomEvent(F0))}function DT(e,t){let n=Ce(0),[r,a]=N(!0),[i,o]=N(!1),s=Oe(),[u,l]=s,{t:c}=O(),m=ue(()=>{e?.config.floatBallTooltipRule&&(qe().any||xr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);q(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=ue(async()=>{if(!e)return;n.current=n.current+1,m();let h=await ln();l(y=>{let b={...h};return qe().any?b.h5FloatBallMainBtnTooltipShownCount=n.current:b.pcFloatBallMainBtnTooltipShownCount=n.current,b})},[l,m,n,e]),p=ne(()=>qe().any||!r||xr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||xr())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${Ba(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function Q1(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var J1=0;function vT(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(J1=Date.now(),!0):Date.now()-J1<100}function LT(e,t){q(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(To,n),()=>{globalThis.document.addEventListener(To,n)}},[e,t])}function MT(e,t){let n=Ce(e);n.current=e,q(()=>{!n.current||!t||Ne("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var CT="imt-float-ball-active";function PT(e){q(()=>{let t=!!document.querySelector(`meta[name='${CT}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(CT)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(R0,n),()=>{document.removeEventListener(R0,n)}},[])}function RT(e){document.dispatchEvent(new CustomEvent(R0,{detail:{active:e}}))}function jj({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return q(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(le,{children:[e&&d("div",{className:`${F}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${F}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${F}-sheet-content`,children:n})})]})}var Xm=jj;var Vo="imt-fb";function FT(e){if(globalThis.innerWidth<=385)return d(Xm,{isOpen:e.visible,onClose:e.onClose,children:d(IT,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${F}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${F}-popup-overlay`,class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(IT,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function IT(e){let{t}=O(),[n,r]=N("UntilNext"),a=Cd()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Vo}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Vo}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(bn,{type:"modal-close"})})]}),d("div",{class:`${Vo}-close-radio-content mt-3`,children:o.map(s=>d(Hj,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{ka(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Vo}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Vo}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function Hj(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=qj(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Vo}-radio-sel`:`${Vo}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function qj(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var Wo="imt-fb";function BT(e){let{t}=O(),n=a=>{a?.target?.id===F+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${Wo}-guide-container`,style:r,children:[d("img",{class:`${Wo}-guide-bg ${e.fixedPosition}`,src:zj}),d("div",{class:`${Wo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${Wo}-guide-img`,src:rn("images/float_ball_intro.png")}),d("div",{class:`${Wo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` -${t("floatBall.longPress")}`:""]}),d("div",{class:`${Wo}-primary-btn ${Wo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var zj="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var _T="imt-manga";function OT({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===F+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ue(()=>{if(t(),!a.isPro){if(a.user)return window.open(ly);window.open(sy)}},[a,t]);return e?d("div",{onClick:o,id:F+"-popup-overlay",class:`${F}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${_T}-guide-bg ${r}`,src:`${xn}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${_T}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(bn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var fi="imt-fb";function Z1(e){let{t}=O(),n=Oe(),[r,a,i,o]=n;Ze(r,a);let s=ft(r),u=e.ctx,{isFullScreen:l}=ET(),[c,m]=N(!1),g=Ce(c);g.current=c;let[p,f]=N(!0),{pageStatus:h}=xT(),y=ui(u,r),b=ue(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&hn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,hn,m]),v=ue(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:x,active:w,ballRef:S,floatBallConfigRef:T,setActive:A}=TT({handleBallClick:b,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),D=y?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:P}=AT(e.ctx,y),{closeTransform:R,logoContainerTransform:L,settingTransform:_,mangaTransform:U}=wT(y,w||I);MT(u,w);let{tooltipDelay:z,disableTooltip:Y,tooltipText:ee,handleShowTooltip:Re}=DT(u,h);LT(m,g),PT(A);let H=globalThis.innerWidth<=385;return C?d(le,{children:d("div",{class:`${fi}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||I||c?"all":"none"},ref:x,children:[d(Vj,{ctx:u,setVisible:f,closeTransform:R,setActive:A,getModalStyle:()=>NT(T.current.top,300,D)}),d(yt,{enableMobile:!0,text:ee,position:M,delay:z,onShow:Re,disable:Y,children:d("div",{class:`${fi}-btn ${D} btn-animate `,ref:S,style:{transform:L,opacity:w||I?1:.5},children:d("div",{children:[d(bn,{type:"logo"}),d(bn,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),d(Kj,{ctx:u,mangaTransform:U,floatBallConfigRef:T,fixedPosition:D,hidden:I}),d("div",{style:{marginTop:"12px",transform:_},class:`${fi}-more-buttons btn-animate`,children:[d(yt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{Sd(yy,!0)},children:d(bn,{type:"file"})})}),d(yt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${fi}-more-button`,onClick:()=>{A(!0),m(!0)},children:d(bn,{type:"setting"})})}),d(Qj,{ctx:u,tooltipPosition:M,rule:y,active:w})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:_},class:`${fi}-more-buttons btn-animate`,children:d(yt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xo,{detail:{type:"webReport"}}))}})})}),d(X1,{onClose:()=>{A(!1),m(!1)},isSheet:H,visible:c,getModalStyle:()=>NT(T.current.top,500,D)}),d(BT,{visible:I,top:T.current.top,fixedPosition:D,onClose:()=>{P(),A(!1)}})]})}):null}function Vj(e){let{t}=O(),[n,r]=N(!1),a=Oe(),[i,o,s,u]=a,l=ui(e.ctx,i),c=ue(g=>{e.ctx&&o(p=>ji({...p},g))},[e.ctx,o]),m=ue(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(le,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(bn,{type:"close"})}),d(FT,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function X1(e){let t=n=>{n?.target?.id===F+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Xm,{isOpen:e.visible,onClose:e.onClose,children:d(Jm,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.getModalStyle(),children:d(Jm,{onClose:e.onClose})})}):null}function Wj(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var NT=(e,t,n)=>{let a=Wj().height,i={position:"fixed"},o=0;return M6()&&(e=Gj.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},Gj={position:"right",right:0,top:335};function Kj({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=ST(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();q(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Dt(p))})},[c,s]);let g=ue(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await nt.get(pt,null);if(kt(f)){e.user=f,e.isPro=!0,hn({method:"toggleTranslateManga"});return}s(!0);return}hn({method:"toggleTranslateManga"})},[]);return!um(l)||r||!l?.enable?null:d(le,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(bn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(bn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(bn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(yt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xo,{detail:{type:"mangaReport"}}))}})})]}),d(OT,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var Yj="float_ball_upgrade_show_count";function Qj(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=tr(n.config),s=Ce(!1),[u,l]=N(null),c=ne(()=>Cu(n.config),[n]),m=p=>Cu(p)?.upgradeShowCountCacheKey||Yj;q(()=>{Eo(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=Cu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return q(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ao(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(yt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Rf,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${fi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(bn,{type:"upgrade"})})})}):d(yt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(Rf,"_blank")},children:d(bn,{type:"upgrade"})})})}async function UT(){try{let e=await Je(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=F+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});Jj(a,e,n),document.documentElement.appendChild(r)}catch{}}function Jj(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Te(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Zj(e,[i]),e.appendChild(r),Ca(d(Ji,{lang:t.interfaceLanguage,children:d(Xj,{ctx:n})}),r)}function Zj(e,t){for(let n of t){if(X()&&!Xn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function Xj(e){let[t,n]=N(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");q(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(To,u),()=>{globalThis.document.addEventListener(To,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(X1,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function $m(e){document.dispatchEvent(new CustomEvent(To,{detail:e||{}}))}function $j(e,t){for(let n of t){if(X()&&!Xn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function $1(){let e=await Br(),t=await ln(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await _4(r,t),i=dt(r.url,a?.blockUrls),o=await Rt();if(!a?.enable||i)return UT();let s=document.createElement("div");s.id=F+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return eH(u,e,o,r),document.documentElement.appendChild(s),s}function jT(){let e=document.getElementById(F+"-popup");e&&e.remove(),$1()}function eH(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Te(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);$j(e,[o]),e.appendChild(a),Ca(d(Ji,{lang:t.interfaceLanguage,children:d(Z1,{localConfig:n,ctx:r})}),a)}var HT=!1;async function qT(){HT||(HT=!0,$1().catch(e=>{k.error("init popup error",e)}))}var yc=null;function vc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");yc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function e3(){let e=globalThis.location.href;if(!(!yc||yc.url!==e||!yc.subtitleItems.length))return yc}async function zT(){let e=e3();if(!e)return;let t=await Rt();t.downloadSubtitle=e,await Dt(t),ka(vy)}async function VT(){let e=await Rt();if(e.downloadSubtitle)return e.downloadSubtitle}async function WT(e,t){let n,r;if(t){let a=zm(e);n=new Blob([a],{type:"text/html"}),r=await Qt(),r=Ni(!1,r)}return{siteUrl:location.href,pluginVersion:Hn(),isMobile:qe().any,platform:La(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function GT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await na();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ct}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var t3={};function ao(e){let t=eg(e)||{};t3[e.sourceUrl+"_"+e.to]={...t,...e}}function eg(e){return t3[e.sourceUrl+"_"+e.to]}async function KT(e,t){let n=location.href,r=Object.values(t3).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:La(),images:[],version:Hn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=zm(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Qt();a.userConfig=Ni(!1,o)}return a}async function YT(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await na();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ct}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var Cc={width:94,height:80};function QT(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?QT(e.parentElement,t+1):e}function xu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=QT(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Cc.width+"px",c.style.height=Cc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Cc.width)/2+"px",c.style.top=l.top-u.top+(l.height-Cc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Cc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`,H1="immersive-translate-toastify-shadow-root",q1=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(H1)){let t=document.getElementById(H1);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=H1,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=uj,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Gm(e){e=e||{},new q1({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function UT(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function hn(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{k.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:L0,payload:e},"*")});let n=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(n)}function z1(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Kt(o,s=>{s.preventDefault();let u=r[i];hn({method:u,data:{trigger:"shortcut"}})})}}var lj="imt-fb";function bn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${lj}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function jT(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Km="DROP_DOWN_DEFAULT_VALUE";function V1(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return d("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Km,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Km){s.current.value=Km,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Km,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var cj=({date:e})=>{let{t}=O(),[n,r]=N(!1);return q(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},dj=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},mj=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},gj=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function W1(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[x,w]=N(null),T=jn(),S=async()=>{m("");let A=o;if(o===null)try{let D=await n({url:ki});D?(s(D),A=D,p(!0)):(m(i("unknownError")),l(null))}catch(D){l(null),m(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return q(()=>{we.DEBUG||Qe().then(A=>{let D=A.buildinConfigUpdatedAt;C(A);let M=new Date(D);if(a(D),T==="0.0.0"){h(!0);return}n({url:ki}).then(I=>{let P=I,R=P.minVersion,L=T;s(P);let _=P.latestVersion;if(_&&(qa(L,_)?w(!0):w(!1)),qa(L,R)){let U=P.buildinConfigUpdatedAt;new Date(U)>M?(l(!0),S()):l(!1)}else b(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),q(()=>{Qe().then(A=>{C(A),ia(A)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(mj,{}):c?t===!1?null:d(gj,{handleSyncing:S,message:c,date:r||""}):f?t===!1?null:d(dj,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(cj,{date:r}):null}):null}var HT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var qT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),zT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),VT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),WT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var GT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),KT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),YT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),QT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function Cu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function JT(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Li,`${e.type}_user_info`);return}e.onOpenUrl(Ss,`${e.type}_user_info`)},children:[d("img",{src:n?V8:z8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(pj,{...e})]})}function pj(e){let{t}=O(),n=ne(()=>Cu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Li,`${e.type}_pro_logo`)},children:d("img",{src:gi})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Ln)},children:[d(bn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ln,`${e.type}_user_upgrade`)},children:[KT,d("span",{children:t("popup.upgrade")})]})}function ZT({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=eo(t.config.translationService,t.config.targetLanguage),s=ur;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(fj,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:W8,style:{maxWidth:"unset"},class:"mx-2"}),d(hj,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function fj(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function hj(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var XT=220;function $T(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=Ce(null),[o,s]=N(XT),[u,l]=N(0);return Bu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,b=20,y=30,h=5,v=g.clientHeight-b*2,C=t.length*y+h*3,x=f+m.height;if(C>g.clientHeight-x){let w=Math.min(v,C);l(g.clientHeight-f-w-b)}else l(0);s(Math.max(XT,v))}},[i.current,r,t]),q(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(eS,{item:n,isDefault:!0}),QT]}),d(bj,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function bj(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return q(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(eS,{item:o,onClick:e.onClick},o.value))})}function eS(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:gi}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var yj={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA7VBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/m5ubn5+fl5eXn5+fm5ubn5+fk5OTm5ubl5eXl5eXn5+f////pTRLm5ub+/v3+///8/Pvu7u7w8PDpTRHsZC/xkGvs7Oz2tJnp6en9/f309PTn5+f508P6+vr50cHvgVj39/fqTRH1r5P0q47sXyn88u3o6Ojwh1/29vb2tp3++vn99fH87eb2uaLynHruc0PtazjrVRz76eH64tj51sj3ybb3wKv0p4rxjWf99/T539P5z733w7Dzo4Pznn3rYi3rUBX628/yl3Pve07rWyT2uqMvjnlOAAAAFHRSTlMAIN/vkHC/MBDPQJ+gr2BgUICwf1AE+HAAAAStSURBVGjezZp5W+IwEMZ704KIuxsmtBRrC7JbD8T1AO/11r2+/8fZgtWxmNRAU599/42PP9+ZSTpmoojKXjGNuqPpkEjXLMswq7YiU6pZ04Ahrd6oyCFUjSmgF7S7cd+NSKLI7cfddtCbgmrVogT7izMBeLsuYai/64UTTkMtgKgYekJo90mO+lNObVGMagFAgASuYm9RjG1MTLhESO5iGFMHaEciAMRojbkjFaALYYylzmUjjMnc2g1BN4WzgZGa34whFioHel2yoLo90FQBhgahSxaWGwpQKjoEESkgNwC98i6jTQrKQ4p0BqqdS1GRUZSi8nOOjGLy+NnXICCSFIBjMxkG1m5hRSF7V5rQQ0ZhuT0wmUnvEonqspJvgUekygNrlrGMCZGXFvNN9e4SyYpBz1bYksxgYR0bGSMArnyIC6CWZwSPF6ssI6ioB5XyjKAVoywjKBcLbFm+ESywTy+nr1j/05of0gfniVGFkPBEaetFNOItUD6+B1VMOxNwujXuvNI6Qf086qDG99fIYadeA3bnfvXr0W++0pASFF31N5qojdUDXry0afPAidZgPEGgtk8yNvf/ZFZ9XJ6Nl8qvLTrM/pLmJiUZ3T5OvKDGe5wT30wgdeb527rwEeD/GV7sz0S9RfduL7ebPv7YVov98apNU+KyIEcYp9HNgFJmZezfjDovf0rHZe/HJCk27LDWTjbSUI9OmWFAQ9db2ynmJycptlJl90HrzakeTjAGPAo9SF3/bbE3/YpiQjsHcie0y9eebK9xdoqpGNDNgWwKQQ5TCCfzhmJBXBjyvZkDieFzAumXC+mDgxXMhlAhiI8QZg3rEOVBcFMwJASJQFcAiBhk+G1G5y+QtbxwEYB3IFu4H46bMzokHwvxJUHoWwgVhugQiUHWv85o0MJw5SceS5gDEdHaeyXs5EJ+iEHyN6Ol1CEuDNnMP1YsPCDZEFoAggekCe3iEDyF2Uf9Su5H6zcVoNDV1AmnU63yPr/XaSdyP3iXsb+Zti0X3M8vp4YHzVTHv7+f7VGeh6vT78Pj587ogN/dLTEzT78994ZJy/UwPDx4E7cWPbi4fJh0ZE/yx5y8f57eRHgsyNljtrfbPm3NeD3ysetK5J9zmrtGAlHZSaGjZkYbw5moXs6sjyImJIRKXsN9N/NbzmnGaXbV/7WX13ArBueWi54f+ZmWevAqYFcdXEsS37mllBOtWvpP0A6ndqL1u9VXuiGos8tV1P3XtFNmRSsdrzgYL9mKk2g96RMEpCQF0Eghtp7dj9IvPjD1koVpT1WBnQhXyrrBsdBKGUbKv4pCGVhgJRjBAotlM7pvrrlNCCPJwQqh8eFXtuVfPmPAdsq8RseBQCQxIQZ79OfIHG1o/CGNV8KQpvxx08cPzpDilTgCREpQqJKjIGH8D2PZKWWnyIDZyWfgrgRvITORB2DYcwz9FzAT49BfRKo1vxk3wOcLglrW5sNEbUAb4maWQBzjtnuYjQUwscBoIQCM1GKY0OvnEiYmdKPI6yh1WZtyuuyL5V0vIYDzyS789GqJ8fTKxadXRlWRospynf2IrGaqikzZVdOwrOfncE7dMFeEg/QPIkmRuObwhUMAAAAASUVORK5CYII=",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,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",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABqlBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubf39/q6urm5ubn5+fl5eXm5ubm5ubl5eXm5ubn5+fm5ubl5eXo6Ojk5OTn5+f////m5ubb29vd3d1Li/VQjvVSkPVMjPXv7+9PjfVJivTh4eH7+/zf399IifRIV7pUkPVVkfXp6ellfozx8fHs7Ozg6/309PT9/f36+vr39/dnf46ClKDj4+ODrfRLYsXu7u50iZbBx8tYk/XFys2ImaRwhpT29vZkm/SOtPOgv/KcvfJ5jZlpgI5+qvRhmfR1pPPC1PG2zfHc4/DX4PDk5OTHzM+tuL1HVrqnsrmfq7KSoauqyPt0pvdtn/VdlvVVkPWbvPOLsvPH1/Hn6vDi5/Bnm/Dr7e+owOa5yePT1t3Y2tzV1tfO0NLJztCRmcuhrrWPn6hrgpHm7v240funxfZnnfTi5POWufK80PGKrutnmeqWtejJ0uCkq93Iy9hyfcq8w8daZ76cqrGbqLHv9f670/vr7PfJ2PHI2PCCqux7peyfuuats+B1idW5vdSordCHkM1hjMtddMl8hsdagrligqVlf5MIelvOAAAAFnRSTlMAIN/vkHC/EDBgQJ+vz8+gn1CAbzB/JOfehwAABhBJREFUaN7Nmuef0jAYxymUMo47d9N6ELyenpTKcIEnnuvce++99957b/9nkzT4qE1KA3zU7xve9cvz/J6mkDQWldS0pJ4biicQIRE3DD2ZTcX6iZYciCMB8Vwm3R9DVvcFXrlSrzlVk1B1avVK2fNFA9leDalZg4iAJxxTQG0Cl6gno/WgSOs0gnLNDKHGPAPdajSDNgkMUuqNbjUpnRbhmJFwcFeaGQmiYClH18Qzyp3yWBVqGkNTKqNUN5WZKKFEUiENzDulXowerVVDCFXMLqmQZLQIjjgqOWbXOKUIlnQCeVWzBxwPJdIdHdjsEQwWmaNs9kw51KKBo1eLFpI5NvsClqcfR57ZJzw0lBI6dJjdnqmWxHflDITA0TMOQklh6BWzj1RE4RsQer/CN/50ZCCQ/sWSDEzvhPk7z/bNJxwYGxvLc4YJe6Nb6ijx+4RNDTTrCjEEJITLKnOs/1ZIcLL2+hLuAMkepQnTRIUA4xLJOqXlxRAVAkCzwKHarypCaVEhIBmjCCR7lErRQwoBSf5PyV4FiQMDlkENUyLJA8Oc/FOlhXL6z9W3LpDkOSDhXFGQ1NCg78iikimQyBzFJaYCCGUh9gACB5fMP4p/o9FoeJ7XKDth0cdRTSSROYrFE6NbCYsJI5RRH3vEEfYrTh0zhd0yAw6QbLBtZuBQAQOJ+6Wx2cLhkvFDG482jry8sZ45COOnbXtEIBk1BWC2FufQRKhkwxbss/kQk9B+2cQSlNjih9cAi8QJk6w7TgVHMOEqcTBe2QRwhEocGkpKHIlJcqBRrDxKSlg1Pjy8ZMtq6mDkLbBIJRBKitwlnkTCuInxlpUQuk/hpE3hjg4SD02LJVE5RLISYxx0FG7ZjEiSMklel/xIGWasw/gw/Vy/xGc/cxTm25Szu3ZuH+0oqSA9ZqB6iGQNxqvp5yrss4o4KKxfyxZeWtRZUkc5IqmFSFb/IbnBHLRfTLJwRYgE1kg6wRIJv/gmmsa+gwfXrNmM8ZKCz/gywnYiWbZt27bllHNUIpvhBKqGSPZhfJzmwCCSlVwy+9vk5ELGZLPZXEFoySRVlIghZArhs3QY45v5IoPks6XtmP1p0U+azUWtVuuJTGIi1EmygQSxcT1dsEg8+FDbMfsYj8GyHk6uOAeZKEv49ycc3riRLiybuINykjusi+7a0V4kjIMNzNk0zh2UO7ubay0iOeu6O+0OEnnwxTbrN7E18sU6qIP2iwzwTlJIy22etiyqkAdPR1gmgWXk2oZrY6BgzLm7e+Glc9ZO191OVMwiH+FBiaRYIFcPAI45d8403bXLL7ktixFyMxqxHKpLJCIFOOYcs7ZNuq7bPGv5yJcVQ7pAFgUKcBBm37UuEMlyen2Ljpl8gZQu9QIDOBhvzqwlkl3tQqyQpX6a5KEVMICCc5s4FrnuBb8SguyhlZU+foPXBwfnOxHs5rVQk/zxK5thfnm5Yu7cr9vZDe8+bnfMlP66myJOvtBBQbhtUS5CLeLcc0SSRFg4XSIFOBinLALtWOuMVIJRhkg0cSj7RQZwME5YjCekYVJJCaXlP7j3BA2g4Ly2fB7ydkkioejiO+Vq4PJcARROtafX/xR2awD+BAlwFgh5t/Qnn0+BgCLsFj9eGST9is7beW0e3WcC8IgWrnjMZ7rSjt3zXx2dKvFQhktSCaXttAdc8h4E3CLf+ODRR+ee7/jAry2vBGLn/+iq0SXXmeM8U3ABR1IIx0BltX7tII5fKuHICoGND4V+7aAOO1DJiKQQSMVT6NeOLzYAEiwrBAasHt3y8bTAMfKnoxLY5k5Ksu/pJCXzN7Zs//bmMzSs39voAvQ+xuKUJMd0qcF+Hm3E/9ohzd8/bur/wdk/PAIEi9fTJFc94vgfjmV9Sy8HzEPgCIMelTtdtYoeladi0UgmuiqmrnDoT9AM9WIcj72+oEImrqaplhEtQxFtCoquccoI0lDXNOqdFTUPQae605RwLdRAi0jo6Vj3aJk481QcYZcmMCIMTU/FeiQ7RfDqlQOvXunZWF9IZ3Lil8gGklqsn6SySd0w2q/DDeb05LTITfoBng4pCD/g39QAAAAASUVORK5CYII=",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAACTFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj///8AU+Cz3fLm5uYquf/s7O78/Pzv7+/x8fH6+vrp6en9/f3s7OwLXOH39/f09PQCVeEpt/+53/IOXeL5/P73+v623vLy9v7k7fz+/v8foPcJWuH7/f8SYOICWeKpxvWfv/Pr7O7r6+saZeMWZOMUY+MjqPqh2fW/4fKw3PKq1vGOs/Ho6OgIZ+cEXOMHWOE4vf7v9P3q8f1JwfwkrPv29vb19fWt2PKayvDn6+8Tf+59s+1yqusLbug7fecxduZCvv3l8/vc8PrG2fit2vIZj/LR5fHE4vEYjfGczPCCq/CUxe+OwO9yoO5jn+sNdOpUk+lNj+g1eecGYuUnceQmr/zY5ftaxfvU4vpvy/nK2/iB0PijwvSm1PGJr/HZ5/DL4/DW5u98qO+Hu+53pO5rpetZj+sKa+c9guYdaOQwu//2+/7t9/7n7/0ns/3S4frP3/l0zfm40PfH5vaT1fa0zfaxyvUcmPW84fQakvOQtfLY5vAVhvDl6u/k6u/f6e/c5++CuO1kl+xmoutfk+sOd+tamOlEgektceUnbuUibOQFX+Tg6vuf3fvU7PjO6vfA1fe80veWuPKf0PHV5vDS5u+Ktu9un+1nme1Mh+lGiOhAheff8/+z4/1px/xPw/y92/qQyvl5zfg0pfemyfZttPWP0PQtm/Si0PAqhO1QiepHhekie+lVlehJieggbOP8nkxuAAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAdgSURBVGjezZrnWxNBEMbTSUJVb7MpkAIJCSYUASkiICAoKBYsiB1QsVekY++999577738Y24udzkCs8dB8vD4fuPTj5l3ZnayezKp0o5WRcckKJSYSKlQq6NVeq0skpKrNAoMSBETHxUZgj46ALAnpiQnmW0Mkc2clJySaA+ANPpwCdpRsZjIUm1mACVVW6x+Trw8DERUtN+CxCRGREksRzNcjFztT5JAoCrZMlyMNtofhJmRJPPwMGOUBMG6LBlDvBlypuxgFOIYtXxIYViTmSGr2oqVqiG4YQEyJS2YaGmpSsA4hRmmUogzcgkMBbYCbkgOxiqBEqXEeSRVYVDysDJqUIaFCVMWnkJnJDJhK1GUIucZ4VPkIp5bmIjIQndfgfOYCCkPJ8DnZrRQu2HLZoW7cgzGhBEpmTFWgaanMBFUCmS+ejDTbZ6d8+4cnJhqMBiKim/ffv1q1850cfPV/Rlx4oake3bNP5hqCGps6qF1b96/2+0RtUU1oHqrRRg75909NpYHcJhFH+Z+/Pypih5NMlaGVphGLFlZ8+4KQQiU1qIpU79ezKlkaLKHVphcrLJ23TlmgJT6uGiKK+P7s40iFSaXFkh61UEDRRO3H5rsmjBjzuY06nhRSwokaz5vBpCwhWc3GI17mgs7vBTvMY6SEIhnPkFQteiMYa7RuKbb0eijhaIbPJAsgQHm61zthh1GV0aZo82XDroiFFgcttAYQlWB+XpkWjDZaHQtznY0VlEKbFRw+lL2n3nTlrcvLxGhLDQ9IvkyTpiNHKXwpoxjAww9tlIYT3pW31j9YuYCEcj4dQTiaihH+fcYSBjrRW33Pi1ARM6CizRG6naTaYMxEAq6WilmvQLDm3tpPgrIMYtm/FmTaZMf4prhRJlL4Xwp2OWBkq36OYhX5jRKCddyEOPRmwhd3wfnS06vLc/SChTUeWq2TPtZyNQyEnAH1PkWdhbHwPN3Xx0S1AkHcppA1rEQFzEFrapnBqoGa6iWZOW6kSDQlNRzhLFtrpEVMQU5lnqhfiSmaPEkBtCtLtRHy6BO3DaeQIomByCnshFCz9eCpmhJl9ghyMZ8JGjVAqCyWEYtsYRVgx+SfwRs+tEyFbg0enKdAmPc9IGpWnjGzzAZpnCQ436Is9QDdYpKpgOXFO8zgXFjeb88pbaerDWx2kbmY0CL/RDU5YPWFp1MDQ6uqlVCHOeLQ4NoPWPiVHuIOMJ54mTzuh466mMIBCouXwHPcF/ZEurFyfE842wRmyy+uogKN8IzUgGeJXsRr7rp/Y6QION0H4armYVUHE4Ha1iJbQDkSDBZncWhy0OQcXIT1yJcx7PK9QBnsFKGMQMoh4fMWTKgyVltL1rHec7PLlYn0qBGGQQy7mJx6OrANkfrgk1vWcsFS7IRq9LhQFaHOFLy8Mv+KZONoeLOkzAgPX0Ry1b+mmoEdbwciaYLNv4Ad5A0CYyHTb2oew3ImNqMOG3OgowXL2F3e5CxZIUboTIwkj2k3TkdgEs4FmzGW+5+U2vJSgf5uyUDgmSUBQu+HmpGtSwGHCu7A0dWIT9+t1zxM1D5YoCxptsZLHhwrKhpA/IC8quAYxTPLESsLu8ZCLksDOxL8ICkjvoQyDd+qShvcIUSXBMuo6CcpWnwqB8tdmgVcK04E/HqznCFMIgfgvIPg4eWnnb8+rpYT7gJvFL4Z5sJRQhjcYuAEDl+KTWc9sDtr5bA4T6tEAkqa1jDIxpmZ/dlOLZ6aNudBtcwgNZfFXbHZaivyptPHc3IyDg+Y3Y5CtG1++BKFEMgKni5S1uaiVDFCs6SUGXfbGlpKXeiUFVc8ILLXTyByGFTmL11/sJnF9RZSIquQ4EwVhwltnCfGEfKa6ZUiPjCLdNRbtIqL2WizN/TgHSBqquELz80LERPyRez7xo5UPz70HQJjN4DDJwtPQthZySozW6UeaWEK2FxOR5Qrj4UsoBGYTsM8Wx1o7/+tevFoIw22g/TeA6iVdJ+YldtdTt7yCrRXjEIo9EnevHBWw/Lu9VdsaLEsKVHvLAayc94mu28ovAkG4WSVtqLCKXdLcLI7/BKucFR0++DPTl17hVLSpocNITzGneBAwYi9SpqfeONl8umr6RQ8i/dk3gVRVyxM1R5j1z4M2s5SCn8kQv0IBAIV2BiTz++nI6mzs6C/onq7cpdm8XQVDPgmluFrTYRSpavPudJ08u+9meuaqv3ZYm+pMQP9co2Pc1beTi37efqCnKWXb/6NHftbq+UK9uRv3wmCZsU6Wt0QDrAljCetnTw019sJJ82FCP2SDPyz02Rfzgb4SdAmJIXViXb8gjjf3iWZSmTwnlgTgAYYFdiy7CCsVkw1kn9ZEalxNaaoTOS4Ud/+ucLQw/GbAc+XxBXnGJoGFsihsMQD0aDpWPMBAG4IRmTPDgiyY7hTEnHWC1JogR/EEpdOF9HyeMULKcGBJmrLZgoYZQ27E+vNOKfXun0sogoKi4G/ohMo5LLIimtXqVTq/nP4WJjdKrRkpP0Dx8sQKsIsoHLAAAAAElFTkSuQmCC","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function Ym(e){let t=yj[e];return t}function tS(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=Tj(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(nS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(vj,{...e,currentTranslationService:a})]}):null}function nS(e){let{t}=O(),n=ne(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=di(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d($T,{className:"translate-service",items:n}):d(ua,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function vj({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=xj(e,o),l=Cj(e,o),c=ue((g,p)=>{t(f=>{let b=f.translationServices||{},y=b[u.id]||{};return{...f,translationServices:{...b,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[g.name],onSelected:y=>{if(b.action=="jumpOptions"){let h=b.args||[];r(...h);return}c(g.name,b.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(le,{children:m.map(({label:g,items:p},f)=>d(nS,{label:g,items:p,ctx:e},"field-"+f))})}function Cj(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function xj(e,t){let{lang:n}=O();return ne(()=>{let a=Ms(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Yr,e4,e,n,t])}function Tj({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Ls(t,"translationService",c):[],[t,c]),g=ue(f=>{let b=m.find(y=>y.id===f.value);if(b.ok){if(u({translationService:b.id}),n(y=>(a(y.translationService||"",b.id),{...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=er(t.config),y=m.filter(h=>t.config.showUnconfiguredTranslationServiceInPopup===!1?h.ok:!0).map(h=>{let v=nd(h,e,f,l,!0),C=Ym(h.id);h.id.startsWith("custom-ai")&&(C=Ym("custom-ai")),h.id.startsWith("mock")&&(C="");let x=ri.includes(h.id)&&!h.ok&&!f;return{label:v,value:h.id,selected:h.selected,img:C,onSelected:g,isShowProOrCustom:x,isShowGoSetting:!h.ok&&!x}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Ym("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function rS(e){let t;try{t=new URL(e)}catch{return!1}let n=q5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(Sj(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Sj(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function aS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function iS(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=wj(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=ue(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(ua,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function wj({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&rS(e)){c=aS(e);let{matches:h,excludeMatches:v}=f;m=!!h.find(C=>dt(e,C)),g=!!v.find(C=>dt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:h}=t.config,{matches:v}=h;v.includes(n)?p=!0:p=!1}let b=ue(()=>{let h=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(w=>w.match!==h),x=!1;C.length!==v.length&&(x=!0),x&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=ue((h,v)=>{if(h==="default"){s(w=>{let T={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:G1(e,T.matches),excludeMatches:G1(e,T.excludeMatches)}}}),b();return}let C=h,x=C==="matches"?"excludeMatches":"matches";l&&s(w=>{let T={...w.translationUrlPattern};return T[x]=G1(e,T[x]),T[C]=Hn(v,T[C]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...T}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function G1(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!dt(e,n)):t):[]}function oS(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=Ej(e);return Kr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(ua,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),d("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||ni[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(Aj,{...e})}function Ej({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>ni.filter(s=>!(s==="Off"||ni.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Fa(s)}),l=ni.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function Aj(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(hc).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(ua,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function sS(e){let{isAlwaysTranslateLang:t}=kj({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=Hn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function kj({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function lS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=Se(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:HT,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:GT,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(bl,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:YT,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(yy,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(yt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(uS,{...s})}):d(uS,{...s}))})}function uS(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var Dj=["bing","transmart","google","yandex"];function dS(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:gi,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Ln,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Ln,`${e.type}_trial_pro_service`)}})]}):null}var cS="popup_trial_pro_show_count";function mS(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=Ce(!1);q(()=>{Eo(cS,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!Dj.includes(m)},[t,n,r,i]);return q(()=>{!u||i==null||s.current||(s.current=!0,Ao(cS,i+1))},[u,i,s,a]),{showTrialPro:u}}function K1(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=N(""),[c,m]=N(null),[g,p]=N(null);q(()=>{nt.get(pt,null).then(v=>{v?(m(v),p(kt(v))):p(!1)}).catch(v=>{p(!1)})},[]);let f=!0,b=He();n&&b&&(f=n.generalRule.showSponsorOnSafari);let y=er(n),{showTrialPro:h}=mS({ctx:a,isHidden:y,isProUser:!!g,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[y&&!g?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(JT,{isLogin:!!c,isProUser:!!g,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(Bj,{openSharePage:r})]}),d(ZT,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(tS,{isProUser:!!g,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:h}),d(dS,{showTrialPro:h,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(Pj,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(Ij,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d(_j,{aiContextInfo:s,curUrl:a.url}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(W1,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(iS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(oS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(sS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(Mj,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(Lj,{ctx:a})]}),d(lS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:y})]}),d(Rj,{...e,isProUser:!!g,isShowPricing:f,setMessage:l})]})}function Lj({ctx:e}){if(e.rule.imageRule?.type!="manga"||!sm(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function Mj(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&Mf.includes(i.type||""),[n,Mf,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Vd()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function Pj(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(yt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?zT:VT})})}function Rj(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ue(v=>{i&&(o(C=>ji({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=si(i,s.rawUserConfig),m=Se(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[qT,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(Fj,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(V1,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(Ln),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?b():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(Ln,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(fl,g):v.value==="cleanCache"?da().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&h(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function b(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function h(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function Ij({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Do(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Zn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):X()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Cr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Fa(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function Fj({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=jn();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${F}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),cr(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[Ro(e.config),e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function Bj(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),WT]})}function _j({aiContextInfo:e,curUrl:t}){let{t:n}=O();if(!e?.visible)return null;let r=ne(()=>{let a=new URL(t);return a.searchParams.append(W0,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return d("div",{class:"flex flex-row mt-3 items-center",children:[rT(),d("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&d(yt,{text:n("contextDiffPreview",{1:r}),children:Pm()})]})}var Mye=1e3*3600*24;async function gS(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[Q6]:t.toISOString()}),await Y1(),X()||await K5()}catch(t){k.error("run cron task failed",t)}}async function Y1(){try{let e=await Fr(),t=await $({url:ki});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;qa(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),wa({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}function Qm(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Ne(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});Je(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,b]=N(null),[y,h]=N({visible:!1,preview:!1}),v=Ce(!1);q(()=>{!f||v.current||(v.current=!0,Be("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,v]);let C=_=>{r(_.detail)};q(()=>(document.addEventListener(To,C,!1),Fr().then(_=>{l(_);let U=Lt();p(U);let z=st();r(z),gS(_.interval)}),document.addEventListener("urlChange",T),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",T)}),[]),q(()=>{Fr().then(_=>{l(_)})},[a]),q(()=>{c&&u&&Jm().then(_=>{b(_)})},[c,u]),q(()=>{let _=md();h({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let x=ue((_,U)=>{S("change_translate_service",!1,{translation_service:`${_}_${U}`})()},[]);if(!u||!f)return null;return d(K1,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{S("switchTranslationMode",!0,{mode:_})()},aiContextInfo:y,request:$,onClose:A,onToggleEnabled:D,onChangeService:x,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),onTranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onWebReport:S("webReport",!0),onTranslatePdf:()=>{I(Lo(f.rule)||c)},openAboutPage:R,openSharePage:S("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Br,onSetBuildinConfig:O5,onAutoEnableSubtitleChanged:S("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:S("toggleEnableEditTranslation",!0),updateContextState:_=>S("updateContextState",!0,_)(),onOpenUrl:M,onUpdateFloatBallEnable:S("updateFloatBallEnable",!0)});function w(_){p(_);let U=jT(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:U})),Tr(_)}function T(){m(globalThis.location.href)}function S(_,U,z={}){let Y={trigger:"page_popup",...z};return()=>{hn({method:_,data:Y}),U&&t()}}function A(){t()}function D(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function M(_,U){let z=_;U&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${U}`),xd(z,!0),setTimeout(()=>{A()},50)}function I(_){_&&(Bs(!1,_),setTimeout(()=>{A()},50))}function P(_=!0,U=""){Ea(_,U),setTimeout(()=>{t()},50)}function R(){Cd(),setTimeout(()=>{t()},50)}function L(){G5(),setTimeout(()=>{t()},50)}}function vS(){let[e,t]=N("Original");return q(()=>{let n=st();t(n);let r=a=>{t(a.detail)};return document.addEventListener(To,r),()=>{document.removeEventListener(To,r)}},[]),{pageStatus:e}}function CS(){let[e,t]=N("Original");return q(()=>{let n=Is();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ll,r),()=>{document.removeEventListener(ll,r)}},[]),{mangaStatus:e}}var pS=6,Oj={position:"right",top:335};function xS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=N(!1),l=Ce(!1);l.current=s;let c=Ce(null),m=Ce(!1),g=Ce(n.floatBallConfig||Oj),p=Ce(0),f=Ce(0),b=Ce(0),y=Ce(!1),h=Ce(0),v=Ce(0),C=Ce(0),x=Ce(0),w=Ce(!1),T=ue(S=>{if(!a)if(clearTimeout(c.current),S)u(S);else{let A=qe().any||Cr();c.current=setTimeout(()=>{u(S),y.current=!1},A?3e3:0)}},[u,c,y,a]);return q(()=>{a||u(!1)},[a]),q(()=>{if(i.current&&g.current){let S=Q1(g.current.top);g.current.top=S,i.current.style.top=`${S}px`,i.current.style.display="flex"}},[t,i]),q(()=>{if(!o.current||!i.current)return;let S=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,h.current=Date.now(),b.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),T(!0),C.current=L.clientX,x.current=L.clientY,w.current=!1,(qe().any||Cr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{fS({startX:p.current,startY:f.current,endX:C.current,endY:x.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",I),document.addEventListener("mouseup",D),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},A=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,x.current=L.clientY,w.current))return;let _=L.clientY-f.current+b.current,U=Q1(_);i.current.style.top=`${U}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),R(),m.current=!1,clearTimeout(c.current),y.current||T(!1),w.current)return;fS({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let U=Q1(L.clientY-30);g.current.top=U;let z=await Mn();Br({...z,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),S(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},P=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},R=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",S),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",S),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,T,e]),q(()=>{if(qe().any)return;let S=D=>{D.target===i.current&&!y.current||!l.current&&bS(D)&&c.current||(y.current=!0,T(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&bS(D)&&c.current)){if(m.current){y.current=!1;return}D.target===i.current&&!y.current||T(!1)}};return i.current?.addEventListener("mouseover",S),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",S),i.current?.removeEventListener("mouseout",A)}},[i,m,T,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:T}}function fS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>pS||i>pS}function TS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function SS(){let[e,t]=N(!1);return q(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var hS="hasShownFloatingBallGuide",Nj="2024-01-06";function wS(e,t){let[n,r]=N(!1),a=ue(()=>{rt(hS,new Date().toISOString()),r(!0)},[r]);q(()=>{if(!e.config.enableShowFloatingBallGuide||Lt()==e.targetLanguage)return;let o=dt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Pt(hS,""),u=await Pt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(I0,o),()=>{document.removeEventListener(I0,o)}},[]);let i=ue(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function ES(){document.dispatchEvent(new CustomEvent(I0))}function AS(e,t){let n=Ce(0),[r,a]=N(!0),[i,o]=N(!1),s=Ne(),[u,l]=s,{t:c}=O(),m=ue(()=>{e?.config.floatBallTooltipRule&&(qe().any||Cr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);q(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=ue(async()=>{if(!e)return;n.current=n.current+1,m();let b=await ln();l(y=>{let h={...b};return qe().any?h.h5FloatBallMainBtnTooltipShownCount=n.current:h.pcFloatBallMainBtnTooltipShownCount=n.current,h})},[l,m,n,e]),p=ne(()=>qe().any||!r||Cr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||Cr())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${Fa(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function Q1(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var J1=0;function bS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(J1=Date.now(),!0):Date.now()-J1<100}function kS(e,t){q(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(So,n),()=>{globalThis.document.addEventListener(So,n)}},[e,t])}function DS(e,t){let n=Ce(e);n.current=e,q(()=>{!n.current||!t||Be("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var yS="imt-float-ball-active";function LS(e){q(()=>{let t=!!document.querySelector(`meta[name='${yS}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(yS)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(P0,n),()=>{document.removeEventListener(P0,n)}},[])}function MS(e){document.dispatchEvent(new CustomEvent(P0,{detail:{active:e}}))}function Uj({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return q(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(le,{children:[e&&d("div",{className:`${F}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${F}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${F}-sheet-content`,children:n})})]})}var Zm=Uj;var Vo="imt-fb";function RS(e){if(globalThis.innerWidth<=385)return d(Zm,{isOpen:e.visible,onClose:e.onClose,children:d(PS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${F}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${F}-popup-overlay`,class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(PS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function PS(e){let{t}=O(),[n,r]=N("UntilNext"),a=vd()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Vo}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Vo}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(bn,{type:"modal-close"})})]}),d("div",{class:`${Vo}-close-radio-content mt-3`,children:o.map(s=>d(jj,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Aa(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Vo}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Vo}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function jj(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=Hj(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Vo}-radio-sel`:`${Vo}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function Hj(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var Wo="imt-fb";function IS(e){let{t}=O(),n=a=>{a?.target?.id===F+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${Wo}-guide-container`,style:r,children:[d("img",{class:`${Wo}-guide-bg ${e.fixedPosition}`,src:qj}),d("div",{class:`${Wo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${Wo}-guide-img`,src:rn("images/float_ball_intro.png")}),d("div",{class:`${Wo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` +${t("floatBall.longPress")}`:""]}),d("div",{class:`${Wo}-primary-btn ${Wo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var qj="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var FS="imt-manga";function BS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===F+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ue(()=>{if(t(),!a.isPro){if(a.user)return window.open(sy);window.open(iy)}},[a,t]);return e?d("div",{onClick:o,id:F+"-popup-overlay",class:`${F}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${FS}-guide-bg ${r}`,src:`${xn}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${FS}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(bn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var fi="imt-fb";function Z1(e){let{t}=O(),n=Ne(),[r,a,i,o]=n;Je(r,a);let s=ft(r),u=e.ctx,{isFullScreen:l}=SS(),[c,m]=N(!1),g=Ce(c);g.current=c;let[p,f]=N(!0),{pageStatus:b}=vS(),y=si(u,r),h=ue(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&hn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,hn,m]),v=ue(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:x,active:w,ballRef:T,floatBallConfigRef:S,setActive:A}=xS({handleBallClick:h,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),D=y?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:P}=wS(e.ctx,y),{closeTransform:R,logoContainerTransform:L,settingTransform:_,mangaTransform:U}=TS(y,w||I);DS(u,w);let{tooltipDelay:z,disableTooltip:Y,tooltipText:ee,handleShowTooltip:Re}=AS(u,b);kS(m,g),LS(A);let H=globalThis.innerWidth<=385;return C?d(le,{children:d("div",{class:`${fi}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||I||c?"all":"none"},ref:x,children:[d(zj,{ctx:u,setVisible:f,closeTransform:R,setActive:A,getModalStyle:()=>_S(S.current.top,300,D)}),d(yt,{enableMobile:!0,text:ee,position:M,delay:z,onShow:Re,disable:Y,children:d("div",{class:`${fi}-btn ${D} btn-animate `,ref:T,style:{transform:L,opacity:w||I?1:.5},children:d("div",{children:[d(bn,{type:"logo"}),d(bn,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),d(Gj,{ctx:u,mangaTransform:U,floatBallConfigRef:S,fixedPosition:D,hidden:I}),d("div",{style:{marginTop:"12px",transform:_},class:`${fi}-more-buttons btn-animate`,children:[d(yt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{xd(hy,!0)},children:d(bn,{type:"file"})})}),d(yt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${fi}-more-button`,onClick:()=>{A(!0),m(!0)},children:d(bn,{type:"setting"})})}),d(Yj,{ctx:u,tooltipPosition:M,rule:y,active:w})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:_},class:`${fi}-more-buttons btn-animate`,children:d(yt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xo,{detail:{type:"webReport"}}))}})})}),d(X1,{onClose:()=>{A(!1),m(!1)},isSheet:H,visible:c,getModalStyle:()=>_S(S.current.top,500,D)}),d(IS,{visible:I,top:S.current.top,fixedPosition:D,onClose:()=>{P(),A(!1)}})]})}):null}function zj(e){let{t}=O(),[n,r]=N(!1),a=Ne(),[i,o,s,u]=a,l=si(e.ctx,i),c=ue(g=>{e.ctx&&o(p=>ji({...p},g))},[e.ctx,o]),m=ue(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(le,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(bn,{type:"close"})}),d(RS,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function X1(e){let t=n=>{n?.target?.id===F+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Zm,{isOpen:e.visible,onClose:e.onClose,children:d(Qm,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.getModalStyle(),children:d(Qm,{onClose:e.onClose})})}):null}function Vj(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var _S=(e,t,n)=>{let a=Vj().height,i={position:"fixed"},o=0;return D6()&&(e=Wj.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},Wj={position:"right",right:0,top:335};function Gj({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=CS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();q(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Dt(p))})},[c,s]);let g=ue(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await nt.get(pt,null);if(kt(f)){e.user=f,e.isPro=!0,hn({method:"toggleTranslateManga"});return}s(!0);return}hn({method:"toggleTranslateManga"})},[]);return!sm(l)||r||!l?.enable?null:d(le,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(bn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(bn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(bn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(yt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xo,{detail:{type:"mangaReport"}}))}})})]}),d(BS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var Kj="float_ball_upgrade_show_count";function Yj(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=er(n.config),s=Ce(!1),[u,l]=N(null),c=ne(()=>Cu(n.config),[n]),m=p=>Cu(p)?.upgradeShowCountCacheKey||Kj;q(()=>{Eo(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=Cu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return q(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ao(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(yt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Rf,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${fi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(bn,{type:"upgrade"})})})}):d(yt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(Rf,"_blank")},children:d(bn,{type:"upgrade"})})})}async function OS(){try{let e=await Qe(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=F+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});Qj(a,e,n),document.documentElement.appendChild(r)}catch{}}function Qj(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Se(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Jj(e,[i]),e.appendChild(r),va(d(Ji,{lang:t.interfaceLanguage,children:d(Zj,{ctx:n})}),r)}function Jj(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function Zj(e){let[t,n]=N(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");q(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(So,u),()=>{globalThis.document.addEventListener(So,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(X1,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Xm(e){document.dispatchEvent(new CustomEvent(So,{detail:e||{}}))}function Xj(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function $1(){let e=await Fr(),t=await ln(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await _4(r,t),i=dt(r.url,a?.blockUrls),o=await Rt();if(!a?.enable||i)return OS();let s=document.createElement("div");s.id=F+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return $j(u,e,o,r),document.documentElement.appendChild(s),s}function NS(){let e=document.getElementById(F+"-popup");e&&e.remove(),$1()}function $j(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Se(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Xj(e,[o]),e.appendChild(a),va(d(Ji,{lang:t.interfaceLanguage,children:d(Z1,{localConfig:n,ctx:r})}),a)}var US=!1;async function jS(){US||(US=!0,$1().catch(e=>{k.error("init popup error",e)}))}var bc=null;function yc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");bc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function e3(){let e=globalThis.location.href;if(!(!bc||bc.url!==e||!bc.subtitleItems.length))return bc}async function HS(){let e=e3();if(!e)return;let t=await Rt();t.downloadSubtitle=e,await Dt(t),Aa(by)}async function qS(){let e=await Rt();if(e.downloadSubtitle)return e.downloadSubtitle}async function zS(e,t){let n,r;if(t){let a=qm(e);n=new Blob([a],{type:"text/html"}),r=await Qt(),r=Ni(!1,r)}return{siteUrl:location.href,pluginVersion:jn(),isMobile:qe().any,platform:Da(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function VS(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ta();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ct}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var t3={};function ao(e){let t=$m(e)||{};t3[e.sourceUrl+"_"+e.to]={...t,...e}}function $m(e){return t3[e.sourceUrl+"_"+e.to]}async function WS(e,t){let n=location.href,r=Object.values(t3).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:Da(),images:[],version:jn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=qm(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Qt();a.userConfig=Ni(!1,o)}return a}async function GS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ta();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ct}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var vc={width:94,height:80};function KS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?KS(e.parentElement,t+1):e}function xu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=KS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=vc.width+"px",c.style.height=vc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-vc.width)/2+"px",c.style.top=l.top-u.top+(l.height-vc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-vc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let m=a("translateFail");r==="gif_not_supported"&&(m=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6050,25 +6050,25 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${Wo}-primary-btn ${Wo}-guide - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function n3(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var xc=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function JT(e,t,n){if(e=="manga")return KT(t,n);if(e=="web")return WT(t,n)}function ZT(e,t,n,r,a,i){if(e=="manga")return YT(t,n,a,i,r);if(e=="web")return GT(t,n,a,i,r)}function tg(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(f.value)||f.value.trim()==="",m=document.createElement("div");m.innerText=s("reportInfo.title"),m.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(m);let g=document.createElement("div");g.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function n3(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Cc=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function YS(e,t,n){if(e=="manga")return WS(t,n);if(e=="web")return zS(t,n)}function QS(e,t,n,r,a,i){if(e=="manga")return GS(t,n,a,i,r);if(e=="web")return VS(t,n,a,i,r)}function eg(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(f.value)||f.value.trim()==="",m=document.createElement("div");m.innerText=s("reportInfo.title"),m.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(m);let g=document.createElement("div");g.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; padding: 9px 12px; - flex: 1;`),p.addEventListener("input",function(){S.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; + flex: 1;`),p.addEventListener("input",function(){T.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";nt.get(pt,null).then(D=>{D&&(h=D.email,f.value=D.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let b=document.createElement("div");b.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),b.append(y),b.append(f),a.append(b);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let D=l(this.value);S.disabled=c(),D?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let x=document.createElement("label");x.htmlFor=C.id,x.innerText=s("reportInfo.attachLog"),x.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(C),w.append(x),a.append(w);let S=document.createElement("button");S.className=F+"-btn",S.innerText=s("reportInfo.submit"),S.disabled=!0,S.onclick=async()=>{if(S.uploading||p.value.trim()===""||!l(f.value))return;let D=await JT(e,t,C.checked);S.uploading=!0;try{XT(S,!0),await ZT(e,t,p.value,f.value!==h?f.value:"",C.checked,D),tH(s,r,a,i,o)}catch{nH(t,n,s,r,a,i,o,e)}finally{S.uploading=!1,XT(S,!1)}},i.appendChild(S);let T=document.createElement("div");T.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(T);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function XT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(F+"-loading-spinner"),e.appendChild(n))}function tH(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let b="";nt.get(pt,null).then(D=>{D&&(b=D.email,f.value=D.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let h=document.createElement("div");h.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),h.append(y),h.append(f),a.append(h);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let D=l(this.value);T.disabled=c(),D?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let x=document.createElement("label");x.htmlFor=C.id,x.innerText=s("reportInfo.attachLog"),x.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(C),w.append(x),a.append(w);let T=document.createElement("button");T.className=F+"-btn",T.innerText=s("reportInfo.submit"),T.disabled=!0,T.onclick=async()=>{if(T.uploading||p.value.trim()===""||!l(f.value))return;let D=await YS(e,t,C.checked);T.uploading=!0;try{JS(T,!0),await QS(e,t,p.value,f.value!==b?f.value:"",C.checked,D),eH(s,r,a,i,o)}catch{tH(t,n,s,r,a,i,o,e)}finally{T.uploading=!1,JS(T,!1)}},i.appendChild(T);let S=document.createElement("div");S.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(S);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function JS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(F+"-loading-spinner"),e.appendChild(n))}function eH(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=F+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function nH(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=F+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function tH(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=F+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",tg(s,e,t,r,a,i,o)},i.append(m)}var ng=[],$T=[];async function a3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(i3()||ng.includes(t))return"";if(ng.length>=s)return new Promise((l,c)=>{$T.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});ng.push(t);try{let u=await oH(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await ew(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{ng.shift(),(async()=>{let u=$T.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await a3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function rH(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ct}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${tw(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await $({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function aH(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function iH(e,t,n){let r=await aH(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):$({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await sv(a)})}async function oH(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=sH(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await dd(u);ao({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await rH(e,r,l,n.type);if(c.objectKey&&ao({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await iH(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return X()?m=await fetch(r3()+"/trigger",{method:"POST",body:wd(u),headers:{token:e.user?.token||""}}).then(async g=>(await Hi(g,"manga"),g.json())):m=await $({url:r3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ao({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function ew(e,t,n,r,a){let i=i3();if(i)return;Ir("Translating",i);let o=await $({url:r3()+`/${t}/task-state?comicHash=${n}&domain=${tw(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await _C(t,r.queryIntervalTime||100),ew(e,t,n,r,a))}function r3(){return ct+"comics"}function sH(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=ua[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function tw(e){return e.replaceAll(".","_")}var Vt,o3,ag,Tc,an=!1;function i3(){return an}var nw=!1;function iw(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;an=!1,!nw&&Vt.injectedCss&&(rr(document,`${Vt.injectedCss}`,F+"-image-injected-css"),nw=!0);let t=!1,n=Bn(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=uw(Vt);for(let i of a){if(an)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await tt(20),await r(i,t))}},100);if(Ne("translate_manga",[{name:"translate_manga"}],e),n(),o3=new MutationObserver(a=>{n()}),o3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;Tc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Go(e,o.target),Tc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}ag=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(Tc?.unobserve(a),Tc?.observe(a)):await Go(e,a)))}}async function Go(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Is();if(n&&(an=!1),an||hH(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=lH(e,t);u||(s=xu(e,t,"translating")),n&&Ne("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await cH(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await uH(e,t,o,a,s)),an&&!n)return;l?(t.translationStatus="success",u||xu(e,t,"success")):(u||xu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Ir("Error",an))}catch(l){if(an&&!n||(t.translationStatus="error",a=="manga"&&Ir("Error",an),fH(e,l),u))return;if(l instanceof xc)return xu(e,t,"error",l.type);xu(e,t,"error")}finally{n&&Ir(i,an),s?.remove()}}function ow(){if(!Vt)return;an=!0,o3?.disconnect(),ag?.disconnect(),Tc?.disconnect();let e=uw(Vt);for(let t of e)Ko(t)}function Ko(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Ko(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function uH(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await dH(l,c,t.cloneNode(!0))}else o=await lw(t);if(an)return;if(!o||o.size<6*1e4){ag?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await i4(o);return await s3(e,t,s)?!0:s?sw({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function sw({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await gH(n)||n,u=r||a;try{if(an)return;Ir("Translating",an),n3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ao(l);let m=await a3(e,u,s,a,i,g=>{n3(e,o,g)});return m?(l.targetUrl=m,ao(l),await cw(Vt,t,m),Ir("Translated",an),!0):!1}catch(l){if(ao({sourceUrl:u,to:e.targetLanguage,error:l.message}),an)return;throw l}}async function s3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=eg(r);return a&&a?.targetUrl?(await cw(Vt,t,a.targetUrl||""),Ir("Translated",an),!0):!1}function lH(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=eg(r);return a&&a?.targetUrl}return!1}async function cH(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!pH(a,i)){ag?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await s3(e,t,o))return!0;let s=null;if(Ir("Translating",an),an)return;if(i.startsWith("blob:")){let m=await fetch(i);await Hi(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await mH(i);else{let m=await $({url:i,responseType:"base64"});s=await Ed(m)}if(an)return;if(await bx(s))throw new xc("GIFs not supported","gif_not_supported");let l=await i4(s);if(!o&&(o=l,await s3(e,t,o)))return!0;if(!o)return!1;return sw({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function uw(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function lw(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function dH(e,t,n){return new Promise((r,a)=>{$({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await lw(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function cw(e,t,n){try{return await rw(e,t,n)}catch{let a=await bH(n);return rw(e,t,a)}}async function rw(e,t,n){return new Promise((a,i)=>{if(an)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function mH(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function gH(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function pH(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Jd(e.inValidSrcRegex,t):!0}var rg=0,Sc=0;function fH(e,t){if(rg!=0){Sc++;return}if(t.message.indexOf("quota exceeded")>0){aw(e,t);return}Sc++,rg=setTimeout(()=>{if(Sc<(Vt.errorTimes||3)){rg=0,Sc=0;return}aw(e,t),Sc=0,rg=0},Vt.errorInterval||3e3)}function aw(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(_n,{detail:r}))}function u3(e){return e.classList.contains("imt-img")||e.hasTranslate}function hH(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function bH(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var yH="showImagePricingModal";function ig(e){document.dispatchEvent(new CustomEvent(yH,{detail:JSON.stringify({trigger:e})}))}var Va=null;async function dw(e,{srcUrl:t}){if(!ci(e))return;if(!await As(e)){ig("image_right_menu");return}if(!Va){k.error("rightMenu image ele not found",t,Va);return}if(Va.translationStatus!=="translating"){if(Va.hasTranslate){Ko(Va);return}if(t!==Va.src)try{let r=new URL(t),a=new URL(Va.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,Va.src,r);return}Go(e,Va,!0,"image_right_menu")}}function mw(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Va=e.target)})}var gw=0;function Ec(e){let t=Date.now();if(t-gw<2e3||(gw=t,vH()))return;let n=`${F}-modal-root`,r=`${F}-modal`,a=document.getElementById(n),i=`${F}-modal-title`,o=`${F}-modal-body`,s=`${F}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,wc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=Te();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=F+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=F+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let h=document.createElement("div");h.className=o+" notranslate",g.appendChild(h);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",b=>{b.target==u&&(u.style.display="none")}),e(u,f,h,y,wc)}setTimeout(()=>{CH()},100)}function vH(){let e=document.querySelector(`#${F}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-modal`)?.style.display=="block":!1}function CH(){let e=document.querySelector(`#${F}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function wc(e,t=!1){let n=document.querySelector(`#${F}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function pw(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();un({...l,sameLangCheck:!1}),o(i,!0)})}var fw=0;async function hw(e){let t=Date.now();if(t-fw<2e3||(fw=t,xH()))return;let n=`${F}-toast-root`,r=`${F}-toast`,a=document.getElementById(n),i=`${F}-toast-msg`,o=`${F}-toast-content`,s=`${F}-toast-hidden`,u,l,c=()=>{l&&l3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,l3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),y=document.createElement("style"),b=Te();y.textContent=b.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),h.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=F+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},h.addEventListener("click",x=>{x.target==g&&(g.style.display="none")}),e(g,u,l,l3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{SH()},100),m=setTimeout(c,2500)}function xH(){let e=document.querySelector(`#${F}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-toast`)?.style.display=="flex":!1}function SH(){let e=document.querySelector(`#${F}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-toast`);t&&(t.style.display="flex")}}function l3(e,t=!1){let n=document.querySelector(`#${F}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function c3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${F}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",bw({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(oy)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(V0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(dy)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(we.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(we.OPTIONS_URL)},d3(e,e.config.translationService,!1,f).then(h=>{h?(g=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{yw(h),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await un(f),bw({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=F+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function bw(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Kr,{detail:e});globalThis.document.dispatchEvent(t)}var vw=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},xw=[()=>{Kt.unbind()}],Cw=[...xw],TH=yr(async()=>{await Aa()},50),wH=yr(async()=>{await xd()},50),EH=yr(async()=>{await G5()},50),AH=yr(async()=>{await W5()},50),Sw=yr(e=>{hn({method:e,data:{trigger:"userscript_menu"}})},50),m3=!1,kH=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!m3&&e&&e.length>0?Ll({text:e}):Ll({})},50),DH=()=>{m3=!0,setTimeout(()=>{m3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(vw)return;vw=!0,X()||O5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(re+"DocumentMessageUser",Dw),document.addEventListener(re+"DocumentMessageUpdateUser",Lw),document.addEventListener(re+"ChangeSuccessService",Mw.bind(null,t)),document.addEventListener(re+"ChangeService",Pw.bind(null,t)),document.addEventListener(_n,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(P0,Zt.showToastByEvent.bind(null,t)),document.addEventListener(xo,Zt.showModal.bind(null,t)),n.addEventListener(re+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(_6,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(O6,Zt.eventUpload.bind(null,t)),n.addEventListener(I0,a=>{St()||b3(a,t)}),n.addEventListener(N6,Rw),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",kH),document.addEventListener("contextmenu",DH),mw(),St()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),X()&&(St()||n.addEventListener(Kr,Zt.handlePopupInit)),St()||Qi.rootIframe(H0).handleAsk("throttleRequest",n8)};function Tw(e,t){PH(),Zt.SetupDomListenersForOnce(t,e),X()&&(St()||(z1(e.config),RH(e.config))),xr()&&Iw(e,t),He()&&z1(e.config)}Zt.handlePopupInit=e=>{qT()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===M0&&Ea(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){wc(n);return}let r=n.getAttribute(`data-${F}-event`);r&&Ne(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${F}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),ww({method:"retryFailedParagraphs"}),wc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${F}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Ec(c3.bind(null,t,o,i,s));return}}};async function LH(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function MH(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;hw(pw.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Ec(c3.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Ec(tg.bind(null,"manga",e)):r=="webReport"&&Ec(tg.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=p3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")ww({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")K5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")LH();else if(i.type==="toggleEnableInputTranslation")MH();else if(i.type==="syncAppSetting")Ew(i.data);else if(i.type==="translatePage")IH(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Ds(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=eo(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await FH(i.data,o)}catch(s){Ac(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await BH(o,i.data)}catch(s){Ac(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await vd(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await VT();else if(i.type==="sharePage")b3({detail:i.data},r);else if(i.type==="switchTranslationMode")g3(i.data);else if(i.type=="getAsyncAiAssistants")a=await nc();else if(i.type=="addAiAssistantAsync")a=await No("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await No("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await h3(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await f3(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Qd("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await Nv(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Z5());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await X5());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await Uv(i.data));else if(i.type==="openPopup")$m({...i.data,open:!0});else if(i.type==="closePopup")$m({...i.data,open:!1});else if(i.type==="togglePopup")$m({...i.data});else if(i.type==="getPageStatusAsync")a=st();else if(i.type==="restorePage")_H();else if(i.type==="getPageLanguageAsync")a=Lt();else if(i.type==="showFloatBallGuide")kT();else if(i.type=="getAsyncDetectAndSetLanguage")a=await kw(i.data);else if(i.type=="setFloatBallActive")RT(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Fs(r,s,o,!0)}else Sw(i.type);a!=null&&i.id&&Ac(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{Aw()},10)};Zt.handleSecurityPolicyViolation=e=>{we.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ne(n.name,[{name:n.name}],{...e})};function PH(){Cw.forEach(e=>{e()}),Cw=xw}function RH(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Vd.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:sl,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:ul,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:il,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:wf,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===il?TH():i.id===wf?wH():i.id===ul?EH():i.id===sl?AH():Sw(i.id)},i.key)}}function ww(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Kr,{detail:e});globalThis.document.dispatchEvent(t)}async function Ew(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await it(Fe(),t)}async function IH(e){let t=await Ew(e);pr(t)}function Ac(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function FH({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await fn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function BH(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await fn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function _H(){st()!=="Original"&&fa()}var Yo={};async function y3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Tr(n),n}async function Fw(e){let t=0,n=0;$n("Translating");let r=Lt(),a=cd(),i=[...document.querySelectorAll(".source-text")];if(Ks(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(Ys(m,c.id)?.remove(),m.appendChild(ql(e,c.id,!0)))}),await s(l),await tt(0)}}catch(u){throw u}finally{t=0,n=0,$n("Translated")}async function s(u){await fn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=Ys(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Yo[g]={ok:!1,sentence:m},_w(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Yo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function Bw(e){let t=0,n=0;$n("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yo),a=[],i=[];for(let o of r){let s=Yo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yo[o],c.appendChild(ql(e,o)),i.push(s.sentence))}}}try{await fn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Ys(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Yo[l]={ok:!1,sentence:u},_w(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Yo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,$n("Translated")}}function v3(){$n("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function _w(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(_n,{detail:i}))}var og={};async function Ow(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return Tr(n),n}async function Nw(e){$n("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(og),n=[];for(let r of t){let a=og[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${_0}='${r}']`);o&&o.remove(),n.push(a)}}try{fc(),await Gm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{$n("Translated")}}function Uw(e){Object.values(og).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=vu(e,t.targetNodes);no(e,i,r,t.rootNodes||[]),qo(t.targetNodes)}else n==="dual"&&qo(t.targetNodes)}),$n("Original")}async function jw(e){$n("Translating");let t=wl(),n=Pa(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Vi(l,e);let c=l.body;if(!c)continue;Ra(l.documentElement,e.state.translationMode);let m=En(e);m.isModifyImage=!1;let g=[];await pi({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await tt(0)}o(a),$n("Translated");function o(u){document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Gs(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=lm(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:Vm(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await _1(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),og[p.id]=p)}Gm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function sg(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!qi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,C3,Hw=!1,ug=null,OH=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=F+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",eg(s,e,t,r,a,i,o)},i.append(m)}var tg=[],ZS=[];async function a3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(i3()||tg.includes(t))return"";if(tg.length>=s)return new Promise((l,c)=>{ZS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});tg.push(t);try{let u=await iH(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await XS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{tg.shift(),(async()=>{let u=ZS.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await a3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function nH(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ct}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${$S(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await $({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function rH(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function aH(e,t,n){let r=await rH(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):$({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await iv(a)})}async function iH(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=oH(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await cd(u);ao({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await nH(e,r,l,n.type);if(c.objectKey&&ao({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await aH(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return X()?m=await fetch(r3()+"/trigger",{method:"POST",body:Sd(u),headers:{token:e.user?.token||""}}).then(async g=>(await Hi(g,"manga"),g.json())):m=await $({url:r3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ao({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function XS(e,t,n,r,a){let i=i3();if(i)return;Rr("Translating",i);let o=await $({url:r3()+`/${t}/task-state?comicHash=${n}&domain=${$S(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await FC(t,r.queryIntervalTime||100),XS(e,t,n,r,a))}function r3(){return ct+"comics"}function oH(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function $S(e){return e.replaceAll(".","_")}var Vt,o3,rg,Tc,an=!1;function i3(){return an}var ew=!1;function rw(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;an=!1,!ew&&Vt.injectedCss&&(rr(document,`${Vt.injectedCss}`,F+"-image-injected-css"),ew=!0);let t=!1,n=Bn(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=ow(Vt);for(let i of a){if(an)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await tt(20),await r(i,t))}},100);if(Be("translate_manga",[{name:"translate_manga"}],e),n(),o3=new MutationObserver(a=>{n()}),o3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;Tc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Go(e,o.target),Tc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}rg=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(Tc?.unobserve(a),Tc?.observe(a)):await Go(e,a)))}}async function Go(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Is();if(n&&(an=!1),an||fH(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=uH(e,t);u||(s=xu(e,t,"translating")),n&&Be("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await lH(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await sH(e,t,o,a,s)),an&&!n)return;l?(t.translationStatus="success",u||xu(e,t,"success")):(u||xu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Rr("Error",an))}catch(l){if(an&&!n||(t.translationStatus="error",a=="manga"&&Rr("Error",an),pH(e,l),u))return;if(l instanceof Cc)return xu(e,t,"error",l.type);xu(e,t,"error")}finally{n&&Rr(i,an),s?.remove()}}function aw(){if(!Vt)return;an=!0,o3?.disconnect(),rg?.disconnect(),Tc?.disconnect();let e=ow(Vt);for(let t of e)Ko(t)}function Ko(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Ko(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function sH(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await cH(l,c,t.cloneNode(!0))}else o=await sw(t);if(an)return;if(!o||o.size<6*1e4){rg?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await i4(o);return await s3(e,t,s)?!0:s?iw({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function iw({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await mH(n)||n,u=r||a;try{if(an)return;Rr("Translating",an),n3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ao(l);let m=await a3(e,u,s,a,i,g=>{n3(e,o,g)});return m?(l.targetUrl=m,ao(l),await uw(Vt,t,m),Rr("Translated",an),!0):!1}catch(l){if(ao({sourceUrl:u,to:e.targetLanguage,error:l.message}),an)return;throw l}}async function s3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=$m(r);return a&&a?.targetUrl?(await uw(Vt,t,a.targetUrl||""),Rr("Translated",an),!0):!1}function uH(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=$m(r);return a&&a?.targetUrl}return!1}async function lH(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!gH(a,i)){rg?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await s3(e,t,o))return!0;let s=null;if(Rr("Translating",an),an)return;if(i.startsWith("blob:")){let m=await fetch(i);await Hi(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await dH(i);else{let m=await $({url:i,responseType:"base64"});s=await wd(m)}if(an)return;if(await fx(s))throw new Cc("GIFs not supported","gif_not_supported");let l=await i4(s);if(!o&&(o=l,await s3(e,t,o)))return!0;if(!o)return!1;return iw({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function ow(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function sw(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function cH(e,t,n){return new Promise((r,a)=>{$({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await sw(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function uw(e,t,n){try{return await tw(e,t,n)}catch{let a=await hH(n);return tw(e,t,a)}}async function tw(e,t,n){return new Promise((a,i)=>{if(an)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function dH(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function mH(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function gH(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Qd(e.inValidSrcRegex,t):!0}var ng=0,xc=0;function pH(e,t){if(ng!=0){xc++;return}if(t.message.indexOf("quota exceeded")>0){nw(e,t);return}xc++,ng=setTimeout(()=>{if(xc<(Vt.errorTimes||3)){ng=0,xc=0;return}nw(e,t),xc=0,ng=0},Vt.errorInterval||3e3)}function nw(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(sr,{detail:r}))}function u3(e){return e.classList.contains("imt-img")||e.hasTranslate}function fH(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function hH(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var bH="showImagePricingModal";function ag(e){document.dispatchEvent(new CustomEvent(bH,{detail:JSON.stringify({trigger:e})}))}var za=null;async function lw(e,{srcUrl:t}){if(!li(e))return;if(!await As(e)){ag("image_right_menu");return}if(!za){k.error("rightMenu image ele not found",t,za);return}if(za.translationStatus!=="translating"){if(za.hasTranslate){Ko(za);return}if(t!==za.src)try{let r=new URL(t),a=new URL(za.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,za.src,r);return}Go(e,za,!0,"image_right_menu")}}function cw(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(za=e.target)})}var dw=0;function wc(e){let t=Date.now();if(t-dw<2e3||(dw=t,yH()))return;let n=`${F}-modal-root`,r=`${F}-modal`,a=document.getElementById(n),i=`${F}-modal-title`,o=`${F}-modal-body`,s=`${F}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,Sc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=Se();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=F+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=F+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let b=document.createElement("div");b.className=o+" notranslate",g.appendChild(b);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",h=>{h.target==u&&(u.style.display="none")}),e(u,f,b,y,Sc)}setTimeout(()=>{vH()},100)}function yH(){let e=document.querySelector(`#${F}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-modal`)?.style.display=="block":!1}function vH(){let e=document.querySelector(`#${F}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function Sc(e,t=!1){let n=document.querySelector(`#${F}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function mw(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();un({...l,sameLangCheck:!1}),o(i,!0)})}var gw=0;async function pw(e){let t=Date.now();if(t-gw<2e3||(gw=t,CH()))return;let n=`${F}-toast-root`,r=`${F}-toast`,a=document.getElementById(n),i=`${F}-toast-msg`,o=`${F}-toast-content`,s=`${F}-toast-hidden`,u,l,c=()=>{l&&l3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,l3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),y=document.createElement("style"),h=Se();y.textContent=h.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),b.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=F+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},b.addEventListener("click",x=>{x.target==g&&(g.style.display="none")}),e(g,u,l,l3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{xH()},100),m=setTimeout(c,2500)}function CH(){let e=document.querySelector(`#${F}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-toast`)?.style.display=="flex":!1}function xH(){let e=document.querySelector(`#${F}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-toast`);t&&(t.style.display="flex")}}function l3(e,t=!1){let n=document.querySelector(`#${F}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function c3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${F}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",fw({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(ay)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(z0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(ly)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(we.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(we.OPTIONS_URL)},d3(e,e.config.translationService,!1,f).then(b=>{b?(g=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{hw(b),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await un(f),fw({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=F+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function fw(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}var bw=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},vw=[()=>{Kt.unbind()}],yw=[...vw],TH=br(async()=>{await Ea()},50),SH=br(async()=>{await Cd()},50),wH=br(async()=>{await V5()},50),EH=br(async()=>{await z5()},50),Cw=br(e=>{hn({method:e,data:{trigger:"userscript_menu"}})},50),m3=!1,AH=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!m3&&e&&e.length>0?Dl({text:e}):Dl({})},50),kH=()=>{m3=!0,setTimeout(()=>{m3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(bw)return;bw=!0,X()||B5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(re+"DocumentMessageUser",Aw),document.addEventListener(re+"DocumentMessageUpdateUser",kw),document.addEventListener(re+"ChangeSuccessService",Dw.bind(null,t)),document.addEventListener(re+"ChangeService",Lw.bind(null,t)),document.addEventListener(sr,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(M0,Zt.showToastByEvent.bind(null,t)),document.addEventListener(xo,Zt.showModal.bind(null,t)),n.addEventListener(re+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(F6,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(B6,Zt.eventUpload.bind(null,t)),n.addEventListener(R0,a=>{Tt()||b3(a,t)}),n.addEventListener(_6,Mw),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",AH),document.addEventListener("contextmenu",kH),cw(),Tt()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),X()&&(Tt()||n.addEventListener(Gr,Zt.handlePopupInit)),Tt()||Qi.rootIframe(j0).handleAsk("throttleRequest",e8)};function xw(e,t){MH(),Zt.SetupDomListenersForOnce(t,e),X()&&(Tt()||(z1(e.config),PH(e.config))),Cr()&&Pw(e,t),He()&&z1(e.config)}Zt.handlePopupInit=e=>{jS()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===L0&&wa(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Sc(n);return}let r=n.getAttribute(`data-${F}-event`);r&&Be(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${F}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),Tw({method:"retryFailedParagraphs"}),Sc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${F}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}wc(c3.bind(null,t,o,i,s));return}}};async function DH(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function LH(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;pw(mw.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;wc(c3.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?wc(eg.bind(null,"manga",e)):r=="webReport"&&wc(eg.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=p3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")Tw({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")W5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")DH();else if(i.type==="toggleEnableInputTranslation")LH();else if(i.type==="syncAppSetting")Sw(i.data);else if(i.type==="translatePage")RH(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Ds(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=eo(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await IH(i.data,o)}catch(s){Ec(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await FH(o,i.data)}catch(s){Ec(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await yd(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await qS();else if(i.type==="sharePage")b3({detail:i.data},r);else if(i.type==="switchTranslationMode")g3(i.data);else if(i.type=="getAsyncAiAssistants")a=await tc();else if(i.type=="addAiAssistantAsync")a=await No("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await No("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await h3(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await f3(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Yd("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await _v(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Q5());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await J5());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await Ov(i.data));else if(i.type==="openPopup")Xm({...i.data,open:!0});else if(i.type==="closePopup")Xm({...i.data,open:!1});else if(i.type==="togglePopup")Xm({...i.data});else if(i.type==="getPageStatusAsync")a=st();else if(i.type==="restorePage")BH();else if(i.type==="getPageLanguageAsync")a=Lt();else if(i.type==="showFloatBallGuide")ES();else if(i.type=="getAsyncDetectAndSetLanguage")a=await Ew(i.data);else if(i.type=="setFloatBallActive")MS(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Fs(r,s,o,!0)}else Cw(i.type);a!=null&&i.id&&Ec(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{ww()},10)};Zt.handleSecurityPolicyViolation=e=>{we.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Be(n.name,[{name:n.name}],{...e})};function MH(){yw.forEach(e=>{e()}),yw=vw}function PH(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=zd.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:sl,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:ul,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:il,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Sf,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===il?TH():i.id===Sf?SH():i.id===ul?wH():i.id===sl?EH():Cw(i.id)},i.key)}}function Tw(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}async function Sw(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ze(Ie(),t)}async function RH(e){let t=await Sw(e);gr(t)}function Ec(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function IH({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await fn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function FH(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await fn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function BH(){st()!=="Original"&&pa()}var Yo={};async function y3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ke({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Tr(n),n}async function Rw(e){let t=0,n=0;Xn("Translating");let r=Lt(),a=ld(),i=[...document.querySelectorAll(".source-text")];if(Ks(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(Ys(m,c.id)?.remove(),m.appendChild(Hl(e,c.id,!0)))}),await s(l),await tt(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await fn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=Ys(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Yo[g]={ok:!1,sentence:m},Fw(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Yo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function Iw(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yo),a=[],i=[];for(let o of r){let s=Yo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yo[o],c.appendChild(Hl(e,o)),i.push(s.sentence))}}}try{await fn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Ys(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Yo[l]={ok:!1,sentence:u},Fw(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Yo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function v3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function Fw(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(sr,{detail:i}))}var ig={};async function Bw(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ke({text:t,pageLangs:["en"]});return Tr(n),n}async function _w(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(ig),n=[];for(let r of t){let a=ig[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${B0}='${r}']`);o&&o.remove(),n.push(a)}}try{pc(),await Wm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function Ow(e){Object.values(ig).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=vu(e,t.targetNodes);no(e,i,r,t.rootNodes||[]),qo(t.targetNodes)}else n==="dual"&&qo(t.targetNodes)}),Xn("Original")}async function Nw(e){Xn("Translating");let t=Sl(),n=Ma(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Vi(l,e);let c=l.body;if(!c)continue;Pa(l.documentElement,e.state.translationMode);let m=En(e);m.isModifyImage=!1;let g=[];await pi({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await tt(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Gs(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=um(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:zm(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await _1(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),ig[p.id]=p)}Wm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function og(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!qi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}function _H(){let e=document.querySelector(`#${F}-modal-input-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function Uw(e){let t=`${F}-modal-input-root`,n=`${F}-modal`,r=`${F}-modal-title`,a=`${F}-modal-body`,i=`${F}-modal-footer`,o=document.querySelector(`#${t}`),s,u,l,c;return setTimeout(()=>{_H()},100),new Promise(m=>{let g=m;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let R=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${F}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let R=P.attachShadow({mode:"open"}),L=document.createElement("style"),_=Se();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,R.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let U=document.createElement("div");U.className=F+"-modal-content notranslate "+F+"-modal-content-in-input",s.appendChild(U);let z=document.createElement("span");z.textContent="\xD7",z.className=F+"-close",U.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",U.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",U.appendChild(c),l=document.createElement("div"),l.className=i,U.appendChild(l),R.appendChild(s),z.onclick=function(){A(),m("close")},R.addEventListener("click",Y=>{Y.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",I);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${Dm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=nr?.createHTML(f)||f,c.innerHTML=nr?.createHTML("")||"";let b=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:Q+"docs/input/"});b.innerHTML=nr?.createHTML(y)||y,b.style.cssText="margin-bottom:12px",c.appendChild(b);let h=document.createElement("div");h.style.cssText="margin-bottom: 12px;";let v=lt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));h.innerHTML=nr?.createHTML(v)||v,c.appendChild(h);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P{NH(e,t)})}function NH(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(ug===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};sr.forEach(g=>r[g]=[g,...r[g]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;qe().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();m();function l(g){if(zn||ug===!1)return;let p=dg(t.document,e.rule.enableInputDeepActive),f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(zH(g,o.triggerKey,o.codePrefixAlias)?c({...g,target:p}):s=0)}async function c(g){Date.now()-u=o.triggerTimes&&qw(t,o,g.target)&&(s=0,T3(g,e,t,o))}function m(){C3=l,t.removeEventListener("keyup",C3),t.addEventListener("keyup",C3,!0)}VH(e)}function Vw({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function lg(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var Su;function x3(e){let t=e.parentElement;if(!t)return;Su=document.createElement("div"),Su.className=F+"-input";let n=`
`;Su.innerHTML=cr?.createHTML(n)||n,t.appendChild(Su);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=OH,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function S3(){Su&&Su.remove()}async function UH(e,t=window){if(zn)return;let r=globalThis.getSelection()?.toString();if(r){A3(e,t,r,"shortcutKey");return}try{let b=function(){p=e.config.inputTargetLanguage;let C=g.split(" ")[0];C&&C[0]&&(C=C[0].toLowerCase()+C.slice(1)),C.trim()&&u.flatAlias.includes(C)?(p=lg(C,u.codeAlias),m=g.slice(C.length+1)):m=g},v=function(){p="";let C=Vw(u),x=g.split(C);if(x.length<2)return;if(m=x[x.length-1],c=x[0],x.length>2){let S=g.lastIndexOf(m),T=g.slice(0,S).lastIndexOf(x[x.length-2]);c=g.slice(0,T+x[x.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",m="";return}let w=g.slice(c.length+1,g.indexOf(m)).trim();if(p=lg(w,u.codeAlias),!p){k.warn("not found alias",w);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};sr.forEach(C=>i[C]=[C,...i[C]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;qe().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;zn=!0;let c="",m="",g=ba(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?b():(v(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&b());let f=Ww(m,u),h=await ze({text:f,pageLangs:["en"]});k.debug("translateContent",f,h);let y={text:f||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!y.text||y.text.length>5e3)return;x3(l),Qe(cl,Date.now());try{e.specialAiAssistant=oa(e,e.inputTranslationService,!0);let C=await gr(y,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});E3(e),Zw(e,t,l,c+C.text)}catch(C){if(C instanceof V){let x=C.uiConfig(e);k3(x.action)&&(x.action="none"),t.document.dispatchEvent(new CustomEvent(_n,{detail:x}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,S3()}}async function T3(e,t,n,r){if(!zn)try{let g=function(){u=t.config.inputTargetLanguage;let f=s.split(" ")[0];f&&f[0]&&(f=f[0].toLowerCase()+f.slice(1)),f.trim()&&r.flatAlias.includes(f)?(u=lg(f,r.codeAlias),o=s.slice(f.length+1)):o=s},p=function(){u="";let f=Vw(r),h=s.split(f);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let b=s.lastIndexOf(o),v=s.slice(0,b).lastIndexOf(h[h.length-2]);i=s.slice(0,v+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let y=s.slice(i.length+1,s.indexOf(o)).trim();if(u=lg(y,r.codeAlias),!u){k.warn("not found alias",y);return}},a=dg(n.document,t.rule.enableInputDeepActive);if(!a)return;zn=!0;let i="",o="",s=ba(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?g():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&g());let l=Ww(o,r),c=await ze({text:l,pageLangs:["en"]});k.debug("translateContent",l,c);let m={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!m.text)return;if(t.config.isShowInputTranslationConsent&&!Hw){Hw=!0;let f=await WH(t);if(e.target&&e.target.focus(),f==="disable_once"||f==="disable_forever"){if(ug=!1,f==="disable_forever"){let h=await Qt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}else if(f==="disable_once"){let h=await Qt();h.isShowInputTranslationConsent=!1,await un(h)}return}else if(f==="close_disable_once"||f==="close_disable_forever"){if(ug=!1,f==="close_disable_forever"){let h=await Qt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}return}else if(f==="enable"){let h=await Qt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await un(h)}else if(f==="close_enable"){let h=await Qt();h.enableInputTranslation=!0,await un(h)}}x3(a),Qe(cl,Date.now());try{t.specialAiAssistant=oa(t,t.inputTranslationService,!0);let f=await gr(m,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});E3(t),Zw(t,n,a,i+f.text)}catch(f){if(f instanceof V){let h=f.uiConfig(t);k3(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(_n,{detail:h}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,S3()}}function qw(e,t,n){if(!n)return!1;if(w3(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=jH(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=He()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function jH(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function Ww(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Gw(e,t){let n=t.innerHTML,r=ba(t);return{html:n.replace(r,e),text:e}}function cg(e,t,n=!1){let r=ba(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function ba(e){return e.value||e.innerText||e.textContent}async function ha(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function HH(e,t,n){await ha(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await ha(10)}async function Kw(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await ha(10))}async function Yw(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await ha(20),(t.value||t.value==="")&&(t.value=e.text)}async function Qw(e,t){w3(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await ha(20))}var Jw=[HH.bind(null,["plain"])];function w3(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function qH(e,t){if(w3(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function Zw(e,t,n,r){await ha(50),await qH(t,n),await ha(50);let a=e.rule.inputConfig,i=Gw(r,n);try{await ha(50),a?.execCommandDeleteEnable&&!Xn()&&ba(n)?.trim()!=""&&(t.document.execCommand("delete"),await ha(50)),k.debug("clearContent",ba(n))}catch(o){k.error(o)}for(let o of[...Jw,Yw,Qw,Kw]){await o(i,n);let s=Xw(t);if(!s)return;if(k.debug("setContent",o.name,cg(i,s),ba(s),i),cg(i,s))break}}function Xw(e){return e.document.activeElement}function E3(e,t=""){Ne("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function zH(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function VH(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Pt(t,"")||Number(await Pt(cl,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{GH()},100),new Promise(m=>{let g=m;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let R=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${F}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let R=P.attachShadow({mode:"open"}),L=document.createElement("style"),_=Te();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,R.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let U=document.createElement("div");U.className=F+"-modal-content notranslate "+F+"-modal-content-in-input",s.appendChild(U);let z=document.createElement("span");z.textContent="\xD7",z.className=F+"-close",U.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",U.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",U.appendChild(c),l=document.createElement("div"),l.className=i,U.appendChild(l),R.appendChild(s),z.onclick=function(){A(),m("close")},R.addEventListener("click",Y=>{Y.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",I);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${Lm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=cr?.createHTML(f)||f,c.innerHTML=cr?.createHTML("")||"";let h=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:Q+"docs/input/"});h.innerHTML=cr?.createHTML(y)||y,h.style.cssText="margin-bottom:12px",c.appendChild(h);let b=document.createElement("div");b.style.cssText="margin-bottom: 12px;";let v=lt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));b.innerHTML=cr?.createHTML(v)||v,c.appendChild(b);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function A3(e,t,n,r){if(zn)return;try{let o=dg(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;zn=!0;let u=e.config.inputTargetLanguage,l=await ze({text:n,pageLangs:["en"]});k.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;x3(o),Qe(cl,Date.now());try{if(e.specialAiAssistant=oa(e,e.inputTranslationService,!0),E3(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let m=await gr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,m.text)}else{let m=await gr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,m.text)}}catch(m){if(m instanceof V){let g=m.uiConfig(e);k3(g.action)&&(g.action="none"),document.dispatchEvent(new CustomEvent(_n,{detail:g}))}}finally{zn=!1}}catch(o){throw zn=!1,o}finally{zn=!1,S3()}async function a(o,s,u,l){let c=o.rule.inputConfig,m=Gw(l,u);try{await ha(50),c?.execCommandDeleteEnable&&!Xn()&&ba(u)?.trim()!=""&&(s.document.execCommand("delete"),await ha(50)),k.debug("clearContent",ba(u))}catch(g){k.error(g)}for(let g of[...Jw,Yw,Qw,Kw]){await g(m,u);let p=Xw(s);if(!p)return;if(k.debug("setContent",g.name,cg(m,p),ba(p),m),cg(m,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let m=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("delete",!1);let g=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(g),!g.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function k3(e){return e==="retry"||e==="changeService"}function mg({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&rr(c,a),e.appendChild(l);let m=c;if(s){let g=document.createElement("div");g.id="mount",g.style.display="block",c.appendChild(g),m=g}Ca(d(Ji,{lang:t.config.interfaceLanguage,children:d(n,{...r})}),m)}function $w(e){let t=document.createElement("span");return t.innerHTML=e,(t.textContent||"").trim()}function Xe(e,t,n){Ne("translate_video_subtitle",[{name:"translate_video_subtitle",params:{video_platform:n||e.rule.id||""}}],{...e,sourceLanguage:t||"auto"})}function mt(e,t){return e==t}function hi(e,t){return!e||!t?!1:e.startsWith("zh")&&t.startsWith("zh")}function e7(e){let{url:t,method:n,headers:r,body:a}=e,i=new Headers;for(let[u,l]of Object.entries(r))i.append(u,l);let o;return typeof a=="object"?(delete a._formatBodyType,o=JSON.stringify(a)):typeof a=="string"&&(o=a),new Request(t,{method:n,headers:i,body:o})}function t7(e){return e?Object.entries(e).reduce((t,[n,r])=>{if(r==null||r==null||typeof r=="object"&&Object.keys(r).length===0)return t;if(n=="body"&&typeof r=="object"&&r._formatBodyType=="FormData"){let a=new FormData;for(let[i,o]of Object.entries(r))i!=="_formatBodyType"&&a.append(i,o);return t[n]=a,t}return t[n]=r,t},{}):null}function D3(e){return e.replace(/\n/g," ")}function n7(e){let t;return e instanceof URL?t=e.href:typeof e=="string"?t=e:e instanceof Request?t=e.url:t=String(e),t}function gg(e,t,n){let r="translationServices."+n,a=t("translationServices."+n);return a!=r?a:e.config.translationServices[n]?.name||a}function Tu(e){return wu(e).subtitles}function wu(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${X3.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},oz=e=>/]*>[\s\S]*]*>/.test(e),_7=kn({name:B7,build:iz,detect:oz,helper:X3,parse:az});var sz="srt",Pc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},uz=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Pc.toMilliseconds(s[2]),u.end=Pc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},lz=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${Pc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},cz=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),O7=kn({name:sz,build:lz,detect:cz,helper:Pc,parse:uz});var dz="sub",$3=25,mz=(e,t)=>{t.fps||=$3;let n=t.fps>0?t.fps:$3,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:$3,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},pz=e=>/^\{\d+\}\{\d+\}.*/.test(e),N7=kn({name:dz,build:gz,detect:pz,parse:mz});var fz="vtt",Rc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},hz=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Rc.toMilliseconds(s[2]),l.end=Rc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},bz=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Rc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},yz=e=>/^\s*WEBVTT\r?\n/.test(e),U7=kn({name:fz,build:bz,detect:yz,helper:Rc,parse:hz});var vz={vtt:U7,lrc:I7,smi:_7,ssa:M7,ass:P7,sub:N7,srt:O7,sbv:F7,json:R7},j7=vz;var Cz=e=>JSON.parse(JSON.stringify(e)),e2=class{format=j7;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),yg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];yu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,re+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${F}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&rr(document,`${t.join(` -`)}`,F+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await it(Fe(),{});if(this.initConfig(n),await tt(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(e7(r),t7(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!dt(Fe(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:gg(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function jq(){return d("span",{class:"logo",dangerouslySetInnerHTML:{__html:Dm}})}function Hq(){return d("span",{class:"logo",dangerouslySetInnerHTML:{__html:H8}})}function qq(){return d("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:d("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function zq(){return d("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:d("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function Vq(){return d("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:d("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var W3=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},kn=e=>new W3(e);var Wq="ssa",Qo={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},G3=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sw.split(T,S).join(T).length)(y,",",r.length-1)+1;v.content=y.substring(x),v.data.Text=v.content,v.text=v.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(v)}}}}}t.verbose}return a},K3=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,L7=kn({name:Wq,build:K3,detect:Y3,helper:Qo,parse:G3});var Gq="ass",M7=kn({name:Gq,build:K3,detect:Y3,helper:Qo,parse:G3});var Kq="json",Yq=(e,t)=>JSON.parse(e),Qq=(e,t)=>JSON.stringify(e,void 0,2),Jq=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},P7=kn({name:Kq,build:Qq,detect:Jq,parse:Yq});var Zq="lrc",Q3={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},Xq=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),R7=kn({name:Zq,build:$q,detect:ez,helper:Q3,parse:Xq});var tz="sbv",Lc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},nz=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},rz=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),I7=kn({name:tz,build:rz,detect:az,helper:Lc,parse:nz});var F7="smi",J3={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},iz=(e,t)=>{if(t.format&&t.format!==F7)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(m){let g={};g.type="caption",g.start=parseInt(m[1]),g.end=g.start+2e3,g.duration=g.end-g.start,g.content=m[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,f=/^([\s\S]*)/i.exec(g.content)||/^]*)>([\s\S]*)/i.exec(g.content);if(f){let b=f[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),b=b.replace(/^\s+/g,"").replace(/\s+$/g,""),p=b.replace(/ /gi," ").replace(/\s+/g,"").length===0,g.text=J3.htmlDecode(b,r)}!t.preserveSpaces&&p?t.verbose:n.push(g),s&&(s.end=g.start,s.duration=s.end-s.start),s=g;continue}t.verbose}return n},oz=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${J3.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},sz=e=>/]*>[\s\S]*]*>/.test(e),B7=kn({name:F7,build:oz,detect:sz,helper:J3,parse:iz});var uz="srt",Mc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},lz=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Mc.toMilliseconds(s[2]),u.end=Mc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},cz=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Mc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},dz=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),_7=kn({name:uz,build:cz,detect:dz,helper:Mc,parse:lz});var mz="sub",Z3=25,gz=(e,t)=>{t.fps||=Z3;let n=t.fps>0?t.fps:Z3,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Z3,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},fz=e=>/^\{\d+\}\{\d+\}.*/.test(e),O7=kn({name:mz,build:pz,detect:fz,parse:gz});var hz="vtt",Pc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},bz=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Pc.toMilliseconds(s[2]),l.end=Pc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},yz=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Pc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},vz=e=>/^\s*WEBVTT\r?\n/.test(e),N7=kn({name:hz,build:yz,detect:vz,helper:Pc,parse:bz});var Cz={vtt:N7,lrc:R7,smi:B7,ssa:L7,ass:M7,sub:O7,srt:_7,sbv:I7,json:P7},U7=Cz;var xz=e=>JSON.parse(JSON.stringify(e)),X3=class{format=U7;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),bg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];yu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,re+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${F}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&rr(document,`${t.join(` +`)}`,F+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await Ze(Ie(),{});if(this.initConfig(n),await tt(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch($w(r),e7(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!dt(Ie(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:mg(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=lt.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await fn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=hg(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),vc(this.ctx,n,r)}getTranslationMode(t){return hi(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=F+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;Xe(this.ctx,n);let r=t.filter(a=>a.text);bi(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Dc(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Bn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&mg({id:F+"quick-button",parent:n,ctx:this.ctx,Component:D7,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:L7+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Jo.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return vd(t.slice(0,50).map(n=>n.text).join(" "))}};function q7(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var Sg=class extends vt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!dt(Fe(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=mt(ae(r),this.ctx.targetLanguage);if(a||hi(r,this.ctx.targetLanguage)){let m=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(m)return this.loadSubtitle(m)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(m=>m===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(E7(t)&&(o||u)){let m=await this.requestOriginalEvents(t);u&&this.requestServerMerge(m,r);let g=w7(m,r,this.ctx.rule.ytAsrConfig);if(g){this.attachSubtitle(g,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let m=this.formatToSubtitleItem(l);return this.attachSubtitle(m,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${ct}subtitles/yt-asr-subs`;try{let a=await dd(t),o=(await $({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!mt(ae(o),r)&&!hi(ae(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(m=>!mt(ae(m.languageCode),r)&&!hi(ae(m.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(m=>m.kind);if(!u&&s.length&&(u=s.sort((g,p)=>ae(g.languageCode)==="en"?-1:0)[0]),!u)return;let l=ae(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=q7(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>ae(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>ae(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return ae(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=F+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!mt(ae(a[u]),this.ctx.targetLanguage)&&!hi(ae(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:$w(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,m,g)=>{if(g==0)return c=c.concat(m),c;let p=c[c.length-1];return m.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await it(Fe(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Dc(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await it(Fe(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=pg(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await ze({text:o.join(` -`),pageLangs:[Ht(),"en"]});return mt(ae(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Fe()&&(this.lastReportUrl=Fe(),Xe(this.ctx,ae(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,m)=>{i[m]&&(i[m].innerHTML=c.displayText)}),fg(a.arrayBuffer,a.document))}catch{}}};var Tg=class extends vt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(ae(i),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:ae(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,ae(i));return}this.downloadSubtitle(o,ae(i),[]);let u=await this.requestHumanSubtitle(o,ae(i),r);if(u)return this.handleIOSFullScreen(u,ae(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,ae(i));return l?(this.handleIOSFullScreen(l,ae(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[ae(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=Eu(s,u,"
");return l.forEach((c,m)=>{i.length<=m||(i[m].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!X()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));kc(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let m=a[l],g=a[c];if(!(!m||!g)){if(m.y>g.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Fe()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var oo=class extends vt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(mt(ae(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),ae(i.language)),i.isTranslated=!0;return}Xe(this.ctx,ae(i.language)),this.translateSubtitle([...i.cues||[]],ae(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>xz(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function xz(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var Wa=class extends oo{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&Xe(this.ctx,ae(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(mt(ae(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,ae(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var Lu=class extends Wa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=wu(r),i=await ze({text:a.subtitles.map(l=>l.text).join(` +`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await fn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=fg(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),yc(this.ctx,n,r)}getTranslationMode(t){return hi(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=F+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;Xe(this.ctx,n);let r=t.filter(a=>a.text);bi(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(kc(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Bn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&dg({id:F+"quick-button",parent:n,ctx:this.ctx,Component:k7,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:D7+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Jo.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return yd(t.slice(0,50).map(n=>n.text).join(" "))}};function H7(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var xg=class extends vt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!dt(Ie(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=mt(ae(r),this.ctx.targetLanguage);if(a||hi(r,this.ctx.targetLanguage)){let m=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(m)return this.loadSubtitle(m)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(m=>m===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(w7(t)&&(o||u)){let m=await this.requestOriginalEvents(t);u&&this.requestServerMerge(m,r);let g=S7(m,r,this.ctx.rule.ytAsrConfig);if(g){this.attachSubtitle(g,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let m=this.formatToSubtitleItem(l);return this.attachSubtitle(m,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${ct}subtitles/yt-asr-subs`;try{let a=await cd(t),o=(await $({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!mt(ae(o),r)&&!hi(ae(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(m=>!mt(ae(m.languageCode),r)&&!hi(ae(m.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(m=>m.kind);if(!u&&s.length&&(u=s.sort((g,p)=>ae(g.languageCode)==="en"?-1:0)[0]),!u)return;let l=ae(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=H7(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>ae(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>ae(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return ae(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=F+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!mt(ae(a[u]),this.ctx.targetLanguage)&&!hi(ae(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:Xw(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,m,g)=>{if(g==0)return c=c.concat(m),c;let p=c[c.length-1];return m.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await Ze(Ie(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&kc(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await Ze(Ie(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=gg(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Ke({text:o.join(` +`),pageLangs:[Ht(),"en"]});return mt(ae(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Ie()&&(this.lastReportUrl=Ie(),Xe(this.ctx,ae(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,m)=>{i[m]&&(i[m].innerHTML=c.displayText)}),pg(a.arrayBuffer,a.document))}catch{}}};var Tg=class extends vt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(ae(i),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:ae(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,ae(i));return}this.downloadSubtitle(o,ae(i),[]);let u=await this.requestHumanSubtitle(o,ae(i),r);if(u)return this.handleIOSFullScreen(u,ae(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,ae(i));return l?(this.handleIOSFullScreen(l,ae(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[ae(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=Eu(s,u,"
");return l.forEach((c,m)=>{i.length<=m||(i[m].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!X()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Ac(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let m=a[l],g=a[c];if(!(!m||!g)){if(m.y>g.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Ie()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var oo=class extends vt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(mt(ae(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),ae(i.language)),i.isTranslated=!0;return}Xe(this.ctx,ae(i.language)),this.translateSubtitle([...i.cues||[]],ae(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>Tz(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function Tz(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var Va=class extends oo{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&Xe(this.ctx,ae(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(mt(ae(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,ae(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var Lu=class extends Va{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=wu(r),i=await Ke({text:a.subtitles.map(l=>l.text).join(` `),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(mt(ae(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Xe(this.ctx,ae(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),io(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var wg=class extends vt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(mt(ae(a),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,ae(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:D3(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=ya(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${D3(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Eg=class extends oo{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(ae(i),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,ae(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,ae(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=Tu(t),s=Tu(i),u=Eu(o,s);return{text:io(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=Tu(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=ya(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),io(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[ae(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Fe()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Ag=class extends vt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=z7(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=z7(o,r.itemsPath):s=Tz(o,r),!s?.length)continue;let u=await ze({text:s.map(l=>Ic(l,r.textKey)).join(` -`),pageLangs:[Ht(),"en"]});if(mt(ae(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Ic(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),Xe(this.ctx,ae(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Ic(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=Sz(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function z7(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Js(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,Xe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Yt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Yt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Ar(t,["."+Yt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Yt);if(!a){let o=document.createElement("font");o.classList.add(Yt),o.classList.add("notranslate");let s=I4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Lt(),"en"]});return Ks(t,r)?void 0:(await gr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=st(),n=await it(Fe(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await it(Fe(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var kg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=wz(r),o=await ze({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ht(),"en"]});if(mt(ae(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=V7(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=await this.translateSubtitle(a,i,ae(o));if(this.config.enableHookDownload)try{let u=V7(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),ae(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ya(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Fc,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},Fc="http://www.w3.org/ns/ttml";function wz(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Fc,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Fc,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Fc,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function V7(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Fc,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:W7(i),end:W7(o),text:s})}),r}function W7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Dg=class extends vt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=wu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(mt(o,this.ctx.targetLanguage))return null;if(Xe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,ae(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=Eu(n.subtitles,Tu(u));return n.subtitles=l,io(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=ya(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),io(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>ae(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=kz(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return ze({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Fe()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=Az(r),i=Ez(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function Ez(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function Az(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function kz(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Lg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=pg(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await ze({text:o.join(` -`),pageLangs:[Ht(),"en"]});return mt(ae(s),this.ctx.targetLanguage)?null:(Xe(this.ctx,ae(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},m)=>{i[m]&&(i[m].innerHTML=c)}),fg(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Mg=class extends vt{async requestSubtitle(t){let n=await it(Fe(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new Lu(this.ctx).loadSubtitle(i.url);if(!s)return;let u=L3(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}a7(a),F3(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Pg=class extends vt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(G7).forEach(n=>{G7[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),mt(ae(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(Xe(this.ctx,t),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=n7(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},G7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Rg=class extends Wa{constructor(t){super(t),new Mu(t)}};var Ig=class extends Wa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Jo.parse(r),i=a.filter(c=>c.type==="caption"),o=await ze({text:i.map(c=>c.text).join(` -`),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(mt(ae(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Jo.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Fg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await ze({text:a.map(u=>u.textContent).join(` +`)}};var Sg=class extends vt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(mt(ae(a),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,ae(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:A3(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=ba(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${A3(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var wg=class extends oo{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(ae(i),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,ae(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,ae(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=Su(t),s=Su(i),u=Eu(o,s);return{text:io(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=Su(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=ba(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),io(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[ae(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Ie()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Eg=class extends vt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=q7(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=q7(o,r.itemsPath):s=wz(o,r),!s?.length)continue;let u=await Ke({text:s.map(l=>Rc(l,r.textKey)).join(` +`),pageLangs:[Ht(),"en"]});if(mt(ae(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Rc(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),Xe(this.ctx,ae(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Rc(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=Sz(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function q7(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Js(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,Xe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Yt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Yt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Er(t,["."+Yt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Yt);if(!a){let o=document.createElement("font");o.classList.add(Yt),o.classList.add("notranslate");let s=I4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Ke({text:n,pageLangs:[Lt(),"en"]});return Ks(t,r)?void 0:(await sa({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=st(),n=await Ze(Ie(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await Ze(Ie(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var Ag=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=Ez(r),o=await Ke({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ht(),"en"]});if(mt(ae(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=z7(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=await this.translateSubtitle(a,i,ae(o));if(this.config.enableHookDownload)try{let u=z7(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),ae(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ba(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Ic,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},Ic="http://www.w3.org/ns/ttml";function Ez(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Ic,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Ic,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Ic,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function z7(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Ic,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:V7(i),end:V7(o),text:s})}),r}function V7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var kg=class extends vt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=wu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(mt(o,this.ctx.targetLanguage))return null;if(Xe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,ae(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=Eu(n.subtitles,Su(u));return n.subtitles=l,io(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=ba(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),io(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>ae(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=Dz(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return Ke({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Ie()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=kz(r),i=Az(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function Az(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function kz(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function Dz(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Dg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=gg(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Ke({text:o.join(` +`),pageLangs:[Ht(),"en"]});return mt(ae(s),this.ctx.targetLanguage)?null:(Xe(this.ctx,ae(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},m)=>{i[m]&&(i[m].innerHTML=c)}),pg(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Lg=class extends vt{async requestSubtitle(t){let n=await Ze(Ie(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new Lu(this.ctx).loadSubtitle(i.url);if(!s)return;let u=k3(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}r7(a),R3(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Mg=class extends vt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(W7).forEach(n=>{W7[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),mt(ae(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(Xe(this.ctx,t),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=t7(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},W7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Pg=class extends Va{constructor(t){super(t),new Mu(t)}};var Rg=class extends Va{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Jo.parse(r),i=a.filter(c=>c.type==="caption"),o=await Ke({text:i.map(c=>c.text).join(` +`),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(mt(ae(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Jo.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Ig=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Ke({text:a.map(u=>u.textContent).join(` `),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(mt(ae(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),ae(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",y=P3(f,l),b=P3(h,l),v=An(y),C=An(b);u==="duration"&&(C=v+C);let x=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(x||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var Bg=class extends vt{hasSubtitle=!1;async mutationVideoChange(){let t=Dz(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(Xe(this.ctx,"ja","av"),this.hasSubtitle=!0,bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await $({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Jo.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function Dz(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var _g=class extends vt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(Xe(this.ctx,n.language_code),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var Lz={youtube:Sg,netflix:Tg,webvtt:Lu,khanacademy:wg,udemy:Eg,hulu:Mg,mubi:_g,text_track:oo,text_track_dynamic:Wa,general:Ag,live:Mu,ebutt:kg,disneyplus:Dg,"fmp4.xml":Lg,multi_attach_vtt:Pg,twitter:Rg,subsrt:Ig,xml:Fg,av:Bg},Og;async function C7(e){try{X()&&await tt(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=Lz[t.type];if(!n)return;Og=new n(e)}catch(t){k.error(t)}}async function t2(){Og?.onPageStatusChange()}async function Mz(e,t){if(Og?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&St())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ne("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function Pz(){Og?.onTranslationModeChanged()}_5({autoEnableSubtitleChanged:Mz,reloadSubtitleWithTranslationModeChanged:Pz});var fe=null;function Lc(){return fe||null}function xg(e){Vi(document,e),Rz(e),Uz(e),_z(e),Nz(e),Bz(fe),$n("Translated"),Oz(fe),NS(Du),Iz(fe),t2(),Yz()}function Rz(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=En(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}MS(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}yu(e)&&zt(document.documentElement,re+"_rtl",e.targetLanguage)}function Iz(e){let t=e.ctx;X7(t,!0),US(e),FC(window.location.href)}function Fz(e){let t=e.ctx;X7(t,!1),jS()}async function Bz(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await J7(e.ctx,En(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ro(s,e);await ro(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ro(s,e)}function J7(e,t){M5(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=PS(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Fs({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function _z(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Rt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Dt({...t,tempTranslationUrlMatches:[...i]})}}function Oz(e){e.ctx.rule.isTranslateTitle&&(M1(e.ctx),e.titleDynamicObserver=IS(e.ctx))}function Nz(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function z3(e,t){fe&&(e.filterRule=En(e,!0),e.isRichTranslate=Gs(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=En(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Ra(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function Uz(e){let t=wl();fe&&(t=fe.id),fe=fe||{},fe.ctx=e,fe.id=t,fe.paragraphQueue=fe.paragraphQueue||[],z3(e),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||Gz(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||Kz(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||qz(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||zz(fe),fe.injectCssToDocument=Ng,fe.walkContainer=pi,e.specialAiAssistant=oa(e,e.translationService,!0),window.onerror=Hz(fe,e),window.immersiveTranslateSwitchTranslateState=r2.bind(fe)}function Z7(e,t){t.getRootNode()instanceof ShadowRoot?Ng(t.getRootNode(),e):Ng(t.ownerDocument,e),jz(e)}function jz(e){fe||(fe={},fe.ctx=e,fe.id=wl(),n2(fe,e))}function n2(e,t){let n={...e};n.injectCssToDocument=Ng,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=r2.bind(n);let r=oa(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Gs(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function Du(e=!0){fe&&($n("Original"),t2(),Fz(fe),fc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),FS(fe.ctx),AC(),kC(),e&&r2.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function Hz(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Du(),n=setTimeout(()=>{xg(t)},e.urlChangeDelay||2e3)),!0}}function qz(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await F1(e,r.target),n.unobserve(r.target))})}function zz(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{B1(e,o)}),n.unobserve(a)}})})}var K7;function Vz(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function Wz(e){if(e.urlChangeDelay<=0||(clearTimeout(K7),e.translateState=="original"))return!1;Du(e.urlChangeDelay>20),K7=setTimeout(()=>{let t=e.ctx;xg(t)},e.urlChangeDelay)}function Gz(e){let t=e.ctx.rule,n=En(e.ctx);return new MutationObserver(r=>{if(Vz(e)&&(J7(e.ctx,n),t.mutationConfig.enableUrlChange&&Wz(e))||e.interruptEffectDOM)return;let a=Zd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Ar(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Ar(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(U0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Y7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&j1(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Y7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!It.isSkipMarkEle(i.target)&&!It.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Ma(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Js(n,o.parentElement);l&&(It.clearToParentMark(o,l),Q7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Yt])?!1:o.contains(l)).length&&Q7(e,i.target)}catch(o){k.error(o)}}})}function Y7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{U1(n),pi({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{zo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function Q7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;It.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ro(t,e,n),i.timer=null},a)}function U1(e){e.paragraphs=[],It.clearMark(e),e.querySelectorAll("."+Yt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${F}-walked]`).forEach(t=>{t.paragraphs=void 0,It.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function j1(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Yt]))).length==0}function Kz(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);D1(i)||(n.unobserve(r.target),It.clearMark(a),ro(a,e))}})}async function r2(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await fa(),await tt(50),hn({method:"translatePage"});return}this.translateState=e,Ra(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Ra(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{pc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Yt}`).forEach(t=>t.remove())}function Ng(e,t){if(e instanceof HTMLIFrameElement){Vi(e.contentDocument,t);return}Vi(e,t)}async function x7(e){let t=St(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=q4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Zs(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Zs(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=q4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await j5();return n==="auto"&&(n=await OS()),E5(n),n}async function S7(){if(!fe)return;fc(),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${_0}='${n}']`);i&&i.remove()}}Wm.call(fe,fe.ctx)}async function b3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ne("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Lt()});let r=fe?.ctx||t,a=await Rt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:BS(r)},await Dt(a);let o=Te().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}ka(o)}catch(i){k.error(i)}}async function Rw(){let e=await Rt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(U6,{detail:JSON.stringify(e.draft)}))}async function Yz(){try{if(await Mo("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await na();await $({url:ct+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Jr("reportActive","1")}catch(e){k.error(e)}}function X7(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(ys,{detail:{tempEnableSubtitle:t}}))}var Qz=new AbortController,{signal:Jz}=Qz,_c=0,Oc=0,Zo=!1,so,$7=0,yi=[];function V3(e){Zz(),sg().forEach(t=>{Ug(e,t)})}function Ug(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&nV(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Ug(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Ug(n,t))}t.document.addEventListener(al,s),yi.push(()=>{t.document.removeEventListener(al,s)});let u=yr(g=>{if(!(Math.abs(g.clientX-_c)+Math.abs(g.clientY-Oc)<=3)&&(_c=g.clientX,Oc=g.clientY,Zo&&!so&&o2(n,!1,t),o||Zo&&!so)){let p=rE(n.rule,t);if(p){if(i2(p))return;jg(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;i2(p)||(jg(n,!0,t),o2(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Kt.getPressedKeyCodes();if(f.length>1&&Kt[p]&&($7=Date.now(),Zo=!1),f.length===1&&Kt[p]){let h=Date.now();Zo=!0,so&&clearTimeout(so),so=setTimeout(()=>{let y=$7-h;y>0&&y<=i?Zo=!1:l(g),so=void 0},i)}};if(yi.push(()=>{so&&clearTimeout(so)}),a)return;Bc("mousemove",u,t),yi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Zo=!1}if(Bc("blur",m,t),yi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=ay;Bc("keyup",eE,t),yi.push(()=>{t.removeEventListener("keyup",eE)}),p.includes(g)?Kt("*",{scope:"mouseHover",element:t.document},c):Kt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Kt.setScope("mouseHover"),yi.push(()=>{Kt.deleteScope("mouseHover")})}}function Zz(){try{yi.forEach(e=>e())}catch{}yi=[],Kt.setScope("all")}function eE(e){Zo=!1}function Bc(e,t,n=window){return n.addEventListener(e,t,{signal:Jz})}function jg(e,t,n,r){if(r=r||rE(e.rule,n),!r){k.debug("can not find selection part!");return}if($z(e,r,t))return;if(i2(r)){k.debug("exclude dom");return}Z7(e,r);let i=Lc();i&&(i.setupMouseHoverListener=Ug);let o=En(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=n2(i,e);pi({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{Zd(n.document.documentElement)!==l.state.translationMode&&Ra(n.document.documentElement,l.state.translationMode),zo(u,c,!0,"hover").then(g=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,g&&!s){s=!0;let p=Date.now();Qe(q6,p);let f={translation_service:u?.translationService||""};Ne("mouse_hover_translate",[{name:"mouse_hover_translate",params:f}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function rE(e,t){return Xz(_c,Oc,e,t)}function Xz(e,t,n,r){let a=ex(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=tx(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:nE(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{tV(e,a)}),!0}function eV(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(F+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${F}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function tV(e,t){let n=Lc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{pc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function a2(e){return!!(e.host&&e.mode)}function tE(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||a2(n))return e;for(;n&&n.nodeName!=="BODY"&&!a2(n)&&j4(n,t);){let r=n.parentNode;if(r&&a2(r))break;n=r}return n}function nE(e,t){return e.nodeType===Node.TEXT_NODE||j4(e,t)?tE(e,t):e}function aE(e,t,n){_c=t.clientX,Oc=t.clientY,jg(e,!0,n),o2(e,!0,n)}async function o2(e,t,n,r){if(!ci(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=nx(_c,Oc,e.rule,n);if(!a||Q4(a.src)||a.translationStatus==="translating")return;let i=u3(a);if(i&&!t||i&&!r)return;if(i){Ko(a);return}if(!await As(e)){ig("image_mouse_hover");return}Go(e,a,!0,"image_mouse_hover")}function nV(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&jg(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Bc("mousedown",i,t),Bc("mouseup",o,t),yi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Nc=[];function s2(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Nc.push(()=>{document.removeEventListener("click",i)})}function iE(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Nc.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Hg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Nc.push(()=>{document.removeEventListener("touchstart",r)})}var bc={touchShortcutsOff:()=>{},"multipleClick.2":s2,"multipleClick.3":s2,"multipleClick.4":s2,"slide.left":iE,"slide.right":iE,"fingers.2":Hg,"fingers.3":Hg,"fingers.4":Hg,"fingers.5":Hg};async function Iw(e,t=window){try{sV();let n=await ln(),r=j0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=u2(e,n,a.command),o=bc[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{oV(a.command,e,t,l)})})}catch(n){k.error(n)}}function u2(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var rV=()=>{U3();let e=new CustomEvent(Kr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},aV=()=>{H3();let e=new CustomEvent(Kr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},iV=()=>{j3();let e=new CustomEvent(Kr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},oE=0,oV=(e,t,n,r)=>{if(!(new Date().getTime()-oE<200)){if(oE=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")rV();else if(e==="touchShortcutsToggleTranslationMask")iV();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")aV();else if(e==="touchShortcutsToggleTranslateTouchElement")aE(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};T3(r,t,n,s)}}};function sV(){Nc.forEach(e=>{e()}),Nc=[]}function Uc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(bc).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=ri.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d(la,{className:"select",maxWidth:250,items:ri.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let h=g("mouseHoldKey",{key:Ba(f)}),y=ri.includes(o),b=f===o;return o==="Off"&&f===o&&c&&(b=!1),f==="Auto"?h=g("mouseHoldKeyAuto"):f==="Off"?h=g("mouseHoldKeyOff"):f==="OtherCustom"?h=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?h=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(h=g("mouseHoldKeyPressHold")),y||f==="Other"&&(b=!0),{label:h,value:f,selected:b,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(be,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(be,{title:r,description:i||""}),d("div",{class:"nav",children:[d(la,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:b=>{b.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(b.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(a1,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(a1,{width:20,height:16})})})})]})]})}function l2(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let[o,s]=ga(),{t:u}=O(),l=ft(t),c=cn(l);return l?d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(pa,{image:rn("images/hover_intro.png"),nightImage:rn("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Yr(o)&&d(Uc,{onChange:(m,g)=>{n(p=>{let h={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(h.mouseHoverPreferenceKey=m),{...p,generalRule:h}}),g||rt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(uV,{setSettings:n,config:l,localConfig:o}),d(to,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function uV({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Yr(n)?null:d(Uc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||rt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function c2(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),s=cn(o),u=ue(g=>{s&&n(p=>ji({...p},g))},[s,n]),l=ui(s,t),{t:c}=O(),m=ue((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(pa,{image:rn("images/float_ball_intro.png"),nightImage:rn("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(lV,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(cV,{t:m,rule:l,updateFloatBallRule:u}),d(dV,{t:m,rule:l,updateFloatBallRule:u}),d(mV,{t:m,rule:l,updateFloatBallRule:u})]})})}function lV({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function cV({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);q(()=>{Kt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,h,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(h=>{t.blockUrls=Jt(h,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,h)=>{a(!r),o(p),u(h)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(da,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(qa,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function dV({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function mV({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function d2(){let e=Oe(),[t,n,r,a,i]=e,[o]=ga();Ze(t,n);let[s,u]=N(null),{t:l,lang:c}=O();q(()=>{Je().then(h=>{wn({config:h,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Ls(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=j0.filter(h=>{if(h.name==="touch"){let y=Yr(o);return k.debug("isSupportMouseHover",y),!y}else if(h.name==="mouse"){let y=Yr(o);return k.debug("isSupportMouseHover",y),y}else return!0}).map(h=>({name:h.name,shortcuts:h.shortcuts.map(y=>{let b="",v="normal";typeof y=="string"?b=y:(b=y.command,y.type&&(v=y.type));let C="";l(`desc.${b}`)!==`desc.${b}`&&(C=l(`desc.${b}`));let w="";v==="finger"?w=u2(s,t,b):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[b]!==void 0?w=t.generalRule[b]:w=g.generalRule[b]:t?.shortcuts&&t?.shortcuts[b]!==void 0?w=t.shortcuts[b]:w=g.shortcuts[b];let S=l(`browser.${b}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(S=l(`${b}`));let T,A;return v.startsWith("translateWithCustom")&&(T=t?.shortcuts?.translateWithCustomServices?.[b],A=m.map(D=>{let M={service:D,name:null};return D.startsWith("custom-ai")&&(M.name=s.config.translationServices[D].name),M})),{command:b,type:v,shortcut:w,title:S,description:C,service:T,serviceIdList:A,disabled:!(X(!0)||fs())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return X(!0)||(Xn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):fs()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:h=>{h.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((h,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${h.name}`)}),h.shortcuts.map((b,v)=>mo(Uc,{...b,key:`shortcut-${v}`,onChange:(C,x)=>{n(w=>{if(b.type==="finger"){let T={...w.generalRule||{},[b.command]:C||"touchShortcutsOff"};return b.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(T.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...w,generalRule:T}}else if(b.type==="mouseHoverHoldKey"){let T={...w.generalRule||{},[b.command]:C||"Off"};return C!=="Off"&&(T.mouseHoverPreferenceKey=C),{...w,generalRule:T}}else if(b.type.startsWith("translateWithCustom")){let S={...w?.shortcuts};if(m.includes(C)){let A=S.translateWithCustomServices||{};return{...w,shortcuts:{...S,translateWithCustomServices:{...A,[b.command]:C}}}}let T={...w,shortcuts:{...S,[b.command]:C}};return C||(T.shortcuts[b.command]=""),T}else{let S={...w?.shortcuts},T={...w,shortcuts:{...S,[b.command]:C}};return C||(T.shortcuts[b.command]=""),T}}),x||rt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function gV(){let[e,t]=N(null);return q(()=>{Je().then(n=>{t(n)})},[]),e}function m2(){let[e,t,n,r,a]=Oe(),i=gV(),{t:o,setLang:s}=O(),[u,l]=ga();if(!i)return null;return d(at,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return q(()=>{e&&m()},[e]),d(le,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});po.saveAs(g,F+"-config-"+zs()+".txt")}}}function g2({config:e}){let t=nr(),{t:n,lang:r}=O();return d(le,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(lS,{}),d("h1",{children:n("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:a=>{a.preventDefault(),lr(`${Q}docs/CHANGELOG/#${t.replace(/\./ig,"")}`)},children:Ro(e)}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(pV,{}),d(fV,{})]})]}),d("div",{className:"header-navbar-height"})]})}function pV(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:cy,target:"_blank",children:[d(cS,{}),d("span",{children:e("options.navbar.installApp")})]})}function fV(){let{t:e}=O();return d(yt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:by,target:"_blank",children:[d(dS,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function p2(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let{t:o}=O(),s=ft(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=Od(s.supportedMangaSites),c=`
+`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",y=L3(f,l),h=L3(b,l),v=An(y),C=An(h);u==="duration"&&(C=v+C);let x=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(x||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var Fg=class extends vt{hasSubtitle=!1;async mutationVideoChange(){let t=Lz(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(Xe(this.ctx,"ja","av"),this.hasSubtitle=!0,bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await $({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Jo.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function Lz(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var Bg=class extends vt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(Xe(this.ctx,n.language_code),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var Mz={youtube:xg,netflix:Tg,webvtt:Lu,khanacademy:Sg,udemy:wg,hulu:Lg,mubi:Bg,text_track:oo,text_track_dynamic:Va,general:Eg,live:Mu,ebutt:Ag,disneyplus:kg,"fmp4.xml":Dg,multi_attach_vtt:Mg,twitter:Pg,subsrt:Rg,xml:Ig,av:Fg},_g;async function v7(e){try{X()&&await tt(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=Mz[t.type];if(!n)return;_g=new n(e)}catch(t){k.error(t)}}async function $3(){_g?.onPageStatusChange()}async function Pz(e,t){if(_g?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Tt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Be("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function Rz(){_g?.onTranslationModeChanged()}F5({autoEnableSubtitleChanged:Pz,reloadSubtitleWithTranslationModeChanged:Rz});var fe=null;function Dc(){return fe||null}function Cg(e){Vi(document,e),Iz(e),jz(e),Oz(e),Uz(e),_z(fe),Xn("Translated"),Nz(fe),_T(Du),Fz(fe),$3(),Qz()}function Iz(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=En(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}DT(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}yu(e)&&zt(document.documentElement,re+"_rtl",e.targetLanguage)}function Fz(e){let t=e.ctx;Z7(t,!0),OT(e),RC(window.location.href)}function Bz(e){let t=e.ctx;Z7(t,!1),NT()}async function _z(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await Q7(e.ctx,En(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ro(s,e);await ro(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ro(s,e)}function Q7(e,t){D5(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=LT(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Fs({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function Oz(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Rt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Dt({...t,tempTranslationUrlMatches:[...i]})}}function Nz(e){e.ctx.rule.isTranslateTitle&&(M1(e.ctx),e.titleDynamicObserver=PT(e.ctx))}function Uz(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function H3(e,t){fe&&(e.filterRule=En(e,!0),e.isRichTranslate=Gs(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=En(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Pa(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function jz(e){let t=Sl();fe&&(t=fe.id),fe=fe||{},fe.ctx=e,fe.id=t,fe.paragraphQueue=fe.paragraphQueue||[],H3(e),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||Kz(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||Yz(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||zz(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||Vz(fe),fe.injectCssToDocument=Og,fe.walkContainer=pi,e.specialAiAssistant=di(e,e.translationService,!0),window.onerror=qz(fe,e),window.immersiveTranslateSwitchTranslateState=t2.bind(fe)}function J7(e,t){t.getRootNode()instanceof ShadowRoot?Og(t.getRootNode(),e):Og(t.ownerDocument,e),Hz(e)}function Hz(e){fe||(fe={},fe.ctx=e,fe.id=Sl(),e2(fe,e))}function e2(e,t){let n={...e};n.injectCssToDocument=Og,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=t2.bind(n);let r=di(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Gs(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function Du(e=!0){fe&&(Xn("Original"),$3(),Bz(fe),pc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),RT(fe.ctx),wC(),EC(),e&&t2.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function qz(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Du(),n=setTimeout(()=>{Cg(t)},e.urlChangeDelay||2e3)),!0}}function zz(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await F1(e,r.target),n.unobserve(r.target))})}function Vz(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{B1(e,o)}),n.unobserve(a)}})})}var G7;function Wz(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function Gz(e){if(e.urlChangeDelay<=0||(clearTimeout(G7),e.translateState=="original"))return!1;Du(e.urlChangeDelay>20),G7=setTimeout(()=>{let t=e.ctx;Cg(t)},e.urlChangeDelay)}function Kz(e){let t=e.ctx.rule,n=En(e.ctx);return new MutationObserver(r=>{if(Wz(e)&&(Q7(e.ctx,n),t.mutationConfig.enableUrlChange&&Gz(e))||e.interruptEffectDOM)return;let a=Jd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Er(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Er(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(N0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;K7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&j1(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&K7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!It.isSkipMarkEle(i.target)&&!It.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||La(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Js(n,o.parentElement);l&&(It.clearToParentMark(o,l),Y7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Yt])?!1:o.contains(l)).length&&Y7(e,i.target)}catch(o){k.error(o)}}})}function K7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{U1(n),pi({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{zo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function Y7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;It.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ro(t,e,n),i.timer=null},a)}function U1(e){e.paragraphs=[],It.clearMark(e),e.querySelectorAll("."+Yt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${F}-walked]`).forEach(t=>{t.paragraphs=void 0,It.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function j1(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Yt]))).length==0}function Yz(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);D1(i)||(n.unobserve(r.target),It.clearMark(a),ro(a,e))}})}async function t2(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await pa(),await tt(50),hn({method:"translatePage"});return}this.translateState=e,Pa(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Pa(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{gc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Yt}`).forEach(t=>t.remove())}function Og(e,t){if(e instanceof HTMLIFrameElement){Vi(e.contentDocument,t);return}Vi(e,t)}async function C7(e){let t=Tt(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=q4(e.mainFrame),n=await Ke({text:r,pageLangs:["en"]})):(r=Zs(e.mainFrame).slice(0,1e3),n=await Ke({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await Ke({text:Zs(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=q4(e.mainFrame),n=await Ke({text:r,pageLangs:["en"]})}else n=await N5();return n==="auto"&&(n=await BT()),S5(n),n}async function x7(){if(!fe)return;pc(),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${B0}='${n}']`);i&&i.remove()}}Vm.call(fe,fe.ctx)}async function b3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Be("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Lt()});let r=fe?.ctx||t,a=await Rt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:IT(r)},await Dt(a);let o=Se().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Aa(o)}catch(i){k.error(i)}}async function Mw(){let e=await Rt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(O6,{detail:JSON.stringify(e.draft)}))}async function Qz(){try{if(await Mo("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ta();await $({url:ct+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Qr("reportActive","1")}catch(e){k.error(e)}}function Z7(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(ys,{detail:{tempEnableSubtitle:t}}))}var Jz=new AbortController,{signal:Zz}=Jz,Bc=0,_c=0,Zo=!1,so,X7=0,yi=[];function q3(e){Xz(),og().forEach(t=>{Ng(e,t)})}function Ng(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&rV(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Ng(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Ng(n,t))}t.document.addEventListener(al,s),yi.push(()=>{t.document.removeEventListener(al,s)});let u=br(g=>{if(!(Math.abs(g.clientX-Bc)+Math.abs(g.clientY-_c)<=3)&&(Bc=g.clientX,_c=g.clientY,Zo&&!so&&a2(n,!1,t),o||Zo&&!so)){let p=nE(n.rule,t);if(p){if(r2(p))return;Ug(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;r2(p)||(Ug(n,!0,t),a2(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Kt.getPressedKeyCodes();if(f.length>1&&Kt[p]&&(X7=Date.now(),Zo=!1),f.length===1&&Kt[p]){let b=Date.now();Zo=!0,so&&clearTimeout(so),so=setTimeout(()=>{let y=X7-b;y>0&&y<=i?Zo=!1:l(g),so=void 0},i)}};if(yi.push(()=>{so&&clearTimeout(so)}),a)return;Fc("mousemove",u,t),yi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Zo=!1}if(Fc("blur",m,t),yi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=ny;Fc("keyup",$7,t),yi.push(()=>{t.removeEventListener("keyup",$7)}),p.includes(g)?Kt("*",{scope:"mouseHover",element:t.document},c):Kt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Kt.setScope("mouseHover"),yi.push(()=>{Kt.deleteScope("mouseHover")})}}function Xz(){try{yi.forEach(e=>e())}catch{}yi=[],Kt.setScope("all")}function $7(e){Zo=!1}function Fc(e,t,n=window){return n.addEventListener(e,t,{signal:Zz})}function Ug(e,t,n,r){if(r=r||nE(e.rule,n),!r){k.debug("can not find selection part!");return}if(eV(e,r,t))return;if(r2(r)){k.debug("exclude dom");return}J7(e,r);let i=Dc();i&&(i.setupMouseHoverListener=Ng);let o=En(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=e2(i,e);pi({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{Jd(n.document.documentElement)!==l.state.translationMode&&Pa(n.document.documentElement,l.state.translationMode),zo(u,c,!0,"hover").then(g=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,g&&!s){s=!0;let p=Date.now();rt(j6,p);let f={translation_service:u?.translationService||""};Be("mouse_hover_translate",[{name:"mouse_hover_translate",params:f}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function nE(e,t){return $z(Bc,_c,e,t)}function $z(e,t,n,r){let a=XC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=$C(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:tE(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{nV(e,a)}),!0}function tV(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(F+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${F}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function nV(e,t){let n=Dc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{gc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function n2(e){return!!(e.host&&e.mode)}function eE(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||n2(n))return e;for(;n&&n.nodeName!=="BODY"&&!n2(n)&&j4(n,t);){let r=n.parentNode;if(r&&n2(r))break;n=r}return n}function tE(e,t){return e.nodeType===Node.TEXT_NODE||j4(e,t)?eE(e,t):e}function rE(e,t,n){Bc=t.clientX,_c=t.clientY,Ug(e,!0,n),a2(e,!0,n)}async function a2(e,t,n,r){if(!li(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=ex(Bc,_c,e.rule,n);if(!a||Q4(a.src)||a.translationStatus==="translating")return;let i=u3(a);if(i&&!t||i&&!r)return;if(i){Ko(a);return}if(!await As(e)){ag("image_mouse_hover");return}Go(e,a,!0,"image_mouse_hover")}function rV(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Ug(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Fc("mousedown",i,t),Fc("mouseup",o,t),yi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Oc=[];function i2(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Oc.push(()=>{document.removeEventListener("click",i)})}function aE(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Oc.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function jg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Oc.push(()=>{document.removeEventListener("touchstart",r)})}var hc={touchShortcutsOff:()=>{},"multipleClick.2":i2,"multipleClick.3":i2,"multipleClick.4":i2,"slide.left":aE,"slide.right":aE,"fingers.2":jg,"fingers.3":jg,"fingers.4":jg,"fingers.5":jg};async function Pw(e,t=window){try{uV();let n=await ln(),r=U0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=o2(e,n,a.command),o=hc[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{sV(a.command,e,t,l)})})}catch(n){k.error(n)}}function o2(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var aV=()=>{O3();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},iV=()=>{U3();let e=new CustomEvent(Gr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},oV=()=>{N3();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},iE=0,sV=(e,t,n,r)=>{if(!(new Date().getTime()-iE<200)){if(iE=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")aV();else if(e==="touchShortcutsToggleTranslationMask")oV();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")iV();else if(e==="touchShortcutsToggleTranslateTouchElement")rE(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};T3(r,t,n,s)}}};function uV(){Oc.forEach(e=>{e()}),Oc=[]}function Nc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(hc).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=ni.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d(ua,{className:"select",maxWidth:250,items:ni.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let b=g("mouseHoldKey",{key:Fa(f)}),y=ni.includes(o),h=f===o;return o==="Off"&&f===o&&c&&(h=!1),f==="Auto"?b=g("mouseHoldKeyAuto"):f==="Off"?b=g("mouseHoldKeyOff"):f==="OtherCustom"?b=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?b=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(b=g("mouseHoldKeyPressHold")),y||f==="Other"&&(h=!0),{label:b,value:f,selected:h,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(be,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(be,{title:r,description:i||""}),d("div",{class:"nav",children:[d(ua,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:h=>{h.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(h.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(a1,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(a1,{width:20,height:16})})})})]})]})}function s2(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let[o,s]=ma(),{t:u}=O(),l=ft(t),c=cn(l);return l?d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ga,{image:rn("images/hover_intro.png"),nightImage:rn("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Kr(o)&&d(Nc,{onChange:(m,g)=>{n(p=>{let b={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(b.mouseHoverPreferenceKey=m),{...p,generalRule:b}}),g||at(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(lV,{setSettings:n,config:l,localConfig:o}),d(to,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function lV({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Kr(n)?null:d(Nc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||at(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function u2(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),s=cn(o),u=ue(g=>{s&&n(p=>ji({...p},g))},[s,n]),l=si(s,t),{t:c}=O(),m=ue((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ga,{image:rn("images/float_ball_intro.png"),nightImage:rn("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(cV,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(dV,{t:m,rule:l,updateFloatBallRule:u}),d(mV,{t:m,rule:l,updateFloatBallRule:u}),d(gV,{t:m,rule:l,updateFloatBallRule:u})]})})}function cV({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function dV({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);q(()=>{Kt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,b,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=Hn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(b=>{t.blockUrls=Jt(b,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,b)=>{a(!r),o(p),u(b)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(ca,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ha,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function mV({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function gV({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function l2(){let e=Ne(),[t,n,r,a,i]=e,[o]=ma();Je(t,n);let[s,u]=N(null),{t:l,lang:c}=O();q(()=>{Qe().then(b=>{wn({config:b,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Ls(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=U0.filter(b=>{if(b.name==="touch"){let y=Kr(o);return k.debug("isSupportMouseHover",y),!y}else if(b.name==="mouse"){let y=Kr(o);return k.debug("isSupportMouseHover",y),y}else return!0}).map(b=>({name:b.name,shortcuts:b.shortcuts.map(y=>{let h="",v="normal";typeof y=="string"?h=y:(h=y.command,y.type&&(v=y.type));let C="";l(`desc.${h}`)!==`desc.${h}`&&(C=l(`desc.${h}`));let w="";v==="finger"?w=o2(s,t,h):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[h]!==void 0?w=t.generalRule[h]:w=g.generalRule[h]:t?.shortcuts&&t?.shortcuts[h]!==void 0?w=t.shortcuts[h]:w=g.shortcuts[h];let T=l(`browser.${h}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(T=l(`${h}`));let S,A;return v.startsWith("translateWithCustom")&&(S=t?.shortcuts?.translateWithCustomServices?.[h],A=m.map(D=>{let M={service:D,name:null};return D.startsWith("custom-ai")&&(M.name=s.config.translationServices[D].name),M})),{command:h,type:v,shortcut:w,title:T,description:C,service:S,serviceIdList:A,disabled:!(X(!0)||fs())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return X(!0)||(Zn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):fs()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:b=>{b.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((b,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${b.name}`)}),b.shortcuts.map((h,v)=>mo(Nc,{...h,key:`shortcut-${v}`,onChange:(C,x)=>{n(w=>{if(h.type==="finger"){let S={...w.generalRule||{},[h.command]:C||"touchShortcutsOff"};return h.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(S.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...w,generalRule:S}}else if(h.type==="mouseHoverHoldKey"){let S={...w.generalRule||{},[h.command]:C||"Off"};return C!=="Off"&&(S.mouseHoverPreferenceKey=C),{...w,generalRule:S}}else if(h.type.startsWith("translateWithCustom")){let T={...w?.shortcuts};if(m.includes(C)){let A=T.translateWithCustomServices||{};return{...w,shortcuts:{...T,translateWithCustomServices:{...A,[h.command]:C}}}}let S={...w,shortcuts:{...T,[h.command]:C}};return C||(S.shortcuts[h.command]=""),S}else{let T={...w?.shortcuts},S={...w,shortcuts:{...T,[h.command]:C}};return C||(S.shortcuts[h.command]=""),S}}),x||at(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function pV(){let[e,t]=N(null);return q(()=>{Qe().then(n=>{t(n)})},[]),e}function c2(){let[e,t,n,r,a]=Ne(),i=pV(),{t:o,setLang:s}=O(),[u,l]=ma();if(!i)return null;return d(it,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return q(()=>{e&&m()},[e]),d(le,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});po.saveAs(g,F+"-config-"+zs()+".txt")}}}function d2({config:e}){let t=tr(),{t:n,lang:r}=O();return d(le,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(sT,{}),d("h1",{children:n("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:a=>{a.preventDefault(),cr(`${Q}docs/CHANGELOG/#${t.replace(/\./ig,"")}`)},children:Ro(e)}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(fV,{}),d(hV,{})]})]}),d("div",{className:"header-navbar-height"})]})}function fV(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:uy,target:"_blank",children:[d(uT,{}),d("span",{children:e("options.navbar.installApp")})]})}function hV(){let{t:e}=O();return d(yt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:fy,target:"_blank",children:[d(lT,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function m2(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let{t:o}=O(),s=ft(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=_d(s.supportedMangaSites),c=``,m=[...l.map((p,f)=>` ${p.name} ${f!==l.length-1?", ":""} - `),c].join(""),g=ci(u,!0);return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(pa,{image:rn("images/popup-manga-guide.png"),nightImage:rn("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:Ff})+m,children:d("div",{class:"px-6",children:d(sE,{config:u.config,ctx:u})})}),d(sE,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:Ff})+"
"+m}}),d(hV,{ctx:u})]})})}function sE({config:e,ctx:t,className:n}){let[r,a,i,o,s]=Se(me),u=ui(t,r),{t:l}=O(),c=ue((g,p)=>l("floatBallOptions."+g,p),[]),m=ue(g=>{t&&a(p=>ji({...p},g))},[t,a]);return u?d(le,{children:d("div",{class:`nav ${n}`,children:[d(be,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function hV({ctx:e}){let{t}=O();return ci(e,!0)?d(le,{children:[d(pa,{image:rn("images/image_tansalte_intro-qkKVLH.png"),nightImage:rn("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:Bf}),children:d("div",{class:"px-6",children:[d(uE,{ctx:e}),d(lE,{ctx:e,styles:{paddingTop:0}})]})}),d(uE,{ctx:e,className:"image-tools-enable"}),d(lE,{ctx:e,className:"image-tools-enable"}),d(bV,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:Bf})}})]}):null}function uE({ctx:e,className:t}){let[n,r,a,i,o]=Se(me),s=e.rule.imageRule,{t:u}=O();return d(le,{children:d("div",{class:`nav ${t}`,children:[d(be,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function bV({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=Se(me),p=e.config.generalRule.imageRule||{};q(()=>{Kt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},h=(v,C,x,w)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=qn(v,p.blockToolsUrls),l(S=>({...S,generalRule:{...S.generalRule,"imageRule.add":{...S.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(x=>{p.blockToolsUrls=Jt(x,p.blockToolsUrls)}),l(x=>({...x,generalRule:{...x.generalRule,"imageRule.add":{...x.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},b=(v,C,x)=>{r(!n),i(v),s(x)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(da,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:h,type:"excludeMatches",urlValue:a,index:o}):null]}),d(qa,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:b})]})}function lE({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=Se(me);return d("div",{class:`nav ${t}`,style:n,children:[d(be,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function cE(){try{if(X())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Ii,n)}catch{}}async function dE(){await cE();let e=document.getElementById("mount");e&&(async()=>{yp(AS);let t=await Je();if(location.href.includes(bs)&&t.joinJobs){let r=Dy.replace("{jobs}",t.joinJobs.map(a=>` \u2022 ${a}`).join(` -`))}t.debug&&k.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Ne("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),Vi(document,n),Ca(d(Ji,{lang:t.interfaceLanguage,children:d(yV,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function yV(e){let t=_o(),{t:n,lang:r}=O(),a=nr(),{config:i}=e,{beta:o}=i,s=tr(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:ci(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];vV(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;He()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(Im,{}),"#services":d(f1,{}),"#ai":d(y1,{}),"#mouse_hover":d(l2,{}),"#input":d(v1,{}),"#shortcuts":d(d2,{}),"#floating":d(c2,{}),"#import_export":d(e1,{}),"#about":d(x1,{}),"#advanced":d(S1,{}),"#developer":d(C1,{}),"#subtitle":d(E1,{}),"#manga":d(p2,{}),"#contact":d(T1,{}),"#download_config":d(m2,{})};return u||delete m["#manga"],d(at,{children:[d(g2,{config:i}),d(le,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),lr(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:hl,onClick:g=>{g.preventDefault(),lr(hl)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),lr(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:_f,onClick:g=>{g.preventDefault(),lr(_f)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${F}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(z4,{value:t,defaultCase:d(Im,{}),cases:m})})]})})]})}function vV(e){let t=Ce(0),n=Ce(0),r=Ce(),a=ue(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await N5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);q(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),q(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}dE();})(); + `),c].join(""),g=li(u,!0);return d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(ga,{image:rn("images/popup-manga-guide.png"),nightImage:rn("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:Ff})+m,children:d("div",{class:"px-6",children:d(oE,{config:u.config,ctx:u})})}),d(oE,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:Ff})+"
"+m}}),d(bV,{ctx:u})]})})}function oE({config:e,ctx:t,className:n}){let[r,a,i,o,s]=Te(me),u=si(t,r),{t:l}=O(),c=ue((g,p)=>l("floatBallOptions."+g,p),[]),m=ue(g=>{t&&a(p=>ji({...p},g))},[t,a]);return u?d(le,{children:d("div",{class:`nav ${n}`,children:[d(be,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function bV({ctx:e}){let{t}=O();return li(e,!0)?d(le,{children:[d(ga,{image:rn("images/image_tansalte_intro-qkKVLH.png"),nightImage:rn("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:Bf}),children:d("div",{class:"px-6",children:[d(sE,{ctx:e}),d(uE,{ctx:e,styles:{paddingTop:0}})]})}),d(sE,{ctx:e,className:"image-tools-enable"}),d(uE,{ctx:e,className:"image-tools-enable"}),d(yV,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:Bf})}})]}):null}function sE({ctx:e,className:t}){let[n,r,a,i,o]=Te(me),s=e.rule.imageRule,{t:u}=O();return d(le,{children:d("div",{class:`nav ${t}`,children:[d(be,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function yV({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=Te(me),p=e.config.generalRule.imageRule||{};q(()=>{Kt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},b=(v,C,x,w)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=Hn(v,p.blockToolsUrls),l(T=>({...T,generalRule:{...T.generalRule,"imageRule.add":{...T.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(x=>{p.blockToolsUrls=Jt(x,p.blockToolsUrls)}),l(x=>({...x,generalRule:{...x.generalRule,"imageRule.add":{...x.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},h=(v,C,x)=>{r(!n),i(v),s(x)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(ca,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:b,type:"excludeMatches",urlValue:a,index:o}):null]}),d(Ha,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:h})]})}function uE({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=Te(me);return d("div",{class:`nav ${t}`,style:n,children:[d(be,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function lE(){try{if(X())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Ii,n)}catch{}}async function cE(){await lE();let e=document.getElementById("mount");e&&(async()=>{bp(wT);let t=await Qe();if(location.href.includes(bs)&&t.joinJobs){let r=Ay.replace("{jobs}",t.joinJobs.map(a=>` \u2022 ${a}`).join(` +`))}t.debug&&k.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Be("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),Vi(document,n),va(d(Ji,{lang:t.interfaceLanguage,children:d(vV,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function vV(e){let t=_o(),{t:n,lang:r}=O(),a=tr(),{config:i}=e,{beta:o}=i,s=er(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:li(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];CV(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;He()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(Rm,{}),"#services":d(f1,{}),"#ai":d(y1,{}),"#mouse_hover":d(s2,{}),"#input":d(v1,{}),"#shortcuts":d(l2,{}),"#floating":d(u2,{}),"#import_export":d(e1,{}),"#about":d(x1,{}),"#advanced":d(T1,{}),"#developer":d(C1,{}),"#subtitle":d(E1,{}),"#manga":d(m2,{}),"#contact":d(S1,{}),"#download_config":d(c2,{})};return u||delete m["#manga"],d(it,{children:[d(d2,{config:i}),d(le,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),cr(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:fl,onClick:g=>{g.preventDefault(),cr(fl)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),cr(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:_f,onClick:g=>{g.preventDefault(),cr(_f)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${F}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(z4,{value:t,defaultCase:d(Rm,{}),cases:m})})]})})]})}function CV(e){let t=Ce(0),n=Ce(0),r=Ce(),a=ue(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await _5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);q(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),q(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}cE();})(); /*! Bundled license information: js-yaml/dist/js-yaml.mjs: diff --git a/dist/chrome/popup.js b/dist/chrome/popup.js index 3efe8c9..00cca79 100644 --- a/dist/chrome/popup.js +++ b/dist/chrome/popup.js @@ -1,4 +1,4 @@ -(()=>{var HC=Object.defineProperty;var qC=(e,t)=>{for(var n in t)HC(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var UC=Object.defineProperty;var HC=(e,t)=>{for(var n in t)UC(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,23 +5447,23 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var WC=Object.create,Kd=Object.defineProperty,GC=Object.getOwnPropertyDescriptor,O4=Object.getOwnPropertyNames,VC=Object.getPrototypeOf,KC=Object.prototype.hasOwnProperty,YC=(e,t)=>function(){return t||(0,e[O4(e)[0]])((t={exports:{}}).exports,t),t.exports},QC=(e,t)=>{for(var n in t)Kd(e,n,{get:t[n],enumerable:!0})},Vd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of O4(t))!KC.call(e,a)&&a!==n&&Kd(e,a,{get:()=>t[a],enumerable:!(r=GC(t,a))||r.enumerable});return e},JC=(e,t,n)=>(Vd(e,t,"default"),n&&Vd(n,t,"default")),N4=(e,t,n)=>(n=e!=null?WC(VC(e)):{},Vd(t||!e||!e.__esModule?Kd(n,"default",{value:e,enumerable:!0}):n,e)),j4=YC({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(T,A=void 0){super(A),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,T)=>(...A)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):T.singleCallbackArg||A.length<=1&&T.singleCallbackArg!==!1?C.resolve(A[0]):C.resolve(A)},c=C=>C==1?"argument":"arguments",d=(C,T)=>function(k,...R){if(R.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${R.length}`);return new Promise((F,P)=>{if(T.fallbackToNoCallback)try{k[C](...R,l({resolve:F,reject:P},T))}catch{k[C](...R),T.fallbackToNoCallback=!1,T.noCallback=!0,F()}else T.noCallback?(k[C](...R),F()):k[C](...R,l({resolve:F,reject:P},T))})},m=(C,T,A)=>new Proxy(T,{apply(k,R,F){return A.call(R,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,T={},A={})=>{let k=Object.create(null),R={has(P,I){return I in C||I in k},get(P,I,L){if(I in k)return k[I];if(!(I in C))return;let _=C[I];if(typeof _=="function")if(typeof T[I]=="function")_=m(C,C[I],T[I]);else if(p(A,I)){let O=d(I,A[I]);_=m(C,C[I],O)}else _=_.bind(C);else if(typeof _=="object"&&_!==null&&(p(T,I)||p(A,I)))_=g(_,T[I],A[I]);else if(p(A,"*"))_=g(_,T[I],A["*"]);else return Object.defineProperty(k,I,{configurable:!0,enumerable:!0,get(){return C[I]},set(O){C[I]=O}}),_;return k[I]=_,_},set(P,I,L,_){return I in k?k[I]=L:C[I]=L,!0},defineProperty(P,I,L){return Reflect.defineProperty(k,I,L)},deleteProperty(P,I){return Reflect.deleteProperty(k,I)}},F=Object.create(C);return new Proxy(F,R)},h=C=>({addListener(T,A,...k){T.addListener(C.get(A),...k)},hasListener(T,A){return T.hasListener(C.get(A))},removeListener(T,A){T.removeListener(C.get(A))}}),b=new s(C=>typeof C!="function"?C:function(A){let k=g(A,{},{getContent:{minArgs:0,maxArgs:0}});C(k)}),f=new s(C=>typeof C!="function"?C:function(A,k,R){let F=!1,P,I=new Promise(z=>{P=function(V){F=!0,z(V)}}),L;try{L=C(A,k,P)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!F)return!1;let O=z=>{z.then(V=>{R(V)},V=>{let ie;V&&(V instanceof Error||typeof V.message=="string")?ie=V.message:ie="An unexpected error occurred",R({__mozWebExtensionPolyfillReject__:!0,message:ie})}).catch(V=>{})};return O(_?L:I),!0}),y=({reject:C,resolve:T},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?T():C(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?C(new Error(A.message)):T(A)},v=(C,T,A,...k)=>{if(k.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${k.length}`);return new Promise((R,F)=>{let P=y.bind(null,{resolve:R,reject:F});k.push(P),A.sendMessage(...k)})},S={devtools:{network:{onRequestFinished:h(b)}},runtime:{onMessage:h(f),onMessageExternal:h(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),U4={};QC(U4,{default:()=>ul});var ZC=N4(j4());JC(U4,N4(j4()));var{default:_4,...XC}=ZC,ul=_4!==void 0?_4:XC;globalThis.immersiveTranslateBrowserAPI=ul;var pl,Re,G4,$C,xs,H4,V4,cl={},K4=[],ew=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Fa(e,t){for(var n in t)e[n]=t[n];return e}function Y4(e){var t=e.parentNode;t&&t.removeChild(e)}function vs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?pl.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return ll(e,o,r,a,null)}function ll(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++G4};return a==null&&Re.vnode!=null&&Re.vnode(i),i}function Gt(e){return e.children}function xi(e,t){this.props=e,this.context=t}function eo(e,t){if(t==null)return e.__?eo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?ll(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:gl}),n.__[e]}function G(e){return Ss=1,aw(c3,e)}function aw(e,t,n){var r=Ts(no++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):c3(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Pt,!Pt.u)){Pt.u=!0;var a=Pt.shouldComponentUpdate;Pt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function te(e,t){var n=Ts(no++,3);!Re.__s&&Xd(n.__H,t)&&(n.__=e,n.i=t,Pt.__H.__h.push(n))}function Cs(e,t){var n=Ts(no++,4);!Re.__s&&Xd(n.__H,t)&&(n.__=e,n.i=t,Pt.__h.push(n))}function Ce(e){return Ss=5,ye(function(){return{current:e}},[])}function ye(e,t){var n=Ts(no++,7);return Xd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ae(e,t){return Ss=8,ye(function(){return e},t)}function hl(e){var t=Pt.context[e.__c],n=Ts(no++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pt)),t.props.value):e.__}function iw(){for(var e;e=l3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fl),e.__H.__h.forEach(Zd),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Pt=null,r3&&r3(e)},Re.__r=function(e){a3&&a3(e),no=0;var t=(Pt=e.__c).__H;t&&(Jd===Pt?(t.__h=[],Pt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=gl,n.__N=n.i=void 0})):(t.__h.forEach(fl),t.__h.forEach(Zd),t.__h=[])),Jd=Pt},Re.diffed=function(e){i3&&i3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(l3.push(t)!==1&&n3===Re.requestAnimationFrame||((n3=Re.requestAnimationFrame)||ow)(iw)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==gl&&(n.__=n.__V),n.i=void 0,n.__V=gl})),Jd=Pt=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(fl),n.__h=n.__h.filter(function(r){return!r.__||Zd(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Re.__e(r,n.__v)}}),o3&&o3(e,t)},Re.unmount=function(e){s3&&s3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{fl(r)}catch(a){t=a}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var u3=typeof requestAnimationFrame=="function";function ow(e){var t,n=function(){clearTimeout(r),u3&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);u3&&(t=requestAnimationFrame(n))}function fl(e){var t=Pt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pt=t}function Zd(e){var t=Pt;e.__c=e.__(),Pt=t}function Xd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function c3(e,t){return typeof t=="function"?t(e):t}function bl(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}function De(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var be=De();function ne(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):be.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function da(){return be.PROD==="1"}function $d(){return be.PROD_API==="1"}function d3(){return be.HAS_CSP_ERROR=="1"}function ct(){if(be.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function yl(){return typeof Deno<"u"}var HN=De().PROD==="1",ro=De().PROD!=="1";function xl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function m3(){return be.IMMERSIVE_TRANSLATE_JSSDK==="1"}var em=/iPhone/i,p3=/iPod/i,g3=/iPad/i,f3=/\biOS-universal(?:.+)Mac\b/i,tm=/\bAndroid(?:.+)Mobile\b/i,h3=/Android/i,ao=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,vl=/Silk/i,ma=/Windows Phone/i,b3=/\bWindows(?:.+)ARM\b/i,y3=/BlackBerry/i,x3=/BB10/i,v3=/Opera Mini/i,S3=/\b(CriOS|Chrome)(?:.+)Mobile/i,T3=/Mobile(?:.+)Firefox\b/i,C3=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function sw(e){return t=>t.test(e)}function We(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=sw(n),i={apple:{phone:a(em)&&!a(ma),ipod:a(p3),tablet:!a(em)&&(a(g3)||C3(t))&&!a(ma),universal:a(f3),device:(a(em)||a(p3)||a(g3)||a(f3)||C3(t))&&!a(ma)},amazon:{phone:a(ao),tablet:!a(ao)&&a(vl),device:a(ao)||a(vl)},android:{phone:!a(ma)&&a(ao)||!a(ma)&&a(tm),tablet:!a(ma)&&!a(ao)&&!a(tm)&&(a(vl)||a(h3)),device:!a(ma)&&(a(ao)||a(vl)||a(tm)||a(h3))||a(/\bokhttp\b/i)},windows:{phone:a(ma),tablet:a(b3),device:a(ma)||a(b3)},other:{blackberry:a(y3),blackberry10:a(x3),opera:a(v3),firefox:a(T3),chrome:a(S3),device:a(y3)||a(x3)||a(v3)||a(T3)||a(S3)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var nm="DENO",Sl="CHROME",Tl="FIREFOX";function w3(e){let t=Sl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Tl:/deno/i.test(n)&&(t=nm)}catch{}return e===Sl&&t===Sl||e===Tl&&t===Tl||e===nm&&t===nm}function E3(){return w3(Sl)}function A3(){return typeof Deno<"u"}function kn(){return De().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:w3(Tl)}function Yn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ws(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var k3={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},D3={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:k3,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:k3,query:()=>{},sendMessage:()=>{}}};var $;A3()?$=D3:$=globalThis.immersiveTranslateBrowserAPI;var Y="immersiveTranslate",vi="Immersive Translate",B="immersive-translate",wl="imt";var F3="pdf/index.html";var $t="immersivetranslate.com",uw=`https://config.${$t}/`,ij=`https://app.${$t}/`,oe=da()||$d()?`https://${$t}/`:`https://test.${$t}/`,Cl=`https://dash.${$t}/`,tt=da()||$d()?`https://api2.${$t}/`:`https://test-api2.${$t}/`,B3=`https://github.com/${B}/${B}/`,I3=`https://s.${$t}/`,oj=`https://onboarding.${$t}/`,_3=Y+"DeeplGlobalState",rm=Y+"BingGlobalState",am=Y+"YandexGlobalState",im=Y+"BaiduQianfanGlobalConfigStorageKey",O3=Y+"SiliconCloudGlobalConfigStorageKey",N3=Y+"ZhipuGlobalConfigStorageKey";var om=Y+"GoogleAccessToken",j3=Y+"AuthFlow",U3=B+"-config-latest.json",lw=Y+"AuthState",El=Y+"IframeMessage",sj=Y+"WaitForRateLimit",H3=Y+"DocumentMessageAsk",It=Y+"DocumentMessageTellThirdParty",mn=Y+"showError",Si=Y+"showModal",Al=Y+"showToast",q3=Y+"DocumentMessageThirdPartyTell",z3=Y+"DocumentMessageEventUpload",uj=Y+"DocumentMessageTypeStopJsSDK",cw=Y+"DocumentMessageHandler",kl=Y+"DocumentSetFloatBallActive",Dl=`${Y}Share`,Pl=`${Y}ShowFloatBallGuide`,io=Y+"DocumentMessageTempEnableSubtitleChanged",Es=`${Y}ToggleMouseHoverTranslateDirectly`,W3=`${Y}ReqDraft`,G3=`${Y}ResDraft`,dw=`${Y}Container`,V3=`${Y}SpecifiedContainer`,Ll="buildinConfig",As="localConfig",sm="openOptionsPage",K3="translateMangaMenuId",um="openAboutPage";var lm="openEbookViewer",cm="openEbookBuilder";var Ti=`${Y}PageTranslatedStatus`,ks=`${Y}MangaTranslatedStatus`,lj=`${Y}PageUrlChanged`,yr=`${Y}ReceiveCommand`,Y3=Y+"LastUseMouseHoverTime",Ds=Y+"LastUseInputTime",lr=Y+"LastUseManualTranslatePageTime",Ps=`${Y}PopupReceiveMessage`,Ci=Y+"DocumentMessageEventTogglePopup",Ls=`${uw}default_config.json`,cj=`${Y}Mark`,Qn=`${Y}Root`,Q3=`${Y}Walked`,dj=`data-${B}-walked`,J3=`${Y}Paragraph`,Z3=`data-${B}-paragraph`,oo=`data-${B}-translation-element-mark`,X3=`${Y}TranslationElementMark`,mj=`${Y}TranslatedMark`,dm=`${B}-input-injected-css`,$3=`${Y}LoadingId`,mm=`data-${B}-loading-id`,e1=`${Y}ErrorId`,Ml=`data-${B}-error-id`,mw=`${Y}AtomicBlockMark`,t1=`${Y}ExcludeMark`,pj=`data-${B}-exclude-mark`,pw=`${Y}StayOriginalMark`,gj=`${Y}PreWhitespaceMark`,Rl=`${Y}InlineMark`,n1=`${Y}BlockMark`,fj=`${Y}Left`,hj=`${Y}Right`,bj=`${Y}Width`,yj=`${Y}Height`,xj=`${Y}Top`,vj=`${Y}FontSize`,r1="lastRunTime";var Sj=`${Y}GlobalStyleMark`,so=["@","#"],Fl=" --- ",a1=` -`,Lt=`${B}-target-wrapper`,Tj=`${B}-pdf-target-container`,Bl=`${B}-target-inner`,Cj=`${B}-source-wrapper`,pm=`${B}-target-translation-block-wrapper`,wj=`${B}-root-translation-theme`,uo=`${Y}RootTranslationTheme`,i1=`${B}-target-translation-vertical-block-wrapper`,Ej=`${B}-target-translation-pdf-block-wrapper`,o1=`${B}-target-translation-pre-whitespace`,gm=`${B}-target-translation-inline-wrapper`;var s1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var u1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],l1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Cl,Cl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ba="zh-CN",Aj=oe+"docs/communities/",kj=B3+"issues/1809",Dj=B3+"issues/1179",Il={type:Y+"ChildFrameToRootFrameIdentifier"},fm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ms=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],c1=["ctrl","alt","shift","cmd","command","option","control"];var _l=da()?Cl+"#general":"http://localhost:8000/dist/userscript/options/#general",hm="user_from_plugin",mt="user_info",Ol=oe+"accounts/login?from=plugin",d1=Cl+"#general",Pj=oe+"accounts/login?from=plugin&return_url="+encodeURIComponent(d1),m1=Ol+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",p1=Ol+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Rs=oe+"profile/",Fs=oe+"auth/pricing/",Dn=oe+"pricing/",gw=oe+"download/",fw=oe+"topup?type=open_ai&",hw=oe+"topup?type=deepl&",g1=oe+"topup?type=comics&",bw=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",f1=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Lj=gw+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",Mj=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Nl=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",bm=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",Rj=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",h1=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",b1=fw+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",y1=hw+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",x1=oe+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",yw=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",ym=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Fj=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Bj=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",Ij=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",_j=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=",v1=oe+"docs/usage/",Oj=oe+"docs/communities/",Bs=De().TRANSLATE_FILE_URL,Nj=Bs+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",S1=Bs+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",T1=`${Bs}download-subtitle/`,C1=`${Bs}pdf-pro/`,w1=`${Bs}text/`,wi=["deepl","openai","gemini","claude"],xw="G-BHWL0KMJB8",vw="7pr-olTJR6GKAjIW48UD0Q",P3="G-MKMD9LWFTR",L3="sitc4WmvShWYwfU0dANM3Q",M3="G-V5H2F5MJFJ",R3="UBjpGOLISEaY5LVXNj3WvQ";function jl(){return m3()?[`https://www.google-analytics.com/mp/collect?measurement_id=${xw}&api_secret=${vw}`]:da?[`https://www.google-analytics.com/mp/collect?measurement_id=${P3}&api_secret=${L3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${M3}&api_secret=${R3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${P3}&api_secret=${L3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${M3}&api_secret=${R3}`]}var Is=`https://analytics.${$t}/collect`,jj=`${oe}activities/components/image-pro`;var E1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",A1="0VmM83i2D1ICuYBf",Ul=`[${wl}-ctx-divider]`,Hl=`${wl}_context_preview`;function k1(e){let t=$.runtime.getURL(F3),n=new URL(t);return e&&(e.startsWith("http")||!kn())&&n.searchParams.set("file",e),n.href}var Ei=Y+"CacheKey_";function Ai(e,t){let n=Ei+e;return $.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Sw(){let e=$.storage.local.refresh;e&&e()}function xm(e,t){let n=Ei+e;return $.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ei)).filter(r=>r!==Ei+mt);if(n.length>0)return $.storage.local.remove(n)}}var pt={get:Ai,set:ki,getExpired:xm,setExpired:vm,remove:Sm,clear:Tm,refresh:Sw};function ht(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function D1(e){if(e){let t=new Date(e.createTime),n=Tw(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function Tw(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function _s(e){if(e?.isPro)return!0;let t=await pt.get(mt,null);return ht(t)}function lo(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Cm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function ql(e,t){let n=lo(),r=setTimeout(()=>n.reject(new Cm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function ot(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var P1=class{#e=0;#t=[];#n=[];#r=lo();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tQw,bgBlue:()=>$w,bgBrightBlack:()=>rE,bgBrightBlue:()=>sE,bgBrightCyan:()=>lE,bgBrightGreen:()=>iE,bgBrightMagenta:()=>uE,bgBrightRed:()=>aE,bgBrightWhite:()=>cE,bgBrightYellow:()=>oE,bgCyan:()=>tE,bgGreen:()=>Zw,bgMagenta:()=>eE,bgRed:()=>Jw,bgRgb24:()=>gE,bgRgb8:()=>mE,bgWhite:()=>nE,bgYellow:()=>Xw,black:()=>Fw,blue:()=>Ow,bold:()=>Aw,brightBlack:()=>R1,brightBlue:()=>Gw,brightCyan:()=>Kw,brightGreen:()=>zw,brightMagenta:()=>Vw,brightRed:()=>qw,brightWhite:()=>Yw,brightYellow:()=>Ww,cyan:()=>jw,dim:()=>kw,getColorEnabled:()=>ww,gray:()=>Hw,green:()=>Iw,hidden:()=>Mw,inverse:()=>Lw,italic:()=>Dw,magenta:()=>Nw,red:()=>Bw,reset:()=>Ew,rgb24:()=>pE,rgb8:()=>dE,setColorEnabled:()=>Cw,strikethrough:()=>Rw,stripColor:()=>hE,underline:()=>Pw,white:()=>Uw,yellow:()=>_w});var{Deno:L1}=globalThis,M1=typeof L1?.noColor=="boolean"?L1.noColor:!0,wm=!M1;function Cw(e){M1||(wm=e)}function ww(){return wm}function Le(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Me(e,t){return wm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Ew(e){return Me(e,Le([0],0))}function Aw(e){return Me(e,Le([1],22))}function kw(e){return Me(e,Le([2],22))}function Dw(e){return Me(e,Le([3],23))}function Pw(e){return Me(e,Le([4],24))}function Lw(e){return Me(e,Le([7],27))}function Mw(e){return Me(e,Le([8],28))}function Rw(e){return Me(e,Le([9],29))}function Fw(e){return Me(e,Le([30],39))}function Bw(e){return Me(e,Le([31],39))}function Iw(e){return Me(e,Le([32],39))}function _w(e){return Me(e,Le([33],39))}function Ow(e){return Me(e,Le([34],39))}function Nw(e){return Me(e,Le([35],39))}function jw(e){return Me(e,Le([36],39))}function Uw(e){return Me(e,Le([37],39))}function Hw(e){return R1(e)}function R1(e){return Me(e,Le([90],39))}function qw(e){return Me(e,Le([91],39))}function zw(e){return Me(e,Le([92],39))}function Ww(e){return Me(e,Le([93],39))}function Gw(e){return Me(e,Le([94],39))}function Vw(e){return Me(e,Le([95],39))}function Kw(e){return Me(e,Le([96],39))}function Yw(e){return Me(e,Le([97],39))}function Qw(e){return Me(e,Le([40],49))}function Jw(e){return Me(e,Le([41],49))}function Zw(e){return Me(e,Le([42],49))}function Xw(e){return Me(e,Le([43],49))}function $w(e){return Me(e,Le([44],49))}function eE(e){return Me(e,Le([45],49))}function tE(e){return Me(e,Le([46],49))}function nE(e){return Me(e,Le([47],49))}function rE(e){return Me(e,Le([100],49))}function aE(e){return Me(e,Le([101],49))}function iE(e){return Me(e,Le([102],49))}function oE(e){return Me(e,Le([103],49))}function sE(e){return Me(e,Le([104],49))}function uE(e){return Me(e,Le([105],49))}function lE(e){return Me(e,Le([106],49))}function cE(e){return Me(e,Le([107],49))}function Ia(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function dE(e,t){return Me(e,Le([38,5,Ia(t)],39))}function mE(e,t){return Me(e,Le([48,5,Ia(t)],49))}function pE(e,t){return typeof t=="number"?Me(e,Le([38,2,t>>16&255,t>>8&255,t&255],39)):Me(e,Le([38,2,Ia(t.r),Ia(t.g),Ia(t.b)],39))}function gE(e,t){return typeof t=="number"?Me(e,Le([48,2,t>>16&255,t>>8&255,t&255],49)):Me(e,Le([48,2,Ia(t.r),Ia(t.g),Ia(t.b)],49))}var fE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function hE(e){return e.replace(fE,"")}var Em=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},bE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Am(e,t){let n={...bE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Em(a,n.maxAttempts)}var pa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function km(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=pa[(t[r-2]&3)<<4|t[r-1]>>4],n+=pa[(t[r-1]&15)<<2|t[r]>>6],n+=pa[t[r]&63];return r===a+1&&(n+=pa[t[r-2]>>2],n+=pa[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=pa[t[r-2]>>2],n+=pa[(t[r-2]&3)<<4|t[r-1]>>4],n+=pa[(t[r-1]&15)<<2],n+="="),n}var yE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,xE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,vE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Dm={Space_Separator:yE,ID_Start:xE,ID_Continue:vE},_t={isSpaceSeparator(e){return typeof e=="string"&&Dm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Dm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Dm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Lm,Pn,fa,Wl,_a,xr,en,Fm,Ns,SE=function(e,t){Lm=String(e),Pn="start",fa=[],Wl=0,_a=1,xr=0,en=void 0,Fm=void 0,Ns=void 0;do en=TE(),EE[Pn]();while(en.type!=="eof");return typeof t=="function"?Mm({"":Ns},"",t):Ns};function Mm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ha();if(!_t.isHexDigit(n))throw bt(H());e+=H()}return String.fromCodePoint(parseInt(e,16))}var EE={start(){if(en.type==="eof")throw Pi();Pm()},beforePropertyName(){switch(en.type){case"identifier":case"string":Fm=en.value,Pn="afterPropertyName";return;case"punctuator":zl();return;case"eof":throw Pi()}},afterPropertyName(){if(en.type==="eof")throw Pi();Pn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw Pi();Pm()},beforeArrayValue(){if(en.type==="eof")throw Pi();if(en.type==="punctuator"&&en.value==="]"){zl();return}Pm()},afterPropertyValue(){if(en.type==="eof")throw Pi();switch(en.value){case",":Pn="beforePropertyName";return;case"}":zl()}},afterArrayValue(){if(en.type==="eof")throw Pi();switch(en.value){case",":Pn="beforeArrayValue";return;case"]":zl()}},end(){}};function Pm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(Ns===void 0)Ns=e;else{let t=fa[fa.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Fm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")fa.push(e),Array.isArray(e)?Pn="beforeArrayValue":Pn="beforePropertyName";else{let t=fa[fa.length-1];t==null?Pn="end":Array.isArray(t)?Pn="afterArrayValue":Pn="afterPropertyValue"}}function zl(){fa.pop();let e=fa[fa.length-1];e==null?Pn="end":Array.isArray(e)?Pn="afterArrayValue":Pn="afterPropertyValue"}function bt(e){return Bm(e===void 0?`JSON5: invalid end of input at ${_a}:${xr}`:`JSON5: invalid character '${AE(e)}' at ${_a}:${xr}`)}function Pi(){return Bm(`JSON5: invalid end of input at ${_a}:${xr}`)}function F1(){return xr-=5,Bm(`JSON5: invalid identifier character at ${_a}:${xr}`)}function AE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Bm(e){let t=new SyntaxError(e);return t.lineNumber=_a,t.columnNumber=xr,t}var kE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vh[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let v of b){let S=l(v,g);if(S!==void 0){let w=m(v)+":";s!==""&&(w+=" "),w+=S,f.push(w)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let S=`, -`+a;v=f.join(S),y=`{ +}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var zC=Object.create,Vd=Object.defineProperty,WC=Object.getOwnPropertyDescriptor,I4=Object.getOwnPropertyNames,GC=Object.getPrototypeOf,VC=Object.prototype.hasOwnProperty,KC=(e,t)=>function(){return t||(0,e[I4(e)[0]])((t={exports:{}}).exports,t),t.exports},YC=(e,t)=>{for(var n in t)Vd(e,n,{get:t[n],enumerable:!0})},Gd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of I4(t))!VC.call(e,a)&&a!==n&&Vd(e,a,{get:()=>t[a],enumerable:!(r=WC(t,a))||r.enumerable});return e},QC=(e,t,n)=>(Gd(e,t,"default"),n&&Gd(n,t,"default")),_4=(e,t,n)=>(n=e!=null?zC(GC(e)):{},Gd(t||!e||!e.__esModule?Vd(n,"default",{value:e,enumerable:!0}):n,e)),O4=KC({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(S,A=void 0){super(A),this.createItem=S}get(S){return this.has(S)||this.set(S,this.createItem(S)),super.get(S)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,S)=>(...A)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):S.singleCallbackArg||A.length<=1&&S.singleCallbackArg!==!1?C.resolve(A[0]):C.resolve(A)},c=C=>C==1?"argument":"arguments",d=(C,S)=>function(k,...R){if(R.lengthS.maxArgs)throw new Error(`Expected at most ${S.maxArgs} ${c(S.maxArgs)} for ${C}(), got ${R.length}`);return new Promise((F,P)=>{if(S.fallbackToNoCallback)try{k[C](...R,l({resolve:F,reject:P},S))}catch{k[C](...R),S.fallbackToNoCallback=!1,S.noCallback=!0,F()}else S.noCallback?(k[C](...R),F()):k[C](...R,l({resolve:F,reject:P},S))})},m=(C,S,A)=>new Proxy(S,{apply(k,R,F){return A.call(R,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,S={},A={})=>{let k=Object.create(null),R={has(P,I){return I in C||I in k},get(P,I,L){if(I in k)return k[I];if(!(I in C))return;let _=C[I];if(typeof _=="function")if(typeof S[I]=="function")_=m(C,C[I],S[I]);else if(p(A,I)){let O=d(I,A[I]);_=m(C,C[I],O)}else _=_.bind(C);else if(typeof _=="object"&&_!==null&&(p(S,I)||p(A,I)))_=g(_,S[I],A[I]);else if(p(A,"*"))_=g(_,S[I],A["*"]);else return Object.defineProperty(k,I,{configurable:!0,enumerable:!0,get(){return C[I]},set(O){C[I]=O}}),_;return k[I]=_,_},set(P,I,L,_){return I in k?k[I]=L:C[I]=L,!0},defineProperty(P,I,L){return Reflect.defineProperty(k,I,L)},deleteProperty(P,I){return Reflect.deleteProperty(k,I)}},F=Object.create(C);return new Proxy(F,R)},b=C=>({addListener(S,A,...k){S.addListener(C.get(A),...k)},hasListener(S,A){return S.hasListener(C.get(A))},removeListener(S,A){S.removeListener(C.get(A))}}),h=new s(C=>typeof C!="function"?C:function(A){let k=g(A,{},{getContent:{minArgs:0,maxArgs:0}});C(k)}),f=new s(C=>typeof C!="function"?C:function(A,k,R){let F=!1,P,I=new Promise(z=>{P=function(V){F=!0,z(V)}}),L;try{L=C(A,k,P)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!F)return!1;let O=z=>{z.then(V=>{R(V)},V=>{let ie;V&&(V instanceof Error||typeof V.message=="string")?ie=V.message:ie="An unexpected error occurred",R({__mozWebExtensionPolyfillReject__:!0,message:ie})}).catch(V=>{})};return O(_?L:I),!0}),y=({reject:C,resolve:S},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?S():C(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?C(new Error(A.message)):S(A)},v=(C,S,A,...k)=>{if(k.lengthS.maxArgs)throw new Error(`Expected at most ${S.maxArgs} ${c(S.maxArgs)} for ${C}(), got ${k.length}`);return new Promise((R,F)=>{let P=y.bind(null,{resolve:R,reject:F});k.push(P),A.sendMessage(...k)})},T={devtools:{network:{onRequestFinished:b(h)}},runtime:{onMessage:b(f),onMessageExternal:b(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},g(i,T,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),N4={};YC(N4,{default:()=>sl});var JC=_4(O4());QC(N4,_4(O4()));var{default:B4,...ZC}=JC,sl=B4!==void 0?B4:ZC;globalThis.immersiveTranslateBrowserAPI=sl;var ml,Re,z4,XC,xs,j4,W4,ll={},G4=[],$C=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ra(e,t){for(var n in t)e[n]=t[n];return e}function V4(e){var t=e.parentNode;t&&t.removeChild(e)}function vs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?ml.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return ul(e,o,r,a,null)}function ul(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++z4};return a==null&&Re.vnode!=null&&Re.vnode(i),i}function Gt(e){return e.children}function yi(e,t){this.props=e,this.context=t}function eo(e,t){if(t==null)return e.__?eo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?ul(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:pl}),n.__[e]}function G(e){return Ts=1,rw(u3,e)}function rw(e,t,n){var r=Ss(no++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):u3(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Pt,!Pt.u)){Pt.u=!0;var a=Pt.shouldComponentUpdate;Pt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function te(e,t){var n=Ss(no++,3);!Re.__s&&Zd(n.__H,t)&&(n.__=e,n.i=t,Pt.__H.__h.push(n))}function Cs(e,t){var n=Ss(no++,4);!Re.__s&&Zd(n.__H,t)&&(n.__=e,n.i=t,Pt.__h.push(n))}function Ce(e){return Ts=5,ye(function(){return{current:e}},[])}function ye(e,t){var n=Ss(no++,7);return Zd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return Ts=8,ye(function(){return e},t)}function fl(e){var t=Pt.context[e.__c],n=Ss(no++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pt)),t.props.value):e.__}function aw(){for(var e;e=s3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(gl),e.__H.__h.forEach(Jd),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Pt=null,t3&&t3(e)},Re.__r=function(e){n3&&n3(e),no=0;var t=(Pt=e.__c).__H;t&&(Qd===Pt?(t.__h=[],Pt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=pl,n.__N=n.i=void 0})):(t.__h.forEach(gl),t.__h.forEach(Jd),t.__h=[])),Qd=Pt},Re.diffed=function(e){r3&&r3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(s3.push(t)!==1&&e3===Re.requestAnimationFrame||((e3=Re.requestAnimationFrame)||iw)(aw)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==pl&&(n.__=n.__V),n.i=void 0,n.__V=pl})),Qd=Pt=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(gl),n.__h=n.__h.filter(function(r){return!r.__||Jd(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Re.__e(r,n.__v)}}),a3&&a3(e,t)},Re.unmount=function(e){i3&&i3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{gl(r)}catch(a){t=a}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var o3=typeof requestAnimationFrame=="function";function iw(e){var t,n=function(){clearTimeout(r),o3&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);o3&&(t=requestAnimationFrame(n))}function gl(e){var t=Pt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pt=t}function Jd(e){var t=Pt;e.__c=e.__(),Pt=t}function Zd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function u3(e,t){return typeof t=="function"?t(e):t}function hl(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}function De(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var be=De();function ne(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):be.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function la(){return be.PROD==="1"}function Xd(){return be.PROD_API==="1"}function l3(){return be.HAS_CSP_ERROR=="1"}function lt(){if(be.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function bl(){return typeof Deno<"u"}var qN=De().PROD==="1",ro=De().PROD!=="1";function yl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function c3(){return be.IMMERSIVE_TRANSLATE_JSSDK==="1"}var $d=/iPhone/i,d3=/iPod/i,m3=/iPad/i,p3=/\biOS-universal(?:.+)Mac\b/i,em=/\bAndroid(?:.+)Mobile\b/i,g3=/Android/i,ao=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,xl=/Silk/i,ca=/Windows Phone/i,f3=/\bWindows(?:.+)ARM\b/i,h3=/BlackBerry/i,b3=/BB10/i,y3=/Opera Mini/i,x3=/\b(CriOS|Chrome)(?:.+)Mobile/i,v3=/Mobile(?:.+)Firefox\b/i,T3=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function ow(e){return t=>t.test(e)}function Ge(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=ow(n),i={apple:{phone:a($d)&&!a(ca),ipod:a(d3),tablet:!a($d)&&(a(m3)||T3(t))&&!a(ca),universal:a(p3),device:(a($d)||a(d3)||a(m3)||a(p3)||T3(t))&&!a(ca)},amazon:{phone:a(ao),tablet:!a(ao)&&a(xl),device:a(ao)||a(xl)},android:{phone:!a(ca)&&a(ao)||!a(ca)&&a(em),tablet:!a(ca)&&!a(ao)&&!a(em)&&(a(xl)||a(g3)),device:!a(ca)&&(a(ao)||a(xl)||a(em)||a(g3))||a(/\bokhttp\b/i)},windows:{phone:a(ca),tablet:a(f3),device:a(ca)||a(f3)},other:{blackberry:a(h3),blackberry10:a(b3),opera:a(y3),firefox:a(v3),chrome:a(x3),device:a(h3)||a(b3)||a(y3)||a(v3)||a(x3)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var tm="DENO",vl="CHROME",Tl="FIREFOX";function S3(e){let t=vl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Tl:/deno/i.test(n)&&(t=tm)}catch{}return e===vl&&t===vl||e===Tl&&t===Tl||e===tm&&t===tm}function C3(){return S3(vl)}function w3(){return typeof Deno<"u"}function An(){return De().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:S3(Tl)}function Yn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ws(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var E3={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},A3={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:E3,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:E3,query:()=>{},sendMessage:()=>{}}};var $;w3()?$=A3:$=globalThis.immersiveTranslateBrowserAPI;var Y="immersiveTranslate",xi="Immersive Translate",B="immersive-translate",Cl="imt";var M3="pdf/index.html";var $t="immersivetranslate.com",sw=`https://config.${$t}/`,oj=`https://app.${$t}/`,oe=la()||Xd()?`https://${$t}/`:`https://test.${$t}/`,Sl=`https://dash.${$t}/`,tt=la()||Xd()?`https://api2.${$t}/`:`https://test-api2.${$t}/`,R3=`https://github.com/${B}/${B}/`,F3=`https://s.${$t}/`,sj=`https://onboarding.${$t}/`,B3=Y+"DeeplGlobalState",nm=Y+"BingGlobalState",rm=Y+"YandexGlobalState",am=Y+"BaiduQianfanGlobalConfigStorageKey",I3=Y+"SiliconCloudGlobalConfigStorageKey",_3=Y+"ZhipuGlobalConfigStorageKey";var im=Y+"GoogleAccessToken",O3=Y+"AuthFlow",N3=B+"-config-latest.json",uw=Y+"AuthState",wl=Y+"IframeMessage",uj=Y+"WaitForRateLimit",j3=Y+"DocumentMessageAsk",It=Y+"DocumentMessageTellThirdParty",Nn=Y+"showError",vi=Y+"showModal",El=Y+"showToast",U3=Y+"DocumentMessageThirdPartyTell",H3=Y+"DocumentMessageEventUpload",lj=Y+"DocumentMessageTypeStopJsSDK",lw=Y+"DocumentMessageHandler",Al=Y+"DocumentSetFloatBallActive",kl=`${Y}Share`,Dl=`${Y}ShowFloatBallGuide`,io=Y+"DocumentMessageTempEnableSubtitleChanged",Es=`${Y}ToggleMouseHoverTranslateDirectly`,q3=`${Y}ReqDraft`,z3=`${Y}ResDraft`,cw=`${Y}Container`,W3=`${Y}SpecifiedContainer`,Pl="buildinConfig",As="localConfig",om="openOptionsPage",G3="translateMangaMenuId",sm="openAboutPage";var um="openEbookViewer",lm="openEbookBuilder";var Ti=`${Y}PageTranslatedStatus`,ks=`${Y}MangaTranslatedStatus`,cj=`${Y}PageUrlChanged`,yr=`${Y}ReceiveCommand`,V3=Y+"LastUseMouseHoverTime",cm=Y+"LastUseInputTime",lr=Y+"LastUseManualTranslatePageTime",Ds=`${Y}PopupReceiveMessage`,Si=Y+"DocumentMessageEventTogglePopup",Ps=`${sw}default_config.json`,dj=`${Y}Mark`,Qn=`${Y}Root`,K3=`${Y}Walked`,mj=`data-${B}-walked`,Y3=`${Y}Paragraph`,Q3=`data-${B}-paragraph`,oo=`data-${B}-translation-element-mark`,J3=`${Y}TranslationElementMark`,pj=`${Y}TranslatedMark`,dm=`${B}-input-injected-css`,Z3=`${Y}LoadingId`,mm=`data-${B}-loading-id`,X3=`${Y}ErrorId`,Ll=`data-${B}-error-id`,dw=`${Y}AtomicBlockMark`,$3=`${Y}ExcludeMark`,gj=`data-${B}-exclude-mark`,mw=`${Y}StayOriginalMark`,fj=`${Y}PreWhitespaceMark`,Ml=`${Y}InlineMark`,e1=`${Y}BlockMark`,hj=`${Y}Left`,bj=`${Y}Right`,yj=`${Y}Width`,xj=`${Y}Height`,vj=`${Y}Top`,Tj=`${Y}FontSize`,t1="lastRunTime";var Sj=`${Y}GlobalStyleMark`,so=["@","#"],Rl=" --- ",n1=` +`,Lt=`${B}-target-wrapper`,Cj=`${B}-pdf-target-container`,Fl=`${B}-target-inner`,wj=`${B}-source-wrapper`,pm=`${B}-target-translation-block-wrapper`,Ej=`${B}-root-translation-theme`,uo=`${Y}RootTranslationTheme`,r1=`${B}-target-translation-vertical-block-wrapper`,Aj=`${B}-target-translation-pdf-block-wrapper`,a1=`${B}-target-translation-pre-whitespace`,gm=`${B}-target-translation-inline-wrapper`;var i1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var o1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],s1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Sl,Sl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Fa="zh-CN",kj=oe+"docs/communities/",Dj=R3+"issues/1809",Pj=R3+"issues/1179",Bl={type:Y+"ChildFrameToRootFrameIdentifier"},fm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ls=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],u1=["ctrl","alt","shift","cmd","command","option","control"];var Il=la()?Sl+"#general":"http://localhost:8000/dist/userscript/options/#general",hm="user_from_plugin",mt="user_info",_l=oe+"accounts/login?from=plugin",l1=Sl+"#general",Lj=oe+"accounts/login?from=plugin&return_url="+encodeURIComponent(l1),c1=_l+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",d1=_l+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Ms=oe+"profile/",Rs=oe+"auth/pricing/",kn=oe+"pricing/",pw=oe+"download/",gw=oe+"topup?type=open_ai&",fw=oe+"topup?type=deepl&",m1=oe+"topup?type=comics&",hw=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",p1=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Mj=pw+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",Rj=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Ol=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",bm=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",Fj=Ms+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",g1=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",f1=gw+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",h1=fw+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",b1=oe+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",bw=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",ym=Ms+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Bj=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Ij=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",_j=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",Oj=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=",y1=oe+"docs/usage/",Nj=oe+"docs/communities/",Fs=De().TRANSLATE_FILE_URL,jj=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",x1=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",v1=`${Fs}download-subtitle/`,T1=`${Fs}pdf-pro/`,S1=`${Fs}text/`,Ci=["deepl","openai","gemini","claude"],yw="G-BHWL0KMJB8",xw="7pr-olTJR6GKAjIW48UD0Q",k3="G-MKMD9LWFTR",D3="sitc4WmvShWYwfU0dANM3Q",P3="G-V5H2F5MJFJ",L3="UBjpGOLISEaY5LVXNj3WvQ";function Nl(){return c3()?[`https://www.google-analytics.com/mp/collect?measurement_id=${yw}&api_secret=${xw}`]:la?[`https://www.google-analytics.com/mp/collect?measurement_id=${k3}&api_secret=${D3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${P3}&api_secret=${L3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${k3}&api_secret=${D3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${P3}&api_secret=${L3}`]}var Bs=`https://analytics.${$t}/collect`,Uj=`${oe}activities/components/image-pro`;var C1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",w1="0VmM83i2D1ICuYBf",jl=`[${Cl}-ctx-divider]`,Ul=`${Cl}_context_preview`;function E1(e){let t=$.runtime.getURL(M3),n=new URL(t);return e&&(e.startsWith("http")||!An())&&n.searchParams.set("file",e),n.href}var wi=Y+"CacheKey_";function Ei(e,t){let n=wi+e;return $.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function vw(){let e=$.storage.local.refresh;e&&e()}function xm(e,t){let n=wi+e;return $.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wi)).filter(r=>r!==wi+mt);if(n.length>0)return $.storage.local.remove(n)}}var pt={get:Ei,set:Ai,getExpired:xm,setExpired:vm,remove:Tm,clear:Sm,refresh:vw};function ht(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function A1(e){if(e){let t=new Date(e.createTime),n=Tw(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function Tw(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Is(e){if(e?.isPro)return!0;let t=await pt.get(mt,null);return ht(t)}function lo(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Cm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Hl(e,t){let n=lo(),r=setTimeout(()=>n.reject(new Cm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function it(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var k1=class{#e=0;#t=[];#n=[];#r=lo();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tYw,bgBlue:()=>Xw,bgBrightBlack:()=>nE,bgBrightBlue:()=>oE,bgBrightCyan:()=>uE,bgBrightGreen:()=>aE,bgBrightMagenta:()=>sE,bgBrightRed:()=>rE,bgBrightWhite:()=>lE,bgBrightYellow:()=>iE,bgCyan:()=>eE,bgGreen:()=>Jw,bgMagenta:()=>$w,bgRed:()=>Qw,bgRgb24:()=>pE,bgRgb8:()=>dE,bgWhite:()=>tE,bgYellow:()=>Zw,black:()=>Rw,blue:()=>_w,bold:()=>Ew,brightBlack:()=>L1,brightBlue:()=>Ww,brightCyan:()=>Vw,brightGreen:()=>qw,brightMagenta:()=>Gw,brightRed:()=>Hw,brightWhite:()=>Kw,brightYellow:()=>zw,cyan:()=>Nw,dim:()=>Aw,getColorEnabled:()=>Cw,gray:()=>Uw,green:()=>Bw,hidden:()=>Lw,inverse:()=>Pw,italic:()=>kw,magenta:()=>Ow,red:()=>Fw,reset:()=>ww,rgb24:()=>mE,rgb8:()=>cE,setColorEnabled:()=>Sw,strikethrough:()=>Mw,stripColor:()=>fE,underline:()=>Dw,white:()=>jw,yellow:()=>Iw});var{Deno:D1}=globalThis,P1=typeof D1?.noColor=="boolean"?D1.noColor:!0,wm=!P1;function Sw(e){P1||(wm=e)}function Cw(){return wm}function Le(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Me(e,t){return wm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function ww(e){return Me(e,Le([0],0))}function Ew(e){return Me(e,Le([1],22))}function Aw(e){return Me(e,Le([2],22))}function kw(e){return Me(e,Le([3],23))}function Dw(e){return Me(e,Le([4],24))}function Pw(e){return Me(e,Le([7],27))}function Lw(e){return Me(e,Le([8],28))}function Mw(e){return Me(e,Le([9],29))}function Rw(e){return Me(e,Le([30],39))}function Fw(e){return Me(e,Le([31],39))}function Bw(e){return Me(e,Le([32],39))}function Iw(e){return Me(e,Le([33],39))}function _w(e){return Me(e,Le([34],39))}function Ow(e){return Me(e,Le([35],39))}function Nw(e){return Me(e,Le([36],39))}function jw(e){return Me(e,Le([37],39))}function Uw(e){return L1(e)}function L1(e){return Me(e,Le([90],39))}function Hw(e){return Me(e,Le([91],39))}function qw(e){return Me(e,Le([92],39))}function zw(e){return Me(e,Le([93],39))}function Ww(e){return Me(e,Le([94],39))}function Gw(e){return Me(e,Le([95],39))}function Vw(e){return Me(e,Le([96],39))}function Kw(e){return Me(e,Le([97],39))}function Yw(e){return Me(e,Le([40],49))}function Qw(e){return Me(e,Le([41],49))}function Jw(e){return Me(e,Le([42],49))}function Zw(e){return Me(e,Le([43],49))}function Xw(e){return Me(e,Le([44],49))}function $w(e){return Me(e,Le([45],49))}function eE(e){return Me(e,Le([46],49))}function tE(e){return Me(e,Le([47],49))}function nE(e){return Me(e,Le([100],49))}function rE(e){return Me(e,Le([101],49))}function aE(e){return Me(e,Le([102],49))}function iE(e){return Me(e,Le([103],49))}function oE(e){return Me(e,Le([104],49))}function sE(e){return Me(e,Le([105],49))}function uE(e){return Me(e,Le([106],49))}function lE(e){return Me(e,Le([107],49))}function Ba(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function cE(e,t){return Me(e,Le([38,5,Ba(t)],39))}function dE(e,t){return Me(e,Le([48,5,Ba(t)],49))}function mE(e,t){return typeof t=="number"?Me(e,Le([38,2,t>>16&255,t>>8&255,t&255],39)):Me(e,Le([38,2,Ba(t.r),Ba(t.g),Ba(t.b)],39))}function pE(e,t){return typeof t=="number"?Me(e,Le([48,2,t>>16&255,t>>8&255,t&255],49)):Me(e,Le([48,2,Ba(t.r),Ba(t.g),Ba(t.b)],49))}var gE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function fE(e){return e.replace(gE,"")}var Em=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},hE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Am(e,t){let n={...hE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Em(a,n.maxAttempts)}var da=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function km(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=da[(t[r-2]&3)<<4|t[r-1]>>4],n+=da[(t[r-1]&15)<<2|t[r]>>6],n+=da[t[r]&63];return r===a+1&&(n+=da[t[r-2]>>2],n+=da[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=da[t[r-2]>>2],n+=da[(t[r-2]&3)<<4|t[r-1]>>4],n+=da[(t[r-1]&15)<<2],n+="="),n}var bE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,yE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,xE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Dm={Space_Separator:bE,ID_Start:yE,ID_Continue:xE},_t={isSpaceSeparator(e){return typeof e=="string"&&Dm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Dm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Dm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Lm,Dn,pa,zl,Ia,xr,en,Fm,Os,vE=function(e,t){Lm=String(e),Dn="start",pa=[],zl=0,Ia=1,xr=0,en=void 0,Fm=void 0,Os=void 0;do en=TE(),wE[Dn]();while(en.type!=="eof");return typeof t=="function"?Mm({"":Os},"",t):Os};function Mm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ga();if(!_t.isHexDigit(n))throw bt(H());e+=H()}return String.fromCodePoint(parseInt(e,16))}var wE={start(){if(en.type==="eof")throw Di();Pm()},beforePropertyName(){switch(en.type){case"identifier":case"string":Fm=en.value,Dn="afterPropertyName";return;case"punctuator":ql();return;case"eof":throw Di()}},afterPropertyName(){if(en.type==="eof")throw Di();Dn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw Di();Pm()},beforeArrayValue(){if(en.type==="eof")throw Di();if(en.type==="punctuator"&&en.value==="]"){ql();return}Pm()},afterPropertyValue(){if(en.type==="eof")throw Di();switch(en.value){case",":Dn="beforePropertyName";return;case"}":ql()}},afterArrayValue(){if(en.type==="eof")throw Di();switch(en.value){case",":Dn="beforeArrayValue";return;case"]":ql()}},end(){}};function Pm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(Os===void 0)Os=e;else{let t=pa[pa.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Fm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")pa.push(e),Array.isArray(e)?Dn="beforeArrayValue":Dn="beforePropertyName";else{let t=pa[pa.length-1];t==null?Dn="end":Array.isArray(t)?Dn="afterArrayValue":Dn="afterPropertyValue"}}function ql(){pa.pop();let e=pa[pa.length-1];e==null?Dn="end":Array.isArray(e)?Dn="afterArrayValue":Dn="afterPropertyValue"}function bt(e){return Bm(e===void 0?`JSON5: invalid end of input at ${Ia}:${xr}`:`JSON5: invalid character '${EE(e)}' at ${Ia}:${xr}`)}function Di(){return Bm(`JSON5: invalid end of input at ${Ia}:${xr}`)}function M1(){return xr-=5,Bm(`JSON5: invalid identifier character at ${Ia}:${xr}`)}function EE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Bm(e){let t=new SyntaxError(e);return t.lineNumber=Ia,t.columnNumber=xr,t}var AE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let b;typeof g=="string"?b=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(b=String(g)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,b){let h=b[g];switch(h!=null&&(typeof h.toJSON5=="function"?h=h.toJSON5(g):typeof h.toJSON=="function"&&(h=h.toJSON(g))),o&&(h=o.call(b,g,h)),h instanceof Number?h=Number(h):h instanceof String?h=String(h):h instanceof Boolean&&(h=h.valueOf()),h){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof h=="string")return c(h,!1);if(typeof h=="number")return String(h);if(typeof h=="object")return Array.isArray(h)?p(h):d(h)}function c(g){let b={"'":.1,'"':.2},h={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vb[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let b=a;a=a+s;let h=i||Object.keys(g),f=[];for(let v of h){let T=l(v,g);if(T!==void 0){let w=m(v)+":";s!==""&&(w+=" "),w+=T,f.push(w)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let T=`, +`+a;v=f.join(T),y=`{ `+a+v+`, -`+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!_t.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let b=a;a=a+s;let h=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),NE=(e,t)=>{for(var n in t)_m(e,n,{get:t[n],enumerable:!0})},Im=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of BE(t))!_E.call(e,a)&&a!==n&&_m(e,a,{get:()=>t[a],enumerable:!(r=FE(t,a))||r.enumerable});return e},jE=(e,t,n)=>(Im(e,t,"default"),n&&Im(n,t,"default")),O1=(e,t,n)=>(n=e!=null?RE(IE(e)):{},Im(t||!e||!e.__esModule?_m(n,"default",{value:e,enumerable:!0}):n,e)),N1=OE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Vl=="object"&&Vl&&Vl.Object===Object&&Vl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(A,k,R){var F,P,I,L,_,O,z=0,V=!1,ie=!1,Ie=!0;if(typeof A!="function")throw new TypeError(n);k=T(k)||0,S(R)&&(V=!!R.leading,ie="maxWait"in R,I=ie?h(T(R.maxWait)||0,k):I,Ie="trailing"in R?!!R.trailing:Ie);function re(ge){var de=F,Se=P;return F=P=void 0,z=ge,L=A.apply(Se,de),L}function N(ge){return z=ge,_=setTimeout(me,k),V?re(ge):L}function j(ge){var de=ge-O,Se=ge-z,Ue=k-de;return ie?b(Ue,I-Se):Ue}function W(ge){var de=ge-O,Se=ge-z;return O===void 0||de>=k||de<0||ie&&Se>=I}function me(){var ge=f();if(W(ge))return ce(ge);_=setTimeout(me,j(ge))}function ce(ge){return _=void 0,Ie&&F?re(ge):(F=P=void 0,L)}function ze(){_!==void 0&&clearTimeout(_),z=0,F=O=P=_=void 0}function pe(){return _===void 0?L:ce(f())}function he(){var ge=f(),de=W(ge);if(F=arguments,P=this,O=ge,de){if(_===void 0)return N(O);if(ie)return _=setTimeout(me,k),re(O)}return _===void 0&&(_=setTimeout(me,k)),L}return he.cancel=ze,he.flush=pe,he}function v(A,k,R){var F=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return S(R)&&(F="leading"in R?!!R.leading:F,P="trailing"in R?!!R.trailing:P),y(A,k,{leading:F,maxWait:k,trailing:P})}function S(A){var k=typeof A;return!!A&&(k=="object"||k=="function")}function w(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||w(A)&&g.call(A)==a}function T(A){if(typeof A=="number")return A;if(C(A))return r;if(S(A)){var k=typeof A.valueOf=="function"?A.valueOf():A;A=S(k)?k+"":k}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var R=s.test(A);return R||u.test(A)?l(A.slice(2),R?2:8):o.test(A)?r:+A}t.exports=v}),j1={};NE(j1,{default:()=>Jn});var UE=O1(N1());jE(j1,O1(N1()));var{default:_1,...HE}=UE,Jn=_1!==void 0?_1:HE;var Kl=globalThis||(typeof window<"u"?window:self),qE=Object.create,Nm=Object.defineProperty,zE=Object.getOwnPropertyDescriptor,WE=Object.getOwnPropertyNames,GE=Object.getPrototypeOf,VE=Object.prototype.hasOwnProperty,KE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),YE=(e,t)=>{for(var n in t)Nm(e,n,{get:t[n],enumerable:!0})},Om=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of WE(t))!VE.call(e,a)&&a!==n&&Nm(e,a,{get:()=>t[a],enumerable:!(r=zE(t,a))||r.enumerable});return e},QE=(e,t,n)=>(Om(e,t,"default"),n&&Om(n,t,"default")),H1=(e,t,n)=>(n=e!=null?qE(GE(e)):{},Om(t||!e||!e.__esModule?Nm(n,"default",{value:e,enumerable:!0}):n,e)),q1=KE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Kl=="object"&&Kl&&Kl.Object===Object&&Kl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(T,A,k){var R,F,P,I,L,_,O=0,z=!1,V=!1,ie=!0;if(typeof T!="function")throw new TypeError(n);A=C(A)||0,v(k)&&(z=!!k.leading,V="maxWait"in k,P=V?h(C(k.maxWait)||0,A):P,ie="trailing"in k?!!k.trailing:ie);function Ie(he){var ge=R,de=F;return R=F=void 0,O=he,I=T.apply(de,ge),I}function re(he){return O=he,L=setTimeout(W,A),z?Ie(he):I}function N(he){var ge=he-_,de=he-O,Se=A-ge;return V?b(Se,P-de):Se}function j(he){var ge=he-_,de=he-O;return _===void 0||ge>=A||ge<0||V&&de>=P}function W(){var he=f();if(j(he))return me(he);L=setTimeout(W,N(he))}function me(he){return L=void 0,ie&&R?Ie(he):(R=F=void 0,I)}function ce(){L!==void 0&&clearTimeout(L),O=0,R=_=F=L=void 0}function ze(){return L===void 0?I:me(f())}function pe(){var he=f(),ge=j(he);if(R=arguments,F=this,_=he,ge){if(L===void 0)return re(_);if(V)return L=setTimeout(W,A),Ie(_)}return L===void 0&&(L=setTimeout(W,A)),I}return pe.cancel=ce,pe.flush=ze,pe}function v(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function S(T){return!!T&&typeof T=="object"}function w(T){return typeof T=="symbol"||S(T)&&g.call(T)==a}function C(T){if(typeof T=="number")return T;if(w(T))return r;if(v(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=v(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(i,"");var k=s.test(T);return k||u.test(T)?l(T.slice(2),k?2:8):o.test(T)?r:+T}t.exports=y}),z1={};YE(z1,{default:()=>Nn});var JE=H1(q1());QE(z1,H1(q1()));var{default:U1,...ZE}=JE,Nn=U1!==void 0?U1:ZE;var XE=Object.create,Um=Object.defineProperty,$E=Object.getOwnPropertyDescriptor,e8=Object.getOwnPropertyNames,t8=Object.getPrototypeOf,n8=Object.prototype.hasOwnProperty,r8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a8=(e,t)=>{for(var n in t)Um(e,n,{get:t[n],enumerable:!0})},jm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of e8(t))!n8.call(e,a)&&a!==n&&Um(e,a,{get:()=>t[a],enumerable:!(r=$E(t,a))||r.enumerable});return e},i8=(e,t,n)=>(jm(e,t,"default"),n&&jm(n,t,"default")),G1=(e,t,n)=>(n=e!=null?XE(t8(e)):{},jm(t||!e||!e.__esModule?Um(n,"default",{value:e,enumerable:!0}):n,e)),V1=r8((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,j){var W={};for(var me in N)j.indexOf(me)>=0||Object.prototype.hasOwnProperty.call(N,me)&&(W[me]=N[me]);return W}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},h=Object.assign||function(N){for(var j=1;j'+me+"
",Se.onclick=function(){return P(Ue,de)},Se.listener=function(K){(k(K)||R(K))&&_()},F(Se,de),ze&&ze<1&&(ze=1),!he&&ze&&S(ze).then(function(){return P(Ue,de)})},z=d.force=function(N,j){var W=N.type,me=W===void 0?5:W,ce=N.text,ze=N.buttonText,pe=ze===void 0?"OK":ze,he=N.callback,ge=N.position,de=ge===void 0?f.positions.force||de.top:ge;w(),_();var Se=document.createElement("div"),Ue=C();Se.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+ce+"
";var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(T[me]),xe.innerHTML=pe,xe.onclick=function(){P(Ue,de),L(),he?he():j&&j()},Se.appendChild(K),Se.appendChild(xe),Se.listener=function(nt){k(nt)&&xe.click()},F(Se,de),I()},V=d.confirm=function(N,j,W){var me=N.text,ce=N.submitText,ze=ce===void 0?"Yes":ce,pe=N.cancelText,he=pe===void 0?"Cancel":pe,ge=N.submitCallback,de=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.confirm||Ue.top:Se;w(),_();var K=document.createElement("div"),xe=C();K.id=xe;var nt=document.createElement("div");nt.classList.add(f.classes.textbox),nt.classList.add(f.classes.backgroundInfo),nt.innerHTML='
'+me+"
";var Ye=document.createElement("div");Ye.classList.add(f.classes.button),Ye.classList.add(f.classes.elementHalf),Ye.classList.add(f.classes.backgroundSuccess),Ye.innerHTML=ze,Ye.onclick=function(){P(xe,Ue),L(),ge?ge():j&&j()};var Te=document.createElement("div");Te.classList.add(f.classes.button),Te.classList.add(f.classes.elementHalf),Te.classList.add(f.classes.backgroundError),Te.innerHTML=he,Te.onclick=function(){P(xe,Ue),L(),de?de():W&&W()},K.appendChild(nt),K.appendChild(Ye),K.appendChild(Te),K.listener=function(vt){k(vt)?Ye.click():R(vt)&&Te.click()},F(K,Ue),I(K,Ue)},ie=function(N,j,W){var me=N.text,ce=N.submitText,ze=ce===void 0?"Submit":ce,pe=N.cancelText,he=pe===void 0?"Cancel":pe,ge=N.submitCallback,de=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.input||Ue.top:Se,K=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var xe=document.createElement("div"),nt=C();xe.id=nt;var Ye=document.createElement("div");Ye.classList.add(f.classes.textbox),Ye.classList.add(f.classes.backgroundInfo),Ye.innerHTML='
'+me+"
";var Te=document.createElement("input");Te.classList.add(f.classes.inputField),Te.setAttribute("autocapitalize",K.autocapitalize||"none"),Te.setAttribute("autocomplete",K.autocomplete||"off"),Te.setAttribute("autocorrect",K.autocorrect||"off"),Te.setAttribute("autofocus",K.autofocus||"true"),Te.setAttribute("inputmode",K.inputmode||"verbatim"),Te.setAttribute("max",K.max||""),Te.setAttribute("maxlength",K.maxlength||""),Te.setAttribute("min",K.min||""),Te.setAttribute("minlength",K.minlength||""),Te.setAttribute("placeholder",K.placeholder||""),Te.setAttribute("spellcheck",K.spellcheck||"default"),Te.setAttribute("step",K.step||"any"),Te.setAttribute("type",K.type||"text"),Te.value=K.value||"",K.allowed&&(Te.oninput=function(){var Dt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",wn=K.allowed,ur=0;ur'+W+"
",de.appendChild(Ue),pe.forEach(function(xe,nt){var Ye=xe.type,Te=Ye===void 0?1:Ye,vt=xe.text,zt=xe.handler,Dt=document.createElement("div");Dt.classList.add(T[Te]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Bt=pe[nt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===Te&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){P(Se,ge),L(),zt()},de.appendChild(Dt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=ce,K.onclick=function(){P(Se,ge),L(),ze?ze():j&&j()},de.appendChild(K),de.listener=function(xe){R(xe)&&K.click()},F(de,ge),I(de,ge)},re=d.date=function(N,j,W){var me=N.value,ce=me===void 0?new Date:me,ze=N.submitText,pe=ze===void 0?"OK":ze,he=N.cancelText,ge=he===void 0?"Cancel":he,de=N.submitCallback,Se=N.cancelCallback,Ue=N.position,K=Ue===void 0?f.positions.date||K.top:Ue;w(),_();var xe="▾",nt=document.createElement("div"),Ye=document.createElement("div"),Te=document.createElement("div"),vt=function(St){nt.innerHTML=f.dateMonths[St.getMonth()],Ye.innerHTML=St.getDate(),Te.innerHTML=St.getFullYear()},zt=function(St){var et=new Date(ce.getFullYear(),ce.getMonth()+1,0).getDate(),Kn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>et&&(Kn=et.toString()),St.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),ce.setDate(Number(Kn))},Dt=function(St){var et=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=et,ce.setFullYear(Number(et))},Bt=function(St){vt(ce)},wn=function(St){var et=new Date(ce.getFullYear(),ce.getMonth()+St+1,0).getDate();ce.getDate()>et&&ce.setDate(et),ce.setMonth(ce.getMonth()+St),vt(ce)},ur=function(St){ce.setDate(ce.getDate()+St),vt(ce)},ys=function(St){var et=ce.getFullYear()+St;et<0?ce.setFullYear(0):ce.setFullYear(ce.getFullYear()+St),vt(ce)},qr=document.createElement("div"),bi=C();qr.id=bi;var Zi=document.createElement("div");Zi.classList.add(f.classes.backgroundInfo);var cn=document.createElement("div");cn.classList.add(f.classes.dateSelectorInner);var br=document.createElement("div");br.classList.add(f.classes.button),br.classList.add(f.classes.elementThird),br.classList.add(f.classes.dateSelectorUp),br.innerHTML=xe;var dn=document.createElement("div");dn.classList.add(f.classes.button),dn.classList.add(f.classes.elementThird),dn.classList.add(f.classes.dateSelectorUp),dn.innerHTML=xe;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=xe,nt.classList.add(f.classes.element),nt.classList.add(f.classes.elementThird),nt.innerHTML=f.dateMonths[ce.getMonth()],Ye.classList.add(f.classes.element),Ye.classList.add(f.classes.elementThird),Ye.setAttribute("contentEditable",!0),Ye.addEventListener("input",zt),Ye.addEventListener("blur",Bt),Ye.innerHTML=ce.getDate(),Te.classList.add(f.classes.element),Te.classList.add(f.classes.elementThird),Te.setAttribute("contentEditable",!0),Te.addEventListener("input",Dt),Te.addEventListener("blur",Bt),Te.innerHTML=ce.getFullYear();var sa=document.createElement("div");sa.classList.add(f.classes.button),sa.classList.add(f.classes.elementThird),sa.innerHTML=xe;var ua=document.createElement("div");ua.classList.add(f.classes.button),ua.classList.add(f.classes.elementThird),ua.innerHTML=xe;var yi=document.createElement("div");yi.classList.add(f.classes.button),yi.classList.add(f.classes.elementThird),yi.innerHTML=xe,br.onclick=function(){return wn(1)},dn.onclick=function(){return ur(1)},Vn.onclick=function(){return ys(1)},sa.onclick=function(){return wn(-1)},ua.onclick=function(){return ur(-1)},yi.onclick=function(){return ys(-1)};var En=document.createElement("div");En.classList.add(f.classes.button),En.classList.add(f.classes.elementHalf),En.classList.add(f.classes.backgroundSuccess),En.innerHTML=pe,En.onclick=function(){P(bi,K),L(),de?de(ce):j&&j(ce)};var la=document.createElement("div");la.classList.add(f.classes.button),la.classList.add(f.classes.elementHalf),la.classList.add(f.classes.backgroundError),la.innerHTML=ge,la.onclick=function(){P(bi,K),L(),Se?Se(ce):W&&W(ce)},cn.appendChild(br),cn.appendChild(dn),cn.appendChild(Vn),cn.appendChild(nt),cn.appendChild(Ye),cn.appendChild(Te),cn.appendChild(sa),cn.appendChild(ua),cn.appendChild(yi),Zi.appendChild(cn),qr.appendChild(Zi),qr.appendChild(En),qr.appendChild(la),qr.listener=function(St){k(St)?En.click():R(St)&&la.click()},F(qr,K),I(qr,K)};d.default={alert:O,force:z,confirm:V,input:ie,select:Ie,date:re,setOptions:y,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),K1={};a8(K1,{default:()=>Yl});var o8=G1(V1());i8(K1,G1(V1()));var{default:W1,...s8}=o8,Yl=W1!==void 0?W1:s8;var Ql=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function js(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Hm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Y1(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ico[e.toLowerCase()]||Sr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),u8=e=>Object.keys(co).find(t=>co[t]===e),l8=e=>Object.keys(Sr).find(t=>Sr[t]===e);function e2(e){X1=e||"all"}function Us(){return X1||"all"}function c8(){return st.slice(0)}function d8(){return st.map(e=>u8(e)||l8(e)||String.fromCharCode(e))}function m8(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Hs(o))})})}),e}function p8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function g8(e){return typeof e=="string"&&(e=Hs(e)),st.indexOf(e)!==-1}function f8(e,t){let n,r;e||(e=Us());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&st.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&st.splice(0,st.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in Sr)Sr[r]===t&&(ba[r]=!1)}}function t2(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&zm(n)});else if(typeof e=="object")e.key&&zm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),zm({key:e,scope:n,method:r,splitKey:"+"})}}var zm=({key:e,scope:t,method:n,splitKey:r="+"})=>{qm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Hs(u);if(!Tt[l])return;t||(t=Us());let c=s>1?Hm(Sr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&Y1(d.mods,c)))})};function J1(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(st),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Z1(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!ba.filter.call(this,e))return;if((r===93||r===224)&&(r=91),st.indexOf(r)===-1&&r!==229&&st.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Jl[i];e[i]&&st.indexOf(o)===-1?st.push(o):!e[i]&&st.indexOf(o)>-1?st.splice(st.indexOf(o),1):i==="metaKey"&&e[i]&&st.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(st=st.slice(st.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in Sr)Sr[i]===r&&(ba[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Jl[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(st.indexOf(17)===-1&&st.push(17),st.indexOf(18)===-1&&st.push(18),tn[17]=!0,tn[18]=!0);let a=Us();if(n)for(let i=0;i-1}function ba(e,t,n){st=[];let r=qm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&t2(e,i);s1&&(a=Hm(Sr,e)),e=e[e.length-1],e=e==="*"?"*":Hs(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!b8(o)&&window&&($1.push(o),js(o,"keydown",p=>{Z1(p,o)},d),Q1||(Q1=!0,js(window,"focus",()=>{st=[]},d),js(window,"click",()=>{st=[]},!1)),js(o,"keyup",p=>{Z1(p,o),h8(p)},d))}function y8(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Wm={getPressedKeyString:d8,setScope:e2,getScope:Us,deleteScope:f8,getPressedKeyCodes:c8,getAllKeyCodes:m8,isPressed:g8,filter:p8,trigger:y8,unbind:t2,keyMap:co,modifier:Sr,modifierMap:Jl};for(let e in Wm)Object.prototype.hasOwnProperty.call(Wm,e)&&(ba[e]=Wm[e]);if(typeof window<"u"){let e=window.hotkeys;ba.noConflict=t=>(t&&window.hotkeys===ba&&(window.hotkeys=e),ba),window.hotkeys=ba}var jn=ba;var x8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},r2={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Ln={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Oa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},q=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=q.getVersionPrecision(e),a=q.getVersionPrecision(t),i=Math.max(r,a),o=0,s=q.map([e,t],u=>{let l=i-q.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return q.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return x8[e]}static getBrowserTypeByAlias(e){return r2[e]||""}},ut=/version\/(\d+(\.?_?\d+)+)/i,v8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=q.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=q.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=q.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=q.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=q.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=q.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=q.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=q.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=q.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=q.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=q.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=q.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=q.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=q.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=q.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=q.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=q.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=q.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=q.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=q.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=q.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=q.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=q.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=q.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=q.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=q.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:q.getFirstMatch(r,e),version:q.getSecondMatch(r,e)}}}],S8=v8,T8=[{test:[/Roku\/DVP/],describe(e){let t=q.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Ln.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=q.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Ln.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=q.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=q.getWindowsVersionName(t);return{name:Ln.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Ln.iOS},n=q.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=q.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=q.getMacOSVersionName(t),r={name:Ln.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=q.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Ln.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=q.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=q.getAndroidVersionName(t),r={name:Ln.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=q.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Ln.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=q.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||q.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||q.getFirstMatch(/\bbb(\d+)/i,e);return{name:Ln.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=q.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Ln.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=q.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Ln.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Ln.Linux}}},{test:[/CrOS/],describe(){return{name:Ln.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=q.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Ln.PlayStation4,version:t}}}],C8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=q.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=q.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],w8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Oa.Blink};let t=q.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Oa.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Oa.Trident},n=q.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Oa.Presto},n=q.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Oa.Gecko},n=q.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Oa.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Oa.WebKit},n=q.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],E8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=q.find(S8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=q.find(T8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=q.find(C8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=q.find(w8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return q.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=q.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=q.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=q.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=q.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(q.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},n2=E8,A8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new n2(e,t)}static parse(e){return new n2(e).getResult()}static get BROWSER_MAP(){return r2}static get ENGINE_MAP(){return Oa}static get OS_MAP(){return Ln}static get PLATFORMS_MAP(){return Ot}},mo=A8;var{entries:d2,setPrototypeOf:a2,isFrozen:k8,getPrototypeOf:D8,getOwnPropertyDescriptor:P8}=Object,{freeze:Mn,seal:Cr,create:L8}=Object,{apply:Jm,construct:Zm}=typeof Reflect<"u"&&Reflect;Jm||(Jm=function(e,t,n){return e.apply(t,n)});Mn||(Mn=function(e){return e});Cr||(Cr=function(e){return e});Zm||(Zm=function(e,t){return new e(...t)});var M8=dr(Array.prototype.forEach),i2=dr(Array.prototype.pop),qs=dr(Array.prototype.push),$l=dr(String.prototype.toLowerCase),Gm=dr(String.prototype.toString),R8=dr(String.prototype.match),Tr=dr(String.prototype.replace),F8=dr(String.prototype.indexOf),B8=dr(String.prototype.trim),Zn=dr(RegExp.prototype.test),zs=I8(TypeError);function dr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),U8=Cr(/\${[\w\W]*}/gm),H8=Cr(/^data-[\-\w.\u00B7-\uFFFF]/),q8=Cr(/^aria-[\-\w]+$/),m2=Cr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z8=Cr(/^(?:\w+script|data):/i),W8=Cr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),p2=Cr(/^html$/i),c2=Object.freeze({__proto__:null,MUSTACHE_EXPR:N8,ERB_EXPR:j8,TMPLIT_EXPR:U8,DATA_ATTR:H8,ARIA_ATTR:q8,IS_ALLOWED_URI:m2,IS_SCRIPT_OR_DATA:z8,ATTR_WHITESPACE:W8,DOCTYPE_NAME:p2}),G8=()=>typeof window>"u"?null:window,V8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function g2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G8(),t=M=>g2(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Zl(g,"cloneNode"),b=Zl(g,"nextSibling"),f=Zl(g,"childNodes"),y=Zl(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,S="",{implementation:w,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:A}=a,{importNode:k}=n,R={};t.isSupported=typeof d2=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:z}=c2,{IS_ALLOWED_URI:V}=c2,ie=null,Ie=Ne({},[...o2,...Vm,...Km,...Ym,...s2]),re=null,N=Ne({},[...u2,...Qm,...l2,...Xl]),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,me=null,ce=!0,ze=!0,pe=!1,he=!0,ge=!1,de=!1,Se=!1,Ue=!1,K=!1,xe=!1,nt=!1,Ye=!0,Te=!1,vt="user-content-",zt=!0,Dt=!1,Bt={},wn=null,ur=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ys=null,qr=Ne({},["audio","video","img","source","image","track"]),bi=null,Zi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",Vn=dn,sa=!1,ua=null,yi=Ne({},[cn,br,dn],Gm),En,la=["application/xhtml+xml","text/html"],St="text/html",et,Kn=null,_C=a.createElement("form"),A4=function(M){return M instanceof RegExp||M instanceof Function},zd=function(M){if(!(Kn&&Kn===M)){if((!M||typeof M!="object")&&(M={}),M=po(M),En=la.indexOf(M.PARSER_MEDIA_TYPE)===-1?En=St:En=M.PARSER_MEDIA_TYPE,et=En==="application/xhtml+xml"?Gm:$l,ie="ALLOWED_TAGS"in M?Ne({},M.ALLOWED_TAGS,et):Ie,re="ALLOWED_ATTR"in M?Ne({},M.ALLOWED_ATTR,et):N,ua="ALLOWED_NAMESPACES"in M?Ne({},M.ALLOWED_NAMESPACES,Gm):yi,bi="ADD_URI_SAFE_ATTR"in M?Ne(po(Zi),M.ADD_URI_SAFE_ATTR,et):Zi,ys="ADD_DATA_URI_TAGS"in M?Ne(po(qr),M.ADD_DATA_URI_TAGS,et):qr,wn="FORBID_CONTENTS"in M?Ne({},M.FORBID_CONTENTS,et):ur,W="FORBID_TAGS"in M?Ne({},M.FORBID_TAGS,et):{},me="FORBID_ATTR"in M?Ne({},M.FORBID_ATTR,et):{},Bt="USE_PROFILES"in M?M.USE_PROFILES:!1,ce=M.ALLOW_ARIA_ATTR!==!1,ze=M.ALLOW_DATA_ATTR!==!1,pe=M.ALLOW_UNKNOWN_PROTOCOLS||!1,he=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=M.SAFE_FOR_TEMPLATES||!1,de=M.WHOLE_DOCUMENT||!1,K=M.RETURN_DOM||!1,xe=M.RETURN_DOM_FRAGMENT||!1,nt=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Ye=M.SANITIZE_DOM!==!1,Te=M.SANITIZE_NAMED_PROPS||!1,zt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,V=M.ALLOWED_URI_REGEXP||m2,Vn=M.NAMESPACE||dn,j=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&A4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&A4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(ze=!1),xe&&(K=!0),Bt&&(ie=Ne({},[...s2]),re=[],Bt.html===!0&&(Ne(ie,o2),Ne(re,u2)),Bt.svg===!0&&(Ne(ie,Vm),Ne(re,Qm),Ne(re,Xl)),Bt.svgFilters===!0&&(Ne(ie,Km),Ne(re,Qm),Ne(re,Xl)),Bt.mathMl===!0&&(Ne(ie,Ym),Ne(re,l2),Ne(re,Xl))),M.ADD_TAGS&&(ie===Ie&&(ie=po(ie)),Ne(ie,M.ADD_TAGS,et)),M.ADD_ATTR&&(re===N&&(re=po(re)),Ne(re,M.ADD_ATTR,et)),M.ADD_URI_SAFE_ATTR&&Ne(bi,M.ADD_URI_SAFE_ATTR,et),M.FORBID_CONTENTS&&(wn===ur&&(wn=po(wn)),Ne(wn,M.FORBID_CONTENTS,et)),zt&&(ie["#text"]=!0),de&&Ne(ie,["html","head","body"]),ie.table&&(Ne(ie,["tbody"]),delete W.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw zs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw zs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=V8(p,r)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Mn&&Mn(M),Kn=M}},k4=Ne({},["mi","mo","mn","ms","mtext"]),D4=Ne({},["foreignobject","desc","title","annotation-xml"]),OC=Ne({},["title","style","font","a","script"]),ol=Ne({},Vm);Ne(ol,Km),Ne(ol,_8);let Wd=Ne({},Ym);Ne(Wd,O8);let NC=function(M){let ue=y(M);(!ue||!ue.tagName)&&(ue={namespaceURI:Vn,tagName:"template"});let J=$l(M.tagName),Je=$l(ue.tagName);return ua[M.namespaceURI]?M.namespaceURI===br?ue.namespaceURI===dn?J==="svg":ue.namespaceURI===cn?J==="svg"&&(Je==="annotation-xml"||k4[Je]):!!ol[J]:M.namespaceURI===cn?ue.namespaceURI===dn?J==="math":ue.namespaceURI===br?J==="math"&&D4[Je]:!!Wd[J]:M.namespaceURI===dn?ue.namespaceURI===br&&!D4[Je]||ue.namespaceURI===cn&&!k4[Je]?!1:!Wd[J]&&(OC[J]||!ol[J]):!!(En==="application/xhtml+xml"&&ua[M.namespaceURI]):!1},Xi=function(M){qs(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},Gd=function(M,ue){try{qs(t.removed,{attribute:ue.getAttributeNode(M),from:ue})}catch{qs(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(M),M==="is"&&!re[M])if(K||xe)try{Xi(ue)}catch{}else try{ue.setAttribute(M,"")}catch{}},P4=function(M){let ue,J;if(Ue)M=""+M;else{let An=R8(M,/^[\r\n\t ]+/);J=An&&An[0]}En==="application/xhtml+xml"&&Vn===dn&&(M=''+M+"");let Je=v?v.createHTML(M):M;if(Vn===dn)try{ue=new m().parseFromString(Je,En)}catch{}if(!ue||!ue.documentElement){ue=w.createDocument(Vn,"template",null);try{ue.documentElement.innerHTML=sa?S:Je}catch{}}let Wt=ue.body||ue.documentElement;return M&&J&&Wt.insertBefore(a.createTextNode(J),Wt.childNodes[0]||null),Vn===dn?A.call(ue,de?"html":"body")[0]:de?ue.documentElement:Wt},L4=function(M){return C.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},jC=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},sl=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},ca=function(M,ue,J){R[M]&&M8(R[M],Je=>{Je.call(t,ue,J,Kn)})},M4=function(M){let ue;if(ca("beforeSanitizeElements",M,null),jC(M))return Xi(M),!0;let J=et(M.nodeName);if(ca("uponSanitizeElement",M,{tagName:J,allowedTags:ie}),M.hasChildNodes()&&!sl(M.firstElementChild)&&(!sl(M.content)||!sl(M.content.firstElementChild))&&Zn(/<[/\w]/g,M.innerHTML)&&Zn(/<[/\w]/g,M.textContent))return Xi(M),!0;if(!ie[J]||W[J]){if(!W[J]&&F4(J)&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,J)||j.tagNameCheck instanceof Function&&j.tagNameCheck(J)))return!1;if(zt&&!wn[J]){let Je=y(M)||M.parentNode,Wt=f(M)||M.childNodes;if(Wt&&Je){let An=Wt.length;for(let On=An-1;On>=0;--On)Je.insertBefore(h(Wt[On],!0),b(M))}}return Xi(M),!0}return M instanceof u&&!NC(M)||(J==="noscript"||J==="noembed")&&Zn(/<\/no(script|embed)/i,M.innerHTML)?(Xi(M),!0):(ge&&M.nodeType===3&&(ue=M.textContent,ue=Tr(ue,F," "),ue=Tr(ue,P," "),ue=Tr(ue,I," "),M.textContent!==ue&&(qs(t.removed,{element:M.cloneNode()}),M.textContent=ue)),ca("afterSanitizeElements",M,null),!1)},R4=function(M,ue,J){if(Ye&&(ue==="id"||ue==="name")&&(J in a||J in _C))return!1;if(!(ze&&!me[ue]&&Zn(L,ue))&&!(ce&&Zn(_,ue))){if(!re[ue]||me[ue]){if(!(F4(M)&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,M)||j.tagNameCheck instanceof Function&&j.tagNameCheck(M))&&(j.attributeNameCheck instanceof RegExp&&Zn(j.attributeNameCheck,ue)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(ue))||ue==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,J)||j.tagNameCheck instanceof Function&&j.tagNameCheck(J))))return!1}else if(!bi[ue]&&!Zn(V,Tr(J,z,""))&&!((ue==="src"||ue==="xlink:href"||ue==="href")&&M!=="script"&&F8(J,"data:")===0&&ys[M])&&!(pe&&!Zn(O,Tr(J,z,"")))&&J)return!1}return!0},F4=function(M){return M.indexOf("-")>0},B4=function(M){let ue,J,Je,Wt;ca("beforeSanitizeAttributes",M,null);let{attributes:An}=M;if(!An)return;let On={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re};for(Wt=An.length;Wt--;){ue=An[Wt];let{name:Xt,namespaceURI:$i}=ue;if(J=Xt==="value"?ue.value:B8(ue.value),Je=et(Xt),On.attrName=Je,On.attrValue=J,On.keepAttr=!0,On.forceKeepAttr=void 0,ca("uponSanitizeAttribute",M,On),J=On.attrValue,On.forceKeepAttr||(Gd(Xt,M),!On.keepAttr))continue;if(!he&&Zn(/\/>/i,J)){Gd(Xt,M);continue}ge&&(J=Tr(J,F," "),J=Tr(J,P," "),J=Tr(J,I," "));let I4=et(M.nodeName);if(R4(I4,Je,J)){if(Te&&(Je==="id"||Je==="name")&&(Gd(Xt,M),J=vt+J),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!$i)switch(p.getAttributeType(I4,Je)){case"TrustedHTML":{J=v.createHTML(J);break}case"TrustedScriptURL":{J=v.createScriptURL(J);break}}try{$i?M.setAttributeNS($i,Xt,J):M.setAttribute(Xt,J),i2(t.removed)}catch{}}}ca("afterSanitizeAttributes",M,null)},UC=function M(ue){let J,Je=L4(ue);for(ca("beforeSanitizeShadowDOM",ue,null);J=Je.nextNode();)ca("uponSanitizeShadowNode",J,null),!M4(J)&&(J.content instanceof i&&M(J.content),B4(J));ca("afterSanitizeShadowDOM",ue,null)};return t.sanitize=function(M){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J,Je,Wt,An;if(sa=!M,sa&&(M=""),typeof M!="string"&&!sl(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw zs("dirty is not a string, aborting")}else throw zs("toString is not a function");if(!t.isSupported)return M;if(Se||zd(ue),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let $i=et(M.nodeName);if(!ie[$i]||W[$i])throw zs("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)J=P4(""),Je=J.ownerDocument.importNode(M,!0),Je.nodeType===1&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?J=Je:J.appendChild(Je);else{if(!K&&!ge&&!de&&M.indexOf("<")===-1)return v&&nt?v.createHTML(M):M;if(J=P4(M),!J)return K?null:nt?S:""}J&&Ue&&Xi(J.firstChild);let On=L4(Dt?M:J);for(;Wt=On.nextNode();)M4(Wt)||(Wt.content instanceof i&&UC(Wt.content),B4(Wt));if(Dt)return M;if(K){if(xe)for(An=T.call(J.ownerDocument);J.firstChild;)An.appendChild(J.firstChild);else An=J;return(re.shadowroot||re.shadowrootmod)&&(An=k.call(n,An,!0)),An}let Xt=de?J.outerHTML:J.innerHTML;return de&&ie["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Zn(p2,J.ownerDocument.doctype.name)&&(Xt=" -`+Xt),ge&&(Xt=Tr(Xt,F," "),Xt=Tr(Xt,P," "),Xt=Tr(Xt,I," ")),v&&nt?v.createHTML(Xt):Xt},t.setConfig=function(M){zd(M),Se=!0},t.clearConfig=function(){Kn=null,Se=!1},t.isValidAttribute=function(M,ue,J){Kn||zd({});let Je=et(M),Wt=et(ue);return R4(Je,Wt,J)},t.addHook=function(M,ue){typeof ue=="function"&&(R[M]=R[M]||[],qs(R[M],ue))},t.removeHook=function(M){if(R[M])return i2(R[M])},t.removeHooks=function(M){R[M]&&(R[M]=[])},t.removeAllHooks=function(){R={}},t}var rt=g2();var K8=Object.create,$m=Object.defineProperty,Y8=Object.getOwnPropertyDescriptor,Q8=Object.getOwnPropertyNames,J8=Object.getPrototypeOf,Z8=Object.prototype.hasOwnProperty,ep=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),X8=(e,t)=>{for(var n in t)$m(e,n,{get:t[n],enumerable:!0})},Xm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Q8(t))!Z8.call(e,a)&&a!==n&&$m(e,a,{get:()=>t[a],enumerable:!(r=Y8(t,a))||r.enumerable});return e},$8=(e,t,n)=>(Xm(e,t,"default"),n&&Xm(n,t,"default")),h2=(e,t,n)=>(n=e!=null?K8(J8(e)):{},Xm(t||!e||!e.__esModule?$m(n,"default",{value:e,enumerable:!0}):n,e)),eA=ep((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var xe=this._getInnerText(K);if(!(xe.length<25)){var nt=this._getNodeAncestors(K,5);if(nt.length!==0){var Ye=0;Ye+=1,Ye+=xe.split(",").length,Ye+=Math.min(Math.floor(xe.length/100),3),this._forEachNode(nt,function(Te,vt){if(!(!Te.tagName||!Te.parentNode||typeof Te.parentNode.tagName>"u")){if(typeof Te.readability>"u"&&(this._initializeNode(Te),h.push(Te)),vt===0)var zt=1;else vt===1?zt=2:zt=vt*3;Te.readability.contentScore+=Ye/zt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(w,0,v),b.length>this._nbTopCandidates&&b.pop();break}}}var T=b[0]||null,A=!1,k;if(T===null||T.tagName==="BODY"){for(T=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),T.appendChild(r.firstChild);r.appendChild(T),this._initializeNode(T)}else if(T){for(var R=[],F=1;F=.75&&R.push(this._getNodeAncestors(b[F]));var P=3;if(R.length>=P)for(k=T.parentNode;k.tagName!=="BODY";){for(var I=0,L=0;L=P){T=k;break}k=k.parentNode}T.readability||this._initializeNode(T),k=T.parentNode;for(var _=T.readability.contentScore,O=_/3;k.tagName!=="BODY";){if(!k.readability){k=k.parentNode;continue}var z=k.readability.contentScore;if(z_){T=k;break}_=k.readability.contentScore,k=k.parentNode}for(k=T.parentNode;k.tagName!="BODY"&&k.children.length==1;)T=k,k=T.parentNode;T.readability||this._initializeNode(T)}var V=a.createElement("DIV");i&&(V.id="readability-content");var ie=Math.max(10,T.readability.contentScore*.2);k=T.parentNode;for(var Ie=k.children,re=0,N=Ie.length;re=ie)W=!0;else if(j.nodeName==="P"){var ce=this._getLinkDensity(j),ze=this._getInnerText(j),pe=ze.length;(pe>80&&ce<.25||pe<80&&pe>0&&ce===0&&ze.search(/\.( |$)/)!==-1)&&(W=!0)}}W&&(this.log("Appending node:",j),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(j.nodeName)===-1&&(this.log("Altering sibling:",j,"to div."),j=this._setNodeTag(j,"DIV")),V.appendChild(j),Ie=k.children,re-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+V.innerHTML),this._prepArticle(V),this._debug&&this.log("Article content post-prep: "+V.innerHTML),A)T.id="readability-page-1",T.className="page";else{var he=a.createElement("DIV");for(he.id="readability-page-1",he.className="page";V.firstChild;)he.appendChild(V.firstChild);V.appendChild(he)}this._debug&&this.log("Article content after paging: "+V.innerHTML);var ge=!0,de=this._getInnerText(V,!0).length;if(de0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(k){return k._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,k=>u+=this._getInnerText(k).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||f===1&&C<75||f>1;if(s&&T){for(var A=0;A1)return T;let k=i.getElementsByTagName("li").length;if(p==k)return!1}return T}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),tA=ep((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),b2=ep((e,t)=>{var n=eA(),r=tA();t.exports={Readability:n,isProbablyReaderable:r}}),y2={};X8(y2,{Readability:()=>ec,default:()=>S2,isProbablyReaderable:()=>v2});var x2=h2(b2());$8(y2,h2(b2()));var{Readability:ec,isProbablyReaderable:v2}=x2,{default:f2,...nA}=x2,S2=f2!==void 0?f2:nA;var rA=Yl.alert;var go=console,tp=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=cr.green;r>1e4?a=cr.red:r>1e3&&(a=cr.yellow),go.debug(cr.dim(vi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Ws=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&go.log(cr.dim(vi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&go.log(cr.green(vi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&go.warn(cr.yellow(vi+" WARN:"),...t)}error(...t){this.#e<=3&&go.error(cr.red(vi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&go.error(cr.red(vi+" FATAL:"),...t)}timing(){return this.level===0?new tp:{reset:()=>{},stop:()=>{}}}},D=new Ws;var T2=["*://*/*","*","*://*"],w2="immersive-translate-wildcard-placeholder.com";function np(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>T2.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(T2.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return iA(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,w2),m;try{m=new URL(d)}catch{return D.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=aA(l+":",C2(p),C2(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function C2(e){return e.replaceAll(w2,"*")}function aA(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function Ze(e,t){return np(e,t)!==null}function iA(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],rp={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},E2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},ap={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},ip={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function X(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return X(document?.documentElement?.lang||"en")}var A2=Y+"SyncStoreKey_";function Nt(e,t){let n=A2+e;return $.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function at(e,t){let n=A2+e;return $.storage.sync.set({[n]:t})}var k2=Y+"StoreKey_";function Li(e,t){let n=k2+e;return $.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function D2(e,t){let n=k2+e;return $.storage.local.set({[n]:t})}var _q=L2(2),P2=L2(3);function L2(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var oA=/\s+/g,sA=/[\t\n\v\f\r ]+/g;function M2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?uA:lA;return String(e).replace(t.style==="html"?sA:oA,t.trim?cA(n):n)}function uA(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function lA(){return" "}function cA(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var R2={}.hasOwnProperty;function dA(e){return e==null?"":M2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function mA(e){return P2(" "+dA(e)+" ")}function pA(e){let t=mA(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function vA(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function SA(e,t,n,r){t=CA(t,n,r);let a=[],i;if(t)for(i in t)tc.call(t,i)&&a.push([i,TA(e,t[i])]);return a.length===0?sp():a.sort(wA)}function TA(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of BA){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?U2(e)?"zh-TW":"zh-CN":t:"auto"}var q2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],up=new Map(q2),IA=new Map(q2.map(([e,t])=>[t,e]));function z2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>IA.get(s));!t&&t!==0&&(t=25);let a=rc(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...up.keys()]},o=I2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return up.get(d)}}let[s,u]=o[0],l=up.get(s);if(l&&u>.9)return l}}catch(r){D.error(r)}return"auto"}function Na(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function _A(e,t){return e<>>32-t}function ic(e,t,n,r,a,i){return Na(_A(Na(Na(t,e),Na(r,i)),a),n)}function pn(e,t,n,r,a,i,o){return ic(t&n|~t&r,e,t,a,i,o)}function gn(e,t,n,r,a,i,o){return ic(t&r|n&~r,e,t,a,i,o)}function fn(e,t,n,r,a,i,o){return ic(t^n^r,e,t,a,i,o)}function hn(e,t,n,r,a,i,o){return ic(n^(t|~r),e,t,a,i,o)}function ac(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function lp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=ac(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=ac(a.concat(lp(t)),512+t.length*8),W2(ac(i.concat(o),512+128))}function G2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function cp(e){return unescape(encodeURIComponent(e))}function V2(e){return OA(cp(e))}function jA(e){return G2(V2(e))}function K2(e,t){return NA(cp(e),cp(t))}function UA(e,t){return G2(K2(e,t))}function $n(e,t,n){return t?n?K2(t,e):UA(t,e):n?V2(e):jA(e)}var oc=["caiyun","cai"],Y2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],fo={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:oe+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`+b+"]"}return r.pop(),a=b,f}},kE={parse:vE,stringify:AE},DE=kE,Wl=DE;var F1=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function PE(e,t){return!!(e===t||F1(e)&&F1(t))}function LE(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),OE=(e,t)=>{for(var n in t)_m(e,n,{get:t[n],enumerable:!0})},Im=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of FE(t))!IE.call(e,a)&&a!==n&&_m(e,a,{get:()=>t[a],enumerable:!(r=RE(t,a))||r.enumerable});return e},NE=(e,t,n)=>(Im(e,t,"default"),n&&Im(n,t,"default")),I1=(e,t,n)=>(n=e!=null?ME(BE(e)):{},Im(t||!e||!e.__esModule?_m(n,"default",{value:e,enumerable:!0}):n,e)),_1=_E((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Gl=="object"&&Gl&&Gl.Object===Object&&Gl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,h=Math.min,f=function(){return m.Date.now()};function y(A,k,R){var F,P,I,L,_,O,z=0,V=!1,ie=!1,Be=!0;if(typeof A!="function")throw new TypeError(n);k=S(k)||0,T(R)&&(V=!!R.leading,ie="maxWait"in R,I=ie?b(S(R.maxWait)||0,k):I,Be="trailing"in R?!!R.trailing:Be);function re(ge){var de=F,Te=P;return F=P=void 0,z=ge,L=A.apply(Te,de),L}function N(ge){return z=ge,_=setTimeout(me,k),V?re(ge):L}function j(ge){var de=ge-O,Te=ge-z,Ue=k-de;return ie?h(Ue,I-Te):Ue}function W(ge){var de=ge-O,Te=ge-z;return O===void 0||de>=k||de<0||ie&&Te>=I}function me(){var ge=f();if(W(ge))return ce(ge);_=setTimeout(me,j(ge))}function ce(ge){return _=void 0,Be&&F?re(ge):(F=P=void 0,L)}function We(){_!==void 0&&clearTimeout(_),z=0,F=O=P=_=void 0}function pe(){return _===void 0?L:ce(f())}function he(){var ge=f(),de=W(ge);if(F=arguments,P=this,O=ge,de){if(_===void 0)return N(O);if(ie)return _=setTimeout(me,k),re(O)}return _===void 0&&(_=setTimeout(me,k)),L}return he.cancel=We,he.flush=pe,he}function v(A,k,R){var F=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return T(R)&&(F="leading"in R?!!R.leading:F,P="trailing"in R?!!R.trailing:P),y(A,k,{leading:F,maxWait:k,trailing:P})}function T(A){var k=typeof A;return!!A&&(k=="object"||k=="function")}function w(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||w(A)&&g.call(A)==a}function S(A){if(typeof A=="number")return A;if(C(A))return r;if(T(A)){var k=typeof A.valueOf=="function"?A.valueOf():A;A=T(k)?k+"":k}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var R=s.test(A);return R||u.test(A)?l(A.slice(2),R?2:8):o.test(A)?r:+A}t.exports=v}),O1={};OE(O1,{default:()=>Jn});var jE=I1(_1());NE(O1,I1(_1()));var{default:B1,...UE}=jE,Jn=B1!==void 0?B1:UE;var Vl=globalThis||(typeof window<"u"?window:self),HE=Object.create,Nm=Object.defineProperty,qE=Object.getOwnPropertyDescriptor,zE=Object.getOwnPropertyNames,WE=Object.getPrototypeOf,GE=Object.prototype.hasOwnProperty,VE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KE=(e,t)=>{for(var n in t)Nm(e,n,{get:t[n],enumerable:!0})},Om=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zE(t))!GE.call(e,a)&&a!==n&&Nm(e,a,{get:()=>t[a],enumerable:!(r=qE(t,a))||r.enumerable});return e},YE=(e,t,n)=>(Om(e,t,"default"),n&&Om(n,t,"default")),j1=(e,t,n)=>(n=e!=null?HE(WE(e)):{},Om(t||!e||!e.__esModule?Nm(n,"default",{value:e,enumerable:!0}):n,e)),U1=VE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Vl=="object"&&Vl&&Vl.Object===Object&&Vl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,h=Math.min,f=function(){return m.Date.now()};function y(S,A,k){var R,F,P,I,L,_,O=0,z=!1,V=!1,ie=!0;if(typeof S!="function")throw new TypeError(n);A=C(A)||0,v(k)&&(z=!!k.leading,V="maxWait"in k,P=V?b(C(k.maxWait)||0,A):P,ie="trailing"in k?!!k.trailing:ie);function Be(he){var ge=R,de=F;return R=F=void 0,O=he,I=S.apply(de,ge),I}function re(he){return O=he,L=setTimeout(W,A),z?Be(he):I}function N(he){var ge=he-_,de=he-O,Te=A-ge;return V?h(Te,P-de):Te}function j(he){var ge=he-_,de=he-O;return _===void 0||ge>=A||ge<0||V&&de>=P}function W(){var he=f();if(j(he))return me(he);L=setTimeout(W,N(he))}function me(he){return L=void 0,ie&&R?Be(he):(R=F=void 0,I)}function ce(){L!==void 0&&clearTimeout(L),O=0,R=_=F=L=void 0}function We(){return L===void 0?I:me(f())}function pe(){var he=f(),ge=j(he);if(R=arguments,F=this,_=he,ge){if(L===void 0)return re(_);if(V)return L=setTimeout(W,A),Be(_)}return L===void 0&&(L=setTimeout(W,A)),I}return pe.cancel=ce,pe.flush=We,pe}function v(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function T(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||T(S)&&g.call(S)==a}function C(S){if(typeof S=="number")return S;if(w(S))return r;if(v(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=v(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(i,"");var k=s.test(S);return k||u.test(S)?l(S.slice(2),k?2:8):o.test(S)?r:+S}t.exports=y}),H1={};KE(H1,{default:()=>jn});var QE=j1(U1());YE(H1,j1(U1()));var{default:N1,...JE}=QE,jn=N1!==void 0?N1:JE;var ZE=Object.create,Um=Object.defineProperty,XE=Object.getOwnPropertyDescriptor,$E=Object.getOwnPropertyNames,e8=Object.getPrototypeOf,t8=Object.prototype.hasOwnProperty,n8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r8=(e,t)=>{for(var n in t)Um(e,n,{get:t[n],enumerable:!0})},jm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $E(t))!t8.call(e,a)&&a!==n&&Um(e,a,{get:()=>t[a],enumerable:!(r=XE(t,a))||r.enumerable});return e},a8=(e,t,n)=>(jm(e,t,"default"),n&&jm(n,t,"default")),z1=(e,t,n)=>(n=e!=null?ZE(e8(e)):{},jm(t||!e||!e.__esModule?Um(n,"default",{value:e,enumerable:!0}):n,e)),W1=n8((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,b){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:b})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,j){var W={};for(var me in N)j.indexOf(me)>=0||Object.prototype.hasOwnProperty.call(N,me)&&(W[me]=N[me]);return W}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},b=Object.assign||function(N){for(var j=1;j'+me+"
",Te.onclick=function(){return P(Ue,de)},Te.listener=function(K){(k(K)||R(K))&&_()},F(Te,de),We&&We<1&&(We=1),!he&&We&&T(We).then(function(){return P(Ue,de)})},z=d.force=function(N,j){var W=N.type,me=W===void 0?5:W,ce=N.text,We=N.buttonText,pe=We===void 0?"OK":We,he=N.callback,ge=N.position,de=ge===void 0?f.positions.force||de.top:ge;w(),_();var Te=document.createElement("div"),Ue=C();Te.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+ce+"
";var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(S[me]),xe.innerHTML=pe,xe.onclick=function(){P(Ue,de),L(),he?he():j&&j()},Te.appendChild(K),Te.appendChild(xe),Te.listener=function(nt){k(nt)&&xe.click()},F(Te,de),I()},V=d.confirm=function(N,j,W){var me=N.text,ce=N.submitText,We=ce===void 0?"Yes":ce,pe=N.cancelText,he=pe===void 0?"Cancel":pe,ge=N.submitCallback,de=N.cancelCallback,Te=N.position,Ue=Te===void 0?f.positions.confirm||Ue.top:Te;w(),_();var K=document.createElement("div"),xe=C();K.id=xe;var nt=document.createElement("div");nt.classList.add(f.classes.textbox),nt.classList.add(f.classes.backgroundInfo),nt.innerHTML='
'+me+"
";var Ye=document.createElement("div");Ye.classList.add(f.classes.button),Ye.classList.add(f.classes.elementHalf),Ye.classList.add(f.classes.backgroundSuccess),Ye.innerHTML=We,Ye.onclick=function(){P(xe,Ue),L(),ge?ge():j&&j()};var Se=document.createElement("div");Se.classList.add(f.classes.button),Se.classList.add(f.classes.elementHalf),Se.classList.add(f.classes.backgroundError),Se.innerHTML=he,Se.onclick=function(){P(xe,Ue),L(),de?de():W&&W()},K.appendChild(nt),K.appendChild(Ye),K.appendChild(Se),K.listener=function(vt){k(vt)?Ye.click():R(vt)&&Se.click()},F(K,Ue),I(K,Ue)},ie=function(N,j,W){var me=N.text,ce=N.submitText,We=ce===void 0?"Submit":ce,pe=N.cancelText,he=pe===void 0?"Cancel":pe,ge=N.submitCallback,de=N.cancelCallback,Te=N.position,Ue=Te===void 0?f.positions.input||Ue.top:Te,K=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var xe=document.createElement("div"),nt=C();xe.id=nt;var Ye=document.createElement("div");Ye.classList.add(f.classes.textbox),Ye.classList.add(f.classes.backgroundInfo),Ye.innerHTML='
'+me+"
";var Se=document.createElement("input");Se.classList.add(f.classes.inputField),Se.setAttribute("autocapitalize",K.autocapitalize||"none"),Se.setAttribute("autocomplete",K.autocomplete||"off"),Se.setAttribute("autocorrect",K.autocorrect||"off"),Se.setAttribute("autofocus",K.autofocus||"true"),Se.setAttribute("inputmode",K.inputmode||"verbatim"),Se.setAttribute("max",K.max||""),Se.setAttribute("maxlength",K.maxlength||""),Se.setAttribute("min",K.min||""),Se.setAttribute("minlength",K.minlength||""),Se.setAttribute("placeholder",K.placeholder||""),Se.setAttribute("spellcheck",K.spellcheck||"default"),Se.setAttribute("step",K.step||"any"),Se.setAttribute("type",K.type||"text"),Se.value=K.value||"",K.allowed&&(Se.oninput=function(){var Dt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",Cn=K.allowed,ur=0;ur'+W+"",de.appendChild(Ue),pe.forEach(function(xe,nt){var Ye=xe.type,Se=Ye===void 0?1:Ye,vt=xe.text,zt=xe.handler,Dt=document.createElement("div");Dt.classList.add(S[Se]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Bt=pe[nt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===Se&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){P(Te,ge),L(),zt()},de.appendChild(Dt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=ce,K.onclick=function(){P(Te,ge),L(),We?We():j&&j()},de.appendChild(K),de.listener=function(xe){R(xe)&&K.click()},F(de,ge),I(de,ge)},re=d.date=function(N,j,W){var me=N.value,ce=me===void 0?new Date:me,We=N.submitText,pe=We===void 0?"OK":We,he=N.cancelText,ge=he===void 0?"Cancel":he,de=N.submitCallback,Te=N.cancelCallback,Ue=N.position,K=Ue===void 0?f.positions.date||K.top:Ue;w(),_();var xe="▾",nt=document.createElement("div"),Ye=document.createElement("div"),Se=document.createElement("div"),vt=function(Tt){nt.innerHTML=f.dateMonths[Tt.getMonth()],Ye.innerHTML=Tt.getDate(),Se.innerHTML=Tt.getFullYear()},zt=function(Tt){var et=new Date(ce.getFullYear(),ce.getMonth()+1,0).getDate(),Kn=Tt.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>et&&(Kn=et.toString()),Tt.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),ce.setDate(Number(Kn))},Dt=function(Tt){var et=Tt.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Tt.target.textContent=et,ce.setFullYear(Number(et))},Bt=function(Tt){vt(ce)},Cn=function(Tt){var et=new Date(ce.getFullYear(),ce.getMonth()+Tt+1,0).getDate();ce.getDate()>et&&ce.setDate(et),ce.setMonth(ce.getMonth()+Tt),vt(ce)},ur=function(Tt){ce.setDate(ce.getDate()+Tt),vt(ce)},ys=function(Tt){var et=ce.getFullYear()+Tt;et<0?ce.setFullYear(0):ce.setFullYear(ce.getFullYear()+Tt),vt(ce)},Hr=document.createElement("div"),hi=C();Hr.id=hi;var Zi=document.createElement("div");Zi.classList.add(f.classes.backgroundInfo);var cn=document.createElement("div");cn.classList.add(f.classes.dateSelectorInner);var br=document.createElement("div");br.classList.add(f.classes.button),br.classList.add(f.classes.elementThird),br.classList.add(f.classes.dateSelectorUp),br.innerHTML=xe;var dn=document.createElement("div");dn.classList.add(f.classes.button),dn.classList.add(f.classes.elementThird),dn.classList.add(f.classes.dateSelectorUp),dn.innerHTML=xe;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=xe,nt.classList.add(f.classes.element),nt.classList.add(f.classes.elementThird),nt.innerHTML=f.dateMonths[ce.getMonth()],Ye.classList.add(f.classes.element),Ye.classList.add(f.classes.elementThird),Ye.setAttribute("contentEditable",!0),Ye.addEventListener("input",zt),Ye.addEventListener("blur",Bt),Ye.innerHTML=ce.getDate(),Se.classList.add(f.classes.element),Se.classList.add(f.classes.elementThird),Se.setAttribute("contentEditable",!0),Se.addEventListener("input",Dt),Se.addEventListener("blur",Bt),Se.innerHTML=ce.getFullYear();var ia=document.createElement("div");ia.classList.add(f.classes.button),ia.classList.add(f.classes.elementThird),ia.innerHTML=xe;var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementThird),oa.innerHTML=xe;var bi=document.createElement("div");bi.classList.add(f.classes.button),bi.classList.add(f.classes.elementThird),bi.innerHTML=xe,br.onclick=function(){return Cn(1)},dn.onclick=function(){return ur(1)},Vn.onclick=function(){return ys(1)},ia.onclick=function(){return Cn(-1)},oa.onclick=function(){return ur(-1)},bi.onclick=function(){return ys(-1)};var wn=document.createElement("div");wn.classList.add(f.classes.button),wn.classList.add(f.classes.elementHalf),wn.classList.add(f.classes.backgroundSuccess),wn.innerHTML=pe,wn.onclick=function(){P(hi,K),L(),de?de(ce):j&&j(ce)};var sa=document.createElement("div");sa.classList.add(f.classes.button),sa.classList.add(f.classes.elementHalf),sa.classList.add(f.classes.backgroundError),sa.innerHTML=ge,sa.onclick=function(){P(hi,K),L(),Te?Te(ce):W&&W(ce)},cn.appendChild(br),cn.appendChild(dn),cn.appendChild(Vn),cn.appendChild(nt),cn.appendChild(Ye),cn.appendChild(Se),cn.appendChild(ia),cn.appendChild(oa),cn.appendChild(bi),Zi.appendChild(cn),Hr.appendChild(Zi),Hr.appendChild(wn),Hr.appendChild(sa),Hr.listener=function(Tt){k(Tt)?wn.click():R(Tt)&&sa.click()},F(Hr,K),I(Hr,K)};d.default={alert:O,force:z,confirm:V,input:ie,select:Be,date:re,setOptions:y,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),G1={};r8(G1,{default:()=>Kl});var i8=z1(W1());a8(G1,z1(W1()));var{default:q1,...o8}=i8,Kl=q1!==void 0?q1:o8;var Yl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ns(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Hm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function V1(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ico[e.toLowerCase()]||Tr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),s8=e=>Object.keys(co).find(t=>co[t]===e),u8=e=>Object.keys(Tr).find(t=>Tr[t]===e);function X1(e){J1=e||"all"}function js(){return J1||"all"}function l8(){return ot.slice(0)}function c8(){return ot.map(e=>s8(e)||u8(e)||String.fromCharCode(e))}function d8(){let e=[];return Object.keys(St).forEach(t=>{St[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Us(o))})})}),e}function m8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function p8(e){return typeof e=="string"&&(e=Us(e)),ot.indexOf(e)!==-1}function g8(e,t){let n,r;e||(e=js());for(let a in St)if(Object.prototype.hasOwnProperty.call(St,a))for(n=St[a],r=0;r=0&&ot.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ot.splice(0,ot.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in Tr)Tr[r]===t&&(fa[r]=!1)}}function $1(e,...t){if(typeof e>"u")Object.keys(St).forEach(n=>delete St[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&zm(n)});else if(typeof e=="object")e.key&&zm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),zm({key:e,scope:n,method:r,splitKey:"+"})}}var zm=({key:e,scope:t,method:n,splitKey:r="+"})=>{qm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Us(u);if(!St[l])return;t||(t=js());let c=s>1?Hm(Tr,o):[];St[l]=St[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&V1(d.mods,c)))})};function Y1(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ot),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Q1(e,t){let n=St["*"],r=e.keyCode||e.which||e.charCode;if(!fa.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ot.indexOf(r)===-1&&r!==229&&ot.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Ql[i];e[i]&&ot.indexOf(o)===-1?ot.push(o):!e[i]&&ot.indexOf(o)>-1?ot.splice(ot.indexOf(o),1):i==="metaKey"&&e[i]&&ot.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ot=ot.slice(ot.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in Tr)Tr[i]===r&&(fa[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Ql[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ot.indexOf(17)===-1&&ot.push(17),ot.indexOf(18)===-1&&ot.push(18),tn[17]=!0,tn[18]=!0);let a=js();if(n)for(let i=0;i-1}function fa(e,t,n){ot=[];let r=qm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&$1(e,i);s1&&(a=Hm(Tr,e)),e=e[e.length-1],e=e==="*"?"*":Us(e),e in St||(St[e]=[]),St[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!h8(o)&&window&&(Z1.push(o),Ns(o,"keydown",p=>{Q1(p,o)},d),K1||(K1=!0,Ns(window,"focus",()=>{ot=[]},d),Ns(window,"click",()=>{ot=[]},!1)),Ns(o,"keyup",p=>{Q1(p,o),f8(p)},d))}function b8(e,t="all"){Object.keys(St).forEach(n=>{St[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Wm={getPressedKeyString:c8,setScope:X1,getScope:js,deleteScope:g8,getPressedKeyCodes:l8,getAllKeyCodes:d8,isPressed:p8,filter:m8,trigger:b8,unbind:$1,keyMap:co,modifier:Tr,modifierMap:Ql};for(let e in Wm)Object.prototype.hasOwnProperty.call(Wm,e)&&(fa[e]=Wm[e]);if(typeof window<"u"){let e=window.hotkeys;fa.noConflict=t=>(t&&window.hotkeys===fa&&(window.hotkeys=e),fa),window.hotkeys=fa}var Un=fa;var y8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t2={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Pn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},_a={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},q=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=q.getVersionPrecision(e),a=q.getVersionPrecision(t),i=Math.max(r,a),o=0,s=q.map([e,t],u=>{let l=i-q.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return q.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return y8[e]}static getBrowserTypeByAlias(e){return t2[e]||""}},st=/version\/(\d+(\.?_?\d+)+)/i,x8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=q.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=q.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=q.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=q.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=q.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=q.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=q.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=q.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=q.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=q.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=q.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=q.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=q.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=q.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=q.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=q.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=q.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=q.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=q.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=q.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=q.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=q.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=q.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=q.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=q.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=q.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:q.getFirstMatch(r,e),version:q.getSecondMatch(r,e)}}}],v8=x8,T8=[{test:[/Roku\/DVP/],describe(e){let t=q.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Pn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=q.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Pn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=q.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=q.getWindowsVersionName(t);return{name:Pn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Pn.iOS},n=q.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=q.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=q.getMacOSVersionName(t),r={name:Pn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=q.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Pn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=q.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=q.getAndroidVersionName(t),r={name:Pn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=q.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Pn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=q.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||q.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||q.getFirstMatch(/\bbb(\d+)/i,e);return{name:Pn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=q.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Pn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=q.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Pn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Pn.Linux}}},{test:[/CrOS/],describe(){return{name:Pn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=q.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Pn.PlayStation4,version:t}}}],S8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=q.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=q.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],C8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:_a.Blink};let t=q.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:_a.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:_a.Trident},n=q.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:_a.Presto},n=q.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:_a.Gecko},n=q.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:_a.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:_a.WebKit},n=q.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],w8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=q.find(v8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=q.find(T8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=q.find(S8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=q.find(C8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return q.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=q.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=q.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=q.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=q.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(q.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},e2=w8,E8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new e2(e,t)}static parse(e){return new e2(e).getResult()}static get BROWSER_MAP(){return t2}static get ENGINE_MAP(){return _a}static get OS_MAP(){return Pn}static get PLATFORMS_MAP(){return Ot}},mo=E8;var{entries:l2,setPrototypeOf:n2,isFrozen:A8,getPrototypeOf:k8,getOwnPropertyDescriptor:D8}=Object,{freeze:Ln,seal:Cr,create:P8}=Object,{apply:Jm,construct:Zm}=typeof Reflect<"u"&&Reflect;Jm||(Jm=function(e,t,n){return e.apply(t,n)});Ln||(Ln=function(e){return e});Cr||(Cr=function(e){return e});Zm||(Zm=function(e,t){return new e(...t)});var L8=dr(Array.prototype.forEach),r2=dr(Array.prototype.pop),Hs=dr(Array.prototype.push),Xl=dr(String.prototype.toLowerCase),Gm=dr(String.prototype.toString),M8=dr(String.prototype.match),Sr=dr(String.prototype.replace),R8=dr(String.prototype.indexOf),F8=dr(String.prototype.trim),Zn=dr(RegExp.prototype.test),qs=B8(TypeError);function dr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),j8=Cr(/\${[\w\W]*}/gm),U8=Cr(/^data-[\-\w.\u00B7-\uFFFF]/),H8=Cr(/^aria-[\-\w]+$/),c2=Cr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q8=Cr(/^(?:\w+script|data):/i),z8=Cr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),d2=Cr(/^html$/i),u2=Object.freeze({__proto__:null,MUSTACHE_EXPR:O8,ERB_EXPR:N8,TMPLIT_EXPR:j8,DATA_ATTR:U8,ARIA_ATTR:H8,IS_ALLOWED_URI:c2,IS_SCRIPT_OR_DATA:q8,ATTR_WHITESPACE:z8,DOCTYPE_NAME:d2}),W8=()=>typeof window>"u"?null:window,G8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function m2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W8(),t=M=>m2(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,b=Jl(g,"cloneNode"),h=Jl(g,"nextSibling"),f=Jl(g,"childNodes"),y=Jl(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,T="",{implementation:w,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:A}=a,{importNode:k}=n,R={};t.isSupported=typeof l2=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:z}=u2,{IS_ALLOWED_URI:V}=u2,ie=null,Be=Ne({},[...a2,...Vm,...Km,...Ym,...i2]),re=null,N=Ne({},[...o2,...Qm,...s2,...Zl]),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,me=null,ce=!0,We=!0,pe=!1,he=!0,ge=!1,de=!1,Te=!1,Ue=!1,K=!1,xe=!1,nt=!1,Ye=!0,Se=!1,vt="user-content-",zt=!0,Dt=!1,Bt={},Cn=null,ur=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ys=null,Hr=Ne({},["audio","video","img","source","image","track"]),hi=null,Zi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",Vn=dn,ia=!1,oa=null,bi=Ne({},[cn,br,dn],Gm),wn,sa=["application/xhtml+xml","text/html"],Tt="text/html",et,Kn=null,IC=a.createElement("form"),w4=function(M){return M instanceof RegExp||M instanceof Function},qd=function(M){if(!(Kn&&Kn===M)){if((!M||typeof M!="object")&&(M={}),M=po(M),wn=sa.indexOf(M.PARSER_MEDIA_TYPE)===-1?wn=Tt:wn=M.PARSER_MEDIA_TYPE,et=wn==="application/xhtml+xml"?Gm:Xl,ie="ALLOWED_TAGS"in M?Ne({},M.ALLOWED_TAGS,et):Be,re="ALLOWED_ATTR"in M?Ne({},M.ALLOWED_ATTR,et):N,oa="ALLOWED_NAMESPACES"in M?Ne({},M.ALLOWED_NAMESPACES,Gm):bi,hi="ADD_URI_SAFE_ATTR"in M?Ne(po(Zi),M.ADD_URI_SAFE_ATTR,et):Zi,ys="ADD_DATA_URI_TAGS"in M?Ne(po(Hr),M.ADD_DATA_URI_TAGS,et):Hr,Cn="FORBID_CONTENTS"in M?Ne({},M.FORBID_CONTENTS,et):ur,W="FORBID_TAGS"in M?Ne({},M.FORBID_TAGS,et):{},me="FORBID_ATTR"in M?Ne({},M.FORBID_ATTR,et):{},Bt="USE_PROFILES"in M?M.USE_PROFILES:!1,ce=M.ALLOW_ARIA_ATTR!==!1,We=M.ALLOW_DATA_ATTR!==!1,pe=M.ALLOW_UNKNOWN_PROTOCOLS||!1,he=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=M.SAFE_FOR_TEMPLATES||!1,de=M.WHOLE_DOCUMENT||!1,K=M.RETURN_DOM||!1,xe=M.RETURN_DOM_FRAGMENT||!1,nt=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Ye=M.SANITIZE_DOM!==!1,Se=M.SANITIZE_NAMED_PROPS||!1,zt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,V=M.ALLOWED_URI_REGEXP||c2,Vn=M.NAMESPACE||dn,j=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&w4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&w4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(We=!1),xe&&(K=!0),Bt&&(ie=Ne({},[...i2]),re=[],Bt.html===!0&&(Ne(ie,a2),Ne(re,o2)),Bt.svg===!0&&(Ne(ie,Vm),Ne(re,Qm),Ne(re,Zl)),Bt.svgFilters===!0&&(Ne(ie,Km),Ne(re,Qm),Ne(re,Zl)),Bt.mathMl===!0&&(Ne(ie,Ym),Ne(re,s2),Ne(re,Zl))),M.ADD_TAGS&&(ie===Be&&(ie=po(ie)),Ne(ie,M.ADD_TAGS,et)),M.ADD_ATTR&&(re===N&&(re=po(re)),Ne(re,M.ADD_ATTR,et)),M.ADD_URI_SAFE_ATTR&&Ne(hi,M.ADD_URI_SAFE_ATTR,et),M.FORBID_CONTENTS&&(Cn===ur&&(Cn=po(Cn)),Ne(Cn,M.FORBID_CONTENTS,et)),zt&&(ie["#text"]=!0),de&&Ne(ie,["html","head","body"]),ie.table&&(Ne(ie,["tbody"]),delete W.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw qs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else v===void 0&&(v=G8(p,r)),v!==null&&typeof T=="string"&&(T=v.createHTML(""));Ln&&Ln(M),Kn=M}},E4=Ne({},["mi","mo","mn","ms","mtext"]),A4=Ne({},["foreignobject","desc","title","annotation-xml"]),_C=Ne({},["title","style","font","a","script"]),il=Ne({},Vm);Ne(il,Km),Ne(il,I8);let zd=Ne({},Ym);Ne(zd,_8);let OC=function(M){let ue=y(M);(!ue||!ue.tagName)&&(ue={namespaceURI:Vn,tagName:"template"});let J=Xl(M.tagName),Je=Xl(ue.tagName);return oa[M.namespaceURI]?M.namespaceURI===br?ue.namespaceURI===dn?J==="svg":ue.namespaceURI===cn?J==="svg"&&(Je==="annotation-xml"||E4[Je]):!!il[J]:M.namespaceURI===cn?ue.namespaceURI===dn?J==="math":ue.namespaceURI===br?J==="math"&&A4[Je]:!!zd[J]:M.namespaceURI===dn?ue.namespaceURI===br&&!A4[Je]||ue.namespaceURI===cn&&!E4[Je]?!1:!zd[J]&&(_C[J]||!il[J]):!!(wn==="application/xhtml+xml"&&oa[M.namespaceURI]):!1},Xi=function(M){Hs(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},Wd=function(M,ue){try{Hs(t.removed,{attribute:ue.getAttributeNode(M),from:ue})}catch{Hs(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(M),M==="is"&&!re[M])if(K||xe)try{Xi(ue)}catch{}else try{ue.setAttribute(M,"")}catch{}},k4=function(M){let ue,J;if(Ue)M=""+M;else{let En=M8(M,/^[\r\n\t ]+/);J=En&&En[0]}wn==="application/xhtml+xml"&&Vn===dn&&(M=''+M+"");let Je=v?v.createHTML(M):M;if(Vn===dn)try{ue=new m().parseFromString(Je,wn)}catch{}if(!ue||!ue.documentElement){ue=w.createDocument(Vn,"template",null);try{ue.documentElement.innerHTML=ia?T:Je}catch{}}let Wt=ue.body||ue.documentElement;return M&&J&&Wt.insertBefore(a.createTextNode(J),Wt.childNodes[0]||null),Vn===dn?A.call(ue,de?"html":"body")[0]:de?ue.documentElement:Wt},D4=function(M){return C.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},NC=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},ol=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},ua=function(M,ue,J){R[M]&&L8(R[M],Je=>{Je.call(t,ue,J,Kn)})},P4=function(M){let ue;if(ua("beforeSanitizeElements",M,null),NC(M))return Xi(M),!0;let J=et(M.nodeName);if(ua("uponSanitizeElement",M,{tagName:J,allowedTags:ie}),M.hasChildNodes()&&!ol(M.firstElementChild)&&(!ol(M.content)||!ol(M.content.firstElementChild))&&Zn(/<[/\w]/g,M.innerHTML)&&Zn(/<[/\w]/g,M.textContent))return Xi(M),!0;if(!ie[J]||W[J]){if(!W[J]&&M4(J)&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,J)||j.tagNameCheck instanceof Function&&j.tagNameCheck(J)))return!1;if(zt&&!Cn[J]){let Je=y(M)||M.parentNode,Wt=f(M)||M.childNodes;if(Wt&&Je){let En=Wt.length;for(let On=En-1;On>=0;--On)Je.insertBefore(b(Wt[On],!0),h(M))}}return Xi(M),!0}return M instanceof u&&!OC(M)||(J==="noscript"||J==="noembed")&&Zn(/<\/no(script|embed)/i,M.innerHTML)?(Xi(M),!0):(ge&&M.nodeType===3&&(ue=M.textContent,ue=Sr(ue,F," "),ue=Sr(ue,P," "),ue=Sr(ue,I," "),M.textContent!==ue&&(Hs(t.removed,{element:M.cloneNode()}),M.textContent=ue)),ua("afterSanitizeElements",M,null),!1)},L4=function(M,ue,J){if(Ye&&(ue==="id"||ue==="name")&&(J in a||J in IC))return!1;if(!(We&&!me[ue]&&Zn(L,ue))&&!(ce&&Zn(_,ue))){if(!re[ue]||me[ue]){if(!(M4(M)&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,M)||j.tagNameCheck instanceof Function&&j.tagNameCheck(M))&&(j.attributeNameCheck instanceof RegExp&&Zn(j.attributeNameCheck,ue)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(ue))||ue==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,J)||j.tagNameCheck instanceof Function&&j.tagNameCheck(J))))return!1}else if(!hi[ue]&&!Zn(V,Sr(J,z,""))&&!((ue==="src"||ue==="xlink:href"||ue==="href")&&M!=="script"&&R8(J,"data:")===0&&ys[M])&&!(pe&&!Zn(O,Sr(J,z,"")))&&J)return!1}return!0},M4=function(M){return M.indexOf("-")>0},R4=function(M){let ue,J,Je,Wt;ua("beforeSanitizeAttributes",M,null);let{attributes:En}=M;if(!En)return;let On={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re};for(Wt=En.length;Wt--;){ue=En[Wt];let{name:Xt,namespaceURI:$i}=ue;if(J=Xt==="value"?ue.value:F8(ue.value),Je=et(Xt),On.attrName=Je,On.attrValue=J,On.keepAttr=!0,On.forceKeepAttr=void 0,ua("uponSanitizeAttribute",M,On),J=On.attrValue,On.forceKeepAttr||(Wd(Xt,M),!On.keepAttr))continue;if(!he&&Zn(/\/>/i,J)){Wd(Xt,M);continue}ge&&(J=Sr(J,F," "),J=Sr(J,P," "),J=Sr(J,I," "));let F4=et(M.nodeName);if(L4(F4,Je,J)){if(Se&&(Je==="id"||Je==="name")&&(Wd(Xt,M),J=vt+J),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!$i)switch(p.getAttributeType(F4,Je)){case"TrustedHTML":{J=v.createHTML(J);break}case"TrustedScriptURL":{J=v.createScriptURL(J);break}}try{$i?M.setAttributeNS($i,Xt,J):M.setAttribute(Xt,J),r2(t.removed)}catch{}}}ua("afterSanitizeAttributes",M,null)},jC=function M(ue){let J,Je=D4(ue);for(ua("beforeSanitizeShadowDOM",ue,null);J=Je.nextNode();)ua("uponSanitizeShadowNode",J,null),!P4(J)&&(J.content instanceof i&&M(J.content),R4(J));ua("afterSanitizeShadowDOM",ue,null)};return t.sanitize=function(M){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J,Je,Wt,En;if(ia=!M,ia&&(M=""),typeof M!="string"&&!ol(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw qs("dirty is not a string, aborting")}else throw qs("toString is not a function");if(!t.isSupported)return M;if(Te||qd(ue),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let $i=et(M.nodeName);if(!ie[$i]||W[$i])throw qs("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)J=k4(""),Je=J.ownerDocument.importNode(M,!0),Je.nodeType===1&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?J=Je:J.appendChild(Je);else{if(!K&&!ge&&!de&&M.indexOf("<")===-1)return v&&nt?v.createHTML(M):M;if(J=k4(M),!J)return K?null:nt?T:""}J&&Ue&&Xi(J.firstChild);let On=D4(Dt?M:J);for(;Wt=On.nextNode();)P4(Wt)||(Wt.content instanceof i&&jC(Wt.content),R4(Wt));if(Dt)return M;if(K){if(xe)for(En=S.call(J.ownerDocument);J.firstChild;)En.appendChild(J.firstChild);else En=J;return(re.shadowroot||re.shadowrootmod)&&(En=k.call(n,En,!0)),En}let Xt=de?J.outerHTML:J.innerHTML;return de&&ie["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Zn(d2,J.ownerDocument.doctype.name)&&(Xt=" +`+Xt),ge&&(Xt=Sr(Xt,F," "),Xt=Sr(Xt,P," "),Xt=Sr(Xt,I," ")),v&&nt?v.createHTML(Xt):Xt},t.setConfig=function(M){qd(M),Te=!0},t.clearConfig=function(){Kn=null,Te=!1},t.isValidAttribute=function(M,ue,J){Kn||qd({});let Je=et(M),Wt=et(ue);return L4(Je,Wt,J)},t.addHook=function(M,ue){typeof ue=="function"&&(R[M]=R[M]||[],Hs(R[M],ue))},t.removeHook=function(M){if(R[M])return r2(R[M])},t.removeHooks=function(M){R[M]&&(R[M]=[])},t.removeAllHooks=function(){R={}},t}var rt=m2();var V8=Object.create,$m=Object.defineProperty,K8=Object.getOwnPropertyDescriptor,Y8=Object.getOwnPropertyNames,Q8=Object.getPrototypeOf,J8=Object.prototype.hasOwnProperty,ep=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z8=(e,t)=>{for(var n in t)$m(e,n,{get:t[n],enumerable:!0})},Xm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Y8(t))!J8.call(e,a)&&a!==n&&$m(e,a,{get:()=>t[a],enumerable:!(r=K8(t,a))||r.enumerable});return e},X8=(e,t,n)=>(Xm(e,t,"default"),n&&Xm(n,t,"default")),g2=(e,t,n)=>(n=e!=null?V8(Q8(e)):{},Xm(t||!e||!e.__esModule?$m(n,"default",{value:e,enumerable:!0}):n,e)),$8=ep((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,b,h,f){return o(b)+(h||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var xe=this._getInnerText(K);if(!(xe.length<25)){var nt=this._getNodeAncestors(K,5);if(nt.length!==0){var Ye=0;Ye+=1,Ye+=xe.split(",").length,Ye+=Math.min(Math.floor(xe.length/100),3),this._forEachNode(nt,function(Se,vt){if(!(!Se.tagName||!Se.parentNode||typeof Se.parentNode.tagName>"u")){if(typeof Se.readability>"u"&&(this._initializeNode(Se),b.push(Se)),vt===0)var zt=1;else vt===1?zt=2:zt=vt*3;Se.readability.contentScore+=Ye/zt}})}}}});for(var h=[],f=0,y=b.length;fC.readability.contentScore){h.splice(w,0,v),h.length>this._nbTopCandidates&&h.pop();break}}}var S=h[0]||null,A=!1,k;if(S===null||S.tagName==="BODY"){for(S=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),S.appendChild(r.firstChild);r.appendChild(S),this._initializeNode(S)}else if(S){for(var R=[],F=1;F=.75&&R.push(this._getNodeAncestors(h[F]));var P=3;if(R.length>=P)for(k=S.parentNode;k.tagName!=="BODY";){for(var I=0,L=0;L=P){S=k;break}k=k.parentNode}S.readability||this._initializeNode(S),k=S.parentNode;for(var _=S.readability.contentScore,O=_/3;k.tagName!=="BODY";){if(!k.readability){k=k.parentNode;continue}var z=k.readability.contentScore;if(z_){S=k;break}_=k.readability.contentScore,k=k.parentNode}for(k=S.parentNode;k.tagName!="BODY"&&k.children.length==1;)S=k,k=S.parentNode;S.readability||this._initializeNode(S)}var V=a.createElement("DIV");i&&(V.id="readability-content");var ie=Math.max(10,S.readability.contentScore*.2);k=S.parentNode;for(var Be=k.children,re=0,N=Be.length;re=ie)W=!0;else if(j.nodeName==="P"){var ce=this._getLinkDensity(j),We=this._getInnerText(j),pe=We.length;(pe>80&&ce<.25||pe<80&&pe>0&&ce===0&&We.search(/\.( |$)/)!==-1)&&(W=!0)}}W&&(this.log("Appending node:",j),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(j.nodeName)===-1&&(this.log("Altering sibling:",j,"to div."),j=this._setNodeTag(j,"DIV")),V.appendChild(j),Be=k.children,re-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+V.innerHTML),this._prepArticle(V),this._debug&&this.log("Article content post-prep: "+V.innerHTML),A)S.id="readability-page-1",S.className="page";else{var he=a.createElement("DIV");for(he.id="readability-page-1",he.className="page";V.firstChild;)he.appendChild(V.firstChild);V.appendChild(he)}this._debug&&this.log("Article content after paging: "+V.innerHTML);var ge=!0,de=this._getInnerText(V,!0).length;if(de0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(k){return k._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,k=>u+=this._getInnerText(k).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,h=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||b>Math.floor(m/3)||!s&&h<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||f===1&&C<75||f>1;if(s&&S){for(var A=0;A1)return S;let k=i.getElementsByTagName("li").length;if(p==k)return!1}return S}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),eA=ep((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),f2=ep((e,t)=>{var n=$8(),r=eA();t.exports={Readability:n,isProbablyReaderable:r}}),h2={};Z8(h2,{Readability:()=>$l,default:()=>x2,isProbablyReaderable:()=>y2});var b2=g2(f2());X8(h2,g2(f2()));var{Readability:$l,isProbablyReaderable:y2}=b2,{default:p2,...tA}=b2,x2=p2!==void 0?p2:tA;var nA=Kl.alert;var go=console,tp=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=cr.green;r>1e4?a=cr.red:r>1e3&&(a=cr.yellow),go.debug(cr.dim(xi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},zs=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&go.log(cr.dim(xi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&go.log(cr.green(xi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&go.warn(cr.yellow(xi+" WARN:"),...t)}error(...t){this.#e<=3&&go.error(cr.red(xi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&go.error(cr.red(xi+" FATAL:"),...t)}timing(){return this.level===0?new tp:{reset:()=>{},stop:()=>{}}}},D=new zs;var v2=["*://*/*","*","*://*"],S2="immersive-translate-wildcard-placeholder.com";function np(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>v2.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(v2.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return aA(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let h=u.split("://");l=h[0],l==="*"&&h.length>1&&(l="*",u="https://"+h[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,S2),m;try{m=new URL(d)}catch{return D.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let b=rA(l+":",T2(p),T2(g));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function T2(e){return e.replaceAll(S2,"*")}function rA(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function Ze(e,t){return np(e,t)!==null}function aA(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],rp={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},C2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},ap={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},ip={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function X(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return X(document?.documentElement?.lang||"en")}var w2=Y+"SyncStoreKey_";function Nt(e,t){let n=w2+e;return $.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function ct(e,t){let n=w2+e;return $.storage.sync.set({[n]:t})}var E2=Y+"StoreKey_";function Pi(e,t){let n=E2+e;return $.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function A2(e,t){let n=E2+e;return $.storage.local.set({[n]:t})}var Oq=D2(2),k2=D2(3);function D2(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var iA=/\s+/g,oA=/[\t\n\v\f\r ]+/g;function P2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?sA:uA;return String(e).replace(t.style==="html"?oA:iA,t.trim?lA(n):n)}function sA(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function uA(){return" "}function lA(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var L2={}.hasOwnProperty;function cA(e){return e==null?"":P2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function dA(e){return k2(" "+cA(e)+" ")}function mA(e){let t=dA(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function xA(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function vA(e,t,n,r){t=SA(t,n,r);let a=[],i;if(t)for(i in t)ec.call(t,i)&&a.push([i,TA(e,t[i])]);return a.length===0?sp():a.sort(CA)}function TA(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of FA){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?N2(e)?"zh-TW":"zh-CN":t:"auto"}var U2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],up=new Map(U2),BA=new Map(U2.map(([e,t])=>[t,e]));function H2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>BA.get(s));!t&&t!==0&&(t=25);let a=nc(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...up.keys()]},o=F2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return up.get(d)}}let[s,u]=o[0],l=up.get(s);if(l&&u>.9)return l}}catch(r){D.error(r)}return"auto"}function Oa(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function IA(e,t){return e<>>32-t}function ac(e,t,n,r,a,i){return Oa(IA(Oa(Oa(t,e),Oa(r,i)),a),n)}function mn(e,t,n,r,a,i,o){return ac(t&n|~t&r,e,t,a,i,o)}function pn(e,t,n,r,a,i,o){return ac(t&r|n&~r,e,t,a,i,o)}function gn(e,t,n,r,a,i,o){return ac(t^n^r,e,t,a,i,o)}function fn(e,t,n,r,a,i,o){return ac(n^(t|~r),e,t,a,i,o)}function rc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function lp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=rc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=rc(a.concat(lp(t)),512+t.length*8),q2(rc(i.concat(o),512+128))}function z2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function cp(e){return unescape(encodeURIComponent(e))}function W2(e){return _A(cp(e))}function NA(e){return z2(W2(e))}function G2(e,t){return OA(cp(e),cp(t))}function jA(e,t){return z2(G2(e,t))}function $n(e,t,n){return t?n?G2(t,e):jA(t,e):n?W2(e):NA(e)}var ic=["caiyun","cai"],V2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],fo={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:oe+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},wr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:oe+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: @@ -5471,19 +5471,19 @@ select.text-gray-6 { {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},gemini:{ai:!0,name:"Gemini",homepage:"https://ai.google.dev/aistudio/",docUrl:oe+"docs/services/gemini/",link2:oe+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_gemini",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:oe+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"geminiCustomDescription",descriptionLink1:"https://ai.google.dev/aistudio/",descriptionLink2:oe+"docs/services/gemini/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",providers:["custom"],options:[{label:"gemini-1.5-pro-latest",value:"gemini-1.5-pro-latest"},{label:"gemini-1.5-flash",value:"gemini-1.5-flash"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",descriptionKey:"description.apiUrl",descriptionLink1:oe+"docs/services/gemini/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},claude:{ai:!0,name:"Claude",homepage:"https://www.anthropic.com/",docUrl:oe+"docs/services/claude/",link2:oe+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_claude",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:oe+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"claudeCustomDescription",descriptionLink1:"https://www.anthropic.com/",descriptionLink2:oe+"docs/services/claude/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"claude-3-haiku-20240307",providers:["custom"],options:[{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-5-sonnet-20240620",value:"claude-3-5-sonnet-20240620"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"claude-2.1",value:"claude-2.1"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",providers:["custom"],descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:10,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.anthropic.com/v1/messages",descriptionKey:"description.apiUrl",descriptionLink1:oe+"docs/services/claude/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},siliconcloud:{ai:!0,name:"siliconcloud",homepage:"https://cloud.siliconflow.cn/",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],default:"Qwen/Qwen2.5-7B-Instruct",options:[{label:"Qwen/Qwen2.5-7B-Instruct",value:"Qwen/Qwen2.5-7B-Instruct"},{label:"meta-llama/Meta-Llama-3.1-8B-Instruct",value:"meta-llama/Meta-Llama-3.1-8B-Instruct"},{label:"THUDM/glm-4-9b-chat",value:"THUDM/glm-4-9b-chat"},{label:"google/gemma-2-9b-it",value:"google/gemma-2-9b-it"},{label:"01-ai/Yi-1.5-9B-Chat-16K",value:"01-ai/Yi-1.5-9B-Chat-16K"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"APIKEY",descriptionKey:"description.siliconcloudCustomAPIKey",descriptionLink1:"https://siliconflow.cn/",providers:["custom"],required:!1,type:"password",sensitive:!0,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0,default:5},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},yandex:{name:"Yandex",homepage:"https://translate.yandex.com/"},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},lingyiwanwu:{ai:!0,name:"lingyiwanwu",homepage:"https://platform.lingyiwanwu.com/docs",docUrl:oe+"docs/services/lingyiwanwu/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"yi-large",value:"yi-large"},{label:"yi-large-turbo",value:"yi-large-turbo"},{label:"yi-large-rag",value:"yi-large-rag"},{label:"yi-medium",value:"yi-medium"},{label:"yi-medium-200k",value:"yi-medium-200k"},{label:"yi-spark",value:"yi-spark"},{label:"yi-vision",value:"yi-vision"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:oe+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:oe+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:oe+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:oe+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:oe+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:oe+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:oe+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:oe+"docs/services/custom/",docUrl:oe+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:so,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:oe+"docs/services/openL/",beta:!0,allProps:[...Y2,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:Y2},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:oe+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:oe+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":fo,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:oe+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:oe+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:oe+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:oe+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:oe+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:oe+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:oe+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:oe+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:oe+"docs/services/custom/",docUrl:oe+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:so,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:oe+"docs/services/openL/",beta:!0,allProps:[...V2,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:V2},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:oe+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:oe+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":fo,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:oe+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},"aliyun-bailian":{ai:!0,name:"aliyun-bailian",homepage:"https://bailian.console.aliyun.com/",docUrl:oe+"docs/services/aliyun-bailian/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"qwen-long",options:[{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-long",value:"qwen-long"},{label:"qwen-max",value:"qwen-max"},{label:"qwen1.5-7b-chat",value:"qwen1.5-7b-chat"},{label:"qwen1.5-14b-chat",value:"qwen1.5-14b-chat"},{label:"qwen1.5-32b-chat",value:"qwen1.5-32b-chat"},{label:"qwen1.5-72b-chat",value:"qwen1.5-72b-chat"},{label:"qwen1.5-110b-chat",value:"qwen1.5-110b-chat"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:oe+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:oe+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function HA(e,t,n=!1){let r=[];for(let u=0;u=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function Q2(e,t,n=!1){let r=HA(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function qA(e,t){let n=[],r=[];for(let a=0;a0?h=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function K2(e,t,n=!1){let r=UA(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function HA(e,t){let n=[],r=[];for(let a=0;a0?bt){let y=[];dp(b,t,y);for(let v=0;v0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&dp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:WA([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var sc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ht(u),c=Object.keys(wr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&ct()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=wr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=fo);let h=mp(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function Z2(e,t,n){return sc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:zA(r.config,n))}function zA(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function X2(e,t,n="en",r){return sc(e,t,n).find(o=>o.id===r)}function Vs(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function $2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function eb(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=wi.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function WA(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function GA(e,t){let n=Q2(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function uc(e,t){return e?`
-
${GA(t,e)}
-
${t}
`:t}function ho(e){let t=location.search.includes(Hl);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var bo=[],Pz=1e3*3600*24;async function lc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function tb(e){let t=`${B}-${e.service}@${e.from}->${e.to}`;return await YA(t,{...e,createAt:new Date().getTime()})}async function nb(e){let t=$n(e.originalText),n=`${B}-${e.service}@${e.from}->${e.to}`;return await KA(n,t)}async function KA(e,t){let n=await lc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function YA(e,t){let n=await lc(e);return(await rb()).includes(e)||await QA(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function QA(e){let t="cache_list",n=await lc(B+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),bo.push(e)},a.onerror=i=>{n.close()}}async function rb(){if(bo&&bo.length>0)return bo;let e=await lc(B+"-cacheList","cache_list");return bo=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),bo}async function ab(){try{let t=(await rb()).map(r=>JA(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function JA(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function it(){try{let e=[De().EBOOK_BUILDER_URL,De().EBOOK_VIEWER_URL,De().SUBTITLE_BUILDER_URL,De().HTML_VIEWER_URL,De().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+$t];da()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var cc="Original";function Ve(){return cc}function Rn(e){cc=e,ob(cc);let t=new CustomEvent(It,{detail:JSON.stringify({type:"updatePageStatus",payload:cc})});document.dispatchEvent(t)}var ib="Original";function yo(){return ib}function mr(e,t){if(t)return;ib=e;let n=new CustomEvent(ks,{detail:e});document.dispatchEvent(n)}var ub="auto",dc="auto",sb="auto";function lb(e){ub=e}function er(e){dc=e}function dt(){return dc!=="auto"?dc:sb!=="auto"?sb:ub}function mc(){return dc}var Ks=new Map,Wr=class{fromType;logger;constructor(t,n=!1){this.logger=new Ws,n&&this.logger.setLevel("debug"),this.fromType=t,Ks.has(t)||(Ks.set(t,new Map),$.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),b=Ks.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,v);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,v).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Ks.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Ks.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await $.runtime.sendMessage(o);return cb(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await $.tabs.sendMessage(i,o);return cb(o,s,this.logger)}}};function cb(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function ya(e){return e?.id?.endsWith("pdfWebPage")||!1}function Mi(e){try{if(!e||!ya(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function fp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function pc(e){return hp(JSON.stringify(e))}async function hp(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var pr,yp=0,gc=!1,Ys="initial",xp=!1,db="",mb,pb,vp=!1,bp=new Map;async function xo(e,t,n,r){if(vp=!1,pb=e.sourceProgram,mb=e.specialAiAssistant,r!=null&&xp&&pr||pr&&db==n&&!n.trim())return;Ys="initial",pr=void 0,xp=r||!1;let a=e.rule.bodyRule;if(gc=!1,!n||!a||!e.isPro||(yp=(a.contextTimeout||0)/100,yp<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(gc=i.enableAIContext||!1,!!gc&&e.user?.token)){Ys="requesting";try{let o=await hp(n);if(bp.has(o)){pr=bp.get(o);return}let s=await Q({url:tt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});db=n,pr={theme:s.theme,termsRaw:s.terms,terms:ZA(s.terms)},bp.set(o,pr)}catch{}finally{Ys="finished"}D.debug("requestTermsByContext contextTerms",pr)}}function gb(){xp||(Ys="initial",pr=void 0)}function fb(){vp=!0}function fc(){return mb?null:{contextTerms:pr,used:vp,sourceProgram:pb}}async function hb(){if(!(!gc||Ys=="initial")){for(let e=0;ee.includes(n)):[]}function ZA(e){let t=[];return e.split(` -`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var _e={},Gr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return _e.getIsDulSubtitle();if(n==="getPageStatus")return Ve();n==="updateContextState"&&await _e.updateContextState(r);let a=await _e.updateGlobalContext(),i=Date.now();if(D.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await _e.translateTheWholePage(r),at(lr,i);else if(n==="translateTheMainPage")await _e.translateTheMainPage(r),at(lr,i);else if(n==="translateToThePageEndImmediately")await _e.translateToThePageEndImmediately(r),at(lr,i);else if(n==="toggleTranslateManga")await _e.toggleTranslateManga(),at(lr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(ya(a?.rule)){let s=Mi(a.rule);vo(!0,s||o);return}await _e.toggleTranslatePage(r),at(lr,i)}else if(n==="toggleTranslateTheWholePage")await _e.toggleTranslateTheWholePage(r),at(lr,i);else if(n==="toggleTranslateTheMainPage")await _e.toggleTranslateTheMainPage(r),at(lr,i);else if(n==="toggleOnlyTransation")await _e.ensureSwitchTranslationMode(r),at(lr,i);else if(n=="toggleEnableEditTranslation")_e.toggleEnableEditTranslation();else if(n==="translatePage")await _e.translatePage(a,r),at(lr,i);else if(n==="toggleTranslationMask")await _e.toggleTranslationMask(r);else if(n==="restorePage")_e.restorePage();else if(n==="retryFailedParagraphs")_e.retryFailedParagraphs();else if(n=="change_translate_service")_e.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await _e.switchTranslationMode(r.mode),await _e.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")_e.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Dl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await _e.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Es,{detail:r}));else if(n==="translateWithOpenAI")await _e.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await _e.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await _e.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await _e.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await _e.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await _e.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await _e.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await _e.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await _e.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")it()||await _e.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!it())return JSON.stringify(a);await ot(5e3)}else if(n==="inputSelectedTextTranslate")await _e.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return _e.popupEventReport(a,r);if(n==="updateFloatBallEnable")return _e.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(Si,{detail:{type:"webReport"}})):n===K3&&await _e.translateSelectImage(a,r)}};function yb(e){Object.assign(_e,e)}function xb(e){Object.assign(_e,e)}function vb(e){Object.assign(_e,e)}var XA=function(e,t){let{method:n,data:r}=e;if(D.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ve();if(n==="getCurrentPageLanguage"){let a=dt();return _e.detectCurrentPageLanguage().catch(i=>{D.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return er(r),dt();if(n==="getContextString"){let a=_e.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=_e.getPureGlobalContext();return Mi(a?.rule)}else if(n=="getAIContextInfo")return fc()}},hc,bc;function Sb(){let e=yc();it()||$A(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function yc(){return hc||(hc=new Wr("content_script",!1).getConnection("main",Gr),hc)}function $A(){return bc||(bc=new Wr("content_script",!1).getConnection("main_sync",XA,{sync:!0}),bc)}var e7=new Map;function xc(e){let t=t7(64),n=new CustomEvent(H3,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{e7.set(t,(i,o)=>{i?a(i):r(o)})})}function t7(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await Q({url:vc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function n7(e,t){return Math.floor(Math.random()*(t-e+1))+e}var r7=30,Tp="RATE_LIMITER_TICKS",So=class e{static strictTicks={};static clearStrictTicks(){Er(Tp,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Ri(Tp)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){D.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Er(Tp,JSON.stringify(this.strictTicks))}catch(a){D.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=n7(4,r7);await ot(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await yc().sendMessage("background:main",e)}function Q(e){return xl()?xc({method:"request",data:e}):ne()||yl()?(e.fetchPolyfill=globalThis.GM_fetch,Sa(e)):lt({method:"fetch",data:e})}function gr(){return ne()?wt():lt({method:"getConfig"})}function Ht(e){return ne()?Ha(e):lt({method:"setUserConfig",data:e})}function Mt(){return ne()?bn():lt({method:"getUserConfig"})}function Fn(){return ne()?Vt():lt({method:"getLocalConfig"})}function va(e){return ne()?Rt(e):lt({method:"setLocalConfig",data:e})}function Tb(e){return ne()?Ec(e):lt({method:"setBuildinConfig",data:e})}async function Be(e){if(e.text){let n=rc(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(ne()||ct()){if(e.translateService&&!oc.includes(e.translateService))return Promise.resolve("auto");let r=z2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function Cb(){return lt({method:"detectTabLanguage"})}async function Sc(e){let t=await Be({text:e,pageLangs:["en"]});try{if(ne()||ct()){let n=e.substring(0,200);t=await xa.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function ob(e){let t=new CustomEvent(Ti,{detail:e});if(document.dispatchEvent(t),ne())return;yc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function wb(e){return ne()?nb(e):lt({method:"queryParagraphCache",data:e})}async function Eb(e){if(ne()){await tb(e);return}return lt({method:"setParagraphCache",data:e})}async function Ab(){if(ne())return Promise.resolve();await lt({method:"mockRequest"})}function Ua(e=!1,t=""){return document.querySelector(`meta[name=${B}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):ne()?($.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Tc(e=""){return ne()||ct()?De().OPTIONS_URL:$.runtime.getURL("options.html")}function Cp(e=""){return $&&$.runtime&&$.runtime.getURL?$.runtime.getURL("options.html"):""}function Cc(e=!1){return ne()?($.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Vr(e){return ne()?($.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function kb(e=!1){return ne()?($.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function Db(e=!1){return ne()?($.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function Pb(e){ct()}function vo(e=!1,t){return ne()?($.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function Lb(e=!1){return ne()?($.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function Qs(e){return ne()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function Mb(){return ne()?(D.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function wc(e,t=!1){return ne()?$.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function Rb(e,t){return ne()||be.MOCK==="1"?So.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function Fb(){return ne()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function Bb(){return ne()?!1:lt({method:"getIsOnToolbar"})}async function wp(){if(!ne())return lt({method:"updateVideoSubtitleStatus"})}function Js({targetLanguage:e,text:t}){ne()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Zs(){ne()||lt({method:"updateImageMenu"})}var Ib={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(h.length>t){let y=[];dp(h,t,y);for(let v=0;v0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&dp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(h.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];h.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:zA([...f,...h,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],b=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?b.push(f):g.push(f))});let h=b.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(h.length>0){for(let f of h)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:g}}var oc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ht(u),c=Object.keys(wr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&<()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=wr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=fo);let b=mp(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?b:null}).filter(p=>!!p);function m(p,g){let b=!!p.canary,h=!!p.alpha,f=!!p.beta;return g===e[t]||b&&o||h&&(a||o)||f&&(i||a||o)?!0:!h&&!f&&!b}};function Q2(e,t,n){return oc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:qA(r.config,n))}function qA(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function J2(e,t,n="en",r){return oc(e,t,n).find(o=>o.id===r)}function Gs(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function Z2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function X2(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ci.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function zA(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function WA(e,t){let n=K2(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function sc(e,t){return e?`
+
${WA(t,e)}
+
${t}
`:t}function ho(e){let t=location.search.includes(Ul);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var bo=[],Lz=1e3*3600*24;async function uc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function $2(e){let t=`${B}-${e.service}@${e.from}->${e.to}`;return await KA(t,{...e,createAt:new Date().getTime()})}async function eb(e){let t=$n(e.originalText),n=`${B}-${e.service}@${e.from}->${e.to}`;return await VA(n,t)}async function VA(e,t){let n=await uc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function KA(e,t){let n=await uc(e);return(await tb()).includes(e)||await YA(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function YA(e){let t="cache_list",n=await uc(B+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),bo.push(e)},a.onerror=i=>{n.close()}}async function tb(){if(bo&&bo.length>0)return bo;let e=await uc(B+"-cacheList","cache_list");return bo=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),bo}async function nb(){try{let t=(await tb()).map(r=>QA(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function QA(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function at(){try{let e=[De().EBOOK_BUILDER_URL,De().EBOOK_VIEWER_URL,De().SUBTITLE_BUILDER_URL,De().HTML_VIEWER_URL,De().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+$t];la()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var lc="Original";function Ve(){return lc}function Mn(e){lc=e,ab(lc);let t=new CustomEvent(It,{detail:JSON.stringify({type:"updatePageStatus",payload:lc})});document.dispatchEvent(t)}var rb="Original";function yo(){return rb}function mr(e,t){if(t)return;rb=e;let n=new CustomEvent(ks,{detail:e});document.dispatchEvent(n)}var ob="auto",cc="auto",ib="auto";function sb(e){ob=e}function er(e){cc=e}function dt(){return cc!=="auto"?cc:ib!=="auto"?ib:ob}function dc(){return cc}var Vs=new Map,zr=class{fromType;logger;constructor(t,n=!1){this.logger=new zs,n&&this.logger.setLevel("debug"),this.fromType=t,Vs.has(t)||(Vs.set(t,new Map),$.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),h=Vs.get(m).get(p);if(!h)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=h,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let T=f(r.payload,v);i({ok:!0,data:T})}catch(T){i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.details,errorStatus:T.status})}return!1}else return f(r.payload,v).then(T=>{i({ok:!0,data:T})}).catch(T=>{i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.message,errorStatus:T.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Vs.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Vs.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await $.runtime.sendMessage(o);return ub(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await $.tabs.sendMessage(i,o);return ub(o,s,this.logger)}}};function ub(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function ha(e){return e?.id?.endsWith("pdfWebPage")||!1}function Li(e){try{if(!e||!ha(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function fp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function mc(e){return hp(JSON.stringify(e))}async function hp(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var pr,yp=0,pc=!1,Ks="initial",xp=!1,lb="",cb,db,vp=!1,bp=new Map;async function xo(e,t,n,r){if(vp=!1,db=e.sourceProgram,cb=e.specialAiAssistant,r!=null&&xp&&pr||pr&&lb==n&&!n.trim())return;Ks="initial",pr=void 0,xp=r||!1;let a=e.rule.bodyRule;if(pc=!1,!n||!a||!e.isPro||(yp=(a.contextTimeout||0)/100,yp<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(pc=i.enableAIContext||!1,!!pc&&e.user?.token)){Ks="requesting";try{let o=await hp(n);if(bp.has(o)){pr=bp.get(o);return}let s=await Q({url:tt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});lb=n,pr={theme:s.theme,termsRaw:s.terms,terms:JA(s.terms)},bp.set(o,pr)}catch{}finally{Ks="finished"}D.debug("requestTermsByContext contextTerms",pr)}}function mb(){xp||(Ks="initial",pr=void 0)}function pb(){vp=!0}function gc(){return cb?null:{contextTerms:pr,used:vp,sourceProgram:db}}async function gb(){if(!(!pc||Ks=="initial")){for(let e=0;ee.includes(n)):[]}function JA(e){let t=[];return e.split(` +`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Ie={},Wr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Ie.getIsDulSubtitle();if(n==="getPageStatus")return Ve();n==="updateContextState"&&await Ie.updateContextState(r);let a=await Ie.updateGlobalContext(),i=Date.now();if(D.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Ie.translateTheWholePage(r),ct(lr,i);else if(n==="translateTheMainPage")await Ie.translateTheMainPage(r),ct(lr,i);else if(n==="translateToThePageEndImmediately")await Ie.translateToThePageEndImmediately(r),ct(lr,i);else if(n==="toggleTranslateManga")await Ie.toggleTranslateManga(),ct(lr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(ha(a?.rule)){let s=Li(a.rule);vo(!0,s||o);return}await Ie.toggleTranslatePage(r),ct(lr,i)}else if(n==="toggleTranslateTheWholePage")await Ie.toggleTranslateTheWholePage(r),ct(lr,i);else if(n==="toggleTranslateTheMainPage")await Ie.toggleTranslateTheMainPage(r),ct(lr,i);else if(n==="toggleOnlyTransation")await Ie.ensureSwitchTranslationMode(r),ct(lr,i);else if(n=="toggleEnableEditTranslation")Ie.toggleEnableEditTranslation();else if(n==="translatePage")await Ie.translatePage(a,r),ct(lr,i);else if(n==="toggleTranslationMask")await Ie.toggleTranslationMask(r);else if(n==="restorePage")Ie.restorePage();else if(n==="retryFailedParagraphs")Ie.retryFailedParagraphs();else if(n=="change_translate_service")Ie.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Ie.switchTranslationMode(r.mode),await Ie.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Ie.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(kl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Ie.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Es,{detail:r}));else if(n==="translateWithOpenAI")await Ie.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Ie.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Ie.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Ie.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Ie.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Ie.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Ie.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Ie.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Ie.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")at()||await Ie.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!at())return JSON.stringify(a);await it(5e3)}else if(n==="inputSelectedTextTranslate")await Ie.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Ie.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Ie.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}})):n===G3&&await Ie.translateSelectImage(a,r)}};function hb(e){Object.assign(Ie,e)}function bb(e){Object.assign(Ie,e)}function yb(e){Object.assign(Ie,e)}var ZA=function(e,t){let{method:n,data:r}=e;if(D.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ve();if(n==="getCurrentPageLanguage"){let a=dt();return Ie.detectCurrentPageLanguage().catch(i=>{D.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return er(r),dt();if(n==="getContextString"){let a=Ie.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Ie.getPureGlobalContext();return Li(a?.rule)}else if(n=="getAIContextInfo")return gc()}},fc,hc;function xb(){let e=bc();at()||XA(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function bc(){return fc||(fc=new zr("content_script",!1).getConnection("main",Wr),fc)}function XA(){return hc||(hc=new zr("content_script",!1).getConnection("main_sync",ZA,{sync:!0}),hc)}var $A=new Map;function yc(e){let t=e7(64),n=new CustomEvent(j3,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{$A.set(t,(i,o)=>{i?a(i):r(o)})})}function e7(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await Q({url:xc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function t7(e,t){return Math.floor(Math.random()*(t-e+1))+e}var n7=30,Sp="RATE_LIMITER_TICKS",To=class e{static strictTicks={};static clearStrictTicks(){Er(Sp,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mi(Sp)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){D.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Er(Sp,JSON.stringify(this.strictTicks))}catch(a){D.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=t7(4,n7);await it(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ut(e){return await bc().sendMessage("background:main",e)}function Q(e){return yl()?yc({method:"request",data:e}):ne()||bl()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):ut({method:"fetch",data:e})}function gr(){return ne()?wt():ut({method:"getConfig"})}function Ht(e){return ne()?Ua(e):ut({method:"setUserConfig",data:e})}function Mt(){return ne()?hn():ut({method:"getUserConfig"})}function Rn(){return ne()?Vt():ut({method:"getLocalConfig"})}function ya(e){return ne()?Rt(e):ut({method:"setLocalConfig",data:e})}function vb(e){return ne()?wc(e):ut({method:"setBuildinConfig",data:e})}async function je(e){if(e.text){let n=nc(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(ne()||lt()){if(e.translateService&&!ic.includes(e.translateService))return Promise.resolve("auto");let r=H2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ut({method:"detectLanguage",data:e});return Promise.resolve(t)}function Tb(){return ut({method:"detectTabLanguage"})}async function vc(e){let t=await je({text:e,pageLangs:["en"]});try{if(ne()||lt()){let n=e.substring(0,200);t=await ba.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function ab(e){let t=new CustomEvent(Ti,{detail:e});if(document.dispatchEvent(t),ne())return;bc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function Sb(e){return ne()?eb(e):ut({method:"queryParagraphCache",data:e})}async function Cb(e){if(ne()){await $2(e);return}return ut({method:"setParagraphCache",data:e})}async function wb(){if(ne())return Promise.resolve();await ut({method:"mockRequest"})}function ja(e=!1,t=""){return document.querySelector(`meta[name=${B}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):ne()?($.runtime.openOptionsPage(e,t),Promise.resolve()):ut({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Tc(e=""){return ne()||lt()?De().OPTIONS_URL:$.runtime.getURL("options.html")}function Cp(e=""){return $&&$.runtime&&$.runtime.getURL?$.runtime.getURL("options.html"):""}function Sc(e=!1){return ne()?($.extra.openAboutPage(e),Promise.resolve()):ut({method:"openAboutPage"})}function Gr(e){return ne()?($.extra.openInTab(e),Promise.resolve()):ut({method:"openInTab",data:e})}function Eb(e=!1){return ne()?($.extra.openEbookViewerPage(e),Promise.resolve()):ut({method:"openEbookViewerPage"})}function Ab(e=!1){return ne()?($.extra.openEbookBuilderPage(e),Promise.resolve()):ut({method:"openEbookBuilderPage"})}function kb(e){lt()}function vo(e=!1,t){return ne()?($.extra.openPdfViewerPage(e),Promise.resolve()):ut({method:"openPdfViewerPage",data:{url:t}})}function Db(e=!1){return ne()?($.extra.openSubtitleBuilderPage(e),Promise.resolve()):ut({method:"openSubtitleBuilderPage"})}function Ys(e){return ne()?Promise.resolve():ut({method:"setBadge",data:{text:e}})}function Pb(){return ne()?(D.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ut({method:"autoSyncLatestConfig"})}function Cc(e,t=!1){return ne()?$.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function Lb(e,t){return ne()||be.MOCK==="1"?To.getDelay(e,t):ut({method:"getDelay",data:{key:e,options:t}})}async function Mb(){return ne()?!1:ut({method:"getIsSupportIsOnToolbar"})}async function Rb(){return ne()?!1:ut({method:"getIsOnToolbar"})}async function wp(){if(!ne())return ut({method:"updateVideoSubtitleStatus"})}function Qs({targetLanguage:e,text:t}){ne()||ut({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Js(){ne()||ut({method:"updateImageMenu"})}var Fb={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5495,7 +5495,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var _b={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var Bb={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5509,7 +5509,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var Ob={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var Ib={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5522,20 +5522,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var s7=[{code:"zh-CN",messages:Ib},{code:"zh-TW",messages:_b},{code:"en",messages:Ob}],Nb=ne()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],qa={};for(let e of s7)qa[e.code]=e.messages;function u7(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=c7(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:B+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function jb(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function l7(e,t,n,r){if(!qa.hasOwnProperty(t)&&!qa.hasOwnProperty(n))return e;let a=jb(qa,t,e);return a===e&&t!==n&&(a=jb(qa,n,e)),u7(a,r)}function c7(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return l7(t,e,"en",n)}function Ub(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function Hb(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return wi.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:_l,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:_l,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var o7=[{code:"zh-CN",messages:Fb},{code:"zh-TW",messages:Bb},{code:"en",messages:Ib}],_b=ne()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ha={};for(let e of o7)Ha[e.code]=e.messages;function s7(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=l7(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:B+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function Ob(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function u7(e,t,n,r){if(!Ha.hasOwnProperty(t)&&!Ha.hasOwnProperty(n))return e;let a=Ob(Ha,t,e);return a===e&&t!==n&&(a=Ob(Ha,n,e)),s7(a,r)}function l7(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return u7(t,e,"en",n)}function Nb(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function jb(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ci.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Il,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Il,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:_l,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(wi.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:B,href:g1})];Ep(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Il,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ci.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:B,href:m1})];Ep(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=x1,i?o.push(r("proQuotaError.trail",{brandId:B,href:ym})):o.push(r("proQuotaError.newPackage",{brandId:B,href:s})),Ep(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=b1,i?o.push(r("proQuotaError.trail",{brandId:B,href:ym})):o.push(r("proQuotaError.newPackage",{brandId:B,href:s})),Ep(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:B,href:Nl}));else{let d="";u=="AI"?d=b1:d=y1,o?l.push(r("proQuotaError.trail",{brandId:B,href:ym})):l.push(r("proQuotaError.package",{brandId:B,href:d,translationService:u})),Ep(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:B,href:Ol}));else{let d="";u=="AI"?d=f1:d=h1,o?l.push(r("proQuotaError.trail",{brandId:B,href:ym})):l.push(r("proQuotaError.package",{brandId:B,href:d,translationService:u})),Ep(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function Ep(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||Hb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:Ub(i,"YYYY-MM-DD HH:mm:ss")}))}function Ac(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function qb(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function zb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function kc(e){let{mimeType:t,base64:n}=d7(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await Am(Wb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Wb(e);return t}async function Wb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Ac(e.body):r=="urlSearchParams"?a.body=qb(e.body):r=="blob"&&e.body&&(a.body=kc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){D.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of m7(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` -`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){D.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){D.error("parse response failed",h)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${$t}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*m7(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var p7="";function To(){return p7||globalThis.navigator.userAgent}function Xs(){return To().includes("ImtFxiOS")}function Gb(){let t=To().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ap(){return To().includes("ImtFxAndroid")}function Vb(){let e=To();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function Kb(){let t=To().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function $s(){let e=To();if(Xs()||Ap()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Dc=function(){return Dc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,g7()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function eu(e){return e.then(void 0,function(){}),e}function h7(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function y7(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function x7(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function za(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function fr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function Co(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function tr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];xt(e,t),fr(e,v7),t[1]=e[0]>>>1,xt(e,t),fr(e,S7),t[1]=e[0]>>>1,xt(e,t)}var Pc=[2277735313,289559509],Lc=[1291169091,658871167],Zb=[0,5],T7=[0,1390208809],C7=[0,944331445];function w7(e,t){var n=x7(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function E7(e){var t;return Dc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function A7(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function k7(e){return typeof e!="function"}function D7(e,t){var n=eu(new Promise(function(r){var a=Date.now();Yb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function L7(){var e=window,t=navigator;return nr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!cy()}function Fc(){var e=window,t=navigator;return nr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Pr(){var e=window,t=navigator;return nr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Bp(){var e=window,t=e.HTMLElement,n=e.Document;return nr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function tu(){var e=window;return A7(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function dy(){var e,t,n=window;return nr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function M7(){var e=window;return nr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function R7(){var e=window;return nr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function nu(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return nr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function F7(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function B7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function I7(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ip(){var e=Fc(),t=dy(),n=window,r=navigator,a="connection";return e?nr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?nr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function _7(){return j7()?-4:O7()}function O7(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(N7())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=U7(a),u=s[0],l=s[1],c=eu(u.then(function(d){return H7(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function N7(){return Pr()&&!Bp()&&!R7()}function j7(){return Pr()&&nu()&&tu()}function U7(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Xb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(uy(g)&&eu(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Xb("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function H7(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function yk(){var e=new Date().getFullYear();return Math.max(Dr(new Date(e,0,1).getTimezoneOffset()),Dr(new Date(e,6,1).getTimezoneOffset()))}function xk(){try{return!!window.sessionStorage}catch{return!0}}function vk(){try{return!!window.localStorage}catch{return!0}}function Sk(){if(!(cy()||L7()))try{return!!window.indexedDB}catch{return!0}}function Tk(){return!!window.openDatabase}function Ck(){return navigator.cpuClass}function wk(){var e=navigator.platform;return e==="MacIntel"&&Pr()&&!Bp()?F7()?"iPad":"iPhone":e}function Ek(){return navigator.vendor||""}function Ak(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function Lk(){return Pr()||Ip()}function Mk(e){var t;return Ar(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return kr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},ey(r),u=0;u`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function Ep(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||jb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:Nb(i,"YYYY-MM-DD HH:mm:ss")}))}function Ec(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function Ub(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function Hb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function Ac(e){let{mimeType:t,base64:n}=c7(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await Am(qb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await qb(e);return t}async function qb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Ec(e.body):r=="urlSearchParams"?a.body=Ub(e.body):r=="blob"&&e.body&&(a.body=Ac(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){D.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let b=d.result;p(b)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of d7(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` +`))>=0;){let b=c.slice(0,g).trim();if(c=c.slice(g+1),b.startsWith("event:")||b==="")continue;let h="";if(b.startsWith("data:")&&(h=b.slice(5).trim()),h==="[DONE]")break;let f;try{f=JSON.parse(h??"")}catch(y){D.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(b){D.error("parse response failed",b)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${$t}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*d7(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var m7="";function So(){return m7||globalThis.navigator.userAgent}function Zs(){return So().includes("ImtFxiOS")}function zb(){let t=So().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ap(){return So().includes("ImtFxAndroid")}function Wb(){let e=So();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function Gb(){let t=So().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Xs(){let e=So();if(Zs()||Ap()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var kc=function(){return kc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,p7()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function $s(e){return e.then(void 0,function(){}),e}function f7(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function b7(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function y7(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function qa(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function fr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function Co(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function tr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];xt(e,t),fr(e,x7),t[1]=e[0]>>>1,xt(e,t),fr(e,v7),t[1]=e[0]>>>1,xt(e,t)}var Dc=[2277735313,289559509],Pc=[1291169091,658871167],Qb=[0,5],T7=[0,1390208809],S7=[0,944331445];function C7(e,t){var n=y7(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function w7(e){var t;return kc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function E7(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function A7(e){return typeof e!="function"}function k7(e,t){var n=$s(new Promise(function(r){var a=Date.now();Vb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function P7(){var e=window,t=navigator;return nr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!uy()}function Rc(){var e=window,t=navigator;return nr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Pr(){var e=window,t=navigator;return nr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Bp(){var e=window,t=e.HTMLElement,n=e.Document;return nr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function eu(){var e=window;return E7(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function ly(){var e,t,n=window;return nr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function L7(){var e=window;return nr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function M7(){var e=window;return nr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function tu(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return nr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function R7(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function F7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function B7(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ip(){var e=Rc(),t=ly(),n=window,r=navigator,a="connection";return e?nr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?nr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function I7(){return N7()?-4:_7()}function _7(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(O7())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=j7(a),u=s[0],l=s[1],c=$s(u.then(function(d){return U7(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function O7(){return Pr()&&!Bp()&&!M7()}function N7(){return Pr()&&tu()&&eu()}function j7(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Jb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(oy(g)&&$s(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Jb("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function U7(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function bk(){var e=new Date().getFullYear();return Math.max(Dr(new Date(e,0,1).getTimezoneOffset()),Dr(new Date(e,6,1).getTimezoneOffset()))}function yk(){try{return!!window.sessionStorage}catch{return!0}}function xk(){try{return!!window.localStorage}catch{return!0}}function vk(){if(!(uy()||P7()))try{return!!window.indexedDB}catch{return!0}}function Tk(){return!!window.openDatabase}function Sk(){return navigator.cpuClass}function Ck(){var e=navigator.platform;return e==="MacIntel"&&Pr()&&!Bp()?R7()?"iPad":"iPhone":e}function wk(){return navigator.vendor||""}function Ek(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function Pk(){return Pr()||Ip()}function Lk(e){var t;return Ar(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return kr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},Xb(r),u=0;u')}function Vk(){return navigator.pdfViewerEnabled}function Kk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Yk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Qk())return-3;try{return e.canMakePayments()?1:0}catch(t){return Jk(t)}}var Qk=W7;function Jk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Zk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var py=-1,gy=-2,Xk=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),$k=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),eD=["FRAGMENT_SHADER","VERTEX_SHADER"],tD=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],fy="WEBGL_debug_renderer_info",nD="WEBGL_polygon_mode";function rD(e){var t,n,r,a,i,o,s=e.cache,u=hy(s);if(!u)return py;if(!yy(u))return gy;var l=by()?null:u.getExtension(fy);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function aD(e){var t=e.cache,n=hy(t);if(!n)return py;if(!yy(n))return gy;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(sy,"/npm-monitoring"),!0),e.send()}catch{}}function SD(e){var t;return e===void 0&&(e={}),Ar(this,void 0,void 0,function(){var n,r,a;return kr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&vD(),n=e.delayFallback,r=e.debug,[4,yD(n)];case 1:return i.sent(),a=cD({cache:{},debug:r}),[2,xD(a,r)]}})})}var _p={load:SD,hashComponents:xy,componentsToDebugString:hD};async function ru(){let e=await Nt("fakeUserId","");e||(e=await Li("fakeUserId",""),e&&await at("fakeUserId",e));let t=new Date,n=await Nt("installedAt","");return n||(n=await Li("installedAt",""),n&&await at("installedAt",n)),e?n||(n=new Date(0).toISOString(),await at("installedAt",n)):(e=await wD(64),await at("fakeUserId",e)),n||(n=t.toISOString(),await at("installedAt",n)),{fakeUserId:e,installedAt:n}}var TD=10;async function Ao(){let e=await Nt("userTag","");if(e)return e;let{fakeUserId:t}=await ru(),r=t.charCodeAt(0)%TD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await at("userTag",e),e}function CD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):ED(i,e)}catch{return CD(64)}}function ED(e,t=32){let n="";for(let a=0;a{}),Oc)}async function Ty(e,t){try{let n=De(),r=n.INSTALL_FROM==="firefox_store";if($s()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=ne(),o=it(),s=n.PROD==="1",u=yn(),l=new Date,{fakeUserId:c,installedAt:d}=await ru(),m=await Ao(),p=await ko(),g=await Do(),h=new Date(d),b=Wa(h),f=Wa(l),y=b===f,v=24*60*60*1e3,S=l.getTime()-h.getTime()<7*v,w=l.getTime()-h.getTime()<30*v,C=l.getTime()-h.getTime()<365*v,T=jl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let k=mo.parse(A),R=e.map(F=>{let P=F.params||{};if(k.os&&(P.os_name=k.os.name||"unknown",P.os_version=k.os.version||"unknown",P.os_version_name=k.os.versionName||"unknown"),k.browser){P.browser_name=k.browser.name||"unknown",P.browser_version=k.browser.version||"unknown";let I=$s();I&&(P.browser_name=I.name,P.browser_version=I.version)}if(k.platform&&(P.platform_type=k.platform.type||"unknown"),k.engine&&(P.engine_name=k.engine.name||"unknown",P.engine_version=k.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),b){P.install_day=Bc(h);let I=_c(h);P.install_week=`${I.year}${I.week}`}return P.userscript=i.toString(),y?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=S?"1":"0",P.is_new_user_this_month=w?"1":"0",P.is_new_user_this_year=C?"1":"0",o?P.main_frame=0:P.main_frame=1,m&&(P.ab_tag=m),p&&(P.ab_group=p),P.campaign=g||"none",{...F,params:P}});T.forEach(async F=>{let P=await au({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&DD(c,R)}catch{}}async function kD(e){return await AD().sendMessage("background:main",e)}function au(e){return xl()?xc({method:"request",data:e}):ne()||yl()?(e.fetchPolyfill=globalThis.GM_fetch,Sa(e)):kD({method:"fetch",data:e})}function DD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Ic(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);au({url:Is,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var Nc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function Rk(){for(var e=0,t=["rec2020","p3","srgb"];e')}function Gk(){return navigator.pdfViewerEnabled}function Vk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Kk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Yk())return-3;try{return e.canMakePayments()?1:0}catch(t){return Qk(t)}}var Yk=z7;function Qk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Jk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var dy=-1,my=-2,Zk=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Xk=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),$k=["FRAGMENT_SHADER","VERTEX_SHADER"],eD=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],py="WEBGL_debug_renderer_info",tD="WEBGL_polygon_mode";function nD(e){var t,n,r,a,i,o,s=e.cache,u=gy(s);if(!u)return dy;if(!hy(u))return my;var l=fy()?null:u.getExtension(py);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function rD(e){var t=e.cache,n=gy(t);if(!n)return dy;if(!hy(n))return my;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(iy,"/npm-monitoring"),!0),e.send()}catch{}}function vD(e){var t;return e===void 0&&(e={}),Ar(this,void 0,void 0,function(){var n,r,a;return kr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&xD(),n=e.delayFallback,r=e.debug,[4,bD(n)];case 1:return i.sent(),a=lD({cache:{},debug:r}),[2,yD(a,r)]}})})}var _p={load:vD,hashComponents:by,componentsToDebugString:fD};async function nu(){let e=await Nt("fakeUserId","");e||(e=await Pi("fakeUserId",""),e&&await ct("fakeUserId",e));let t=new Date,n=await Nt("installedAt","");return n||(n=await Pi("installedAt",""),n&&await ct("installedAt",n)),e?n||(n=new Date(0).toISOString(),await ct("installedAt",n)):(e=await CD(64),await ct("fakeUserId",e)),n||(n=t.toISOString(),await ct("installedAt",n)),{fakeUserId:e,installedAt:n}}var TD=10;async function Ao(){let e=await Nt("userTag","");if(e)return e;let{fakeUserId:t}=await nu(),r=t.charCodeAt(0)%TD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await ct("userTag",e),e}function SD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):wD(i,e)}catch{return SD(64)}}function wD(e,t=32){let n="";for(let a=0;a{}),_c)}async function vy(e,t){try{let n=De(),r=n.INSTALL_FROM==="firefox_store";if(Xs()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=ne(),o=at(),s=n.PROD==="1",u=bn(),l=new Date,{fakeUserId:c,installedAt:d}=await nu(),m=await Ao(),p=await ko(),g=await Do(),b=new Date(d),h=za(b),f=za(l),y=h===f,v=24*60*60*1e3,T=l.getTime()-b.getTime()<7*v,w=l.getTime()-b.getTime()<30*v,C=l.getTime()-b.getTime()<365*v,S=Nl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let k=mo.parse(A),R=e.map(F=>{let P=F.params||{};if(k.os&&(P.os_name=k.os.name||"unknown",P.os_version=k.os.version||"unknown",P.os_version_name=k.os.versionName||"unknown"),k.browser){P.browser_name=k.browser.name||"unknown",P.browser_version=k.browser.version||"unknown";let I=Xs();I&&(P.browser_name=I.name,P.browser_version=I.version)}if(k.platform&&(P.platform_type=k.platform.type||"unknown"),k.engine&&(P.engine_name=k.engine.name||"unknown",P.engine_version=k.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),h){P.install_day=Fc(b);let I=Ic(b);P.install_week=`${I.year}${I.week}`}return P.userscript=i.toString(),y?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=T?"1":"0",P.is_new_user_this_month=w?"1":"0",P.is_new_user_this_year=C?"1":"0",o?P.main_frame=0:P.main_frame=1,m&&(P.ab_tag=m),p&&(P.ab_group=p),P.campaign=g||"none",{...F,params:P}});S.forEach(async F=>{let P=await ru({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&kD(c,R)}catch{}}async function AD(e){return await ED().sendMessage("background:main",e)}function ru(e){return yl()?yc({method:"request",data:e}):ne()||bl()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):AD({method:"fetch",data:e})}function kD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Bc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);ru({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var Oc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5790,57 +5790,57 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var Cy="userConfig",jc="userPromptPool",Uc="userObjectPool";async function Hc(){let e=await Py(Cy)||{},t=await Ri(jc)||{},n=await Ri(Uc)||{};return LD(e,t,n)}async function wy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Op(e);await Dy(Cy,t),await Er(jc,n),await Er(Uc,r)}function Op(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Ey(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Ay(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function LD(e,t,n){return Ey(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Ay(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Ey(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Ay(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ga(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=ky(r);for(let o of i)delete a[o]}),n}function Np(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=ky(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function ky(e){let t=wr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=fo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Ly(e,t){return My(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function My(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>My(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Lr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),ID(l),BD(n,u,l),l=await jD(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Fy(){if(be.PROD==="1")return{};let e={};if(be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(be.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:be.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(be.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:be.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(be.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&be.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:be.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:be.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(be.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:be.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(be.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=be.DEEPL_PROXY_ENDPOINT),be.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=be.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),be.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:be.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}be.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=be.IMMERSIVE_TRANSLATE_SERVICE);let t={};return be.DEBUG==="1"&&(t.debug=!0,t.cache=!1),be.MOCK==="1"&&(t.translationService="mock"),t}async function Vt(){let e=await $.storage.local.get(As);if(e[As]){let t=e[As],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Rt(i),i}else return{}}async function Rt(e){await $.storage.local.set({[As]:e})}async function Ec(e){await $.storage.local.set({[Ll]:e})}async function By(){return be.DEBUG==="1"?void 0:(await $.storage.local.get(Ll))[Ll]}async function qc(){let e=await By(),n={...iu(),...Nc,buildinConfigUpdatedAt:be.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function bn(){return Hc()}function Ha(e){return wy(e)}async function Dy(e,t){await $.storage.sync.set({[e]:t})}async function Py(e){return(await $.storage.sync.get(e))[e]}async function Er(e,t){await $.storage.local.set({[e]:t})}async function Ri(e){return(await $.storage.local.get(e))[e]}var Iy={};function zc(e){return Iy[e]}function _y(e,t){Iy[e]=t}var MD=async()=>{let e=["zh-CN"];try{e=await $.i18n.getAcceptLanguages()}catch(r){D.warn("get browser language error:",r)}let n=e.map(r=>X(r)).find(r=>Nb.find(a=>a===r));return n||"en"},iu=()=>{let e={...Nc,buildinConfigUpdatedAt:be.BUILD_TIME};return{...e,targetLanguage:Ba,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function RD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function FD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ba;let n=await Nt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Ry(l,r[s]))}),Lr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Ry(l,n[s]))}),Lr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function ID(e){try{let t=await Nt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){D.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Ry(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function _D(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Nt("installedAt",""),p=Number(await Li("translage_page_daily",0)),g=Number(await Nt(lr,0)),h;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function ND(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function jD(e,t){let n=await UD(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=ou(e[o],t[o]));else if(o==="translationServices")Oy(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(ne()||ct()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?jy(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(be.PROD==="0"&&be.DEV_RULES){let s=JSON.parse(be.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function UD(){let e={};if(!ne()&&$.commands&&$.commands.getAll){let t=await $.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function Ny(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Ly(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Lr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&Oy(i,e),s&&(r=ou(r,s))}),r}var Wc={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var qD="";function yn(){return qD||Wc.version}function Po(){return $.runtime.getManifest().version}function Uy(e){let t=iu(),n=Po();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function jp(e){return e.replace(//g,">")}var Gc=!1,zD=ne();function Hy(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function WD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&qy(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Va(i,Rl)){if(a===!0)return!0;continue}if(su(i.nodeName,t.inlineTags))return!0;if(!Up(i,t))return!1}}return!0}function Hp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(su(e.nodeName,n)||Up(e,t)){if(Va(e,n1)||su(e.nodeName,["BR"]))return!1;if(Va(e,Rl))return!0;if(Up(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return WD(e,t)}else return Va(e,Rl);return!1}function qy(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Va(e,t1,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Va(e,V3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||su(e.nodeName,i))}function Vc(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!Wy(r)&&r.length>=n}function zy(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(Wy(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function Wy(e){for(let t=0;t127)return!1;return!0}function Gy(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function Vy(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Ky(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function Yy(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function Qy(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Va(e,t,n=!1){return qp(e,t,"1",n)}function qp(e,t,n,r=!1){return Gc&&!r?e[Qn]?e[Qn]?.[t]===n:!1:e.dataset?.[t]===n}function Lo(e){return(e.innerText||e.textContent||"").trim()}function zp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Kc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function Et(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Gc&&!r?(e[Qn]||(e[Qn]={}),e[Qn][t]||(e[Qn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function Jy(e,t,n=!1){if(Gc&&!n){if(!e[Qn]||!e[Qn][t])return;delete e[Qn][t]}else delete e.dataset[t]}function Zy(e,t,n=!1){return Gc&&!n?!e[Qn]||!e[Qn][t]?void 0:e[Qn][t]:e.dataset[t]}function Up(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!su(e.nodeName,n)}function ke(){if(!globalThis||!globalThis.location)return"https://example.com";if(!it())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function In(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}}function Ka(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(zD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${B}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function su(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function Xy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function $y(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||qy(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function e9(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function t9(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthe,createScript:e=>e})}catch{}var a9=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(a9=!0)});function Yc(){return a9}var Un=r9;function o9(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(VD(t,o))return"";i=i9(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let b of n){let f=i9(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";continue}u=f,l+=g(b)||""}h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` -`).filter(b=>!!b.trim()).length>1)return t.innerHTML||"";return s;function p(b){return b.replace(/\s+/g,"")}function g(b){return b instanceof HTMLElement?b.innerText:b?.textContent||""}function h(){let b=p(g(u)),f=p(l);if(b==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var Ty="userConfig",Nc="userPromptPool",jc="userObjectPool";async function Uc(){let e=await ky(Ty)||{},t=await Mi(Nc)||{},n=await Mi(jc)||{};return PD(e,t,n)}async function Sy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Op(e);await Ay(Ty,t),await Er(Nc,n),await Er(jc,r)}function Op(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Cy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),wy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function PD(e,t,n){return Cy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),wy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Cy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function wy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Wa(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Ey(r);for(let o of i)delete a[o]}),n}function Np(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Ey(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Ey(e){let t=wr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=fo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Dy(e,t){return Py(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function Py(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>Py(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Lr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await BD(l),FD(n,u,l),l=await ND(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function My(){if(be.PROD==="1")return{};let e={};if(be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(be.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:be.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(be.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:be.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(be.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&be.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:be.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:be.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(be.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:be.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(be.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=be.DEEPL_PROXY_ENDPOINT),be.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=be.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),be.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:be.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}be.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=be.IMMERSIVE_TRANSLATE_SERVICE);let t={};return be.DEBUG==="1"&&(t.debug=!0,t.cache=!1),be.MOCK==="1"&&(t.translationService="mock"),t}async function Vt(){let e=await $.storage.local.get(As);if(e[As]){let t=e[As],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Rt(i),i}else return{}}async function Rt(e){await $.storage.local.set({[As]:e})}async function wc(e){await $.storage.local.set({[Pl]:e})}async function Ry(){return be.DEBUG==="1"?void 0:(await $.storage.local.get(Pl))[Pl]}async function Hc(){let e=await Ry(),n={...au(),...Oc,buildinConfigUpdatedAt:be.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function hn(){return Uc()}function Ua(e){return Sy(e)}async function Ay(e,t){await $.storage.sync.set({[e]:t})}async function ky(e){return(await $.storage.sync.get(e))[e]}async function Er(e,t){await $.storage.local.set({[e]:t})}async function Mi(e){return(await $.storage.local.get(e))[e]}var Fy={};function qc(e){return Fy[e]}function By(e,t){Fy[e]=t}var LD=async()=>{let e=["zh-CN"];try{e=await $.i18n.getAcceptLanguages()}catch(r){D.warn("get browser language error:",r)}let n=e.map(r=>X(r)).find(r=>_b.find(a=>a===r));return n||"en"},au=()=>{let e={...Oc,buildinConfigUpdatedAt:be.BUILD_TIME};return{...e,targetLanguage:Fa,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function MD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function RD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Fa;let n=await Nt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Ly(l,r[s]))}),Lr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Ly(l,n[s]))}),Lr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function BD(e){try{let t=await Nt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){D.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Ly(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function ID(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Nt("installedAt",""),p=Number(await Pi("translage_page_daily",0)),g=Number(await Nt(lr,0)),b;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function OD(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function ND(e,t){let n=await jD(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=iu(e[o],t[o]));else if(o==="translationServices")Iy(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(ne()||lt()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?Oy(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(be.PROD==="0"&&be.DEV_RULES){let s=JSON.parse(be.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function jD(){let e={};if(!ne()&&$.commands&&$.commands.getAll){let t=await $.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function _y(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Dy(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Lr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&Iy(i,e),s&&(r=iu(r,s))}),r}var zc={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var HD="";function bn(){return HD||zc.version}function Po(){return $.runtime.getManifest().version}function Ny(e){let t=au(),n=Po();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function jp(e){return e.replace(//g,">")}var Wc=!1,qD=ne();function jy(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function zD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&Uy(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Ga(i,Ml)){if(a===!0)return!0;continue}if(ou(i.nodeName,t.inlineTags))return!0;if(!Up(i,t))return!1}}return!0}function Hp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(ou(e.nodeName,n)||Up(e,t)){if(Ga(e,e1)||ou(e.nodeName,["BR"]))return!1;if(Ga(e,Ml))return!0;if(Up(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return zD(e,t)}else return Ga(e,Ml);return!1}function Uy(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Ga(e,$3,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Ga(e,W3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||ou(e.nodeName,i))}function Gc(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!qy(r)&&r.length>=n}function Hy(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(qy(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function qy(e){for(let t=0;t127)return!1;return!0}function zy(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function Wy(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Gy(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function Vy(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function Ky(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Ga(e,t,n=!1){return qp(e,t,"1",n)}function qp(e,t,n,r=!1){return Wc&&!r?e[Qn]?e[Qn]?.[t]===n:!1:e.dataset?.[t]===n}function Lo(e){return(e.innerText||e.textContent||"").trim()}function zp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Vc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function Et(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Wc&&!r?(e[Qn]||(e[Qn]={}),e[Qn][t]||(e[Qn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function Yy(e,t,n=!1){if(Wc&&!n){if(!e[Qn]||!e[Qn][t])return;delete e[Qn][t]}else delete e.dataset[t]}function Qy(e,t,n=!1){return Wc&&!n?!e[Qn]||!e[Qn][t]?void 0:e[Qn][t]:e.dataset[t]}function Up(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!ou(e.nodeName,n)}function Ee(){if(!globalThis||!globalThis.location)return"https://example.com";if(!at())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Bn(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}}function Va(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(qD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${B}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function ou(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function Jy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function Zy(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Uy(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function Xy(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function $y(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthe,createScript:e=>e})}catch{}var n9=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(n9=!0)});function Kc(){return n9}var In=t9;function a9(e,t,n,r,a){if(!e)return"";for(let h of r||[])if(t?.querySelector(h))return"";let i=n[0],o=n[n.length-1];if(GD(t,o))return"";i=r9(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let h of n){let f=r9(t,h);if(c+=g(h),u&&f!=u){b(),u=f,l=g(h)||"";continue}u=f,l+=g(h)||""}b();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` +`).filter(h=>!!h.trim()).length>1)return t.innerHTML||"";return s;function p(h){return h.replace(/\s+/g,"")}function g(h){return h instanceof HTMLElement?h.innerText:h?.textContent||""}function b(){let h=p(g(u)),f=p(l);if(h==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` `)&&y?.startsWith(` `)||!c.endsWith(` `)&&y?.endsWith(` -`)){s+=l;return}s+=p9(u,a)}else s+=l}}function s9(e,t,n,r,a){if(!e||!t)return"";let i=p9(n,a)||"";return t.replace(i,r)}var Wp=globalThis.document?.createElement("div");function GD(e){return Wp?(Wp.innerHTML=Un?.createHTML(e)||e,Wp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function u9(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||GD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function l9(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function c9(e,t,n,r){let a="";return n?a=d9(e,t,n):a=m9(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function d9(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?d9(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function m9(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return m9(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function p9(e,t){if(e instanceof HTMLElement){if(n9(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=d9(u,a)}else s+=l}}function i9(e,t,n,r,a){if(!e||!t)return"";let i=d9(n,a)||"";return t.replace(i,r)}var Wp=globalThis.document?.createElement("div");function WD(e){return Wp?(Wp.innerHTML=In?.createHTML(e)||e,Wp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function o9(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||WD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function s9(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let h=o.findIndex(y=>y.tag==m);if(h==-1)return d;let f=o[h];return o=o.slice(h+1),n?``:``}else{let h=e[m];if(!h)return d;if(o.unshift(h),n)return`<${n}${m}>`;if(!h.attributes)return`<${h.tag}>`;let f=a||"";return`<${h.tag} ${r||"id"}=${f}${h.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let h=s[0],f=s[1],y=u[u.length-1];h?.tag==m?(h.end==g?(h.endTag=d,h.end=g+d.length,u.push(h)):h.end==y?.begin&&y.end==g&&(h.endTag=d,h.end=g+d.length,h.times++,u[u.length-1]=h),s.shift()):f?.tag==m&&f.end==h.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function u9(e,t,n,r){let a="";return n?a=l9(e,t,n):a=c9(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function l9(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?l9(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function c9(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return c9(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function d9(e,t){if(e instanceof HTMLElement){if(e9(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` `)<0?r=rt.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=rt.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}else if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}else return e?.outerHTML;return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function VD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function i9(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Qc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Gp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Lr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Mo(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function g9(e,t){let n=t||e.translationService;return Mo(e,n,e.config.translationServices)?Gp(e.rule):e.rule}function uu(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var KD=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function rr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Kr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(rr(e,i))return!1;if(rr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!rr(e,o)),c;function d(){return n&&n.display?!!KD.includes(n.display):rr(e,r)}}var At=rr;function Bi(e){return!!e.shadowRoot}function Ya(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function lu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Yr(e,t=!1){let n=so;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Fi(e,t,n=!1){let r=e?.[t];return Yr(r,n)}function Ro(e,t){return ja(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Vp(e){let{rule:t}=e,n=YD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function YD(e){let t=e.config.loadingTheme;return`${B}-loading-${t}`}function cu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),Et(a,$3,t.toString());let i=Vp(e);return a.append(n?" ...":rt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Fo(e,t){return e.querySelector(`[${mm}='${t}']`)}function h9(){document.querySelectorAll(`[${mm}]`).forEach(t=>{t.remove()})}function b9(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function y9(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Ka(n)&&t.push(n)}),t}function Kp(e,t){return t?QD(e):JD(e)}function QD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=x9(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=jp(p),m.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function JD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=x9(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=jp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){D.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Yp(e,t){return t?ZD(e):XD(e)}function ZD(e){let{text:t,variables:n}=e,r=uu(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function XD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function x9(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Bo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||Qy(l)||Gy(l)||Yy(l)||Vy(l)||Ky(l)||eP(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Vc(i?.trim(),n,r)}function Ii(e){return e.nodeType===Node.ELEMENT_NODE}function v9(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Mr(){return await Nt("fakeUserId","")}async function $D(){return await Nt("installedAt","")}async function Xc(e,t){let r=De().INSTALL_FROM,a=yn(),i=await $D(),o=await Mr(),s=await wt(),u=!1,l=await pt.get(mt,null),c=!1;l&&ht(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await Ao(),m=await Do(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await ko();return g&&(p.abGroup=g),p}function du(e,t){let[n,r]=G();return te(()=>{!e||!t||(async()=>{let a=await Qp(e,t);r(a)})()},[e,t,r]),n}async function Qp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!ct()&&ne()||We().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Nt("installedAt","");new Date(o).getTime()s==n),a=tP(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>Ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>Ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function tP(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function T9(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function C9(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Jc[e]=setTimeout(()=>{n("")},t)})}function E9(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Qa(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function e0(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Ca(){return Ap()?"imtAndroid":Xs()?"imtIOS":ne()?"userscript":ct()?"safari":kn()?"firefox":E3()?"chrome":"other"}function Qr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function t0(e){return e?.getAttribute("imt-state")||""}function Jr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function n0(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(rr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function A9(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function k9(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function D9(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var nP={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Zc={...nP};function wa(e){Zc[e]||(Zc[e]=Date.now())}var f9=!1;function P9(){if(f9)return;f9=!0;let e=Zc.initial,t={...Zc};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(Y+"PerformanceData",JSON.stringify(t))}function Za(e){if(e.beta)return!1;if(ct()&&e.spVersion)return Ja(Po(),e.spVersion);if(Vb()&&e.gspVersion){let t=Kb();if(t)return Ja(t,e.gspVersion)}if(Xs()&&e.ispVersion){let t=Gb();if(t)return Ja(t,e.ispVersion)}return!1}function Ja(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Zp(e){e.message?.indexOf("token invalid")>=0&&(pt.remove(mt),Zs())}async function L9(e){let n=(await wt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),rP(a.toString())}function rP(e){try{ct()?Vr(e):globalThis.open(e)}catch{globalThis.open(e)}}function M9(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;D.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function R9(e){return ht(e)}function r0(e){return Array.isArray(e)?e:e?[e]:[]}function a0(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function i0(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function F9(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function ou(e,t){let n={...e};return O9(n,t),aP(n,t),n}function jy(e,t,n){let r={...e};return Lr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Lr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function aP(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;O9(e,a)}function Lr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=B9(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=B9(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=r0(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!I9(u))return;d=Xp(c,l)}else if(s=="remove_v"){if(!I9(u))return;d=_9(c,l)}else s==="add"?d=Xp(c,l):s=="remove"&&(d=_9(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Xp(c,l):d=l,r(o,d)})}function O9(e,t){return Lr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Xp(e,t){let n;if(Array.isArray(e)){let r=r0(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function B9(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function I9(e){let t=yn();return e&&Ja(t,e)}function _9(e,t){if(Array.isArray(e)){let n=r0(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var _o="input is invalid type",$p=typeof window=="object",Xa=$p?window:{};Xa.JS_SHA256_NO_WINDOW&&($p=!1);var iP=!$p&&typeof self=="object",oP=!Xa.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;oP?Xa=global:iP&&(Xa=self);var nY=!Xa.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,rY=typeof define=="function"&&define.amd,mu=!Xa.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",fe="0123456789abcdef".split(""),sP=[-2147483648,8388608,32768,128],Rr=[24,16,8,0],o0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s0=["hex","array","digest","arrayBuffer"],nn=[];(Xa.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});mu&&(Xa.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var N9=function(e,t){return function(n){return new rn(t,!0).update(n)[e]()}},U9=function(e){var t=N9("hex",e);t.create=function(){return new rn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};rn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=sP[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};rn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+o0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+o0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+o0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+o0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};rn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=fe[e>>28&15]+fe[e>>24&15]+fe[e>>20&15]+fe[e>>16&15]+fe[e>>12&15]+fe[e>>8&15]+fe[e>>4&15]+fe[e&15]+fe[t>>28&15]+fe[t>>24&15]+fe[t>>20&15]+fe[t>>16&15]+fe[t>>12&15]+fe[t>>8&15]+fe[t>>4&15]+fe[t&15]+fe[n>>28&15]+fe[n>>24&15]+fe[n>>20&15]+fe[n>>16&15]+fe[n>>12&15]+fe[n>>8&15]+fe[n>>4&15]+fe[n&15]+fe[r>>28&15]+fe[r>>24&15]+fe[r>>20&15]+fe[r>>16&15]+fe[r>>12&15]+fe[r>>8&15]+fe[r>>4&15]+fe[r&15]+fe[a>>28&15]+fe[a>>24&15]+fe[a>>20&15]+fe[a>>16&15]+fe[a>>12&15]+fe[a>>8&15]+fe[a>>4&15]+fe[a&15]+fe[i>>28&15]+fe[i>>24&15]+fe[i>>20&15]+fe[i>>16&15]+fe[i>>12&15]+fe[i>>8&15]+fe[i>>4&15]+fe[i&15]+fe[o>>28&15]+fe[o>>24&15]+fe[o>>20&15]+fe[o>>16&15]+fe[o>>12&15]+fe[o>>8&15]+fe[o>>4&15]+fe[o&15];return this.is224||(u+=fe[s>>28&15]+fe[s>>24&15]+fe[s>>20&15]+fe[s>>16&15]+fe[s>>12&15]+fe[s>>8&15]+fe[s>>4&15]+fe[s&15]),u};rn.prototype.toString=rn.prototype.hex;rn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};rn.prototype.array=rn.prototype.digest;rn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function u0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(_o);if(mu&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!mu||!ArrayBuffer.isView(e)))throw new Error(_o)}else throw new Error(_o);e.length>64&&(e=new rn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}rn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}u0.prototype=new rn;u0.prototype.finalize=function(){if(rn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();rn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),rn.prototype.finalize.call(this)}};var Oo=U9();Oo.sha256=Oo;Oo.sha224=U9(!0);Oo.sha256.hmac=H9();Oo.sha224.hmac=H9(!0);var q9=Oo;var z9=q9.sha256;function Hn(e){return Promise.resolve(z9(e))}function No(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=z9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function W9(e,t){let n=await ar(e,t);return No(n)}async function l0(e,t){let n=uP(t),r=await ar(e,n);return No(r)}function uP(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var lP={lang:"en"};function eg(e){let t=Object.assign({},lP,e),[n,r]=G(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var cP=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--cP,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var tg=to(null),$a=e=>{let{t,setLang:n,lang:r}=eg({lang:e.lang});return x(tg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return hl(tg)}function K9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Fr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=dP(e,a)),i||(i=mP(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function dP(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=rg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function mP(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function rg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>Ze(a,s.matches)&&!Ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function Y9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function c0(e,t,n){n=n||await Fn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&G9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&G9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await bn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await va(n),await Ha(i)}catch{return!1}return a}async function Q9(){return(await Fn()).aiAssistants||[]}async function pP(e,t){(await Promise.allSettled(e.map(r=>Q({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&c0("add",a,t)}})}async function gP(e,t,n=!0){e||(e=await wt()),t||(t=await Fn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await bP();i=await hP(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&pP(o,t)}var Ea=Nn(gP,1500);function G9(e){return Ja(Po(),e.extensionVersion)}function fP(e,t){return t?!Ja(e.version,t):!1}function hP(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{fP(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function bP(){return(await Q({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var yP=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function Z9(e,t,n,r,a){let i={...t},o=rg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,Y9({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=K9(i,i.langOverrides,n),o||yP.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await hb();i.contextTerms=s}return i}async function ir(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=jo(t,o),f=jo(t,g),y=s,v=Object.keys(u);for(let K of v){let xe=u[K];if(jo(t,xe)){y=K;break}}let S=l,w=Object.keys(c);for(let K of w){let xe=c[K];if(xe&&jo(t,xe)){S=K;break}}let C=jo(t,d),T=J9(t,d);T||(T=Ze(t,l1)),T||(T=Ze(t,n.blockUrls));let A=J9(t,n.inputTranslationUrlPattern);A||(A=Ze(t,n.inputTranslationBlockUrls));let k=Ze(t,n.mutationBlockUrls),R=Object.keys(p),F={};for(let K of R){let xe=p[K];if(xe&&xe.matches)for(let nt of xe.matches)F[nt]=K}let P=Object.keys(F),I=np(t,P);I&&(i=F[I]??"auto",F[I]&&F[I]!=="auto"&&er(F[I]));let L=a.hostname,_=await Hn(L),O=a.pathname+a.search+a.hash,z=await Hn(O),V=`https://${_}.com/${z}`,ie=await Vt(),Ie=await qc(),re=n.translationStartMode,N=vP(ie,n);ie.aiAssistants=SP(N,n),re==="dynamic"&&f&&(re="immediate");let j=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(j=n.inputTranslationService);let W=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(W=n.mouseHoverTranslationService);let me=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(me=n.subtitleTranslateService);let ce=await pt.get(mt,null),ze=!1;ce&&(ze=ht(ce)),n.platform=Ca();let pe={targetLanguage:h,config:n,translationService:y,inputTranslationService:j,mouseHoverTranslationService:W,subtitleTranslateService:me,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:T,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:re,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:re,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ie};ce&&(pe.user=ce,ze?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(K=>!pe.config.generalRule.bodyTranslateTags.includes(K)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let he=n.translationServices[pe.translationService]||{};he.immediateTranslationTextCount!==void 0&&xP(he.immediateTranslationTextCount)&&he.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=he.immediateTranslationTextCount),pe.translationService==="deepl"&&(he?.authKey?.startsWith("immersive_")||he?.provider==="pro"&&pe.user?.token)&&he.immediateTranslationTextCountForImmersiveDeepl!==void 0&&he.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=he.immediateTranslationTextCountForImmersiveDeepl),he&&he.translationDebounce&&typeof he.translationDebounce=="number"&&(pe.state.translationDebounce=he.translationDebounce);let ge=Ie.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let de=n.rules,Se;globalThis.PDFViewerApplication?Se=de.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Se=de.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Se=de.find(K=>K.pageType=="ebookBuilder"):Se=de.find(K=>jo(t,K)),Se&&Se.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(Se&&(pe.rule=ou(Ue,Se),pe.rule=Ny(n,pe.rule,Se)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(K=>!pe.rule.bodyTranslateTags.includes(K)&&!pe.rule.forceTranslateTags.includes(K))),pe.rule.mainFrameSelector){let K=document.querySelector(pe.rule.mainFrameSelector);K&&(pe.mainFrame=K)}return pe}function jo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&Ze(e,r)?!1:n&&n.length>0&&Ze(e,n)?!0:i&&i.length>0&&Kc(i)?!1:!!(a&&a.length>0&&Kc(a))}function J9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&Ze(e,n)||r&&r.length>0&&Kc(r))}function xP(e){return typeof e=="number"}function vP(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function SP(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=F9(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function X9(e){let t;try{t=new URL(e)}catch{return!1}let n=Cp(),r="";try{r=new URL(n).hostname}catch{}return!!(r&&t.hostname===r)}function $9(e){try{return new URL(e).protocol==="file:"}catch{return!1}}function d0(e){let t;try{t=new URL(e)}catch{return!1}let n=Cp(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(ag(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function ag(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}var ig={get:(e,t,n)=>$.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>$.storage[n].set({[e]:t})};function m0(e,t,n){let[r]=G(()=>typeof t=="function"?t():t),[a]=G(n),[i,o]=G(r),[s,u]=G(!1),[l,c]=G("");te(()=>{ig.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=Ae(m=>{let p=typeof m=="function"?m(i):m;D.debug("new settings",p),ig.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function og(e,t,n){let r=[];return function(){let[i,o,s,u]=m0(e,t,n),l=Ae(c=>{for(let d of r)d(c)},[]);return te(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function e6(e,t){return og(e,t,"sync")}var TP="userConfig",CP=null,wP=e6(TP,CP);function Br(e){let[t,n,r,a]=wP(),[i,o]=G();te(()=>{(async function(){let u=await Hc();o(u)})()},[t]);let s=Ae(async u=>{let l=typeof u=="function"?u(i):u;l&&sg(l);let{userConfig:c,promptPool:d,objectPool:m}=await Op(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(d).length,d),D.debug("objectPool size",JSON.stringify(m).length,m),await Er(jc,d),await Er(Uc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function sg(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var EP=function(e,t){let{method:n,data:r}=e;D.debug(`popup received message: ${n}`,r||" ");let a;t.active&&(a=t.id,globalThis.document.dispatchEvent(new CustomEvent(Ps,{detail:{tabId:a,payload:e}})))},p0;function t6(){pu()}function pu(){return p0||(p0=new Wr("popup",!1).getConnection("main_sync",EP),p0)}var g0="DROP_DOWN_DEFAULT_VALUE";function ug(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:g0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==g0){s.current.value=g0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:g0,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function Uo(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var AP=({date:e})=>{let{t}=se(),[n,r]=G(!1);return te(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},kP=({minVersion:e})=>{let{t}=se();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},DP=()=>{let{t:e}=se();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:oe+"docs/installation/"})}})},PP=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function lg(e){let{isShowError:t,request:n}=e,[r,a]=G(null),{t:i}=se(),[o,s]=G(null),[u,l]=G(null),[c,d]=G(""),[m,p]=G(!1),[g,h]=G(!1),[b,f]=G(!1),[y,v]=G(null),[S,w]=G(null),C=yn(),T=async()=>{d("");let A=o;if(o===null)try{let k=await n({url:Ls});k?(s(k),A=k,p(!0)):(d(i("unknownError")),l(null))}catch(k){l(null),d(k.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return te(()=>{be.DEBUG||wt().then(A=>{let k=A.buildinConfigUpdatedAt;v(A);let R=new Date(k);if(a(k),C==="0.0.0"){f(!0);return}n({url:Ls}).then(F=>{let P=F,I=P.minVersion,L=C;s(P);let _=P.latestVersion;if(_&&(Uo(L,_)?w(!0):w(!1)),Uo(L,I)){let O=P.buildinConfigUpdatedAt;new Date(O)>R?(l(!0),T()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),te(()=>{wt().then(A=>{v(A),Ea(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x(DP,{}):c?t===!1?null:x(PP,{handleSyncing:T,message:c,date:r||""}):g?t===!1?null:x(kP,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(AP,{date:r}):null}):null}function LP(){return navigator.userAgent.indexOf("Mac")!==-1}var n6={Alt:"\u2325"};function Ho(e=""){return LP()?Object.keys(n6).reduce((t,n)=>t.replace(n,n6[n]),e):e}var f0='',r6=` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function GD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function r9(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Yc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Gp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Lr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Mo(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function m9(e,t){let n=t||e.translationService;return Mo(e,n,e.config.translationServices)?Gp(e.rule):e.rule}function su(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var VD=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function rr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Vr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(rr(e,i))return!1;if(rr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!rr(e,o)),c;function d(){return n&&n.display?!!VD.includes(n.display):rr(e,r)}}var At=rr;function Fi(e){return!!e.shadowRoot}function Ka(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function uu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Kr(e,t=!1){let n=so;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Ri(e,t,n=!1){let r=e?.[t];return Kr(r,n)}function Ro(e,t){return Na(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Vp(e){let{rule:t}=e,n=KD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function KD(e){let t=e.config.loadingTheme;return`${B}-loading-${t}`}function lu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),Et(a,Z3,t.toString());let i=Vp(e);return a.append(n?" ...":rt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Fo(e,t){return e.querySelector(`[${mm}='${t}']`)}function g9(){document.querySelectorAll(`[${mm}]`).forEach(t=>{t.remove()})}function f9(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function h9(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Va(n)&&t.push(n)}),t}function Kp(e,t){return t?YD(e):QD(e)}function YD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,b)=>{if(g=="id"&&u[b+2]=="=")return p;let h=l++;return t[`${h}`]=b9(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=jp(p),m.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function QD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,b)=>g.tl&&!b.tl?1:!g.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,b,h)=>{if(b=="id"&&l[h+2]=="=")return g;let f=c++;return t[`${f}`]=b9(b,d),o.length>2?g.replace(b,`<${o[2]}${f}>`):g.replace(b,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let b=c++;return t[`${b}`]=jp(g),o.length>2?p.replace(g,`<${o[2]}${b}>`):p.replace(g,`${o[0]}${b}${o[1]}`)})})}catch(d){D.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Yp(e,t){return t?JD(e):ZD(e)}function JD(e){let{text:t,variables:n}=e,r=su(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function ZD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function b9(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Bo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||Ky(l)||zy(l)||Vy(l)||Wy(l)||Gy(l)||$D(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Gc(i?.trim(),n,r)}function Bi(e){return e.nodeType===Node.ELEMENT_NODE}function y9(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Mr(){return await Nt("fakeUserId","")}async function XD(){return await Nt("installedAt","")}async function Zc(e,t){let r=De().INSTALL_FROM,a=bn(),i=await XD(),o=await Mr(),s=await wt(),u=!1,l=await pt.get(mt,null),c=!1;l&&ht(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await Ao(),m=await Do(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await ko();return g&&(p.abGroup=g),p}function cu(e,t){let[n,r]=G();return te(()=>{!e||!t||(async()=>{let a=await Qp(e,t);r(a)})()},[e,t,r]),n}async function Qp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!lt()&&ne()||Ge().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Nt("installedAt","");new Date(o).getTime()s==n),a=eP(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>Ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>Ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function eP(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function v9(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function T9(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Qc[e]=setTimeout(()=>{n("")},t)})}function C9(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ya(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function $c(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Ta(){return Ap()?"imtAndroid":Zs()?"imtIOS":ne()?"userscript":lt()?"safari":An()?"firefox":C3()?"chrome":"other"}function Yr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function e0(e){return e?.getAttribute("imt-state")||""}function Qr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function t0(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(rr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function w9(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function E9(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function A9(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var tP={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Jc={...tP};function Sa(e){Jc[e]||(Jc[e]=Date.now())}var p9=!1;function k9(){if(p9)return;p9=!0;let e=Jc.initial,t={...Jc};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(Y+"PerformanceData",JSON.stringify(t))}function Ja(e){if(e.beta)return!1;if(lt()&&e.spVersion)return Qa(Po(),e.spVersion);if(Wb()&&e.gspVersion){let t=Gb();if(t)return Qa(t,e.gspVersion)}if(Zs()&&e.ispVersion){let t=zb();if(t)return Qa(t,e.ispVersion)}return!1}function Qa(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Zp(e){e.message?.indexOf("token invalid")>=0&&(pt.remove(mt),Js())}async function D9(e){let n=(await wt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),nP(a.toString())}function nP(e){try{lt()?Gr(e):globalThis.open(e)}catch{globalThis.open(e)}}function P9(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;D.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function L9(e){return ht(e)}function n0(e){return Array.isArray(e)?e:e?[e]:[]}function r0(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function a0(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function M9(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function iu(e,t){let n={...e};return I9(n,t),rP(n,t),n}function Oy(e,t,n){let r={...e};return Lr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Lr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function rP(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;I9(e,a)}function Lr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=R9(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,b]=R9(i);o=m+"."+p,s=g,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=n0(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!F9(u))return;d=Xp(c,l)}else if(s=="remove_v"){if(!F9(u))return;d=B9(c,l)}else s==="add"?d=Xp(c,l):s=="remove"&&(d=B9(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Xp(c,l):d=l,r(o,d)})}function I9(e,t){return Lr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Xp(e,t){let n;if(Array.isArray(e)){let r=n0(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function R9(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function F9(e){let t=bn();return e&&Qa(t,e)}function B9(e,t){if(Array.isArray(e)){let n=n0(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var _o="input is invalid type",$p=typeof window=="object",Za=$p?window:{};Za.JS_SHA256_NO_WINDOW&&($p=!1);var aP=!$p&&typeof self=="object",iP=!Za.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;iP?Za=global:aP&&(Za=self);var rY=!Za.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,aY=typeof define=="function"&&define.amd,du=!Za.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",fe="0123456789abcdef".split(""),oP=[-2147483648,8388608,32768,128],Rr=[24,16,8,0],i0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o0=["hex","array","digest","arrayBuffer"],nn=[];(Za.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});du&&(Za.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var _9=function(e,t){return function(n){return new rn(t,!0).update(n)[e]()}},N9=function(e){var t=_9("hex",e);t.create=function(){return new rn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};rn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=oP[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};rn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,b,h,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(h=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(h=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),h=e&t,m=h^e&n^v,b=a&i^~a&o,p=s+d+b+i0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^h,b=s&a^~s&i,p=o+d+b+i0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,b=o&s^~o&a,p=i+d+b+i0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,b=i&o^~i&s,p=a+d+b+i0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};rn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=fe[e>>28&15]+fe[e>>24&15]+fe[e>>20&15]+fe[e>>16&15]+fe[e>>12&15]+fe[e>>8&15]+fe[e>>4&15]+fe[e&15]+fe[t>>28&15]+fe[t>>24&15]+fe[t>>20&15]+fe[t>>16&15]+fe[t>>12&15]+fe[t>>8&15]+fe[t>>4&15]+fe[t&15]+fe[n>>28&15]+fe[n>>24&15]+fe[n>>20&15]+fe[n>>16&15]+fe[n>>12&15]+fe[n>>8&15]+fe[n>>4&15]+fe[n&15]+fe[r>>28&15]+fe[r>>24&15]+fe[r>>20&15]+fe[r>>16&15]+fe[r>>12&15]+fe[r>>8&15]+fe[r>>4&15]+fe[r&15]+fe[a>>28&15]+fe[a>>24&15]+fe[a>>20&15]+fe[a>>16&15]+fe[a>>12&15]+fe[a>>8&15]+fe[a>>4&15]+fe[a&15]+fe[i>>28&15]+fe[i>>24&15]+fe[i>>20&15]+fe[i>>16&15]+fe[i>>12&15]+fe[i>>8&15]+fe[i>>4&15]+fe[i&15]+fe[o>>28&15]+fe[o>>24&15]+fe[o>>20&15]+fe[o>>16&15]+fe[o>>12&15]+fe[o>>8&15]+fe[o>>4&15]+fe[o&15];return this.is224||(u+=fe[s>>28&15]+fe[s>>24&15]+fe[s>>20&15]+fe[s>>16&15]+fe[s>>12&15]+fe[s>>8&15]+fe[s>>4&15]+fe[s&15]),u};rn.prototype.toString=rn.prototype.hex;rn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};rn.prototype.array=rn.prototype.digest;rn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function s0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(_o);if(du&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!du||!ArrayBuffer.isView(e)))throw new Error(_o)}else throw new Error(_o);e.length>64&&(e=new rn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}rn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}s0.prototype=new rn;s0.prototype.finalize=function(){if(rn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();rn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),rn.prototype.finalize.call(this)}};var Oo=N9();Oo.sha256=Oo;Oo.sha224=N9(!0);Oo.sha256.hmac=j9();Oo.sha224.hmac=j9(!0);var U9=Oo;var H9=U9.sha256;function Hn(e){return Promise.resolve(H9(e))}function No(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=H9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function q9(e,t){let n=await ar(e,t);return No(n)}async function u0(e,t){let n=sP(t),r=await ar(e,n);return No(r)}function sP(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var uP={lang:"en"};function eg(e){let t=Object.assign({},uP,e),[n,r]=G(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var lP=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--lP,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var tg=to(null),Xa=e=>{let{t,setLang:n,lang:r}=eg({lang:e.lang});return x(tg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return fl(tg)}function G9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Ca(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=cP(e,a)),i||(i=dP(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function cP(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=rg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function dP(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function rg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>Ze(a,s.matches)&&!Ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function V9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function l0(e,t,n){n=n||await Rn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&z9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&z9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await hn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ya(n),await Ua(i)}catch{return!1}return a}async function K9(){return(await Rn()).aiAssistants||[]}async function mP(e,t){(await Promise.allSettled(e.map(r=>Q({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&l0("add",a,t)}})}async function pP(e,t,n=!0){e||(e=await wt()),t||(t=await Rn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await hP();i=await fP(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&mP(o,t)}var wa=jn(pP,1500);function z9(e){return Qa(Po(),e.extensionVersion)}function gP(e,t){return t?!Qa(e.version,t):!1}function fP(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{gP(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function hP(){return(await Q({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var bP=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function Q9(e,t,n,r,a){let i={...t},o=rg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,V9({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=G9(i,i.langOverrides,n),o||bP.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await gb();i.contextTerms=s}return i}async function ir(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,b=m||"zh-CN",h=jo(t,o),f=jo(t,g),y=s,v=Object.keys(u);for(let K of v){let xe=u[K];if(jo(t,xe)){y=K;break}}let T=l,w=Object.keys(c);for(let K of w){let xe=c[K];if(xe&&jo(t,xe)){T=K;break}}let C=jo(t,d),S=Y9(t,d);S||(S=Ze(t,s1)),S||(S=Ze(t,n.blockUrls));let A=Y9(t,n.inputTranslationUrlPattern);A||(A=Ze(t,n.inputTranslationBlockUrls));let k=Ze(t,n.mutationBlockUrls),R=Object.keys(p),F={};for(let K of R){let xe=p[K];if(xe&&xe.matches)for(let nt of xe.matches)F[nt]=K}let P=Object.keys(F),I=np(t,P);I&&(i=F[I]??"auto",F[I]&&F[I]!=="auto"&&er(F[I]));let L=a.hostname,_=await Hn(L),O=a.pathname+a.search+a.hash,z=await Hn(O),V=`https://${_}.com/${z}`,ie=await Vt(),Be=await Hc(),re=n.translationStartMode,N=xP(ie,n);ie.aiAssistants=vP(N,n),re==="dynamic"&&f&&(re="immediate");let j=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(j=n.inputTranslationService);let W=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(W=n.mouseHoverTranslationService);let me=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(me=n.subtitleTranslateService);let ce=await pt.get(mt,null),We=!1;ce&&(We=ht(ce)),n.platform=Ta();let pe={targetLanguage:b,config:n,translationService:y,inputTranslationService:j,mouseHoverTranslationService:W,subtitleTranslateService:me,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:S,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:re,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:re,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},localConfig:ie};ce&&(pe.user=ce,We?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(K=>!pe.config.generalRule.bodyTranslateTags.includes(K)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let he=n.translationServices[pe.translationService]||{};he.immediateTranslationTextCount!==void 0&&yP(he.immediateTranslationTextCount)&&he.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=he.immediateTranslationTextCount),pe.translationService==="deepl"&&(he?.authKey?.startsWith("immersive_")||he?.provider==="pro"&&pe.user?.token)&&he.immediateTranslationTextCountForImmersiveDeepl!==void 0&&he.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=he.immediateTranslationTextCountForImmersiveDeepl),he&&he.translationDebounce&&typeof he.translationDebounce=="number"&&(pe.state.translationDebounce=he.translationDebounce);let ge=Be.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let de=n.rules,Te;globalThis.PDFViewerApplication?Te=de.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Te=de.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Te=de.find(K=>K.pageType=="ebookBuilder"):Te=de.find(K=>jo(t,K)),Te&&Te.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(Te&&(pe.rule=iu(Ue,Te),pe.rule=_y(n,pe.rule,Te)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(K=>!pe.rule.bodyTranslateTags.includes(K)&&!pe.rule.forceTranslateTags.includes(K))),pe.rule.mainFrameSelector){let K=document.querySelector(pe.rule.mainFrameSelector);K&&(pe.mainFrame=K)}return pe}function jo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&Ze(e,r)?!1:n&&n.length>0&&Ze(e,n)?!0:i&&i.length>0&&Vc(i)?!1:!!(a&&a.length>0&&Vc(a))}function Y9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&Ze(e,n)||r&&r.length>0&&Vc(r))}function yP(e){return typeof e=="number"}function xP(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function vP(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=M9(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function J9(e){let t;try{t=new URL(e)}catch{return!1}let n=Cp(),r="";try{r=new URL(n).hostname}catch{}return!!(r&&t.hostname===r)}function Z9(e){try{return new URL(e).protocol==="file:"}catch{return!1}}function c0(e){let t;try{t=new URL(e)}catch{return!1}let n=Cp(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(ag(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function ag(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}var ig={get:(e,t,n)=>$.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>$.storage[n].set({[e]:t})};function d0(e,t,n){let[r]=G(()=>typeof t=="function"?t():t),[a]=G(n),[i,o]=G(r),[s,u]=G(!1),[l,c]=G("");te(()=>{ig.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=ke(m=>{let p=typeof m=="function"?m(i):m;D.debug("new settings",p),ig.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function og(e,t,n){let r=[];return function(){let[i,o,s,u]=d0(e,t,n),l=ke(c=>{for(let d of r)d(c)},[]);return te(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function X9(e,t){return og(e,t,"sync")}var TP="userConfig",SP=null,CP=X9(TP,SP);function Fr(e){let[t,n,r,a]=CP(),[i,o]=G();te(()=>{(async function(){let u=await Uc();o(u)})()},[t]);let s=ke(async u=>{let l=typeof u=="function"?u(i):u;l&&sg(l);let{userConfig:c,promptPool:d,objectPool:m}=await Op(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(d).length,d),D.debug("objectPool size",JSON.stringify(m).length,m),await Er(Nc,d),await Er(jc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function sg(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var wP=function(e,t){let{method:n,data:r}=e;D.debug(`popup received message: ${n}`,r||" ");let a;t.active&&(a=t.id,globalThis.document.dispatchEvent(new CustomEvent(Ds,{detail:{tabId:a,payload:e}})))},m0;function $9(){mu()}function mu(){return m0||(m0=new zr("popup",!1).getConnection("main_sync",wP),m0)}var p0="DROP_DOWN_DEFAULT_VALUE";function ug(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:p0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==p0){s.current.value=p0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:p0,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function Uo(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var EP=({date:e})=>{let{t}=se(),[n,r]=G(!1);return te(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},AP=({minVersion:e})=>{let{t}=se();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},kP=()=>{let{t:e}=se();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:oe+"docs/installation/"})}})},DP=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function lg(e){let{isShowError:t,request:n}=e,[r,a]=G(null),{t:i}=se(),[o,s]=G(null),[u,l]=G(null),[c,d]=G(""),[m,p]=G(!1),[g,b]=G(!1),[h,f]=G(!1),[y,v]=G(null),[T,w]=G(null),C=bn(),S=async()=>{d("");let A=o;if(o===null)try{let k=await n({url:Ps});k?(s(k),A=k,p(!0)):(d(i("unknownError")),l(null))}catch(k){l(null),d(k.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return te(()=>{be.DEBUG||wt().then(A=>{let k=A.buildinConfigUpdatedAt;v(A);let R=new Date(k);if(a(k),C==="0.0.0"){f(!0);return}n({url:Ps}).then(F=>{let P=F,I=P.minVersion,L=C;s(P);let _=P.latestVersion;if(_&&(Uo(L,_)?w(!0):w(!1)),Uo(L,I)){let O=P.buildinConfigUpdatedAt;new Date(O)>R?(l(!0),S()):l(!1)}else b(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),te(()=>{wt().then(A=>{v(A),wa(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:h?x(kP,{}):c?t===!1?null:x(DP,{handleSyncing:S,message:c,date:r||""}):g?t===!1?null:x(AP,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(EP,{date:r}):null}):null}function PP(){return navigator.userAgent.indexOf("Mac")!==-1}var e6={Alt:"\u2325"};function Ho(e=""){return PP()?Object.keys(e6).reduce((t,n)=>t.replace(n,e6[n]),e):e}var g0='',t6=` -`,qo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var a6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",i6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",o6="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";var MP="imt-fb";function Kt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${MP}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}var s6=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var u6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),l6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),c6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),d6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var m6=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),p6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),g6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),f6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function zo(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function h6(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Za(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Rs,`${e.type}_user_info`);return}e.onOpenUrl(Ol,`${e.type}_user_info`)},children:[x("img",{src:n?i6:a6}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(RP,{...e})]})}function RP(e){let{t}=se(),n=ye(()=>zo(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Rs,`${e.type}_pro_logo`)},children:x("img",{src:qo})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Dn)},children:[x(Kt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Dn,`${e.type}_user_upgrade`)},children:[p6,x("span",{children:t("popup.upgrade")})]})}var ei=(e,t,n,r)=>{let a=E2[e]||e,i=rp[e]||e,o=ap[e],s=ip[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function cg(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=ap,a="zh-CN"):n==="zh-TW"?(r=ip,a="zh-TW"):(r=rp,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}var Ee=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=J2(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f?.callback?.(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let S=p[b],w=0;for(let C=0;C{let w=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(w=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(T=>T.text),forces:f.tempSentences.map(T=>T.force),xpaths:f.tempSentences.map(T=>T.xpath||""),from:w,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=a1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let T=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(T=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],k=Yr(this.serviceConfig);if(f.tempSentences.forEach((O,z)=>{let V=Kp({text:O.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);O.force!==!0&&(V&&V.text&&V.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:O,from:w,to:f.to})}let R="";T&&T.length>=2?R=A.map((O,z)=>{let{item:V}=O;return z===A.length-1?V.text:V.text+T[0]+(z+1)+T[1]}).join(""):R=A.map(({item:O})=>O.text).join(C);let F=await this.translate({text:R,from:w,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:P}=F,I=[];if(T&&T.length>=2){let O=`${T[0]}\\d+${T[1]}`;T&&T.length>=3&&(O=T[2]);let z=new RegExp(O,"g");I=P.split(z)}else I=P.split(C);let L=[];if(I.length>A.length){for(let O=0;OO.text);return k=Yr(this.serviceConfig,!0),L.forEach((O,z)=>{let V=A[z],ie=V.index,Ie=V.variables||{};Object.keys(Ie).length>0&&(O=Yp({text:O,delimiters:k,variables:Ie},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ie]=O}),{sourceTempSentences:f.tempSentences,text:_,from:F.from,to:F.to}}};m.push(S().then(w=>{let{text:C,sourceTempSentences:T}=w;for(let A=0;A{if(w instanceof U&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Yr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Kp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Yr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Yp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Be({text:t,minLength:18,pageLangs:[dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var b6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],gu=class e extends Ee{static langMap=new Map(b6);maxTextGroupLength=50;static langMapReverse=new Map(b6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` +`,qo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var n6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",r6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",a6="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";var LP="imt-fb";function Kt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${LP}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}var i6=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var o6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),s6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),u6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),l6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var c6=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),d6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),m6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),p6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function zo(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function g6(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Ja(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Ms,`${e.type}_user_info`);return}e.onOpenUrl(_l,`${e.type}_user_info`)},children:[x("img",{src:n?r6:n6}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(MP,{...e})]})}function MP(e){let{t}=se(),n=ye(()=>zo(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ms,`${e.type}_pro_logo`)},children:x("img",{src:qo})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||kn)},children:[x(Kt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(kn,`${e.type}_user_upgrade`)},children:[d6,x("span",{children:t("popup.upgrade")})]})}var $a=(e,t,n,r)=>{let a=C2[e]||e,i=rp[e]||e,o=ap[e],s=ip[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function cg(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=ap,a="zh-CN"):n==="zh-TW"?(r=ip,a="zh-TW"):(r=rp,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let h of a)h.from&&h.from!=="auto"&&l.add(h.from),h.refresh&&(i=!0),h.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Y2(a,c,d)}catch(h){if(r)for(let f=0;fh));let m=[],p=[],g=(h,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[h]||(p[h]=f,p[h].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[h].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[h].hasError=!0,f?.callback?.(C,null,f.sentence);return}p[h].translatedTexts[f.partIndex]=v;let T=p[h],w=0;for(let C=0;C{let w=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(w=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(S=>S.text),forces:f.tempSentences.map(S=>S.force),xpaths:f.tempSentences.map(S=>S.xpath||""),from:w,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=n1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let S=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(S=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],k=Kr(this.serviceConfig);if(f.tempSentences.forEach((O,z)=>{let V=Kp({text:O.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);O.force!==!0&&(V&&V.text&&V.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:O,from:w,to:f.to})}let R="";S&&S.length>=2?R=A.map((O,z)=>{let{item:V}=O;return z===A.length-1?V.text:V.text+S[0]+(z+1)+S[1]}).join(""):R=A.map(({item:O})=>O.text).join(C);let F=await this.translate({text:R,from:w,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:P}=F,I=[];if(S&&S.length>=2){let O=`${S[0]}\\d+${S[1]}`;S&&S.length>=3&&(O=S[2]);let z=new RegExp(O,"g");I=P.split(z)}else I=P.split(C);let L=[];if(I.length>A.length){for(let O=0;OO.text);return k=Kr(this.serviceConfig,!0),L.forEach((O,z)=>{let V=A[z],ie=V.index,Be=V.variables||{};Object.keys(Be).length>0&&(O=Yp({text:O,delimiters:k,variables:Be},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ie]=O}),{sourceTempSentences:f.tempSentences,text:_,from:F.from,to:F.to}}};m.push(T().then(w=>{let{text:C,sourceTempSentences:S}=w;for(let A=0;A{if(w instanceof U&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=h.sentence.text;return h.translatedTexts&&h.translatedTexts.length>0&&(f=h.translatedTexts.join("")),{...h.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Kr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Kp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Kr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Yp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return je({text:t,minLength:18,pageLangs:[dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var f6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],pu=class e extends Ae{static langMap=new Map(f6);maxTextGroupLength=50;static langMapReverse=new Map(f6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` `),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Hn(c)].join(` -`),p=await W9(d,`TC3${n}`),g=await l0(i,p),h=await l0("tc3_request",g),b=await l0(m,h),f=await Q({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var y6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],FP={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},fu=class e extends Ee{static langMap=new Map(y6);static langMapReverse=new Map(y6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await Q({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:FP,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var x6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],hu=class e extends Ee{static langMap=new Map(x6);static langMapReverse=new Map(x6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await Q({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function BP(e,t){return t?e+(t-e%t):e}function IP(e,t){return e.split(t).length-1}function dg(e){let t=Date.now(),n=1;for(let r of e)n+=IP(r,"i");return BP(t,n)}function _P(e,t){return Math.floor(Math.random()*(t-e+1))+e}function mg(){return _P(1e6,1e8)}var pg="https://www2.deepl.com/jsonrpc",gg="auto",v6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function OP(e=v6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function fg(e){return OP()[e.toLowerCase()]}var NP={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function jP(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function UP(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function HP(e,t,n,r,a,i,o){let s=mg(),u=UP(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=dg(t);let c=await Q({retry:2,method:"POST",url:e,body:jP(u),headers:NP}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function S6(e,t,n,r=gg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:HP(e,t,fg(n),fg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var T6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Wo=class e extends Ee{static langMap=new Map(T6);static langMapReverse=new Map(T6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=pg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(pg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await S6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var bu=class e extends Ee{static langMap=new Map(Sp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=xa.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=De(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=C6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await Q({url:vc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=De(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=C6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await Q({url:vc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return xa.detectLanguageRemotelyByTransmart(t)}};function C6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function hg(){return Math.random()>=.001}var Go=class extends Ee{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!hg())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Ab(),!hg())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var E6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],bg=new Map(E6),w6=new Map(E6.map(([e,t])=>[t,e])),yg=class e extends Ee{static langMap=bg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await Q({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:bg.get(r)||"auto",target_lang:bg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:w6.get(o.source_lang),to:w6.get(o.target_lang)}}else throw new U(i.msg)}},h0=yg;var xg="https://{s}bing.com",L6=xg+"/translator",qP=xg+"/ttranslatev3",zP=xg+"/tspellcheckv3",b0="bingGlobalConfig",M6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],A6=new Map(M6),k6=new Map(M6.map(([e,t])=>[t,e])),D6=1e3,Ir,Vo;function vg(e,t){return e.replace("{s}",t?t+".":"")}async function WP(){if(!Ir){let n=await $.storage.local.get(b0);return n&&(Ir=n[b0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Ir;return Date.now()-e>t}async function P6(){let e,t,n,r,a,i,o,s,u,l;try{let c=vg(L6,e),d=await Q({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Ir={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await $.storage.local.set({[b0]:Ir}),Ir}function GP(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Ir;return vg(e?zP:qP,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Ir.count++:"")}function VP(e,t,n,r){let{token:a,key:i}=Ir,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function R6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>D6)throw new Error(`The supported maximum length of text is ${D6}. Please shorten the text.`);Vo||(Vo=P6()),await Vo,await WP()&&(Vo=P6(),await Vo),t=t||"auto",n=n||"zh-CN",t=A6.get(t)||t,n=A6.get(n)||n;let a=GP(!1),i=VP(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:vg(L6,Ir.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await Q({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Ir=null,Vo=null,await $.storage.local.remove(b0),c.ShowCaptcha)throw new Error(` +`),p=await q9(d,`TC3${n}`),g=await u0(i,p),b=await u0("tc3_request",g),h=await u0(m,b),f=await Q({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${h}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var h6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],RP={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},gu=class e extends Ae{static langMap=new Map(h6);static langMapReverse=new Map(h6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await Q({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:RP,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var b6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],fu=class e extends Ae{static langMap=new Map(b6);static langMapReverse=new Map(b6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await Q({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function FP(e,t){return t?e+(t-e%t):e}function BP(e,t){return e.split(t).length-1}function dg(e){let t=Date.now(),n=1;for(let r of e)n+=BP(r,"i");return FP(t,n)}function IP(e,t){return Math.floor(Math.random()*(t-e+1))+e}function mg(){return IP(1e6,1e8)}var pg="https://www2.deepl.com/jsonrpc",gg="auto",y6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function _P(e=y6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function fg(e){return _P()[e.toLowerCase()]}var OP={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function NP(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function jP(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function UP(e,t,n,r,a,i,o){let s=mg(),u=jP(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=dg(t);let c=await Q({retry:2,method:"POST",url:e,body:NP(u),headers:OP}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function x6(e,t,n,r=gg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:UP(e,t,fg(n),fg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var v6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Wo=class e extends Ae{static langMap=new Map(v6);static langMapReverse=new Map(v6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=pg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(pg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await x6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var hu=class e extends Ae{static langMap=new Map(Tp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ba.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=De(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=T6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await Q({url:xc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=De(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=T6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await Q({url:xc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ba.detectLanguageRemotelyByTransmart(t)}};function T6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function hg(){return Math.random()>=.001}var Go=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!hg())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await wb(),!hg())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var C6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],bg=new Map(C6),S6=new Map(C6.map(([e,t])=>[t,e])),yg=class e extends Ae{static langMap=bg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await Q({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:bg.get(r)||"auto",target_lang:bg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:S6.get(o.source_lang),to:S6.get(o.target_lang)}}else throw new U(i.msg)}},f0=yg;var xg="https://{s}bing.com",D6=xg+"/translator",HP=xg+"/ttranslatev3",qP=xg+"/tspellcheckv3",h0="bingGlobalConfig",P6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],w6=new Map(P6),E6=new Map(P6.map(([e,t])=>[t,e])),A6=1e3,Br,Vo;function vg(e,t){return e.replace("{s}",t?t+".":"")}async function zP(){if(!Br){let n=await $.storage.local.get(h0);return n&&(Br=n[h0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Br;return Date.now()-e>t}async function k6(){let e,t,n,r,a,i,o,s,u,l;try{let c=vg(D6,e),d=await Q({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Br={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await $.storage.local.set({[h0]:Br}),Br}function WP(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Br;return vg(e?qP:HP,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Br.count++:"")}function GP(e,t,n,r){let{token:a,key:i}=Br,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function L6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>A6)throw new Error(`The supported maximum length of text is ${A6}. Please shorten the text.`);Vo||(Vo=k6()),await Vo,await zP()&&(Vo=k6(),await Vo),t=t||"auto",n=n||"zh-CN",t=w6.get(t)||t,n=w6.get(n)||n;let a=WP(!1),i=GP(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:vg(D6,Br.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await Q({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Br=null,Vo=null,await $.storage.local.remove(h0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:k6.get(m.language),to:k6.get(d.to)}}function ti(e){return e!=null}function I6(e,t,n){return`${e.type}#${t}#${n}`}function _6(e,t,n,r,a){return{body:a,id:r,type:I6(e,t,n)}}function KP(e,t,n,r){return{id:n,response:r,type:I6(e,"ask",t)}}function O6(e,t,n,r){if(ti(r)){let a=r.type;if(ti(a)&&ti(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function YP(e,t,n){if(ti(n)){let r=n.type;if(ti(r)&&ti(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function QP(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function JP(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;YP(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function ZP(e,t,n,r){let a=i=>{let o=i.data;O6(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function F6(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(O6(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(KP(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function XP(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(_6(t,"tell",n,i,r),a)}async function B6(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await JP(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(_6(n,"ask",r,s,a),i),u}var ni=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;F6(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(ti(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await B6(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(ZP(this.thisWindow,this.protocol,t,n))}tell(t,n){XP(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(F6(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return B6(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){QP(this.listeners)}};var N6;async function j6(){if(it()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ni.iframe(Il,"*",{targetWindow:t});N6=n,await ni.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function U6(){return N6}var y0=new Map;async function Sg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=$n(e.body)),y0.has(t))return y0.get(t);let n=Q(e);y0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{y0.delete(t)},3e3)}}async function H6(e){return Sg(e)}async function Zr(e){if(it()){let n=U6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return Sg(e)}else return Sg(e)}function q6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function v0(e){await Sm(e)}async function Xr(e,t){let n=await xm(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return x0(e,t)}return x0(e,t)}async function x0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await vm(e,n,i-1e3),n}var $P=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],Tg=new Map($P),_r=class extends Ee{static langMap=Tg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await v0(rm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await R6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Xr(rm,async()=>{let t=await Zr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return q6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=Tg.get(n)||"auto",o=Tg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await Q({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var eL=["chinese","english","japanese","korean","french","spanish","deutsch"],$r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},S0=e=>$r.chinese.test(e),tL=e=>$r.english.test(e),nL=e=>$r.japanese.test(e),rL=e=>$r.korean.test(e),aL=e=>$r.french.test(e),iL=e=>$r.deutsch.test(e),oL=e=>$r.spanish.test(e),i$={chinese:vr(S0),english:vr(tL),japanese:vr(nL),korean:vr(rL),french:vr(aL),spanish:vr(oL),deutsch:vr(iL)},z6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,o$=new RegExp(`^(\\d|\\s|${z6.source})+$`),sL=new RegExp(`${$r.chinese.source}|${$r.japanese.source}|${$r.korean.source}`),s$=vr(e=>(e.replace(new RegExp(z6,"g")," ").replace(new RegExp(sL,"g")," x ").match(/\S+/g)||"").length),u$=[...eL,"others","matchAll"];var G6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],yu=new Map(G6),uL=new Map(G6.map(([e,t])=>[t,e])),Cg=class extends Ee{static langMap=yu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${$t}/v2/translate`;immersiveTranslateDeeplTokenUrl=tt;immersiveTranslateDeeplProApiUrl=tt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:yu.get(n)||"",target_lang:yu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:yu.get(n)||"auto",target_lang:yu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await Q({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await Q({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await Q({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>wg(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new _r({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&uL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!da()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},Ko=Cg;function wg(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&S0(t[0])&&W6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&S0(t[t.length-1])&&W6(t,"\u300A")==1?t+"\u300B":lL(e,t)}function lL(e,t){let n=e?.richIdName;return!n||!D9(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function W6(e,t){return e.split(t).length-1}var cL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Eg=new Map(cL),Ag=class extends Ee{static langMap=Eg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Eg.get(r)||r,to:Eg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await Q(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},V6=Ag;var dL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],kg=new Map(dL),Dg=class extends Ee{static langMap=kg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:kg.get(a)||a};r!=="auto"&&(i.from=kg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await Q(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},K6=Dg;var mL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Yo=new Map(mL),Pg=class extends Ee{static langMap=Yo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:E6.get(m.language),to:E6.get(d.to)}}function ei(e){return e!=null}function F6(e,t,n){return`${e.type}#${t}#${n}`}function B6(e,t,n,r,a){return{body:a,id:r,type:F6(e,t,n)}}function VP(e,t,n,r){return{id:n,response:r,type:F6(e,"ask",t)}}function I6(e,t,n,r){if(ei(r)){let a=r.type;if(ei(a)&&ei(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function KP(e,t,n){if(ei(n)){let r=n.type;if(ei(r)&&ei(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function YP(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function QP(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;KP(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function JP(e,t,n,r){let a=i=>{let o=i.data;I6(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function M6(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(I6(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(VP(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function ZP(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(B6(t,"tell",n,i,r),a)}async function R6(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await QP(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(B6(n,"ask",r,s,a),i),u}var ti=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;M6(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(ei(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await R6(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(JP(this.thisWindow,this.protocol,t,n))}tell(t,n){ZP(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(M6(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return R6(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){YP(this.listeners)}};var _6;async function O6(){if(at()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ti.iframe(Bl,"*",{targetWindow:t});_6=n,await ti.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function N6(){return _6}var b0=new Map;async function Tg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=$n(e.body)),b0.has(t))return b0.get(t);let n=Q(e);b0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{b0.delete(t)},3e3)}}async function j6(e){return Tg(e)}async function Jr(e){if(at()){let n=N6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return Tg(e)}else return Tg(e)}function U6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function x0(e){await Tm(e)}async function Zr(e,t){let n=await xm(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return y0(e,t)}return y0(e,t)}async function y0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await vm(e,n,i-1e3),n}var XP=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],Sg=new Map(XP),Ir=class extends Ae{static langMap=Sg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await x0(nm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await L6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Zr(nm,async()=>{let t=await Jr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return U6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=Sg.get(n)||"auto",o=Sg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await Q({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var $P=["chinese","english","japanese","korean","french","spanish","deutsch"],Xr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},v0=e=>Xr.chinese.test(e),eL=e=>Xr.english.test(e),tL=e=>Xr.japanese.test(e),nL=e=>Xr.korean.test(e),rL=e=>Xr.french.test(e),aL=e=>Xr.deutsch.test(e),iL=e=>Xr.spanish.test(e),o$={chinese:vr(v0),english:vr(eL),japanese:vr(tL),korean:vr(nL),french:vr(rL),spanish:vr(iL),deutsch:vr(aL)},H6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,s$=new RegExp(`^(\\d|\\s|${H6.source})+$`),oL=new RegExp(`${Xr.chinese.source}|${Xr.japanese.source}|${Xr.korean.source}`),u$=vr(e=>(e.replace(new RegExp(H6,"g")," ").replace(new RegExp(oL,"g")," x ").match(/\S+/g)||"").length),l$=[...$P,"others","matchAll"];var z6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],bu=new Map(z6),sL=new Map(z6.map(([e,t])=>[t,e])),Cg=class extends Ae{static langMap=bu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${$t}/v2/translate`;immersiveTranslateDeeplTokenUrl=tt;immersiveTranslateDeeplProApiUrl=tt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:bu.get(n)||"",target_lang:bu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:bu.get(n)||"auto",target_lang:bu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let b,h={};t.refresh&&(h={"X-Refresh":"True"}),t.debug&&(h={...h,"X-Debug":"True"}),this.provider==="pro"?b=await Q({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...h,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await Q({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...h,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await Q({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>wg(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new Ir({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&sL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!la()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},Ko=Cg;function wg(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&v0(t[0])&&q6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&v0(t[t.length-1])&&q6(t,"\u300A")==1?t+"\u300B":uL(e,t)}function uL(e,t){let n=e?.richIdName;return!n||!A9(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function q6(e,t){return e.split(t).length-1}var lL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Eg=new Map(lL),Ag=class extends Ae{static langMap=Eg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Eg.get(r)||r,to:Eg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await Q(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},W6=Ag;var cL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],kg=new Map(cL),Dg=class extends Ae{static langMap=kg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:kg.get(a)||a};r!=="auto"&&(i.from=kg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await Q(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},G6=Dg;var dL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Yo=new Map(dL),Pg=class extends Ae{static langMap=Yo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Yo.get(r)?(i=(await Q({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Yo.get(r)||r,target:Yo.get(a)||a})):u.body=JSON.stringify({text:s,source:Yo.get(r),target:Yo.get(a)||a});let l=await Q(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},Y6=Pg;function Q6(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Yo.get(r)?(i=(await Q({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Yo.get(r)||r,target:Yo.get(a)||a})):u.body=JSON.stringify({text:s,source:Yo.get(r),target:Yo.get(a)||a});let l=await Q(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},V6=Pg;function K6(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` -`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var Lg=class extends Ee{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` +`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var Lg=class extends Ae{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=ho()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?uc(l,s):`${s}${Ul}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let b="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Qc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let R=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let P=0;PP==="from"?c:P==="to"?d+" Language":P==="text"?r:P=="json"?b:P=="yaml"?f:m[P]===""?"":m[P]||F).replace(/{{(.+?)}}/g,(F,P)=>m[P]||F)}}async rawRequest(t){return await Q(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=ho()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?sc(l,s):`${s}${jl}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),b=[r];s?.rawTextArrayLength&&(b=r.split(this.translationTextSeparator)),b.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&b.length>1&&(l=this.subtitlePrompt);let h="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Yc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let R=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let P=0;PP==="from"?c:P==="to"?d+" Language":P==="text"?r:P=="json"?h:P=="yaml"?f:m[P]===""?"":m[P]||F).replace(/{{(.+?)}}/g,(F,P)=>m[P]||F)}}async rawRequest(t){return await Q(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;a`\`${s}\``).join(", "),D.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;s`\`${s}\``).join(", "),D.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` [theme]`,n.imt_theme,` -\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return $n(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ri=Lg;function pL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var gL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],J6=new Map(gL),Mg=class extends ri{static langMap=J6;provider="custom";immersiveApiUrl=`https://openai-api.${$t}/v1/chat/completions`;immersiveProApiUrl=tt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return J6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return $n(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!Ko.langMap.has(n.to)||!Ko.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ko(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Z6=Mg;function un(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function fL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function we(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ai(e,t){return e<>>32-t}function ea(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Qo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function X6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Jo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ta(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var $6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?un(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return ea(a(m,r),t)},this.b64=function(m){return na(a(m),n)},this.any=function(m,p){return ta(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return ea(i(m,p),t)},this.b64_hmac=function(m,p){return na(i(m,p),n)},this.any_hmac=function(m,p,g){return ta(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?un(m):m,X6(o(Jo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?un(m):m,p=r?un(p):p,g=Jo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Jo(p)),512+p.length*8),X6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,S=-271733879,w=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Aa(c)),512+c.length*8),Qo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),S=1732584193,w=-271733879,C=-1732584194,T=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,S.length*8));T<16;T+=1)k[T]=A[T]^909522486,R[T]=A[T]^1549556828;return C=v(k.concat(Aa(w)),512+w.length*8),Qo(v(R.concat(C),512+256))}function s(S,w){return S>>>w|S<<32-w}function u(S,w){return S>>>w}function l(S,w,C){return S&w^~S&C}function c(S,w,C){return S&w^S&C^w&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,w){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=new Array(64),A,k,R,F,P,I,L,_,O,z,V,ie;for(S[w>>5]|=128<<24-w%32,S[(w+64>>9<<4)+15]=w,O=0;O32&&(S=s(S,b.length*8));v<32;v+=1)w[v]=S[v]^909522486,C[v]=S[v]^1549556828;return y=s(w.concat(Aa(f)),1024+f.length*8),Qo(s(C.concat(y),1024+512))}function s(b,f){var y,v,S,w=new Array(80),C=new Array(16),T=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),k=new u(0,0),R=new u(0,0),F=new u(0,0),P=new u(0,0),I=new u(0,0),L=new u(0,0),_=new u(0,0),O=new u(0,0),z=new u(0,0),V=new u(0,0),ie=new u(0,0),Ie=new u(0,0),re=new u(0,0),N=new u(0,0),j=new u(0,0),W=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)w[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),w=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(w>>>16);b.l=v&65535|S<<16,b.h=w&65535|C<<16}function g(b,f,y,v,S){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w>>>16),T=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T>>>16);b.l=w&65535|C<<16,b.h=T&65535|A<<16}function h(b,f,y,v,S,w){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(w.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(w.h&65535)+(T>>>16),k=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(w.h>>>16)+(A>>>16);b.l=C&65535|T<<16,b.h=A&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return ea(u(h,r))},this.b64=function(h){return na(u(h,r),n)},this.any=function(h,b){return ta(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return ea(l(h,b))},this.b64_hmac=function(h,b){return na(l(h,b),n)},this.any_hmac=function(h,b,f){return ta(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?un(h):h,c(d(Jo(h),h.length*8))}function l(h,b){h=r?un(h):h,b=r?un(b):b;var f,y,v=Jo(h),S=Array(16),w=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,w[f]=v[f]^1549556828;return y=d(S.concat(Jo(b)),512+b.length*8),c(d(w.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,S,w=1732584193,C=4023233417,T=2562383102,A=271733878,k=3285377520,R,F,P,I,L,_,O,z,V,ie;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new $6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await Q({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var hL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Rg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Fg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Rg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Rg).sort().join(`&${r}=`)}`:`${r}=${Rg(n)}`}).filter(t=>t).join("&"),Zo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,Fg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return No(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return $n(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ni=Lg;function mL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var pL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Y6=new Map(pL),Mg=class extends ni{static langMap=Y6;provider="custom";immersiveApiUrl=`https://openai-api.${$t}/v1/chat/completions`;immersiveProApiUrl=tt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return Y6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return $n(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!Ko.langMap.has(n.to)||!Ko.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ko(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Q6=Mg;function un(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function gL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function we(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ri(e,t){return e<>>32-t}function $r(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Qo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function J6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Jo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ea(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var Z6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?un(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,b="",h=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?h[g]=String.fromCharCode(o):m===64?h[g]=String.fromCharCode(o,s):h[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return $r(a(m,r),t)},this.b64=function(m){return ta(a(m),n)},this.any=function(m,p){return ea(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return $r(i(m,p),t)},this.b64_hmac=function(m,p){return ta(i(m,p),n)},this.any_hmac=function(m,p,g){return ea(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?un(m):m,J6(o(Jo(m),m.length*8))}function i(m,p){var g,b,h,f,y;for(m=r?un(m):m,p=r?un(p):p,g=Jo(m),g.length>16&&(g=o(g,m.length*8)),b=Array(16),h=Array(16),y=0;y<16;y+=1)b[y]=g[y]^909522486,h[y]=g[y]^1549556828;return f=o(b.concat(Jo(p)),512+p.length*8),J6(o(h.concat(f),512+128))}function o(m,p){var g,b,h,f,y,v=1732584193,T=-271733879,w=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return b=o(m.concat(Ea(c)),512+c.length*8),Qo(o(p.concat(b),512+160))}function o(l,c){var d,m,p,g,b,h,f,y,v=Array(80),T=1732584193,w=-271733879,C=-1732584194,S=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,T.length*8));S<16;S+=1)k[S]=A[S]^909522486,R[S]=A[S]^1549556828;return C=v(k.concat(Ea(w)),512+w.length*8),Qo(v(R.concat(C),512+256))}function s(T,w){return T>>>w|T<<32-w}function u(T,w){return T>>>w}function l(T,w,C){return T&w^~T&C}function c(T,w,C){return T&w^T&C^w&C}function d(T){return s(T,2)^s(T,13)^s(T,22)}function m(T){return s(T,6)^s(T,11)^s(T,25)}function p(T){return s(T,7)^s(T,18)^u(T,3)}function g(T){return s(T,17)^s(T,19)^u(T,10)}function b(T){return s(T,28)^s(T,34)^s(T,39)}function h(T){return s(T,14)^s(T,18)^s(T,41)}function f(T){return s(T,1)^s(T,8)^u(T,7)}function y(T){return s(T,19)^s(T,61)^u(T,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(T,w){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],S=new Array(64),A,k,R,F,P,I,L,_,O,z,V,ie;for(T[w>>5]|=128<<24-w%32,T[(w+64>>9<<4)+15]=w,O=0;O32&&(T=s(T,h.length*8));v<32;v+=1)w[v]=T[v]^909522486,C[v]=T[v]^1549556828;return y=s(w.concat(Ea(f)),1024+f.length*8),Qo(s(C.concat(y),1024+512))}function s(h,f){var y,v,T,w=new Array(80),C=new Array(16),S=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),k=new u(0,0),R=new u(0,0),F=new u(0,0),P=new u(0,0),I=new u(0,0),L=new u(0,0),_=new u(0,0),O=new u(0,0),z=new u(0,0),V=new u(0,0),ie=new u(0,0),Be=new u(0,0),re=new u(0,0),N=new u(0,0),j=new u(0,0),W=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)w[v]=new u(0,0);for(h[f>>5]|=128<<24-(f&31),h[(f+128>>10<<5)+31]=f,T=h.length,v=0;v>>y|f.h<<32-y,h.h=f.h>>>y|f.l<<32-y}function d(h,f,y){h.l=f.h>>>y|f.l<<32-y,h.h=f.l>>>y|f.h<<32-y}function m(h,f,y){h.l=f.l>>>y|f.h<<32-y,h.h=f.h>>>y}function p(h,f,y){var v=(f.l&65535)+(y.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v>>>16),w=(f.h&65535)+(y.h&65535)+(T>>>16),C=(f.h>>>16)+(y.h>>>16)+(w>>>16);h.l=v&65535|T<<16,h.h=w&65535|C<<16}function g(h,f,y,v,T){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(T.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(T.l>>>16)+(w>>>16),S=(f.h&65535)+(y.h&65535)+(v.h&65535)+(T.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(T.h>>>16)+(S>>>16);h.l=w&65535|C<<16,h.h=S&65535|A<<16}function b(h,f,y,v,T,w){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(T.l&65535)+(w.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(T.l>>>16)+(w.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(T.h&65535)+(w.h&65535)+(S>>>16),k=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(T.h>>>16)+(w.h>>>16)+(A>>>16);h.l=C&65535|S<<16,h.h=A&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return $r(u(b,r))},this.b64=function(b){return ta(u(b,r),n)},this.any=function(b,h){return ea(u(b,r),h)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,h){return $r(l(b,h))},this.b64_hmac=function(b,h){return ta(l(b,h),n)},this.any_hmac=function(b,h,f){return ea(l(b,h),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?un(b):b,c(d(Jo(b),b.length*8))}function l(b,h){b=r?un(b):b,h=r?un(h):h;var f,y,v=Jo(b),T=Array(16),w=Array(16);for(v.length>16&&(v=d(v,b.length*8)),f=0;f<16;f+=1)T[f]=v[f]^909522486,w[f]=v[f]^1549556828;return y=d(T.concat(Jo(h)),512+h.length*8),c(d(w.concat(y),512+160))}function c(b){var h,f="",y=b.length*32;for(h=0;h>5]>>>h%32&255);return f}function d(b,h){var f,y,v,T,w=1732584193,C=4023233417,S=2562383102,A=271733878,k=3285377520,R,F,P,I,L,_,O,z,V,ie;for(b[h>>5]|=128<>>9<<4)+14]=h,T=b.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new Z6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(b=>{let f=Object.keys(b).sort().map(y=>`${this.encode(y)}=${this.encode(b[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await Q({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var fL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Rg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Fg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Rg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Rg).sort().join(`&${r}=`)}`:`${r}=${Rg(n)}`}).filter(t=>t).join("&"),Zo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,Fg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return No(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=Fg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new U(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Fg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return hL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var tx=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Bg=new Map(tx),bL=new Map(tx.map(([e,t])=>[t,e])),Ig=class extends Ee{static langMap=Bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Zo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await Q({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Bg.get(r),o={TargetLanguage:Bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Zo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await Q({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=bL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},nx=Ig;var rx=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],_g=new Map(rx),yL=new Map(rx.map(([e,t])=>[t,e])),vu=class extends Ee{static langMap=_g;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=_g.get(r)||"detect",o=_g.get(a)||a,u=await Q({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=yL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var xL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Og=new Map(xL),Su=class extends Ee{static langMap=Og;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Og.get(r)||r,target_lang:Og.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await Q({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:wg(this.serviceConfig,u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var ax=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ng=new Map(ax),vL=new Map(ax.map(([e,t])=>[t,e])),jg=class extends Ee{static langMap=Ng;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=$n(a+o+n+i);this.domain&&(l=$n(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ng.get(s)||"auto",to:Ng.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await Q({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:vL.get(g)||g,to:u,text:h.join(` -`)}}},ix=jg;var _i=class extends Ee{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await au(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await au(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?SL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return xa.detectLanguageRemotelyByTransmart(t)}};function SL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var ox=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Ug=class extends _i{static langMap=new Map(ox);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:ox,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},sx=Ug;var TL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],T0=new Map(TL),Hg=class extends Ee{static langMap=T0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!T0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await Q({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${T0.get(r)||"auto"}2${T0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},ux=Hg;var lx=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],qg=new Map(lx),CL=new Map(lx.map(([e,t])=>[t,e]));function wL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var zg=class extends Ee{static langMap=qg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=EL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+wL(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:qg.get(r)||"auto",to:qg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await Q({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` -`),from:CL.get(g),to:a}}};function EL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Gg=class extends Ee{static langMap=Wg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Wg.get(r)||"auto",to:Wg.get(a)||a},o=new URLSearchParams(i),s=await Q({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},mx=Gg;var Tu=class extends _i{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||so,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Vg=class extends ri{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},C0=Vg;var px=B+"-gemini-fake-user-key",AL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],gx=new Map(AL),Kg=class extends C0{static langMap=gx;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=tt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return gx}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ai(px,""),this.fakeId||(this.fakeId=kL(10),await ki(px,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function kL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Zr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Qg.get(r)+"-"}${Qg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await Q({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var LL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],yx=new Map(LL),wu=class extends ri{static langMap=yx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Xr(im+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Zr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return yx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(x0(im+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var ML=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],xx=new Map(ML),qn=class extends ri{static langMap=xx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return xx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var w0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return No(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Fg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return fL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var $6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Bg=new Map($6),hL=new Map($6.map(([e,t])=>[t,e])),Ig=class extends Ae{static langMap=Bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Zo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await Q({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Bg.get(r),o={TargetLanguage:Bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Zo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await Q({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=hL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},ex=Ig;var tx=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],_g=new Map(tx),bL=new Map(tx.map(([e,t])=>[t,e])),xu=class extends Ae{static langMap=_g;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=_g.get(r)||"detect",o=_g.get(a)||a,u=await Q({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=bL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var yL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Og=new Map(yL),vu=class extends Ae{static langMap=Og;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Og.get(r)||r,target_lang:Og.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await Q({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:wg(this.serviceConfig,u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var nx=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ng=new Map(nx),xL=new Map(nx.map(([e,t])=>[t,e])),jg=class extends Ae{static langMap=Ng;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=$n(a+o+n+i);this.domain&&(l=$n(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ng.get(s)||"auto",to:Ng.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await Q({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,b=p.map(({dst:f})=>f);return{from:xL.get(g)||g,to:u,text:b.join(` +`)}}},rx=jg;var Ii=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await ru(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await ru(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),b=o[p];return g==="random"?vL(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ba.detectLanguageRemotelyByTransmart(t)}};function vL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var ax=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Ug=class extends Ii{static langMap=new Map(ax);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:ax,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},ix=Ug;var TL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],T0=new Map(TL),Hg=class extends Ae{static langMap=T0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!T0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await Q({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${T0.get(r)||"auto"}2${T0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},ox=Hg;var sx=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],qg=new Map(sx),SL=new Map(sx.map(([e,t])=>[t,e]));function CL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var zg=class extends Ae{static langMap=qg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=wL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+CL(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:qg.get(r)||"auto",to:qg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await Q({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,b]=p.split("2");return{text:m.translation.join(` +`),from:SL.get(g),to:a}}};function wL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Gg=class extends Ae{static langMap=Wg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Wg.get(r)||"auto",to:Wg.get(a)||a},o=new URLSearchParams(i),s=await Q({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},cx=Gg;var Tu=class extends Ii{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||so,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Vg=class extends ni{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},S0=Vg;var dx=B+"-gemini-fake-user-key",EL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],mx=new Map(EL),Kg=class extends S0{static langMap=mx;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=tt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return mx}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ei(dx,""),this.fakeId||(this.fakeId=AL(10),await Ai(dx,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function AL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Jr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Qg.get(r)+"-"}${Qg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await Q({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var PL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],hx=new Map(PL),Cu=class extends ni{static langMap=hx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Zr(am+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Jr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return hx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(y0(am+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var LL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],bx=new Map(LL),qn=class extends ni{static langMap=bx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return bx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var C0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return No(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` `+i}}async getCanonicalRequest(t){let n=await Hn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 @@ -5851,46 +5851,46 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var E0=class extends qn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Xr(O3,async()=>{let t=await Zr({responseType:"json",url:`${tt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Jg=["glm-4-flash"],A0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Jg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Jg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Xr(N3,async()=>{let t=await Zr({responseType:"json",url:`${tt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!_r.langMap.has(n.to)||!_r.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new _r(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Jg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var k0={mock:Go,mock2:Go,custom:Tu,google:hu,transmart:bu,deepl:Ko,volc:nx,volcAlpha:vu,bing:_r,tencent:gu,tenAlpha:fu,baidu:ix,caiyun:sx,cai:ux,openl:h0,youdao:cx,you:mx,d:Wo,dpro:Wo,deeplx:Su,niu:V6,azure:K6,openai:Z6,gemini:fx,claude:bx,papago:Y6,aliyun:xu,yandex:Cu,qianfan:wu,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:w0,siliconcloud:E0,lingyiwanwu:qn,zhipu:A0};globalThis.TranslationServicesClass=k0;var ii={};Object.keys(wr).forEach(e=>{ii[e]={...wr[e],class:k0[e]}});function D0(e,t){let n=Xn;if(ii[e]&&ii[e].class&&ii[e].class.langMap&&ii[e].class.langMap.size>0){let r=ii[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function ra(e,t,n){if(!e.text)return e;let r=null,a=await Yt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function vx(e,t){for(let n of e)try{return await ra({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Zg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ht(e.user);await new ii[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function RL(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Yt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),Ea(a,t.localConfig,!1),d=await Z9(m,d,{sourceLanguage:RL(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=FL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ht(t.user),w;try{w=new ii[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){b.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let R of b){let F=A instanceof U?new U(A.name,A.message).initNetWork(A.status).initData(A.data||k):A;n(F,null,R)}}return{sentences:[]}}if(o.cache&&!ho(a))for(let A of e.sentences){v++;let k=l;l==="openl"&&(k=l+"-"+d.codename||h0.DEFAULT_CODENAME);let R=w.getCacheKeyPrefix();R&&(k=R+"-"+k);let F=null;try{F=await ql(wb({originalText:A.text,from:A.from,to:A.to,service:k}),200)}catch(P){D.warn("query cache DB error, but it's ok",P)}if(F){let P={...A,text:F.translatedText};f.sentences[v]=P,n&&n(null,P,A)}else b.push(A)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&D.debug(`use ${y-C} sentences from cache`),!b.length)return f;let T=await w.multipleTranslate({sentences:b},d,(A,k,R)=>{if(n&&n(A,k,R),!A&&k&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||h0.DEFAULT_CODENAME);let P=w.getCacheKeyPrefix();P&&(F=P+"-"+F),o.cache&&ql(Eb({translatedText:k.text,from:R.from,to:R.to,detectedFrom:k.from,key:$n(R.text),service:F}),3e3).catch(I=>{D.warn("set cache DB error",I)})}});for(let A of T?.sentences||[]){let k=f.sentences.findIndex(R=>!R);if(k===-1)throw new U("translateFailed","can not match the result");f.sentences[k]=A}return f}function FL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function Sx({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=D0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(BL,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:o6,style:{maxWidth:"unset"},class:"mx-2"}),x(IL,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function BL(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:cg(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=ei(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=ei(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function IL(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:cg(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=ei(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function oi(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Xg;function lf(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Lx(e,t=","){return e.map(lf).join(t)}var Mx=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function L0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function M0(e,t="@media "){return t+or(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function or(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function _L(){}var ln={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Rx(e){return e.match(/[-=:;]/g)?.length||0}function af(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Rx(e),15)<<18}var OL=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function cf({n:e,i:t,v:n=[]},r,a,i){e&&(e=lf({n:e,i:t,v:n})),i=[...or(i)];for(let s of n){let u=r.theme("screens",s);for(let l of or(u&&M0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|af(l):s=="dark"?1073741824:l[0]=="@"?af(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~OL.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var df=new Map;function Tx(e){if(e.d){let t=[],n=$g(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?$g(r,i=>$g(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):ef(i,o)}return ef(o,i)})):r,"&"),r=>ef(r,e.n?"."+Mx(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function $g(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function ef(e,t){return e.replace(/&/g,t)}var Cx=new Intl.Collator("en",{numeric:!0});function NL(e,t){for(var n=0,r=e.length;n>1;0>=Fx(e[a],t)?n=a+1:r=a}return r}function Fx(e,t){let n=e.p&ln.o;return n==(t.p&ln.o)&&(n==ln.b||n==ln.o)?0:e.p-t.p||e.o-t.o||Cx.compare(wx(e.n),wx(t.n))||Cx.compare(Ex(e.n),Ex(t.n))}function wx(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Ex(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function tf(e,t){return Math.round(parseInt(e,16)*t)}function si(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[tf(e.substr(1,i),o),tf(e.substr(1+i,i),o),tf(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Bx(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(..._x(s,u,pf(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of or(v))m.push(...i(S,{n:s,p:(b=ln[y[7]],u&~ln.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...or(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:ln.d,o:0,r:[y],d:i(v,{p:ln.d},d).map(Tx).join("")});continue}if(y[1]=="f"){m.push(...or(v).map(S=>({p:ln.d,o:0,r:[y],d:i(S,{p:ln.d},d).map(Tx).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+L0(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:Rx(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+or(v).map(S=>d.s(y,Ix(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(w,C)=>{let T=d.theme("screens",C);return T?(S|=67108864,M0(T,"")):w}),S|=af(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(Fx)}(e,cf(t,n,r,a),n)}function Ix(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?si(s):""+or(s).filter(u=>Object(u)!==u)})}function mf(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function of(e,t,n=ln.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=df.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=cf(u,l,c,d),mf(of(pf(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...or(d),...or(g.r)],p:(h=c,b=g.p??c,h&~ln.o|b)}}):Bx(p,u,l,c,d):[{c:lf(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(NL(i,s),0,s);return i}function _x(e,t,n,r,a,i,o,s){return mf((s?n.flatMap(u=>of([u],r,a,i,o)):of(n,r,a,i,o)).map(u=>u.p&ln.o&&(u.n||t==ln.b)?{...u,p:u.p&~ln.o|t,o:0}:u),e)}function jL(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=cf(i,o,t);return n&&_x(s,t,n,o,u,l,c,r)},df.set(e,a),e}function nf(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(UL),i:a}))}}function UL(e,t,n){return n.indexOf(e)==t}var Ax=new Map;function pf(e){let t=Ax.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&nf(n,r)),a=s+1};for(;s1?d.slice(0,-1)+L0(JSON.stringify([d,m])):d+"("+Lx(m)+")",ln.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Ax.set(e,t=r[0])}return t}function Ox(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function Nx(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ox(e,t,n=>rf(n).trim()):t.filter(Boolean).reduce((n,r)=>n+rf(r),e?rf(e):"")}function rf(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Nx(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var Ore=jx("@"),Nre=jx("~");function jx(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return Lx(pf(n+e+"("+Nx(r,a)+")"))}}function sf(e,t){return Array.isArray(e)?kx(Ox(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?kx(e):[e]}var HL=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function kx(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=HL.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function Ux(e,...t){var n;let r=sf(e,t),a=(r.find(i=>i.label)?.label||"css")+L0(JSON.stringify(r));return n=(i,o)=>mf(r.flatMap(s=>Bx(s,i,o,ln.o)),a),df.set(a,n),a}var jre=new Proxy(function(e,t){return Dx("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Dx(t,n,r)}}});function Dx(e,t,n){return{toString(){return Ux({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function Z(e,t,n){return[e,qL(t,n)]}function qL(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):uf(n,1)}):n=>e||{[n[1]]:uf(n,2)}}function uf(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,zL(t,n,r)]}function zL(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=Hx(e||a[1]),s=i.theme(o,a.$$)??Xo(a.$$,o,i);if(s!=null)return a._=uf(a,0,s),r(a,i,o)}}function Qt(e,t={},n){return[e,WL(t,n)]}function WL(e={},t){return(n,r)=>{let{section:a=Hx(n[0]).replace("-","")+"Color"}=e,[i,o]=GL(n.$$);if(!i)return;let s=r.theme(a,i)||Xo(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&Xo(o,l,r),p=t||(({_:h})=>{let b=Eu(c,h);return d?{[d]:b}:b});n._={value:si(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>si(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:si(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>si(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function GL(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Eu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Xo(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=P0(Ix(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Hx(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function P0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>P0(n)+r+P0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Ure=Symbol();var qx=new Proxy(_L,{apply(e,t,n){return Xg(n[0])},get(e,t){let n=Xg[t];return typeof n=="function"?function(){return n.apply(Xg,arguments)}:n}});var Hre=function e(t){return new Proxy(function(n,...r){return Px(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return Px(t,r,a,i)}}})}();function Px(e,t,n,r){return{toString(){let a=sf(n,r),i=Mx(t+L0(JSON.stringify([t,a])));return(typeof e=="function"?e:qx)(Ux({[`@keyframes ${i}`]:sf(n,r)})),i}}}var zx={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...sr(4,"rem",4,.5,.5),...sr(12,"rem",4,5),14:"3.5rem",...sr(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ke("blur"),backdropBrightness:Ke("brightness"),backdropContrast:Ke("contrast"),backdropGrayscale:Ke("grayscale"),backdropHueRotate:Ke("hueRotate"),backdropInvert:Ke("invert"),backdropOpacity:Ke("opacity"),backdropSaturate:Ke("saturate"),backdropSepia:Ke("sepia"),backgroundColor:Ke("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ke("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...sr(200,"",100,0,50),...sr(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ke("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ke("spacing"),borderWidth:{DEFAULT:"1px",...hr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ke("colors"),caretColor:Ke("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...sr(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ke("borderColor"),divideOpacity:Ke("borderOpacity"),divideWidth:Ke("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Au(2,6),...Au(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ke("spacing"),gradientColorStops:Ke("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Au(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Au(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...sr(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...sr(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ke("spacing"),placeholderColor:Ke("colors"),placeholderOpacity:Ke("opacity"),outlineColor:Ke("colors"),outlineOffset:hr(8,"px"),outlineWidth:hr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ke("colors"),ringOffsetWidth:hr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...hr(8,"px")},rotate:{...hr(2,"deg"),...hr(12,"deg",3),...hr(180,"deg",45)},saturate:sr(200,"",100,0,50),scale:{...sr(150,"",100,0,50),...sr(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ke("spacing"),scrollPadding:Ke("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...hr(2,"deg"),...hr(12,"deg",3)},space:Ke("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:sr(2),textColor:Ke("colors"),textDecorationColor:Ke("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...hr(8,"px")},textUnderlineOffset:{auto:"auto",...hr(8,"px")},textIndent:Ke("spacing"),textOpacity:Ke("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ke("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Au(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...sr(50,"",1,0,10),auto:"auto"}};function Au(e,t){let n={};do for(var r=1;rt(e)}var iae={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${zx.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${zx.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},sae=[Z("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Xo(`[${t}]`,"",n)}}})),Z("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),Z("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[M0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),Z("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),Z("box-(border|content)","boxSizing",({1:e})=>e+"-box"),Z("hidden",{display:"none"}),Z("table-(auto|fixed)","tableLayout"),Z(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",Z("isolate","isolation"),Z("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),Z("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",R0),Z("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),Z("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),Z("(visible|collapse)","visibility"),Z("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),Z("flex-((row|col)(-reverse)?)","flexDirection",Wx),Z("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),Z("grid-cols-(\\d+)","gridTemplateColumns",Yx),ee("col-","gridColumn"),Z("col-(span)-(\\d+)","gridColumn",Kx),ee("col-start-","gridColumnStart"),Z("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),Z("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),Z("grid-rows-(\\d+)","gridTemplateRows",Yx),ee("row-","gridRow"),Z("row-(span)-(\\d+)","gridRow",Kx),ee("row-start-","gridRowStart"),Z("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),Z("row-end-(auto|\\d+)","gridRowEnd"),Z("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>R0(Wx(e))),Z("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",Z("justify-","justifyContent",Gx),Z("(content|items|self)-",e=>({["align-"+e[1]]:Gx(e)})),Z("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",$o("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",$o("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),Z("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=or(e))[1]=="string"?{fontFamily:Or(e)}:{fontFamily:Or(e[0]),...e[1]}),Z("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),Z("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),Z("italic","fontStyle"),Z("not-italic",{fontStyle:"normal"}),Z("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ui({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),Z("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),Z("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Qt("placeholder-",{property:"color",selector:"&::placeholder"}),Z("text-(left|center|right|justify|start|end)","textAlign"),Z("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Qt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),Z("(overline|underline|line-through)","textDecorationLine"),Z("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Qt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),Z("decoration-","textDecorationStyle"),Z("(uppercase|lowercase|capitalize)","textTransform"),Z("normal-case",{textTransform:"none"}),Z("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Z("align-","verticalAlign"),Z("whitespace-","whiteSpace"),Z("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),Z("break-words",{overflowWrap:"break-word"}),Z("break-all",{wordBreak:"break-all"}),Z("break-keep",{wordBreak:"keep-all"}),Qt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Qt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),Z("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Oi(e," ")},var(--tw-gradient-stops))`),Qt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Qt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Qt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),Z("bg-(fixed|local|scroll)","backgroundAttachment"),Z("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),Z(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),Z("bg-blend-","backgroundBlendMode"),Z("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Qt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),Z("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",R0),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Oi(n[0])}-radius`]:t,[`border-${Oi(n[1])}-radius`]:t}}),Z("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),Z("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ui({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Qt("border-([xytrbl])-",{section:"borderColor"},$o("border","Color")),Qt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",$o("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),Z("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),Z("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Oi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Oi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Qt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Qt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),Z("ring-inset",{"--tw-ring-inset":"inset"}),Qt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ui({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":si(t("ringOffsetColor","","#fff")),"--tw-ring-color":si(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Qt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...ui({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Or(e),"--tw-shadow-colored":Or(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),Z("mix-blend-","mixBlendMode"),...Vx(),...Vx("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Or(e),transitionTimingFunction:e._=="none"?void 0:Or(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Or(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",Or),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Or),ee("delay(?:$|-)","transitionDelay","transitionDelay",Or),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Or(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",Z("transform",ff),Z("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Qx(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...ff()})),ee("-?(rotate)-","rotate",gf),ee("-?(translate-[xy])-","translate",gf),ee("-?(skew-[xy])-","skew",gf),Z("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",R0),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",Z("snap-(none)","scroll-snap-type"),Z("snap-(x|y|both)",({1:e})=>({...ui({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),Z("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),Z("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),Z("snap-(normal|always)","scroll-snap-stop"),Z("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",$o("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",$o("scroll-margin")),Z("touch-(auto|none|manipulation)","touch-action"),Z("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ui({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),Z("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),Z("outline",{outlineStyle:"solid"}),Z("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Qt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],Z("select-(none|text|all|auto)","userSelect"),Qt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Qt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),Z("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),Z("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function R0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Wx(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Oi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Or(e){return e&&""+(e._||e)}function Gx({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function $o(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Eu(e+"-"+Oi(a[0])+t,r),...Eu(e+"-"+Oi(a[1])+t,r)}:Eu(e+t,r)}}function Vx(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ui(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,Z(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:or(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function gf({1:e,_:t}){return{["--tw-"+e]:t,...ff()}}function ff(){return{...ui({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Qx()}),transform:"var(--tw-transform)"}}function Qx(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Kx({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Yx({1:e}){return`repeat(${e},minmax(0,1fr))`}function ui(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var F0=globalThis||(typeof window<"u"?window:self),YL=Object.create,bf=Object.defineProperty,QL=Object.getOwnPropertyDescriptor,JL=Object.getOwnPropertyNames,ZL=Object.getPrototypeOf,XL=Object.prototype.hasOwnProperty,$L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),eM=(e,t)=>{for(var n in t)bf(e,n,{get:t[n],enumerable:!0})},hf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of JL(t))!XL.call(e,a)&&a!==n&&bf(e,a,{get:()=>t[a],enumerable:!(r=QL(t,a))||r.enumerable});return e},tM=(e,t,n)=>(hf(e,t,"default"),n&&hf(n,t,"default")),Zx=(e,t,n)=>(n=e!=null?YL(ZL(e)):{},hf(t||!e||!e.__esModule?bf(n,"default",{value:e,enumerable:!0}):n,e)),Xx=$L((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof F0=="object"&&F0.global===F0?F0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),$x={};eM($x,{default:()=>B0});var nM=Zx(Xx());tM($x,Zx(Xx()));var{default:Jx,...rM}=nM,B0=Jx!==void 0?Jx:rM;function fv(e){return typeof e>"u"||e===null}function aM(e){return typeof e=="object"&&e!==null}function iM(e){return Array.isArray(e)?e:fv(e)?[]:[e]}function oM(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n{let t=await Jr({responseType:"json",url:`${tt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Jg=["glm-4-flash"],E0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Jg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Jg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Zr(_3,async()=>{let t=await Jr({responseType:"json",url:`${tt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Ir.langMap.has(n.to)||!Ir.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ir(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Jg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var A0={mock:Go,mock2:Go,custom:Tu,google:fu,transmart:hu,deepl:Ko,volc:ex,volcAlpha:xu,bing:Ir,tencent:pu,tenAlpha:gu,baidu:rx,caiyun:ix,cai:ox,openl:f0,youdao:ux,you:cx,d:Wo,dpro:Wo,deeplx:vu,niu:W6,azure:G6,openai:Q6,gemini:px,claude:fx,papago:V6,aliyun:yu,yandex:Su,qianfan:Cu,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:C0,siliconcloud:w0,lingyiwanwu:qn,zhipu:E0};globalThis.TranslationServicesClass=A0;var ai={};Object.keys(wr).forEach(e=>{ai[e]={...wr[e],class:A0[e]}});function k0(e,t){let n=Xn;if(ai[e]&&ai[e].class&&ai[e].class.langMap&&ai[e].class.langMap.size>0){let r=ai[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function _i(e,t,n){if(!e.text)return e;let r=null,a=await Yt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function yx(e,t){for(let n of e)try{return await _i({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Zg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ht(e.user);await new ai[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function ML(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Yt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),wa(a,t.localConfig,!1),d=await Q9(m,d,{sourceLanguage:ML(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=RL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let h=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,T=ht(t.user),w;try{w=new ai[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:T,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){h.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let R of h){let F=A instanceof U?new U(A.name,A.message).initNetWork(A.status).initData(A.data||k):A;n(F,null,R)}}return{sentences:[]}}if(o.cache&&!ho(a))for(let A of e.sentences){v++;let k=l;l==="openl"&&(k=l+"-"+d.codename||f0.DEFAULT_CODENAME);let R=w.getCacheKeyPrefix();R&&(k=R+"-"+k);let F=null;try{F=await Hl(Sb({originalText:A.text,from:A.from,to:A.to,service:k}),200)}catch(P){D.warn("query cache DB error, but it's ok",P)}if(F){let P={...A,text:F.translatedText};f.sentences[v]=P,n&&n(null,P,A)}else h.push(A)}else h.push(...e.sentences);let C=h.length;if(y-C>0&&D.debug(`use ${y-C} sentences from cache`),!h.length)return f;let S=await w.multipleTranslate({sentences:h},d,(A,k,R)=>{if(n&&n(A,k,R),!A&&k&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||f0.DEFAULT_CODENAME);let P=w.getCacheKeyPrefix();P&&(F=P+"-"+F),o.cache&&Hl(Cb({translatedText:k.text,from:R.from,to:R.to,detectedFrom:k.from,key:$n(R.text),service:F}),3e3).catch(I=>{D.warn("set cache DB error",I)})}});for(let A of S?.sentences||[]){let k=f.sentences.findIndex(R=>!R);if(k===-1)throw new U("translateFailed","can not match the result");f.sentences[k]=A}return f}function RL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function xx({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=k0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(FL,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:a6,style:{maxWidth:"unset"},class:"mx-2"}),x(BL,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function FL(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:cg(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=$a(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=$a(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function BL(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:cg(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=$a(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ii(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Xg;function lf(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Dx(e,t=","){return e.map(lf).join(t)}var Px=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function P0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function L0(e,t="@media "){return t+or(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function or(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function IL(){}var ln={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Lx(e){return e.match(/[-=:;]/g)?.length||0}function af(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Lx(e),15)<<18}var _L=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function cf({n:e,i:t,v:n=[]},r,a,i){e&&(e=lf({n:e,i:t,v:n})),i=[...or(i)];for(let s of n){let u=r.theme("screens",s);for(let l of or(u&&L0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|af(l):s=="dark"?1073741824:l[0]=="@"?af(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~_L.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var df=new Map;function vx(e){if(e.d){let t=[],n=$g(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?$g(r,i=>$g(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):ef(i,o)}return ef(o,i)})):r,"&"),r=>ef(r,e.n?"."+Px(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function $g(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function ef(e,t){return e.replace(/&/g,t)}var Tx=new Intl.Collator("en",{numeric:!0});function OL(e,t){for(var n=0,r=e.length;n>1;0>=Mx(e[a],t)?n=a+1:r=a}return r}function Mx(e,t){let n=e.p&ln.o;return n==(t.p&ln.o)&&(n==ln.b||n==ln.o)?0:e.p-t.p||e.o-t.o||Tx.compare(Sx(e.n),Sx(t.n))||Tx.compare(Cx(e.n),Cx(t.n))}function Sx(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Cx(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function tf(e,t){return Math.round(parseInt(e,16)*t)}function oi(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[tf(e.substr(1,i),o),tf(e.substr(1+i,i),o),tf(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Rx(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,b=0;for(let y in o||{}){var h,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...Bx(s,u,pf(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let T of or(v))m.push(...i(T,{n:s,p:(h=ln[y[7]],u&~ln.o|h),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...or(v).map(T=>({p:-1,o:0,r:[],d:y+" "+T})));continue}if(y[1]=="k"){m.push({p:ln.d,o:0,r:[y],d:i(v,{p:ln.d},d).map(vx).join("")});continue}if(y[1]=="f"){m.push(...or(v).map(T=>({p:ln.d,o:0,r:[y],d:i(T,{p:ln.d},d).map(vx).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+P0(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),b+=1,g=Math.max(g,(f=y)[0]=="-"?0:Lx(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+or(v).map(T=>d.s(y,Fx(""+T,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let T=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(w,C)=>{let S=d.theme("screens",C);return S?(T|=67108864,L0(S,"")):w}),T|=af(y)),m.push(...i(v,{n:s,p:T,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(Mx)}(e,cf(t,n,r,a),n)}function Fx(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?oi(s):""+or(s).filter(u=>Object(u)!==u)})}function mf(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function of(e,t,n=ln.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,b){let h=df.get(g.n);return h?h(g,b):b.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=cf(u,l,c,d),mf(of(pf(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var b,h;return{o:0,...g,r:[...or(d),...or(g.r)],p:(b=c,h=g.p??c,b&~ln.o|h)}}):Rx(p,u,l,c,d):[{c:lf(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(OL(i,s),0,s);return i}function Bx(e,t,n,r,a,i,o,s){return mf((s?n.flatMap(u=>of([u],r,a,i,o)):of(n,r,a,i,o)).map(u=>u.p&ln.o&&(u.n||t==ln.b)?{...u,p:u.p&~ln.o|t,o:0}:u),e)}function NL(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=cf(i,o,t);return n&&Bx(s,t,n,o,u,l,c,r)},df.set(e,a),e}function nf(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(jL),i:a}))}}function jL(e,t,n){return n.indexOf(e)==t}var wx=new Map;function pf(e){let t=wx.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&nf(n,r)),a=s+1};for(;s1?d.slice(0,-1)+P0(JSON.stringify([d,m])):d+"("+Dx(m)+")",ln.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),wx.set(e,t=r[0])}return t}function Ix(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function _x(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ix(e,t,n=>rf(n).trim()):t.filter(Boolean).reduce((n,r)=>n+rf(r),e?rf(e):"")}function rf(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=_x(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var Nre=Ox("@"),jre=Ox("~");function Ox(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return Dx(pf(n+e+"("+_x(r,a)+")"))}}function sf(e,t){return Array.isArray(e)?Ex(Ix(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Ex(e):[e]}var UL=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Ex(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=UL.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function Nx(e,...t){var n;let r=sf(e,t),a=(r.find(i=>i.label)?.label||"css")+P0(JSON.stringify(r));return n=(i,o)=>mf(r.flatMap(s=>Rx(s,i,o,ln.o)),a),df.set(a,n),a}var Ure=new Proxy(function(e,t){return Ax("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Ax(t,n,r)}}});function Ax(e,t,n){return{toString(){return Nx({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function Z(e,t,n){return[e,HL(t,n)]}function HL(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):uf(n,1)}):n=>e||{[n[1]]:uf(n,2)}}function uf(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,qL(t,n,r)]}function qL(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=jx(e||a[1]),s=i.theme(o,a.$$)??Xo(a.$$,o,i);if(s!=null)return a._=uf(a,0,s),r(a,i,o)}}function Qt(e,t={},n){return[e,zL(t,n)]}function zL(e={},t){return(n,r)=>{let{section:a=jx(n[0]).replace("-","")+"Color"}=e,[i,o]=WL(n.$$);if(!i)return;let s=r.theme(a,i)||Xo(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&Xo(o,l,r),p=t||(({_:b})=>{let h=wu(c,b);return d?{[d]:h}:h});n._={value:oi(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:b=>oi(s,b),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:oi(b,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:h=>oi(b,h),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function WL(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function wu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Xo(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=D0(Fx(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function jx(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function D0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>D0(n)+r+D0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Hre=Symbol();var Ux=new Proxy(IL,{apply(e,t,n){return Xg(n[0])},get(e,t){let n=Xg[t];return typeof n=="function"?function(){return n.apply(Xg,arguments)}:n}});var qre=function e(t){return new Proxy(function(n,...r){return kx(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return kx(t,r,a,i)}}})}();function kx(e,t,n,r){return{toString(){let a=sf(n,r),i=Px(t+P0(JSON.stringify([t,a])));return(typeof e=="function"?e:Ux)(Nx({[`@keyframes ${i}`]:sf(n,r)})),i}}}var Hx={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...sr(4,"rem",4,.5,.5),...sr(12,"rem",4,5),14:"3.5rem",...sr(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ke("blur"),backdropBrightness:Ke("brightness"),backdropContrast:Ke("contrast"),backdropGrayscale:Ke("grayscale"),backdropHueRotate:Ke("hueRotate"),backdropInvert:Ke("invert"),backdropOpacity:Ke("opacity"),backdropSaturate:Ke("saturate"),backdropSepia:Ke("sepia"),backgroundColor:Ke("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ke("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...sr(200,"",100,0,50),...sr(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ke("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ke("spacing"),borderWidth:{DEFAULT:"1px",...hr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ke("colors"),caretColor:Ke("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...sr(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ke("borderColor"),divideOpacity:Ke("borderOpacity"),divideWidth:Ke("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Eu(2,6),...Eu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ke("spacing"),gradientColorStops:Ke("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Eu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Eu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...sr(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...sr(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ke("spacing"),placeholderColor:Ke("colors"),placeholderOpacity:Ke("opacity"),outlineColor:Ke("colors"),outlineOffset:hr(8,"px"),outlineWidth:hr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ke("colors"),ringOffsetWidth:hr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...hr(8,"px")},rotate:{...hr(2,"deg"),...hr(12,"deg",3),...hr(180,"deg",45)},saturate:sr(200,"",100,0,50),scale:{...sr(150,"",100,0,50),...sr(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ke("spacing"),scrollPadding:Ke("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...hr(2,"deg"),...hr(12,"deg",3)},space:Ke("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:sr(2),textColor:Ke("colors"),textDecorationColor:Ke("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...hr(8,"px")},textUnderlineOffset:{auto:"auto",...hr(8,"px")},textIndent:Ke("spacing"),textOpacity:Ke("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ke("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Eu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...sr(50,"",1,0,10),auto:"auto"}};function Eu(e,t){let n={};do for(var r=1;rt(e)}var oae={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Hx.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Hx.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},uae=[Z("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Xo(`[${t}]`,"",n)}}})),Z("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),Z("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[L0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),Z("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),Z("box-(border|content)","boxSizing",({1:e})=>e+"-box"),Z("hidden",{display:"none"}),Z("table-(auto|fixed)","tableLayout"),Z(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",Z("isolate","isolation"),Z("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),Z("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",M0),Z("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),Z("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),Z("(visible|collapse)","visibility"),Z("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),Z("flex-((row|col)(-reverse)?)","flexDirection",qx),Z("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),Z("grid-cols-(\\d+)","gridTemplateColumns",Vx),ee("col-","gridColumn"),Z("col-(span)-(\\d+)","gridColumn",Gx),ee("col-start-","gridColumnStart"),Z("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),Z("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),Z("grid-rows-(\\d+)","gridTemplateRows",Vx),ee("row-","gridRow"),Z("row-(span)-(\\d+)","gridRow",Gx),ee("row-start-","gridRowStart"),Z("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),Z("row-end-(auto|\\d+)","gridRowEnd"),Z("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>M0(qx(e))),Z("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",Z("justify-","justifyContent",zx),Z("(content|items|self)-",e=>({["align-"+e[1]]:zx(e)})),Z("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",$o("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",$o("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),Z("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=or(e))[1]=="string"?{fontFamily:_r(e)}:{fontFamily:_r(e[0]),...e[1]}),Z("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),Z("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),Z("italic","fontStyle"),Z("not-italic",{fontStyle:"normal"}),Z("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...si({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),Z("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),Z("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Qt("placeholder-",{property:"color",selector:"&::placeholder"}),Z("text-(left|center|right|justify|start|end)","textAlign"),Z("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Qt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),Z("(overline|underline|line-through)","textDecorationLine"),Z("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Qt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),Z("decoration-","textDecorationStyle"),Z("(uppercase|lowercase|capitalize)","textTransform"),Z("normal-case",{textTransform:"none"}),Z("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Z("align-","verticalAlign"),Z("whitespace-","whiteSpace"),Z("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),Z("break-words",{overflowWrap:"break-word"}),Z("break-all",{wordBreak:"break-all"}),Z("break-keep",{wordBreak:"keep-all"}),Qt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Qt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),Z("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Oi(e," ")},var(--tw-gradient-stops))`),Qt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Qt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Qt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),Z("bg-(fixed|local|scroll)","backgroundAttachment"),Z("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),Z(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),Z("bg-blend-","backgroundBlendMode"),Z("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Qt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),Z("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",M0),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Oi(n[0])}-radius`]:t,[`border-${Oi(n[1])}-radius`]:t}}),Z("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),Z("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...si({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Qt("border-([xytrbl])-",{section:"borderColor"},$o("border","Color")),Qt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",$o("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),Z("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),Z("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Oi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Oi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Qt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Qt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),Z("ring-inset",{"--tw-ring-inset":"inset"}),Qt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":oi(t("ringOffsetColor","","#fff")),"--tw-ring-color":oi(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Qt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":_r(e),"--tw-shadow-colored":_r(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),Z("mix-blend-","mixBlendMode"),...Wx(),...Wx("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:_r(e),transitionTimingFunction:e._=="none"?void 0:_r(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:_r(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",_r),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",_r),ee("delay(?:$|-)","transitionDelay","transitionDelay",_r),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=_r(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",Z("transform",ff),Z("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Kx(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...ff()})),ee("-?(rotate)-","rotate",gf),ee("-?(translate-[xy])-","translate",gf),ee("-?(skew-[xy])-","skew",gf),Z("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",M0),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",Z("snap-(none)","scroll-snap-type"),Z("snap-(x|y|both)",({1:e})=>({...si({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),Z("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),Z("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),Z("snap-(normal|always)","scroll-snap-stop"),Z("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",$o("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",$o("scroll-margin")),Z("touch-(auto|none|manipulation)","touch-action"),Z("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...si({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),Z("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),Z("outline",{outlineStyle:"solid"}),Z("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Qt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],Z("select-(none|text|all|auto)","userSelect"),Qt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Qt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),Z("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),Z("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function M0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function qx(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Oi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function _r(e){return e&&""+(e._||e)}function zx({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function $o(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...wu(e+"-"+Oi(a[0])+t,r),...wu(e+"-"+Oi(a[1])+t,r)}:wu(e+t,r)}}function Wx(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...si(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,Z(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:or(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function gf({1:e,_:t}){return{["--tw-"+e]:t,...ff()}}function ff(){return{...si({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Kx()}),transform:"var(--tw-transform)"}}function Kx(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Gx({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Vx({1:e}){return`repeat(${e},minmax(0,1fr))`}function si(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var R0=globalThis||(typeof window<"u"?window:self),KL=Object.create,bf=Object.defineProperty,YL=Object.getOwnPropertyDescriptor,QL=Object.getOwnPropertyNames,JL=Object.getPrototypeOf,ZL=Object.prototype.hasOwnProperty,XL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$L=(e,t)=>{for(var n in t)bf(e,n,{get:t[n],enumerable:!0})},hf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of QL(t))!ZL.call(e,a)&&a!==n&&bf(e,a,{get:()=>t[a],enumerable:!(r=YL(t,a))||r.enumerable});return e},eM=(e,t,n)=>(hf(e,t,"default"),n&&hf(n,t,"default")),Qx=(e,t,n)=>(n=e!=null?KL(JL(e)):{},hf(t||!e||!e.__esModule?bf(n,"default",{value:e,enumerable:!0}):n,e)),Jx=XL((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof R0=="object"&&R0.global===R0?R0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&g||s)&&typeof FileReader<"u"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},h.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),Zx={};$L(Zx,{default:()=>F0});var tM=Qx(Jx());eM(Zx,Qx(Jx()));var{default:Yx,...nM}=tM,F0=Yx!==void 0?Yx:nM;function pv(e){return typeof e>"u"||e===null}function rM(e){return typeof e=="object"&&e!==null}function aM(e){return Array.isArray(e)?e:pv(e)?[]:[e]}function iM(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function xf(e,t){return Jt.repeat(" ",t-e.length)+e}function fM(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=yf(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Jt.repeat(" ",t.indent)+xf((e.line-u+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),r+" "+n):r}function ku(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=gv(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ku.prototype=Object.create(Error.prototype);ku.prototype.constructor=ku;ku.prototype.toString=function(e){return this.name+": "+gv(this,e)};var zn=ku;function yf(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function xf(e,t){return Jt.repeat(" ",t-e.length)+e}function gM(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=yf(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Jt.repeat(" ",t.indent)+xf((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=yf(e.buffer,r[o],a[o],e.position,d),s+=Jt.repeat(" ",t.indent)+xf((e.line+1).toString(),c)+" | "+l.str+` `,s+=Jt.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=yf(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=Jt.repeat(" ",t.indent)+xf((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var hM=fM,bM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yM=["scalar","sequence","mapping"];function xM(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function vM(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(bM.indexOf(n)===-1)throw new zn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=xM(t.styleAliases||null),yM.indexOf(this.kind)===-1)throw new zn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var xn=vM;function ev(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function SM(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zM(e){return!(e===null||!qM.test(e)||e[e.length-1]==="_")}function WM(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var VM=/^[-+]?[0-9]+e/;function KM(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jt.isNegativeZero(e))return"-0.0";return n=e.toString(10),VM.test(n)?n.replace("e",".e"):n}function YM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Jt.isNegativeZero(e))}var QM=new xn("tag:yaml.org,2002:float",{kind:"scalar",resolve:zM,construct:WM,predicate:YM,represent:KM,defaultStyle:"lowercase"}),JM=AM.extend({implicit:[LM,BM,HM,QM]}),ZM=JM,bv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function XM(e){return e===null?!1:bv.exec(e)!==null||yv.exec(e)!==null}function $M(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=bv.exec(e),t===null&&(t=yv.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function eR(e){return e.toISOString()}var tR=new xn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:XM,construct:$M,instanceOf:Date,represent:eR});function nR(e){return e==="<<"||e===null}var rR=new xn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nR}),Af=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function aR(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Af;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function iR(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Af,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function oR(e){var t="",n=0,r,a,i=e.length,o=Af;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function sR(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var uR=new xn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:aR,construct:iR,predicate:sR,represent:oR}),lR=Object.prototype.hasOwnProperty,cR=Object.prototype.toString;function dR(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var wv=new Array(256),Ev=new Array(256);for(Ni=0;Ni<256;Ni++)wv[Ni]=rv(Ni)?1:0,Ev[Ni]=rv(Ni);var Ni;function LR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||xv,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Av(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=hM(n),new zn(t,n)}function ve(e,t){throw Av(e,t)}function O0(e,t){e.onWarning&&e.onWarning.call(null,Av(e,t))}var av={YAML:function(e,t,n){var r,a,i;e.version!==null&&ve(e,"duplication of %YAML directive"),n.length!==1&&ve(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ve(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ve(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&O0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ve(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],Tv.test(r)||ve(e,"ill-formed tag handle (first argument) of the TAG directive"),ci.call(e.tagMap,r)&&ve(e,'there is a previously declared suffix for "'+r+'" tag handle'),Cv.test(a)||ve(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function li(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Jt.repeat(` -`,t-1))}function MR(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||ts(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&ts(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&ts(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&U0(e)||n&&ts(p))break;if(aa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,qt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(li(e,i,o,!1),Df(e,e.line-u),i=o=e.position,s=!1),ji(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return li(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function RR(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(li(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else aa(n)?(li(e,r,a,!0),Df(e,qt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&U0(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function FR(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return li(e,n,e.position,!0),e.position++,!0;if(s===92){if(li(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),aa(s))qt(e,!1,t);else if(s<256&&wv[s])e.result+=Ev[s],e.position++;else if((o=kR(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=AR(s))>=0?i=(i<<4)+o:ve(e,"expected hexadecimal character");e.result+=PR(i),e.position++}else ve(e,"unknown escape sequence");n=r=e.position}else aa(s)?(li(e,n,r,!0),Df(e,qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&U0(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function BR(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(qt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,qt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,rs(e,t,I0,!1,!0),b=e.tag,h=e.result,qt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),qt(e,!0,t),rs(e,t,I0,!1,!0),f=e.result),p?ns(e,s,g,b,h,f,r,a,i):d?s.push(ns(e,null,g,b,h,f,r,a,i)):s.push(h),qt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ve(e,"unexpected end of the stream within a flow collection")}function IR(e,t){var n,r,a=vf,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)vf===a?a=d===43?tv:TR:ve(e,"repeat of a chomping mode identifier");else if((c=DR(d))>=0)c===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(ji(d)){do d=e.input.charCodeAt(++e.position);while(ji(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!aa(d)&&d!==0)}for(;d!==0;){for(kf(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),aa(d)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),HM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qM(e){return!(e===null||!HM.test(e)||e[e.length-1]==="_")}function zM(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var WM=/^[-+]?[0-9]+e/;function VM(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jt.isNegativeZero(e))return"-0.0";return n=e.toString(10),WM.test(n)?n.replace("e",".e"):n}function KM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Jt.isNegativeZero(e))}var YM=new yn("tag:yaml.org,2002:float",{kind:"scalar",resolve:qM,construct:zM,predicate:KM,represent:VM,defaultStyle:"lowercase"}),QM=EM.extend({implicit:[PM,FM,UM,YM]}),JM=QM,fv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),hv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ZM(e){return e===null?!1:fv.exec(e)!==null||hv.exec(e)!==null}function XM(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=fv.exec(e),t===null&&(t=hv.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function $M(e){return e.toISOString()}var eR=new yn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ZM,construct:XM,instanceOf:Date,represent:$M});function tR(e){return e==="<<"||e===null}var nR=new yn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:tR}),Af=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function rR(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Af;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function aR(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Af,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function iR(e){var t="",n=0,r,a,i=e.length,o=Af;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function oR(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var sR=new yn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:rR,construct:aR,predicate:oR,represent:iR}),uR=Object.prototype.hasOwnProperty,lR=Object.prototype.toString;function cR(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Sv=new Array(256),Cv=new Array(256);for(Ni=0;Ni<256;Ni++)Sv[Ni]=tv(Ni)?1:0,Cv[Ni]=tv(Ni);var Ni;function PR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||bv,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function wv(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=fM(n),new zn(t,n)}function ve(e,t){throw wv(e,t)}function _0(e,t){e.onWarning&&e.onWarning.call(null,wv(e,t))}var nv={YAML:function(e,t,n){var r,a,i;e.version!==null&&ve(e,"duplication of %YAML directive"),n.length!==1&&ve(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ve(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ve(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&_0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ve(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],vv.test(r)||ve(e,"ill-formed tag handle (first argument) of the TAG directive"),li.call(e.tagMap,r)&&ve(e,'there is a previously declared suffix for "'+r+'" tag handle'),Tv.test(a)||ve(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function ui(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Jt.repeat(` +`,t-1))}function LR(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||ts(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&ts(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&ts(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&j0(e)||n&&ts(p))break;if(na(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,qt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(ui(e,i,o,!1),Df(e,e.line-u),i=o=e.position,s=!1),ji(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ui(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function MR(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ui(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else na(n)?(ui(e,r,a,!0),Df(e,qt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&j0(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function RR(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ui(e,n,e.position,!0),e.position++,!0;if(s===92){if(ui(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),na(s))qt(e,!1,t);else if(s<256&&Sv[s])e.result+=Cv[s],e.position++;else if((o=AR(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=ER(s))>=0?i=(i<<4)+o:ve(e,"expected hexadecimal character");e.result+=DR(i),e.position++}else ve(e,"unknown escape sequence");n=r=e.position}else na(s)?(ui(e,n,r,!0),Df(e,qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&j0(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function FR(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),b,h,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(qt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),h=b=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,qt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,rs(e,t,B0,!1,!0),h=e.tag,b=e.result,qt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),qt(e,!0,t),rs(e,t,B0,!1,!0),f=e.result),p?ns(e,s,g,h,b,f,r,a,i):d?s.push(ns(e,null,g,h,b,f,r,a,i)):s.push(b),qt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ve(e,"unexpected end of the stream within a flow collection")}function BR(e,t){var n,r,a=vf,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)vf===a?a=d===43?$x:TR:ve(e,"repeat of a chomping mode identifier");else if((c=kR(d))>=0)c===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(ji(d)){do d=e.input.charCodeAt(++e.position);while(ji(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!na(d)&&d!==0)}for(;d!==0;){for(kf(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),na(d)){u++;continue}if(e.lineIndentt)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),rs(e,t,_0,!0,a)&&(b?g=e.result:h=e.result),b||(ns(e,d,m,p,g,h,o,s,u),p=g=h=null),qt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function UR(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;ji(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!aa(o));break}if(aa(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&kf(e),ci.call(av,r)?av[r](e,r,a):O0(e,'unknown document directive "'+r+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):i&&ve(e,"directives end mark is expected"),rs(e,e.lineIndent-1,_0,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&wR.test(e.input.slice(t,e.position))&&O0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&U0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=kv(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(h&&(o=e.line,s=e.lineStart,u=e.position),rs(e,t,I0,!0,a)&&(h?g=e.result:b=e.result),h||(ns(e,d,m,p,g,b,o,s,u),p=g=b=null),qt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function jR(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;ji(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!na(o));break}if(na(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&kf(e),li.call(nv,r)?nv[r](e,r,a):_0(e,'unknown document directive "'+r+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):i&&ve(e,"directives end mark is expected"),rs(e,e.lineIndent-1,I0,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&CR.test(e.input.slice(t,e.position))&&_0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&j0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=Ev(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function _v(e){var t=/^\n* /;return t.test(e)}var Ov=1,wf=2,Nv=3,jv=4,es=5;function hF(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=gF(ku(e,0))&&fF(ku(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=ku(e,u),!Mu(l))return es;h=h&&lv(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=ku(e,u),l===Pu)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Mu(l))return es;h=h&&lv(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?Ov:i===Lu?es:wf:n>9&&_v(e)?es:o?i===Lu?es:wf:m?jv:Nv}function bF(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Lu?'""':"''";if(!e.noCompatMode&&(sF.indexOf(t)!==-1||uF.test(t)))return e.quotingType===Lu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return pF(e,l)}switch(hF(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case Ov:return t;case wf:return"'"+t.replace(/'/g,"''")+"'";case Nv:return"|"+cv(t,e.indent)+dv(sv(t,i));case jv:return">"+cv(t,e.indent)+dv(sv(yF(t,o),i));case es:return'"'+xF(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function cv(e,t){var n=_v(e)?String(t):"",r=e[e.length-1]===` +`+Jt.repeat(" ",e.indent*t)}function mF(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Bv(e){var t=/^\n* /;return t.test(e)}var Iv=1,wf=2,_v=3,Ov=4,es=5;function fF(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,b=pF(Au(e,0))&&gF(Au(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Au(e,u),!Lu(l))return es;b=b&&sv(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Au(e,u),l===Du)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Lu(l))return es;b=b&&sv(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?b&&!o&&!a(e)?Iv:i===Pu?es:wf:n>9&&Bv(e)?es:o?i===Pu?es:wf:m?Ov:_v}function hF(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Pu?'""':"''";if(!e.noCompatMode&&(oF.indexOf(t)!==-1||sF.test(t)))return e.quotingType===Pu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return mF(e,l)}switch(fF(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case Iv:return t;case wf:return"'"+t.replace(/'/g,"''")+"'";case _v:return"|"+uv(t,e.indent)+lv(iv(t,i));case Ov:return">"+uv(t,e.indent)+lv(iv(bF(t,o),i));case es:return'"'+yF(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function uv(e,t){var n=Bv(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function dv(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function yF(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,mv(e.slice(0,l),t)}(),a=e[0]===` +`}function lv(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function bF(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,cv(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+mv(u,t),a=i}return r}function mv(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+cv(u,t),a=i}return r}function cv(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function xF(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=ku(e,a),r=vn[n],!r&&Mu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||cF(n);return t}function vF(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&ka(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function pv(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&ka(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Cf(e,t)),e.dump&&Pu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function SF(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ka(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function TF(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Pu===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Cf(e,t)),ka(e,t+1,c,!0,d)&&(e.dump&&Pu===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function gv(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function ka(e,t,n,r,a,i,o){e.tag=null,e.dump=n,gv(e,n,!1)||gv(e,n,!0);var s=Pv.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(TF(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(SF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?pv(e,t-1,e.dump,a):pv(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(vF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&bF(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function CF(e,t){var n=[],r=[],a,i;for(Ef(e,n,r),a=0,i=r.length;ac.selected),[r,a]=G(!1),i=Ce(null),[o,s]=G(Uv),[u,l]=G(0);return Cs(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,S=g+d.height;if(v>m.clientHeight-S){let w=Math.min(y,v);l(m.clientHeight-g-w-h)}else l(0);s(Math.max(Uv,y))}},[i.current,r,t]),te(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(qv,{item:n,isDefault:!0}),f6]}),x(DF,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function DF(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return te(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(qv,{item:o,onClick:e.onClick},o.value))})}function qv(e){let t=e.item,{t:n}=se();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:qo}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var PF={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubn5+fm5ubm5ubf39/k5OTq6urm5ubn5+fm5ubm5ubm5ubl5eXm5ubl5eXk5OTn5+f///8DPFnm5ub9/////f////78//3///wCPVlosT/8/Pz+/v/+/f3+//0ZTH8FPVrv7+9osT36//8YSn7///rp6elEmLcbSnzx8fH9//xosED8//tDmLppskP5+fr19fX8/f9Gl7n6//ppsD1FmbwbSoAEP1tpr0P3+PgdTH9qr0D8///2//3s7OxEmroZSX8cSXoWSXpBl7hrsUFnsD74/P4aS4H8//hJlrJrsT9JmbsYSXzz+voDO1trr0IWTXz0+/35/vXo7vHEz9XX69EZRnccSnYMOlcDPVUIOlPw9fj0/PHr6+ve4+hKl7YtWoaeyIIbR3yAuF8HPVwQP1sHOlpsr0ni7vLJ1dzk8diEnLlTnbiTqLMEOlj29vbc7/XX3ebT3N66ydWKvtPg6NKisr15mLOq0pMbSYYkU4MWSoKZyHs5YHsjUXtvrkFlsjn5+/vl8ffU6e/v+u3q+OTm8t+sv8+Fo72LpbxfpLtHlbdGmLXD27JMm7JliKW+2aRggJ5PcJKmzpCj0YuezYmWw3eOwHOFv2x2tFiCtVRxsk51rUns+Pzs8vjk5+7Z5+rL3+ns9ujz+ebA4OO13OC+zdmgydfc79SzwtOPws/Z6MdurcfW58KUq7/M4bhrj6m01qV9lqNYe6Ox1ppXeZo/a5A1X44vW3YcSm4mUWshTmsGO19gtT3o9fb0//Xu8fPh6+3Q4evD1+S209+ozty7xtKku859tcvO5Mh3qsigs8ZlqsZapMVGlsHT479DmrSFnLNQmLDD4K9xkauDoaq42KdkhZ9QdptafpZEZZUVRWIQRlp3tk/b7O7s8uqbwsuCv8i3wsSOsLuCoLWEl7WLn6tHcpppgpemyJGjzYwzUopZeodNcIUlSIE0W24dS17P4+Li5tqLt8bI6MBGlbO43a+PoK2KoKN3j5qcxoaJwWIsLGtXAAAAFHRSTlMAIN/vcL+fEJAwYECPr8/PUIAwf2Sh0coAAAxvSURBVGjezZoHXBNXHMdlIzg6jns3SO4ukEtISAIYElBIGKFsmQICojhwsdx71lq1buu22rpHXXVvu/fee++9dz/9vwBFzAvTT9ufH+A05r75z/f4v+vWXvld592jZ29PLxrk5enj08M70K/btZSHt68nTZBnz4Du14YQ2KMBkBjeJy5KKVIgURkV1yc8sQHkG9hVgt+NvWhQ6HglRVDU+NAwzAnw6AKiew8cgvAoqhVFOTm+ncV4+GAnAaEtxYV2FuPXAxuhpNolZecw3l6AcEa53RiITYc9lUiwoi2Mj0eHzAiLozqs8WG0l3cHohHa7KkOGtOjfa7qTdN9qE6qD0TGox0MTzpMSXVayrB2ULp70UPAVV2gDKG9urfJCKW6qFCgtMEIp7qs8FYpHs2MrlI83MccfHVNFOo++p70EKqd4jiOYhiEEM/Dd4bheaqFhtC9yetmj7Zyl22+lCTkhFA8QyG4pFiWulJiGLkqvWm6rfoQEGdHjFNaAWEQxSC4vx3T+BYYJU17k4LeVp3zmbunrjy+bsOGdTPWHFlkAY8hxFIA4ZETwresfVLwfVoJOkICN/i5L++w2YxpaWkKUKrtjuH33KrFHASvY1+6Bt/nakaA+4DwLDIdGL7VmKZW/KNIY7+bbx4z55AFQ8iCsHi7ZO94d+HWZh7YmJ9mNDYjABKpUIBNxs3PKQW3qzLt1TLDfN05C9y+a8O2fopGRr9GpYLgr2p19qYanpU4yC9XJbbMMA+3mYXEJ7bMz06NTFVftm75c03J4sEDBty3qOSldVXzreC+7GzrmFcHcJyJZA9kmAfBEBKk5sBLqZGR+VvXTV0gIMQxDKQty4sJi0/dYTNmp1qzx2y8dcCaBERsLz5tGMLyBkhLuKdUYr285dXBJiDwvIQaXjSYOM5yT9WYyOzUfvlVG6ssxNjTdPfWDWG5o9Onv3xs9Wu5T4yZsQjuCZDmWoArJGkHr9xqBTPV6r+UbjqlfxsRQRPPjUjWaAbeMnWqYGARiAF/ybm5hbJZbjBIMizalKpWpBk3ieQVrDnBAsgRYdJfd0LGWpBWi2tNfnD/4WWrsrKy6p4+uHMBDjVnsFjmqNVpijkiVCQxwa7/p/vGESHTB+ZoALLdLGhBFY8s093UoIiI6OhVBydYZEkrHHkHZ/IcsVgmUaLoXg2MQDqM2HL35aQ4IZUCdPLcR+qeXdEIiQYlPR+xfEqFzPxYtRXKxrier11KkUTTga3kr/b+YSmgz86cnwhuWXhY51QEGIEVkZQUEXFT3R6LVmnJHLyr5j37dP1Exn3owVuknbt5ut7hSBl2y11rJ2pNe4dGY4DzK3roM08/M1SXlBSj+yVrv4URDYaE4qeWnE5Zayb6yxMzbiB6i5qYEa93nC82iRVFCXuzknS6aAAA4YOd6bIs37nn8egVK3QRy9+3aE12eftXsSkppUvI/vJwl1sSt3q2XjX7mAXCye7J0ulWDB26HCBPTjCzEhSMRSsuXJYF3Oj9cMlS0wo0OSln7Cxpuce9uCeh/yJ5hyPHoZ91C17zHlh1k+7wwwsn7Dz44pRChHCuSoil2DufHNo/WrdirwBdIeHNWI0mZbJA2rj64pCQKpGpdYxw6Gvx+9OfjO6/V9AaDNrMe9Nl+xWfJPfp5TpdUt39uAHcPSJWpTlJ6GBKHBQ/YkjkYSP0+tIivJo88uyqHxBe0JGMOISuTKEJ/ZNAH5jgvy14M1alShlLDIofVEki4ZXqUn3yzNV2lqVy6+reNye07JxNV4YpERExMc8vxP94tECjKp1GLPrrunkTN40vOPSa5Ml4A/LuhHTEILgLqBHSHN6i5QB59iccirGlmtgRpzlCpUDk/UmbFLRWn6OZeSfcDpnNTR3gHwjf7NVnomNidKsqOAj9Z5rY+HnprGvkoRx9SI0rbl6GSn86E2GehOIqJxWZRAiGXa7+7fOvv36lOJ2SKSz0uC4iJinpYSWHzJ/EqmIdD3KEpb4nQAj1XjlwtkpfKwkUQmjSG6MGDRp0rj7XjIrnlgflXcoLGvTdh5DDWFOejwHIlATZLtyt16j0SwRSjyRmMJqsn63JeQxD7PWDgoODQ/qOHHdu4YmykSFBDSr7PNfAYkhSTExM/2UJZoQqHSqVailDzGEvWnSFTNPM1ugfkhi4ulQe7KSElL9dPg4YDRrd940FInZXEjD6v1gIji3UA+RlhrAGe3WjaULcjyZnaByVJoNkungJbowhIPgR3KS+l+qhZgrrdBiSdQvkoXlWjkb1migSCoUI4W5LTtY7ijgOmUbljQRGAyQkBCBNKn+7iNHuycrqD5SsseA6NAwsuV0UOgJJHlgEBW4YlZcHkKCgEFBQs7B1r1BsRXrFQ4eHAoRqgjDthqClsbGxAyslDnHnGyGjg1w0F/tfypT3g7vwm2bFx8evJkLIgX9KD+3uIQMnSXNHYghgXDUqncKSEg6+iNtOrkOjin9ZFAiBJ6awfTL0VNVjWoli34CsJUNCyu5vdO69y6A0USWGLBWJKdzLBcIw9koHQD7WMhRbPw7cDwyCyu7dUT2pkEOS5WEBDFoCIYl/TBRci9EH1qw4FwhKn6VRqU4DRNo5aJwbSMjoi+NGj37rtQcMpige7HkhPiMj5UGz4NpWfAgNkoEafD1FnzHrTkli5e/KyBCgOL/1fasYcRy4+Iwmdua8dEEgNEhiq2eo22Yna/SPIuhQ9QAACFkYknexyMTBIn0+J3nmSRkghFZ/ncuixQGleiB8rtW4C9/1fQioFUhQ2Q5k59j6lJzkjKcQadEKJCy/kLhMwlyNRj+vCAGvvnXIyL5/aPHu5ixer8ci8vJLymGDCeGaz/nYQFH8grkjoaO4h1y8S0sx0Ogd+uSTCXY3uzvfqyPPMBwnbo/PUGnmTWAQz08a1detKcEhZcV4/Sp8Mx6S/lERERbGns5JRKjr1o6TjqkKVDOPmRHLog/LyARnBX1kwZBpKRmxBWfSBdLmLgAgHqQ9Ecfv+Fald5QWa6GJC9OgWIi+Cin/Pd08CVHb5xVkZBTczREgYXR3dxtujuWmf7t23+Rq+JisqFzy1uiQEEI5ln1kRvLcfYVrcwoKCl5P14o8MSQgfzqcANGGf3W7afGhQyUlJQd2mSedGxd8FSEvJOhCsZJB8rBZJ0v1qoLSiQKv5V295ev2lyAQu+929GVkP1v2/M27LFzhK2/nlQdfaUXwqBMVoijAOgItPjZDdZQHBsFbjccrvcBfBBmqqQ1Go9q6+VbOxHHKsZ9eKG+GlH9/4t1MXhAERh6mj4e2dbuSB7k2LuwtrOuh6AmCd2xQKKzqzYskXmINiDJXf/rNBdgfjbrwzYnJUZxzOedF+SzeQZy9i+N5jkMu5R7QNDf3cjP0YIfjkUrkO0cyBUZgKIaH2ROXm5vAcY3zLUl67znmbDxu8o9aeN6OkPvBBw49GXLzzVZrtnX+ulsFlmfZprkW6xRM2e5bs+24vPSTF2pra2+rwNNIN2Fv/I1OJEM2bkxLs9msl8ecGoznfy01YGWVYv6rCSaDyWDgTGaeaX2C40M2RVw5IHPGGJvNlma1bvuiJIG94jammlPv2NIUqVWb5tyDRyJmp60kQ9oafFgoIfPnrfk2tdUaaUzbMvzUEzUwihq8uGTNF1W2y9k2oyJy/rZfB+B4Ix5ixhMNaY5KIoHh/MPsXr+tn9GabVQY0xQ2Wz7IZrRa1Xh8F5mdv6kGIbwCSfDF8mRDmhMszv14cPGcfGs2ngYp1E7hQUcDZPMhg4ghDAOGXAXp4zLm9obYux90cjXrt6jx3LGBAYmtNsKgc3iJSeB5A0RE4lnIZ45veZIS0JGRLYVk/r4jM+6wpTopeBKZj0e2shkhZwnCD4ZBnMQTRrbtHj43zOu0u6e+dHzG+vUzjq+cujsT+4dBzs5AEHn4jB3W5hid42RBZBhRhEsKQyiyyGN0LH8IS1sUpyhBBBcBBBZQ90db/uSjv17tPtpoLDuJ5SiyhtCe/9EhzbU/bvo3Ds7+7SNA8mGmsisIcQgw/g/Hsg2Urhww9yYwiFVJh3bKGBGOyv392n3o3ylj4vChf0ceX+i4McrEjj2+AArw7BhGDKcJZrRpjC/dfowSEA3R6Bwmrm1EVCLd7KnOYcJCo1olYCO8/J3111kMxAZz+iiJXhofSoN6X+/X5UevfAmPXimbH73yD+x2TdQ9oCf5ITJfb4jENZRfoLe/j0/T43C9evp7X9duJ/0NaTR/fR0aPl8AAAAASUVORK5CYII=",deepl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/FBMVEUAAADn5+fm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fl5eXm5ubm5ubm5ubn5+fk5OTl5eXm5ubn5+fm5ubm5ubo6Oj///8EK0jm5ub8/Pzv7+/19fXx8fIoSWPp6enHz9bk6Ov5+frn5+f39/fs7Ozu8fMVOVQJL0v6+/sOM0/r6+twhpcjRV/o6Ojd4+dheow/XXPp7fDK0tmvvMWOoK2Jm6k8WnEZPVjZ3+O9yM+1wMmerbiaqraEl6Y0VGsqS2QgQ1zV2+DBy9K5xM1sgpRnf5BbdYhXcIREYXcvT2jn6+3Q2N2ntb+hsLuVprJ+kqFPan5LZ3w2VW1JZXqjhMOgAAAAFnRSTlMAIN/vcL8wEJBAn4+vz2Bgz6CfgFBvyuvMXgAABPdJREFUaN7Fmudy2kAQgFGjY5zYuVtJhAASzWDcwL3g3hK3vP+7RJKx1yS600qQ5BuPf2jG/thyhTulqGSW9UJxUdXAQ1MNo6DnMql5ouh5FUJQi+X0fAy5QiBouBXbqZsm8zDNumNX3EYgyudmNWSWSr7Ask0WQt22qr6nrMygSBc0z1CpMwn1wJNPqlEMAHDRIMSxkmoyBT8Ik5Ewk2m+aACooGnUcuxMuaggawwlVhhVh8XGroKmx6iGhWHEDKZAS9UiNGyWELsBqkJwqFA1WWLMKsGS1mAFHUksK6ClIx0WmxELLSJHhc1MRWpR0DGrRZHU3GJzwRJXX4UVNidWYDF83SyQevd+/47WyYXQuQQa0Y69E87504BgaYAeWvTIcT74yQPaF2b02A8rvhFZ9OZjl7/R/0EovvG7YyGyIFt+ppDnQXRZ9D+6V56s05/8d3pNucUBbbrDPsuT1exhppD+odziTneYAiBL1uEOD+f4XpowAIUayOY6F9OrSacXgxbIxgWXsvMgHSxpQiDOqMWj+HomCSUbHcjeMadwVROFgg22IAiktsaJdEcdUYMtvc++Tqijz+msCXbKUHp15KDKwnjiH2ldr63LLIIx04CcrOzNNv/AzYY/s0i64EZeehXqocODf2DsOTzOJT0mypfqO9KCbH3jHxhNHh6TJZgvBXtLLjmfPLyMLbGCubgIdrTk++ThUWyJDfmgJJ1ICXbofj+mxPSLkoFVFinBfLHO0Q5NgkXJeKPEpUh2hnfm4OnSnz8G17EkLiyndKhESpDug+Pn7CSGpOJVPgs2RYL/bM/P2bDbGm4dHFMktjccDXDoEpxza8HE2yNIHCh6kjpNgrSO3j/XtkyCc6QKJlmC/3Efxw1KxD2sJZDguDmnSLQUAEsgeWavDKMlDCCJpOv9DF5H5svfkqyfrXu/mliSeUpwq/2tzfl4tHWwzWmSmIXvBhvgXVwhSYUnt/DjaXPreH3XH8IXbY6QWrgEHYpk//1vDmLOwnUwvDXLYTHWk02sA1HigEGcIPcmD0fTmSJOkMSp/m27i0tJrKl+GRctyZboYPLwVig5ES9aOfHy25z6nK8tuMWFbMuWX3EPT+1Kr/3d3VlLLBkx2e7uk6jym1NFHl/1nttix4ktrHvRk+jCb0Cnt5zKZU38db4cfAVaFQ7W4Q5J8bLHhFQhjRvucDbW2pGK1pB5yErikZWepN1H5Kx91ZQffuQDSc7Ll4TOQUviuN1kUqowuV4pYb5ifstuHTI5jp+tgCVwmZxvL+GSXRaBC+WJJIMLl5DDfpgEG1d68IGlj6DWiyvBsgekYdVkkZxuCyTEExyDdh78MCZKMBDyURRiX3bJEgwEq+IyErvbZAkGgg3mMBrfx0SJ/ccxt06/NWn22hSJWYVy/CNbZPeGILHAEB0+U3PWR0n04TOi42AhcPeIkuhjdCQb7zJrcONJJAXJhl/9lWJebfzoCyUroM7rkqZuSy5p/s910/wvzv7FFeD/v8z869eyaFmd5YJ5ER0ysrNclWepr8zoGlQTBOPgpT8FxYgfjOni6wtEFtR4GrMCGAYZ5ROgJlrRwGok0DiEKcwFzFQyTdWqSw1+EFoWx18CzYIaeOxOaJZsyzPA4lJm5levPoW8etXBV6+yudRcSC8Uw18iy+tKap5kcnrWMN5ehysVs/oyOUm/AJAdz9mDSbxUAAAAAElFTkSuQmCC",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/FBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubn5+fm5ubn5+fk5OTm5ubl5eXn5+f///8AOJPm5ub9/f3u7u7w8PDp6ens7Oz6+vr39/f09PT6+/wCOpQvXaf19fUPRJoeT6D2+Pvq7/aPp9B4lcZSeLY8Z60VSJwGPZanutorWqbw8/ni6fPCz+aUrNKEn8tHcLFDbbAkVKMLQZjt8fjf5vHc5PHX4O7S3OzN2Op+mshqi8AnV6MaTJ4KQJejt9icstWKpM5jhb1egbtYfLhNdLM2Yqrl6/W0xd+sv9xzkcRwj8JAaq/H1Oi6yuKgtdd6l8fx9Pko+Yq1AAAAEnRSTlMAIN/vkHC/nzAQz0CvYGBQgH8Uak4vAAAFVklEQVRo3sWa51riQBSGk5CEEtTdySTUGKQXKQIWFMHedd3d+7+XlWR3k8EzBcjz+P4N+nHqHM5EEiW5o6nplBLDH8QUXVc1IylFiazFFQygpLcT0SgYqi+QyxQLectCH1hWvlDM5HyhuLGpQvJ7Cn9glywEkC/Z2YXOtryBREJdhCCTRwzynk58XRlZXzgpj7gU7HVlkurCCAsJYa0no8UACY6Msr2yp3KABE9Gl1cyI1tAK1PK4pgmHA3AU8LGqGKuSmFcRGtSxFiRBTQUnLXQ2lhZAZVEDI64uEoOxxJcjQzaEJtUgTU2JsNUkQONTVVkRswzKBJsevQVnEMRkcMp+NxUgdzdIJPBqtQwtlBkWBhrYNCLKEKKUPB1bCM2R++/7prlC9M8HDcb077DDb6+rLHFCYhzOWqZBK1hp8IJi/Ype0uIzsnrngmwN62yTmUcIzMsznJW9WXXpNA+6LLyWCUMYWXWVdkMuBjeNd4OzYByn5Vhspghjzfh/1jzwtCthePzckRvL7qQIb19M2B4jP5y7JoBox7dlISAIWdzM+ChEsrnsMrsmGqKyjfk9MIMmFeJR+F8a51QTAkSbItmyKRshnglH96Gn82qtAT79r/7FuCYP5hhJuTTH8TD5m94UsYpX8PAWQRyS1besivaxOMpAsHYYIb9ySQYLj93ice7fWboFZwH63xOigzQEi/k8/0u7C/FGx4o3qqbJF6akkEhGVD8JdNzq7rUr8afG/PeUrsETbG9XpzGJRFDaugTv+CPkJRw3AsJdPxUDk2CQ6CoT5aMLYP1uAhKEg7JpUlygwDuTZI+HJSkZMBz0HDp3DhFAH2Rb5LDO5IGDnROa/nPQRpLyeGAlaJJKi7yv2OrR2nSe2RBnoBjiyrpYOM6APIG4pz83E/wqE9/iOS5fnhwqCfsmPjgOaVHKuBZ8gY7i5fGDUoOx0CRWTiz3hGD57DKG3xwSRgjgFYommBPgluDCxcKRSSUNQcICauM1xPZ5WogK+hhM1iE4672NYKBE/4BFqEEfh8uEF65jODABykMtb4mEmTGTuEUdugzxJOoyNXfiRUsRl1Kg22l5p91FVGRrl8tHbCt6JQGeUbWFp+xlyY9uEHSWn2ZcDGfZlCLQKvfgQ+tuyBZIOB0PIcPLYN2/L57MQHncPpsc0o7fik5jOYrZdezN97Rp7s4PBJdB6MpH8elHVmohNPeJgIe7ryZ6EpMZEqdiJCNF4tcmTKmDrz+GFaxqj8ur+uvr/XrzlmX6F27fpFAZHGCMXB3Xf9EPfEdMhncE/Pe/K4zsTzpScNvQRZj4JZUypar71dx+77WuazPoJ/y7rRzWRtd+CPmKcVbcfaPoANzBQaI4i1D8kjB/kKVobjGjUVZfSiSzzfaxu5oX1TjoUL7YfrvkiDpHVwQx2UxDfeIt/jwQw/zKGRLs4cQI+w+Cfqy6+iOr3FbEdrg6PRdrXPdZktcDCzEM4S/ijpzWRqjU9FVlKSyVsLWzzlNovxMugo2JEiwAmLIXI3BpOo4rIuhT2tujbd5Pjt320Qo9usT3v55e/WVLeo91xujpus272+nT4+Iv7L9guUz5LDN1+hfdSEgJVNRXm0o9EsaO7pLmq+6bor+4oypYkdxBfj1l5nRXcvyVTa5YE4BGmBVYnv9q/LkCpf+pdU1CsSlPxdZX90YKwe8vsBmS1lNxspgwAwechwTMjwJIBriMgW+RD6HYU+Jy2TtPFNhYURM3eTtKHlL8XRKDuilko0/SH1LShtixIFXr5zg1SvVkCIhsZWGXyKLa7IUJUlDU3X93+twqbSq7Qg76Q+RUV4iwX3ziQAAAABJRU5ErkJggg==",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAACTFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj///8AU+Cz3fLm5uYquf/s7O78/Pzv7+/x8fH6+vrp6en9/f3s7OwLXOH39/f09PQCVeEpt/+53/IOXeL5/P73+v623vLy9v7k7fz+/v8foPcJWuH7/f8SYOICWeKpxvWfv/Pr7O7r6+saZeMWZOMUY+MjqPqh2fW/4fKw3PKq1vGOs/Ho6OgIZ+cEXOMHWOE4vf7v9P3q8f1JwfwkrPv29vb19fWt2PKayvDn6+8Tf+59s+1yqusLbug7fecxduZCvv3l8/vc8PrG2fit2vIZj/LR5fHE4vEYjfGczPCCq/CUxe+OwO9yoO5jn+sNdOpUk+lNj+g1eecGYuUnceQmr/zY5ftaxfvU4vpvy/nK2/iB0PijwvSm1PGJr/HZ5/DL4/DW5u98qO+Hu+53pO5rpetZj+sKa+c9guYdaOQwu//2+/7t9/7n7/0ns/3S4frP3/l0zfm40PfH5vaT1fa0zfaxyvUcmPW84fQakvOQtfLY5vAVhvDl6u/k6u/f6e/c5++CuO1kl+xmoutfk+sOd+tamOlEgektceUnbuUibOQFX+Tg6vuf3fvU7PjO6vfA1fe80veWuPKf0PHV5vDS5u+Ktu9un+1nme1Mh+lGiOhAheff8/+z4/1px/xPw/y92/qQyvl5zfg0pfemyfZttPWP0PQtm/Si0PAqhO1QiepHhekie+lVlehJieggbOP8nkxuAAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAdgSURBVGjezZrnWxNBEMbTSUJVb7MpkAIJCSYUASkiICAoKBYsiB1QsVekY++999577738Y24udzkCs8dB8vD4fuPTj5l3ZnayezKp0o5WRcckKJSYSKlQq6NVeq0skpKrNAoMSBETHxUZgj46ALAnpiQnmW0Mkc2clJySaA+ANPpwCdpRsZjIUm1mACVVW6x+Trw8DERUtN+CxCRGREksRzNcjFztT5JAoCrZMlyMNtofhJmRJPPwMGOUBMG6LBlDvBlypuxgFOIYtXxIYViTmSGr2oqVqiG4YQEyJS2YaGmpSsA4hRmmUogzcgkMBbYCbkgOxiqBEqXEeSRVYVDysDJqUIaFCVMWnkJnJDJhK1GUIucZ4VPkIp5bmIjIQndfgfOYCCkPJ8DnZrRQu2HLZoW7cgzGhBEpmTFWgaanMBFUCmS+ejDTbZ6d8+4cnJhqMBiKim/ffv1q1850cfPV/Rlx4oake3bNP5hqCGps6qF1b96/2+0RtUU1oHqrRRg75909NpYHcJhFH+Z+/Pypih5NMlaGVphGLFlZ8+4KQQiU1qIpU79ezKlkaLKHVphcrLJ23TlmgJT6uGiKK+P7s40iFSaXFkh61UEDRRO3H5rsmjBjzuY06nhRSwokaz5vBpCwhWc3GI17mgs7vBTvMY6SEIhnPkFQteiMYa7RuKbb0eijhaIbPJAsgQHm61zthh1GV0aZo82XDroiFFgcttAYQlWB+XpkWjDZaHQtznY0VlEKbFRw+lL2n3nTlrcvLxGhLDQ9IvkyTpiNHKXwpoxjAww9tlIYT3pW31j9YuYCEcj4dQTiaihH+fcYSBjrRW33Pi1ARM6CizRG6naTaYMxEAq6WilmvQLDm3tpPgrIMYtm/FmTaZMf4prhRJlL4Xwp2OWBkq36OYhX5jRKCddyEOPRmwhd3wfnS06vLc/SChTUeWq2TPtZyNQyEnAH1PkWdhbHwPN3Xx0S1AkHcppA1rEQFzEFrapnBqoGa6iWZOW6kSDQlNRzhLFtrpEVMQU5lnqhfiSmaPEkBtCtLtRHy6BO3DaeQIomByCnshFCz9eCpmhJl9ghyMZ8JGjVAqCyWEYtsYRVgx+SfwRs+tEyFbg0enKdAmPc9IGpWnjGzzAZpnCQ436Is9QDdYpKpgOXFO8zgXFjeb88pbaerDWx2kbmY0CL/RDU5YPWFp1MDQ6uqlVCHOeLQ4NoPWPiVHuIOMJ54mTzuh466mMIBCouXwHPcF/ZEurFyfE842wRmyy+uogKN8IzUgGeJXsRr7rp/Y6QION0H4armYVUHE4Ha1iJbQDkSDBZncWhy0OQcXIT1yJcx7PK9QBnsFKGMQMoh4fMWTKgyVltL1rHec7PLlYn0qBGGQQy7mJx6OrANkfrgk1vWcsFS7IRq9LhQFaHOFLy8Mv+KZONoeLOkzAgPX0Ry1b+mmoEdbwciaYLNv4Ad5A0CYyHTb2oew3ImNqMOG3OgowXL2F3e5CxZIUboTIwkj2k3TkdgEs4FmzGW+5+U2vJSgf5uyUDgmSUBQu+HmpGtSwGHCu7A0dWIT9+t1zxM1D5YoCxptsZLHhwrKhpA/IC8quAYxTPLESsLu8ZCLksDOxL8ICkjvoQyDd+qShvcIUSXBMuo6CcpWnwqB8tdmgVcK04E/HqznCFMIgfgvIPg4eWnnb8+rpYT7gJvFL4Z5sJRQhjcYuAEDl+KTWc9sDtr5bA4T6tEAkqa1jDIxpmZ/dlOLZ6aNudBtcwgNZfFXbHZaivyptPHc3IyDg+Y3Y5CtG1++BKFEMgKni5S1uaiVDFCs6SUGXfbGlpKXeiUFVc8ILLXTyByGFTmL11/sJnF9RZSIquQ4EwVhwltnCfGEfKa6ZUiPjCLdNRbtIqL2WizN/TgHSBqquELz80LERPyRez7xo5UPz70HQJjN4DDJwtPQthZySozW6UeaWEK2FxOR5Qrj4UsoBGYTsM8Wx1o7/+tevFoIw22g/TeA6iVdJ+YldtdTt7yCrRXjEIo9EnevHBWw/Lu9VdsaLEsKVHvLAayc94mu28ovAkG4WSVtqLCKXdLcLI7/BKucFR0++DPTl17hVLSpocNITzGneBAwYi9SpqfeONl8umr6RQ8i/dk3gVRVyxM1R5j1z4M2s5SCn8kQv0IBAIV2BiTz++nI6mzs6C/onq7cpdm8XQVDPgmluFrTYRSpavPudJ08u+9meuaqv3ZYm+pMQP9co2Pc1beTi37efqCnKWXb/6NHftbq+UK9uRv3wmCZsU6Wt0QDrAljCetnTw019sJJ82FCP2SDPyz02Rfzgb4SdAmJIXViXb8gjjf3iWZSmTwnlgTgAYYFdiy7CCsVkw1kn9ZEalxNaaoTOS4Ud/+ucLQw/GbAc+XxBXnGJoGFsihsMQD0aDpWPMBAG4IRmTPDgiyY7hTEnHWC1JogR/EEpdOF9HyeMULKcGBJmrLZgoYZQ27E+vNOKfXun0sogoKi4G/ohMo5LLIimtXqVTq/nP4WJjdKrRkpP0Dx8sQKsIsoHLAAAAAElFTkSuQmCC","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAACcFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj///8Abv8A3OXm5ub8/PwQd//v7+/P5P/19fXx8fHp6en9/f3n5+fs7OwAav/5+fn39/fS5v8Abf8Cb/8A2+T4+/8A2+X9/f+71P8AZ//+///7/f8AbP/t+vzr6+v4//8Wdf+i8fTo6Oga3+f1+P/z/f5r6O4R4OkH3ufv9f/H2f8bff/c/f5sq/77///o/v/x9//q9f/q8P/l8P/Y5P/A2/93pv9Fiv8eeP8NdP8HdP8Ecf/7+/vD+fv6+voZ5e0q4+sA1ucQ3eXv///z9//i7//N4v/G3v/O3f/E1f+x0P+tyf+Ww/+bvf+Ctv9Mmf9Glf82i/8rhv87hf8nhP8ggP8le/8Vev8kdP8Ibv8JbP/k/f7q/P7U/P238/Zi7/UAqPFf6/Ay5u1f5+xJ4+o84un6+//n7f/f6f/V5//S4P+72P+gyf+jwf+Rwf+Vuv+Qtv93sv9ypf9inv9Unv9Ylf8zi/8ygf8qev8leP8bdP8Mb//H/P7R+f6nzv5Yn/46j/7t/P0Afvua9vqJ9voAhPrO9/mX9fl+8/hv8vhp8fa98/UAmfWZ8PR38PSQ7fFO7PF76vBC6O8Av+xW5esi4+sAw+sM4OgA0Oi3/P/3+f/U4//I4P+vzP+fwP97tP98qv9kp/9fn/9rnv9TlP9Lj/8/iv8Kaf89kf4Qff3e+frZ+PoAkPfF8/aR8fYAkfaq8vUQqPRo7PE86fAArfAAr+8qye0H4usQ1ulC4OgX4OgA2uX2cmfLAAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAaUSURBVGjezZplc9tAEIbNlJRXOsc1pXHt2m6TtkmaJmVmZmZmZmZmZmZmZqa/VFmtu7Jyp0i2pu3zLcmM3uy+e7s3d2dQi6O6JSu7qslMBMwmqzXL4nIY9MRosZkIBVN2Fbs+Cq4sUSCY6/OGersDIBBw54W8vtygKGRzZargqFYpIeDxuoFCb6/Hn9CpYsxAwp5lFhR8eaBAnqhjS1fGaCWE5KICk5AnXRlHViIIN6jCnZ5MDSFRPtFl1TKCN5ozlYtRqJaxGjWF4Q+BZrx+YrZocMODmdIYTJa6VFUlQS+kiTdITEYVGibid0PauP0qVOxm0jAAGeBuSMz2CjU8kCEeVGFp+CBjfIoqRtTIVMWo4LkHdMHDdt9EGoJONCRV6XMzC2s3YwJ++qqsQYJu0A13kFiopntBR7w0861oul7mW+UalTUbMmjI4LYV2GKRV6+2ZDUbOa5FzpQWe1YUAJMQMadWmE1bsmpP5H7RrZVCNLmpFWYkREuylk3hkkQ2RtkVRogx7UAKxnBI9+FK7cWadiCdIpyEsc3Y3geJXX0g+YWSGdN4Dyel+0qlUJwqAymcdXDBxQUHX+QnA8nhUhhbwHYFC6yyYiBtTjfhEzSd1+aXI/e4VHKGKBVYtT/dNwRMZp7nk8xvKZbvJE5GK2CSRyoZRFzED2yO8sgcEBjJyWnRAZgEiati21t+55Er1wDabebkRNZVbL2J5AGT97yUswCrsX7RlahCvkzi5kEpWwO+8Cm0jI7nKIxUypexgtrKP8CncrpTD5rIuPbsji/24myF/jujr0ykz2OORmS3wvCyiZb0BBZHeBmXa3FUxjKbsTthioM0AhatP8hFTnJ0ug1WMMUhrJJcYLGzqUyjH4fUryWNqtVi9qKvbrCwN42F83gZc8Ncklrrh4+YIFmQzN7iE5x3sn3v1UQeyH78atehEF9TH39ex3beabCSEMuR43yS/iUlvMAnTFD4oZCfgdMlobRjjvpsg5W53mdd+iNyqvREf57/IQlk+lAQeMAho4FOb6FHmpiz5DUvUEekGF71r1NHWr9dGkPjOAyrh7+ZNJBdw2YSYHSURIYWNRCJQrRBg3bjOLT9NkDn5gBbsBJ6MCZkgJgNhCgtxG+ANN+BItvaw9KunQFGTMPf7QU6hDBFWs9PiJSUlRVD6ZmysrJzpRvCaPvaOIyqtX0JNO4qGfYrNIv0+rUQY7GFpXAuFotdrD1Zki3h813C9QWvO0uqeKNmkT9Tt+lsmFHC9z+8VvK5TQB1u3Hc1jgM3S5pk8sYIizjd+ISXBSFE3VOtZ+KX6s3DPI7b5s8eWpziN8Ps4Y9Gs8q4eMo0rQY8osLV0nqtygK+cs7CrQXIpJYn9OMUcKVqJ1+wBUeKZkNcH2LpDWOAmTgBA65U0AbwFZDNrWtHOORWF9BJCWQZtB2WF2R5gWwRvKXiYNobcVKb5Bt+qBEyYLDAPu6SPrvBoBRT+qJTG0GS7dyyG5qg6S3ehztC888z4fC4s+Sf7erYPeE8G/BERC/K7H+aZTa6qtThlbh/D8igukz3y7i3+B3wpsKYHk9SQ+7IbE+0okytFzU8durzh+Rsn3FC2N8v/qShXgLYD1247oQfcQhYwpo45dWw2d5RNQ7KclIpKioiEN6FBXtUBr2vcXdna2c823kG6GrPTjVtCrne7YgYim3uWvZhzLa1bI3Kt/cJQ5yjWgKQ+TqIU4942VbfD+xUzfcpbJ0fayvQWRzO9qGW1iOPsp6R/phICoYE5dlyyaKuMrla1fKXuhCRINGZLU8Wy6DSCV5vgqPSlvXy3D6loQS2RKpVm7Rz5wXw9LSEkjOTflyT14SOMzl1mPpnKbJZHXXoDFpeJx58IHWI73mXGrSpMnXd89y1DJl4mjs9Gh7EjtpFKDsV2bM2lWzAmpL6BBQPsGxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function H0(e){let t=PF[e];return t}function zv(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=FF(e),a=ye(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(Wv,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(LF,{...e,currentTranslationService:a})]}):null}function Wv(e){let{t}=se(),n=ye(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=Fr(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(Hv,{className:"translate-service",items:n}):x(oi,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function LF({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=RF(e,o),l=MF(e,o),c=Ae((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=ye(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Gt,{children:d.map(({label:m,items:p},g)=>x(Wv,{label:m,items:p,ctx:e},"field-"+g))})}function MF(e,t){return ye(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function RF(e,t){let{lang:n}=se();return ye(()=>{let a=X2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[wr,mp,e,n,t])}function FF({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=ye(()=>t?Z2(t,"translationService",c):[],[t,c]),m=Ae(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=ye(()=>{let g=Za(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=eb(f,e,g,l,!0),v=H0(f.id);f.id.startsWith("custom-ai")&&(v=H0("custom-ai")),f.id.startsWith("mock")&&(v="");let S=wi.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:H0("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function Gv(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Vv(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=BF(e),[o,s]=G(()=>a?"excludeMatches":"matches"),u=ye(()=>r||a||!1,[r,a]),l=Ae(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(oi,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function BF({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=ye(()=>new URL(e||""),[e]),t.config&&e&&d0(e)){c=Gv(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>Ze(e,v)),m=!!y.find(v=>Ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=Ae(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(w=>w.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=Ae((f,y)=>{if(f==="default"){s(w=>{let C={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:Mf(e,C.matches),excludeMatches:Mf(e,C.excludeMatches)}}}),h();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(w=>{let C={...w.translationUrlPattern};return C[S]=Mf(e,C[S]),C[v]=a0(y,C[v]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function Mf(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!Ze(e,n)):t):[]}async function Kv(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Rf(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Rf(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Rf(n)},r,a);return IF(i)}catch{return Promise.reject("Encryption failed")}}function IF(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=I.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let O=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),O.enableAIContext&&(L.ai_assistant="ai_context"),O&&(O.provider&&(L.translation_service_provider=O.provider),n.translationService==="openai"&&O.provider==="custom"&&(O.apiUrl?O.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),O.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=Bc(y);let O=_c(y);L.install_week=`${O.year}${O.week}`}if(n.user){let O=D1(n.user);O&&Object.keys(O).forEach(z=>{L[z]=O[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=T?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let O=n.url;try{let z=new URL(O);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...I,params:L}});if(i)return;R.forEach(async I=>{let L=await Q({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&_F(p,P),n.config.enablePerformanceReport&&jF(n,P)}catch(r){D.debug("report error",r)}}function _F(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};Yv(r);let a=Date.now()+(Math.random()*100).toFixed(0);Q({url:Is,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var OF=Date.now(),NF=["translate_page","translate_video_subtitle"];function jF(e,t){try{t.forEach(async n=>{if(!NF.includes(n.name)||e.config.performanceBlockUrls?.some(l=>Ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};Yv(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-OF},s=await Kv(JSON.stringify(o),E1,A1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);Q({url:Is,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function Yv(e){return e?.install_day&&(e.install_day=Ic(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}var UF=1e5;var Qv=Date.now();async function Da(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=HF(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,h=null;async function b(C){let{container:T,onFrame:A,onIgnoreElement:k,id:R,isLongHtml:F}=C,P=document.createTreeWalker(T,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let O=L(_);return O==NodeFilter.FILTER_ACCEPT?ft.mark(_,R,m):QF(_,O,n)&&y(),O}),I=T;if(L(I)===NodeFilter.FILTER_REJECT)return;for(ft.mark(I,R,m);I;){if(a?.interruptEffectDOM)return;let _=Date.now()-Qv;if(_>50&&(D.debug("taskTime",_,T),Qv=Date.now(),await ot(0)),s&&s.length>0){let{currentNode:O,isMatchedSelection:z}=f(P,I,s);if(O)I=O;else break;if(!z)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let O=I;if(O.nodeName==="IFRAME"){A&&A(O),y(),Ff(p,!0),I=P.nextNode();continue}O.nodeType===Node.ELEMENT_NODE&&(o&&Bf(O,o),c&&_f(O,c));let z=Kr(O,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},O.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&O.childNodes.length==1&&O.childNodes[0].nodeType===Node.TEXT_NODE&&O.innerText?.length==1&&O?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),At(O,i)&&!z){v(O);let Ie=null;for(;!(Ie=P.nextSibling())&&P.parentNode(););I=Ie;continue}let V=Bi(O);if(!Jv(p,O)||z){y(O);let Ie=z?O:O.parentElement;Ie&&Ie.childNodes.length>0&&S(p,Ie,Ie.immersiveTranslateComputedStyle||null)}V&&O.shadowRoot?.mode==="open"&&(z?A?.(O.shadowRoot):b({...C,container:O.shadowRoot})),O.nodeType===Node.ELEMENT_NODE&&At(O,n.likePreSelectors)&&u&&(F||GF(O,n.advanceTransformPreTagNewLine))}else if(I.nodeType===Node.TEXT_NODE)v(I);else throw new Error("should not be here");I=P.nextNode(),p.commonAncestorContainer&&I&&I.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(I)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ii(_)){if(c){let ie=Object.keys(c);if(ie.length>0&&At(_,ie))for(let re of ie){let N=c[re];if(_.matches(re)){let j=c[re],W=Object.keys(j);for(let me of W){let ce=j[me];_.getAttribute(me)!==ce&&(ce===null?_.removeAttribute(me):_.setAttribute(me,ce))}break}}}if(!C.force&&ft.isMarked(_,R)||v9(_,R)||q0(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!Ka(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ie=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ie,If(ie))return k&&k(_),NodeFilter.FILTER_REJECT;let Ie=Kr(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ie||null);if(_.isBlock=Ie,At(_,i)&&Ie)return NodeFilter.FILTER_REJECT}let O=_.getBoundingClientRect(),{width:z,height:V}=O;return _.nodeName==="IMG"&&(z>48&&V>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&V>0&&d!==!1&&(_.setAttribute("width",z),_.setAttribute("height",V))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||V>0&&V<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let O=_.textContent?.trim();if(!O)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:V,height:ie}=z.getBoundingClientRect();if(V>0&&V<4||ie>0&&ie<4)return NodeFilter.FILTER_REJECT}return l>0&&O.length>=l&&VF(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await b(e)}catch(C){D.error(C)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(C,T,A){let k=T.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(T))if(g=!1,T&&T.nodeType===Node.ELEMENT_NODE)if(Ru(T,A))g=!0,h=T,y(),S(p,h,k);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g}}else if(T&&T.nodeType===Node.ELEMENT_NODE)if(Ru(T,A))g=!0,h=T,y(),S(p,h,k);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};return{currentNode:T,isMatchedSelection:!0}}function y(C){let T=p.flatNodes.length-1;if(n.skipTrailTextRegex&&T>0)for(let k=T;k>=0;k--){let F=p.flatNodes[k]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(k,1);continue}break}if(C&&C.nodeName==="BR"){if(C.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=JF(C,n);let k=[...p.flatNodes],R=p.flatNodes.filter(F=>C.parentNode?.contains(F));R.length>0&&k.length!=R.length&&(p.flatNodes=R,p.flatNodes.original=k)}let A=WF(p,r,n);A&&t&&t(A),Ff(p)}function v(C){if(!Jv(p,C)){y(),Ff(p);let T=C.parentNode;T&&S(p,T,T.computedStyle)}p.flatNodes.push(C)}function S(C,T,A){C.commonAncestorContainer=T;let k=w(A);C.isPreWhitespace=k}function w(C){return C&&C.whiteSpace&&C.whiteSpace.startsWith("pre")||C&&C.whiteSpace==="break-spaces"||!1}}function Jv(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Bi(t));let r=zF(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function HF(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function qF(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Bf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function zF(e){return e&&e._currentStacks?e._currentStacks.some(t=>Bi(t)):!1}function WF(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=n0(r,a,n);o||(o=a);let s=[];for(let p of r){let g=qF(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>UF){D.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:E9(o)}}else return null}function Ff(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function If(e){return e.display==="none"}var ft={_marked_key:Q3,isMarked(e,t){return qp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Bi(e)))return Jy(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ft.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Bi(e)))return Et(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Bi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function GF(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=Un?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function VF(e,t,n){let r=e.textContent||"",a=C9(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=Hy(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function Xv(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||YF(p,a,i,o)||!zy(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function _f(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function q0(e,t){return KF(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function KF(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(e0(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function Ru(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function YF(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&q0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Vc(o,t,n))return!0}}return!1}function QF(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Kr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function JF(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Kr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function Of(e,t,n=[],r){let a=["notranslate"];return r&&a.push(o1),e&&(a.push(`${B}-target-translation-theme-${e}`),t?a.push(`${gm}-theme-${e}`):a.push(`${pm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(gm):a.push(pm),a}function Nf(e){let t=["notranslate",Bl];return e&&t.push(`${B}-target-translation-theme-${e}-inner`),t}function $v(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Fi(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let w=f.indexOf(S),C=f[w-1]===" ",T=f[w+S.length]===" ",k=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),R=Number(k);if(isNaN(R))return S;let F=o[R];if(F&&F.type==="element"){let P=rt.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(P=" "+P),T||(P=P+" "),P}else D.error("variable type not supported",F,S);return S}));let y=Of(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(i1);let v=Nf(i);return jf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:oo,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function z0(e,t,n,r,a){let i=t.original||t,o=o9(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function e5(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function t5(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=ho(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=uu(e.targetText):e.targetText=rt.sanitize(uu(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=uc(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=c9(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` -`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Fi(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return ZF({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=$v(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function Uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function ZF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",w=p[v+y.length]===" ",C=y.match(h);if(!C)return y;let T=C[1],A=Number(T);if(isNaN(A))return y;let k=o[Number(A)];if(k&&k.type==="element"){let R=rt.sanitize(k.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(R=" "+R),w||(R=R+" "),R}else if(k&&k.type==="text"){let R=k.value;return S||(R=" "+R),w||(R=R+" "),R}else D.error("variable type not supported",k,y);return y}));let b=Of(l,n,r||[],s),f=Nf(l);return jf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:oo,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function jf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Hf(e){let t=e[e.length-1];return t?t.text:""}function n5(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new ec(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=$F(u.content,t),n&&tB(a,n)&&(r=n)}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:A9(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function r5(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function XF(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` -`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=XF(o,20),u=eB(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return n0(i,document.body,t)}function eB(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function tB(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function a5(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Fl)||qf(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Fu="";async function qf(e){let t=document.title;if(!t||t.includes(Fl))return;Fu!==t&&(Fu=t);let n=await Be({text:t,pageLangs:[dt(),"en"]});if(!Ro(e,n))try{let r=await ra({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Fu,document.title=r.text+Fl+Fu)}catch(r){throw r}}function i5(e){e.rule.isTranslateTitle&&(document.title=Fu)}function as(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function W0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Jp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function yF(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Au(e,a),r=xn[n],!r&&Lu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||lF(n);return t}function xF(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Aa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function dv(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Aa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Cf(e,t)),e.dump&&Du===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function vF(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Aa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function TF(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Du===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Cf(e,t)),Aa(e,t+1,c,!0,d)&&(e.dump&&Du===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function mv(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Aa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,mv(e,n,!1)||mv(e,n,!0);var s=kv.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(TF(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(vF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?dv(e,t-1,e.dump,a):dv(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(xF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&hF(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function SF(e,t){var n=[],r=[],a,i;for(Ef(e,n,r),a=0,i=r.length;ac.selected),[r,a]=G(!1),i=Ce(null),[o,s]=G(Nv),[u,l]=G(0);return Cs(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,b=20,h=30,f=5,y=m.clientHeight-b*2,v=t.length*h+f*3,T=g+d.height;if(v>m.clientHeight-T){let w=Math.min(y,v);l(m.clientHeight-g-w-b)}else l(0);s(Math.max(Nv,y))}},[i.current,r,t]),te(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(Uv,{item:n,isDefault:!0}),p6]}),x(kF,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function kF(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return te(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(Uv,{item:o,onClick:e.onClick},o.value))})}function Uv(e){let t=e.item,{t:n}=se();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:qo}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var DF={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/1BMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubq6urf39/m5ubn5+fl5eXm5ubn5+fk5OTm5ubn5+fm5ubm5ubo6Oj///8AAADm5ubu7u78/Pzw8PD9/f0YGBj29vb19fXp6en5+fns7OyXl5fq6uoGBgYbGxvo6OiKiopmZmYODg4SEhIKCgr7+/vi4uLFxcWDg4NSUlJHR0fBwcG4uLihoaE+Pj45OTkjIyPy8vLf39/X19fR0dG8vLyysrKurq6SkpKPj492dnZhYWFaWlpDQ0M1NTUvLy8WFhb4+Pjc3NzExMTDw8N+fn5vb29qampOTk7Jycm1tbUyMjInJyepqammpqZk08NKAAAAFHRSTlMAIN/vkHC/MBDPQJ+vYGCgn4BQbzeD8L0AAAUOSURBVGjezVrpWptAFA1rQrZWO1wIAkljU5MYNXGpWu1i3Vtr1/d/lpKZa0MqzJAw+PX8UAe+8XDvucvATCkrKquGXrdUDSJoqmnqRrVSkgnFqKmQALXeLMthqOqMoNMK/LbrkQie2/aDVocR1ap5GSorFkRwfJckoO074ZSnqeSgKOtTCVptwkGb8tSWpVHMqZOQgQffWZamok+NcEkmuMvRvNAiCqpydhq1ubCnOmjFIjSmspAZoU8Whh+CZmRWg+MpoTF6NldZAAFZEgGAqmTgUCF0ydJwwwwsZQ26HskBtwtaWcjRIjnhIEtBHIgWl0VBDgksCkdz5MgLJ119FbpEErpgJfdNHWNXBrwwOStfALhEGlwAI1H0gEhEkCS+CQ6RCgfMfzkaM0HkyWI8il6fSIYP2nyEPUdnSUVnPsKUWGRJjTClUEOwvJgFGoLwAMqLGOI7FLhGCtgoEJuiL2CIO15j2KXD12wwFk6bBVhDbMhk3WY4o23zmA3XJ+IAW0GSDDny0Ub0w+lw85KNPormtcHCdwMIhYqs2Q/4TS98YINXh6KZANWssp/af7FPLxwN2Oh7VulVEK7cP81I1kf0yg4bfRL7S6WLB7G3Rlf2DNv00jsm/WAk9pciji1UYIYfHs2UN2z0QVjxaS2uC2PLO7DjOKEXN1AiX9i8alSSTcLHW0ySMfu1wS4i5VthPkaiVKCXMUnGu5gq7OF/okRiUSpRlnREz4Lu33Me/mClBVPFFSb9askQLugmNsUgIHfsr3OWKujEXWGmGCVduEhBic8I+YZ0R/FU2fBEyuslUxRcrb5NMYlKFobZa5YqKFFX1OrrJVOU7y9jvseEOaBTfCwtL8U1UhX1kgub4iuJcDNkpeXzXKqIY1gDvk+PbYZvNC3P46myhbdGgh6slQAIFxipF0Hcd2u0xB9iSH8RJYqIJLic+0e9V2x4Skdf2ODSy0kywRB6qB5nbHzPujBKdJKT5A4f9vPW1u1t9AO9N7ihgXOPQSEgEQgPV3YytumsXxjewBdeEMJ7dgoOaCB08Rn2BCFscSv92E7DVrwvn3u8ZDT5PWs0TOPA1dB3ViWHI15ZMfkFcttOxYA+/PVPrGbcAskt9df7djpO44/xw+eW+lVO0zrBVdD2yzgO4quh4z42fk7TqnLbL2behZsUcX2Yq2bc9suJ4S7WkPfzlw/7qEO8ml0Bd3X3LFX5dzbDEZnHDhroUZcPUaJU3esRiQEOP0n2/02CXSS/iVPupC7umhGJkiZKd4jeejQP3XgXt3c9pQuHUOYtuN+z2cPHs7+yO2/oPG+mXJokEfSUTLlfo0iIm1t259Xcu91Oirdq+BLUS77PkGCm22K3rvGdlSHFW7i9YqG/CoAfeYthBZO+AHSgiSQVLTkfZX74QOnlA2VHlKGHCVeIIQgTTSnOkOI/RSF0DLDCDMEA82VzBI8+cxsQStbeDaH55J9si//4PHNYr+DP6Lgh4EkURE/e+rNkbm2o6Zs0jizRVeVpt5uefuMMWZxitwCRpZsrkr1uxPE/bMtSll6eDWZLyIFZCc5SxngOgJ71yIyhQRgUt+mPUMzFjXE7eHwhOxrqYjReC9CMRaA8g+w0bgtQjeVofDFFuwN8T4lpQqfNZZgaoel5TkcpDZXyBJuJXvIdiGCtVHIfvXqWcPRqc3b0Sq+WpKDcqCcfIqsZSkkmKlVDN82H43BWXTdWMzvpD+hXjcrTZ7SLAAAAAElFTkSuQmCC",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTjyPtxhVTdV69fd+9mJlG8VUhMefQYaqmMgmRShSK6PFpIlGBKIldKqQtJY2iiBocQLToHmMzJs4Vl0FoIyKLNEJYtudnEQcpogRJC4qgZQNdJS1woQyedlXE0kgAQUaPLgJA8A0EFIM5R+ouRKCilZiB4UpjOX0xIdGZCS7yS1j9MbChUcp6y1xjIxudKmVEXOEYh8cmGNYz4rE5WKpP7kMY0pFKezUT3rlRqaspG/FQ2E5VKvGBIqVVL/JbW6gUlqoyaoVQBUMxUFtUjYxoJUDqgeGAkJwEruVuKhDOCQpHgmUOtgiIdnr6UmkmQZKZq18/N6Kx3gySL1fVUxqYmYARLWhOVuww9GwmisrkKX0F1JKjSUcWvDA0SSECxyH/r3k4kyAqjMucOU3pTrAZzRoy+0I/pVJ9eHb3p4+hORij1VKzIQ+ev59C3slVOUchYMjRekfjPFrXw1GGUSnwxMmPxlXLF8+YooQdIvYpGBgmvNvDMbk/rReG9kXaHv7QtWq54BYBUKpCi4A1j6ibx4kdUMyRIvNytG4uJRvXWyLCXva/mqVq0UYW8UK8CHQoWMqYOjVczohZAUk5Y4N6Kyksj92vUGTf8elWwkpeHIkLi1zJkTJyyVKYxPd2l4mgwjTsjkSva12jdZtiZcgJE7wxJVypTkhduKGYay7F9w/C2HbcdIHXG9bzsgKTgkCIOSM4NeDAZqFr8bECtOGPFNg6pe7uPDYUkXTeYYDLRaB5jX7FtW/tBUK664xqMreAEqfkTJNm6jp6il1L0zf1Q++3tAVKn7o48uzpvEYJ3dBcPXoBkOYHXS8pfHvBq7fo4aNCgGsxInrYPyLlWedmccEgTgFRjLZwqU5J8AEm/H6+XxH1vrWxdAxCtmZG2V9p1niwOY0U+jCKkO4NkTf8eK5iO7+IY6P7t3aYOUxvGqFq0Nzln0wtrhe+u8PqGBOk4JFeyrFVyH0UfXkq3kTytW7dNmzZ16+ZhjHIryYHJYISPCYcYMjJI+aYC5PN0bB4hlBBqwozkEcUZxRs1aDC+gE2sltBcX7duHTCh/8UuXVY/X/fpBBpKCEyJGUukalsRwRgV8g4jy7ewagmbPsLQ1d735PwWPRqQyJ67hw7duxcd+phR5NhLY7tGRYtWZSpatBxj5FhMeg0EI0IDD7T3XTSDtBt65OyGa5B77jSZ085FJgWSV9FsSLUalStXFASIRoxR4jyJ7F8PGGBkir3Lvnak8/IJmX5EkjBz3CVY8qooCmxxPapQvHgjUPHigACG/kMDcnpyPUhkir1vLxI5/BI0MBvFZlnSF0uTMG3cV9ijPgZAkOa6kDdvBS6GAIa+1QyyaGAhY+hA+8hIcvAS9JY4JQCBasWNuxPdkVLkWdLjaokcOXLkBQAQGMJWYBgZusk4edPa2aTHWBgScXH9qFbhRLfQHpZRC3GlWXq9voQgPaiSrUCHESTSDmn0ILM3VjMIRhzVah63cP6Frp/BVBaFUuJScyq10jNxAiAqp0ixmJDx9pPtyAg+iMJyhNiF3oqbqDGSPKUoZF4Bm60Sl80GiA4pCtY7TkjfpYQcrhkORhILiYCRrMWEak0d5TskRYfKBbgYARCFKo4m5AAhB+OHi8USjQi9lSh/WT8gBVM4xBFG42gCarGRMyD1VN+4kfRVRCM4BA1+TqFCheoVBAGg0I2KxpIlU3PIZQeDpc4TASMQe/UyS7Dg0RaeZTQaKwqCPwEiNBQyIX1EhlgsmBGeCMRetvRCtIXVyDAO3pK6pCAApE4d2iRevBFQrPEORvmmPPUqQmuBkexzkWFURImBrZU3oaGpuUJBgChSpBchI7tyBnRveQiEp85nhBnJPgRZKwp8QZ6KB2rSpAn8ZISa8ePPIqRL1x8+WCBisXhrlcm+Bl2Q+KqfXwTEfz8nxI/Y2ICQ/l2dGFAsSJ21VpnS2Zfhqz4m9tCKnBLfoYiI8FrVxsI/TugKpXJiiMXqlr3lXOyhFc3N43dseHh4REQE/KxVq1p9g6EPdIN9K2MkacoZPBAx9dItJ7p5/KI9TPYZ6gsygDJmTDCbkF52Xiroq18Z2Wsfc/d2p8SS77jWICgjEBIk2MSmxM5L5cQQizVxCJZ7DIDI0Ze7OwlEJU6cOF06WI3k7ACOSNoM+qqKE6PhMvTlTgMQCRoKWZuYKR0oZcpSncFb/wFNmQ0nBnQvFGvidOJaVhrV/Qv3za4pmUqVKpUq1UX4e2f7ZobgpcotMMRAGi4keCRMKvwk7UgqrkyZMpUfTmDe7ayrXDEe44cfSvFDkIlgGlOeKUmSJOMJqP8AAcHGI2HznxjrIwkiq/ghCN2RoB6rmzZtmjNnznzMSAv7Zo7gNprHFRkQ+vqZ+NEHVIsrlpsTu+kb8kE3JR1DeLWSighWKpiPxmW5D9692LhrREiIzM1H7J5PcuVqlqsF2zN9B3CEw8bUsoKPPZ4PPsTocT3MkuUo35j2a7kFBLMBpYL5AB+rdhLiKXbhE53JQnAtGMP/t4s9PRSKIwqLpWpZu+G9jt6e4Ci4FVwWYUgSZs6cVkSADcZYBZG7NeLDUZTF0o6ctmdtzhGsUmADSrVmvy9HUZCKmbjX4KWrRQJDgI3Xx5DAESO8wTxf/QxZMGrV20mgd2uW3Z2p9Xie+tsxt5xakewDuEnR/I0j239x+AyS//ljdJAKYgliICrXV3/qYF5tSPFLGl3wLmn+4XVT8C/OcIouiFeAOMUcUCdbzMD4H65lGSWwC2Y1znCeSqrzy4xFR6nK26/MyGXU6oeZMOTSH5FE4bsZrRn5+gIujdQ3jCU5xW3gZpTUe4w2uUlMwz9MmGdEBjNFKuU1xqrL4JbATMhUfP78xWiknJPNJUjbSQcEqo4VEvBXr5Tuv3qlihYlKIqqieH6S2RKOSQRRIVEk6sUih9fh1PHUMljel2k71vLQqW37j3UAAAAAElFTkSuQmCC",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/FBMVEUAAADn5+fm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fl5eXm5ubm5ubm5ubn5+fk5OTl5eXm5ubn5+fm5ubm5ubo6Oj///8EK0jm5ub8/Pzv7+/19fXx8fIoSWPp6enHz9bk6Ov5+frn5+f39/fs7Ozu8fMVOVQJL0v6+/sOM0/r6+twhpcjRV/o6Ojd4+dheow/XXPp7fDK0tmvvMWOoK2Jm6k8WnEZPVjZ3+O9yM+1wMmerbiaqraEl6Y0VGsqS2QgQ1zV2+DBy9K5xM1sgpRnf5BbdYhXcIREYXcvT2jn6+3Q2N2ntb+hsLuVprJ+kqFPan5LZ3w2VW1JZXqjhMOgAAAAFnRSTlMAIN/vcL8wEJBAn4+vz2Bgz6CfgFBvyuvMXgAABPdJREFUaN7Fmudy2kAQgFGjY5zYuVtJhAASzWDcwL3g3hK3vP+7RJKx1yS600qQ5BuPf2jG/thyhTulqGSW9UJxUdXAQ1MNo6DnMql5ouh5FUJQi+X0fAy5QiBouBXbqZsm8zDNumNX3EYgyudmNWSWSr7Ask0WQt22qr6nrMygSBc0z1CpMwn1wJNPqlEMAHDRIMSxkmoyBT8Ik5Ewk2m+aACooGnUcuxMuaggawwlVhhVh8XGroKmx6iGhWHEDKZAS9UiNGyWELsBqkJwqFA1WWLMKsGS1mAFHUksK6ClIx0WmxELLSJHhc1MRWpR0DGrRZHU3GJzwRJXX4UVNidWYDF83SyQevd+/47WyYXQuQQa0Y69E87504BgaYAeWvTIcT74yQPaF2b02A8rvhFZ9OZjl7/R/0EovvG7YyGyIFt+ppDnQXRZ9D+6V56s05/8d3pNucUBbbrDPsuT1exhppD+odziTneYAiBL1uEOD+f4XpowAIUayOY6F9OrSacXgxbIxgWXsvMgHSxpQiDOqMWj+HomCSUbHcjeMadwVROFgg22IAiktsaJdEcdUYMtvc++Tqijz+msCXbKUHp15KDKwnjiH2ldr63LLIIx04CcrOzNNv/AzYY/s0i64EZeehXqocODf2DsOTzOJT0mypfqO9KCbH3jHxhNHh6TJZgvBXtLLjmfPLyMLbGCubgIdrTk++ThUWyJDfmgJJ1ICXbofj+mxPSLkoFVFinBfLHO0Q5NgkXJeKPEpUh2hnfm4OnSnz8G17EkLiyndKhESpDug+Pn7CSGpOJVPgs2RYL/bM/P2bDbGm4dHFMktjccDXDoEpxza8HE2yNIHCh6kjpNgrSO3j/XtkyCc6QKJlmC/3Efxw1KxD2sJZDguDmnSLQUAEsgeWavDKMlDCCJpOv9DF5H5svfkqyfrXu/mliSeUpwq/2tzfl4tHWwzWmSmIXvBhvgXVwhSYUnt/DjaXPreH3XH8IXbY6QWrgEHYpk//1vDmLOwnUwvDXLYTHWk02sA1HigEGcIPcmD0fTmSJOkMSp/m27i0tJrKl+GRctyZboYPLwVig5ES9aOfHy25z6nK8tuMWFbMuWX3EPT+1Kr/3d3VlLLBkx2e7uk6jym1NFHl/1nttix4ktrHvRk+jCb0Cnt5zKZU38db4cfAVaFQ7W4Q5J8bLHhFQhjRvucDbW2pGK1pB5yErikZWepN1H5Kx91ZQffuQDSc7Ll4TOQUviuN1kUqowuV4pYb5ifstuHTI5jp+tgCVwmZxvL+GSXRaBC+WJJIMLl5DDfpgEG1d68IGlj6DWiyvBsgekYdVkkZxuCyTEExyDdh78MCZKMBDyURRiX3bJEgwEq+IyErvbZAkGgg3mMBrfx0SJ/ccxt06/NWn22hSJWYVy/CNbZPeGILHAEB0+U3PWR0n04TOi42AhcPeIkuhjdCQb7zJrcONJJAXJhl/9lWJebfzoCyUroM7rkqZuSy5p/s910/wvzv7FFeD/v8z869eyaFmd5YJ5ER0ysrNclWepr8zoGlQTBOPgpT8FxYgfjOni6wtEFtR4GrMCGAYZ5ROgJlrRwGok0DiEKcwFzFQyTdWqSw1+EFoWx18CzYIaeOxOaJZsyzPA4lJm5levPoW8etXBV6+yudRcSC8Uw18iy+tKap5kcnrWMN5ehysVs/oyOUm/AJAdz9mDSbxUAAAAAElFTkSuQmCC",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABC1BMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubl5eXn5+f///8AAADm5ubv7+/7+/thYWEQEBDf39/x8fHs7Oz9/f3p6ekgICD09PRAQED29vZJSUmAgIApKSn4+Pifn5+srKy/v78jIyNRUVFCQkIICAiWlpaDg4NGRkYcHBwMDAy8vLwEBATMzMyOjo51dXVxcXFlZWU0NDTo6OiIiIh5eXlqampWVlY+Pj7Pz8+jo6Nubm48PDwUFBSZmZmLi4s4ODgrKyvj4+PX19fIyMjCwsKxsbGnp6ehoaGQkJAvLy/a2trU1NS3t7d9fX1cXFxOTk5MTEzR0dEmKtMGAAAAEXRSTlMAIN/vkHC/nzAQz2BAr1CAf28vdC8AAAaASURBVGjezVp5X9pAEOVIwm272QRCEhCRQ1REsXhbtZfWo/Zuv/8n6exuwiJhQjD8/PX90bq18DLz3sxOsklERW5FVUr5VJoC0ilNU9RiLrFMJNVMis5AqlTILoehqAgCu1pvmKZDAI7ZatSrtiDKFOMy5F7nKcBomGQGzIbhMp5CMgZFVmESVFskBC3Ok3kuTVJjSZIMKBrGc2lyCgvCJJFgPo9GTQMFVzkyDWizcKZsNAqcRksuFIbbIAuj4dK0uoAahszUgsEo0VIFlVEnz0QdlElG4EhR1yTPhulGYMmmqe2QGDBtms7O5TBITBiSBeOoktiohrIkJUdclmSI5gZZCgxc/RS1yZJg0/zsfVOR3o0Nx51dlSqlkiM2TErVmaLXyRJRnyW+hogeQ3xtmqOACBJLFjXg3sbcS3v8U9N1vfLu4HO0zk/TTx2WmZss93RLH+PTfjQfK08Cmeush/f6E4ycSA5LLhJIU2dYv9ruXP7cEcEYUdqLhgSCcrzteivrjC03BvDHUe+hGqI9pdnIgezpgDdEoqNL7J5ZIaEoUQNp1J5yGAdb+iRqHVQVabDCnEA+wBedymW/ojN8Pdxun/SAH9DEDfbKI5lXIxtwseOW0/2qM2ze+ZnbkLkMokXzgqNIXYKjezWY+JLvm8Ja3WlXYIVDaXGu7BerOsc3IcaIi/H+ixPwXs0Jlz5F0cn9oy6wwVcnXIxhM2DaA1yWFk3x4QHNlnOgA7bg6lc5B+frWb6vT8ctzAD2dTRfyVBv/dQBZWPNI1mbLMi/q+x3PmEfFndIW+W9uIR56wsL456QMQmI4TvzwCvEpvisBT+fYJtXhktizv4tK4EfZIIE/uIwWKVUeqIQ24ShBmFh9Qii5OgxmYltcXVBknvGfmgQS9CsX8C/vdP1HVSUHFSJjZcgCZLcvtVhfSEKEeiENKvwb2jRryRUZGjch09vB0jsss5wcOOHK2hO4Yp+o01STSjIkPI4LkFJciTEGEKM27LtexihY4uS0BBzjcA7ZIpE98QoMylufZqeILlHt/pSQkPq/Rx2pKckO1KM/XX4+RerEilNB233edTBv+Bip0kGe8RHu8KkoROtoWLhHk5TB0vX1jTJJpGAWLg0sjlsYntwOkEpvlPdhpKslhmNFxwzdhcrFJTkm+isInGVzgySMvn+lVWJ7TeWtQVJRBFXDP75I/iCcytIwqSBFt3n6x777wuTtOGrr7wfa+znoxkkpOI3rQd0e6QUFZ4413Ircj4OYBFK4rIOgQgvLIw2Fr0/WdmVS7kPDKdICLskzMJ5ToLPjRsX3urzJ1jtiGK4A5mikrSoJvYsvNl7+5+U5tAiLogcIDGwwahBNbRBAn7rAlv9qj9YwGw/ONuFxH2Y1mQPKxRokLzV4yY+OpT7H4PF17sjIyA8VObQxlr9CrVDJsczYonme/1djHpMjDUr6C6rgvUVmxb59ouTHHIpfGncc29gCZKwFnOJbr+Yh0U/eif62IAnqQdiDNrOrDo5YT7EB4lEBlW+PO4UN1eeBZpiTZz+ZJ2ISdNCNsYSkKjocHcJn9zzFT8XDUxgrzZp4X0uWxMb7gpAkkRFMSoiXwL3p12/LMVozx03hGhDb1Fcmg0fuJuzBkNjpDMMHngy/Hu6R4IP3AwKWinG+8DeXW3yC6/0RY5/CI7fFv7wIyNugnATt3XARyLxw7OzX1t8bhldEBQuVAlHHr9BOeV3h776XXFL9PaWeLCGfDzF0YBsCbwSRY+z6LXzN+3t8kCIMVFzPZFOHDZ4SyCXDrnFflPRx5BiSGNcR3zwgUsP4POixP5EmV2x8pSSo7ILZOmxQ3BY7T/XrG3U+G3PjV+Q18jciD3B0WQoYWTcWsM/zU7n8QzcLbcpPBDsURSOG545iVqXzA9EQon4SPhyY8ID0C2jBSIN1iCRcHf4aRdyVjv/MIeC1AOPuVXqItrHOEkpvNQj25d/+AwJO17yY3TkQMBZniDIMV0uv8yjjdSLHdK8/HHT8g/OXvAIEGexYznZsYHjfziW5SzHcQ6Y8whHoCqp8axgHHZUnlvg0L8e89B/PpLa4sGYNvL6Ao5CajEap0rxMPBgMjQ6jQkUUo3FaSLsyi2bIpmKTOMarVAGFkRaycZ56aqQ4jx17IUlCsi/yiViopiRr161/FevTPnqlVJMLAXZQmn2S2QZNZlYJnJFVdE0/3W4fElRVyIn6R/bSlMcAJnwXgAAAABJRU5ErkJggg==",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function U0(e){let t=DF[e];return t}function Hv(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=RF(e),a=ye(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(qv,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(PF,{...e,currentTranslationService:a})]}):null}function qv(e){let{t}=se(),n=ye(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=Ca(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(jv,{className:"translate-service",items:n}):x(ii,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function PF({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=MF(e,o),l=LF(e,o),c=ke((m,p)=>{t(g=>{let b=g.translationServices||{},h=b[u.id]||{};return{...g,translationServices:{...b,[u.id]:{...h,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=ye(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[m.name],onSelected:h=>{if(b.action=="jumpOptions"){let f=b.args||[];r(...f);return}c(m.name,b.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Gt,{children:d.map(({label:m,items:p},g)=>x(qv,{label:m,items:p,ctx:e},"field-"+g))})}function LF(e,t){return ye(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function MF(e,t){let{lang:n}=se();return ye(()=>{let a=J2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[wr,mp,e,n,t])}function RF({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=ye(()=>t?Q2(t,"translationService",c):[],[t,c]),m=ke(g=>{let b=d.find(h=>h.id===g.value);if(b.ok){if(u({translationService:b.id}),n(h=>(a(h.translationService||"",b.id),{...h,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(h=>({...h,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=ye(()=>{let g=Ja(t.config),h=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=X2(f,e,g,l,!0),v=U0(f.id);f.id.startsWith("custom-ai")&&(v=U0("custom-ai")),f.id.startsWith("mock")&&(v="");let T=Ci.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:T,isShowGoSetting:!f.ok&&!T}});return h.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:U0("more"),onSelected:()=>{s(!1,"#services")}}),h},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function zv(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Wv(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=FF(e),[o,s]=G(()=>a?"excludeMatches":"matches"),u=ye(()=>r||a||!1,[r,a]),l=ke(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(ii,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function FF({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=ye(()=>new URL(e||""),[e]),t.config&&e&&c0(e)){c=zv(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>Ze(e,v)),m=!!y.find(v=>Ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let b=ke(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(w=>w.match!==f),T=!1;v.length!==y.length&&(T=!0),T&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),h=ke((f,y)=>{if(f==="default"){s(w=>{let C={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:Mf(e,C.matches),excludeMatches:Mf(e,C.excludeMatches)}}}),b();return}let v=f,T=v==="matches"?"excludeMatches":"matches";l&&s(w=>{let C={...w.translationUrlPattern};return C[T]=Mf(e,C[T]),C[v]=r0(y,C[v]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:h}}function Mf(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!Ze(e,n)):t):[]}async function Gv(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Rf(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Rf(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Rf(n)},r,a);return BF(i)}catch{return Promise.reject("Encryption failed")}}function BF(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=I.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let O=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),O.enableAIContext&&(L.ai_assistant="ai_context"),O&&(O.provider&&(L.translation_service_provider=O.provider),n.translationService==="openai"&&O.provider==="custom"&&(O.apiUrl?O.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),O.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=Fc(y);let O=Ic(y);L.install_week=`${O.year}${O.week}`}if(n.user){let O=A1(n.user);O&&Object.keys(O).forEach(z=>{L[z]=O[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=S?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let O=n.url;try{let z=new URL(O);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),h&&(L.ab_group=h),L.campaign=f||"none",{...I,params:L}});if(i)return;R.forEach(async I=>{let L=await Q({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&IF(p,P),n.config.enablePerformanceReport&&NF(n,P)}catch(r){D.debug("report error",r)}}function IF(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};Vv(r);let a=Date.now()+(Math.random()*100).toFixed(0);Q({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var _F=Date.now(),OF=["translate_page","translate_video_subtitle"];function NF(e,t){try{t.forEach(async n=>{if(!OF.includes(n.name)||e.config.performanceBlockUrls?.some(l=>Ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};Vv(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-_F},s=await Gv(JSON.stringify(o),C1,w1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);Q({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function Vv(e){return e?.install_day&&(e.install_day=Bc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}var jF=1e5;var Kv=Date.now();async function ka(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=UF(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,b=null;async function h(C){let{container:S,onFrame:A,onIgnoreElement:k,id:R,isLongHtml:F}=C,P=document.createTreeWalker(S,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let O=L(_);return O==NodeFilter.FILTER_ACCEPT?ft.mark(_,R,m):YF(_,O,n)&&y(),O}),I=S;if(L(I)===NodeFilter.FILTER_REJECT)return;for(ft.mark(I,R,m);I;){if(a?.interruptEffectDOM)return;let _=Date.now()-Kv;if(_>50&&(D.debug("taskTime",_,S),Kv=Date.now(),await it(0)),s&&s.length>0){let{currentNode:O,isMatchedSelection:z}=f(P,I,s);if(O)I=O;else break;if(!z)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let O=I;if(O.nodeName==="IFRAME"){A&&A(O),y(),Ff(p,!0),I=P.nextNode();continue}O.nodeType===Node.ELEMENT_NODE&&(o&&Bf(O,o),c&&_f(O,c));let z=Vr(O,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},O.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&O.childNodes.length==1&&O.childNodes[0].nodeType===Node.TEXT_NODE&&O.innerText?.length==1&&O?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),At(O,i)&&!z){v(O);let Be=null;for(;!(Be=P.nextSibling())&&P.parentNode(););I=Be;continue}let V=Fi(O);if(!Yv(p,O)||z){y(O);let Be=z?O:O.parentElement;Be&&Be.childNodes.length>0&&T(p,Be,Be.immersiveTranslateComputedStyle||null)}V&&O.shadowRoot?.mode==="open"&&(z?A?.(O.shadowRoot):h({...C,container:O.shadowRoot})),O.nodeType===Node.ELEMENT_NODE&&At(O,n.likePreSelectors)&&u&&(F||WF(O,n.advanceTransformPreTagNewLine))}else if(I.nodeType===Node.TEXT_NODE)v(I);else throw new Error("should not be here");I=P.nextNode(),p.commonAncestorContainer&&I&&I.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(I)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bi(_)){if(c){let ie=Object.keys(c);if(ie.length>0&&At(_,ie))for(let re of ie){let N=c[re];if(_.matches(re)){let j=c[re],W=Object.keys(j);for(let me of W){let ce=j[me];_.getAttribute(me)!==ce&&(ce===null?_.removeAttribute(me):_.setAttribute(me,ce))}break}}}if(!C.force&&ft.isMarked(_,R)||y9(_,R)||H0(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!Va(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ie=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ie,If(ie))return k&&k(_),NodeFilter.FILTER_REJECT;let Be=Vr(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ie||null);if(_.isBlock=Be,At(_,i)&&Be)return NodeFilter.FILTER_REJECT}let O=_.getBoundingClientRect(),{width:z,height:V}=O;return _.nodeName==="IMG"&&(z>48&&V>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&V>0&&d!==!1&&(_.setAttribute("width",z),_.setAttribute("height",V))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||V>0&&V<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let O=_.textContent?.trim();if(!O)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:V,height:ie}=z.getBoundingClientRect();if(V>0&&V<4||ie>0&&ie<4)return NodeFilter.FILTER_REJECT}return l>0&&O.length>=l&&GF(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await h(e)}catch(C){D.error(C)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(C,S,A){let k=S.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(S))if(g=!1,S&&S.nodeType===Node.ELEMENT_NODE)if(Mu(S,A))g=!0,b=S,y(),T(p,b,k);else return g=!1,S=C.nextNode(),{currentNode:S,isMatchedSelection:g};else return g=!1,S=C.nextNode(),{currentNode:S,isMatchedSelection:g}}else if(S&&S.nodeType===Node.ELEMENT_NODE)if(Mu(S,A))g=!0,b=S,y(),T(p,b,k);else return g=!1,S=C.nextNode(),{currentNode:S,isMatchedSelection:g};else return g=!1,S=C.nextNode(),{currentNode:S,isMatchedSelection:g};return{currentNode:S,isMatchedSelection:!0}}function y(C){let S=p.flatNodes.length-1;if(n.skipTrailTextRegex&&S>0)for(let k=S;k>=0;k--){let F=p.flatNodes[k]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(k,1);continue}break}if(C&&C.nodeName==="BR"){if(C.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=QF(C,n);let k=[...p.flatNodes],R=p.flatNodes.filter(F=>C.parentNode?.contains(F));R.length>0&&k.length!=R.length&&(p.flatNodes=R,p.flatNodes.original=k)}let A=zF(p,r,n);A&&t&&t(A),Ff(p)}function v(C){if(!Yv(p,C)){y(),Ff(p);let S=C.parentNode;S&&T(p,S,S.computedStyle)}p.flatNodes.push(C)}function T(C,S,A){C.commonAncestorContainer=S;let k=w(A);C.isPreWhitespace=k}function w(C){return C&&C.whiteSpace&&C.whiteSpace.startsWith("pre")||C&&C.whiteSpace==="break-spaces"||!1}}function Yv(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Fi(t));let r=qF(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function UF(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function HF(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Bf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function qF(e){return e&&e._currentStacks?e._currentStacks.some(t=>Fi(t)):!1}function zF(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=t0(r,a,n);o||(o=a);let s=[];for(let p of r){let g=HF(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>jF){D.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:C9(o)}}else return null}function Ff(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function If(e){return e.display==="none"}var ft={_marked_key:K3,isMarked(e,t){return qp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Fi(e)))return Yy(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ft.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Fi(e)))return Et(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Fi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function WF(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=In?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function GF(e,t,n){let r=e.textContent||"",a=T9(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=jy(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function Jv(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let b=c[g];if(g==="translate"&&b==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||KF(p,a,i,o)||!Hy(f,n,r))continue}p.getAttribute(g)!==b&&(b===null?p.removeAttribute(g):p.setAttribute(g,b))}})}}function _f(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function H0(e,t){return VF(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function VF(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if($c(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function Mu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function KF(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&H0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Gc(o,t,n))return!0}}return!1}function YF(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Vr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function QF(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Vr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function Of(e,t,n=[],r){let a=["notranslate"];return r&&a.push(a1),e&&(a.push(`${B}-target-translation-theme-${e}`),t?a.push(`${gm}-theme-${e}`):a.push(`${pm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(gm):a.push(pm),a}function Nf(e){let t=["notranslate",Fl];return e&&t.push(`${B}-target-translation-theme-${e}-inner`),t}function Zv(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Ri(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],b=`${p}(\\d+)${g}`,h=new RegExp(b,"g"),f=u;o.length>0&&(f=f.replace(h,T=>{let w=f.indexOf(T),C=f[w-1]===" ",S=f[w+T.length]===" ",k=T.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),R=Number(k);if(isNaN(R))return T;let F=o[R];if(F&&F.type==="element"){let P=rt.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(P=" "+P),S||(P=P+" "),P}else D.error("variable type not supported",F,T);return T}));let y=Of(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(r1);let v=Nf(i);return jf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:oo,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function q0(e,t,n,r,a){let i=t.original||t,o=a9(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(T=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function Xv(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function $v(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=ho(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=su(e.targetText):e.targetText=rt.sanitize(su(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=sc(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=u9(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` +`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Ri(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return JF({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=Zv(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function Uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function JF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),T=p[v-1]===" ",w=p[v+y.length]===" ",C=y.match(b);if(!C)return y;let S=C[1],A=Number(S);if(isNaN(A))return y;let k=o[Number(A)];if(k&&k.type==="element"){let R=rt.sanitize(k.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return T||(R=" "+R),w||(R=R+" "),R}else if(k&&k.type==="text"){let R=k.value;return T||(R=" "+R),w||(R=R+" "),R}else D.error("variable type not supported",k,y);return y}));let h=Of(l,n,r||[],s),f=Nf(l);return jf({targetWrapperTag:a,innerClassList:f,classList:h,html:p,targetElementEffectAttributeName:oo,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function jf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Hf(e){let t=e[e.length-1];return t?t.text:""}function e5(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new $l(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=XF(u.content,t),n&&eB(a,n)&&(r=n)}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:w9(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function t5(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function ZF(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` +`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=ZF(o,20),u=$F(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return t0(i,document.body,t)}function $F(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function eB(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function n5(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Rl)||qf(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Ru="";async function qf(e){let t=document.title;if(!t||t.includes(Rl))return;Ru!==t&&(Ru=t);let n=await je({text:t,pageLangs:[dt(),"en"]});if(!Ro(e,n))try{let r=await _i({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Ru,document.title=r.text+Rl+Ru)}catch(r){throw r}}function r5(e){e.rule.isTranslateTitle&&(document.title=Ru)}function as(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function z0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Jp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function o5(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Jp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function a5(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Jp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${B}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function G0(e){let t=g9(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function an(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Gp(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var nB={sanitize:e=>e};async function Vf(e,t){if(e.interruptEffectDOM)return;wa("consumeContainer");let n=an(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Hi.bind(null,e),onFrame:r=>{zf(e,r,!0)},onIgnoreElement:r=>{ft.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),ro&&Et(t,"consumeContainer",e.id)}function zf(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Ka(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${dm}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Qr(t.contentWindow?.document.documentElement,e.translateState),mi(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),mi(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function mi(e,t,n=!0){wa("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=an(t.ctx),o=0;if(l(t,e,n))return;if(Ii(e)&&u(e)){ft.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ii(d)&&(a&&Bf(d,a),i&&_f(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ft.clearMark(c),t.immediateTranslateCapacity>=0){await Vf(t,c);let d=Date.now()-r;d>100&&(D.debug("batchTaskTime",d,c),r=Date.now(),await ot(0))}else ro&&Et(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return zf(t,c.shadowRoot,n),!1;if(d==="iframe")return zf(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Ru(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&Ru(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(We()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){r5(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ft.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=an(c.ctx);return!!(q0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Bu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ft.isSkipMarkEle(a)&&!ft.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ui(t.rootNodes),r=="original"&&n=="translation"){let s=is(e,t.rootNodes);if(Wf(s))return;di(e,s,a,t.targetNodes||[]),Ui(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=is(e,t.targetNodes,s);di(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=is(e,t.rootNodes);if(Wf(s))return;di(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=is(e,t.targetNodes);di(e,s,a,t.rootNodes||[]),Ui(t.targetNodes)}r=="dual"&&n=="original"&&Ui(t.targetNodes),Qf(t)}catch(s){D.error(s)}wa("inserted"),P9()}}function Wf(e){return!e||!Ii(e)?!1:e.classList.contains(Lt)}function is(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ui(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function di(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var rB=Jn(V0,300);async function Hi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;wa("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||aB(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ro&&Et(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Fi(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=z0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:G0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Yf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Yr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(D.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),iB(e,t.text),Kf(e,t,r)):(ro&&Et(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function aB(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ii(t)&&t.classList.contains(Lt):!1}function iB(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Kf(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;wa("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),ro&&Et(t.commonAncestorContainer,"consumeParagraph",e.id),Et(t.commonAncestorContainer,J3,"1",!0),n=="hover"){V0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";rB.call(e,e.ctx,a)}async function V0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await K0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function K0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=cu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;di(t,u,i.commonAncestorContainer,[s]),Qf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Yt(a,t,(i,o,s)=>{let u=s.id,l=oB(e,u.toString());l&&sB.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function oB(e,t){return e.find(n=>n.id===t)}function sB(e,t,n,r,a,i){wa("translated");let o=!1,s=r;Fo(s.commonAncestorContainer,n.id)?.remove(),Qf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(oo,"1");let p=t5(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),as(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=nB.sanitize(p);m.innerHTML=Un?.createHTML(g)||g,c.targetNodes=[m],Bu(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);Et(p,e1,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Wf(g)||di(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=uB(a,c).replaceAll(` -`,"").replaceAll('"',"""),b=c.message.replaceAll(` -`,"").replaceAll('"',"""),f=Pe(a.config.interfaceLanguage,"retryAllButton"),y=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,v=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),w=`
<${d.targetWrapperTag} class="${B}-error notranslate"> + ${r.innerHTML}`.replaceAll(`data-${B}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function W0(e){let t=m9(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function an(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Gp(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var tB={sanitize:e=>e};async function Vf(e,t){if(e.interruptEffectDOM)return;Sa("consumeContainer");let n=an(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Hi.bind(null,e),onFrame:r=>{zf(e,r,!0)},onIgnoreElement:r=>{ft.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),ro&&Et(t,"consumeContainer",e.id)}function zf(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Va(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${dm}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Yr(t.contentWindow?.document.documentElement,e.translateState),di(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),di(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function di(e,t,n=!0){Sa("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=an(t.ctx),o=0;if(l(t,e,n))return;if(Bi(e)&&u(e)){ft.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Bi(d)&&(a&&Bf(d,a),i&&_f(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ft.clearMark(c),t.immediateTranslateCapacity>=0){await Vf(t,c);let d=Date.now()-r;d>100&&(D.debug("batchTaskTime",d,c),r=Date.now(),await it(0))}else ro&&Et(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return zf(t,c.shadowRoot,n),!1;if(d==="iframe")return zf(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Mu(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&Mu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ge()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){t5(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ft.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=an(c.ctx);return!!(H0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Fu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ft.isSkipMarkEle(a)&&!ft.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ui(t.rootNodes),r=="original"&&n=="translation"){let s=is(e,t.rootNodes);if(Wf(s))return;ci(e,s,a,t.targetNodes||[]),Ui(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=is(e,t.targetNodes,s);ci(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=is(e,t.rootNodes);if(Wf(s))return;ci(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=is(e,t.targetNodes);ci(e,s,a,t.rootNodes||[]),Ui(t.targetNodes)}r=="dual"&&n=="original"&&Ui(t.targetNodes),Qf(t)}catch(s){D.error(s)}Sa("inserted"),k9()}}function Wf(e){return!e||!Bi(e)?!1:e.classList.contains(Lt)}function is(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ui(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ci(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var nB=Jn(G0,300);async function Hi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;Sa("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||rB(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ro&&Et(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Ri(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=q0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:W0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Yf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Kr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(D.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),aB(e,t.text),Kf(e,t,r)):(ro&&Et(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function rB(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bi(t)&&t.classList.contains(Lt):!1}function aB(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Kf(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;Sa("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),ro&&Et(t.commonAncestorContainer,"consumeParagraph",e.id),Et(t.commonAncestorContainer,Y3,"1",!0),n=="hover"){G0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";nB.call(e,e.ctx,a)}async function G0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await V0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function V0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=lu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;ci(t,u,i.commonAncestorContainer,[s]),Qf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Yt(a,t,(i,o,s)=>{let u=s.id,l=iB(e,u.toString());l&&oB.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function iB(e,t){return e.find(n=>n.id===t)}function oB(e,t,n,r,a,i){Sa("translated");let o=!1,s=r;Fo(s.commonAncestorContainer,n.id)?.remove(),Qf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(oo,"1");let p=$v(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),as(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=tB.sanitize(p);m.innerHTML=In?.createHTML(g)||g,c.targetNodes=[m],Fu(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);Et(p,X3,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Wf(g)||ci(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=sB(a,c).replaceAll(` +`,"").replaceAll('"',"""),h=c.message.replaceAll(` +`,"").replaceAll('"',"""),f=Pe(a.config.interfaceLanguage,"retryAllButton"),y=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+h,v=Pe(a.config.interfaceLanguage,"error.retry"),T=Pe(a.config.interfaceLanguage,"error.reason"),w=`<${d.targetWrapperTag} class="${B}-error notranslate"> <${d.targetWrapperTag} class="${B}-error-wrapper"> @@ -5898,15 +5898,15 @@ x-tc-action:`+this.action.toLowerCase()+` ${v}    - + - ${S} + ${T} - `;p.innerHTML=Un?.createHTML(w)||w}}}var s5="";async function Yf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=s5.slice(0,e.rule?.detectTextBufferLength)+" "+o),s5=s;let u=await Be({text:s,minLength:15,pageLangs:[dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Bo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Bo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=mc();r.isDetectParagraphLanguage&&(m="auto");let p=dt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!oc.includes(e.translationService)&&(ne()||ct())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return ja(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>ja(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Iu(){Gf=0}var Gf=0;function uB(e,t){Gf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),Gf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(mn,{detail:r}))}return n}function Qf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,lB(t,`[${Z3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function lB(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}function u5(e,t,n,r,a){let i=t,o=s1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${B}-theme-${i}-${d}: ${m}; -`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=Xy(m);s+=`--${B}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; + `;p.innerHTML=In?.createHTML(w)||w}}}var i5="";async function Yf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=i5.slice(0,e.rule?.detectTextBufferLength)+" "+o),i5=s;let u=await je({text:s,minLength:15,pageLangs:[dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Bo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Bo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=dc();r.isDetectParagraphLanguage&&(m="auto");let p=dt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!ic.includes(e.translationService)&&(ne()||lt())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let b=m!=="auto"?m:g;return Na(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Na(b,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Bu(){Gf=0}var Gf=0;function sB(e,t){Gf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),Gf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(Nn,{detail:r}))}return n}function Qf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,uB(t,`[${Q3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function uB(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}function o5(e,t,n,r,a){let i=t,o=i1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${B}-theme-${i}-${d}: ${m}; +`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b}=Jy(m);s+=`--${B}-theme-${i}-${d}-rgb: ${p}, ${g}, ${b}; `}}}),r||(r="inherit"),e&&(s+=` .${B}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5919,11 +5919,11 @@ x-tc-action:`+this.action.toLowerCase()+` [imt-state="dual"] .${B}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?In(e,l,B+"-user-custom-style"):a&&In(e,"",B+"-user-custom-style")}function os(e,t){let r=De().IMMERSIVE_TRANSLATE_INJECTED_CSS;In(e,r,B+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};u5(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?Bn(e,l,B+"-user-custom-style"):a&&Bn(e,"",B+"-user-custom-style")}function os(e,t){let r=De().IMMERSIVE_TRANSLATE_INJECTED_CSS;Bn(e,r,B+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};o5(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&In(e,s,B+"-dynamic-injected-css")}async function l5(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Be({text:Lo(document.body),pageLangs:t})),e}var cB=[];function c5(e){cB.push(e)}var Jf;function d5(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=an(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{_u(e,i,t,r)}),Jf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&rr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||Xf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&_u(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Kr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Io(r,u.parentElement);c&&(ft.clearToParentMark(u,c),_u(e,c,t,r));continue}_u(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ft.isMarked(o,e.id)||_u(e,o,t,r)})}),Jf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function _u(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&Zf(t),Da({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Hi(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function m5(){Jf?.disconnect()}var dB=` +`+t.rule.additionalInjectedCss)),s&&Bn(e,s,B+"-dynamic-injected-css")}async function s5(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await je({text:Lo(document.body),pageLangs:t})),e}var lB=[];function u5(e){lB.push(e)}var Jf;function l5(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=an(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Iu(e,i,t,r)}),Jf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&rr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||Xf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Iu(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Vr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Io(r,u.parentElement);c&&(ft.clearToParentMark(u,c),Iu(e,c,t,r));continue}Iu(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ft.isMarked(o,e.id)||Iu(e,o,t,r)})}),Jf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Iu(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&Zf(t),ka({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Hi(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function c5(){Jf?.disconnect()}var cB=` .toastify { padding: 12px 20px; color: #ffffff; @@ -6006,10 +6006,10 @@ ${s}} max-width: fit-content; } } -`,$f="immersive-translate-toastify-shadow-root",eh=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById($f)){let t=document.getElementById($f);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=$f,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=dB,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Y0(e){e=e||{},new eh({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function p5(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function Zt(e){Gr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:El,payload:e},"*")});let n=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(n)}function th(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&jn(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var gue=1e3*3600*24;async function g5(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await $.storage.local.set({[r1]:t.toISOString()}),await nh(),ne()||await Mb()}catch(t){D.error("run cron task failed",t)}}async function nh(){try{let e=await gr(),t=await Q({url:Ls});Ea(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=$.runtime.getManifest().version;Uo(s,o)?i>r?(await $.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Gr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}async function rh(){let e=["bingGlobalConfig","baiduGlobalConfig",_3,om];for(let t of e)await $.storage.local.remove(t);ne()||await ab(),await Tm()}var Nue=De().REDIRECT_URL;var vle=to([]);function h5(e){let[t,n]=G(null);return te(()=>{wt().then(r=>{n(r),D.debug("current config",r)})},[]),te(()=>{wt().then(r=>{n(r)})},[e]),t}function b5(){let[e,t]=G(null);return te(()=>{Vt().then(r=>{t(r)})},[]),[e,r=>{t(r),Rt(r)}]}var Ou=class extends xi{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),x(bB,{error:this.error,info:this.info})):this.props.children}};function bB({error:e,info:t}){let{t:n}=se(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return x("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),x("div",{style:{marginTop:10},children:[n("error.configError"),x("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var yB=Nn(xB,1e3);async function xB(e,t,n){try{if(t===null)return"noupdate";let r=await Vt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ga(t.proSyncAPIKey,t);return await ah(e,c),await Rt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await x5(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),M9(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=Ga(t.proSyncAPIKey,t);return await ah(e,u),await Rt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||R9(n)&&yB(n.token,e,t)},[e,n])}function vB(){let[e,t]=G(null);return te(()=>{pt.get(mt,null).then(n=>{t(n)})},[t]),e}function x5(e){return(location.href?.indexOf("popup.html")>0?Sa:Q)({responseType:"json",url:tt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function ah(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Sa:Q)({responseType:"json",url:tt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Q0(e){let{onClose:t}=e,[n,r]=G("Original"),[a,i,o,s]=Br(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});ss(a,i);let[u,l]=G(null),[c,d]=G(globalThis.location.href),[m,p]=G("auto"),[g,h]=G(null),[b,f]=G({visible:!1,preview:!1}),y=Ce(!1);te(()=>{!g||y.current||(y.current=!0,je("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=_=>{r(_.detail)};te(()=>(document.addEventListener(Ti,v,!1),gr().then(_=>{l(_);let O=dt();p(O);let z=Ve();r(z),g5(_.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",C)}),[]),te(()=>{gr().then(_=>{l(_)})},[a]),te(()=>{c&&u&&J0().then(_=>{h(_)})},[c,u]),te(()=>{let _=fc();f({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let S=Ae((_,O)=>{T("change_translate_service",!1,{translation_service:`${_}_${O}`})()},[]);if(!u||!g)return null;return x(Nu,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},aiContextInfo:b,request:Q,onClose:A,onToggleEnabled:k,onChangeService:S,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{F(Mi(g.rule)||c)},openAboutPage:I,openSharePage:T("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:va,onSetBuildinConfig:Tb,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:R,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function w(_){p(_);let O=bl(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:O})),er(_)}function C(){d(globalThis.location.href)}function T(_,O,z={}){let V={trigger:"page_popup",...z};return()=>{Zt({method:_,data:V}),O&&t()}}function A(){t()}function k(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function R(_,O){let z=_;O&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${O}`),wc(z,!0),setTimeout(()=>{A()},50)}function F(_){_&&(vo(!1,_),setTimeout(()=>{A()},50))}function P(_=!0,O=""){Ua(_,O),setTimeout(()=>{t()},50)}function I(){Cc(),setTimeout(()=>{t()},50)}function L(){Lb(),setTimeout(()=>{t()},50)}}function E5(){let[e,t]=G("Original");return te(()=>{let n=Ve();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ti,r),()=>{document.removeEventListener(Ti,r)}},[]),{pageStatus:e}}function A5(){let[e,t]=G("Original");return te(()=>{let n=yo();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ks,r),()=>{document.removeEventListener(ks,r)}},[]),{mangaStatus:e}}var v5=6,SB={position:"right",top:335};function k5({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=G(!1),l=Ce(!1);l.current=s;let c=Ce(null),d=Ce(!1),m=Ce(n.floatBallConfig||SB),p=Ce(0),g=Ce(0),h=Ce(0),b=Ce(!1),f=Ce(0),y=Ce(0),v=Ce(0),S=Ce(0),w=Ce(!1),C=Ae(T=>{if(!a)if(clearTimeout(c.current),T)u(T);else{let A=We().any||Yn();c.current=setTimeout(()=>{u(T),b.current=!1},A?3e3:0)}},[u,c,b,a]);return te(()=>{a||u(!1)},[a]),te(()=>{if(i.current&&m.current){let T=ih(m.current.top);m.current.top=T,i.current.style.top=`${T}px`,i.current.style.display="flex"}},[t,i]),te(()=>{if(!o.current||!i.current)return;let T=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=L.clientX,S.current=L.clientY,w.current=!1,(We().any||Yn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{S5({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",F),document.addEventListener("mouseup",k),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},A=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,S.current=L.clientY,w.current))return;let _=L.clientY-g.current+h.current,O=ih(_);i.current.style.top=`${O}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),I(),d.current=!1,clearTimeout(c.current),b.current||C(!1),w.current)return;S5({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let O=ih(L.clientY-30);m.current.top=O;let z=await Fn();va({...z,floatBallConfig:m.current})},R=L=>{L.preventDefault&&L.preventDefault(),T(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},P=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},I=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",T),o.current.addEventListener("touchstart",R),()=>{o.current&&(o.current.removeEventListener("mousedown",T),o.current.removeEventListener("touchstart",R))}},[t,o,i,c,d,n,C,e]),te(()=>{if(We().any)return;let T=k=>{k.target===i.current&&!b.current||!l.current&&C5(k)&&c.current||(b.current=!0,C(!0),clearTimeout(c.current))},A=k=>{if(!(!l.current&&C5(k)&&c.current)){if(d.current){b.current=!1;return}k.target===i.current&&!b.current||C(!1)}};return i.current?.addEventListener("mouseover",T),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",T),i.current?.removeEventListener("mouseout",A)}},[i,d,C,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function S5({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>v5||i>v5}function D5(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ye(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ye(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ye(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ye(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function P5(){let[e,t]=G(!1);return te(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var T5="hasShownFloatingBallGuide",TB="2024-01-06";function L5(e,t){let[n,r]=G(!1),a=Ae(()=>{at(T5,new Date().toISOString()),r(!0)},[r]);te(()=>{if(!e.config.enableShowFloatingBallGuide||dt()==e.targetLanguage)return;let o=Ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Nt(T5,""),u=await Nt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Pl,o),()=>{document.removeEventListener(Pl,o)}},[]);let i=Ae(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function M5(){document.dispatchEvent(new CustomEvent(Pl))}function R5(e,t){let n=Ce(0),[r,a]=G(!0),[i,o]=G(!1),s=Br(),[u,l]=s,{t:c}=se(),d=Ae(()=>{e?.config.floatBallTooltipRule&&(We().any||Yn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);te(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,We().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=Ae(async()=>{if(!e)return;n.current=n.current+1,d();let h=await bn();l(b=>{let f={...h};return We().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=ye(()=>We().any||!r||Yn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=ye(()=>{if(We().any||Yn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:ei(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${Ho(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function ih(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var oh=0;function C5(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(oh=Date.now(),!0):Date.now()-oh<100}function F5(e,t){te(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Ci,n),()=>{globalThis.document.addEventListener(Ci,n)}},[e,t])}function B5(e,t){let n=Ce(e);n.current=e,te(()=>{!n.current||!t||je("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var w5="imt-float-ball-active";function I5(e){te(()=>{let t=!!document.querySelector(`meta[name='${w5}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(w5)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(kl,n),()=>{document.removeEventListener(kl,n)}},[])}function _5(e){document.dispatchEvent(new CustomEvent(kl,{detail:{active:e}}))}function CB({isOpen:e,onClose:t,children:n}){let[r,a]=G(e);return te(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Gt,{children:[e&&x("div",{className:`${B}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${B}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${B}-sheet-content`,children:n})})]})}var Z0=CB;var qi="imt-fb";function N5(e){if(globalThis.innerWidth<=385)return x(Z0,{isOpen:e.visible,onClose:e.onClose,children:x(O5,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${B}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${B}-popup-overlay`,class:`${B}-popup-overlay`,children:x("div",{class:`${B}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(O5,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function O5(e){let{t}=se(),[n,r]=G("UntilNext"),a=Tc()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${qi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${qi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Kt,{type:"modal-close"})})]}),x("div",{class:`${qi}-close-radio-content mt-3`,children:o.map(s=>x(wB,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Vr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${qi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${qi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function wB(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=EB(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${qi}-radio-sel`:`${qi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function EB(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var AB=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=G(!1),h=Ce(null),b=Ce(null),f=()=>{u||!l&&(We().any||Yn())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(We().any||Yn())&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{v()},2e3))},v=()=>{h.current&&(clearTimeout(h.current),d?.()),g(!1)},S=ye(()=>{let T={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(T.maxWidth="200px",o&&(T.width=o+"px"),T.whiteSpace="normal"),c?.width&&(T.width=c.width),c?.maxWidth&&(T.maxWidth=c.maxWidth),c?.whiteSpace&&(T.whiteSpace=c.whiteSpace),T},[i,o,c]),w=ye(()=>{let T={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...T,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...T,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...T,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...T,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),C=T=>Yc()?x("div",{style:S,role:"tooltip",children:T}):x("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:T}});return x("div",{class:a,onMouseEnter:f,onMouseLeave:v,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[x("div",{children:t}),p&&x("div",{style:w,children:C(e)})]})},_n=AB;function j5(e){return be.ASSETS_BASE_URL+e}var zi="imt-fb";function U5(e){let{t}=se(),n=a=>{a?.target?.id===B+"-popup-overlay"&&e.onClose()},r=ye(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:B+"-popup-overlay",class:`${B}-popup-overlay`,children:x("div",{class:`${zi}-guide-container`,style:r,children:[x("img",{class:`${zi}-guide-bg ${e.fixedPosition}`,src:kB}),x("div",{class:`${zi}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${zi}-guide-img`,src:j5("images/float_ball_intro.png")}),x("div",{class:`${zi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),We().any?` -${t("floatBall.longPress")}`:""]}),x("div",{class:`${zi}-primary-btn ${zi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var kB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var H5="imt-manga";function q5({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===B+"-popup-overlay"&&t()},s=ye(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=Ae(()=>{if(t(),!a.isPro){if(a.user)return window.open(f1);window.open(p1)}},[a,t]);return e?x("div",{onClick:o,id:B+"-popup-overlay",class:`${B}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${H5}-guide-bg ${r}`,src:`${I3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${H5}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Kt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}function X0(e,t){return ne(t)?!1:DB(e.config,e.isPro)}function DB(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function $0(e){let t=Ca();return!(e?.platforms&&!e.platforms.includes(t))}function sh(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function z5(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var Pa="imt-fb";function uh(e){let{t}=se(),n=Br(),[r,a,i,o]=n;ss(r,a);let s=h5(r),u=e.ctx,{isFullScreen:l}=P5(),[c,d]=G(!1),m=Ce(c);m.current=c;let[p,g]=G(!0),{pageStatus:h}=E5(),b=du(u,r),f=Ae(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Zt,d]),y=Ae(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:w,ballRef:C,floatBallConfigRef:T,setActive:A}=k5({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),k=b?.fixedPosition||"right",R=k==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:P}=L5(e.ctx,b),{closeTransform:I,logoContainerTransform:L,settingTransform:_,mangaTransform:O}=D5(b,w||F);B5(u,w);let{tooltipDelay:z,disableTooltip:V,tooltipText:ie,handleShowTooltip:Ie}=R5(u,h);F5(d,m),I5(A);let N=globalThis.innerWidth<=385;return v?x(Gt,{children:x("div",{class:`${Pa}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||F||c?"all":"none"},ref:S,children:[x(PB,{ctx:u,setVisible:g,closeTransform:I,setActive:A,getModalStyle:()=>W5(T.current.top,300,k)}),x(_n,{enableMobile:!0,text:ie,position:R,delay:z,onShow:Ie,disable:V,children:x("div",{class:`${Pa}-btn ${k} btn-animate `,ref:C,style:{transform:L,opacity:w||F?1:.5},children:x("div",{children:[x(Kt,{type:"logo"}),x(Kt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(RB,{ctx:u,mangaTransform:O,floatBallConfigRef:T,fixedPosition:k,hidden:F}),x("div",{style:{marginTop:"12px",transform:_},class:`${Pa}-more-buttons btn-animate`,children:[x(_n,{text:t("translateFileTooltip"),multiple:!0,position:R,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Pa}-more-button`,onClick:()=>{wc(S1,!0)},children:x(Kt,{type:"file"})})}),x(_n,{text:t("floatBall.setting"),position:R,containerClass:"btn-animate",children:x("div",{class:`${Pa}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Kt,{type:"setting"})})}),x(BB,{ctx:u,tooltipPosition:R,rule:b,active:w})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:_},class:`${Pa}-more-buttons btn-animate`,children:x(_n,{text:t("reportTip"),position:R,containerClass:"btn-animate",children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(Si,{detail:{type:"webReport"}}))}})})}),x(lh,{onClose:()=>{A(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>W5(T.current.top,500,k)}),x(U5,{visible:F,top:T.current.top,fixedPosition:k,onClose:()=>{P(),A(!1)}})]})}):null}function PB(e){let{t}=se(),[n,r]=G(!1),a=Br(),[i,o,s,u]=a,l=du(e.ctx,i),c=Ae(m=>{e.ctx&&o(p=>$c({...p},m))},[e.ctx,o]),d=Ae(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Gt,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Kt,{type:"close"})}),x(N5,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function lh(e){let t=n=>{n?.target?.id===B+"-popup-overlay"&&e.onClose()};return e.isSheet?x(Z0,{isOpen:e.visible,onClose:e.onClose,children:x(Q0,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:B+"-popup-overlay",class:`${B}-popup-overlay`,children:x("div",{class:`${B}-popup-wrapper`,style:e.getModalStyle(),children:x(Q0,{onClose:e.onClose})})}):null}function LB(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var W5=(e,t,n)=>{let a=LB().height,i={position:"fixed"},o=0;return d3()&&(e=MB.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},MB={position:"right",right:0,top:335};function RB({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=G(!1),{mangaStatus:u}=A5(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();te(()=>{c||Fn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Rt(p))})},[c,s]);let m=Ae(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await pt.get(mt,null);if(ht(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!$0(l)||r||!l?.enable?null:x(Gt,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Kt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Kt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Kt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(_n,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(Si,{detail:{type:"mangaReport"}}))}})})]}),x(q5,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var FB="float_ball_upgrade_show_count";function BB(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Za(n.config),s=Ce(!1),[u,l]=G(null),c=ye(()=>zo(n.config),[n]),d=p=>zo(p)?.upgradeShowCountCacheKey||FB;te(()=>{Ai(d(n.config),0).then(p=>{l(p)})},[n]);let m=ye(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=zo(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return te(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,ki(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(_n,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Pa}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||bm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${Pa}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Kt,{type:"upgrade"})})})}):x(_n,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Pa}-more-button`,onClick:()=>{globalThis.open(bm,"_blank")},children:x(Kt,{type:"upgrade"})})})}async function G5(){try{let e=await wt(),t={url:globalThis.location.href,config:e},n=await ir(t),r=document.createElement("div");r.id=B+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});IB(a,e,n),document.documentElement.appendChild(r)}catch{}}function IB(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=De(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);_B(e,[i]),e.appendChild(r),zr(x($a,{lang:t.interfaceLanguage,children:x(OB,{ctx:n})}),r)}function _B(e,t){for(let n of t){if(ne()&&!kn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function OB(e){let[t,n]=G(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");te(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Ci,u),()=>{globalThis.document.addEventListener(Ci,u)}},[r]);let o=globalThis.innerWidth,s=We().any&&o<=450;return x(lh,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function ed(e){document.dispatchEvent(new CustomEvent(Ci,{detail:e||{}}))}function NB(e,t){for(let n of t){if(ne()&&!kn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function ch(){let e=await gr(),t=await bn(),n={url:globalThis.location.href,config:e},r=await ir(n),a=await Qp(r,t),i=Ze(r.url,a?.blockUrls),o=await Vt();if(!a?.enable||i)return G5();let s=document.createElement("div");s.id=B+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return jB(u,e,o,r),document.documentElement.appendChild(s),s}function V5(){let e=document.getElementById(B+"-popup");e&&e.remove(),ch()}function jB(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=De(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);NB(e,[o]),e.appendChild(a),zr(x($a,{lang:t.interfaceLanguage,children:x(uh,{localConfig:n,ctx:r})}),a)}var K5=!1;async function Y5(){K5||(K5=!0,ch().catch(e=>{D.error("init popup error",e)}))}var ju=null;function Uu(e,t,n){let r=globalThis.location.href,a=document.createElement("div");ju={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function dh(){let e=globalThis.location.href;if(!(!ju||ju.url!==e||!ju.subtitleItems.length))return ju}async function Q5(){let e=dh();if(!e)return;let t=await Vt();t.downloadSubtitle=e,await Rt(t),Vr(T1)}async function J5(){let e=await Vt();if(e.downloadSubtitle)return e.downloadSubtitle}async function Z5(e,t){let n,r;if(t){let a=W0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Ga(!1,r)}return{siteUrl:location.href,pluginVersion:yn(),isMobile:We().any,platform:Ca(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function X5(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${tt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Qa(l,"web"),l.json()))}var mh={};function pi(e){let t=td(e)||{};mh[e.sourceUrl+"_"+e.to]={...t,...e}}function td(e){return mh[e.sourceUrl+"_"+e.to]}async function $5(e,t){let n=location.href,r=Object.values(mh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:We().any,platform:Ca(),images:[],version:yn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=W0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Ga(!1,o)}return a}async function eS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${tt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Qa(l,"web"),l.json()))}var Hu={width:94,height:80};function tS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?tS(e.parentElement,t+1):e}function us(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=tS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Hu.width+"px",c.style.height=Hu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Hu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Hu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Hu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`,$f="immersive-translate-toastify-shadow-root",eh=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById($f)){let t=document.getElementById($f);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=$f,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=cB,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function K0(e){e=e||{},new eh({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function d5(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function Zt(e){Wr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:wl,payload:e},"*")});let n=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(n)}function th(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Un(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var fue=1e3*3600*24;async function m5(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await $.storage.local.set({[t1]:t.toISOString()}),await nh(),ne()||await Pb()}catch(t){D.error("run cron task failed",t)}}async function nh(){try{let e=await gr(),t=await Q({url:Ps});wa(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=$.runtime.getManifest().version;Uo(s,o)?i>r?(await $.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Wr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}async function rh(){let e=["bingGlobalConfig","baiduGlobalConfig",B3,im];for(let t of e)await $.storage.local.remove(t);ne()||await nb(),await Sm()}var jue=De().REDIRECT_URL;var Tle=to([]);function g5(e){let[t,n]=G(null);return te(()=>{wt().then(r=>{n(r),D.debug("current config",r)})},[]),te(()=>{wt().then(r=>{n(r)})},[e]),t}function f5(){let[e,t]=G(null);return te(()=>{Vt().then(r=>{t(r)})},[]),[e,r=>{t(r),Rt(r)}]}var _u=class extends yi{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),x(hB,{error:this.error,info:this.info})):this.props.children}};function hB({error:e,info:t}){let{t:n}=se(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return x("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),x("div",{style:{marginTop:10},children:[n("error.configError"),x("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var bB=jn(yB,1e3);async function yB(e,t,n){try{if(t===null)return"noupdate";let r=await Vt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Wa(t.proSyncAPIKey,t);return await ah(e,c),await Rt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await b5(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),P9(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=Wa(t.proSyncAPIKey,t);return await ah(e,u),await Rt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||L9(n)&&bB(n.token,e,t)},[e,n])}function xB(){let[e,t]=G(null);return te(()=>{pt.get(mt,null).then(n=>{t(n)})},[t]),e}function b5(e){return(location.href?.indexOf("popup.html")>0?xa:Q)({responseType:"json",url:tt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function ah(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?xa:Q)({responseType:"json",url:tt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Y0(e){let{onClose:t}=e,[n,r]=G("Original"),[a,i,o,s]=Fr(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});ss(a,i);let[u,l]=G(null),[c,d]=G(globalThis.location.href),[m,p]=G("auto"),[g,b]=G(null),[h,f]=G({visible:!1,preview:!1}),y=Ce(!1);te(()=>{!g||y.current||(y.current=!0,_e("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=_=>{r(_.detail)};te(()=>(document.addEventListener(Ti,v,!1),gr().then(_=>{l(_);let O=dt();p(O);let z=Ve();r(z),m5(_.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",C)}),[]),te(()=>{gr().then(_=>{l(_)})},[a]),te(()=>{c&&u&&Q0().then(_=>{b(_)})},[c,u]),te(()=>{let _=gc();f({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let T=ke((_,O)=>{S("change_translate_service",!1,{translation_service:`${_}_${O}`})()},[]);if(!u||!g)return null;return x(Ou,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{S("switchTranslationMode",!0,{mode:_})()},aiContextInfo:h,request:Q,onClose:A,onToggleEnabled:k,onChangeService:T,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),onTranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onWebReport:S("webReport",!0),onTranslatePdf:()=>{F(Li(g.rule)||c)},openAboutPage:I,openSharePage:S("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:ya,onSetBuildinConfig:vb,onAutoEnableSubtitleChanged:S("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:S("toggleEnableEditTranslation",!0),updateContextState:_=>S("updateContextState",!0,_)(),onOpenUrl:R,onUpdateFloatBallEnable:S("updateFloatBallEnable",!0)});function w(_){p(_);let O=hl(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:O})),er(_)}function C(){d(globalThis.location.href)}function S(_,O,z={}){let V={trigger:"page_popup",...z};return()=>{Zt({method:_,data:V}),O&&t()}}function A(){t()}function k(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function R(_,O){let z=_;O&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${O}`),Cc(z,!0),setTimeout(()=>{A()},50)}function F(_){_&&(vo(!1,_),setTimeout(()=>{A()},50))}function P(_=!0,O=""){ja(_,O),setTimeout(()=>{t()},50)}function I(){Sc(),setTimeout(()=>{t()},50)}function L(){Db(),setTimeout(()=>{t()},50)}}function C5(){let[e,t]=G("Original");return te(()=>{let n=Ve();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ti,r),()=>{document.removeEventListener(Ti,r)}},[]),{pageStatus:e}}function w5(){let[e,t]=G("Original");return te(()=>{let n=yo();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ks,r),()=>{document.removeEventListener(ks,r)}},[]),{mangaStatus:e}}var y5=6,vB={position:"right",top:335};function E5({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=G(!1),l=Ce(!1);l.current=s;let c=Ce(null),d=Ce(!1),m=Ce(n.floatBallConfig||vB),p=Ce(0),g=Ce(0),b=Ce(0),h=Ce(!1),f=Ce(0),y=Ce(0),v=Ce(0),T=Ce(0),w=Ce(!1),C=ke(S=>{if(!a)if(clearTimeout(c.current),S)u(S);else{let A=Ge().any||Yn();c.current=setTimeout(()=>{u(S),h.current=!1},A?3e3:0)}},[u,c,h,a]);return te(()=>{a||u(!1)},[a]),te(()=>{if(i.current&&m.current){let S=ih(m.current.top);m.current.top=S,i.current.style.top=`${S}px`,i.current.style.display="flex"}},[t,i]),te(()=>{if(!o.current||!i.current)return;let S=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),b.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=L.clientX,T.current=L.clientY,w.current=!1,(Ge().any||Yn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{x5({startX:p.current,startY:g.current,endX:v.current,endY:T.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",F),document.addEventListener("mouseup",k),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},A=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,T.current=L.clientY,w.current))return;let _=L.clientY-g.current+b.current,O=ih(_);i.current.style.top=`${O}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),I(),d.current=!1,clearTimeout(c.current),h.current||C(!1),w.current)return;x5({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let O=ih(L.clientY-30);m.current.top=O;let z=await Rn();ya({...z,floatBallConfig:m.current})},R=L=>{L.preventDefault&&L.preventDefault(),S(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},P=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},I=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",S),o.current.addEventListener("touchstart",R),()=>{o.current&&(o.current.removeEventListener("mousedown",S),o.current.removeEventListener("touchstart",R))}},[t,o,i,c,d,n,C,e]),te(()=>{if(Ge().any)return;let S=k=>{k.target===i.current&&!h.current||!l.current&&T5(k)&&c.current||(h.current=!0,C(!0),clearTimeout(c.current))},A=k=>{if(!(!l.current&&T5(k)&&c.current)){if(d.current){h.current=!1;return}k.target===i.current&&!h.current||C(!1)}};return i.current?.addEventListener("mouseover",S),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",S),i.current?.removeEventListener("mouseout",A)}},[i,d,C,t,h,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function x5({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>y5||i>y5}function A5(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ye(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ye(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ye(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ye(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function k5(){let[e,t]=G(!1);return te(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var v5="hasShownFloatingBallGuide",TB="2024-01-06";function D5(e,t){let[n,r]=G(!1),a=ke(()=>{ct(v5,new Date().toISOString()),r(!0)},[r]);te(()=>{if(!e.config.enableShowFloatingBallGuide||dt()==e.targetLanguage)return;let o=Ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Nt(v5,""),u=await Nt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Dl,o),()=>{document.removeEventListener(Dl,o)}},[]);let i=ke(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function P5(){document.dispatchEvent(new CustomEvent(Dl))}function L5(e,t){let n=Ce(0),[r,a]=G(!0),[i,o]=G(!1),s=Fr(),[u,l]=s,{t:c}=se(),d=ke(()=>{e?.config.floatBallTooltipRule&&(Ge().any||Yn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);te(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ge().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=ke(async()=>{if(!e)return;n.current=n.current+1,d();let b=await hn();l(h=>{let f={...b};return Ge().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=ye(()=>Ge().any||!r||Yn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=ye(()=>{if(Ge().any||Yn())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:$a(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${Ho(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function ih(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var oh=0;function T5(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(oh=Date.now(),!0):Date.now()-oh<100}function M5(e,t){te(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Si,n),()=>{globalThis.document.addEventListener(Si,n)}},[e,t])}function R5(e,t){let n=Ce(e);n.current=e,te(()=>{!n.current||!t||_e("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var S5="imt-float-ball-active";function F5(e){te(()=>{let t=!!document.querySelector(`meta[name='${S5}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(S5)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(Al,n),()=>{document.removeEventListener(Al,n)}},[])}function B5(e){document.dispatchEvent(new CustomEvent(Al,{detail:{active:e}}))}function SB({isOpen:e,onClose:t,children:n}){let[r,a]=G(e);return te(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Gt,{children:[e&&x("div",{className:`${B}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${B}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${B}-sheet-content`,children:n})})]})}var J0=SB;var qi="imt-fb";function _5(e){if(globalThis.innerWidth<=385)return x(J0,{isOpen:e.visible,onClose:e.onClose,children:x(I5,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${B}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${B}-popup-overlay`,class:`${B}-popup-overlay`,children:x("div",{class:`${B}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(I5,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function I5(e){let{t}=se(),[n,r]=G("UntilNext"),a=Tc()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${qi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${qi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Kt,{type:"modal-close"})})]}),x("div",{class:`${qi}-close-radio-content mt-3`,children:o.map(s=>x(CB,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Gr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${qi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${qi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function CB(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=wB(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${qi}-radio-sel`:`${qi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function wB(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var EB=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=G(!1),b=Ce(null),h=Ce(null),f=()=>{u||!l&&(Ge().any||Yn())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(Ge().any||Yn())&&(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{v()},2e3))},v=()=>{b.current&&(clearTimeout(b.current),d?.()),g(!1)},T=ye(()=>{let S={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(S.maxWidth="200px",o&&(S.width=o+"px"),S.whiteSpace="normal"),c?.width&&(S.width=c.width),c?.maxWidth&&(S.maxWidth=c.maxWidth),c?.whiteSpace&&(S.whiteSpace=c.whiteSpace),S},[i,o,c]),w=ye(()=>{let S={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...S,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...S,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...S,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...S,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),C=S=>Kc()?x("div",{style:T,role:"tooltip",children:S}):x("div",{style:T,role:"tooltip",dangerouslySetInnerHTML:{__html:S}});return x("div",{class:a,onMouseEnter:f,onMouseLeave:v,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[x("div",{children:t}),p&&x("div",{style:w,children:C(e)})]})},_n=EB;function O5(e){return be.ASSETS_BASE_URL+e}var zi="imt-fb";function N5(e){let{t}=se(),n=a=>{a?.target?.id===B+"-popup-overlay"&&e.onClose()},r=ye(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:B+"-popup-overlay",class:`${B}-popup-overlay`,children:x("div",{class:`${zi}-guide-container`,style:r,children:[x("img",{class:`${zi}-guide-bg ${e.fixedPosition}`,src:AB}),x("div",{class:`${zi}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${zi}-guide-img`,src:O5("images/float_ball_intro.png")}),x("div",{class:`${zi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ge().any?` +${t("floatBall.longPress")}`:""]}),x("div",{class:`${zi}-primary-btn ${zi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var AB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var j5="imt-manga";function U5({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===B+"-popup-overlay"&&t()},s=ye(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ke(()=>{if(t(),!a.isPro){if(a.user)return window.open(p1);window.open(d1)}},[a,t]);return e?x("div",{onClick:o,id:B+"-popup-overlay",class:`${B}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${j5}-guide-bg ${r}`,src:`${F3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${j5}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Kt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}function Z0(e,t){return ne(t)?!1:kB(e.config,e.isPro)}function kB(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function X0(e){let t=Ta();return!(e?.platforms&&!e.platforms.includes(t))}function sh(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function H5(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var Da="imt-fb";function uh(e){let{t}=se(),n=Fr(),[r,a,i,o]=n;ss(r,a);let s=g5(r),u=e.ctx,{isFullScreen:l}=k5(),[c,d]=G(!1),m=Ce(c);m.current=c;let[p,g]=G(!0),{pageStatus:b}=C5(),h=cu(u,r),f=ke(()=>{if(h?.clickType==="popup")return d(!0);h?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[h,Zt,d]),y=ke(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:T,active:w,ballRef:C,floatBallConfigRef:S,setActive:A}=E5({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),k=h?.fixedPosition||"right",R=k==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:P}=D5(e.ctx,h),{closeTransform:I,logoContainerTransform:L,settingTransform:_,mangaTransform:O}=A5(h,w||F);R5(u,w);let{tooltipDelay:z,disableTooltip:V,tooltipText:ie,handleShowTooltip:Be}=L5(u,b);M5(d,m),F5(A);let N=globalThis.innerWidth<=385;return v?x(Gt,{children:x("div",{class:`${Da}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||F||c?"all":"none"},ref:T,children:[x(DB,{ctx:u,setVisible:g,closeTransform:I,setActive:A,getModalStyle:()=>q5(S.current.top,300,k)}),x(_n,{enableMobile:!0,text:ie,position:R,delay:z,onShow:Be,disable:V,children:x("div",{class:`${Da}-btn ${k} btn-animate `,ref:C,style:{transform:L,opacity:w||F?1:.5},children:x("div",{children:[x(Kt,{type:"logo"}),x(Kt,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),x(MB,{ctx:u,mangaTransform:O,floatBallConfigRef:S,fixedPosition:k,hidden:F}),x("div",{style:{marginTop:"12px",transform:_},class:`${Da}-more-buttons btn-animate`,children:[x(_n,{text:t("translateFileTooltip"),multiple:!0,position:R,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{Cc(x1,!0)},children:x(Kt,{type:"file"})})}),x(_n,{text:t("floatBall.setting"),position:R,containerClass:"btn-animate",children:x("div",{class:`${Da}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Kt,{type:"setting"})})}),x(FB,{ctx:u,tooltipPosition:R,rule:h,active:w})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:_},class:`${Da}-more-buttons btn-animate`,children:x(_n,{text:t("reportTip"),position:R,containerClass:"btn-animate",children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}}))}})})}),x(lh,{onClose:()=>{A(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>q5(S.current.top,500,k)}),x(N5,{visible:F,top:S.current.top,fixedPosition:k,onClose:()=>{P(),A(!1)}})]})}):null}function DB(e){let{t}=se(),[n,r]=G(!1),a=Fr(),[i,o,s,u]=a,l=cu(e.ctx,i),c=ke(m=>{e.ctx&&o(p=>Xc({...p},m))},[e.ctx,o]),d=ke(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Gt,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Kt,{type:"close"})}),x(_5,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function lh(e){let t=n=>{n?.target?.id===B+"-popup-overlay"&&e.onClose()};return e.isSheet?x(J0,{isOpen:e.visible,onClose:e.onClose,children:x(Y0,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:B+"-popup-overlay",class:`${B}-popup-overlay`,children:x("div",{class:`${B}-popup-wrapper`,style:e.getModalStyle(),children:x(Y0,{onClose:e.onClose})})}):null}function PB(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var q5=(e,t,n)=>{let a=PB().height,i={position:"fixed"},o=0;return l3()&&(e=LB.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},LB={position:"right",right:0,top:335};function MB({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=G(!1),{mangaStatus:u}=w5(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();te(()=>{c||Rn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Rt(p))})},[c,s]);let m=ke(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await pt.get(mt,null);if(ht(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!X0(l)||r||!l?.enable?null:x(Gt,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Kt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Kt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Kt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(_n,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"mangaReport"}}))}})})]}),x(U5,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var RB="float_ball_upgrade_show_count";function FB(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Ja(n.config),s=Ce(!1),[u,l]=G(null),c=ye(()=>zo(n.config),[n]),d=p=>zo(p)?.upgradeShowCountCacheKey||RB;te(()=>{Ei(d(n.config),0).then(p=>{l(p)})},[n]);let m=ye(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=zo(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return te(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ai(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(_n,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||bm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${Da}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Kt,{type:"upgrade"})})})}):x(_n,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(bm,"_blank")},children:x(Kt,{type:"upgrade"})})})}async function z5(){try{let e=await wt(),t={url:globalThis.location.href,config:e},n=await ir(t),r=document.createElement("div");r.id=B+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});BB(a,e,n),document.documentElement.appendChild(r)}catch{}}function BB(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=De(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);IB(e,[i]),e.appendChild(r),qr(x(Xa,{lang:t.interfaceLanguage,children:x(_B,{ctx:n})}),r)}function IB(e,t){for(let n of t){if(ne()&&!An()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function _B(e){let[t,n]=G(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");te(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Si,u),()=>{globalThis.document.addEventListener(Si,u)}},[r]);let o=globalThis.innerWidth,s=Ge().any&&o<=450;return x(lh,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function $0(e){document.dispatchEvent(new CustomEvent(Si,{detail:e||{}}))}function OB(e,t){for(let n of t){if(ne()&&!An()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function ch(){let e=await gr(),t=await hn(),n={url:globalThis.location.href,config:e},r=await ir(n),a=await Qp(r,t),i=Ze(r.url,a?.blockUrls),o=await Vt();if(!a?.enable||i)return z5();let s=document.createElement("div");s.id=B+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return NB(u,e,o,r),document.documentElement.appendChild(s),s}function W5(){let e=document.getElementById(B+"-popup");e&&e.remove(),ch()}function NB(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=De(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);OB(e,[o]),e.appendChild(a),qr(x(Xa,{lang:t.interfaceLanguage,children:x(uh,{localConfig:n,ctx:r})}),a)}var G5=!1;async function V5(){G5||(G5=!0,ch().catch(e=>{D.error("init popup error",e)}))}var Nu=null;function ju(e,t,n){let r=globalThis.location.href,a=document.createElement("div");Nu={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function dh(){let e=globalThis.location.href;if(!(!Nu||Nu.url!==e||!Nu.subtitleItems.length))return Nu}async function K5(){let e=dh();if(!e)return;let t=await Vt();t.downloadSubtitle=e,await Rt(t),Gr(v1)}async function Y5(){let e=await Vt();if(e.downloadSubtitle)return e.downloadSubtitle}async function Q5(e,t){let n,r;if(t){let a=z0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Wa(!1,r)}return{siteUrl:location.href,pluginVersion:bn(),isMobile:Ge().any,platform:Ta(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function J5(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${tt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ya(l,"web"),l.json()))}var mh={};function mi(e){let t=ed(e)||{};mh[e.sourceUrl+"_"+e.to]={...t,...e}}function ed(e){return mh[e.sourceUrl+"_"+e.to]}async function Z5(e,t){let n=location.href,r=Object.values(mh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ge().any,platform:Ta(),images:[],version:bn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=z0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Wa(!1,o)}return a}async function X5(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${tt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ya(l,"web"),l.json()))}var Uu={width:94,height:80};function $5(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?$5(e.parentElement,t+1):e}function us(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=$5(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Uu.width+"px",c.style.height=Uu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Uu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Uu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Uu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let d=a("translateFail");r==="gif_not_supported"&&(d=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6023,7 +6023,7 @@ ${t("floatBall.longPress")}`:""]}),x("div",{class:`${zi}-primary-btn ${zi}-guide - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function ph(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var qu=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function nS(e,t,n){if(e=="manga")return $5(t,n);if(e=="web")return Z5(t,n)}function rS(e,t,n,r,a,i){if(e=="manga")return eS(t,n,a,i,r);if(e=="web")return X5(t,n,a,i,r)}function nd(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(k){return u.test(k.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function ph(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Hu=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function eT(e,t,n){if(e=="manga")return Z5(t,n);if(e=="web")return Q5(t,n)}function tT(e,t,n,r,a,i){if(e=="manga")return X5(t,n,a,i,r);if(e=="web")return J5(t,n,a,i,r)}function td(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(k){return u.test(k.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; @@ -6031,17 +6031,17 @@ ${t("floatBall.longPress")}`:""]}),x("div",{class:`${zi}-primary-btn ${zi}-guide flex: 1;`),p.addEventListener("input",function(){C.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),m.append(p),a.append(m);let g=document.createElement("input");g.type="email",g.id="emailReport",g.size=30,g.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";pt.get(mt,null).then(k=>{k&&(h=k.email,g.value=k.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let k=l(this.value);C.disabled=c(),k?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(v),w.append(S),a.append(w);let C=document.createElement("button");C.className=B+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let k=await nS(e,t,v.checked);C.uploading=!0;try{aS(C,!0),await rS(e,t,p.value,g.value!==h?g.value:"",v.checked,k),UB(s,r,a,i,o)}catch{HB(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,aS(C,!1)}},i.appendChild(C);let T=document.createElement("div");T.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(T);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function aS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(B+"-loading-spinner"),e.appendChild(n))}function UB(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let b="";pt.get(mt,null).then(k=>{k&&(b=k.email,g.value=k.email)});let h=document.createElement("label");h.htmlFor=g.id,h.innerText=s("reportInfo.email"),h.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(h),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let k=l(this.value);C.disabled=c(),k?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let T=document.createElement("label");T.htmlFor=v.id,T.innerText=s("reportInfo.attachLog"),T.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(v),w.append(T),a.append(w);let C=document.createElement("button");C.className=B+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let k=await eT(e,t,v.checked);C.uploading=!0;try{nT(C,!0),await tT(e,t,p.value,g.value!==b?g.value:"",v.checked,k),jB(s,r,a,i,o)}catch{UB(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,nT(C,!1)}},i.appendChild(C);let S=document.createElement("div");S.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(S);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function nT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(B+"-loading-spinner"),e.appendChild(n))}function jB(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=B+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function HB(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=B+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function UB(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=B+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",nd(s,e,t,r,a,i,o)},i.append(d)}var rd=[],iS=[];async function fh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(hh()||rd.includes(t))return"";if(rd.length>=s)return new Promise((l,c)=>{iS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});rd.push(t);try{let u=await GB(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await oS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{rd.shift(),(async()=>{let u=iS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await fh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function qB(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${tt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${sS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await Q({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function zB(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function WB(e,t,n){let r=await zB(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),ne()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):Q({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await zb(a)})}async function GB(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=VB(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await pc(u);pi({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await qB(e,r,l,n.type);if(c.objectKey&&pi({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await WB(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return ne()?d=await fetch(gh()+"/trigger",{method:"POST",body:Ac(u),headers:{token:e.user?.token||""}}).then(async m=>(await Qa(m,"manga"),m.json())):d=await Q({url:gh()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),pi({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function oS(e,t,n,r,a){let i=hh();if(i)return;mr("Translating",i);let o=await Q({url:gh()+`/${t}/task-state?comicHash=${n}&domain=${sS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await w9(t,r.queryIntervalTime||100),oS(e,t,n,r,a))}function gh(){return tt+"comics"}function VB(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=k0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function sS(e){return e.replaceAll(".","_")}var kt,bh,id,Wu,Ut=!1;function hh(){return Ut}var uS=!1;function dS(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ut=!1,!uS&&kt.injectedCss&&(In(document,`${kt.injectedCss}`,B+"-image-injected-css"),uS=!0);let t=!1,n=Nn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=gS(kt);for(let i of a){if(Ut)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await ot(20),await r(i,t))}},100);if(je("translate_manga",[{name:"translate_manga"}],e),n(),bh=new MutationObserver(a=>{n()}),bh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;Wu=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Wi(e,o.target),Wu?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}id=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(Wu?.unobserve(a),Wu?.observe(a)):await Wi(e,a)))}}async function Wi(e,t,n,r){let a=e.rule.imageRule.type||"common",i=yo();if(n&&(Ut=!1),Ut||tI(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=YB(e,t);u||(s=us(e,t,"translating")),n&&je("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await QB(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await KB(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||us(e,t,"success")):(u||us(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&mr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&mr("Error",Ut),eI(e,l),u))return;if(l instanceof qu)return us(e,t,"error",l.type);us(e,t,"error")}finally{n&&mr(i,Ut),s?.remove()}}function mS(){if(!kt)return;Ut=!0,bh?.disconnect(),id?.disconnect(),Wu?.disconnect();let e=gS(kt);for(let t of e)Gi(t)}function Gi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Gi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function KB(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await JB(l,c,t.cloneNode(!0))}else o=await fS(t);if(Ut)return;if(!o||o.size<6*1e4){id?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await fp(o);return await yh(e,t,s)?!0:s?pS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function pS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await XB(n)||n,u=r||a;try{if(Ut)return;mr("Translating",Ut),ph(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};pi(l);let d=await fh(e,u,s,a,i,m=>{ph(e,o,m)});return d?(l.targetUrl=d,pi(l),await hS(kt,t,d),mr("Translated",Ut),!0):!1}catch(l){if(pi({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function yh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=td(r);return a&&a?.targetUrl?(await hS(kt,t,a.targetUrl||""),mr("Translated",Ut),!0):!1}function YB(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=td(r);return a&&a?.targetUrl}return!1}async function QB(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!$B(a,i)){id?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await yh(e,t,o))return!0;let s=null;if(mr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await Qa(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await ZB(i);else{let d=await Q({url:i,responseType:"base64"});s=await kc(d)}if(Ut)return;if(await z5(s))throw new qu("GIFs not supported","gif_not_supported");let l=await fp(s);if(!o&&(o=l,await yh(e,t,o)))return!0;if(!o)return!1;return pS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function gS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function fS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function JB(e,t,n){return new Promise((r,a)=>{Q({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await fS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function hS(e,t,n){try{return await lS(e,t,n)}catch{let a=await nI(n);return lS(e,t,a)}}async function lS(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function ZB(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function XB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function $B(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!e0(e.inValidSrcRegex,t):!0}var ad=0,zu=0;function eI(e,t){if(ad!=0){zu++;return}if(t.message.indexOf("quota exceeded")>0){cS(e,t);return}zu++,ad=setTimeout(()=>{if(zu<(kt.errorTimes||3)){ad=0,zu=0;return}cS(e,t),zu=0,ad=0},kt.errorInterval||3e3)}function cS(e,t){let r=new U("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(mn,{detail:r}))}function xh(e){return e.classList.contains("imt-img")||e.hasTranslate}function tI(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function nI(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var rI="showImagePricingModal";function od(e){document.dispatchEvent(new CustomEvent(rI,{detail:JSON.stringify({trigger:e})}))}var ia=null;async function bS(e,{srcUrl:t}){if(!X0(e))return;if(!await _s(e)){od("image_right_menu");return}if(!ia){D.error("rightMenu image ele not found",t,ia);return}if(ia.translationStatus!=="translating"){if(ia.hasTranslate){Gi(ia);return}if(t!==ia.src)try{let r=new URL(t),a=new URL(ia.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,ia.src,r);return}Wi(e,ia,!0,"image_right_menu")}}function yS(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ia=e.target)})}var xS=0;function Vu(e){let t=Date.now();if(t-xS<2e3||(xS=t,aI()))return;let n=`${B}-modal-root`,r=`${B}-modal`,a=document.getElementById(n),i=`${B}-modal-title`,o=`${B}-modal-body`,s=`${B}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,Gu)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${B}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=De();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=B+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=B+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,Gu)}setTimeout(()=>{iI()},100)}function aI(){let e=document.querySelector(`#${B}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${B}-modal`)?.style.display=="block":!1}function iI(){let e=document.querySelector(`#${B}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-modal`);t&&(t.style.display="block")}}function Gu(e,t=!1){let n=document.querySelector(`#${B}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${B}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function vS(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await bn();Ht({...l,sameLangCheck:!1}),o(i,!0)})}var SS=0;async function TS(e){let t=Date.now();if(t-SS<2e3||(SS=t,oI()))return;let n=`${B}-toast-root`,r=`${B}-toast`,a=document.getElementById(n),i=`${B}-toast-msg`,o=`${B}-toast-content`,s=`${B}-toast-hidden`,u,l,c=()=>{l&&vh(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,vh);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${B}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=De();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=B+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,vh)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{sI()},100),d=setTimeout(c,2500)}function oI(){let e=document.querySelector(`#${B}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${B}-toast`)?.style.display=="flex":!1}function sI(){let e=document.querySelector(`#${B}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-toast`);t&&(t.style.display="flex")}}function vh(e,t=!1){let n=document.querySelector(`#${B}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${B}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function Sh(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=rt.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${B}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",CS({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(m1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Nl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(h1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(be.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(be.OPTIONS_URL)},Th(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=rt.sanitize(m),p.onclick=()=>{wS(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=rt.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Ht(g),CS({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=B+"-btn",p.innerHTML+=rt.sanitize(m),s.appendChild(p)}function CS(e){Gr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(t)}var ES=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},kS=[()=>{jn.unbind()}],AS=[...kS],uI=Jn(async()=>{await Ua()},50),lI=Jn(async()=>{await Cc()},50),cI=Jn(async()=>{await Db()},50),dI=Jn(async()=>{await kb()},50),DS=Jn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),Ch=!1,mI=Nn(()=>{let e=globalThis.getSelection()?.toString().trim();!Ch&&e&&e.length>0?Js({text:e}):Js({})},50),pI=()=>{Ch=!0,setTimeout(()=>{Ch=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(ES)return;ES=!0,ne()||Sb(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(Y+"DocumentMessageUser",BS),document.addEventListener(Y+"DocumentMessageUpdateUser",IS),document.addEventListener(Y+"ChangeSuccessService",_S.bind(null,t)),document.addEventListener(Y+"ChangeService",OS.bind(null,t)),document.addEventListener(mn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(Al,Ft.showToastByEvent.bind(null,t)),document.addEventListener(Si,Ft.showModal.bind(null,t)),n.addEventListener(Y+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(q3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(z3,Ft.eventUpload.bind(null,t)),n.addEventListener(Dl,a=>{it()||Dh(a,t)}),n.addEventListener(W3,NS),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",mI),document.addEventListener("contextmenu",pI),yS(),it()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),ne()&&(it()||n.addEventListener(yr,Ft.handlePopupInit)),it()||ni.rootIframe(Il).handleAsk("throttleRequest",H6)};function PS(e,t){hI(),Ft.SetupDomListenersForOnce(t,e),ne()&&(it()||(th(e.config),bI(e.config))),Yn()&&jS(e,t),ct()&&th(e.config)}Ft.handlePopupInit=e=>{Y5()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===El&&Gr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Gu(n);return}let r=n.getAttribute(`data-${B}-event`);r&&je(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${B}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),LS({method:"retryFailedParagraphs"}),Gu(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${B}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Vu(Sh.bind(null,t,o,i,s));return}}};async function gI(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Ht(e)}async function fI(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Ht(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;TS(vS.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Vu(Sh.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Vu(nd.bind(null,"manga",e)):r=="webReport"&&Vu(nd.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=Eh()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")LS({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")Pb(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")gI();else if(i.type==="toggleEnableInputTranslation")fI();else if(i.type==="syncAppSetting")MS(i.data);else if(i.type==="translatePage")yI(i.data);else if(i.type==="getAsyncTranslationServiceList")a=sc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=D0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await xI(i.data,o)}catch(s){Ku(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await vI(o,i.data)}catch(s){Ku(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await Sc(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await J5();else if(i.type==="sharePage")Dh({detail:i.data},r);else if(i.type==="switchTranslationMode")wh(i.data);else if(i.type=="getAsyncAiAssistants")a=await Q9();else if(i.type=="addAiAssistantAsync")a=await c0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await c0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await kh(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await Ah(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Xc("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await vy(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Fb());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Bb());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await Sy(i.data));else if(i.type==="openPopup")ed({...i.data,open:!0});else if(i.type==="closePopup")ed({...i.data,open:!1});else if(i.type==="togglePopup")ed({...i.data});else if(i.type==="getPageStatusAsync")a=Ve();else if(i.type==="restorePage")SI();else if(i.type==="getPageLanguageAsync")a=dt();else if(i.type==="showFloatBallGuide")M5();else if(i.type=="getAsyncDetectAndSetLanguage")a=await FS(i.data);else if(i.type=="setFloatBallActive")_5(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;xo(r,s,o,!0)}else DS(i.type);a!=null&&i.id&&Ku(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{RS()},10)};Ft.handleSecurityPolicyViolation=e=>{be.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&je(n.name,[{name:n.name}],{...e})};function hI(){AS.forEach(e=>{e()}),AS=kS}function bI(e){if(ne()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Wc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:lm,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:cm,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:sm,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:um,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===sm?uI():i.id===um?lI():i.id===cm?cI():i.id===lm?dI():DS(i.id)},i.key)}}function LS(e){Gr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(t)}async function MS(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ge(ke(),t)}async function yI(e){let t=await MS(e);Gn(t)}function Ku(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function xI({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Yt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function vI(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Yt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof U?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof U?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function SI(){Ve()!=="Original"&&Nr()}var Vi={};async function Ph(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Be({text:t,minLength:200,pageLangs:[Ct(),"en"]});return er(n),n}async function US(e){let t=0,n=0;Rn("Translating");let r=dt(),a=mc(),i=[...document.querySelectorAll(".source-text")];if(Ro(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");Et(c.node,"id",c.id+""),d&&(Fo(d,c.id)?.remove(),d.appendChild(cu(e,c.id,!0)))}),await s(l),await ot(0)}}catch(u){throw u}finally{t=0,n=0,Rn("Translated")}async function s(u){await Yt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Fo(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=rt.sanitize(`${l.message}`),Vi[m]={ok:!1,sentence:d},qS(u,e,t,n,l)):c&&(g.innerHTML=rt.sanitize(c.text),Vi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function HS(e){let t=0,n=0;Rn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Vi),a=[],i=[];for(let o of r){let s=Vi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Vi[o],c.appendChild(cu(e,o)),i.push(s.sentence))}}}try{await Yt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Fo(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=rt.sanitize(`${o.message}`),Vi[l]={ok:!1,sentence:u},qS(i,e,t,n,o)):s&&(d.innerHTML=rt.sanitize(s.text),Vi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Rn("Translated")}}function Lh(){Rn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function qS(e,t,n,r,a){if(!(a instanceof U))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(mn,{detail:i}))}var sd={};async function zS(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Be({text:t,pageLangs:["en"]});return er(n),n}async function WS(e){Rn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(sd),n=[];for(let r of t){let a=sd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Ml}='${r}']`);o&&o.remove(),n.push(a)}}try{Iu(),await K0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Rn("Translated")}}function GS(e){Object.values(sd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=is(e,t.targetNodes);di(e,i,r,t.rootNodes||[]),Ui(t.targetNodes)}else n==="dual"&&Ui(t.targetNodes)}),Rn("Original")}async function VS(e){Rn("Translating");let t=Vs(),n=Yr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;os(l,e);let c=l.body;if(!c)continue;Qr(l.documentElement,e.state.translationMode);let d=an(e);d.isModifyImage=!1;let m=[];await Da({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await ot(0)}o(a),Rn("Translated");function o(u){document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Mo(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=z0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:G0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Yf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),sd[p.id]=p)}K0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function ud(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Ka(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var Sn=!1,Mh,KS=!1,ld=null,TI=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=B+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",td(s,e,t,r,a,i,o)},i.append(d)}var nd=[],rT=[];async function fh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(hh()||nd.includes(t))return"";if(nd.length>=s)return new Promise((l,c)=>{rT.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});nd.push(t);try{let u=await WB(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await aT(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{nd.shift(),(async()=>{let u=rT.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await fh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function HB(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${tt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${iT(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await Q({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function qB(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function zB(e,t,n){let r=await qB(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),ne()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):Q({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await Hb(a)})}async function WB(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=GB(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await mc(u);mi({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await HB(e,r,l,n.type);if(c.objectKey&&mi({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await zB(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return ne()?d=await fetch(gh()+"/trigger",{method:"POST",body:Ec(u),headers:{token:e.user?.token||""}}).then(async m=>(await Ya(m,"manga"),m.json())):d=await Q({url:gh()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),mi({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function aT(e,t,n,r,a){let i=hh();if(i)return;mr("Translating",i);let o=await Q({url:gh()+`/${t}/task-state?comicHash=${n}&domain=${iT(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await S9(t,r.queryIntervalTime||100),aT(e,t,n,r,a))}function gh(){return tt+"comics"}function GB(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=A0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function iT(e){return e.replaceAll(".","_")}var kt,bh,ad,zu,Ut=!1;function hh(){return Ut}var oT=!1;function lT(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ut=!1,!oT&&kt.injectedCss&&(Bn(document,`${kt.injectedCss}`,B+"-image-injected-css"),oT=!0);let t=!1,n=jn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=mT(kt);for(let i of a){if(Ut)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await it(20),await r(i,t))}},100);if(_e("translate_manga",[{name:"translate_manga"}],e),n(),bh=new MutationObserver(a=>{n()}),bh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;zu=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Wi(e,o.target),zu?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}ad=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(zu?.unobserve(a),zu?.observe(a)):await Wi(e,a)))}}async function Wi(e,t,n,r){let a=e.rule.imageRule.type||"common",i=yo();if(n&&(Ut=!1),Ut||eI(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=KB(e,t);u||(s=us(e,t,"translating")),n&&_e("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await YB(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await VB(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||us(e,t,"success")):(u||us(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&mr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&mr("Error",Ut),$B(e,l),u))return;if(l instanceof Hu)return us(e,t,"error",l.type);us(e,t,"error")}finally{n&&mr(i,Ut),s?.remove()}}function cT(){if(!kt)return;Ut=!0,bh?.disconnect(),ad?.disconnect(),zu?.disconnect();let e=mT(kt);for(let t of e)Gi(t)}function Gi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Gi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function VB(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await QB(l,c,t.cloneNode(!0))}else o=await pT(t);if(Ut)return;if(!o||o.size<6*1e4){ad?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await fp(o);return await yh(e,t,s)?!0:s?dT({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function dT({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await ZB(n)||n,u=r||a;try{if(Ut)return;mr("Translating",Ut),ph(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};mi(l);let d=await fh(e,u,s,a,i,m=>{ph(e,o,m)});return d?(l.targetUrl=d,mi(l),await gT(kt,t,d),mr("Translated",Ut),!0):!1}catch(l){if(mi({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function yh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=ed(r);return a&&a?.targetUrl?(await gT(kt,t,a.targetUrl||""),mr("Translated",Ut),!0):!1}function KB(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=ed(r);return a&&a?.targetUrl}return!1}async function YB(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!XB(a,i)){ad?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await yh(e,t,o))return!0;let s=null;if(mr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await Ya(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await JB(i);else{let d=await Q({url:i,responseType:"base64"});s=await Ac(d)}if(Ut)return;if(await H5(s))throw new Hu("GIFs not supported","gif_not_supported");let l=await fp(s);if(!o&&(o=l,await yh(e,t,o)))return!0;if(!o)return!1;return dT({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function mT(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function pT(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function QB(e,t,n){return new Promise((r,a)=>{Q({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await pT(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function gT(e,t,n){try{return await sT(e,t,n)}catch{let a=await tI(n);return sT(e,t,a)}}async function sT(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function JB(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function ZB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function XB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!$c(e.inValidSrcRegex,t):!0}var rd=0,qu=0;function $B(e,t){if(rd!=0){qu++;return}if(t.message.indexOf("quota exceeded")>0){uT(e,t);return}qu++,rd=setTimeout(()=>{if(qu<(kt.errorTimes||3)){rd=0,qu=0;return}uT(e,t),qu=0,rd=0},kt.errorInterval||3e3)}function uT(e,t){let r=new U("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(Nn,{detail:r}))}function xh(e){return e.classList.contains("imt-img")||e.hasTranslate}function eI(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function tI(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var nI="showImagePricingModal";function id(e){document.dispatchEvent(new CustomEvent(nI,{detail:JSON.stringify({trigger:e})}))}var ra=null;async function fT(e,{srcUrl:t}){if(!Z0(e))return;if(!await Is(e)){id("image_right_menu");return}if(!ra){D.error("rightMenu image ele not found",t,ra);return}if(ra.translationStatus!=="translating"){if(ra.hasTranslate){Gi(ra);return}if(t!==ra.src)try{let r=new URL(t),a=new URL(ra.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,ra.src,r);return}Wi(e,ra,!0,"image_right_menu")}}function hT(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ra=e.target)})}var bT=0;function Gu(e){let t=Date.now();if(t-bT<2e3||(bT=t,rI()))return;let n=`${B}-modal-root`,r=`${B}-modal`,a=document.getElementById(n),i=`${B}-modal-title`,o=`${B}-modal-body`,s=`${B}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,Wu)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${B}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=De();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=B+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=B+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let b=document.createElement("div");b.className=o+" notranslate",m.appendChild(b);let h=document.createElement("div");h.className=s,m.appendChild(h),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,b,h,Wu)}setTimeout(()=>{aI()},100)}function rI(){let e=document.querySelector(`#${B}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${B}-modal`)?.style.display=="block":!1}function aI(){let e=document.querySelector(`#${B}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-modal`);t&&(t.style.display="block")}}function Wu(e,t=!1){let n=document.querySelector(`#${B}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${B}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function yT(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await hn();Ht({...l,sameLangCheck:!1}),o(i,!0)})}var xT=0;async function vT(e){let t=Date.now();if(t-xT<2e3||(xT=t,iI()))return;let n=`${B}-toast-root`,r=`${B}-toast`,a=document.getElementById(n),i=`${B}-toast-msg`,o=`${B}-toast-content`,s=`${B}-toast-hidden`,u,l,c=()=>{l&&vh(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,vh);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${B}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),h=document.createElement("style"),f=De();h.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(h),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),b.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=B+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},b.addEventListener("click",T=>{T.target==m&&(m.style.display="none")}),e(m,u,l,vh)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{oI()},100),d=setTimeout(c,2500)}function iI(){let e=document.querySelector(`#${B}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${B}-toast`)?.style.display=="flex":!1}function oI(){let e=document.querySelector(`#${B}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-toast`);t&&(t.style.display="flex")}}function vh(e,t=!1){let n=document.querySelector(`#${B}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${B}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function Th(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=rt.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${B}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",TT({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(c1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Ol)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(g1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(be.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(be.OPTIONS_URL)},Sh(e,e.config.translationService,!1,g).then(b=>{b?(m=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=rt.sanitize(m),p.onclick=()=>{ST(b),u(p,!0)}):(m=l("goSettings"),p.innerHTML=rt.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Ht(g),TT({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=B+"-btn",p.innerHTML+=rt.sanitize(m),s.appendChild(p)}function TT(e){Wr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(t)}var CT=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},ET=[()=>{Un.unbind()}],wT=[...ET],sI=Jn(async()=>{await ja()},50),uI=Jn(async()=>{await Sc()},50),lI=Jn(async()=>{await Ab()},50),cI=Jn(async()=>{await Eb()},50),AT=Jn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),Ch=!1,dI=jn(()=>{let e=globalThis.getSelection()?.toString().trim();!Ch&&e&&e.length>0?Qs({text:e}):Qs({})},50),mI=()=>{Ch=!0,setTimeout(()=>{Ch=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(CT)return;CT=!0,ne()||xb(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(Y+"DocumentMessageUser",RT),document.addEventListener(Y+"DocumentMessageUpdateUser",FT),document.addEventListener(Y+"ChangeSuccessService",BT.bind(null,t)),document.addEventListener(Y+"ChangeService",IT.bind(null,t)),document.addEventListener(Nn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(El,Ft.showToastByEvent.bind(null,t)),document.addEventListener(vi,Ft.showModal.bind(null,t)),n.addEventListener(Y+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(U3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(H3,Ft.eventUpload.bind(null,t)),n.addEventListener(kl,a=>{at()||Dh(a,t)}),n.addEventListener(q3,_T),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",dI),document.addEventListener("contextmenu",mI),hT(),at()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),ne()&&(at()||n.addEventListener(yr,Ft.handlePopupInit)),at()||ti.rootIframe(Bl).handleAsk("throttleRequest",j6)};function kT(e,t){fI(),Ft.SetupDomListenersForOnce(t,e),ne()&&(at()||(th(e.config),hI(e.config))),Yn()&&OT(e,t),lt()&&th(e.config)}Ft.handlePopupInit=e=>{V5()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===wl&&Wr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Wu(n);return}let r=n.getAttribute(`data-${B}-event`);r&&_e(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${B}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),DT({method:"retryFailedParagraphs"}),Wu(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${B}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Gu(Th.bind(null,t,o,i,s));return}}};async function pI(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Ht(e)}async function gI(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Ht(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;vT(yT.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Gu(Th.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Gu(td.bind(null,"manga",e)):r=="webReport"&&Gu(td.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=Eh()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")DT({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")kb(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")pI();else if(i.type==="toggleEnableInputTranslation")gI();else if(i.type==="syncAppSetting")PT(i.data);else if(i.type==="translatePage")bI(i.data);else if(i.type==="getAsyncTranslationServiceList")a=oc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=k0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await yI(i.data,o)}catch(s){Vu(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await xI(o,i.data)}catch(s){Vu(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await vc(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await Y5();else if(i.type==="sharePage")Dh({detail:i.data},r);else if(i.type==="switchTranslationMode")wh(i.data);else if(i.type=="getAsyncAiAssistants")a=await K9();else if(i.type=="addAiAssistantAsync")a=await l0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await l0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await kh(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await Ah(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Zc("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await yy(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Mb());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Rb());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await xy(i.data));else if(i.type==="openPopup")$0({...i.data,open:!0});else if(i.type==="closePopup")$0({...i.data,open:!1});else if(i.type==="togglePopup")$0({...i.data});else if(i.type==="getPageStatusAsync")a=Ve();else if(i.type==="restorePage")vI();else if(i.type==="getPageLanguageAsync")a=dt();else if(i.type==="showFloatBallGuide")P5();else if(i.type=="getAsyncDetectAndSetLanguage")a=await MT(i.data);else if(i.type=="setFloatBallActive")B5(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;xo(r,s,o,!0)}else AT(i.type);a!=null&&i.id&&Vu(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{LT()},10)};Ft.handleSecurityPolicyViolation=e=>{be.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&_e(n.name,[{name:n.name}],{...e})};function fI(){wT.forEach(e=>{e()}),wT=ET}function hI(e){if(ne()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=zc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:um,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:lm,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:om,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:sm,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===om?sI():i.id===sm?uI():i.id===lm?lI():i.id===um?cI():AT(i.id)},i.key)}}function DT(e){Wr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(t)}async function PT(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await qe(Ee(),t)}async function bI(e){let t=await PT(e);Gn(t)}function Vu(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function yI({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Yt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function xI(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Yt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof U?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof U?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function vI(){Ve()!=="Original"&&Or()}var Vi={};async function Ph(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await je({text:t,minLength:200,pageLangs:[Ct(),"en"]});return er(n),n}async function NT(e){let t=0,n=0;Mn("Translating");let r=dt(),a=dc(),i=[...document.querySelectorAll(".source-text")];if(Ro(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");Et(c.node,"id",c.id+""),d&&(Fo(d,c.id)?.remove(),d.appendChild(lu(e,c.id,!0)))}),await s(l),await it(0)}}catch(u){throw u}finally{t=0,n=0,Mn("Translated")}async function s(u){await Yt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Fo(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=rt.sanitize(`${l.message}`),Vi[m]={ok:!1,sentence:d},UT(u,e,t,n,l)):c&&(g.innerHTML=rt.sanitize(c.text),Vi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function jT(e){let t=0,n=0;Mn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Vi),a=[],i=[];for(let o of r){let s=Vi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Vi[o],c.appendChild(lu(e,o)),i.push(s.sentence))}}}try{await Yt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Fo(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=rt.sanitize(`${o.message}`),Vi[l]={ok:!1,sentence:u},UT(i,e,t,n,o)):s&&(d.innerHTML=rt.sanitize(s.text),Vi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Mn("Translated")}}function Lh(){Mn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function UT(e,t,n,r,a){if(!(a instanceof U))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(Nn,{detail:i}))}var od={};async function HT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await je({text:t,pageLangs:["en"]});return er(n),n}async function qT(e){Mn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(od),n=[];for(let r of t){let a=od[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Ll}='${r}']`);o&&o.remove(),n.push(a)}}try{Bu(),await V0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Mn("Translated")}}function zT(e){Object.values(od).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=is(e,t.targetNodes);ci(e,i,r,t.rootNodes||[]),Ui(t.targetNodes)}else n==="dual"&&Ui(t.targetNodes)}),Mn("Original")}async function WT(e){Mn("Translating");let t=Gs(),n=Kr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;os(l,e);let c=l.body;if(!c)continue;Yr(l.documentElement,e.state.translationMode);let d=an(e);d.isModifyImage=!1;let m=[];await ka({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await it(0)}o(a),Mn("Translated");function o(u){document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Mo(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=q0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:W0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Yf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),od[p.id]=p)}V0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function sd(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Va(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}function TI(){let e=document.querySelector(`#${B}-modal-input-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-modal`);t&&(t.style.display="block")}}function GT(e){let t=`${B}-modal-input-root`,n=`${B}-modal`,r=`${B}-modal-title`,a=`${B}-modal-body`,i=`${B}-modal-footer`,o=document.querySelector(`#${t}`),s,u,l,c;return setTimeout(()=>{TI()},100),new Promise(d=>{let m=d;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let I=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${B}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let I=P.attachShadow({mode:"open"}),L=document.createElement("style"),_=De();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,I.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let O=document.createElement("div");O.className=B+"-modal-content notranslate "+B+"-modal-content-in-input",s.appendChild(O);let z=document.createElement("span");z.textContent="\xD7",z.className=B+"-close",O.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",O.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",O.appendChild(c),l=document.createElement("div"),l.className=i,O.appendChild(l),I.appendChild(s),z.onclick=function(){A(),d("close")},I.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=Pe.bind(null,e.config.interfaceLanguage),g=`
${g0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=In?.createHTML(g)||g,c.innerHTML=In?.createHTML("")||"";let b=document.createElement("p"),h=p("modalEnableInputTranslationDesc",{1:oe+"docs/input/"});b.innerHTML=In?.createHTML(h)||h,b.style.cssText="margin-bottom:12px",c.appendChild(b);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=rt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=In?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P{CI(e,t)})}function CI(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(ld===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;We().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(Sn||ld===!1)return;let p=md(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(DI(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&YS(t,o,m.target)&&(s=0,Bh(m,e,t,o))}function d(){Mh=l,t.removeEventListener("keyup",Mh),t.addEventListener("keyup",Mh,!0)}PI(e)}function JS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function cd(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var ls;function Rh(e){let t=e.parentElement;if(!t)return;ls=document.createElement("div"),ls.className=B+"-input";let n=`
`;ls.innerHTML=Un?.createHTML(n)||n,t.appendChild(ls);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=TI,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Fh(){ls&&ls.remove()}async function wI(e,t=window){if(Sn)return;let r=globalThis.getSelection()?.toString();if(r){Oh(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let v=m.split(" ")[0];v&&v[0]&&(v=v[0].toLowerCase()+v.slice(1)),v.trim()&&u.flatAlias.includes(v)?(p=cd(v,u.codeAlias),d=m.slice(v.length+1)):d=m},y=function(){p="";let v=JS(u),S=m.split(v);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let C=m.lastIndexOf(d),T=m.slice(0,C).lastIndexOf(S[S.length-2]);c=m.slice(0,T+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let w=m.slice(c.length+1,m.indexOf(d)).trim();if(p=cd(w,u.codeAlias),!p){D.warn("not found alias",w);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(v=>i[v]=[v,...i[v]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;We().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;Sn=!0;let c="",d="",m=Ur(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=ZS(d,u),h=await Be({text:g,pageLangs:["en"]});D.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;Rh(l),at(Ds,Date.now());try{e.specialAiAssistant=Fr(e,e.inputTranslationService,!0);let v=await ra(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});_h(e),rT(e,t,l,c+v.text)}catch(v){if(v instanceof U){let S=v.uiConfig(e);Nh(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(mn,{detail:S}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,Fh()}}async function Bh(e,t,n,r){if(!Sn)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=cd(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=JS(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=cd(b,r.codeAlias),!u){D.warn("not found alias",b);return}},a=md(n.document,t.rule.enableInputDeepActive);if(!a)return;Sn=!0;let i="",o="",s=Ur(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=ZS(o,r),c=await Be({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!KS){KS=!0;let g=await LI(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(ld=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(ld=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await Ht(h)}}Rh(a),at(Ds,Date.now());try{t.specialAiAssistant=Fr(t,t.inputTranslationService,!0);let g=await ra(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});_h(t),rT(t,n,a,i+g.text)}catch(g){if(g instanceof U){let h=g.uiConfig(t);Nh(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(mn,{detail:h}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,Fh()}}function YS(e,t,n){if(!n)return!1;if(Ih(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;D.debug("cursorPosition",r,"textLength",a),D.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return D.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=EI(i,n);D.debug("Current text node:",i.textContent),D.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=ct()?u[0]||u[1]:u[0];D.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else D.debug("Cursor is not within a text node.")}}return!1}function EI(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function ZS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function XS(e,t){let n=t.innerHTML,r=Ur(t);return{html:n.replace(r,e),text:e}}function dd(e,t,n=!1){let r=Ur(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Ur(e){return e.value||e.innerText||e.textContent}async function jr(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function AI(e,t,n){await jr(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await jr(10)}async function $S(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await jr(10))}async function eT(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await jr(20),(t.value||t.value==="")&&(t.value=e.text)}async function tT(e,t){Ih(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await jr(20))}var nT=[AI.bind(null,["plain"])];function Ih(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function kI(e,t){if(Ih(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function rT(e,t,n,r){await jr(50),await kI(t,n),await jr(50);let a=e.rule.inputConfig,i=XS(r,n);try{await jr(50),a?.execCommandDeleteEnable&&!kn()&&Ur(n)?.trim()!=""&&(t.document.execCommand("delete"),await jr(50)),D.debug("clearContent",Ur(n))}catch(o){D.error(o)}for(let o of[...nT,eT,tT,$S]){await o(i,n);let s=aT(t);if(!s)return;if(D.debug("setContent",o.name,dd(i,s),Ur(s),i),dd(i,s))break}}function aT(e){return e.document.activeElement}function _h(e,t=""){je("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function DI(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function PI(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Nt(t,"")||Number(await Nt(Ds,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{MI()},100),new Promise(d=>{let m=d;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let I=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${B}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let I=P.attachShadow({mode:"open"}),L=document.createElement("style"),_=De();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,I.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let O=document.createElement("div");O.className=B+"-modal-content notranslate "+B+"-modal-content-in-input",s.appendChild(O);let z=document.createElement("span");z.textContent="\xD7",z.className=B+"-close",O.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",O.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",O.appendChild(c),l=document.createElement("div"),l.className=i,O.appendChild(l),I.appendChild(s),z.onclick=function(){A(),d("close")},I.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=Pe.bind(null,e.config.interfaceLanguage),g=`
${f0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Un?.createHTML(g)||g,c.innerHTML=Un?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:oe+"docs/input/"});h.innerHTML=Un?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=rt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=Un?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function Oh(e,t,n,r){if(Sn)return;try{let o=md(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;Sn=!0;let u=e.config.inputTargetLanguage,l=await Be({text:n,pageLangs:["en"]});D.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;Rh(o),at(Ds,Date.now());try{if(e.specialAiAssistant=Fr(e,e.inputTranslationService,!0),_h(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await ra(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await ra(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof U){let m=d.uiConfig(e);Nh(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(mn,{detail:m}))}}finally{Sn=!1}}catch(o){throw Sn=!1,o}finally{Sn=!1,Fh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=XS(l,u);try{await jr(50),c?.execCommandDeleteEnable&&!kn()&&Ur(u)?.trim()!=""&&(s.document.execCommand("delete"),await jr(50)),D.debug("clearContent",Ur(u))}catch(m){D.error(m)}for(let m of[...nT,eT,tT,$S]){await m(d,u);let p=aT(s);if(!p)return;if(D.debug("setContent",m.name,dd(d,p),Ur(p),d),dd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function Nh(e){return e==="retry"||e==="changeService"}function pd({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&In(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}zr(x($a,{lang:t.config.interfaceLanguage,children:x(n,{...r})}),d)}function iT(e){let t=document.createElement("span");return t.innerHTML=e,(t.textContent||"").trim()}function qe(e,t,n){je("translate_video_subtitle",[{name:"translate_video_subtitle",params:{video_platform:n||e.rule.id||""}}],{...e,sourceLanguage:t||"auto"})}function Qe(e,t){return e==t}function La(e,t){return!e||!t?!1:e.startsWith("zh")&&t.startsWith("zh")}function oT(e){let{url:t,method:n,headers:r,body:a}=e,i=new Headers;for(let[u,l]of Object.entries(r))i.append(u,l);let o;return typeof a=="object"?(delete a._formatBodyType,o=JSON.stringify(a)):typeof a=="string"&&(o=a),new Request(t,{method:n,headers:i,body:o})}function sT(e){return e?Object.entries(e).reduce((t,[n,r])=>{if(r==null||r==null||typeof r=="object"&&Object.keys(r).length===0)return t;if(n=="body"&&typeof r=="object"&&r._formatBodyType=="FormData"){let a=new FormData;for(let[i,o]of Object.entries(r))i!=="_formatBodyType"&&a.append(i,o);return t[n]=a,t}return t[n]=r,t},{}):null}function jh(e){return e.replace(/\n/g," ")}function uT(e){let t;return e instanceof URL?t=e.href:typeof e=="string"?t=e:e instanceof Request?t=e.url:t=String(e),t}function gd(e,t,n){let r="translationServices."+n,a=t("translationServices."+n);return a!=r?a:e.config.translationServices[n]?.name||a}function cs(e){return ds(e).subtitles}function ds(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${p4.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},G_=e=>/]*>[\s\S]*]*>/.test(e),JT=sn({name:QT,build:W_,detect:G_,helper:p4,parse:z_});var V_="srt",Xu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},K_=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Xu.toMilliseconds(s[2]),u.end=Xu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},Y_=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${Xu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},Q_=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),ZT=sn({name:V_,build:Y_,detect:Q_,helper:Xu,parse:K_});var J_="sub",g4=25,Z_=(e,t)=>{t.fps||=g4;let n=t.fps>0?t.fps:g4,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:g4,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},$_=e=>/^\{\d+\}\{\d+\}.*/.test(e),XT=sn({name:J_,build:X_,detect:$_,parse:Z_});var eO="vtt",$u={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},tO=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=$u.toMilliseconds(s[2]),l.end=$u.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},nO=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${$u.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},rO=e=>/^\s*WEBVTT\r?\n/.test(e),$T=sn({name:eO,build:nO,detect:rO,helper:$u,parse:tO});var aO={vtt:$T,lrc:KT,smi:JT,ssa:WT,ass:GT,sub:XT,srt:ZT,sbv:YT,json:VT},eC=aO;var iO=e=>JSON.parse(JSON.stringify(e)),f4=class{format=eC;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),xd.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];as(this.ctx)&&this.isEnableSubtitle()&&(Et(document.documentElement,Y+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${B}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&In(document,`${t.join(` -`)}`,B+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await Ge(ke(),{});if(this.initConfig(n),await ot(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(oT(r),sT(a));return u&&this.setMemoryCache(o,u),u}catch(r){return D.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!Ze(ke(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:gd(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function E_(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:g0}})}function A_(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:t6}})}function k_(){return x("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:x("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function D_(){return x("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:x("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function P_(){return x("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:x("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var o4=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},sn=e=>new o4(e);var L_="ssa",Ki={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},s4=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sw.split(C,S).join(C).length)(h,",",r.length-1)+1;y.content=h.substring(T),y.data.Text=y.content,y.text=y.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(y)}}}}}t.verbose}return a},u4=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,zS=sn({name:L_,build:u4,detect:l4,helper:Ki,parse:s4});var M_="ass",WS=sn({name:M_,build:u4,detect:l4,helper:Ki,parse:s4});var R_="json",F_=(e,t)=>JSON.parse(e),B_=(e,t)=>JSON.stringify(e,void 0,2),I_=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},GS=sn({name:R_,build:B_,detect:I_,parse:F_});var __="lrc",c4={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},O_=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),VS=sn({name:__,build:N_,detect:j_,helper:c4,parse:O_});var U_="sbv",Ju={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},H_=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},q_=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),KS=sn({name:U_,build:q_,detect:z_,helper:Ju,parse:H_});var YS="smi",d4={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},W_=(e,t)=>{if(t.format&&t.format!==YS)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(d){let m={};m.type="caption",m.start=parseInt(d[1]),m.end=m.start+2e3,m.duration=m.end-m.start,m.content=d[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,g=/^([\s\S]*)/i.exec(m.content)||/^]*)>([\s\S]*)/i.exec(m.content);if(g){let b=g[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),b=b.replace(/^\s+/g,"").replace(/\s+$/g,""),p=b.replace(/ /gi," ").replace(/\s+/g,"").length===0,m.text=d4.htmlDecode(b,r)}!t.preserveSpaces&&p?t.verbose:n.push(m),s&&(s.end=m.start,s.duration=s.end-s.start),s=m;continue}t.verbose}return n},G_=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${d4.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},V_=e=>/]*>[\s\S]*]*>/.test(e),QS=sn({name:YS,build:G_,detect:V_,helper:d4,parse:W_});var K_="srt",Zu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},Y_=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Zu.toMilliseconds(s[2]),u.end=Zu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},Q_=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Zu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},J_=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),JS=sn({name:K_,build:Q_,detect:J_,helper:Zu,parse:Y_});var Z_="sub",m4=25,X_=(e,t)=>{t.fps||=m4;let n=t.fps>0?t.fps:m4,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:m4,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},eO=e=>/^\{\d+\}\{\d+\}.*/.test(e),ZS=sn({name:Z_,build:$_,detect:eO,parse:X_});var tO="vtt",Xu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},nO=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Xu.toMilliseconds(s[2]),l.end=Xu.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},rO=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Xu.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},aO=e=>/^\s*WEBVTT\r?\n/.test(e),XS=sn({name:tO,build:rO,detect:aO,helper:Xu,parse:nO});var iO={vtt:XS,lrc:VS,smi:QS,ssa:zS,ass:WS,sub:ZS,srt:JS,sbv:KS,json:GS},$S=iO;var oO=e=>JSON.parse(JSON.stringify(e)),p4=class{format=$S;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),yd.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];as(this.ctx)&&this.isEnableSubtitle()&&(Et(document.documentElement,Y+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${B}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&Bn(document,`${t.join(` +`)}`,B+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await qe(Ee(),{});if(this.initConfig(n),await it(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(iS(r),oS(a));return u&&this.setMemoryCache(o,u),u}catch(r){return D.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!Ze(Ee(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:pd(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=rt.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Yt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=bd(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Uu(this.ctx,n,r)}getTranslationMode(t){return La(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=B+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;qe(this.ctx,n);let r=t.filter(a=>a.text);Ma(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Qu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Nn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&pd({id:B+"quick-button",parent:n,ctx:this.ctx,Component:qT,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:zT+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Yi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return Sc(t.slice(0,50).map(n=>n.text).join(" "))}};function nC(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var Cd=class extends $e{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!Ze(ke(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Qe(X(r),this.ctx.targetLanguage);if(a||La(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(MT(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=LT(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${tt}subtitles/yt-asr-subs`;try{let a=await pc(t),o=(await Q({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(D.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){D.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Qe(X(o),r)&&!La(X(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Qe(X(d.languageCode),r)&&!La(X(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>X(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=X(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=nC(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>X(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>X(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return X(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=B+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Qe(X(a[u]),this.ctx.targetLanguage)&&!La(X(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:iT(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await Ge(ke(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Qu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await Ge(ke(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=fd(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Qe(X(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==ke()&&(this.lastReportUrl=ke(),qe(this.ctx,X(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),hd(a.arrayBuffer,a.document))}catch{}}};var wd=class extends $e{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Qe(X(i),this.ctx.targetLanguage))return null;qe(this.ctx,X(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:X(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,X(i));return}this.downloadSubtitle(o,X(i),[]);let u=await this.requestHumanSubtitle(o,X(i),r);if(u)return this.handleIOSFullScreen(u,X(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,X(i));return l?(this.handleIOSFullScreen(l,X(i)),l.documentElement.outerHTML):null}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){D.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[X(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return D.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ms(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!ne()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Yu(a,n,i,this.ctx)}catch(a){D.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(ke()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var fi=class extends $e{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Qe(X(t.language),this.ctx.targetLanguage))return;let r=a=>{if(D.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),X(i.language)),i.isTranslated=!0;return}qe(this.ctx,X(i.language)),this.translateSubtitle([...i.cues||[]],X(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>oO(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){D.error("download subtitle error",i)}return t}catch(r){D.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function oO(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var oa=class extends fi{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&qe(this.ctx,X(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Qe(X(t.language),this.ctx.targetLanguage))return;let r=a=>{D.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,X(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var hs=class extends oa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=ds(r),i=await Be({text:a.subtitles.map(l=>l.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Qe(X(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,X(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){D.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),gi(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var Ed=class extends $e{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Qe(X(a),this.ctx.targetLanguage))return null;qe(this.ctx,X(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,X(a));return JSON.stringify(o)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:jh(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){D.debug("translate subtitle:",o,s,u);return}let l=Hr(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${jh(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Ad=class extends fi{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Qe(X(i),this.ctx.targetLanguage))return null;qe(this.ctx,X(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,X(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,X(i))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=cs(t),s=cs(i),u=ms(o,s);return{text:gi(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=cs(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){D.debug("translate subtitle:",i,o,s);return}let u=Hr(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),gi(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[X(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(ke()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var kd=class extends $e{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=rC(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=rC(o,r.itemsPath):s=uO(o,r),!s?.length)continue;let u=await Be({text:s.map(l=>el(l,r.textKey)).join(` -`),pageLangs:[Ct(),"en"]});if(Qe(X(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:el(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),qe(this.ctx,X(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>el(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=sO(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function rC(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Io(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,qe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return rr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Vp(t);o.append(rt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Be({text:n,pageLangs:[dt(),"en"]});return Ro(t,r)?void 0:(await ra({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ve(),n=await Ge(ke(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await Ge(ke(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var Dd=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=lO(r),o=await Be({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(Qe(X(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=aC(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),qe(this.ctx,X(o));let s=await this.translateSubtitle(a,i,X(o));if(this.config.enableHookDownload)try{let u=aC(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),X(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Hr(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(tl,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},tl="http://www.w3.org/ns/ttml";function lO(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(tl,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(tl,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(tl,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function aC(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(tl,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:iC(i),end:iC(o),text:s})}),r}function iC(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Pd=class extends $e{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=ds(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Qe(o,this.ctx.targetLanguage))return null;if(qe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,X(o))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ms(n.subtitles,cs(u));return n.subtitles=l,gi(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){D.debug("translate subtitle:",a,i,o);return}let s=Hr(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),gi(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>X(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=mO(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return Be({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(ke()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=dO(r),i=cO(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function cO(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function dO(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function mO(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Ld=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=fd(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Qe(X(s),this.ctx.targetLanguage)?null:(qe(this.ctx,X(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),hd(a.arrayBuffer,a.document))}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Md=class extends $e{async requestSubtitle(t){let n=await Ge(ke(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new hs(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Uh(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}cT(a),Gh(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Rd=class extends $e{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(oC).forEach(n=>{oC[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Qe(X(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return D.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(qe(this.ctx,t),Ma(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=uT(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},oC={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Fd=class extends oa{constructor(t){super(t),new bs(t)}};var Bd=class extends oa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Yi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Be({text:i.map(c=>c.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Qe(X(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,X(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){D.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Yi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Id=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Be({text:a.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Qe(X(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,X(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),X(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",b=qh(g,l),f=qh(h,l),y=on(b),v=on(f);u==="duration"&&(v=y+v);let S=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(S||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var _d=class extends $e{hasSubtitle=!1;async mutationVideoChange(){let t=pO(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(qe(this.ctx,"ja","av"),this.hasSubtitle=!0,Ma(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await Q({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Yi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){D.error("fetchSubtitle",n);return}}};function pO(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var Od=class extends $e{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(qe(this.ctx,n.language_code),Ma(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var gO={youtube:Cd,netflix:wd,webvtt:hs,khanacademy:Ed,udemy:Ad,hulu:Md,mubi:Od,text_track:fi,text_track_dynamic:oa,general:kd,live:bs,ebutt:Dd,disneyplus:Pd,"fmp4.xml":Ld,multi_attach_vtt:Rd,twitter:Fd,subsrt:Bd,xml:Id,av:_d},Nd;async function AT(e){try{ne()&&await ot(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=gO[t.type];if(!n)return;Nd=new n(e)}catch(t){D.error(t)}}async function h4(){Nd?.onPageStatusChange()}async function fO(e,t){if(Nd?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&it())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),je("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function hO(){Nd?.onTranslationModeChanged()}vb({autoEnableSubtitleChanged:fO,reloadSubtitleWithTranslationModeChanged:hO});var le=null;function Ju(){return le||null}function Td(e){os(document,e),bO(e),wO(e),SO(e),CO(e),vO(le),Rn("Translated"),TO(le),c5(fs),yO(le),h4(),FO()}function bO(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=an(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}Xv(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}as(e)&&Et(document.documentElement,Y+"_rtl",e.targetLanguage)}function yO(e){let t=e.ctx;mC(t,!0),d5(e),T9(window.location.href)}function xO(e){let t=e.ctx;mC(t,!1),m5()}async function vO(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await cC(e.ctx,an(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await mi(s,e);await mi(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await mi(s,e)}function cC(e,t){gb(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=n5(e,t);return D.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(D.debug("requestTermsByContext contextTerms articleNode",r),xo({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function SO(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Vt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Rt({...t,tempTranslationUrlMatches:[...i]})}}function TO(e){e.ctx.rule.isTranslateTitle&&(qf(e.ctx),e.titleDynamicObserver=a5(e.ctx))}function CO(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function e4(e,t){le&&(e.filterRule=an(e,!0),e.isRichTranslate=Mo(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=an(e)),le.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},le.translationService=e.translationService,le.urlChangeDelay=e.rule.urlChangeDelay,le.immediateTranslateCapacity=e.state.immediateTranslationTextCount,le.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Qr(document.documentElement,le.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function wO(e){let t=Vs();le&&(t=le.id),le=le||{},le.ctx=e,le.id=t,le.paragraphQueue=le.paragraphQueue||[],e4(e),le.currentUrl=window.location.href,le.paragraphEntities=le.paragraphEntities||{},le.autoIncreaseParagraphId=le.autoIncreaseParagraphId||1,le.interruptEffectDOM=!1,le.observeContainers=le.observeContainers||[],le.observeParagraphs=le.observeParagraphs||[],le.dynamicContainerObserver=le.dynamicContainerObserver||MO(le),le.ignoreResizeObserver=le.ignoreResizeObserver||RO(le),le.containerVisibleObserver=le.containerVisibleObserver||kO(le),le.paragraphVisibleObserver=le.paragraphVisibleObserver||DO(le),le.injectCssToDocument=jd,le.walkContainer=Da,e.specialAiAssistant=Fr(e,e.translationService,!0),window.onerror=AO(le,e),window.immersiveTranslateSwitchTranslateState=y4.bind(le)}function dC(e,t){t.getRootNode()instanceof ShadowRoot?jd(t.getRootNode(),e):jd(t.ownerDocument,e),EO(e)}function EO(e){le||(le={},le.ctx=e,le.id=Vs(),b4(le,e))}function b4(e,t){let n={...e};n.injectCssToDocument=jd,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=y4.bind(n);let r=Fr(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Mo(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function fs(e=!0){le&&(Rn("Original"),h4(),xO(le),Iu(),le.interruptEffectDOM=!0,le.ignoreResizeObserver?.disconnect(),le.dynamicContainerObserver?.disconnect(),le.containerVisibleObserver?.disconnect(),le.paragraphVisibleObserver?.disconnect(),le.titleDynamicObserver?.disconnect(),i5(le.ctx),h9(),b9(),e&&y4.call(le,"original"),Object.values(le.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),le=null)}function AO(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),fs(),n=setTimeout(()=>{Td(t)},e.urlChangeDelay||2e3)),!0}}function kO(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await Vf(e,r.target),n.unobserve(r.target))})}function DO(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{Kf(e,o)}),n.unobserve(a)}})})}var sC;function PO(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function LO(e){if(e.urlChangeDelay<=0||(clearTimeout(sC),e.translateState=="original"))return!1;fs(e.urlChangeDelay>20),sC=setTimeout(()=>{let t=e.ctx;Td(t)},e.urlChangeDelay)}function MO(e){let t=e.ctx.rule,n=an(e.ctx);return new MutationObserver(r=>{if(PO(e)&&(cC(e.ctx,n),t.mutationConfig.enableUrlChange&&LO(e))||e.interruptEffectDOM)return;let a=t0(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!rr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&rr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Bl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;uC(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&Xf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&uC(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ft.isSkipMarkEle(i.target)&&!ft.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Kr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Io(n,o.parentElement);l&&(ft.clearToParentMark(o,l),lC(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&lC(e,i.target)}catch(o){D.error(o)}}})}function uC(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{Zf(n),Da({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{Hi(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function lC(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ft.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{mi(t,e,n),i.timer=null},a)}function Zf(e){e.paragraphs=[],ft.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${B}-walked]`).forEach(t=>{t.paragraphs=void 0,ft.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function Xf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function RO(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);If(i)||(n.unobserve(r.target),ft.clearMark(a),mi(a,e))}})}async function y4(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Nr(),await ot(50),Zt({method:"translatePage"});return}this.translateState=e,Qr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Qr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Bu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function jd(e,t){if(e instanceof HTMLIFrameElement){os(e.contentDocument,t);return}os(e,t)}async function kT(e){let t=it(),n="auto";if(ne()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=zp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})):(r=Lo(e.mainFrame).slice(0,1e3),n=await Be({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Be({text:Lo(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=zp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})}else n=await Cb();return n==="auto"&&(n=await l5()),lb(n),n}async function DT(){if(!le)return;Iu(),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=le.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){le.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Ml}='${n}']`);i&&i.remove()}}V0.call(le,le.ctx)}async function Dh(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),je("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:dt()});let r=le?.ctx||t,a=await Vt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:o5(r)},await Rt(a);let o=De().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Vr(o)}catch(i){D.error(i)}}async function NS(){let e=await Vt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(G3,{detail:JSON.stringify(e.draft)}))}async function FO(){try{if(await Ri("reportActive")||"")return;D.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Mr();await Q({url:tt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Er("reportActive","1")}catch(e){D.error(e)}}function mC(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(io,{detail:{tempEnableSubtitle:t}}))}var BO=new AbortController,{signal:IO}=BO,rl=0,al=0,Qi=!1,hi,pC=0,Ra=[];function t4(e){_O(),ud().forEach(t=>{Ud(e,t)})}function Ud(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&HO(n,t);function s(){o=!o,o?(D.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Ud(n,t)):(D.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Ud(n,t))}t.document.addEventListener(Es,s),Ra.push(()=>{t.document.removeEventListener(Es,s)});let u=Jn(m=>{if(!(Math.abs(m.clientX-rl)+Math.abs(m.clientY-al)<=3)&&(rl=m.clientX,al=m.clientY,Qi&&!hi&&S4(n,!1,t),o||Qi&&!hi)){let p=bC(n.rule,t);if(p){if(v4(p))return;Hd(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;v4(p)||(Hd(n,!0,t),S4(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=jn.getPressedKeyCodes();if(g.length>1&&jn[p]&&(pC=Date.now(),Qi=!1),g.length===1&&jn[p]){let h=Date.now();Qi=!0,hi&&clearTimeout(hi),hi=setTimeout(()=>{let b=pC-h;b>0&&b<=i?Qi=!1:l(m),hi=void 0},i)}};if(Ra.push(()=>{hi&&clearTimeout(hi)}),a)return;nl("mousemove",u,t),Ra.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Qi=!1}if(nl("blur",d,t),Ra.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=c1;nl("keyup",gC,t),Ra.push(()=>{t.removeEventListener("keyup",gC)}),p.includes(m)?jn("*",{scope:"mouseHover",element:t.document},c):jn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),jn.setScope("mouseHover"),Ra.push(()=>{jn.deleteScope("mouseHover")})}}function _O(){try{Ra.forEach(e=>e())}catch{}Ra=[],jn.setScope("all")}function gC(e){Qi=!1}function nl(e,t,n=window){return n.addEventListener(e,t,{signal:IO})}function Hd(e,t,n,r){if(r=r||bC(e.rule,n),!r){D.debug("can not find selection part!");return}if(NO(e,r,t))return;if(v4(r)){D.debug("exclude dom");return}dC(e,r);let i=Ju();i&&(i.setupMouseHoverListener=Ud);let o=an(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=b4(i,e);Da({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{t0(n.document.documentElement)!==l.state.translationMode&&Qr(n.document.documentElement,l.state.translationMode),Hi(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();at(Y3,p);let g={translation_service:u?.translationService||""};je("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function bC(e,t){return OO(rl,al,e,t)}function OO(e,t,n,r){let a=$y(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=e9(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:hC(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){D.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{UO(e,a)}),!0}function jO(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(B+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${B}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function UO(e,t){let n=Ju();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Bu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function x4(e){return!!(e.host&&e.mode)}function fC(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||x4(n))return e;for(;n&&n.nodeName!=="BODY"&&!x4(n)&&Hp(n,t);){let r=n.parentNode;if(r&&x4(r))break;n=r}return n}function hC(e,t){return e.nodeType===Node.TEXT_NODE||Hp(e,t)?fC(e,t):e}function yC(e,t,n){rl=t.clientX,al=t.clientY,Hd(e,!0,n),S4(e,!0,n)}async function S4(e,t,n,r){if(!X0(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=t9(rl,al,e.rule,n);if(!a||sh(a.src)||a.translationStatus==="translating")return;let i=xh(a);if(i&&!t||i&&!r)return;if(i){Gi(a);return}if(!await _s(e)){od("image_mouse_hover");return}Wi(e,a,!0,"image_mouse_hover")}function HO(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Hd(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};nl("mousedown",i,t),nl("mouseup",o,t),Ra.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var il=[];function T4(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),il.push(()=>{document.removeEventListener("click",i)})}function xC(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),il.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function qd(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),il.push(()=>{document.removeEventListener("touchstart",r)})}var C4={touchShortcutsOff:()=>{},"multipleClick.2":T4,"multipleClick.3":T4,"multipleClick.4":T4,"slide.left":xC,"slide.right":xC,"fingers.2":qd,"fingers.3":qd,"fingers.4":qd,"fingers.5":qd};async function jS(e,t=window){try{KO();let n=await bn(),r=u1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=qO(e,n,a.command),o=C4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{VO(a.command,e,t,l)})})}catch(n){D.error(n)}}function qO(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var zO=()=>{Jh();let e=new CustomEvent(yr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},WO=()=>{Xh();let e=new CustomEvent(yr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},GO=()=>{Zh();let e=new CustomEvent(yr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},vC=0,VO=(e,t,n,r)=>{if(!(new Date().getTime()-vC<200)){if(vC=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")zO();else if(e==="touchShortcutsToggleTranslationMask")GO();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")WO();else if(e==="touchShortcutsToggleTranslateTouchElement")yC(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Bh(r,t,n,s)}}};function KO(){il.forEach(e=>{e()}),il=[]}function SC(e){let{t}=se(),{ctx:n,setSettings:r}=e,a=YO(e);return ws(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(oi,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Ms[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(QO,{...e})}function YO({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=se(),a=ye(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ye(()=>Ms.filter(s=>!(s==="Off"||Ms.includes(a)&&s==="OtherCustom")),[e,a]);return ye(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ho(s)}),l=Ms.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function QO(e){let{ctx:t,setSettings:n}=e,{t:r}=se(),a=t.config.generalRule,i=Object.keys(C4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(oi,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function TC(e){let{isAlwaysTranslateLang:t}=JO({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=se();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:ei(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:i0(e.currentLang,u.matches),excludeMatches:i0(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=a0(e.currentLang,u[i]),u[o]=i0(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function JO({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function wC({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=se(),i=De(),o=ye(()=>{let s=[{title:a("widget.translateFile"),icon:s6,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:m6,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(w1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:g6,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(C1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(_n,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(CC,{...s})}):x(CC,{...s}))})}function CC(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}var ZO=["bing","transmart","google","yandex"];function AC(e){let{t}=se();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:qo,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service`)}})]}):null}var EC="popup_trial_pro_show_count";function kC(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=G(null),s=Ce(!1);te(()=>{Ai(EC,0).then(l=>{o(l)})},[]);let u=ye(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!ZO.includes(d)},[t,n,r,i]);return te(()=>{!u||i==null||s.current||(s.current=!0,ki(EC,i+1))},[u,i,s,a]),{showTrialPro:u}}function DC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function PC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function Nu(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=G(""),[c,d]=G(null),[m,p]=G(null);te(()=>{pt.get(mt,null).then(y=>{y?(d(y),p(ht(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,h=ct();n&&h&&(g=n.generalRule.showSponsorOnSafari);let b=Za(n),{showTrialPro:f}=kC({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[b&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(h6,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(aN,{openSharePage:r})]}),x(Sx,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(zv,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(AC,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(eN,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(nN,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x(iN,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x(lg,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(Vv,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(SC,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(TC,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x($O,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(XO,{ctx:a})]}),x(wC,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),x(tN,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function XO({ctx:e}){if(e.rule.imageRule?.type!="manga"||!$0(e.rule.imageRule))return null;let{t}=se();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function $O(e){let{t}=se(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ye(()=>!i.disabled&&fm.includes(i.type||""),[n,fm,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Yc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function eN(e){let{t}=se(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(_n,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?l6:c6})})}function tN(e){let{t,lang:n}=se(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=Ae(y=>{i&&(o(v=>$c({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=du(i,s.rawUserConfig),d=De(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[u6,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(rN,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(ug,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(Dn),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?h():y.value==="changeToTranslateTheMainPage"?b():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(Dn,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(v1,m):y.value==="cleanCache"?rh().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function h(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function b(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function nN({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=se(),l=r.config,c=ye(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");ya(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?kn()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):ne()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Yn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${Ho(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function rN({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=se(),o=yn();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${B}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),L9(`${oe}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[Uy(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function aN(e){let{t}=se();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),d6]})}function iN({aiContextInfo:e,curUrl:t}){let{t:n}=se();if(!e?.visible)return null;let r=ye(()=>{let a=new URL(t);return a.searchParams.append(Hl,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[DC(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(_n,{text:n("contextDiffPreview",{1:r}),children:PC()})]})}function E4(){let[e,t]=G("Original"),n=Ce(""),{t:r}=se(),[a,i,o,s]=Br(()=>{setTimeout(()=>{Cn("updateGlobalContext",!1)()},250)});ss(a,i);let[u,l]=G(null),[c,d]=G(null),[m,p]=G(null),[g,h]=G("auto"),[b,f]=G(null),[y,v]=G({visible:!1,preview:!1}),S=Ce(!1),w=Ce(),[C,T]=G({}),A=Ce(!1),[{errorMsg:k,disableButton:R,noPermissionPDF:F},P]=G({errorMsg:"",disableButton:!1,noPermissionPDF:!1});te(()=>{We().any&&T({width:"100%"})},[]),te(()=>{wt().then(re=>l(re))},[a]),te(()=>{if(!(!c||!u)){if(S.current&&w.current){w.current.getAsyncContextString().then(re=>{if(re){let N=JSON.parse(re);f(N)}});return}ir({url:c,config:u}).then(re=>{S.current||f(re)})}},[c,u,S,w]),te(()=>(L(),()=>{globalThis.document.removeEventListener(Ps,z)}),[]);let I=Ae((re,N)=>{Cn("change_translate_service",!1,{translation_service:`${re}_${N}`})()},[]);if(te(()=>{!b||A.current||(A.current=!0,Cn("popupEventReport",!1,{key:"show_popup",events:[{name:"show_popup",params:{}}]})())},[b]),!u||!b)return null;return x(Ou,{children:x(Nu,{type:"popup",style:C,aiContextInfo:y,onClose:MC,onToggleTranslate:Cn("toggleTranslatePage"),onToggleEnabled:ie,openOptionsPage:mN,openAboutPage:dN,openSharePage:lN,onTranslatePdf:()=>{V(n.current||c||"")},onChangeService:I,onTranslateTheMainPage:Cn("translateTheMainPage"),onTranslateTheWholePage:Cn("translateTheWholePage"),onTranslateToThePageEndImmediately:Cn("translateToThePageEndImmediately"),onSwitchTranslationMode:re=>{Cn("switchTranslationMode",!0,{mode:re})()},onTranslatePage:Cn("translatePage"),onRestorePage:Cn("restorePage",!1),onWebReport:Cn("webReport"),onSetPageLanguage:Ie,setSettings:i,config:u,pageStatus:e,ctx:b,currentUrl:c,currentLang:g,onSetLocalConfig:Rt,onSetBuildinConfig:Ec,request:Sa,errorMsg:k,disabledButton:R,noPermissionPDF:F,onAutoEnableSubtitleChanged:Cn("autoEnableSubtitleChanged"),onToggleEnableEditTranslation:Cn("toggleEnableEditTranslation"),updateContextState:re=>Cn("updateContextState",!1,re)(),onOpenUrl:cN,onUpdateFloatBallEnable:Cn("updateFloatBallEnable")})});async function L(){let re=pu(),N=await $.tabs.query({currentWindow:!0,active:!0}),j=N[0].id;p(j);let W=LC(j,re);w.current=W;let me=N[0].url;if(_(j),globalThis.document.addEventListener(Ps,z),!me){d("about:newtab");return}d(me),d0(me)?(O(W,j,me),RC(j,async()=>{let ce=await W.getContextString(),ze=await W.getPageStatus(),pe=await wt(),he=await W.getCurrentPageLanguage(),ge=await w.current?.getAIContextInfo();if(v({visible:!!ge?.used,preview:ge?.sourceProgram=="html"}),t(ze),l(pe),h(he),ce){let de=JSON.parse(ce);if(de){if(f(de),S.current=!0,ya(de.rule)){let Se=await W.getPdfWebUrl();n.current=Se}}else D.error("contextStr is empty",ce)}he==="auto"&&setTimeout(async()=>{let de=await W.getCurrentPageLanguage();h(de)},500)})):ag(me||"")?sN(me||"")&&oN(me||"").then(ce=>{ce||P({disableButton:!1,noPermissionPDF:!0,errorMsg:r("noLocalFilePermissionForPDF")})}):P({disableButton:!0,errorMsg:r("noPermissionForThisPage"),noPermissionPDF:!1})}function _(re){$.tabs.onUpdated.addListener((N,j,W)=>{re===N&&W.url&&d(W.url)})}function O(re,N,j){re.ping().then(W=>{P({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),w4[N]=!0,FC(N)}).catch(W=>{let me="Could not establish connection. Receiving end does not exist.";kn()&&W.message===me?P({disableButton:!0,errorMsg:r("noPermissionForThisPage"),noPermissionPDF:!0}):$9(j)?P({disableButton:!0,errorMsg:r("noPermissionForLocalFile"),noPermissionPDF:!1}):X9(j)||P({disableButton:!0,errorMsg:r("reloadCurrentPage"),noPermissionPDF:!1}),D.debug("ping failed, but it is ok. cause maybe content is not injected",W)})}function z(re){let{tabId:N,payload:j}=re.detail,{method:W,data:me}=j;D.debug("popup received message",W,me||" "),W==="setPageStatus"?N&&t(me):W==="ready"&&N&&(P({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),w4[N]=!0,FC(N))}function V(re){re&&($.tabs.create({url:k1(re)}),globalThis.close())}function ie(){i(re=>({...re,enabled:!re.enabled})),setTimeout(()=>{MC()},50)}function Ie(re){let N=pu();if(h(re),m&&c){let j=bl(c,re,u.sourceLanguageUrlPattern);i(W=>({...W,sourceLanguageUrlPattern:j})),RC(m,()=>{LC(m,N).setCurrentPageLanguageByClient(re)})}}}function Cn(e,t=!0,n={}){return async()=>{let r=pu(),i=(await $.tabs.query({currentWindow:!0,active:!0}))[0].id,o={trigger:"popup",...n};r.sendMessage(`content_script:main:${i}`,{method:e,data:o}),t&&setTimeout(()=>{globalThis.close()},10)}}async function oN(e){try{let t=new URL(e),n=await fetch(t.href);return!0}catch{return!1}}function sN(e){try{return new URL(e).protocol==="file:"}catch{return!1}}var uN={setCurrentPageLanguageByClient:e=>Promise.resolve(),ping:e=>Promise.resolve(),getPageStatus:e=>Promise.resolve(),getCurrentPageLanguage:e=>Promise.resolve(),getContextString:e=>Promise.resolve(),getAsyncContextString:e=>Promise.resolve(),getPdfWebUrl:()=>Promise.resolve(""),getAIContextInfo:()=>Promise.resolve({})};function LC(e,t){function n(a,i){let o=`content_script:main_sync:${e}`;return a.includes("Async")&&(o=`content_script:main:${e}`),t.sendMessage(o,{method:a,data:i})}let r={...uN};return Object.keys(r).forEach(a=>{r[a]=n.bind(null,a)}),r}var lN=()=>{Cn("shareToDraft")()};function cN(e,t){let n=e;t&&(n=`${e}?utm_source=extension&utm_medium=extension&utm_campaign=${t}`),$.tabs.create({url:n}),setTimeout(()=>{globalThis.close()},50)}function dN(){$.tabs.create({url:$.runtime.getURL("options.html#about")}),setTimeout(()=>{globalThis.close()},50)}function MC(){globalThis.close()}function mN(e=!1,t=""){let n=$.runtime.getURL("options.html");$.tabs.create({url:n+t}),setTimeout(()=>{globalThis.close()},50)}var Ji={},w4={};function RC(e,t){if(w4[e])try{t()}catch(n){D.error("run callback failed",n)}else Ji[e]||(Ji[e]=[]),Ji[e].push(t)}function FC(e){if(Ji[e]&&Ji[e].length){let t=[...Ji[e]];Ji[e]=[],t.forEach(n=>n())}}async function BC(){try{if(ne())return;let e=$.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(qa,n)}catch{}}var IC=document.getElementById("mount");t6();IC&&(async()=>{let e=await wt();await BC(),e.debug&&D.setLevel("debug"),zr(x($a,{lang:e.interfaceLanguage,children:x(E4,{})}),IC)})();})(); +`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Yt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=hd(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),ju(this.ctx,n,r)}getTranslationMode(t){return Pa(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=B+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;ze(this.ctx,n);let r=t.filter(a=>a.text);La(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Yu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=jn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&md({id:B+"quick-button",parent:n,ctx:this.ctx,Component:HS,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:qS+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Yi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return vc(t.slice(0,50).map(n=>n.text).join(" "))}};function tC(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var Sd=class extends $e{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!Ze(Ee(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Qe(X(r),this.ctx.targetLanguage);if(a||Pa(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(LS(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=PS(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${tt}subtitles/yt-asr-subs`;try{let a=await mc(t),o=(await Q({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(D.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){D.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Qe(X(o),r)&&!Pa(X(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Qe(X(d.languageCode),r)&&!Pa(X(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>X(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=X(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=tC(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>X(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>X(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return X(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=B+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Qe(X(a[u]),this.ctx.targetLanguage)&&!Pa(X(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:aS(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await qe(Ee(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Yu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await qe(Ee(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=gd(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await je({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Qe(X(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Ee()&&(this.lastReportUrl=Ee(),ze(this.ctx,X(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),fd(a.arrayBuffer,a.document))}catch{}}};var Cd=class extends $e{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Qe(X(i),this.ctx.targetLanguage))return null;ze(this.ctx,X(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:X(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,X(i));return}this.downloadSubtitle(o,X(i),[]);let u=await this.requestHumanSubtitle(o,X(i),r);if(u)return this.handleIOSFullScreen(u,X(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,X(i));return l?(this.handleIOSFullScreen(l,X(i)),l.documentElement.outerHTML):null}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){D.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[X(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return D.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ms(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!ne()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Ku(a,n,i,this.ctx)}catch(a){D.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Ee()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var gi=class extends $e{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Qe(X(t.language),this.ctx.targetLanguage))return;let r=a=>{if(D.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),X(i.language)),i.isTranslated=!0;return}ze(this.ctx,X(i.language)),this.translateSubtitle([...i.cues||[]],X(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>sO(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){D.error("download subtitle error",i)}return t}catch(r){D.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function sO(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var aa=class extends gi{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&ze(this.ctx,X(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Qe(X(t.language),this.ctx.targetLanguage))return;let r=a=>{D.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,X(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var hs=class extends aa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=ds(r),i=await je({text:a.subtitles.map(l=>l.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Qe(X(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,X(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){D.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),pi(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}};var wd=class extends $e{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Qe(X(a),this.ctx.targetLanguage))return null;ze(this.ctx,X(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,X(a));return JSON.stringify(o)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:Oh(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){D.debug("translate subtitle:",o,s,u);return}let l=Ur(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${Oh(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Ed=class extends gi{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Qe(X(i),this.ctx.targetLanguage))return null;ze(this.ctx,X(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,X(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,X(i))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=cs(t),s=cs(i),u=ms(o,s);return{text:pi(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=cs(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){D.debug("translate subtitle:",i,o,s);return}let u=Ur(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),pi(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[X(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Ee()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Ad=class extends $e{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=nC(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=nC(o,r.itemsPath):s=lO(o,r),!s?.length)continue;let u=await je({text:s.map(l=>$u(l,r.textKey)).join(` +`),pageLangs:[Ct(),"en"]});if(Qe(X(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:$u(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),ze(this.ctx,X(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>$u(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=uO(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function nC(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Io(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,ze(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return rr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Vp(t);o.append(rt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await je({text:n,pageLangs:[dt(),"en"]});return Ro(t,r)?void 0:(await _i({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ve(),n=await qe(Ee(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await qe(Ee(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var kd=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=cO(r),o=await je({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(Qe(X(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=rC(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,X(o));let s=await this.translateSubtitle(a,i,X(o));if(this.config.enableHookDownload)try{let u=rC(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),X(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Ur(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(el,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},el="http://www.w3.org/ns/ttml";function cO(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(el,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(el,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(el,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function rC(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(el,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:aC(i),end:aC(o),text:s})}),r}function aC(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Dd=class extends $e{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=ds(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Qe(o,this.ctx.targetLanguage))return null;if(ze(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,X(o))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ms(n.subtitles,cs(u));return n.subtitles=l,pi(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){D.debug("translate subtitle:",a,i,o);return}let s=Ur(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),pi(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>X(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=pO(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return je({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Ee()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=mO(r),i=dO(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function dO(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function mO(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function pO(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Pd=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=gd(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await je({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Qe(X(s),this.ctx.targetLanguage)?null:(ze(this.ctx,X(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),fd(a.arrayBuffer,a.document))}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Ld=class extends $e{async requestSubtitle(t){let n=await qe(Ee(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new hs(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Nh(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}lS(a),zh(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Md=class extends $e{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(iC).forEach(n=>{iC[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Qe(X(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return D.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(ze(this.ctx,t),La(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=sS(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},iC={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Rd=class extends aa{constructor(t){super(t),new bs(t)}};var Fd=class extends aa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Yi.parse(r),i=a.filter(c=>c.type==="caption"),o=await je({text:i.map(c=>c.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Qe(X(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,X(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){D.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Yi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Bd=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await je({text:a.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Qe(X(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,X(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),X(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",h=Uh(g,l),f=Uh(b,l),y=on(h),v=on(f);u==="duration"&&(v=y+v);let T=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(T||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var Id=class extends $e{hasSubtitle=!1;async mutationVideoChange(){let t=gO(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(ze(this.ctx,"ja","av"),this.hasSubtitle=!0,La(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await Q({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Yi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){D.error("fetchSubtitle",n);return}}};function gO(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var _d=class extends $e{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(ze(this.ctx,n.language_code),La(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var fO={youtube:Sd,netflix:Cd,webvtt:hs,khanacademy:wd,udemy:Ed,hulu:Ld,mubi:_d,text_track:gi,text_track_dynamic:aa,general:Ad,live:bs,ebutt:kd,disneyplus:Dd,"fmp4.xml":Pd,multi_attach_vtt:Md,twitter:Rd,subsrt:Fd,xml:Bd,av:Id},Od;async function ES(e){try{ne()&&await it(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=fO[t.type];if(!n)return;Od=new n(e)}catch(t){D.error(t)}}async function g4(){Od?.onPageStatusChange()}async function hO(e,t){if(Od?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&at())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),_e("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function bO(){Od?.onTranslationModeChanged()}yb({autoEnableSubtitleChanged:hO,reloadSubtitleWithTranslationModeChanged:bO});var le=null;function Qu(){return le||null}function Td(e){os(document,e),yO(e),EO(e),SO(e),wO(e),TO(le),Mn("Translated"),CO(le),u5(fs),xO(le),g4(),BO()}function yO(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=an(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}Jv(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}as(e)&&Et(document.documentElement,Y+"_rtl",e.targetLanguage)}function xO(e){let t=e.ctx;dC(t,!0),l5(e),v9(window.location.href)}function vO(e){let t=e.ctx;dC(t,!1),c5()}async function TO(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await lC(e.ctx,an(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await di(s,e);await di(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await di(s,e)}function lC(e,t){mb(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=e5(e,t);return D.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(D.debug("requestTermsByContext contextTerms articleNode",r),xo({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function SO(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Vt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Rt({...t,tempTranslationUrlMatches:[...i]})}}function CO(e){e.ctx.rule.isTranslateTitle&&(qf(e.ctx),e.titleDynamicObserver=n5(e.ctx))}function wO(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Xh(e,t){le&&(e.filterRule=an(e,!0),e.isRichTranslate=Mo(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=an(e)),le.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},le.translationService=e.translationService,le.urlChangeDelay=e.rule.urlChangeDelay,le.immediateTranslateCapacity=e.state.immediateTranslationTextCount,le.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Yr(document.documentElement,le.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function EO(e){let t=Gs();le&&(t=le.id),le=le||{},le.ctx=e,le.id=t,le.paragraphQueue=le.paragraphQueue||[],Xh(e),le.currentUrl=window.location.href,le.paragraphEntities=le.paragraphEntities||{},le.autoIncreaseParagraphId=le.autoIncreaseParagraphId||1,le.interruptEffectDOM=!1,le.observeContainers=le.observeContainers||[],le.observeParagraphs=le.observeParagraphs||[],le.dynamicContainerObserver=le.dynamicContainerObserver||RO(le),le.ignoreResizeObserver=le.ignoreResizeObserver||FO(le),le.containerVisibleObserver=le.containerVisibleObserver||DO(le),le.paragraphVisibleObserver=le.paragraphVisibleObserver||PO(le),le.injectCssToDocument=Nd,le.walkContainer=ka,e.specialAiAssistant=Ca(e,e.translationService,!0),window.onerror=kO(le,e),window.immersiveTranslateSwitchTranslateState=h4.bind(le)}function cC(e,t){t.getRootNode()instanceof ShadowRoot?Nd(t.getRootNode(),e):Nd(t.ownerDocument,e),AO(e)}function AO(e){le||(le={},le.ctx=e,le.id=Gs(),f4(le,e))}function f4(e,t){let n={...e};n.injectCssToDocument=Nd,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=h4.bind(n);let r=Ca(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Mo(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function fs(e=!0){le&&(Mn("Original"),g4(),vO(le),Bu(),le.interruptEffectDOM=!0,le.ignoreResizeObserver?.disconnect(),le.dynamicContainerObserver?.disconnect(),le.containerVisibleObserver?.disconnect(),le.paragraphVisibleObserver?.disconnect(),le.titleDynamicObserver?.disconnect(),r5(le.ctx),g9(),f9(),e&&h4.call(le,"original"),Object.values(le.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),le=null)}function kO(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),fs(),n=setTimeout(()=>{Td(t)},e.urlChangeDelay||2e3)),!0}}function DO(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await Vf(e,r.target),n.unobserve(r.target))})}function PO(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{Kf(e,o)}),n.unobserve(a)}})})}var oC;function LO(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function MO(e){if(e.urlChangeDelay<=0||(clearTimeout(oC),e.translateState=="original"))return!1;fs(e.urlChangeDelay>20),oC=setTimeout(()=>{let t=e.ctx;Td(t)},e.urlChangeDelay)}function RO(e){let t=e.ctx.rule,n=an(e.ctx);return new MutationObserver(r=>{if(LO(e)&&(lC(e.ctx,n),t.mutationConfig.enableUrlChange&&MO(e))||e.interruptEffectDOM)return;let a=e0(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!rr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&rr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Fl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;sC(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&Xf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&sC(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ft.isSkipMarkEle(i.target)&&!ft.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Vr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Io(n,o.parentElement);l&&(ft.clearToParentMark(o,l),uC(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&uC(e,i.target)}catch(o){D.error(o)}}})}function sC(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{Zf(n),ka({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{Hi(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function uC(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ft.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{di(t,e,n),i.timer=null},a)}function Zf(e){e.paragraphs=[],ft.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${B}-walked]`).forEach(t=>{t.paragraphs=void 0,ft.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function Xf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function FO(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);If(i)||(n.unobserve(r.target),ft.clearMark(a),di(a,e))}})}async function h4(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Or(),await it(50),Zt({method:"translatePage"});return}this.translateState=e,Yr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Yr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Fu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function Nd(e,t){if(e instanceof HTMLIFrameElement){os(e.contentDocument,t);return}os(e,t)}async function AS(e){let t=at(),n="auto";if(ne()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=zp(e.mainFrame),n=await je({text:r,pageLangs:["en"]})):(r=Lo(e.mainFrame).slice(0,1e3),n=await je({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await je({text:Lo(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=zp(e.mainFrame),n=await je({text:r,pageLangs:["en"]})}else n=await Tb();return n==="auto"&&(n=await s5()),sb(n),n}async function kS(){if(!le)return;Bu(),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=le.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){le.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Ll}='${n}']`);i&&i.remove()}}G0.call(le,le.ctx)}async function Dh(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),_e("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:dt()});let r=le?.ctx||t,a=await Vt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:a5(r)},await Rt(a);let o=De().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Gr(o)}catch(i){D.error(i)}}async function _T(){let e=await Vt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(z3,{detail:JSON.stringify(e.draft)}))}async function BO(){try{if(await Mi("reportActive")||"")return;D.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Mr();await Q({url:tt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Er("reportActive","1")}catch(e){D.error(e)}}function dC(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(io,{detail:{tempEnableSubtitle:t}}))}var IO=new AbortController,{signal:_O}=IO,nl=0,rl=0,Qi=!1,fi,mC=0,Ma=[];function $h(e){OO(),sd().forEach(t=>{jd(e,t)})}function jd(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&qO(n,t);function s(){o=!o,o?(D.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,jd(n,t)):(D.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,jd(n,t))}t.document.addEventListener(Es,s),Ma.push(()=>{t.document.removeEventListener(Es,s)});let u=Jn(m=>{if(!(Math.abs(m.clientX-nl)+Math.abs(m.clientY-rl)<=3)&&(nl=m.clientX,rl=m.clientY,Qi&&!fi&&x4(n,!1,t),o||Qi&&!fi)){let p=hC(n.rule,t);if(p){if(y4(p))return;Ud(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;y4(p)||(Ud(n,!0,t),x4(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=Un.getPressedKeyCodes();if(g.length>1&&Un[p]&&(mC=Date.now(),Qi=!1),g.length===1&&Un[p]){let b=Date.now();Qi=!0,fi&&clearTimeout(fi),fi=setTimeout(()=>{let h=mC-b;h>0&&h<=i?Qi=!1:l(m),fi=void 0},i)}};if(Ma.push(()=>{fi&&clearTimeout(fi)}),a)return;tl("mousemove",u,t),Ma.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Qi=!1}if(tl("blur",d,t),Ma.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=u1;tl("keyup",pC,t),Ma.push(()=>{t.removeEventListener("keyup",pC)}),p.includes(m)?Un("*",{scope:"mouseHover",element:t.document},c):Un(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Un.setScope("mouseHover"),Ma.push(()=>{Un.deleteScope("mouseHover")})}}function OO(){try{Ma.forEach(e=>e())}catch{}Ma=[],Un.setScope("all")}function pC(e){Qi=!1}function tl(e,t,n=window){return n.addEventListener(e,t,{signal:_O})}function Ud(e,t,n,r){if(r=r||hC(e.rule,n),!r){D.debug("can not find selection part!");return}if(jO(e,r,t))return;if(y4(r)){D.debug("exclude dom");return}cC(e,r);let i=Qu();i&&(i.setupMouseHoverListener=jd);let o=an(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=f4(i,e);ka({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{e0(n.document.documentElement)!==l.state.translationMode&&Yr(n.document.documentElement,l.state.translationMode),Hi(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();ct(V3,p);let g={translation_service:u?.translationService||""};_e("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function hC(e,t){return NO(nl,rl,e,t)}function NO(e,t,n,r){let a=Zy(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=Xy(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:fC(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){D.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{HO(e,a)}),!0}function UO(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(B+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${B}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function HO(e,t){let n=Qu();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Fu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function b4(e){return!!(e.host&&e.mode)}function gC(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||b4(n))return e;for(;n&&n.nodeName!=="BODY"&&!b4(n)&&Hp(n,t);){let r=n.parentNode;if(r&&b4(r))break;n=r}return n}function fC(e,t){return e.nodeType===Node.TEXT_NODE||Hp(e,t)?gC(e,t):e}function bC(e,t,n){nl=t.clientX,rl=t.clientY,Ud(e,!0,n),x4(e,!0,n)}async function x4(e,t,n,r){if(!Z0(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=$y(nl,rl,e.rule,n);if(!a||sh(a.src)||a.translationStatus==="translating")return;let i=xh(a);if(i&&!t||i&&!r)return;if(i){Gi(a);return}if(!await Is(e)){id("image_mouse_hover");return}Wi(e,a,!0,"image_mouse_hover")}function qO(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Ud(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};tl("mousedown",i,t),tl("mouseup",o,t),Ma.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var al=[];function v4(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),al.push(()=>{document.removeEventListener("click",i)})}function yC(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),al.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Hd(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),al.push(()=>{document.removeEventListener("touchstart",r)})}var T4={touchShortcutsOff:()=>{},"multipleClick.2":v4,"multipleClick.3":v4,"multipleClick.4":v4,"slide.left":yC,"slide.right":yC,"fingers.2":Hd,"fingers.3":Hd,"fingers.4":Hd,"fingers.5":Hd};async function OT(e,t=window){try{YO();let n=await hn(),r=o1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=zO(e,n,a.command),o=T4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{KO(a.command,e,t,l)})})}catch(n){D.error(n)}}function zO(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var WO=()=>{Yh();let e=new CustomEvent(yr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},GO=()=>{Jh();let e=new CustomEvent(yr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},VO=()=>{Qh();let e=new CustomEvent(yr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},xC=0,KO=(e,t,n,r)=>{if(!(new Date().getTime()-xC<200)){if(xC=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")WO();else if(e==="touchShortcutsToggleTranslationMask")VO();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")GO();else if(e==="touchShortcutsToggleTranslateTouchElement")bC(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Fh(r,t,n,s)}}};function YO(){al.forEach(e=>{e()}),al=[]}function vC(e){let{t}=se(),{ctx:n,setSettings:r}=e,a=QO(e);return ws(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(ii,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Ls[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(JO,{...e})}function QO({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=se(),a=ye(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ye(()=>Ls.filter(s=>!(s==="Off"||Ls.includes(a)&&s==="OtherCustom")),[e,a]);return ye(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ho(s)}),l=Ls.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function JO(e){let{ctx:t,setSettings:n}=e,{t:r}=se(),a=t.config.generalRule,i=Object.keys(T4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(ii,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function TC(e){let{isAlwaysTranslateLang:t}=ZO({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=se();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:$a(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:a0(e.currentLang,u.matches),excludeMatches:a0(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=r0(e.currentLang,u[i]),u[o]=a0(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function ZO({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function CC({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=se(),i=De(),o=ye(()=>{let s=[{title:a("widget.translateFile"),icon:i6,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:c6,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(S1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:m6,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(T1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(_n,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(SC,{...s})}):x(SC,{...s}))})}function SC(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}var XO=["bing","transmart","google","yandex"];function EC(e){let{t}=se();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:qo,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(kn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(kn,`${e.type}_trial_pro_service`)}})]}):null}var wC="popup_trial_pro_show_count";function AC(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=G(null),s=Ce(!1);te(()=>{Ei(wC,0).then(l=>{o(l)})},[]);let u=ye(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!XO.includes(d)},[t,n,r,i]);return te(()=>{!u||i==null||s.current||(s.current=!0,Ai(wC,i+1))},[u,i,s,a]),{showTrialPro:u}}function kC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function DC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function Ou(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=G(""),[c,d]=G(null),[m,p]=G(null);te(()=>{pt.get(mt,null).then(y=>{y?(d(y),p(ht(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,b=lt();n&&b&&(g=n.generalRule.showSponsorOnSafari);let h=Ja(n),{showTrialPro:f}=AC({ctx:a,isHidden:h,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[h&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(g6,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(iN,{openSharePage:r})]}),x(xx,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(Hv,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(EC,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(tN,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(rN,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x(oN,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x(lg,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(Wv,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(vC,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(TC,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(eN,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x($O,{ctx:a})]}),x(CC,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:h})]}),x(nN,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function $O({ctx:e}){if(e.rule.imageRule?.type!="manga"||!X0(e.rule.imageRule))return null;let{t}=se();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function eN(e){let{t}=se(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ye(()=>!i.disabled&&fm.includes(i.type||""),[n,fm,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Kc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function tN(e){let{t}=se(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(_n,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?s6:u6})})}function nN(e){let{t,lang:n}=se(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ke(y=>{i&&(o(v=>Xc({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=cu(i,s.rawUserConfig),d=De(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[o6,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(aN,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(ug,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(kn),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?b():y.value==="changeToTranslateTheMainPage"?h():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(kn,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(y1,m):y.value==="cleanCache"?rh().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function b(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function h(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function rN({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=se(),l=r.config,c=ye(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");ha(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?An()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):ne()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Yn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${Ho(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function aN({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=se(),o=bn();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${B}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),D9(`${oe}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[Ny(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function iN(e){let{t}=se();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),l6]})}function oN({aiContextInfo:e,curUrl:t}){let{t:n}=se();if(!e?.visible)return null;let r=ye(()=>{let a=new URL(t);return a.searchParams.append(Ul,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[kC(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(_n,{text:n("contextDiffPreview",{1:r}),children:DC()})]})}function C4(){let[e,t]=G("Original"),n=Ce(""),{t:r}=se(),[a,i,o,s]=Fr(()=>{setTimeout(()=>{Sn("updateGlobalContext",!1)()},250)});ss(a,i);let[u,l]=G(null),[c,d]=G(null),[m,p]=G(null),[g,b]=G("auto"),[h,f]=G(null),[y,v]=G({visible:!1,preview:!1}),T=Ce(!1),w=Ce(),[C,S]=G({}),A=Ce(!1),[{errorMsg:k,disableButton:R,noPermissionPDF:F},P]=G({errorMsg:"",disableButton:!1,noPermissionPDF:!1});te(()=>{Ge().any&&S({width:"100%"})},[]),te(()=>{wt().then(re=>l(re))},[a]),te(()=>{if(!(!c||!u)){if(T.current&&w.current){w.current.getAsyncContextString().then(re=>{if(re){let N=JSON.parse(re);f(N)}});return}ir({url:c,config:u}).then(re=>{T.current||f(re)})}},[c,u,T,w]),te(()=>(L(),()=>{globalThis.document.removeEventListener(Ds,z)}),[]);let I=ke((re,N)=>{Sn("change_translate_service",!1,{translation_service:`${re}_${N}`})()},[]);if(te(()=>{!h||A.current||(A.current=!0,Sn("popupEventReport",!1,{key:"show_popup",events:[{name:"show_popup",params:{}}]})())},[h]),!u||!h)return null;return x(_u,{children:x(Ou,{type:"popup",style:C,aiContextInfo:y,onClose:LC,onToggleTranslate:Sn("toggleTranslatePage"),onToggleEnabled:ie,openOptionsPage:pN,openAboutPage:mN,openSharePage:cN,onTranslatePdf:()=>{V(n.current||c||"")},onChangeService:I,onTranslateTheMainPage:Sn("translateTheMainPage"),onTranslateTheWholePage:Sn("translateTheWholePage"),onTranslateToThePageEndImmediately:Sn("translateToThePageEndImmediately"),onSwitchTranslationMode:re=>{Sn("switchTranslationMode",!0,{mode:re})()},onTranslatePage:Sn("translatePage"),onRestorePage:Sn("restorePage",!1),onWebReport:Sn("webReport"),onSetPageLanguage:Be,setSettings:i,config:u,pageStatus:e,ctx:h,currentUrl:c,currentLang:g,onSetLocalConfig:Rt,onSetBuildinConfig:wc,request:xa,errorMsg:k,disabledButton:R,noPermissionPDF:F,onAutoEnableSubtitleChanged:Sn("autoEnableSubtitleChanged"),onToggleEnableEditTranslation:Sn("toggleEnableEditTranslation"),updateContextState:re=>Sn("updateContextState",!1,re)(),onOpenUrl:dN,onUpdateFloatBallEnable:Sn("updateFloatBallEnable")})});async function L(){let re=mu(),N=await $.tabs.query({currentWindow:!0,active:!0}),j=N[0].id;p(j);let W=PC(j,re);w.current=W;let me=N[0].url;if(_(j),globalThis.document.addEventListener(Ds,z),!me){d("about:newtab");return}d(me),c0(me)?(O(W,j,me),MC(j,async()=>{let ce=await W.getContextString(),We=await W.getPageStatus(),pe=await wt(),he=await W.getCurrentPageLanguage(),ge=await w.current?.getAIContextInfo();if(v({visible:!!ge?.used,preview:ge?.sourceProgram=="html"}),t(We),l(pe),b(he),ce){let de=JSON.parse(ce);if(de){if(f(de),T.current=!0,ha(de.rule)){let Te=await W.getPdfWebUrl();n.current=Te}}else D.error("contextStr is empty",ce)}he==="auto"&&setTimeout(async()=>{let de=await W.getCurrentPageLanguage();b(de)},500)})):ag(me||"")?uN(me||"")&&sN(me||"").then(ce=>{ce||P({disableButton:!1,noPermissionPDF:!0,errorMsg:r("noLocalFilePermissionForPDF")})}):P({disableButton:!0,errorMsg:r("noPermissionForThisPage"),noPermissionPDF:!1})}function _(re){$.tabs.onUpdated.addListener((N,j,W)=>{re===N&&W.url&&d(W.url)})}function O(re,N,j){re.ping().then(W=>{P({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),S4[N]=!0,RC(N)}).catch(W=>{let me="Could not establish connection. Receiving end does not exist.";An()&&W.message===me?P({disableButton:!0,errorMsg:r("noPermissionForThisPage"),noPermissionPDF:!0}):Z9(j)?P({disableButton:!0,errorMsg:r("noPermissionForLocalFile"),noPermissionPDF:!1}):J9(j)||P({disableButton:!0,errorMsg:r("reloadCurrentPage"),noPermissionPDF:!1}),D.debug("ping failed, but it is ok. cause maybe content is not injected",W)})}function z(re){let{tabId:N,payload:j}=re.detail,{method:W,data:me}=j;D.debug("popup received message",W,me||" "),W==="setPageStatus"?N&&t(me):W==="ready"&&N&&(P({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),S4[N]=!0,RC(N))}function V(re){re&&($.tabs.create({url:E1(re)}),globalThis.close())}function ie(){i(re=>({...re,enabled:!re.enabled})),setTimeout(()=>{LC()},50)}function Be(re){let N=mu();if(b(re),m&&c){let j=hl(c,re,u.sourceLanguageUrlPattern);i(W=>({...W,sourceLanguageUrlPattern:j})),MC(m,()=>{PC(m,N).setCurrentPageLanguageByClient(re)})}}}function Sn(e,t=!0,n={}){return async()=>{let r=mu(),i=(await $.tabs.query({currentWindow:!0,active:!0}))[0].id,o={trigger:"popup",...n};r.sendMessage(`content_script:main:${i}`,{method:e,data:o}),t&&setTimeout(()=>{globalThis.close()},10)}}async function sN(e){try{let t=new URL(e),n=await fetch(t.href);return!0}catch{return!1}}function uN(e){try{return new URL(e).protocol==="file:"}catch{return!1}}var lN={setCurrentPageLanguageByClient:e=>Promise.resolve(),ping:e=>Promise.resolve(),getPageStatus:e=>Promise.resolve(),getCurrentPageLanguage:e=>Promise.resolve(),getContextString:e=>Promise.resolve(),getAsyncContextString:e=>Promise.resolve(),getPdfWebUrl:()=>Promise.resolve(""),getAIContextInfo:()=>Promise.resolve({})};function PC(e,t){function n(a,i){let o=`content_script:main_sync:${e}`;return a.includes("Async")&&(o=`content_script:main:${e}`),t.sendMessage(o,{method:a,data:i})}let r={...lN};return Object.keys(r).forEach(a=>{r[a]=n.bind(null,a)}),r}var cN=()=>{Sn("shareToDraft")()};function dN(e,t){let n=e;t&&(n=`${e}?utm_source=extension&utm_medium=extension&utm_campaign=${t}`),$.tabs.create({url:n}),setTimeout(()=>{globalThis.close()},50)}function mN(){$.tabs.create({url:$.runtime.getURL("options.html#about")}),setTimeout(()=>{globalThis.close()},50)}function LC(){globalThis.close()}function pN(e=!1,t=""){let n=$.runtime.getURL("options.html");$.tabs.create({url:n+t}),setTimeout(()=>{globalThis.close()},50)}var Ji={},S4={};function MC(e,t){if(S4[e])try{t()}catch(n){D.error("run callback failed",n)}else Ji[e]||(Ji[e]=[]),Ji[e].push(t)}function RC(e){if(Ji[e]&&Ji[e].length){let t=[...Ji[e]];Ji[e]=[],t.forEach(n=>n())}}async function FC(){try{if(ne())return;let e=$.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Ha,n)}catch{}}var BC=document.getElementById("mount");$9();BC&&(async()=>{let e=await wt();await FC(),e.debug&&D.setLevel("debug"),qr(x(Xa,{lang:e.interfaceLanguage,children:x(C4,{})}),BC)})();})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/firefox/_locales/ko/messages.json b/dist/firefox/_locales/ko/messages.json index 42bb8f7..f336e76 100644 --- a/dist/firefox/_locales/ko/messages.json +++ b/dist/firefox/_locales/ko/messages.json @@ -3,7 +3,7 @@ "message": "Immersive Translate" }, "brandName": { - "message": "몰입형 번역 - 웹 및 PDF 번역" + "message": "몰입형 번역 - 웹 사이트 번역 확장 프로그램 | PDF 번역 | 무료" }, "brandDescription": { "message": "[몰입형 번역] 무료 (원문/번역문) 이중 언어 대조 웹사이트 번역 확장 프로그램으로 PDF 번역(조판 유지), 비디오 이중 언어 자막 번역(YouTube, Netflix 등), EPUB 전자책 번역을 지원합니다." diff --git a/dist/firefox/background.js b/dist/firefox/background.js index 87f18b4..3d45a63 100644 --- a/dist/firefox/background.js +++ b/dist/firefox/background.js @@ -1,4 +1,4 @@ -(()=>{var s0=Object.defineProperty;var l0=(e,t)=>{for(var a in t)s0(e,a,{get:t[a],enumerable:!0})};var b={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var s0=Object.defineProperty;var l0=(e,t)=>{for(var a in t)s0(e,a,{get:t[a],enumerable:!0})};var b={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5527,10 +5527,10 @@ To translate an image, right-click on any image and select 'Translate Image'. Ad ${u.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return n("errorReason",{message:s})}getProQuotaError(t,a){let n=je.bind(null,t.config.interfaceLanguage),r=t.user.subscription,{subscriptionType:i,isTrial:u}=r,o=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",s=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[n("proQuotaError.toggleAnotherService",{anotherService:o})];if(i=="onetime_7day")l.push(n("proQuotaError.onetime7day",{brandId:ie,href:uo}));else{let d="";s=="AI"?d=oo:d=so,u?l.push(n("proQuotaError.trail",{brandId:ie,href:Gr})):l.push(n("proQuotaError.package",{brandId:ie,href:d,translationService:s})),si(t.user,l,n)}let c=a+`${n("proQuotaError.solvedTitle")}

${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return n("errorReason",{message:c})}};function si(e,t,a){if(!e||!e?.subscription)return;let n=e?.subscription,{isTrial:r,openAITokenUsedCountResetTime:i,subscriptionTo:u}=n;!r&&(n.cancelAtPeriodEnd==="false"||es(u)>i)&&t.push(a("proQuotaError.resetTime",{resetTime:Xo(i,"YYYY-MM-DD HH:mm:ss")}))}function ts(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([a,n])=>{t.append(a,n)}),t}function as(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([a,n])=>{if(Array.isArray(n))for(let r of n)t.append(a,r);else t.append(a,n)}),t.toString()}function ns(e){let{mimeType:t,base64:a}=Vm(e),n=atob(a),r=[],i=512;for(let o=0;o0)try{t=await dr(rs.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(a){throw a&&a.name==="RetryError"&&a.cause?a.cause:a}else t=await rs(e);return t}async function rs(e){e.body;let{url:t,responseType:a,requestType:n,...r}=e;a||(a="json"),n||(n="json"),r={mode:"cors",...r},n=="formData"?r.body=ts(e.body):n=="urlSearchParams"?r.body=as(e.body):n=="blob"&&e.body&&(r.body=ns(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let u=e.fetchPolyfill||fetch,o=3e4,s;if(e.timeout&&(o=e.timeout),i){let c=new AbortController,d=c.signal;s=setTimeout(()=>{c.abort()},o),r.signal=d}let l;try{l=await u(t,r)}catch(c){B.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new vt("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{s&&clearTimeout(s)}if(l.ok&&l.status>=200&&l.status<400){if(a=="HEAD"){if(l.url!==t)throw new vt("fetchError","redirect url:"+l.url);return l.statusText}if(a==="json")return await l.json();if(a==="text")return await l.text();if(a==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(a==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((g,y)=>{d.onload=function(){let k=d.result;g(k)},d.onerror=function(){y(d.error)}});return d.readAsDataURL(c),m}else if(a==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of $m(l.body)){let g=new TextDecoder().decode(m);c+=g;let y;for(;(y=c.indexOf(` -`))>=0;){let k=c.slice(0,y).trim();if(c=c.slice(y+1),k.startsWith("event:")||k==="")continue;let D="";if(k.startsWith("data:")&&(D=k.slice(5).trim()),D==="[DONE]")break;let h;try{h=JSON.parse(D??"")}catch(N){B.debug("json error",N);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(k){B.error("parse response failed",k)}c&&B.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,y=new URL(t).hostname.endsWith(`.${Be}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),y&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new vt("fetchError",m).initNetWork(l.status)}}async function*$m(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var is={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Zm="";function Qt(){return Zm||is.version}function li(){return f.runtime.getManifest().version}var Jm="";function Pn(){return Jm||globalThis.navigator.userAgent}function ci(){return Pn().includes("ImtFxiOS")}function Rn(){return Pn().includes("ImtFxAndroid")}function di(){let t=Pn().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Xt(){let e=Pn();if(ci()||Rn()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var Ln=function(){return Ln=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Qm()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function Ga(e){return e.then(void 0,function(){}),e}function ep(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function ap(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(m,g){u[m]=u[m]||[],u[m].push(g)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function np(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function Ht(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i+l,m+=g>>>16,g&=65535,m+=r+s,d+=m>>>16,m&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function lt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i*l,m+=g>>>16,g&=65535,m+=r*l,d+=m>>>16,m&=65535,m+=i*s,d+=m>>>16,m&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function va(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function at(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Ee(e,t),lt(e,rp),t[1]=e[0]>>>1,Ee(e,t),lt(e,ip),t[1]=e[0]>>>1,Ee(e,t)}var Mn=[2277735313,289559509],In=[1291169091,658871167],cs=[0,5],up=[0,1390208809],op=[0,944331445];function sp(e,t){var a=np(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function lp(e){var t;return Ln({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`))>=0;){let k=c.slice(0,y).trim();if(c=c.slice(y+1),k.startsWith("event:")||k==="")continue;let D="";if(k.startsWith("data:")&&(D=k.slice(5).trim()),D==="[DONE]")break;let h;try{h=JSON.parse(D??"")}catch(N){B.debug("json error",N);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(k){B.error("parse response failed",k)}c&&B.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,y=new URL(t).hostname.endsWith(`.${Be}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),y&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new vt("fetchError",m).initNetWork(l.status)}}async function*$m(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var is={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Zm="";function Qt(){return Zm||is.version}function li(){return f.runtime.getManifest().version}var Jm="";function Pn(){return Jm||globalThis.navigator.userAgent}function ci(){return Pn().includes("ImtFxiOS")}function Rn(){return Pn().includes("ImtFxAndroid")}function di(){let t=Pn().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Xt(){let e=Pn();if(ci()||Rn()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var Ln=function(){return Ln=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Qm()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function Ga(e){return e.then(void 0,function(){}),e}function ep(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function ap(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(m,g){u[m]=u[m]||[],u[m].push(g)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function np(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function Ht(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i+l,m+=g>>>16,g&=65535,m+=r+s,d+=m>>>16,m&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function lt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i*l,m+=g>>>16,g&=65535,m+=r*l,d+=m>>>16,m&=65535,m+=i*s,d+=m>>>16,m&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function va(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function at(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Ee(e,t),lt(e,rp),t[1]=e[0]>>>1,Ee(e,t),lt(e,ip),t[1]=e[0]>>>1,Ee(e,t)}var Mn=[2277735313,289559509],In=[1291169091,658871167],cs=[0,5],up=[0,1390208809],op=[0,944331445];function sp(e,t){var a=np(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function lp(e){var t;return Ln({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` `)},e)}function cp(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function dp(e){return typeof e!="function"}function mp(e,t){var a=Ga(new Promise(function(n){var r=Date.now();os(e.bind(null,t),function(){for(var i=[],u=0;u=4}function gp(){var e=window,t=navigator;return nt(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ss()}function Nn(){var e=window,t=navigator;return nt(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function bt(){var e=window,t=navigator;return nt(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function vi(){var e=window,t=e.HTMLElement,a=e.Document;return nt(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),a&&"pointerLockElement"in a.prototype])>=4}function Ha(){var e=window;return cp(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Ts(){var e,t,a=window;return nt(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function hp(){var e=window;return nt([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function fp(){var e=window;return nt(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Wa(){var e=window,t=navigator,a=e.CSS,n=e.HTMLButtonElement;return nt([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,a.supports("font-size-adjust: ex-height 0.5"),a.supports("text-transform: full-width")])>=4}function bp(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function yp(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function vp(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function xi(){var e=Nn(),t=Ts(),a=window,n=navigator,r="connection";return e?nt([!("SharedWorker"in a),n[r]&&"ontypechange"in n[r],!("sinkId"in new window.Audio)])>=2:t?nt(["onorientationchange"in a,"orientation"in a,/android/i.test(navigator.appVersion)])>=2:!1}function xp(){return Sp()?-4:wp()}function wp(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(Ep())return-1;var a=4500,n=5e3,r=new t(1,n,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var u=r.createDynamicsCompressor();u.threshold.value=-50,u.knee.value=40,u.ratio.value=12,u.attack.value=0,u.release.value=.25,i.connect(u),u.connect(r.destination),i.start(0);var o=Tp(r),s=o[0],l=o[1],c=Ga(s.then(function(d){return Dp(d.getChannelData(0).subarray(a))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function Ep(){return bt()&&!vi()&&!fp()}function Sp(){return bt()&&Wa()&&Ha()}function Tp(e){var t=3,a=500,n=500,r=5e3,i=function(){},u=new Promise(function(o,s){var l=!1,c=0,d=0;e.oncomplete=function(y){return o(y.renderedBuffer)};var m=function(){setTimeout(function(){return s(ds("timeout"))},Math.min(n,d+r-Date.now()))},g=function(){try{var y=e.startRendering();switch(ws(y)&&Ga(y),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?s(ds("suspended")):setTimeout(g,a);break}}catch(k){s(k)}};g(),i=function(){l||(l=!0,d>0&&m())}});return[u,i]}function Dp(e){for(var t=0,a=0;a=0?"+":"").concat(n)}function ag(){var e=new Date().getFullYear();return Math.max(ft(new Date(e,0,1).getTimezoneOffset()),ft(new Date(e,6,1).getTimezoneOffset()))}function ng(){try{return!!window.sessionStorage}catch{return!0}}function rg(){try{return!!window.localStorage}catch{return!0}}function ig(){if(!(Ss()||gp()))try{return!!window.indexedDB}catch{return!0}}function ug(){return!!window.openDatabase}function og(){return navigator.cpuClass}function sg(){var e=navigator.platform;return e==="MacIntel"&&bt()&&!vi()?bp()?"iPad":"iPhone":e}function lg(){return navigator.vendor||""}function cg(){for(var e=[],t=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),o.sort(),[2,o]}})})}function gg(){return bt()||xi()}function hg(e){var t;return gt(this,void 0,void 0,function(){var a,n,r,i,s,u,o,s;return ht(this,function(l){switch(l.label){case 0:for(a=document,n=a.createElement("div"),r=new Array(e.length),i={},ps(n),s=0;s')}function Fg(){return navigator.pdfViewerEnabled}function Bg(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Pg(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Rg())return-3;try{return e.canMakePayments()?1:0}catch(t){return Lg(t)}}var Rg=kp;function Lg(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Mg(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var As=-1,Cs=-2,Ig=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),jg=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Og=["FRAGMENT_SHADER","VERTEX_SHADER"],Ng=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ks="WEBGL_debug_renderer_info",qg="WEBGL_polygon_mode";function Ug(e){var t,a,n,r,i,u,o=e.cache,s=_s(o);if(!s)return As;if(!Bs(s))return Cs;var l=Fs()?null:s.getExtension(ks);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function zg(e){var t=e.cache,a=_s(t);if(!a)return As;if(!Bs(a))return Cs;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(xs,"/npm-monitoring"),!0),e.send()}catch{}}function i4(e){var t;return e===void 0&&(e={}),gt(this,void 0,void 0,function(){var a,n,r;return ht(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&r4(),a=e.delayFallback,n=e.debug,[4,a4(a)];case 1:return i.sent(),r=$g({cache:{},debug:n}),[2,n4(r,n)]}})})}var wi={load:i4,hashComponents:Ps,componentsToDebugString:e4};async function ea(){let e=await Ie("fakeUserId","");e||(e=await Oa("fakeUserId",""),e&&await ve("fakeUserId",e));let t=new Date,a=await Ie("installedAt","");return a||(a=await Oa("installedAt",""),a&&await ve("installedAt",a)),e?a||(a=new Date(0).toISOString(),await ve("installedAt",a)):(e=await s4(64),await ve("fakeUserId",e)),a||(a=t.toISOString(),await ve("installedAt",a)),{fakeUserId:e,installedAt:a}}var u4=10;async function Ka(){let e=await Ie("userTag","");if(e)return e;let{fakeUserId:t}=await ea(),n=t.charCodeAt(0)%u4;return e=String.fromCharCode(n+"a".charCodeAt(0)),await ve("userTag",e),e}function o4(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):l4(i,e)}catch{return o4(64)}}function l4(e,t=32){let a="";for(let r=0;r{}),qn)}async function Is(e,t){try{let a=se(),n=a.INSTALL_FROM==="firefox_store";if(Xt()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=ke(),u=fa(),o=a.PROD==="1",s=Qt(),l=new Date,{fakeUserId:c,installedAt:d}=await ea(),m=await Ka(),g=await Ei(),y=await Si(),k=new Date(d),D=Ti(k),h=Ti(l),N=D===h,F=24*60*60*1e3,U=l.getTime()-k.getTime()<7*F,X=l.getTime()-k.getTime()<30*F,T=l.getTime()-k.getTime()<365*F,v=Tn(),x="";typeof navigator<"u"&&(x=window.navigator.userAgent);let w=on.parse(x),L=e.map(z=>{let _=z.params||{};if(w.os&&(_.os_name=w.os.name||"unknown",_.os_version=w.os.version||"unknown",_.os_version_name=w.os.versionName||"unknown"),w.browser){_.browser_name=w.browser.name||"unknown",_.browser_version=w.browser.version||"unknown";let P=Xt();P&&(_.browser_name=P.name,_.browser_version=P.version)}if(w.platform&&(_.platform_type=w.platform.type||"unknown"),w.engine&&(_.engine_name=w.engine.name||"unknown",_.engine_version=w.engine.version||"unknown"),s&&(_.version=s),a.INSTALL_FROM&&(_.install_from=a.INSTALL_FROM),D){_.install_day=Rs(k);let P=Ms(k);_.install_week=`${P.year}${P.week}`}return _.userscript=i.toString(),N?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=U?"1":"0",_.is_new_user_this_month=X?"1":"0",_.is_new_user_this_year=T?"1":"0",u?_.main_frame=0:_.main_frame=1,m&&(_.ab_tag=m),g&&(_.ab_group=g),_.campaign=y||"none",{...z,params:_}});v.forEach(async z=>{let _=await js({responseType:"text",url:z,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:L})})}),t&&m4(c,L)}catch{}}async function d4(e){return await c4().sendMessage("background:main",e)}function js(e){return pn()?Fn({method:"request",data:e}):ke()||mn()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):d4({method:"fetch",data:e})}function m4(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Ls(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);js({url:fo,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){B.debug("report self service error",a)}}var Di={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[s]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(s)}}}function bg(){for(var e=0,t=["rec2020","p3","srgb"];e')}function Fg(){return navigator.pdfViewerEnabled}function Bg(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Pg(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Rg())return-3;try{return e.canMakePayments()?1:0}catch(t){return Lg(t)}}var Rg=kp;function Lg(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Mg(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var As=-1,Cs=-2,Ig=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),jg=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Og=["FRAGMENT_SHADER","VERTEX_SHADER"],Ng=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ks="WEBGL_debug_renderer_info",qg="WEBGL_polygon_mode";function Ug(e){var t,a,n,r,i,u,o=e.cache,s=_s(o);if(!s)return As;if(!Bs(s))return Cs;var l=Fs()?null:s.getExtension(ks);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function zg(e){var t=e.cache,a=_s(t);if(!a)return As;if(!Bs(a))return Cs;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(xs,"/npm-monitoring"),!0),e.send()}catch{}}function i4(e){var t;return e===void 0&&(e={}),gt(this,void 0,void 0,function(){var a,n,r;return ht(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&r4(),a=e.delayFallback,n=e.debug,[4,a4(a)];case 1:return i.sent(),r=$g({cache:{},debug:n}),[2,n4(r,n)]}})})}var wi={load:i4,hashComponents:Ps,componentsToDebugString:e4};async function ea(){let e=await Ie("fakeUserId","");e||(e=await Oa("fakeUserId",""),e&&await ve("fakeUserId",e));let t=new Date,a=await Ie("installedAt","");return a||(a=await Oa("installedAt",""),a&&await ve("installedAt",a)),e?a||(a=new Date(0).toISOString(),await ve("installedAt",a)):(e=await s4(64),await ve("fakeUserId",e)),a||(a=t.toISOString(),await ve("installedAt",a)),{fakeUserId:e,installedAt:a}}var u4=10;async function Ka(){let e=await Ie("userTag","");if(e)return e;let{fakeUserId:t}=await ea(),n=t.charCodeAt(0)%u4;return e=String.fromCharCode(n+"a".charCodeAt(0)),await ve("userTag",e),e}function o4(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):l4(i,e)}catch{return o4(64)}}function l4(e,t=32){let a="";for(let r=0;r{}),qn)}async function Is(e,t){try{let a=se(),n=a.INSTALL_FROM==="firefox_store";if(Xt()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=ke(),u=fa(),o=a.PROD==="1",s=Qt(),l=new Date,{fakeUserId:c,installedAt:d}=await ea(),m=await Ka(),g=await Ei(),y=await Si(),k=new Date(d),D=Ti(k),h=Ti(l),N=D===h,F=24*60*60*1e3,U=l.getTime()-k.getTime()<7*F,X=l.getTime()-k.getTime()<30*F,T=l.getTime()-k.getTime()<365*F,v=Tn(),x="";typeof navigator<"u"&&(x=window.navigator.userAgent);let w=on.parse(x),L=e.map(z=>{let _=z.params||{};if(w.os&&(_.os_name=w.os.name||"unknown",_.os_version=w.os.version||"unknown",_.os_version_name=w.os.versionName||"unknown"),w.browser){_.browser_name=w.browser.name||"unknown",_.browser_version=w.browser.version||"unknown";let P=Xt();P&&(_.browser_name=P.name,_.browser_version=P.version)}if(w.platform&&(_.platform_type=w.platform.type||"unknown"),w.engine&&(_.engine_name=w.engine.name||"unknown",_.engine_version=w.engine.version||"unknown"),s&&(_.version=s),a.INSTALL_FROM&&(_.install_from=a.INSTALL_FROM),D){_.install_day=Rs(k);let P=Ms(k);_.install_week=`${P.year}${P.week}`}return _.userscript=i.toString(),N?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=U?"1":"0",_.is_new_user_this_month=X?"1":"0",_.is_new_user_this_year=T?"1":"0",u?_.main_frame=0:_.main_frame=1,m&&(_.ab_tag=m),g&&(_.ab_group=g),_.campaign=y||"none",{...z,params:_}});v.forEach(async z=>{let _=await js({responseType:"text",url:z,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:L})})}),t&&m4(c,L)}catch{}}async function d4(e){return await c4().sendMessage("background:main",e)}function js(e){return pn()?Fn({method:"request",data:e}):ke()||mn()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):d4({method:"fetch",data:e})}function m4(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Ls(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);js({url:fo,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){B.debug("report self service error",a)}}var Di={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5785,11 +5785,11 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var j6=ke();var zs,ue,Gs,g4,Va,Os,Hs,Ws={},Ks=[],h4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Wt(e,t){for(var a in t)e[a]=t[a];return e}function Vs(e){var t=e.parentNode;t&&t.removeChild(e)}function Ai(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Gs};return r==null&&ue.vnode!=null&&ue.vnode(i),i}function ta(e){return e.children}function Un(e,t){this.props=e,this.context=t}function Ea(e,t){if(t==null)return e.__?Ea(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Ai(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null){if(g.__=a,g.__b=a.__b+1,(m=h[c])===null||m&&g.key==m.key&&g.type===m.type)h[c]=void 0;else for(d=0;dcl.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(cl.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return C4(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let D=s.split("://");l=D[0],l==="*"&&D.length>1&&(l="*",s="https://"+D[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,ml),m;try{m=new URL(d)}catch{return B.debug("invalid match pattern",d,"raw match value:",c),!1}let g=m.host,y=m.pathname;y==="/"&&(c.replace("://","").includes("/")||(y="/*"));let k=A4(l+":",dl(g),dl(y));return k?k.test(e):!1}});if(o)return o}return null}catch{return null}}function dl(e){return e.replaceAll(ml,"*")}function A4(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Wn(e,t){return D4(e,t)!==null}function C4(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var k4=null;if(typeof trustedTypes<"u")try{k4=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var _4=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(_4=!0)});var vE=globalThis.document?.createElement("div");var F4={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},a1={...F4};function aa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Kn(e){return Array.isArray(e)?e:e?[e]:[]}function fl(e,t){let a={...e};return yl(a,t),P4(a,t),a}function bl(e,t,a){let n={...e};return kt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),kt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function P4(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;yl(e,r)}function kt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=pl(i);if(u=="rich"){if(!r)return n(i,e[i]);let[m,g,y,k]=pl(i);u=m+"."+g,o=y,s=k}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Kn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!gl(s))return;d=Ri(c,l)}else if(o=="remove_v"){if(!gl(s))return;d=hl(c,l)}else o==="add"?d=Ri(c,l):o=="remove"&&(d=hl(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Ri(c,l):d=l,n(u,d)})}function yl(e,t){return kt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Ri(e,t){let a;if(Array.isArray(e)){let n=Kn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function pl(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function gl(e){let t=Qt();return e&&aa(t,e)}function hl(e,t){if(Array.isArray(e)){let a=Kn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var vl="userConfig",xl="userPromptPool",wl="userObjectPool";async function El(){let e=await Cl(vl)||{},t=await za(xl)||{},a=await za(wl)||{};return L4(e,t,a)}async function Sl(e){let{userConfig:t,promptPool:a,objectPool:n}=await R4(e);await Al(vl,t),await ba(xl,a),await ba(wl,n)}function R4(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return Tl(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),Dl(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function L4(e,t,a){return Tl(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),Dl(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function Tl(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function Dl(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}async function Oe(){let e={...Di,buildinConfigUpdatedAt:Q.BUILD_TIME};e=await H4(e);let t=await N4(e);e.targetLanguage=t;let a=await ma.get(jt,null),n=us(),r=M4(),i=await zt(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},o=await Jt(),s=Object.assign({},u,r,i);if(!s.interfaceLanguage){let c=await j4();s.interfaceLanguage=c}await G4(s,i,e),W4(o,s);let l=Object.assign(n,e);return kt({rule:e,valueIsArray:c=>Array.isArray(n[c]),getMergedValue:c=>n[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),kt({rule:e.generalRule,valueIsArray:c=>Array.isArray(n.generalRule[c]),getMergedValue:c=>n.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),z4(l),q4(a,s,l),l=await K4(l,s),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function M4(){if(Q.PROD==="1")return{};let e={};if(Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:Q.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:Q.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:Q.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(Q.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Q.DEEPL_PROXY_ENDPOINT),Q.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Q.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Q.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:Q.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}Q.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Q.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Q.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Q.MOCK==="1"&&(t.translationService="mock"),t}async function Jt(){let e=await f.storage.local.get(Ra);if(e[Ra]){let t=e[Ra],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await Ut(i),i}else return{}}async function Ut(e){await f.storage.local.set({[Ra]:e})}async function I4(){return Q.DEBUG==="1"?void 0:(await f.storage.local.get(Ir))[Ir]}function zt(){return El()}function xt(e){return Sl(e)}async function Al(e,t){await f.storage.sync.set({[e]:t})}async function Cl(e){return(await f.storage.sync.get(e))[e]}async function ba(e,t){await f.storage.local.set({[e]:t})}async function za(e){return(await f.storage.local.get(e))[e]}var j4=async()=>{let e=["zh-CN"];try{e=await f.i18n.getAcceptLanguages()}catch(n){B.warn("get browser language error:",n)}let a=e.map(n=>Ot(n)).find(n=>Jo.find(r=>r===n));return a||"en"},us=()=>{let e={...Di,buildinConfigUpdatedAt:Q.BUILD_TIME};return{...e,targetLanguage:It,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function O4(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function N4(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return It;let a=await Ie("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=kl(l,n[o]))}),kt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=kl(l,a[o]))}),kt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}async function z4(e){try{let t=await Ie("installedAt",""),a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){B.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function kl(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}async function G4(e,t,a){let n=e.interfaceLanguage==="en",r=e.targetLanguage==="en",i=a&&a.translationLanguagePattern&&a.translationLanguagePattern.matches&&a.translationLanguagePattern.matches.length===0,u=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!n&&!r&&!i&&u?a.translationLanguagePattern||(a.translationLanguagePattern={matches:["en"],excludeMatches:[]}):a.translationLanguagePattern={matches:[],excludeMatches:[]};let o=a&&a.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(o=!1);let s=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;s===void 0&&(l.length>0?s=!0:s=!1,e.isChangedAlwaysTranslatedUrls=s,t.isChangedAlwaysTranslatedUrls=s,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Ie("installedAt",""),g=Number(await Oa("translage_page_daily",0)),y=Number(await Ie(st,0)),k;y>0&&(Date.now()-y0&&(Date.now()-gn&&(e=t)}return e}function W4(e,t){let a=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let n=e.tempTranslationUrlMatches.filter(r=>new Date(r.expiredAt)>a);if(n.length>0){let r=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(r)?r:[r],u=Array.from(new Set(i.concat(n.map(o=>o.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:u}}}}async function K4(e,t){let a=await V4(),n=Object.keys(e),r=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of n){let u=i;if(u==="generalRule")typeof t[u]=="object"&&(e[u]=fl(e[u],t[u]));else if(u==="translationServices")U4(t,e);else if(typeof t[u]!="string"&&typeof t[u]!="boolean"&&typeof t[u]!="number"&&r.includes(u))t[u]&&(e[u]=Object.assign(e[u],t[u])),u==="shortcuts"&&(ke()||ot()?e[u]={...e[u],...a}:e[u]={...a});else if(u==="rules"){if(Array.isArray(t[u])){let o=e.rules||[],s={};for(let c of o)c.id&&(s[c.id]=c);let l=t[u].map(c=>c.id&&s[c.id]?bl(e.generalRule,s[c.id],c):c);e[u]=[...l,...e[u]]}if(Q.PROD==="0"&&Q.DEV_RULES){let o=JSON.parse(Q.DEV_RULES);e[u]=[...o,...e[u]]}}else t[u]!==void 0&&(e[u]=t[u])}return e}async function V4(){let e={};if(!ke()&&f.commands&&f.commands.getAll){let t=await f.commands.getAll();for(let a of t)a.name&&a.shortcut&&(e[a.name]=a.shortcut)}return e}function Vn(e){let t=f.runtime.getURL($u),a=new URL(t);return e&&(e.startsWith("http")||!Vr())&&a.searchParams.set("file",e),a.href}function _l(){return se().PDF_VIEWER_URL}function Fl(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var $n=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],a="";do{let{nextPageToken:n,files:r}=await this.list(a).catch(i=>{throw i});t.push(...r),a=n||""}while(a);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){return B.error("get config error, use default",a),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,a=xn){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:a,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,a){let n=new Blob([JSON.stringify(a,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,a){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",a);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return r.ok?await r.json():Promise.reject(r.text())}async list(t,a){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),a&&n.searchParams.append("q",a),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return B.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw B.error("fetch google ip error",r),r}}async updateContent(t,a){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:a})).text()}};function Bl(e,t){let a=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${vn}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(a.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function Pl(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Rl(e,t,a,n,r,i,u){if(B.debug(`autoSyncStrategy accessToken: ${e}`),t===null){B.debug("autoSyncStrategy settings is null");return}let o=new $n(e);try{let s=(await o.findByName(xn)).files;B.debug("files",s);let l=s[0]?.id,c=null;if(l&&(c=await o.getConfig(l).then(d=>({fileId:l,config:d}))),c){let{config:d,fileId:m}=c,g=d.updatedAt?new Date(d.updatedAt):new Date(0),y=t.updatedAt?new Date(t.updatedAt):new Date(0);if(B.debug("remoteUpdatedAt",g,"localUpdatedAt",y),g>y)B.debug("remote is newer, update local config",d),a(d),i&&i(!0);else if(g.getTime()===y.getTime())B.debug("remote and local are the same, do nothing"),i&&i(!1);else if(g(await e.removeAuthInfo(),Lr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await f.storage.local.get(la);if(t[la])return t[la]}static async removeAuthInfo(){return await f.storage.local.remove(la)}static setAuthInfo(t){return f.storage.local.set({[la]:t})}async auth(t=!1){let a=await e.getAuthInfo();if(B.debug(this.CLASSNAME,"token from cache:",a),a&&a.access_token&&await Ll(a.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(a);let n=Bl(this._state,this._redirectUrl);return B.debug(this.CLASSNAME,"auth url: "+n),Lr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,a){return a&&await f.storage.local.set({[Zu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let a,n=!1;return new Promise((r,i)=>{let u=()=>{f.tabs.onUpdated.removeListener(o),f.tabs.onRemoved.removeListener(s)},o=(m,g,y)=>{if(B.debug(this.CLASSNAME,"create tab onUpdated: "+y.url),a===m){let k=new URL(y.url||""),D=Pl(y.url);k.pathname.startsWith("/auth-done")&&D?.access_token&&(B.debug(this.CLASSNAME,"auth done: "+y.url),r({access_token:D.access_token}),n=!0,f.tabs.remove(m),u())}},s=(m,g)=>{B.debug(this.CLASSNAME,"create tab onRemoved: "+m),(m===a||!n)&&(u(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),d;f.windows===void 0?d=f.tabs.create({url:t}).then(m=>{a=m.id}):d=f.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(m=>{a=m.tabs[0].id}),d.then(()=>{f.tabs.onUpdated.addListener(o),f.tabs.onRemoved.addListener(s)}).catch(m=>{B.debug(this.CLASSNAME,"create tab failed: "+m),i(m)})})}};var Y4="https://www.googleapis.com/oauth2/v3/tokeninfo",Z4=vn,J4=se().REDIRECT_URL;function Ll(e){if(!e)throw"Authorization failure";let t=`${Y4}?access_token=${e}`,a=new Request(t,{method:"GET"});function n(r){return new Promise((i,u)=>{r.status!=200&&u("Token validation error"),r.json().then(o=>{o.aud&&o.aud===Z4?i(e):u("Token validation error")})})}return fetch(a).then(n)}function Ml(e,t=!1){let a=J4;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,i=window.location.port;a=`${window.location.protocol}//${r}${i?`:${i}`:""}/auth-done/`}return new Yn(e,a).auth(t)}async function Il(){}function jl(e,t){let a=new Map;for(let i of t)a.set(i.header.toLowerCase(),i);let n=[],r=e.filter(i=>{let u=a.get(i.name.toLowerCase());if(u){if(u.operation==="remove")return!1;if(u.operation==="set")return!1}return!0});for(let i of t)i.operation==="set"&&n.push({name:i.header,value:i.value||""});return r.concat(n)}var Zn=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:5,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://edge.microsoft.com/translate/auth",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:6,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://api-edge.cognitive.microsofttranslator.com/translate",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:301,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.pixiv.net/"}]},condition:{urlFilter:"https://i.pximg.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:302,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21*.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:303,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:304,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://2.bp.blogspot.com"}]},condition:{urlFilter:"https://2.bp.blogspot.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:305,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://japanreader.com"}]},condition:{urlFilter:"https://japanreader.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:306,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://mangabuddy.com/"}]},condition:{urlFilter:"https://s*.mbbcdn.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:307,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://sl.mangafuna.xyz/"}]},condition:{urlFilter:"https://sl.mangafuna.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:308,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://toonily.me"}]},condition:{urlFilter:"https://s*.toonilycdnv2.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:309,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://readcomiconline.li"}]},condition:{urlFilter:"https://*.whatsnew*.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:310,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://yymanhua.com"}]},condition:{urlFilter:"https://image.yymanhua.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:311,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://klz9.com"}]},condition:{urlFilter:"https://h1.klimv1.xyz/images*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:312,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://manhwato.com"}]},condition:{urlFilter:"https://stcdn.manhwato.com/images/manga/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}}];var X4="https://www.google-analytics.com/mp/collect",eh=30,th=100;async function ah(){let{sessionData:e}=await f.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>eh?e=null:(e.timestamp=t,await f.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await f.storage.session.set({sessionData:e})),e.session_id}function Ol(e){ho().forEach(({measurementId:t,apiSecret:a})=>{Nl({measurement_id:t,api_secret:a,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Sa(e,t,a){return Nl({measurement_id:po,api_secret:go,page_title:e,page_location:t,time:a})}async function Nl(e){try{let t=se(),a=Xt(),n=t.INSTALL_FROM==="firefox_store";if(a?.name?.startsWith("ImtFx")&&(n=!1),n)return;let{fakeUserId:r}=await ea(),i=`${X4}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,u={method:"POST",body:JSON.stringify({client_id:r,events:[{name:"page_view",params:{session_id:await ah(),engagement_time_msec:e.time||th,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,u)}catch(t){B.error(t)}}var _t=new Map;function ql(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function Qn(e){let t=await zl(),a=Date.now();if(t){if(_t.has(e))return;let n=await f.tabs.get(e),r=ql(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Li(e)}async function Ul(e){let t=await zl(),a=Date.now();for(let[n,r]of _t)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t){if(_t.has(e)){let i=_t.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=ql(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Li(e){if(_t.has(e)){let t=_t.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),_t.delete(e),rh(t.hostname,a)}}async function nh(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function rh(e,t){Sa(`${e}(video)`,e,t),ih(t)}var Jn="videoWatchTimeDay";async function ih(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Ie(Jn,null);if(!r){await ve(Jn,{day:n,time:e});return}if(r.day!==n){Sa("day-video."+Be,"day-video."+Be,r.time),await ve(Jn,{day:n,time:e});return}let i={day:n,time:r.time+e};await ve(Jn,i)}catch(t){B.error(t)}}async function zl(){try{return await nh({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Mi=(e,t,a,n)=>{let r=vo[e]||e,i=yo[e]||e,u=xo[e],o=wo[e],s={"zh-CN":u,"zh-TW":o,en:i};if(a)return s[e]?s[e]:i;let l=e!==t&&r!=="All Languages";if(s[t]){let c=s[t];return n||e==="auto"||e==="placeholder"?c:l?`${c} (${r})`:`${c}`}else return l?`${i} (${r})`:i};function uh(){return navigator.userAgent.indexOf("Mac")!==-1}var Gl={Alt:"\u2325"};function Ii(e=""){return uh()?Object.keys(Gl).reduce((t,a)=>t.replace(a,Gl[a]),e):e}function oh(e,t){let a=e.generalRule.imageRule.enableImageTranslation,n=e.beta;return a=="all"||a=="beta"&&n||a=="pro"&&t||a=="pro_beta"&&n&&t?!0:a?!1:n&&!!t}async function ji(){if(ke())return!1;let e=await Oe(),t=await Ao();return oh(e,t)}function sh(){return Kr()&&!ot()}var $a=sh()?["action"]:["browser_action","page_action"],Ya="",Hl=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...$a]},{id:Yt,contexts:["image"]},{id:jr,contexts:$a},{id:Nr,contexts:$a},{id:qr,contexts:$a},{id:Or,contexts:$a}];async function Oi(e){B.debug("createContextMenu",Hl);for(let t of Hl){let a=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(a=!1);try{let n=je(e.interfaceLanguage,`browser.${t.id}`);if(t.id===Yt&&(a=await ji()),t.id==="toggleTranslatePage"){n=je(e.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e.targetLanguage,e.interfaceLanguage,!1,!0)});let r=Ii(e.shortcuts.toggleTranslatePage);r&&(n+=`(${r})`)}f.contextMenus.create({id:t.id,title:n,contexts:t.contexts,visible:a},()=>f.runtime.lastError)}catch(n){B.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}async function Ja({targetLanguage:e,text:t}){let a=await Oe(),n="toggleTranslatePage",r=!0;a.isShowContextMenu===!1&&n==="toggleTranslatePage"&&(r=!1);let i;if(t)Ya=t,i=je(a.interfaceLanguage,"browser.translateText",{text:t});else{let u=await Xn(),o=u&&u!=="Original";i=je(a.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e??a.targetLanguage,a.interfaceLanguage,!1,!0)}),o&&(i=`${je(a.interfaceLanguage,"show-original")}`);let s=Ii(a.shortcuts.toggleTranslatePage);s&&(i+=`(${s})`),Ya=""}f.contextMenus.update(n,{title:i,visible:r})}function Wl(){f.contextMenus.onClicked.addListener(async e=>{if(e.menuItemId===jr)f.runtime.openOptionsPage();else if(e.menuItemId===Or){let t=_l();f.tabs.create({url:t})}else if(e.menuItemId===qr){let a=se().EBOOK_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Nr){let a=se().EBOOK_VIEWER_URL;f.tabs.create({url:a})}else if(e.menuItemId===to){let a=se().SUBTITLE_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Yt)Za({method:e.menuItemId,data:{srcUrl:e.srcUrl,trigger:"right_menu"}});else{if(e.selectionText&&e.editable){Za({method:"inputSelectedTextTranslate",data:{text:Ya,trigger:"right_menu"}});return}if(e.selectionText&&Ya){let t=se(),a=await Oe(),n=encodeURIComponent(Ya),r=`${t.TEXT_TRANSLATE_URL}#auto/${a.targetLanguage}/${n}`;f.tabs.create({url:r}),lh([{name:"translate_select_text",params:{trigger:"right_menu",targetLanguage:a.targetLanguage}}]);return}Za({method:e.menuItemId,data:{trigger:"right_menu"}})}})}async function lh(e){try{let t=Tn(),a=se(),n=Xt(),r=a.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:i}=await ea(),u={method:"POST",body:JSON.stringify({client_id:i,user_id:i,events:e})};t.forEach(o=>{fetch(o,u)})}catch(t){B.error(t)}}async function Kl(){try{let e=await ji();f.contextMenus.update(Yt,{visible:e})}catch{}}function Vl(){f.tabs.onActivated.addListener(function(e){Ja({}),ch(e.tabId),Ul(e.tabId)}),f.tabs.onRemoved.addListener(function(e){Yl(e),Li(e)}),f.tabs.onUpdated.addListener(function(e){Ni(e),Qn(e)})}var Ft=new Map;async function Ni(e){let t=await Xn(),a=Date.now();if(t=="Translated"){if(Ft.has(e))return;let n=await f.tabs.get(e),r=$l(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Yl(e)}function $l(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function ch(e){let t=await Xn(),a=Date.now();for(let[n,r]of Ft)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t=="Translated"){if(Ft.has(e)){let i=Ft.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=$l(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Yl(e){if(Ft.has(e)){let t=Ft.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),Ft.delete(e),mh(t.hostname,a)}}async function dh(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function mh(e,t){Sa(e,e,t),ph(t)}async function Xn(){try{return await dh({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var er="readTimeDay";async function ph(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Ie(er,null);if(!r){await ve(er,{day:n,time:e});return}if(r.day!==n){Sa("day."+Be,"day."+Be,r.time),await ve(er,{day:n,time:e});return}let i={day:n,time:r.time+e};await ve(er,i)}catch(t){B.error(t)}}var tr,gh=async function(e,t){let{method:a,data:n}=e;if(B.debug("background received message",a,n||" "),a==="mock")await Bt(150);else{if(a==="queryParagraphCache")return ei(n);if(a==="setParagraphCache")return Xr(n);if(a==="calculateSize")return No();if(a==="fetch")return ya(n);if(a==="getConfig")return Oe();if(a==="getLocalConfig")return Jt();if(a==="openOptionsPage"){let r="";n&&n.pageRoute&&(r=n.pageRoute);let i=f.runtime.getURL("options.html");f.tabs.create({url:i+r})}else if(a==="openAboutPage")f.tabs.create({url:f.runtime.getURL("options.html#about")});else if(a==="openInTab")n&&f.tabs.create({url:n});else if(a==="openEbookViewerPage"){let i=se().EBOOK_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openSubtitleBuilderPage"){let i=se().SUBTITLE_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openEbookBuilderPage"){let i=se().EBOOK_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openHtmlViewerPage"){let i=se().HTML_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openPdfViewerPage"){let r=n?.url,i=Vn(r);(ot()||!r)&&(i=se().PDF_VIEWER_URL),f.tabs.create({url:i})}else{if(a==="setLocalConfig")return Ut(n);if(a=="getUserConfig")return zt();if(a=="setUserConfig")return xt(n);if(a==="detectLanguage"){let{text:r,pageLangs:i}=n;if(f.i18n&&f.i18n.detectLanguage)try{let u=await Zl(f.i18n.detectLanguage(r),1500,{isReliable:!1,languages:[]});if(u.languages.length>0){if(u.isReliable)return Ot(u.languages[0].language);for(let o of u.languages){let s=Ot(o.language);if(i.includes(s)&&o.percentage>50)return s}}return"auto"}catch(u){return B.debug("detect language error",u),"auto"}else return"auto"}else if(a==="detectTabLanguage")try{let r=await Zl(f.tabs.detectLanguage(t.id),1500,"auto");return Ot(r)}catch(r){return B.debug("detect tab language error, use auto ",r),"auto"}else if(a==="autoSyncLatestConfig"){try{await Il()}catch(r){B.debug("auto sync latest config error",r)}return""}else if(a!=="updateCommands")if(a==="setBadge"){let r=t.id,i=n&&n.text?n.text:"";r&&(Ja({}),hh(r,i)),r&&Ni(r)}else if(a=="getDelay"){let{key:r,options:i}=n||{};return Ua.getDelay(r,i,!0)}else if(a==="getIsSupportIsOnToolbar")try{return f?.action?.getUserSettings?(await f.action.getUserSettings(),!0):!1}catch{return!1}else if(a==="getIsOnToolbar")try{return(await f.action.getUserSettings()).isOnToolbar}catch{return!1}else if(a=="reportOptionsPageView")Ol(n);else if(a==="updateVideoSubtitleStatus"){let r=t.id;r&&Qn(r)}else a==="updateToggleTranslateContextMenu"?Ja(n):a==="updateImageMenu"&&Kl()}}};function Jl(){na();let e=f.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&f.webRequest&&f.webRequest.onBeforeSendHeaders){let t=Zn.map(n=>n.condition.urlFilter),a=Zn.reduce((n,r)=>(r.condition.resourceTypes.forEach(i=>{n.includes(i)||n.push(i)}),n),[]);f.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let r=0;r{let i=setTimeout(()=>{n(a)},t);e.then(u=>{clearTimeout(i),n(u)}).catch(u=>{clearTimeout(i),r(u)})})}function Ql(){typeof f.commands<"u"&&f.commands.onCommand.addListener(async e=>{if(B.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await f.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Fl(n)){f.tabs.create({url:Vn(n)});return}}await Za({method:e,data:{trigger:"shortcut"}})})}async function Za(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;na().sendMessage(`content_script:main:${a}`,e).catch(r=>{B.error("send content message request failed",e,r)})}function nr(){Oe().then(e=>{e.uninstallUrl&&f.runtime.setUninstallURL&&f.runtime.setUninstallURL(e.uninstallUrl),qi(e)}).catch(e=>{B.error("create menu error",e)})}function qi(e){e?Oi(e):Oe().then(t=>{Oi(t)}).catch(t=>{B.error("create menu error",t)})}function Xl(){f.runtime.onInstalled.addListener(e=>{B.debug(`onInstalled reason: ${e.reason}`),B.debug(e),e.reason=="install"?(async()=>{let t=Pa,n=f.runtime.getURL("").startsWith("safari"),r=!1,i=!1;try{let c=await f.runtime.getPlatformInfo();if(n)c.os==="mac"?r=!0:c.os==="ios"&&(i=!0);else if(c.os==="android"){if(Rn()){let d=di();if(d&&aa(d,"1.0.2")){nr();return}}t=Pa+"mobile/"}}catch{}r?t=Pa+"safari/step-1/":i&&(t=Pa+"ios/step-2/");let u=await Ie("onboardingDisplayTime",""),o=await Ka(),s=await Qt(),l=new URL(t);l.searchParams.set("t",o),l.searchParams.set("v",s),n?u||(await ve("onboardingDisplayTime",new Date().toISOString()),f.tabs.create({url:l.toString()})):f.tabs.create({url:l.toString()}),nr()})():(e.reason=="update"&&f.runtime.getManifest().version!=e.previousVersion,nr())})}var bh=ki(null);async function vh(e,t,a){a=a||await oi();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&e0(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&e0(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await zt();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Vo(a),await xt(i)}catch{return!1}return r}async function xh(e,t){(await Promise.allSettled(e.map(n=>qt({url:`${b.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&vh("add",r,t)}})}async function wh(e,t,a=!0){e||(e=await Oe()),t||(t=await oi());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await Dh();i=await Th(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&xh(u,t)}var Eh=Aa(wh,1500);function e0(e){return aa(li(),e.extensionVersion)}function Sh(e,t){return t?!aa(e.version,t):!1}function Th(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{Sh(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function Dh(){return(await qt({url:`${b.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var Ah=1e3*3600*24;async function t0(e){try{let t=e?.cacheCleanIntervalDay??1,a=e?.cacheMaxAgeDay??30,n=new Date,r=await f.storage.local.get(null),i=r[wn],u=r[Ur];if(u||(u=n.getTime(),await f.storage.local.set({[Ur]:u})),i||(i=n.getTime(),await f.storage.local.set({[wn]:i})),n.getTime()-i>=t*Ah){let o=await qo(a,u);await f.storage.local.set({[wn]:n.getTime()})}}catch{}}async function a0(){try{if(ke())return;let e=f.runtime.getURL("locales.json"),a=await(await fetch(e)).json();Object.assign(Gt,a)}catch{}}Jl();Xl();Ql();f.contextMenus&&Wl();async function Ch(){await a0(),f.contextMenus&&qi();let e=await Oe();if(t0(e),e.joinJobs){let t=bo.replace("{jobs}",e.joinJobs.map(a=>` \u2022 ${a}`).join(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var j6=ke();var zs,ue,Gs,g4,Va,Os,Hs,Ws={},Ks=[],h4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Wt(e,t){for(var a in t)e[a]=t[a];return e}function Vs(e){var t=e.parentNode;t&&t.removeChild(e)}function Ai(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Gs};return r==null&&ue.vnode!=null&&ue.vnode(i),i}function ta(e){return e.children}function Un(e,t){this.props=e,this.context=t}function Ea(e,t){if(t==null)return e.__?Ea(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Ai(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null){if(g.__=a,g.__b=a.__b+1,(m=h[c])===null||m&&g.key==m.key&&g.type===m.type)h[c]=void 0;else for(d=0;dcl.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(cl.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return C4(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let D=s.split("://");l=D[0],l==="*"&&D.length>1&&(l="*",s="https://"+D[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,ml),m;try{m=new URL(d)}catch{return B.debug("invalid match pattern",d,"raw match value:",c),!1}let g=m.host,y=m.pathname;y==="/"&&(c.replace("://","").includes("/")||(y="/*"));let k=A4(l+":",dl(g),dl(y));return k?k.test(e):!1}});if(o)return o}return null}catch{return null}}function dl(e){return e.replaceAll(ml,"*")}function A4(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Wn(e,t){return D4(e,t)!==null}function C4(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var k4=null;if(typeof trustedTypes<"u")try{k4=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var _4=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(_4=!0)});var vE=globalThis.document?.createElement("div");var F4={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},a1={...F4};function aa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Kn(e){return Array.isArray(e)?e:e?[e]:[]}function fl(e,t){let a={...e};return yl(a,t),P4(a,t),a}function bl(e,t,a){let n={...e};return kt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),kt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function P4(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;yl(e,r)}function kt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=pl(i);if(u=="rich"){if(!r)return n(i,e[i]);let[m,g,y,k]=pl(i);u=m+"."+g,o=y,s=k}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Kn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!gl(s))return;d=Ri(c,l)}else if(o=="remove_v"){if(!gl(s))return;d=hl(c,l)}else o==="add"?d=Ri(c,l):o=="remove"&&(d=hl(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Ri(c,l):d=l,n(u,d)})}function yl(e,t){return kt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Ri(e,t){let a;if(Array.isArray(e)){let n=Kn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function pl(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function gl(e){let t=Qt();return e&&aa(t,e)}function hl(e,t){if(Array.isArray(e)){let a=Kn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var vl="userConfig",xl="userPromptPool",wl="userObjectPool";async function El(){let e=await Cl(vl)||{},t=await za(xl)||{},a=await za(wl)||{};return L4(e,t,a)}async function Sl(e){let{userConfig:t,promptPool:a,objectPool:n}=await R4(e);await Al(vl,t),await ba(xl,a),await ba(wl,n)}function R4(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return Tl(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),Dl(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function L4(e,t,a){return Tl(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),Dl(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function Tl(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function Dl(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}async function Oe(){let e={...Di,buildinConfigUpdatedAt:Q.BUILD_TIME};e=await H4(e);let t=await N4(e);e.targetLanguage=t;let a=await ma.get(jt,null),n=us(),r=M4(),i=await zt(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},o=await Jt(),s=Object.assign({},u,r,i);if(!s.interfaceLanguage){let c=await j4();s.interfaceLanguage=c}await G4(s,i,e),W4(o,s);let l=Object.assign(n,e);return kt({rule:e,valueIsArray:c=>Array.isArray(n[c]),getMergedValue:c=>n[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),kt({rule:e.generalRule,valueIsArray:c=>Array.isArray(n.generalRule[c]),getMergedValue:c=>n.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await z4(l),q4(a,s,l),l=await K4(l,s),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function M4(){if(Q.PROD==="1")return{};let e={};if(Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Q.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Q.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:Q.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:Q.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Q.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Q.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(Q.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:Q.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(Q.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Q.DEEPL_PROXY_ENDPOINT),Q.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Q.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Q.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:Q.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}Q.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Q.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Q.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Q.MOCK==="1"&&(t.translationService="mock"),t}async function Jt(){let e=await f.storage.local.get(Ra);if(e[Ra]){let t=e[Ra],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await Ut(i),i}else return{}}async function Ut(e){await f.storage.local.set({[Ra]:e})}async function I4(){return Q.DEBUG==="1"?void 0:(await f.storage.local.get(Ir))[Ir]}function zt(){return El()}function xt(e){return Sl(e)}async function Al(e,t){await f.storage.sync.set({[e]:t})}async function Cl(e){return(await f.storage.sync.get(e))[e]}async function ba(e,t){await f.storage.local.set({[e]:t})}async function za(e){return(await f.storage.local.get(e))[e]}var j4=async()=>{let e=["zh-CN"];try{e=await f.i18n.getAcceptLanguages()}catch(n){B.warn("get browser language error:",n)}let a=e.map(n=>Ot(n)).find(n=>Jo.find(r=>r===n));return a||"en"},us=()=>{let e={...Di,buildinConfigUpdatedAt:Q.BUILD_TIME};return{...e,targetLanguage:It,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function O4(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function N4(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return It;let a=await Ie("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=kl(l,n[o]))}),kt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=kl(l,a[o]))}),kt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}async function z4(e){try{let t=await Ie("installedAt",""),a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){B.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function kl(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}async function G4(e,t,a){let n=e.interfaceLanguage==="en",r=e.targetLanguage==="en",i=a&&a.translationLanguagePattern&&a.translationLanguagePattern.matches&&a.translationLanguagePattern.matches.length===0,u=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!n&&!r&&!i&&u?a.translationLanguagePattern||(a.translationLanguagePattern={matches:["en"],excludeMatches:[]}):a.translationLanguagePattern={matches:[],excludeMatches:[]};let o=a&&a.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(o=!1);let s=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;s===void 0&&(l.length>0?s=!0:s=!1,e.isChangedAlwaysTranslatedUrls=s,t.isChangedAlwaysTranslatedUrls=s,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Ie("installedAt",""),g=Number(await Oa("translage_page_daily",0)),y=Number(await Ie(st,0)),k;y>0&&(Date.now()-y0&&(Date.now()-gn&&(e=t)}return e}function W4(e,t){let a=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let n=e.tempTranslationUrlMatches.filter(r=>new Date(r.expiredAt)>a);if(n.length>0){let r=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(r)?r:[r],u=Array.from(new Set(i.concat(n.map(o=>o.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:u}}}}async function K4(e,t){let a=await V4(),n=Object.keys(e),r=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of n){let u=i;if(u==="generalRule")typeof t[u]=="object"&&(e[u]=fl(e[u],t[u]));else if(u==="translationServices")U4(t,e);else if(typeof t[u]!="string"&&typeof t[u]!="boolean"&&typeof t[u]!="number"&&r.includes(u))t[u]&&(e[u]=Object.assign(e[u],t[u])),u==="shortcuts"&&(ke()||ot()?e[u]={...e[u],...a}:e[u]={...a});else if(u==="rules"){if(Array.isArray(t[u])){let o=e.rules||[],s={};for(let c of o)c.id&&(s[c.id]=c);let l=t[u].map(c=>c.id&&s[c.id]?bl(e.generalRule,s[c.id],c):c);e[u]=[...l,...e[u]]}if(Q.PROD==="0"&&Q.DEV_RULES){let o=JSON.parse(Q.DEV_RULES);e[u]=[...o,...e[u]]}}else t[u]!==void 0&&(e[u]=t[u])}return e}async function V4(){let e={};if(!ke()&&f.commands&&f.commands.getAll){let t=await f.commands.getAll();for(let a of t)a.name&&a.shortcut&&(e[a.name]=a.shortcut)}return e}function Vn(e){let t=f.runtime.getURL($u),a=new URL(t);return e&&(e.startsWith("http")||!Vr())&&a.searchParams.set("file",e),a.href}function _l(){return se().PDF_VIEWER_URL}function Fl(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var $n=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],a="";do{let{nextPageToken:n,files:r}=await this.list(a).catch(i=>{throw i});t.push(...r),a=n||""}while(a);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){return B.error("get config error, use default",a),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,a=xn){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:a,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,a){let n=new Blob([JSON.stringify(a,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,a){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",a);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return r.ok?await r.json():Promise.reject(r.text())}async list(t,a){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),a&&n.searchParams.append("q",a),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return B.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw B.error("fetch google ip error",r),r}}async updateContent(t,a){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:a})).text()}};function Bl(e,t){let a=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${vn}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(a.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function Pl(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Rl(e,t,a,n,r,i,u){if(B.debug(`autoSyncStrategy accessToken: ${e}`),t===null){B.debug("autoSyncStrategy settings is null");return}let o=new $n(e);try{let s=(await o.findByName(xn)).files;B.debug("files",s);let l=s[0]?.id,c=null;if(l&&(c=await o.getConfig(l).then(d=>({fileId:l,config:d}))),c){let{config:d,fileId:m}=c,g=d.updatedAt?new Date(d.updatedAt):new Date(0),y=t.updatedAt?new Date(t.updatedAt):new Date(0);if(B.debug("remoteUpdatedAt",g,"localUpdatedAt",y),g>y)B.debug("remote is newer, update local config",d),a(d),i&&i(!0);else if(g.getTime()===y.getTime())B.debug("remote and local are the same, do nothing"),i&&i(!1);else if(g(await e.removeAuthInfo(),Lr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await f.storage.local.get(la);if(t[la])return t[la]}static async removeAuthInfo(){return await f.storage.local.remove(la)}static setAuthInfo(t){return f.storage.local.set({[la]:t})}async auth(t=!1){let a=await e.getAuthInfo();if(B.debug(this.CLASSNAME,"token from cache:",a),a&&a.access_token&&await Ll(a.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(a);let n=Bl(this._state,this._redirectUrl);return B.debug(this.CLASSNAME,"auth url: "+n),Lr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,a){return a&&await f.storage.local.set({[Zu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let a,n=!1;return new Promise((r,i)=>{let u=()=>{f.tabs.onUpdated.removeListener(o),f.tabs.onRemoved.removeListener(s)},o=(m,g,y)=>{if(B.debug(this.CLASSNAME,"create tab onUpdated: "+y.url),a===m){let k=new URL(y.url||""),D=Pl(y.url);k.pathname.startsWith("/auth-done")&&D?.access_token&&(B.debug(this.CLASSNAME,"auth done: "+y.url),r({access_token:D.access_token}),n=!0,f.tabs.remove(m),u())}},s=(m,g)=>{B.debug(this.CLASSNAME,"create tab onRemoved: "+m),(m===a||!n)&&(u(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),d;f.windows===void 0?d=f.tabs.create({url:t}).then(m=>{a=m.id}):d=f.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(m=>{a=m.tabs[0].id}),d.then(()=>{f.tabs.onUpdated.addListener(o),f.tabs.onRemoved.addListener(s)}).catch(m=>{B.debug(this.CLASSNAME,"create tab failed: "+m),i(m)})})}};var Y4="https://www.googleapis.com/oauth2/v3/tokeninfo",Z4=vn,J4=se().REDIRECT_URL;function Ll(e){if(!e)throw"Authorization failure";let t=`${Y4}?access_token=${e}`,a=new Request(t,{method:"GET"});function n(r){return new Promise((i,u)=>{r.status!=200&&u("Token validation error"),r.json().then(o=>{o.aud&&o.aud===Z4?i(e):u("Token validation error")})})}return fetch(a).then(n)}function Ml(e,t=!1){let a=J4;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,i=window.location.port;a=`${window.location.protocol}//${r}${i?`:${i}`:""}/auth-done/`}return new Yn(e,a).auth(t)}async function Il(){}function jl(e,t){let a=new Map;for(let i of t)a.set(i.header.toLowerCase(),i);let n=[],r=e.filter(i=>{let u=a.get(i.name.toLowerCase());if(u){if(u.operation==="remove")return!1;if(u.operation==="set")return!1}return!0});for(let i of t)i.operation==="set"&&n.push({name:i.header,value:i.value||""});return r.concat(n)}var Zn=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:5,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://edge.microsoft.com/translate/auth",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:6,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://api-edge.cognitive.microsofttranslator.com/translate",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:301,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.pixiv.net/"}]},condition:{urlFilter:"https://i.pximg.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:302,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21*.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:303,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:304,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://2.bp.blogspot.com"}]},condition:{urlFilter:"https://2.bp.blogspot.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:305,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://japanreader.com"}]},condition:{urlFilter:"https://japanreader.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:306,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://mangabuddy.com/"}]},condition:{urlFilter:"https://s*.mbbcdn.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:307,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://sl.mangafuna.xyz/"}]},condition:{urlFilter:"https://sl.mangafuna.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:308,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://toonily.me"}]},condition:{urlFilter:"https://s*.toonilycdnv2.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:309,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://readcomiconline.li"}]},condition:{urlFilter:"https://*.whatsnew*.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:310,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://yymanhua.com"}]},condition:{urlFilter:"https://image.yymanhua.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:311,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://klz9.com"}]},condition:{urlFilter:"https://h1.klimv1.xyz/images*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:312,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://manhwato.com"}]},condition:{urlFilter:"https://stcdn.manhwato.com/images/manga/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}}];var X4="https://www.google-analytics.com/mp/collect",eh=30,th=100;async function ah(){let{sessionData:e}=await f.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>eh?e=null:(e.timestamp=t,await f.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await f.storage.session.set({sessionData:e})),e.session_id}function Ol(e){ho().forEach(({measurementId:t,apiSecret:a})=>{Nl({measurement_id:t,api_secret:a,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Sa(e,t,a){return Nl({measurement_id:po,api_secret:go,page_title:e,page_location:t,time:a})}async function Nl(e){try{let t=se(),a=Xt(),n=t.INSTALL_FROM==="firefox_store";if(a?.name?.startsWith("ImtFx")&&(n=!1),n)return;let{fakeUserId:r}=await ea(),i=`${X4}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,u={method:"POST",body:JSON.stringify({client_id:r,events:[{name:"page_view",params:{session_id:await ah(),engagement_time_msec:e.time||th,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,u)}catch(t){B.error(t)}}var _t=new Map;function ql(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function Qn(e){let t=await zl(),a=Date.now();if(t){if(_t.has(e))return;let n=await f.tabs.get(e),r=ql(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Li(e)}async function Ul(e){let t=await zl(),a=Date.now();for(let[n,r]of _t)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t){if(_t.has(e)){let i=_t.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=ql(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Li(e){if(_t.has(e)){let t=_t.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),_t.delete(e),rh(t.hostname,a)}}async function nh(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function rh(e,t){Sa(`${e}(video)`,e,t),ih(t)}var Jn="videoWatchTimeDay";async function ih(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Ie(Jn,null);if(!r){await ve(Jn,{day:n,time:e});return}if(r.day!==n){Sa("day-video."+Be,"day-video."+Be,r.time),await ve(Jn,{day:n,time:e});return}let i={day:n,time:r.time+e};await ve(Jn,i)}catch(t){B.error(t)}}async function zl(){try{return await nh({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Mi=(e,t,a,n)=>{let r=vo[e]||e,i=yo[e]||e,u=xo[e],o=wo[e],s={"zh-CN":u,"zh-TW":o,en:i};if(a)return s[e]?s[e]:i;let l=e!==t&&r!=="All Languages";if(s[t]){let c=s[t];return n||e==="auto"||e==="placeholder"?c:l?`${c} (${r})`:`${c}`}else return l?`${i} (${r})`:i};function uh(){return navigator.userAgent.indexOf("Mac")!==-1}var Gl={Alt:"\u2325"};function Ii(e=""){return uh()?Object.keys(Gl).reduce((t,a)=>t.replace(a,Gl[a]),e):e}function oh(e,t){let a=e.generalRule.imageRule.enableImageTranslation,n=e.beta;return a=="all"||a=="beta"&&n||a=="pro"&&t||a=="pro_beta"&&n&&t?!0:a?!1:n&&!!t}async function ji(){if(ke())return!1;let e=await Oe(),t=await Ao();return oh(e,t)}function sh(){return Kr()&&!ot()}var $a=sh()?["action"]:["browser_action","page_action"],Ya="",Hl=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...$a]},{id:Yt,contexts:["image"]},{id:jr,contexts:$a},{id:Nr,contexts:$a},{id:qr,contexts:$a},{id:Or,contexts:$a}];async function Oi(e){B.debug("createContextMenu",Hl);for(let t of Hl){let a=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(a=!1);try{let n=je(e.interfaceLanguage,`browser.${t.id}`);if(t.id===Yt&&(a=await ji()),t.id==="toggleTranslatePage"){n=je(e.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e.targetLanguage,e.interfaceLanguage,!1,!0)});let r=Ii(e.shortcuts.toggleTranslatePage);r&&(n+=`(${r})`)}f.contextMenus.create({id:t.id,title:n,contexts:t.contexts,visible:a},()=>f.runtime.lastError)}catch(n){B.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}async function Ja({targetLanguage:e,text:t}){let a=await Oe(),n="toggleTranslatePage",r=!0;a.isShowContextMenu===!1&&n==="toggleTranslatePage"&&(r=!1);let i;if(t)Ya=t,i=je(a.interfaceLanguage,"browser.translateText",{text:t});else{let u=await Xn(),o=u&&u!=="Original";i=je(a.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e??a.targetLanguage,a.interfaceLanguage,!1,!0)}),o&&(i=`${je(a.interfaceLanguage,"show-original")}`);let s=Ii(a.shortcuts.toggleTranslatePage);s&&(i+=`(${s})`),Ya=""}f.contextMenus.update(n,{title:i,visible:r})}function Wl(){f.contextMenus.onClicked.addListener(async e=>{if(e.menuItemId===jr)f.runtime.openOptionsPage();else if(e.menuItemId===Or){let t=_l();f.tabs.create({url:t})}else if(e.menuItemId===qr){let a=se().EBOOK_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Nr){let a=se().EBOOK_VIEWER_URL;f.tabs.create({url:a})}else if(e.menuItemId===to){let a=se().SUBTITLE_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Yt)Za({method:e.menuItemId,data:{srcUrl:e.srcUrl,trigger:"right_menu"}});else{if(e.selectionText&&e.editable){Za({method:"inputSelectedTextTranslate",data:{text:Ya,trigger:"right_menu"}});return}if(e.selectionText&&Ya){let t=se(),a=await Oe(),n=encodeURIComponent(Ya),r=`${t.TEXT_TRANSLATE_URL}#auto/${a.targetLanguage}/${n}`;f.tabs.create({url:r}),lh([{name:"translate_select_text",params:{trigger:"right_menu",targetLanguage:a.targetLanguage}}]);return}Za({method:e.menuItemId,data:{trigger:"right_menu"}})}})}async function lh(e){try{let t=Tn(),a=se(),n=Xt(),r=a.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:i}=await ea(),u={method:"POST",body:JSON.stringify({client_id:i,user_id:i,events:e})};t.forEach(o=>{fetch(o,u)})}catch(t){B.error(t)}}async function Kl(){try{let e=await ji();f.contextMenus.update(Yt,{visible:e})}catch{}}function Vl(){f.tabs.onActivated.addListener(function(e){Ja({}),ch(e.tabId),Ul(e.tabId)}),f.tabs.onRemoved.addListener(function(e){Yl(e),Li(e)}),f.tabs.onUpdated.addListener(function(e){Ni(e),Qn(e)})}var Ft=new Map;async function Ni(e){let t=await Xn(),a=Date.now();if(t=="Translated"){if(Ft.has(e))return;let n=await f.tabs.get(e),r=$l(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Yl(e)}function $l(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function ch(e){let t=await Xn(),a=Date.now();for(let[n,r]of Ft)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t=="Translated"){if(Ft.has(e)){let i=Ft.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=$l(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Yl(e){if(Ft.has(e)){let t=Ft.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),Ft.delete(e),mh(t.hostname,a)}}async function dh(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function mh(e,t){Sa(e,e,t),ph(t)}async function Xn(){try{return await dh({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var er="readTimeDay";async function ph(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Ie(er,null);if(!r){await ve(er,{day:n,time:e});return}if(r.day!==n){Sa("day."+Be,"day."+Be,r.time),await ve(er,{day:n,time:e});return}let i={day:n,time:r.time+e};await ve(er,i)}catch(t){B.error(t)}}var tr,gh=async function(e,t){let{method:a,data:n}=e;if(B.debug("background received message",a,n||" "),a==="mock")await Bt(150);else{if(a==="queryParagraphCache")return ei(n);if(a==="setParagraphCache")return Xr(n);if(a==="calculateSize")return No();if(a==="fetch")return ya(n);if(a==="getConfig")return Oe();if(a==="getLocalConfig")return Jt();if(a==="openOptionsPage"){let r="";n&&n.pageRoute&&(r=n.pageRoute);let i=f.runtime.getURL("options.html");f.tabs.create({url:i+r})}else if(a==="openAboutPage")f.tabs.create({url:f.runtime.getURL("options.html#about")});else if(a==="openInTab")n&&f.tabs.create({url:n});else if(a==="openEbookViewerPage"){let i=se().EBOOK_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openSubtitleBuilderPage"){let i=se().SUBTITLE_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openEbookBuilderPage"){let i=se().EBOOK_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openHtmlViewerPage"){let i=se().HTML_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openPdfViewerPage"){let r=n?.url,i=Vn(r);(ot()||!r)&&(i=se().PDF_VIEWER_URL),f.tabs.create({url:i})}else{if(a==="setLocalConfig")return Ut(n);if(a=="getUserConfig")return zt();if(a=="setUserConfig")return xt(n);if(a==="detectLanguage"){let{text:r,pageLangs:i}=n;if(f.i18n&&f.i18n.detectLanguage)try{let u=await Zl(f.i18n.detectLanguage(r),1500,{isReliable:!1,languages:[]});if(u.languages.length>0){if(u.isReliable)return Ot(u.languages[0].language);for(let o of u.languages){let s=Ot(o.language);if(i.includes(s)&&o.percentage>50)return s}}return"auto"}catch(u){return B.debug("detect language error",u),"auto"}else return"auto"}else if(a==="detectTabLanguage")try{let r=await Zl(f.tabs.detectLanguage(t.id),1500,"auto");return Ot(r)}catch(r){return B.debug("detect tab language error, use auto ",r),"auto"}else if(a==="autoSyncLatestConfig"){try{await Il()}catch(r){B.debug("auto sync latest config error",r)}return""}else if(a!=="updateCommands")if(a==="setBadge"){let r=t.id,i=n&&n.text?n.text:"";r&&(Ja({}),hh(r,i)),r&&Ni(r)}else if(a=="getDelay"){let{key:r,options:i}=n||{};return Ua.getDelay(r,i,!0)}else if(a==="getIsSupportIsOnToolbar")try{return f?.action?.getUserSettings?(await f.action.getUserSettings(),!0):!1}catch{return!1}else if(a==="getIsOnToolbar")try{return(await f.action.getUserSettings()).isOnToolbar}catch{return!1}else if(a=="reportOptionsPageView")Ol(n);else if(a==="updateVideoSubtitleStatus"){let r=t.id;r&&Qn(r)}else a==="updateToggleTranslateContextMenu"?Ja(n):a==="updateImageMenu"&&Kl()}}};function Jl(){na();let e=f.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&f.webRequest&&f.webRequest.onBeforeSendHeaders){let t=Zn.map(n=>n.condition.urlFilter),a=Zn.reduce((n,r)=>(r.condition.resourceTypes.forEach(i=>{n.includes(i)||n.push(i)}),n),[]);f.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let r=0;r{let i=setTimeout(()=>{n(a)},t);e.then(u=>{clearTimeout(i),n(u)}).catch(u=>{clearTimeout(i),r(u)})})}function Ql(){typeof f.commands<"u"&&f.commands.onCommand.addListener(async e=>{if(B.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await f.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Fl(n)){f.tabs.create({url:Vn(n)});return}}await Za({method:e,data:{trigger:"shortcut"}})})}async function Za(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;na().sendMessage(`content_script:main:${a}`,e).catch(r=>{B.error("send content message request failed",e,r)})}function nr(){Oe().then(e=>{e.uninstallUrl&&f.runtime.setUninstallURL&&f.runtime.setUninstallURL(e.uninstallUrl),qi(e)}).catch(e=>{B.error("create menu error",e)})}function qi(e){e?Oi(e):Oe().then(t=>{Oi(t)}).catch(t=>{B.error("create menu error",t)})}function Xl(){f.runtime.onInstalled.addListener(e=>{B.debug(`onInstalled reason: ${e.reason}`),B.debug(e),e.reason=="install"?(async()=>{let t=Pa,n=f.runtime.getURL("").startsWith("safari"),r=!1,i=!1;try{let c=await f.runtime.getPlatformInfo();if(n)c.os==="mac"?r=!0:c.os==="ios"&&(i=!0);else if(c.os==="android"){if(Rn()){let d=di();if(d&&aa(d,"1.0.2")){nr();return}}t=Pa+"mobile/"}}catch{}r?t=Pa+"safari/step-1/":i&&(t=Pa+"ios/step-2/");let u=await Ie("onboardingDisplayTime",""),o=await Ka(),s=await Qt(),l=new URL(t);l.searchParams.set("t",o),l.searchParams.set("v",s),n?u||(await ve("onboardingDisplayTime",new Date().toISOString()),f.tabs.create({url:l.toString()})):f.tabs.create({url:l.toString()}),nr()})():(e.reason=="update"&&f.runtime.getManifest().version!=e.previousVersion,nr())})}var bh=ki(null);async function vh(e,t,a){a=a||await oi();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&e0(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&e0(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await zt();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Vo(a),await xt(i)}catch{return!1}return r}async function xh(e,t){(await Promise.allSettled(e.map(n=>qt({url:`${b.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&vh("add",r,t)}})}async function wh(e,t,a=!0){e||(e=await Oe()),t||(t=await oi());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await Dh();i=await Th(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&xh(u,t)}var Eh=Aa(wh,1500);function e0(e){return aa(li(),e.extensionVersion)}function Sh(e,t){return t?!aa(e.version,t):!1}function Th(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{Sh(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function Dh(){return(await qt({url:`${b.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var Ah=1e3*3600*24;async function t0(e){try{let t=e?.cacheCleanIntervalDay??1,a=e?.cacheMaxAgeDay??30,n=new Date,r=await f.storage.local.get(null),i=r[wn],u=r[Ur];if(u||(u=n.getTime(),await f.storage.local.set({[Ur]:u})),i||(i=n.getTime(),await f.storage.local.set({[wn]:i})),n.getTime()-i>=t*Ah){let o=await qo(a,u);await f.storage.local.set({[wn]:n.getTime()})}}catch{}}async function a0(){try{if(ke())return;let e=f.runtime.getURL("locales.json"),a=await(await fetch(e)).json();Object.assign(Gt,a)}catch{}}Jl();Xl();Ql();f.contextMenus&&Wl();async function Ch(){await a0(),f.contextMenus&&qi();let e=await Oe();if(t0(e),e.joinJobs){let t=bo.replace("{jobs}",e.joinJobs.map(a=>` \u2022 ${a}`).join(` `))}Vl(),e.debug&&B.setLevel("debug")}Ch().catch(e=>{});})(); /*! Bundled license information: diff --git a/dist/firefox/content_script.js b/dist/firefox/content_script.js index b360da9..bef1297 100644 --- a/dist/firefox/content_script.js +++ b/dist/firefox/content_script.js @@ -1,4 +1,4 @@ -(()=>{var $C=Object.defineProperty;var ew=(e,t)=>{for(var n in t)$C(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var XC=Object.defineProperty;var $C=(e,t)=>{for(var n in t)XC(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,7 +5447,7 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var nw=Object.create,tm=Object.defineProperty,rw=Object.getOwnPropertyDescriptor,q4=Object.getOwnPropertyNames,aw=Object.getPrototypeOf,iw=Object.prototype.hasOwnProperty,ow=(e,t)=>function(){return t||(0,e[q4(e)[0]])((t={exports:{}}).exports,t),t.exports},sw=(e,t)=>{for(var n in t)tm(e,n,{get:t[n],enumerable:!0})},em=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of q4(t))!iw.call(e,a)&&a!==n&&tm(e,a,{get:()=>t[a],enumerable:!(r=rw(t,a))||r.enumerable});return e},uw=(e,t,n)=>(em(e,t,"default"),n&&em(n,t,"default")),z4=(e,t,n)=>(n=e!=null?nw(aw(e)):{},em(t||!e||!e.__esModule?tm(n,"default",{value:e,enumerable:!0}):n,e)),W4=ow({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(T,A=void 0){super(A),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,T)=>(...A)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):T.singleCallbackArg||A.length<=1&&T.singleCallbackArg!==!1?C.resolve(A[0]):C.resolve(A)},c=C=>C==1?"argument":"arguments",d=(C,T)=>function(D,...I){if(I.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${I.length}`);return new Promise((F,R)=>{if(T.fallbackToNoCallback)try{D[C](...I,l({resolve:F,reject:R},T))}catch{D[C](...I),T.fallbackToNoCallback=!1,T.noCallback=!0,F()}else T.noCallback?(D[C](...I),F()):D[C](...I,l({resolve:F,reject:R},T))})},m=(C,T,A)=>new Proxy(T,{apply(D,I,F){return A.call(I,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,T={},A={})=>{let D=Object.create(null),I={has(R,B){return B in C||B in D},get(R,B,L){if(B in D)return D[B];if(!(B in C))return;let _=C[B];if(typeof _=="function")if(typeof T[B]=="function")_=m(C,C[B],T[B]);else if(p(A,B)){let O=d(B,A[B]);_=m(C,C[B],O)}else _=_.bind(C);else if(typeof _=="object"&&_!==null&&(p(T,B)||p(A,B)))_=g(_,T[B],A[B]);else if(p(A,"*"))_=g(_,T[B],A["*"]);else return Object.defineProperty(D,B,{configurable:!0,enumerable:!0,get(){return C[B]},set(O){C[B]=O}}),_;return D[B]=_,_},set(R,B,L,_){return B in D?D[B]=L:C[B]=L,!0},defineProperty(R,B,L){return Reflect.defineProperty(D,B,L)},deleteProperty(R,B){return Reflect.deleteProperty(D,B)}},F=Object.create(C);return new Proxy(F,I)},h=C=>({addListener(T,A,...D){T.addListener(C.get(A),...D)},hasListener(T,A){return T.hasListener(C.get(A))},removeListener(T,A){T.removeListener(C.get(A))}}),b=new s(C=>typeof C!="function"?C:function(A){let D=g(A,{},{getContent:{minArgs:0,maxArgs:0}});C(D)}),f=new s(C=>typeof C!="function"?C:function(A,D,I){let F=!1,R,B=new Promise(z=>{R=function(V){F=!0,z(V)}}),L;try{L=C(A,D,R)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!F)return!1;let O=z=>{z.then(V=>{I(V)},V=>{let ie;V&&(V instanceof Error||typeof V.message=="string")?ie=V.message:ie="An unexpected error occurred",I({__mozWebExtensionPolyfillReject__:!0,message:ie})}).catch(V=>{})};return O(_?L:B),!0}),y=({reject:C,resolve:T},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?T():C(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?C(new Error(A.message)):T(A)},v=(C,T,A,...D)=>{if(D.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${D.length}`);return new Promise((I,F)=>{let R=y.bind(null,{resolve:I,reject:F});D.push(R),A.sendMessage(...D)})},S={devtools:{network:{onRequestFinished:h(b)}},runtime:{onMessage:h(f),onMessageExternal:h(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),G4={};sw(G4,{default:()=>gl});var lw=z4(W4());uw(G4,z4(W4()));var{default:H4,...cw}=lw,gl=H4!==void 0?H4:cw;globalThis.immersiveTranslateBrowserAPI=gl;var dw=` +}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var tw=Object.create,em=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,U4=Object.getOwnPropertyNames,rw=Object.getPrototypeOf,aw=Object.prototype.hasOwnProperty,iw=(e,t)=>function(){return t||(0,e[U4(e)[0]])((t={exports:{}}).exports,t),t.exports},ow=(e,t)=>{for(var n in t)em(e,n,{get:t[n],enumerable:!0})},$d=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of U4(t))!aw.call(e,a)&&a!==n&&em(e,a,{get:()=>t[a],enumerable:!(r=nw(t,a))||r.enumerable});return e},sw=(e,t,n)=>($d(e,t,"default"),n&&$d(n,t,"default")),H4=(e,t,n)=>(n=e!=null?tw(rw(e)):{},$d(t||!e||!e.__esModule?em(n,"default",{value:e,enumerable:!0}):n,e)),q4=iw({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(T,A=void 0){super(A),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,T)=>(...A)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):T.singleCallbackArg||A.length<=1&&T.singleCallbackArg!==!1?C.resolve(A[0]):C.resolve(A)},c=C=>C==1?"argument":"arguments",d=(C,T)=>function(D,...I){if(I.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${I.length}`);return new Promise((F,R)=>{if(T.fallbackToNoCallback)try{D[C](...I,l({resolve:F,reject:R},T))}catch{D[C](...I),T.fallbackToNoCallback=!1,T.noCallback=!0,F()}else T.noCallback?(D[C](...I),F()):D[C](...I,l({resolve:F,reject:R},T))})},m=(C,T,A)=>new Proxy(T,{apply(D,I,F){return A.call(I,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,T={},A={})=>{let D=Object.create(null),I={has(R,B){return B in C||B in D},get(R,B,P){if(B in D)return D[B];if(!(B in C))return;let _=C[B];if(typeof _=="function")if(typeof T[B]=="function")_=m(C,C[B],T[B]);else if(p(A,B)){let O=d(B,A[B]);_=m(C,C[B],O)}else _=_.bind(C);else if(typeof _=="object"&&_!==null&&(p(T,B)||p(A,B)))_=g(_,T[B],A[B]);else if(p(A,"*"))_=g(_,T[B],A["*"]);else return Object.defineProperty(D,B,{configurable:!0,enumerable:!0,get(){return C[B]},set(O){C[B]=O}}),_;return D[B]=_,_},set(R,B,P,_){return B in D?D[B]=P:C[B]=P,!0},defineProperty(R,B,P){return Reflect.defineProperty(D,B,P)},deleteProperty(R,B){return Reflect.deleteProperty(D,B)}},F=Object.create(C);return new Proxy(F,I)},b=C=>({addListener(T,A,...D){T.addListener(C.get(A),...D)},hasListener(T,A){return T.hasListener(C.get(A))},removeListener(T,A){T.removeListener(C.get(A))}}),h=new s(C=>typeof C!="function"?C:function(A){let D=g(A,{},{getContent:{minArgs:0,maxArgs:0}});C(D)}),f=new s(C=>typeof C!="function"?C:function(A,D,I){let F=!1,R,B=new Promise(z=>{R=function(V){F=!0,z(V)}}),P;try{P=C(A,D,R)}catch(z){P=Promise.reject(z)}let _=P!==!0&&u(P);if(P!==!0&&!_&&!F)return!1;let O=z=>{z.then(V=>{I(V)},V=>{let ie;V&&(V instanceof Error||typeof V.message=="string")?ie=V.message:ie="An unexpected error occurred",I({__mozWebExtensionPolyfillReject__:!0,message:ie})}).catch(V=>{})};return O(_?P:B),!0}),y=({reject:C,resolve:T},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?T():C(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?C(new Error(A.message)):T(A)},v=(C,T,A,...D)=>{if(D.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${D.length}`);return new Promise((I,F)=>{let R=y.bind(null,{resolve:I,reject:F});D.push(R),A.sendMessage(...D)})},S={devtools:{network:{onRequestFinished:b(h)}},runtime:{onMessage:b(f),onMessageExternal:b(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),z4={};ow(z4,{default:()=>pl});var uw=H4(q4());sw(z4,H4(q4()));var{default:j4,...lw}=uw,pl=j4!==void 0?j4:lw;globalThis.immersiveTranslateBrowserAPI=pl;var cw=` .toastify { padding: 12px 20px; color: #ffffff; @@ -5530,23 +5530,23 @@ select.text-gray-6 { max-width: fit-content; } } -`,nm="immersive-translate-toastify-shadow-root",rm=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(nm)){let t=document.getElementById(nm);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=nm,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=dw,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function fl(e){e=e||{},new rm({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var le=ke();function te(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):le.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function ua(){return le.PROD==="1"}function am(){return le.PROD_API==="1"}function V4(){return le.HAS_CSP_ERROR=="1"}function it(){if(le.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function hl(){return typeof Deno<"u"}var zN=ke().PROD==="1",Xi=ke().PROD!=="1";function bl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function yl(){return le.IMMERSIVE_TRANSLATE_JSSDK==="1"}function $i(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var im=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function xl(e,t){let n=$i(),r=setTimeout(()=>n.reject(new im),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function st(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var K4=class{#e=0;#t=[];#n=[];#r=$i();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tNw,bgBlue:()=>qw,bgBrightBlack:()=>Vw,bgBrightBlue:()=>Jw,bgBrightCyan:()=>Xw,bgBrightGreen:()=>Yw,bgBrightMagenta:()=>Zw,bgBrightRed:()=>Kw,bgBrightWhite:()=>$w,bgBrightYellow:()=>Qw,bgCyan:()=>Ww,bgGreen:()=>Uw,bgMagenta:()=>zw,bgRed:()=>jw,bgRgb24:()=>rE,bgRgb8:()=>tE,bgWhite:()=>Gw,bgYellow:()=>Hw,black:()=>Tw,blue:()=>Aw,bold:()=>fw,brightBlack:()=>J4,brightBlue:()=>Fw,brightCyan:()=>_w,brightGreen:()=>Rw,brightMagenta:()=>Bw,brightRed:()=>Mw,brightWhite:()=>Ow,brightYellow:()=>Iw,cyan:()=>Dw,dim:()=>hw,getColorEnabled:()=>pw,gray:()=>Pw,green:()=>ww,hidden:()=>vw,inverse:()=>xw,italic:()=>bw,magenta:()=>kw,red:()=>Cw,reset:()=>gw,rgb24:()=>nE,rgb8:()=>eE,setColorEnabled:()=>mw,strikethrough:()=>Sw,stripColor:()=>iE,underline:()=>yw,white:()=>Lw,yellow:()=>Ew});var{Deno:Y4}=globalThis,Q4=typeof Y4?.noColor=="boolean"?Y4.noColor:!0,om=!Q4;function mw(e){Q4||(om=e)}function pw(){return om}function Pe(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Me(e,t){return om?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function gw(e){return Me(e,Pe([0],0))}function fw(e){return Me(e,Pe([1],22))}function hw(e){return Me(e,Pe([2],22))}function bw(e){return Me(e,Pe([3],23))}function yw(e){return Me(e,Pe([4],24))}function xw(e){return Me(e,Pe([7],27))}function vw(e){return Me(e,Pe([8],28))}function Sw(e){return Me(e,Pe([9],29))}function Tw(e){return Me(e,Pe([30],39))}function Cw(e){return Me(e,Pe([31],39))}function ww(e){return Me(e,Pe([32],39))}function Ew(e){return Me(e,Pe([33],39))}function Aw(e){return Me(e,Pe([34],39))}function kw(e){return Me(e,Pe([35],39))}function Dw(e){return Me(e,Pe([36],39))}function Lw(e){return Me(e,Pe([37],39))}function Pw(e){return J4(e)}function J4(e){return Me(e,Pe([90],39))}function Mw(e){return Me(e,Pe([91],39))}function Rw(e){return Me(e,Pe([92],39))}function Iw(e){return Me(e,Pe([93],39))}function Fw(e){return Me(e,Pe([94],39))}function Bw(e){return Me(e,Pe([95],39))}function _w(e){return Me(e,Pe([96],39))}function Ow(e){return Me(e,Pe([97],39))}function Nw(e){return Me(e,Pe([40],49))}function jw(e){return Me(e,Pe([41],49))}function Uw(e){return Me(e,Pe([42],49))}function Hw(e){return Me(e,Pe([43],49))}function qw(e){return Me(e,Pe([44],49))}function zw(e){return Me(e,Pe([45],49))}function Ww(e){return Me(e,Pe([46],49))}function Gw(e){return Me(e,Pe([47],49))}function Vw(e){return Me(e,Pe([100],49))}function Kw(e){return Me(e,Pe([101],49))}function Yw(e){return Me(e,Pe([102],49))}function Qw(e){return Me(e,Pe([103],49))}function Jw(e){return Me(e,Pe([104],49))}function Zw(e){return Me(e,Pe([105],49))}function Xw(e){return Me(e,Pe([106],49))}function $w(e){return Me(e,Pe([107],49))}function Pa(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function eE(e,t){return Me(e,Pe([38,5,Pa(t)],39))}function tE(e,t){return Me(e,Pe([48,5,Pa(t)],49))}function nE(e,t){return typeof t=="number"?Me(e,Pe([38,2,t>>16&255,t>>8&255,t&255],39)):Me(e,Pe([38,2,Pa(t.r),Pa(t.g),Pa(t.b)],39))}function rE(e,t){return typeof t=="number"?Me(e,Pe([48,2,t>>16&255,t>>8&255,t&255],49)):Me(e,Pe([48,2,Pa(t.r),Pa(t.g),Pa(t.b)],49))}var aE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function iE(e){return e.replace(aE,"")}var sm=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},oE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function um(e,t){let n={...oE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new sm(a,n.maxAttempts)}var la=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Ts(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=la[(t[r-2]&3)<<4|t[r-1]>>4],n+=la[(t[r-1]&15)<<2|t[r]>>6],n+=la[t[r]&63];return r===a+1&&(n+=la[t[r-2]>>2],n+=la[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=la[t[r-2]>>2],n+=la[(t[r-2]&3)<<4|t[r-1]>>4],n+=la[(t[r-1]&15)<<2],n+="="),n}var sE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,uE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,lE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,lm={Space_Separator:sE,ID_Start:uE,ID_Continue:lE},Bt={isSpaceSeparator(e){return typeof e=="string"&&lm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||lm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||lm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},dm,Pn,da,Sl,Ma,hr,en,gm,ws,cE=function(e,t){dm=String(e),Pn="start",da=[],Sl=0,Ma=1,hr=0,en=void 0,gm=void 0,ws=void 0;do en=dE(),gE[Pn]();while(en.type!=="eof");return typeof t=="function"?mm({"":ws},"",t):ws};function mm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ma();if(!Bt.isHexDigit(n))throw bt(U());e+=U()}return String.fromCodePoint(parseInt(e,16))}var gE={start(){if(en.type==="eof")throw yi();cm()},beforePropertyName(){switch(en.type){case"identifier":case"string":gm=en.value,Pn="afterPropertyName";return;case"punctuator":vl();return;case"eof":throw yi()}},afterPropertyName(){if(en.type==="eof")throw yi();Pn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw yi();cm()},beforeArrayValue(){if(en.type==="eof")throw yi();if(en.type==="punctuator"&&en.value==="]"){vl();return}cm()},afterPropertyValue(){if(en.type==="eof")throw yi();switch(en.value){case",":Pn="beforePropertyName";return;case"}":vl()}},afterArrayValue(){if(en.type==="eof")throw yi();switch(en.value){case",":Pn="beforeArrayValue";return;case"]":vl()}},end(){}};function cm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(ws===void 0)ws=e;else{let t=da[da.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,gm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")da.push(e),Array.isArray(e)?Pn="beforeArrayValue":Pn="beforePropertyName";else{let t=da[da.length-1];t==null?Pn="end":Array.isArray(t)?Pn="afterArrayValue":Pn="afterPropertyValue"}}function vl(){da.pop();let e=da[da.length-1];e==null?Pn="end":Array.isArray(e)?Pn="afterArrayValue":Pn="afterPropertyValue"}function bt(e){return fm(e===void 0?`JSON5: invalid end of input at ${Ma}:${hr}`:`JSON5: invalid character '${fE(e)}' at ${Ma}:${hr}`)}function yi(){return fm(`JSON5: invalid end of input at ${Ma}:${hr}`)}function Z4(){return hr-=5,fm(`JSON5: invalid identifier character at ${Ma}:${hr}`)}function fE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function fm(e){let t=new SyntaxError(e);return t.lineNumber=Ma,t.columnNumber=hr,t}var hE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vh[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let v of b){let S=l(v,g);if(S!==void 0){let w=m(v)+":";s!==""&&(w+=" "),w+=S,f.push(w)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let S=`, +`,tm="immersive-translate-toastify-shadow-root",nm=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(tm)){let t=document.getElementById(tm);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=tm,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=cw,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function gl(e){e=e||{},new nm({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var le=ke();function te(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):le.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function oa(){return le.PROD==="1"}function rm(){return le.PROD_API==="1"}function W4(){return le.HAS_CSP_ERROR=="1"}function it(){if(le.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function fl(){return typeof Deno<"u"}var WN=ke().PROD==="1",Xi=ke().PROD!=="1";function hl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function bl(){return le.IMMERSIVE_TRANSLATE_JSSDK==="1"}function $i(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var am=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function yl(e,t){let n=$i(),r=setTimeout(()=>n.reject(new am),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function ot(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var G4=class{#e=0;#t=[];#n=[];#r=$i();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tOw,bgBlue:()=>Hw,bgBrightBlack:()=>Gw,bgBrightBlue:()=>Qw,bgBrightCyan:()=>Zw,bgBrightGreen:()=>Kw,bgBrightMagenta:()=>Jw,bgBrightRed:()=>Vw,bgBrightWhite:()=>Xw,bgBrightYellow:()=>Yw,bgCyan:()=>zw,bgGreen:()=>jw,bgMagenta:()=>qw,bgRed:()=>Nw,bgRgb24:()=>nE,bgRgb8:()=>eE,bgWhite:()=>Ww,bgYellow:()=>Uw,black:()=>Sw,blue:()=>Ew,bold:()=>gw,brightBlack:()=>Y4,brightBlue:()=>Iw,brightCyan:()=>Bw,brightGreen:()=>Mw,brightMagenta:()=>Fw,brightRed:()=>Pw,brightWhite:()=>_w,brightYellow:()=>Rw,cyan:()=>kw,dim:()=>fw,getColorEnabled:()=>mw,gray:()=>Lw,green:()=>Cw,hidden:()=>xw,inverse:()=>yw,italic:()=>hw,magenta:()=>Aw,red:()=>Tw,reset:()=>pw,rgb24:()=>tE,rgb8:()=>$w,setColorEnabled:()=>dw,strikethrough:()=>vw,stripColor:()=>aE,underline:()=>bw,white:()=>Dw,yellow:()=>ww});var{Deno:V4}=globalThis,K4=typeof V4?.noColor=="boolean"?V4.noColor:!0,im=!K4;function dw(e){K4||(im=e)}function mw(){return im}function Pe(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Me(e,t){return im?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function pw(e){return Me(e,Pe([0],0))}function gw(e){return Me(e,Pe([1],22))}function fw(e){return Me(e,Pe([2],22))}function hw(e){return Me(e,Pe([3],23))}function bw(e){return Me(e,Pe([4],24))}function yw(e){return Me(e,Pe([7],27))}function xw(e){return Me(e,Pe([8],28))}function vw(e){return Me(e,Pe([9],29))}function Sw(e){return Me(e,Pe([30],39))}function Tw(e){return Me(e,Pe([31],39))}function Cw(e){return Me(e,Pe([32],39))}function ww(e){return Me(e,Pe([33],39))}function Ew(e){return Me(e,Pe([34],39))}function Aw(e){return Me(e,Pe([35],39))}function kw(e){return Me(e,Pe([36],39))}function Dw(e){return Me(e,Pe([37],39))}function Lw(e){return Y4(e)}function Y4(e){return Me(e,Pe([90],39))}function Pw(e){return Me(e,Pe([91],39))}function Mw(e){return Me(e,Pe([92],39))}function Rw(e){return Me(e,Pe([93],39))}function Iw(e){return Me(e,Pe([94],39))}function Fw(e){return Me(e,Pe([95],39))}function Bw(e){return Me(e,Pe([96],39))}function _w(e){return Me(e,Pe([97],39))}function Ow(e){return Me(e,Pe([40],49))}function Nw(e){return Me(e,Pe([41],49))}function jw(e){return Me(e,Pe([42],49))}function Uw(e){return Me(e,Pe([43],49))}function Hw(e){return Me(e,Pe([44],49))}function qw(e){return Me(e,Pe([45],49))}function zw(e){return Me(e,Pe([46],49))}function Ww(e){return Me(e,Pe([47],49))}function Gw(e){return Me(e,Pe([100],49))}function Vw(e){return Me(e,Pe([101],49))}function Kw(e){return Me(e,Pe([102],49))}function Yw(e){return Me(e,Pe([103],49))}function Qw(e){return Me(e,Pe([104],49))}function Jw(e){return Me(e,Pe([105],49))}function Zw(e){return Me(e,Pe([106],49))}function Xw(e){return Me(e,Pe([107],49))}function La(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function $w(e,t){return Me(e,Pe([38,5,La(t)],39))}function eE(e,t){return Me(e,Pe([48,5,La(t)],49))}function tE(e,t){return typeof t=="number"?Me(e,Pe([38,2,t>>16&255,t>>8&255,t&255],39)):Me(e,Pe([38,2,La(t.r),La(t.g),La(t.b)],39))}function nE(e,t){return typeof t=="number"?Me(e,Pe([48,2,t>>16&255,t>>8&255,t&255],49)):Me(e,Pe([48,2,La(t.r),La(t.g),La(t.b)],49))}var rE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function aE(e){return e.replace(rE,"")}var om=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},iE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function sm(e,t){let n={...iE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new om(a,n.maxAttempts)}var sa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Ts(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=sa[(t[r-2]&3)<<4|t[r-1]>>4],n+=sa[(t[r-1]&15)<<2|t[r]>>6],n+=sa[t[r]&63];return r===a+1&&(n+=sa[t[r-2]>>2],n+=sa[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=sa[t[r-2]>>2],n+=sa[(t[r-2]&3)<<4|t[r-1]>>4],n+=sa[(t[r-1]&15)<<2],n+="="),n}var oE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,sE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,uE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,um={Space_Separator:oE,ID_Start:sE,ID_Continue:uE},Bt={isSpaceSeparator(e){return typeof e=="string"&&um.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||um.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||um.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},cm,Ln,la,vl,Pa,hr,en,pm,ws,lE=function(e,t){cm=String(e),Ln="start",la=[],vl=0,Pa=1,hr=0,en=void 0,pm=void 0,ws=void 0;do en=cE(),pE[Ln]();while(en.type!=="eof");return typeof t=="function"?dm({"":ws},"",t):ws};function dm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ca();if(!Bt.isHexDigit(n))throw bt(U());e+=U()}return String.fromCodePoint(parseInt(e,16))}var pE={start(){if(en.type==="eof")throw bi();lm()},beforePropertyName(){switch(en.type){case"identifier":case"string":pm=en.value,Ln="afterPropertyName";return;case"punctuator":xl();return;case"eof":throw bi()}},afterPropertyName(){if(en.type==="eof")throw bi();Ln="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw bi();lm()},beforeArrayValue(){if(en.type==="eof")throw bi();if(en.type==="punctuator"&&en.value==="]"){xl();return}lm()},afterPropertyValue(){if(en.type==="eof")throw bi();switch(en.value){case",":Ln="beforePropertyName";return;case"}":xl()}},afterArrayValue(){if(en.type==="eof")throw bi();switch(en.value){case",":Ln="beforeArrayValue";return;case"]":xl()}},end(){}};function lm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(ws===void 0)ws=e;else{let t=la[la.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,pm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")la.push(e),Array.isArray(e)?Ln="beforeArrayValue":Ln="beforePropertyName";else{let t=la[la.length-1];t==null?Ln="end":Array.isArray(t)?Ln="afterArrayValue":Ln="afterPropertyValue"}}function xl(){la.pop();let e=la[la.length-1];e==null?Ln="end":Array.isArray(e)?Ln="afterArrayValue":Ln="afterPropertyValue"}function bt(e){return gm(e===void 0?`JSON5: invalid end of input at ${Pa}:${hr}`:`JSON5: invalid character '${gE(e)}' at ${Pa}:${hr}`)}function bi(){return gm(`JSON5: invalid end of input at ${Pa}:${hr}`)}function Q4(){return hr-=5,gm(`JSON5: invalid identifier character at ${Pa}:${hr}`)}function gE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function gm(e){let t=new SyntaxError(e);return t.lineNumber=Pa,t.columnNumber=hr,t}var fE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let b;typeof g=="string"?b=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(b=String(g)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,b){let h=b[g];switch(h!=null&&(typeof h.toJSON5=="function"?h=h.toJSON5(g):typeof h.toJSON=="function"&&(h=h.toJSON(g))),o&&(h=o.call(b,g,h)),h instanceof Number?h=Number(h):h instanceof String?h=String(h):h instanceof Boolean&&(h=h.valueOf()),h){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof h=="string")return c(h,!1);if(typeof h=="number")return String(h);if(typeof h=="object")return Array.isArray(h)?p(h):d(h)}function c(g){let b={"'":.1,'"':.2},h={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vb[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let b=a;a=a+s;let h=i||Object.keys(g),f=[];for(let v of h){let S=l(v,g);if(S!==void 0){let w=m(v)+":";s!==""&&(w+=" "),w+=S,f.push(w)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let S=`, `+a;v=f.join(S),y=`{ `+a+v+`, -`+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!Bt.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let b=a;a=a+s;let h=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),kE=(e,t)=>{for(var n in t)bm(e,n,{get:t[n],enumerable:!0})},hm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of CE(t))!EE.call(e,a)&&a!==n&&bm(e,a,{get:()=>t[a],enumerable:!(r=TE(t,a))||r.enumerable});return e},DE=(e,t,n)=>(hm(e,t,"default"),n&&hm(n,t,"default")),t3=(e,t,n)=>(n=e!=null?SE(wE(e)):{},hm(t||!e||!e.__esModule?bm(n,"default",{value:e,enumerable:!0}):n,e)),n3=AE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Cl=="object"&&Cl&&Cl.Object===Object&&Cl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(A,D,I){var F,R,B,L,_,O,z=0,V=!1,ie=!1,je=!0;if(typeof A!="function")throw new TypeError(n);D=T(D)||0,S(I)&&(V=!!I.leading,ie="maxWait"in I,B=ie?h(T(I.maxWait)||0,D):B,je="trailing"in I?!!I.trailing:je);function Le(me){var fe=F,ve=R;return F=R=void 0,z=me,L=A.apply(ve,fe),L}function N(me){return z=me,_=setTimeout(we,D),V?Le(me):L}function q(me){var fe=me-O,ve=me-z,Ue=D-fe;return ie?b(Ue,B-ve):Ue}function Z(me){var fe=me-O,ve=me-z;return O===void 0||fe>=D||fe<0||ie&&ve>=B}function we(){var me=f();if(Z(me))return pe(me);_=setTimeout(we,q(me))}function pe(me){return _=void 0,je&&F?Le(me):(F=R=void 0,L)}function Ge(){_!==void 0&&clearTimeout(_),z=0,F=O=R=_=void 0}function de(){return _===void 0?L:pe(f())}function ge(){var me=f(),fe=Z(me);if(F=arguments,R=this,O=me,fe){if(_===void 0)return N(O);if(ie)return _=setTimeout(we,D),Le(O)}return _===void 0&&(_=setTimeout(we,D)),L}return ge.cancel=Ge,ge.flush=de,ge}function v(A,D,I){var F=!0,R=!0;if(typeof A!="function")throw new TypeError(n);return S(I)&&(F="leading"in I?!!I.leading:F,R="trailing"in I?!!I.trailing:R),y(A,D,{leading:F,maxWait:D,trailing:R})}function S(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function w(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||w(A)&&g.call(A)==a}function T(A){if(typeof A=="number")return A;if(C(A))return r;if(S(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=S(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var I=s.test(A);return I||u.test(A)?l(A.slice(2),I?2:8):o.test(A)?r:+A}t.exports=v}),r3={};kE(r3,{default:()=>Yn});var LE=t3(n3());DE(r3,t3(n3()));var{default:e3,...PE}=LE,Yn=e3!==void 0?e3:PE;var wl=globalThis||(typeof window<"u"?window:self),ME=Object.create,xm=Object.defineProperty,RE=Object.getOwnPropertyDescriptor,IE=Object.getOwnPropertyNames,FE=Object.getPrototypeOf,BE=Object.prototype.hasOwnProperty,_E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),OE=(e,t)=>{for(var n in t)xm(e,n,{get:t[n],enumerable:!0})},ym=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of IE(t))!BE.call(e,a)&&a!==n&&xm(e,a,{get:()=>t[a],enumerable:!(r=RE(t,a))||r.enumerable});return e},NE=(e,t,n)=>(ym(e,t,"default"),n&&ym(n,t,"default")),i3=(e,t,n)=>(n=e!=null?ME(FE(e)):{},ym(t||!e||!e.__esModule?xm(n,"default",{value:e,enumerable:!0}):n,e)),o3=_E((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof wl=="object"&&wl&&wl.Object===Object&&wl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(T,A,D){var I,F,R,B,L,_,O=0,z=!1,V=!1,ie=!0;if(typeof T!="function")throw new TypeError(n);A=C(A)||0,v(D)&&(z=!!D.leading,V="maxWait"in D,R=V?h(C(D.maxWait)||0,A):R,ie="trailing"in D?!!D.trailing:ie);function je(ge){var me=I,fe=F;return I=F=void 0,O=ge,B=T.apply(fe,me),B}function Le(ge){return O=ge,L=setTimeout(Z,A),z?je(ge):B}function N(ge){var me=ge-_,fe=ge-O,ve=A-me;return V?b(ve,R-fe):ve}function q(ge){var me=ge-_,fe=ge-O;return _===void 0||me>=A||me<0||V&&fe>=R}function Z(){var ge=f();if(q(ge))return we(ge);L=setTimeout(Z,N(ge))}function we(ge){return L=void 0,ie&&I?je(ge):(I=F=void 0,B)}function pe(){L!==void 0&&clearTimeout(L),O=0,I=_=F=L=void 0}function Ge(){return L===void 0?B:we(f())}function de(){var ge=f(),me=q(ge);if(I=arguments,F=this,_=ge,me){if(L===void 0)return Le(_);if(V)return L=setTimeout(Z,A),je(_)}return L===void 0&&(L=setTimeout(Z,A)),B}return de.cancel=pe,de.flush=Ge,de}function v(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function S(T){return!!T&&typeof T=="object"}function w(T){return typeof T=="symbol"||S(T)&&g.call(T)==a}function C(T){if(typeof T=="number")return T;if(w(T))return r;if(v(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=v(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(i,"");var D=s.test(T);return D||u.test(T)?l(T.slice(2),D?2:8):o.test(T)?r:+T}t.exports=y}),s3={};OE(s3,{default:()=>Mn});var jE=i3(o3());NE(s3,i3(o3()));var{default:a3,...UE}=jE,Mn=a3!==void 0?a3:UE;var HE=Object.create,Sm=Object.defineProperty,qE=Object.getOwnPropertyDescriptor,zE=Object.getOwnPropertyNames,WE=Object.getPrototypeOf,GE=Object.prototype.hasOwnProperty,VE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KE=(e,t)=>{for(var n in t)Sm(e,n,{get:t[n],enumerable:!0})},vm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zE(t))!GE.call(e,a)&&a!==n&&Sm(e,a,{get:()=>t[a],enumerable:!(r=qE(t,a))||r.enumerable});return e},YE=(e,t,n)=>(vm(e,t,"default"),n&&vm(n,t,"default")),l3=(e,t,n)=>(n=e!=null?HE(WE(e)):{},vm(t||!e||!e.__esModule?Sm(n,"default",{value:e,enumerable:!0}):n,e)),c3=VE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,q){var Z={};for(var we in N)q.indexOf(we)>=0||Object.prototype.hasOwnProperty.call(N,we)&&(Z[we]=N[we]);return Z}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},h=Object.assign||function(N){for(var q=1;q'+we+"
",ve.onclick=function(){return R(Ue,fe)},ve.listener=function(G){(D(G)||I(G))&&_()},F(ve,fe),Ge&&Ge<1&&(Ge=1),!ge&&Ge&&S(Ge).then(function(){return R(Ue,fe)})},z=d.force=function(N,q){var Z=N.type,we=Z===void 0?5:Z,pe=N.text,Ge=N.buttonText,de=Ge===void 0?"OK":Ge,ge=N.callback,me=N.position,fe=me===void 0?f.positions.force||fe.top:me;w(),_();var ve=document.createElement("div"),Ue=C();ve.id=Ue;var G=document.createElement("div");G.classList.add(f.classes.textbox),G.classList.add(f.classes.backgroundInfo),G.innerHTML='
'+pe+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(T[we]),be.innerHTML=de,be.onclick=function(){R(Ue,fe),L(),ge?ge():q&&q()},ve.appendChild(G),ve.appendChild(be),ve.listener=function(at){D(at)&&be.click()},F(ve,fe),B()},V=d.confirm=function(N,q,Z){var we=N.text,pe=N.submitText,Ge=pe===void 0?"Yes":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,ve=N.position,Ue=ve===void 0?f.positions.confirm||Ue.top:ve;w(),_();var G=document.createElement("div"),be=C();G.id=be;var at=document.createElement("div");at.classList.add(f.classes.textbox),at.classList.add(f.classes.backgroundInfo),at.innerHTML='
'+we+"
";var Je=document.createElement("div");Je.classList.add(f.classes.button),Je.classList.add(f.classes.elementHalf),Je.classList.add(f.classes.backgroundSuccess),Je.innerHTML=Ge,Je.onclick=function(){R(be,Ue),L(),me?me():q&&q()};var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(f.classes.elementHalf),xe.classList.add(f.classes.backgroundError),xe.innerHTML=ge,xe.onclick=function(){R(be,Ue),L(),fe?fe():Z&&Z()},G.appendChild(at),G.appendChild(Je),G.appendChild(xe),G.listener=function(vt){D(vt)?Je.click():I(vt)&&xe.click()},F(G,Ue),B(G,Ue)},ie=function(N,q,Z){var we=N.text,pe=N.submitText,Ge=pe===void 0?"Submit":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,ve=N.position,Ue=ve===void 0?f.positions.input||Ue.top:ve,G=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var be=document.createElement("div"),at=C();be.id=at;var Je=document.createElement("div");Je.classList.add(f.classes.textbox),Je.classList.add(f.classes.backgroundInfo),Je.innerHTML='
'+we+"
";var xe=document.createElement("input");xe.classList.add(f.classes.inputField),xe.setAttribute("autocapitalize",G.autocapitalize||"none"),xe.setAttribute("autocomplete",G.autocomplete||"off"),xe.setAttribute("autocorrect",G.autocorrect||"off"),xe.setAttribute("autofocus",G.autofocus||"true"),xe.setAttribute("inputmode",G.inputmode||"verbatim"),xe.setAttribute("max",G.max||""),xe.setAttribute("maxlength",G.maxlength||""),xe.setAttribute("min",G.min||""),xe.setAttribute("minlength",G.minlength||""),xe.setAttribute("placeholder",G.placeholder||""),xe.setAttribute("spellcheck",G.spellcheck||"default"),xe.setAttribute("step",G.step||"any"),xe.setAttribute("type",G.type||"text"),xe.value=G.value||"",G.allowed&&(xe.oninput=function(){var Dt=void 0;if(Array.isArray(G.allowed)){for(var Ft="",kn=G.allowed,sr=0;sr'+Z+"",fe.appendChild(Ue),de.forEach(function(be,at){var Je=be.type,xe=Je===void 0?1:Je,vt=be.text,Vt=be.handler,Dt=document.createElement("div");Dt.classList.add(T[xe]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Ft=de[at+1];Ft&&!Ft.type&&(Ft.type=1),Ft&&Ft.type===xe&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){R(ve,me),L(),Vt()},fe.appendChild(Dt)});var G=document.createElement("div");G.classList.add(f.classes.backgroundNeutral),G.classList.add(f.classes.button),G.innerHTML=pe,G.onclick=function(){R(ve,me),L(),Ge?Ge():q&&q()},fe.appendChild(G),fe.listener=function(be){I(be)&&G.click()},F(fe,me),B(fe,me)},Le=d.date=function(N,q,Z){var we=N.value,pe=we===void 0?new Date:we,Ge=N.submitText,de=Ge===void 0?"OK":Ge,ge=N.cancelText,me=ge===void 0?"Cancel":ge,fe=N.submitCallback,ve=N.cancelCallback,Ue=N.position,G=Ue===void 0?f.positions.date||G.top:Ue;w(),_();var be="▾",at=document.createElement("div"),Je=document.createElement("div"),xe=document.createElement("div"),vt=function(St){at.innerHTML=f.dateMonths[St.getMonth()],Je.innerHTML=St.getDate(),xe.innerHTML=St.getFullYear()},Vt=function(St){var nt=new Date(pe.getFullYear(),pe.getMonth()+1,0).getDate(),Kn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>nt&&(Kn=nt.toString()),St.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),pe.setDate(Number(Kn))},Dt=function(St){var nt=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=nt,pe.setFullYear(Number(nt))},Ft=function(St){vt(pe)},kn=function(St){var nt=new Date(pe.getFullYear(),pe.getMonth()+St+1,0).getDate();pe.getDate()>nt&&pe.setDate(nt),pe.setMonth(pe.getMonth()+St),vt(pe)},sr=function(St){pe.setDate(pe.getDate()+St),vt(pe)},Ss=function(St){var nt=pe.getFullYear()+St;nt<0?pe.setFullYear(0):pe.setFullYear(pe.getFullYear()+St),vt(pe)},Ur=document.createElement("div"),fi=C();Ur.id=fi;var Qi=document.createElement("div");Qi.classList.add(f.classes.backgroundInfo);var pn=document.createElement("div");pn.classList.add(f.classes.dateSelectorInner);var fr=document.createElement("div");fr.classList.add(f.classes.button),fr.classList.add(f.classes.elementThird),fr.classList.add(f.classes.dateSelectorUp),fr.innerHTML=be;var gn=document.createElement("div");gn.classList.add(f.classes.button),gn.classList.add(f.classes.elementThird),gn.classList.add(f.classes.dateSelectorUp),gn.innerHTML=be;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=be,at.classList.add(f.classes.element),at.classList.add(f.classes.elementThird),at.innerHTML=f.dateMonths[pe.getMonth()],Je.classList.add(f.classes.element),Je.classList.add(f.classes.elementThird),Je.setAttribute("contentEditable",!0),Je.addEventListener("input",Vt),Je.addEventListener("blur",Ft),Je.innerHTML=pe.getDate(),xe.classList.add(f.classes.element),xe.classList.add(f.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Dt),xe.addEventListener("blur",Ft),xe.innerHTML=pe.getFullYear();var aa=document.createElement("div");aa.classList.add(f.classes.button),aa.classList.add(f.classes.elementThird),aa.innerHTML=be;var ia=document.createElement("div");ia.classList.add(f.classes.button),ia.classList.add(f.classes.elementThird),ia.innerHTML=be;var hi=document.createElement("div");hi.classList.add(f.classes.button),hi.classList.add(f.classes.elementThird),hi.innerHTML=be,fr.onclick=function(){return kn(1)},gn.onclick=function(){return sr(1)},Vn.onclick=function(){return Ss(1)},aa.onclick=function(){return kn(-1)},ia.onclick=function(){return sr(-1)},hi.onclick=function(){return Ss(-1)};var Dn=document.createElement("div");Dn.classList.add(f.classes.button),Dn.classList.add(f.classes.elementHalf),Dn.classList.add(f.classes.backgroundSuccess),Dn.innerHTML=de,Dn.onclick=function(){R(fi,G),L(),fe?fe(pe):q&&q(pe)};var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementHalf),oa.classList.add(f.classes.backgroundError),oa.innerHTML=me,oa.onclick=function(){R(fi,G),L(),ve?ve(pe):Z&&Z(pe)},pn.appendChild(fr),pn.appendChild(gn),pn.appendChild(Vn),pn.appendChild(at),pn.appendChild(Je),pn.appendChild(xe),pn.appendChild(aa),pn.appendChild(ia),pn.appendChild(hi),Qi.appendChild(pn),Ur.appendChild(Qi),Ur.appendChild(Dn),Ur.appendChild(oa),Ur.listener=function(St){D(St)?Dn.click():I(St)&&oa.click()},F(Ur,G),B(Ur,G)};d.default={alert:O,force:z,confirm:V,input:ie,select:je,date:Le,setOptions:y,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),d3={};KE(d3,{default:()=>El});var QE=l3(c3());YE(d3,l3(c3()));var{default:u3,...JE}=QE,El=u3!==void 0?u3:JE;var Al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Es(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Tm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function m3(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ieo[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),ZE=e=>Object.keys(eo).find(t=>eo[t]===e),XE=e=>Object.keys(yr).find(t=>yr[t]===e);function y3(e){h3=e||"all"}function As(){return h3||"all"}function $E(){return ut.slice(0)}function e8(){return ut.map(e=>ZE(e)||XE(e)||String.fromCharCode(e))}function t8(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>ks(o))})})}),e}function n8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function r8(e){return typeof e=="string"&&(e=ks(e)),ut.indexOf(e)!==-1}function a8(e,t){let n,r;e||(e=As());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&ut.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ut.splice(0,ut.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in yr)yr[r]===t&&(pa[r]=!1)}}function x3(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&wm(n)});else if(typeof e=="object")e.key&&wm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),wm({key:e,scope:n,method:r,splitKey:"+"})}}var wm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Cm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":ks(u);if(!Tt[l])return;t||(t=As());let c=s>1?Tm(yr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&m3(d.mods,c)))})};function g3(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ut),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function f3(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!pa.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ut.indexOf(r)===-1&&r!==229&&ut.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=kl[i];e[i]&&ut.indexOf(o)===-1?ut.push(o):!e[i]&&ut.indexOf(o)>-1?ut.splice(ut.indexOf(o),1):i==="metaKey"&&e[i]&&ut.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ut=ut.slice(ut.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in yr)yr[i]===r&&(pa[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[kl[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ut.indexOf(17)===-1&&ut.push(17),ut.indexOf(18)===-1&&ut.push(18),tn[17]=!0,tn[18]=!0);let a=As();if(n)for(let i=0;i-1}function pa(e,t,n){ut=[];let r=Cm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&x3(e,i);s1&&(a=Tm(yr,e)),e=e[e.length-1],e=e==="*"?"*":ks(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!o8(o)&&window&&(b3.push(o),Es(o,"keydown",p=>{f3(p,o)},d),p3||(p3=!0,Es(window,"focus",()=>{ut=[]},d),Es(window,"click",()=>{ut=[]},!1)),Es(o,"keyup",p=>{f3(p,o),i8(p)},d))}function s8(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Em={getPressedKeyString:e8,setScope:y3,getScope:As,deleteScope:a8,getPressedKeyCodes:$E,getAllKeyCodes:t8,isPressed:r8,filter:n8,trigger:s8,unbind:x3,keyMap:eo,modifier:yr,modifierMap:kl};for(let e in Em)Object.prototype.hasOwnProperty.call(Em,e)&&(pa[e]=Em[e]);if(typeof window<"u"){let e=window.hotkeys;pa.noConflict=t=>(t&&window.hotkeys===pa&&(window.hotkeys=e),pa),window.hotkeys=pa}var jn=pa;var u8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},S3={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},_t={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Rn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ra={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},H=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=H.getVersionPrecision(e),a=H.getVersionPrecision(t),i=Math.max(r,a),o=0,s=H.map([e,t],u=>{let l=i-H.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return H.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return u8[e]}static getBrowserTypeByAlias(e){return S3[e]||""}},lt=/version\/(\d+(\.?_?\d+)+)/i,l8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=H.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=H.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=H.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=H.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=H.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=H.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=H.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=H.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=H.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=H.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=H.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=H.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=H.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=H.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=H.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=H.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=H.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=H.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=H.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=H.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=H.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=H.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=H.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=H.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=H.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=H.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:H.getFirstMatch(r,e),version:H.getSecondMatch(r,e)}}}],c8=l8,d8=[{test:[/Roku\/DVP/],describe(e){let t=H.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Rn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=H.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Rn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=H.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=H.getWindowsVersionName(t);return{name:Rn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Rn.iOS},n=H.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=H.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=H.getMacOSVersionName(t),r={name:Rn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=H.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Rn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=H.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=H.getAndroidVersionName(t),r={name:Rn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=H.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Rn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=H.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||H.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||H.getFirstMatch(/\bbb(\d+)/i,e);return{name:Rn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=H.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Rn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=H.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Rn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Rn.Linux}}},{test:[/CrOS/],describe(){return{name:Rn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=H.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Rn.PlayStation4,version:t}}}],m8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=H.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:_t.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:_t.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:_t.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:_t.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:_t.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=H.getFirstMatch(/(ipod|iphone)/i,e);return{type:_t.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:_t.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:_t.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:_t.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:_t.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:_t.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:_t.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:_t.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:_t.tv}}}],p8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ra.Blink};let t=H.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ra.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ra.Trident},n=H.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ra.Presto},n=H.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ra.Gecko},n=H.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ra.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ra.WebKit},n=H.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],g8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=H.find(c8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=H.find(d8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=H.find(m8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=H.find(p8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return H.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=H.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=H.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=H.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=H.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(H.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},v3=g8,f8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new v3(e,t)}static parse(e){return new v3(e).getResult()}static get BROWSER_MAP(){return S3}static get ENGINE_MAP(){return Ra}static get OS_MAP(){return Rn}static get PLATFORMS_MAP(){return _t}},to=f8;var{entries:L3,setPrototypeOf:T3,isFrozen:h8,getPrototypeOf:b8,getOwnPropertyDescriptor:y8}=Object,{freeze:In,seal:vr,create:x8}=Object,{apply:Mm,construct:Rm}=typeof Reflect<"u"&&Reflect;Mm||(Mm=function(e,t,n){return e.apply(t,n)});In||(In=function(e){return e});vr||(vr=function(e){return e});Rm||(Rm=function(e,t){return new e(...t)});var v8=lr(Array.prototype.forEach),C3=lr(Array.prototype.pop),Ds=lr(Array.prototype.push),Pl=lr(String.prototype.toLowerCase),Am=lr(String.prototype.toString),S8=lr(String.prototype.match),xr=lr(String.prototype.replace),T8=lr(String.prototype.indexOf),C8=lr(String.prototype.trim),Qn=lr(RegExp.prototype.test),Ls=w8(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),L8=vr(/\${[\w\W]*}/gm),P8=vr(/^data-[\-\w.\u00B7-\uFFFF]/),M8=vr(/^aria-[\-\w]+$/),P3=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),R8=vr(/^(?:\w+script|data):/i),I8=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),M3=vr(/^html$/i),D3=Object.freeze({__proto__:null,MUSTACHE_EXPR:k8,ERB_EXPR:D8,TMPLIT_EXPR:L8,DATA_ATTR:P8,ARIA_ATTR:M8,IS_ALLOWED_URI:P3,IS_SCRIPT_OR_DATA:R8,ATTR_WHITESPACE:I8,DOCTYPE_NAME:M3}),F8=()=>typeof window>"u"?null:window,B8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function R3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F8(),t=M=>R3(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Dl(g,"cloneNode"),b=Dl(g,"nextSibling"),f=Dl(g,"childNodes"),y=Dl(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,S="",{implementation:w,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:A}=a,{importNode:D}=n,I={};t.isSupported=typeof L3=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:z}=D3,{IS_ALLOWED_URI:V}=D3,ie=null,je=Ne({},[...w3,...km,...Dm,...Lm,...E3]),Le=null,N=Ne({},[...A3,...Pm,...k3,...Ll]),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,we=null,pe=!0,Ge=!0,de=!1,ge=!0,me=!1,fe=!1,ve=!1,Ue=!1,G=!1,be=!1,at=!1,Je=!0,xe=!1,vt="user-content-",Vt=!0,Dt=!1,Ft={},kn=null,sr=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ss=null,Ur=Ne({},["audio","video","img","source","image","track"]),fi=null,Qi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pn="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",gn="http://www.w3.org/1999/xhtml",Vn=gn,aa=!1,ia=null,hi=Ne({},[pn,fr,gn],Am),Dn,oa=["application/xhtml+xml","text/html"],St="text/html",nt,Kn=null,YC=a.createElement("form"),M4=function(M){return M instanceof RegExp||M instanceof Function},Zd=function(M){if(!(Kn&&Kn===M)){if((!M||typeof M!="object")&&(M={}),M=no(M),Dn=oa.indexOf(M.PARSER_MEDIA_TYPE)===-1?Dn=St:Dn=M.PARSER_MEDIA_TYPE,nt=Dn==="application/xhtml+xml"?Am:Pl,ie="ALLOWED_TAGS"in M?Ne({},M.ALLOWED_TAGS,nt):je,Le="ALLOWED_ATTR"in M?Ne({},M.ALLOWED_ATTR,nt):N,ia="ALLOWED_NAMESPACES"in M?Ne({},M.ALLOWED_NAMESPACES,Am):hi,fi="ADD_URI_SAFE_ATTR"in M?Ne(no(Qi),M.ADD_URI_SAFE_ATTR,nt):Qi,Ss="ADD_DATA_URI_TAGS"in M?Ne(no(Ur),M.ADD_DATA_URI_TAGS,nt):Ur,kn="FORBID_CONTENTS"in M?Ne({},M.FORBID_CONTENTS,nt):sr,Z="FORBID_TAGS"in M?Ne({},M.FORBID_TAGS,nt):{},we="FORBID_ATTR"in M?Ne({},M.FORBID_ATTR,nt):{},Ft="USE_PROFILES"in M?M.USE_PROFILES:!1,pe=M.ALLOW_ARIA_ATTR!==!1,Ge=M.ALLOW_DATA_ATTR!==!1,de=M.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=M.SAFE_FOR_TEMPLATES||!1,fe=M.WHOLE_DOCUMENT||!1,G=M.RETURN_DOM||!1,be=M.RETURN_DOM_FRAGMENT||!1,at=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Je=M.SANITIZE_DOM!==!1,xe=M.SANITIZE_NAMED_PROPS||!1,Vt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,V=M.ALLOWED_URI_REGEXP||P3,Vn=M.NAMESPACE||gn,q=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&M4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&M4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Ge=!1),be&&(G=!0),Ft&&(ie=Ne({},[...E3]),Le=[],Ft.html===!0&&(Ne(ie,w3),Ne(Le,A3)),Ft.svg===!0&&(Ne(ie,km),Ne(Le,Pm),Ne(Le,Ll)),Ft.svgFilters===!0&&(Ne(ie,Dm),Ne(Le,Pm),Ne(Le,Ll)),Ft.mathMl===!0&&(Ne(ie,Lm),Ne(Le,k3),Ne(Le,Ll))),M.ADD_TAGS&&(ie===je&&(ie=no(ie)),Ne(ie,M.ADD_TAGS,nt)),M.ADD_ATTR&&(Le===N&&(Le=no(Le)),Ne(Le,M.ADD_ATTR,nt)),M.ADD_URI_SAFE_ATTR&&Ne(fi,M.ADD_URI_SAFE_ATTR,nt),M.FORBID_CONTENTS&&(kn===sr&&(kn=no(kn)),Ne(kn,M.FORBID_CONTENTS,nt)),Vt&&(ie["#text"]=!0),fe&&Ne(ie,["html","head","body"]),ie.table&&(Ne(ie,["tbody"]),delete Z.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=B8(p,r)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));In&&In(M),Kn=M}},R4=Ne({},["mi","mo","mn","ms","mtext"]),I4=Ne({},["foreignobject","desc","title","annotation-xml"]),QC=Ne({},["title","style","font","a","script"]),ml=Ne({},km);Ne(ml,Dm),Ne(ml,E8);let Xd=Ne({},Lm);Ne(Xd,A8);let JC=function(M){let se=y(M);(!se||!se.tagName)&&(se={namespaceURI:Vn,tagName:"template"});let Q=Pl(M.tagName),$e=Pl(se.tagName);return ia[M.namespaceURI]?M.namespaceURI===fr?se.namespaceURI===gn?Q==="svg":se.namespaceURI===pn?Q==="svg"&&($e==="annotation-xml"||R4[$e]):!!ml[Q]:M.namespaceURI===pn?se.namespaceURI===gn?Q==="math":se.namespaceURI===fr?Q==="math"&&I4[$e]:!!Xd[Q]:M.namespaceURI===gn?se.namespaceURI===fr&&!I4[$e]||se.namespaceURI===pn&&!R4[$e]?!1:!Xd[Q]&&(QC[Q]||!ml[Q]):!!(Dn==="application/xhtml+xml"&&ia[M.namespaceURI]):!1},Ji=function(M){Ds(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},$d=function(M,se){try{Ds(t.removed,{attribute:se.getAttributeNode(M),from:se})}catch{Ds(t.removed,{attribute:null,from:se})}if(se.removeAttribute(M),M==="is"&&!Le[M])if(G||be)try{Ji(se)}catch{}else try{se.setAttribute(M,"")}catch{}},F4=function(M){let se,Q;if(Ue)M=""+M;else{let Ln=S8(M,/^[\r\n\t ]+/);Q=Ln&&Ln[0]}Dn==="application/xhtml+xml"&&Vn===gn&&(M=''+M+"");let $e=v?v.createHTML(M):M;if(Vn===gn)try{se=new m().parseFromString($e,Dn)}catch{}if(!se||!se.documentElement){se=w.createDocument(Vn,"template",null);try{se.documentElement.innerHTML=aa?S:$e}catch{}}let Kt=se.body||se.documentElement;return M&&Q&&Kt.insertBefore(a.createTextNode(Q),Kt.childNodes[0]||null),Vn===gn?A.call(se,fe?"html":"body")[0]:fe?se.documentElement:Kt},B4=function(M){return C.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},ZC=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},pl=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},sa=function(M,se,Q){I[M]&&v8(I[M],$e=>{$e.call(t,se,Q,Kn)})},_4=function(M){let se;if(sa("beforeSanitizeElements",M,null),ZC(M))return Ji(M),!0;let Q=nt(M.nodeName);if(sa("uponSanitizeElement",M,{tagName:Q,allowedTags:ie}),M.hasChildNodes()&&!pl(M.firstElementChild)&&(!pl(M.content)||!pl(M.content.firstElementChild))&&Qn(/<[/\w]/g,M.innerHTML)&&Qn(/<[/\w]/g,M.textContent))return Ji(M),!0;if(!ie[Q]||Z[Q]){if(!Z[Q]&&N4(Q)&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q)))return!1;if(Vt&&!kn[Q]){let $e=y(M)||M.parentNode,Kt=f(M)||M.childNodes;if(Kt&&$e){let Ln=Kt.length;for(let Nn=Ln-1;Nn>=0;--Nn)$e.insertBefore(h(Kt[Nn],!0),b(M))}}return Ji(M),!0}return M instanceof u&&!JC(M)||(Q==="noscript"||Q==="noembed")&&Qn(/<\/no(script|embed)/i,M.innerHTML)?(Ji(M),!0):(me&&M.nodeType===3&&(se=M.textContent,se=xr(se,F," "),se=xr(se,R," "),se=xr(se,B," "),M.textContent!==se&&(Ds(t.removed,{element:M.cloneNode()}),M.textContent=se)),sa("afterSanitizeElements",M,null),!1)},O4=function(M,se,Q){if(Je&&(se==="id"||se==="name")&&(Q in a||Q in YC))return!1;if(!(Ge&&!we[se]&&Qn(L,se))&&!(pe&&Qn(_,se))){if(!Le[se]||we[se]){if(!(N4(M)&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,M)||q.tagNameCheck instanceof Function&&q.tagNameCheck(M))&&(q.attributeNameCheck instanceof RegExp&&Qn(q.attributeNameCheck,se)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(se))||se==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q))))return!1}else if(!fi[se]&&!Qn(V,xr(Q,z,""))&&!((se==="src"||se==="xlink:href"||se==="href")&&M!=="script"&&T8(Q,"data:")===0&&Ss[M])&&!(de&&!Qn(O,xr(Q,z,"")))&&Q)return!1}return!0},N4=function(M){return M.indexOf("-")>0},j4=function(M){let se,Q,$e,Kt;sa("beforeSanitizeAttributes",M,null);let{attributes:Ln}=M;if(!Ln)return;let Nn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le};for(Kt=Ln.length;Kt--;){se=Ln[Kt];let{name:$t,namespaceURI:Zi}=se;if(Q=$t==="value"?se.value:C8(se.value),$e=nt($t),Nn.attrName=$e,Nn.attrValue=Q,Nn.keepAttr=!0,Nn.forceKeepAttr=void 0,sa("uponSanitizeAttribute",M,Nn),Q=Nn.attrValue,Nn.forceKeepAttr||($d($t,M),!Nn.keepAttr))continue;if(!ge&&Qn(/\/>/i,Q)){$d($t,M);continue}me&&(Q=xr(Q,F," "),Q=xr(Q,R," "),Q=xr(Q,B," "));let U4=nt(M.nodeName);if(O4(U4,$e,Q)){if(xe&&($e==="id"||$e==="name")&&($d($t,M),Q=vt+Q),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zi)switch(p.getAttributeType(U4,$e)){case"TrustedHTML":{Q=v.createHTML(Q);break}case"TrustedScriptURL":{Q=v.createScriptURL(Q);break}}try{Zi?M.setAttributeNS(Zi,$t,Q):M.setAttribute($t,Q),C3(t.removed)}catch{}}}sa("afterSanitizeAttributes",M,null)},XC=function M(se){let Q,$e=B4(se);for(sa("beforeSanitizeShadowDOM",se,null);Q=$e.nextNode();)sa("uponSanitizeShadowNode",Q,null),!_4(Q)&&(Q.content instanceof i&&M(Q.content),j4(Q));sa("afterSanitizeShadowDOM",se,null)};return t.sanitize=function(M){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,$e,Kt,Ln;if(aa=!M,aa&&(M=""),typeof M!="string"&&!pl(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw Ls("dirty is not a string, aborting")}else throw Ls("toString is not a function");if(!t.isSupported)return M;if(ve||Zd(se),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let Zi=nt(M.nodeName);if(!ie[Zi]||Z[Zi])throw Ls("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)Q=F4(""),$e=Q.ownerDocument.importNode(M,!0),$e.nodeType===1&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?Q=$e:Q.appendChild($e);else{if(!G&&!me&&!fe&&M.indexOf("<")===-1)return v&&at?v.createHTML(M):M;if(Q=F4(M),!Q)return G?null:at?S:""}Q&&Ue&&Ji(Q.firstChild);let Nn=B4(Dt?M:Q);for(;Kt=Nn.nextNode();)_4(Kt)||(Kt.content instanceof i&&XC(Kt.content),j4(Kt));if(Dt)return M;if(G){if(be)for(Ln=T.call(Q.ownerDocument);Q.firstChild;)Ln.appendChild(Q.firstChild);else Ln=Q;return(Le.shadowroot||Le.shadowrootmod)&&(Ln=D.call(n,Ln,!0)),Ln}let $t=fe?Q.outerHTML:Q.innerHTML;return fe&&ie["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Qn(M3,Q.ownerDocument.doctype.name)&&($t=" -`+$t),me&&($t=xr($t,F," "),$t=xr($t,R," "),$t=xr($t,B," ")),v&&at?v.createHTML($t):$t},t.setConfig=function(M){Zd(M),ve=!0},t.clearConfig=function(){Kn=null,ve=!1},t.isValidAttribute=function(M,se,Q){Kn||Zd({});let $e=nt(M),Kt=nt(se);return O4($e,Kt,Q)},t.addHook=function(M,se){typeof se=="function"&&(I[M]=I[M]||[],Ds(I[M],se))},t.removeHook=function(M){if(I[M])return C3(I[M])},t.removeHooks=function(M){I[M]&&(I[M]=[])},t.removeAllHooks=function(){I={}},t}var Ze=R3();var _8=Object.create,Fm=Object.defineProperty,O8=Object.getOwnPropertyDescriptor,N8=Object.getOwnPropertyNames,j8=Object.getPrototypeOf,U8=Object.prototype.hasOwnProperty,Bm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),H8=(e,t)=>{for(var n in t)Fm(e,n,{get:t[n],enumerable:!0})},Im=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of N8(t))!U8.call(e,a)&&a!==n&&Fm(e,a,{get:()=>t[a],enumerable:!(r=O8(t,a))||r.enumerable});return e},q8=(e,t,n)=>(Im(e,t,"default"),n&&Im(n,t,"default")),F3=(e,t,n)=>(n=e!=null?_8(j8(e)):{},Im(t||!e||!e.__esModule?Fm(n,"default",{value:e,enumerable:!0}):n,e)),z8=Bm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(G){if(!(!G.parentNode||typeof G.parentNode.tagName>"u")){var be=this._getInnerText(G);if(!(be.length<25)){var at=this._getNodeAncestors(G,5);if(at.length!==0){var Je=0;Je+=1,Je+=be.split(",").length,Je+=Math.min(Math.floor(be.length/100),3),this._forEachNode(at,function(xe,vt){if(!(!xe.tagName||!xe.parentNode||typeof xe.parentNode.tagName>"u")){if(typeof xe.readability>"u"&&(this._initializeNode(xe),h.push(xe)),vt===0)var Vt=1;else vt===1?Vt=2:Vt=vt*3;xe.readability.contentScore+=Je/Vt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(w,0,v),b.length>this._nbTopCandidates&&b.pop();break}}}var T=b[0]||null,A=!1,D;if(T===null||T.tagName==="BODY"){for(T=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),T.appendChild(r.firstChild);r.appendChild(T),this._initializeNode(T)}else if(T){for(var I=[],F=1;F=.75&&I.push(this._getNodeAncestors(b[F]));var R=3;if(I.length>=R)for(D=T.parentNode;D.tagName!=="BODY";){for(var B=0,L=0;L=R){T=D;break}D=D.parentNode}T.readability||this._initializeNode(T),D=T.parentNode;for(var _=T.readability.contentScore,O=_/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var z=D.readability.contentScore;if(z_){T=D;break}_=D.readability.contentScore,D=D.parentNode}for(D=T.parentNode;D.tagName!="BODY"&&D.children.length==1;)T=D,D=T.parentNode;T.readability||this._initializeNode(T)}var V=a.createElement("DIV");i&&(V.id="readability-content");var ie=Math.max(10,T.readability.contentScore*.2);D=T.parentNode;for(var je=D.children,Le=0,N=je.length;Le=ie)Z=!0;else if(q.nodeName==="P"){var pe=this._getLinkDensity(q),Ge=this._getInnerText(q),de=Ge.length;(de>80&&pe<.25||de<80&&de>0&&pe===0&&Ge.search(/\.( |$)/)!==-1)&&(Z=!0)}}Z&&(this.log("Appending node:",q),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(q.nodeName)===-1&&(this.log("Altering sibling:",q,"to div."),q=this._setNodeTag(q,"DIV")),V.appendChild(q),je=D.children,Le-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+V.innerHTML),this._prepArticle(V),this._debug&&this.log("Article content post-prep: "+V.innerHTML),A)T.id="readability-page-1",T.className="page";else{var ge=a.createElement("DIV");for(ge.id="readability-page-1",ge.className="page";V.firstChild;)ge.appendChild(V.firstChild);V.appendChild(ge)}this._debug&&this.log("Article content after paging: "+V.innerHTML);var me=!0,fe=this._getInnerText(V,!0).length;if(fe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||f===1&&C<75||f>1;if(s&&T){for(var A=0;A1)return T;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return T}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),W8=Bm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),B3=Bm((e,t)=>{var n=z8(),r=W8();t.exports={Readability:n,isProbablyReaderable:r}}),_3={};H8(_3,{Readability:()=>Ml,default:()=>j3,isProbablyReaderable:()=>N3});var O3=F3(B3());q8(_3,F3(B3()));var{Readability:Ml,isProbablyReaderable:N3}=O3,{default:I3,...G8}=O3,j3=I3!==void 0?I3:G8;var V8=El.alert;var Y="immersiveTranslate",xi="Immersive Translate",P="immersive-translate",Il="imt";var nn="immersivetranslate.com",K8=`https://config.${nn}/`,aH=`https://app.${nn}/`,ae=ua()||am()?`https://${nn}/`:`https://test.${nn}/`,Rl=`https://dash.${nn}/`,rt=ua()||am()?`https://api2.${nn}/`:`https://test-api2.${nn}/`,W3=`https://github.com/${P}/${P}/`,G3=`https://s.${nn}/`,iH=`https://onboarding.${nn}/`,V3=Y+"DeeplGlobalState",_m=Y+"BingGlobalState",Om=Y+"YandexGlobalState",Nm=Y+"BaiduQianfanGlobalConfigStorageKey",K3=Y+"SiliconCloudGlobalConfigStorageKey",Y3=Y+"ZhipuGlobalConfigStorageKey";var jm=Y+"GoogleAccessToken",Q3=Y+"AuthFlow",J3=P+"-config-latest.json",Y8=Y+"AuthState",Fl=Y+"IframeMessage",oH=Y+"WaitForRateLimit",Bl=Y+"DocumentMessageAsk",Ot=Y+"DocumentMessageTellThirdParty",fn=Y+"showError",vi=Y+"showModal",_l=Y+"showToast",Z3=Y+"DocumentMessageThirdPartyTell",X3=Y+"DocumentMessageEventUpload",$3=Y+"DocumentMessageTypeStopJsSDK",Ol=Y+"DocumentMessageHandler",Nl=Y+"DocumentSetFloatBallActive",jl=`${Y}Share`,Ul=`${Y}ShowFloatBallGuide`,ro=Y+"DocumentMessageTempEnableSubtitleChanged",Ps=`${Y}ToggleMouseHoverTranslateDirectly`,e1=`${Y}ReqDraft`,t1=`${Y}ResDraft`,Q8=`${Y}Container`,n1=`${Y}SpecifiedContainer`,Hl="buildinConfig",Ms="localConfig",Um="openOptionsPage",r1="translateMangaMenuId",Hm="openAboutPage";var qm="openEbookViewer",zm="openEbookBuilder";var Si=`${Y}PageTranslatedStatus`,Rs=`${Y}MangaTranslatedStatus`,sH=`${Y}PageUrlChanged`,Sr=`${Y}ReceiveCommand`,a1=Y+"LastUseMouseHoverTime",Is=Y+"LastUseInputTime",cr=Y+"LastUseManualTranslatePageTime",uH=`${Y}PopupReceiveMessage`,Ti=Y+"DocumentMessageEventTogglePopup",Fs=`${K8}default_config.json`,lH=`${Y}Mark`,Jn=`${Y}Root`,i1=`${Y}Walked`,cH=`data-${P}-walked`,o1=`${Y}Paragraph`,s1=`data-${P}-paragraph`,ao=`data-${P}-translation-element-mark`,u1=`${Y}TranslationElementMark`,dH=`${Y}TranslatedMark`,ql=`${P}-input-injected-css`,l1=`${Y}LoadingId`,Wm=`data-${P}-loading-id`,c1=`${Y}ErrorId`,zl=`data-${P}-error-id`,J8=`${Y}AtomicBlockMark`,d1=`${Y}ExcludeMark`,mH=`data-${P}-exclude-mark`,Z8=`${Y}StayOriginalMark`,pH=`${Y}PreWhitespaceMark`,Wl=`${Y}InlineMark`,m1=`${Y}BlockMark`,gH=`${Y}Left`,fH=`${Y}Right`,hH=`${Y}Width`,bH=`${Y}Height`,yH=`${Y}Top`,xH=`${Y}FontSize`,Bs="lastRunTime";var vH=`${Y}GlobalStyleMark`,io=["@","#"],Gl=" --- ",p1=` -`,Lt=`${P}-target-wrapper`,SH=`${P}-pdf-target-container`,Vl=`${P}-target-inner`,TH=`${P}-source-wrapper`,Gm=`${P}-target-translation-block-wrapper`,CH=`${P}-root-translation-theme`,oo=`${Y}RootTranslationTheme`,g1=`${P}-target-translation-vertical-block-wrapper`,wH=`${P}-target-translation-pdf-block-wrapper`,f1=`${P}-target-translation-pre-whitespace`,Vm=`${P}-target-translation-inline-wrapper`;var h1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var b1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],y1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Rl,Rl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ia="zh-CN",EH=ae+"docs/communities/",AH=W3+"issues/1809",kH=W3+"issues/1179",Kl={type:Y+"ChildFrameToRootFrameIdentifier"},Km=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],_s=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],x1=["ctrl","alt","shift","cmd","command","option","control"];var Yl=ua()?Rl+"#general":"http://localhost:8000/dist/userscript/options/#general",Ym="user_from_plugin",dt="user_info",Ql=ae+"accounts/login?from=plugin",v1=Rl+"#general",DH=ae+"accounts/login?from=plugin&return_url="+encodeURIComponent(v1),S1=Ql+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",T1=Ql+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Os=ae+"profile/",Ns=ae+"auth/pricing/",Fn=ae+"pricing/",X8=ae+"download/",$8=ae+"topup?type=open_ai&",eA=ae+"topup?type=deepl&",C1=ae+"topup?type=comics&",LH=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",w1=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",PH=X8+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",MH=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Jl=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Qm=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",RH=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",E1=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",A1=$8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",k1=eA+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",D1=ae+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",tA=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",Jm=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",IH=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",FH=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",BH=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",_H=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=",L1=ae+"docs/usage/",OH=ae+"docs/communities/",js=ke().TRANSLATE_FILE_URL,NH=js+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",P1=js+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",M1=`${js}download-subtitle/`,R1=`${js}pdf-pro/`,I1=`${js}text/`,Ci=["deepl","openai","gemini","claude"],nA="G-BHWL0KMJB8",rA="7pr-olTJR6GKAjIW48UD0Q",U3="G-MKMD9LWFTR",H3="sitc4WmvShWYwfU0dANM3Q",q3="G-V5H2F5MJFJ",z3="UBjpGOLISEaY5LVXNj3WvQ";function Zl(){return yl()?[`https://www.google-analytics.com/mp/collect?measurement_id=${nA}&api_secret=${rA}`]:ua?[`https://www.google-analytics.com/mp/collect?measurement_id=${U3}&api_secret=${H3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${q3}&api_secret=${z3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${U3}&api_secret=${H3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${q3}&api_secret=${z3}`]}var Us=`https://analytics.${nn}/collect`,aA=`${ae}activities/components/image-pro`;function Zm(e,t){return`${aA}?utm_source=extension&utm_medium=extension&utm_campaign=${e}&lang=${t}`}var F1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",B1="0VmM83i2D1ICuYBf",Xl=`[${Il}-ctx-divider]`,$l=`${Il}_context_preview`;var so=console,Xm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),so.debug(ur.dim(xi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Hs=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&so.log(ur.dim(xi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&so.log(ur.green(xi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&so.warn(ur.yellow(xi+" WARN:"),...t)}error(...t){this.#e<=3&&so.error(ur.red(xi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&so.error(ur.red(xi+" FATAL:"),...t)}timing(){return this.level===0?new Xm:{reset:()=>{},stop:()=>{}}}},k=new Hs;var $m=/iPhone/i,_1=/iPod/i,O1=/iPad/i,N1=/\biOS-universal(?:.+)Mac\b/i,ep=/\bAndroid(?:.+)Mobile\b/i,j1=/Android/i,uo=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ec=/Silk/i,ga=/Windows Phone/i,U1=/\bWindows(?:.+)ARM\b/i,H1=/BlackBerry/i,q1=/BB10/i,z1=/Opera Mini/i,W1=/\b(CriOS|Chrome)(?:.+)Mobile/i,G1=/Mobile(?:.+)Firefox\b/i,V1=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function iA(e){return t=>t.test(e)}function Ve(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=iA(n),i={apple:{phone:a($m)&&!a(ga),ipod:a(_1),tablet:!a($m)&&(a(O1)||V1(t))&&!a(ga),universal:a(N1),device:(a($m)||a(_1)||a(O1)||a(N1)||V1(t))&&!a(ga)},amazon:{phone:a(uo),tablet:!a(uo)&&a(ec),device:a(uo)||a(ec)},android:{phone:!a(ga)&&a(uo)||!a(ga)&&a(ep),tablet:!a(ga)&&!a(uo)&&!a(ep)&&(a(ec)||a(j1)),device:!a(ga)&&(a(uo)||a(ec)||a(ep)||a(j1))||a(/\bokhttp\b/i)},windows:{phone:a(ga),tablet:a(U1),device:a(ga)||a(U1)},other:{blackberry:a(H1),blackberry10:a(q1),opera:a(z1),firefox:a(G1),chrome:a(W1),device:a(H1)||a(q1)||a(z1)||a(G1)||a(W1)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var tp="DENO",tc="CHROME",nc="FIREFOX";function K1(e){let t=tc;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=nc:/deno/i.test(n)&&(t=tp)}catch{}return e===tc&&t===tc||e===nc&&t===nc||e===tp&&t===tp}function Y1(){return K1(tc)}function Q1(){return typeof Deno<"u"}function Tr(){return ke().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:K1(nc)}function Zn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function qs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var J1={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Z1={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:J1,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:J1,query:()=>{},sendMessage:()=>{}}};var re;Q1()?re=Z1:re=globalThis.immersiveTranslateBrowserAPI;var uq=$1(2),X1=$1(3);function $1(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var oA=/\s+/g,sA=/[\t\n\v\f\r ]+/g;function e2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?uA:lA;return String(e).replace(t.style==="html"?sA:oA,t.trim?cA(n):n)}function uA(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function lA(){return" "}function cA(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var t2={}.hasOwnProperty;function dA(e){return e==null?"":e2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function mA(e){return X1(" "+dA(e)+" ")}function pA(e){let t=mA(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function vA(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function SA(e,t,n,r){t=CA(t,n,r);let a=[],i;if(t)for(i in t)rc.call(t,i)&&a.push([i,TA(e,t[i])]);return a.length===0?rp():a.sort(wA)}function TA(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of FA){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?l2(e)?"zh-TW":"zh-CN":t:"auto"}var d2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],ap=new Map(d2),BA=new Map(d2.map(([e,t])=>[t,e]));function m2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>BA.get(s));!t&&t!==0&&(t=25);let a=ic(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...ap.keys()]},o=a2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return ap.get(d)}}let[s,u]=o[0],l=ap.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],ip={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},p2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},op={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},sp={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function $(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return $(document?.documentElement?.lang||"en")}var wi=Y+"CacheKey_";function Ei(e,t){let n=wi+e;return re.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function _A(){let e=re.storage.local.refresh;e&&e()}function up(e,t){let n=wi+e;return re.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wi)).filter(r=>r!==wi+dt);if(n.length>0)return re.storage.local.remove(n)}}var mt={get:Ei,set:Ai,getExpired:up,setExpired:lp,remove:cp,clear:dp,refresh:_A};function ft(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function g2(e){if(e){let t=new Date(e.createTime),n=OA(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function OA(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ws(e){if(e?.isPro)return!0;let t=await mt.get(dt,null);return ft(t)}var f2=Y+"SyncStoreKey_";function Nt(e,t){let n=f2+e;return re.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function ot(e,t){let n=f2+e;return re.storage.sync.set({[n]:t})}var h2=Y+"StoreKey_";function ki(e,t){let n=h2+e;return re.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function b2(e,t){let n=h2+e;return re.storage.local.set({[n]:t})}var y2={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`+b+"]"}return r.pop(),a=b,f}},hE={parse:lE,stringify:fE},bE=hE,Sl=bE;var Z4=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function yE(e,t){return!!(e===t||Z4(e)&&Z4(t))}function xE(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),AE=(e,t)=>{for(var n in t)hm(e,n,{get:t[n],enumerable:!0})},fm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of TE(t))!wE.call(e,a)&&a!==n&&hm(e,a,{get:()=>t[a],enumerable:!(r=SE(t,a))||r.enumerable});return e},kE=(e,t,n)=>(fm(e,t,"default"),n&&fm(n,t,"default")),$4=(e,t,n)=>(n=e!=null?vE(CE(e)):{},fm(t||!e||!e.__esModule?hm(n,"default",{value:e,enumerable:!0}):n,e)),e3=EE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,h=Math.min,f=function(){return m.Date.now()};function y(A,D,I){var F,R,B,P,_,O,z=0,V=!1,ie=!1,je=!0;if(typeof A!="function")throw new TypeError(n);D=T(D)||0,S(I)&&(V=!!I.leading,ie="maxWait"in I,B=ie?b(T(I.maxWait)||0,D):B,je="trailing"in I?!!I.trailing:je);function Le(me){var fe=F,Se=R;return F=R=void 0,z=me,P=A.apply(Se,fe),P}function N(me){return z=me,_=setTimeout(we,D),V?Le(me):P}function q(me){var fe=me-O,Se=me-z,Ue=D-fe;return ie?h(Ue,B-Se):Ue}function Z(me){var fe=me-O,Se=me-z;return O===void 0||fe>=D||fe<0||ie&&Se>=B}function we(){var me=f();if(Z(me))return pe(me);_=setTimeout(we,q(me))}function pe(me){return _=void 0,je&&F?Le(me):(F=R=void 0,P)}function Ge(){_!==void 0&&clearTimeout(_),z=0,F=O=R=_=void 0}function de(){return _===void 0?P:pe(f())}function ge(){var me=f(),fe=Z(me);if(F=arguments,R=this,O=me,fe){if(_===void 0)return N(O);if(ie)return _=setTimeout(we,D),Le(O)}return _===void 0&&(_=setTimeout(we,D)),P}return ge.cancel=Ge,ge.flush=de,ge}function v(A,D,I){var F=!0,R=!0;if(typeof A!="function")throw new TypeError(n);return S(I)&&(F="leading"in I?!!I.leading:F,R="trailing"in I?!!I.trailing:R),y(A,D,{leading:F,maxWait:D,trailing:R})}function S(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function w(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||w(A)&&g.call(A)==a}function T(A){if(typeof A=="number")return A;if(C(A))return r;if(S(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=S(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var I=s.test(A);return I||u.test(A)?l(A.slice(2),I?2:8):o.test(A)?r:+A}t.exports=v}),t3={};AE(t3,{default:()=>Yn});var DE=$4(e3());kE(t3,$4(e3()));var{default:X4,...LE}=DE,Yn=X4!==void 0?X4:LE;var Cl=globalThis||(typeof window<"u"?window:self),PE=Object.create,ym=Object.defineProperty,ME=Object.getOwnPropertyDescriptor,RE=Object.getOwnPropertyNames,IE=Object.getPrototypeOf,FE=Object.prototype.hasOwnProperty,BE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_E=(e,t)=>{for(var n in t)ym(e,n,{get:t[n],enumerable:!0})},bm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of RE(t))!FE.call(e,a)&&a!==n&&ym(e,a,{get:()=>t[a],enumerable:!(r=ME(t,a))||r.enumerable});return e},OE=(e,t,n)=>(bm(e,t,"default"),n&&bm(n,t,"default")),r3=(e,t,n)=>(n=e!=null?PE(IE(e)):{},bm(t||!e||!e.__esModule?ym(n,"default",{value:e,enumerable:!0}):n,e)),a3=BE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Cl=="object"&&Cl&&Cl.Object===Object&&Cl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,h=Math.min,f=function(){return m.Date.now()};function y(T,A,D){var I,F,R,B,P,_,O=0,z=!1,V=!1,ie=!0;if(typeof T!="function")throw new TypeError(n);A=C(A)||0,v(D)&&(z=!!D.leading,V="maxWait"in D,R=V?b(C(D.maxWait)||0,A):R,ie="trailing"in D?!!D.trailing:ie);function je(ge){var me=I,fe=F;return I=F=void 0,O=ge,B=T.apply(fe,me),B}function Le(ge){return O=ge,P=setTimeout(Z,A),z?je(ge):B}function N(ge){var me=ge-_,fe=ge-O,Se=A-me;return V?h(Se,R-fe):Se}function q(ge){var me=ge-_,fe=ge-O;return _===void 0||me>=A||me<0||V&&fe>=R}function Z(){var ge=f();if(q(ge))return we(ge);P=setTimeout(Z,N(ge))}function we(ge){return P=void 0,ie&&I?je(ge):(I=F=void 0,B)}function pe(){P!==void 0&&clearTimeout(P),O=0,I=_=F=P=void 0}function Ge(){return P===void 0?B:we(f())}function de(){var ge=f(),me=q(ge);if(I=arguments,F=this,_=ge,me){if(P===void 0)return Le(_);if(V)return P=setTimeout(Z,A),je(_)}return P===void 0&&(P=setTimeout(Z,A)),B}return de.cancel=pe,de.flush=Ge,de}function v(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function S(T){return!!T&&typeof T=="object"}function w(T){return typeof T=="symbol"||S(T)&&g.call(T)==a}function C(T){if(typeof T=="number")return T;if(w(T))return r;if(v(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=v(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(i,"");var D=s.test(T);return D||u.test(T)?l(T.slice(2),D?2:8):o.test(T)?r:+T}t.exports=y}),i3={};_E(i3,{default:()=>Pn});var NE=r3(a3());OE(i3,r3(a3()));var{default:n3,...jE}=NE,Pn=n3!==void 0?n3:jE;var UE=Object.create,vm=Object.defineProperty,HE=Object.getOwnPropertyDescriptor,qE=Object.getOwnPropertyNames,zE=Object.getPrototypeOf,WE=Object.prototype.hasOwnProperty,GE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),VE=(e,t)=>{for(var n in t)vm(e,n,{get:t[n],enumerable:!0})},xm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qE(t))!WE.call(e,a)&&a!==n&&vm(e,a,{get:()=>t[a],enumerable:!(r=HE(t,a))||r.enumerable});return e},KE=(e,t,n)=>(xm(e,t,"default"),n&&xm(n,t,"default")),s3=(e,t,n)=>(n=e!=null?UE(zE(e)):{},xm(t||!e||!e.__esModule?vm(n,"default",{value:e,enumerable:!0}):n,e)),u3=GE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,b){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:b})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,q){var Z={};for(var we in N)q.indexOf(we)>=0||Object.prototype.hasOwnProperty.call(N,we)&&(Z[we]=N[we]);return Z}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},b=Object.assign||function(N){for(var q=1;q'+we+"",Se.onclick=function(){return R(Ue,fe)},Se.listener=function(G){(D(G)||I(G))&&_()},F(Se,fe),Ge&&Ge<1&&(Ge=1),!ge&&Ge&&S(Ge).then(function(){return R(Ue,fe)})},z=d.force=function(N,q){var Z=N.type,we=Z===void 0?5:Z,pe=N.text,Ge=N.buttonText,de=Ge===void 0?"OK":Ge,ge=N.callback,me=N.position,fe=me===void 0?f.positions.force||fe.top:me;w(),_();var Se=document.createElement("div"),Ue=C();Se.id=Ue;var G=document.createElement("div");G.classList.add(f.classes.textbox),G.classList.add(f.classes.backgroundInfo),G.innerHTML='
'+pe+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(T[we]),be.innerHTML=de,be.onclick=function(){R(Ue,fe),P(),ge?ge():q&&q()},Se.appendChild(G),Se.appendChild(be),Se.listener=function(at){D(at)&&be.click()},F(Se,fe),B()},V=d.confirm=function(N,q,Z){var we=N.text,pe=N.submitText,Ge=pe===void 0?"Yes":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.confirm||Ue.top:Se;w(),_();var G=document.createElement("div"),be=C();G.id=be;var at=document.createElement("div");at.classList.add(f.classes.textbox),at.classList.add(f.classes.backgroundInfo),at.innerHTML='
'+we+"
";var Je=document.createElement("div");Je.classList.add(f.classes.button),Je.classList.add(f.classes.elementHalf),Je.classList.add(f.classes.backgroundSuccess),Je.innerHTML=Ge,Je.onclick=function(){R(be,Ue),P(),me?me():q&&q()};var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(f.classes.elementHalf),xe.classList.add(f.classes.backgroundError),xe.innerHTML=ge,xe.onclick=function(){R(be,Ue),P(),fe?fe():Z&&Z()},G.appendChild(at),G.appendChild(Je),G.appendChild(xe),G.listener=function(vt){D(vt)?Je.click():I(vt)&&xe.click()},F(G,Ue),B(G,Ue)},ie=function(N,q,Z){var we=N.text,pe=N.submitText,Ge=pe===void 0?"Submit":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.input||Ue.top:Se,G=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var be=document.createElement("div"),at=C();be.id=at;var Je=document.createElement("div");Je.classList.add(f.classes.textbox),Je.classList.add(f.classes.backgroundInfo),Je.innerHTML='
'+we+"
";var xe=document.createElement("input");xe.classList.add(f.classes.inputField),xe.setAttribute("autocapitalize",G.autocapitalize||"none"),xe.setAttribute("autocomplete",G.autocomplete||"off"),xe.setAttribute("autocorrect",G.autocorrect||"off"),xe.setAttribute("autofocus",G.autofocus||"true"),xe.setAttribute("inputmode",G.inputmode||"verbatim"),xe.setAttribute("max",G.max||""),xe.setAttribute("maxlength",G.maxlength||""),xe.setAttribute("min",G.min||""),xe.setAttribute("minlength",G.minlength||""),xe.setAttribute("placeholder",G.placeholder||""),xe.setAttribute("spellcheck",G.spellcheck||"default"),xe.setAttribute("step",G.step||"any"),xe.setAttribute("type",G.type||"text"),xe.value=G.value||"",G.allowed&&(xe.oninput=function(){var Dt=void 0;if(Array.isArray(G.allowed)){for(var Ft="",An=G.allowed,sr=0;sr'+Z+"",fe.appendChild(Ue),de.forEach(function(be,at){var Je=be.type,xe=Je===void 0?1:Je,vt=be.text,Vt=be.handler,Dt=document.createElement("div");Dt.classList.add(T[xe]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Ft=de[at+1];Ft&&!Ft.type&&(Ft.type=1),Ft&&Ft.type===xe&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){R(Se,me),P(),Vt()},fe.appendChild(Dt)});var G=document.createElement("div");G.classList.add(f.classes.backgroundNeutral),G.classList.add(f.classes.button),G.innerHTML=pe,G.onclick=function(){R(Se,me),P(),Ge?Ge():q&&q()},fe.appendChild(G),fe.listener=function(be){I(be)&&G.click()},F(fe,me),B(fe,me)},Le=d.date=function(N,q,Z){var we=N.value,pe=we===void 0?new Date:we,Ge=N.submitText,de=Ge===void 0?"OK":Ge,ge=N.cancelText,me=ge===void 0?"Cancel":ge,fe=N.submitCallback,Se=N.cancelCallback,Ue=N.position,G=Ue===void 0?f.positions.date||G.top:Ue;w(),_();var be="▾",at=document.createElement("div"),Je=document.createElement("div"),xe=document.createElement("div"),vt=function(St){at.innerHTML=f.dateMonths[St.getMonth()],Je.innerHTML=St.getDate(),xe.innerHTML=St.getFullYear()},Vt=function(St){var nt=new Date(pe.getFullYear(),pe.getMonth()+1,0).getDate(),Kn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>nt&&(Kn=nt.toString()),St.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),pe.setDate(Number(Kn))},Dt=function(St){var nt=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=nt,pe.setFullYear(Number(nt))},Ft=function(St){vt(pe)},An=function(St){var nt=new Date(pe.getFullYear(),pe.getMonth()+St+1,0).getDate();pe.getDate()>nt&&pe.setDate(nt),pe.setMonth(pe.getMonth()+St),vt(pe)},sr=function(St){pe.setDate(pe.getDate()+St),vt(pe)},Ss=function(St){var nt=pe.getFullYear()+St;nt<0?pe.setFullYear(0):pe.setFullYear(pe.getFullYear()+St),vt(pe)},jr=document.createElement("div"),gi=C();jr.id=gi;var Qi=document.createElement("div");Qi.classList.add(f.classes.backgroundInfo);var pn=document.createElement("div");pn.classList.add(f.classes.dateSelectorInner);var fr=document.createElement("div");fr.classList.add(f.classes.button),fr.classList.add(f.classes.elementThird),fr.classList.add(f.classes.dateSelectorUp),fr.innerHTML=be;var gn=document.createElement("div");gn.classList.add(f.classes.button),gn.classList.add(f.classes.elementThird),gn.classList.add(f.classes.dateSelectorUp),gn.innerHTML=be;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=be,at.classList.add(f.classes.element),at.classList.add(f.classes.elementThird),at.innerHTML=f.dateMonths[pe.getMonth()],Je.classList.add(f.classes.element),Je.classList.add(f.classes.elementThird),Je.setAttribute("contentEditable",!0),Je.addEventListener("input",Vt),Je.addEventListener("blur",Ft),Je.innerHTML=pe.getDate(),xe.classList.add(f.classes.element),xe.classList.add(f.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Dt),xe.addEventListener("blur",Ft),xe.innerHTML=pe.getFullYear();var na=document.createElement("div");na.classList.add(f.classes.button),na.classList.add(f.classes.elementThird),na.innerHTML=be;var ra=document.createElement("div");ra.classList.add(f.classes.button),ra.classList.add(f.classes.elementThird),ra.innerHTML=be;var fi=document.createElement("div");fi.classList.add(f.classes.button),fi.classList.add(f.classes.elementThird),fi.innerHTML=be,fr.onclick=function(){return An(1)},gn.onclick=function(){return sr(1)},Vn.onclick=function(){return Ss(1)},na.onclick=function(){return An(-1)},ra.onclick=function(){return sr(-1)},fi.onclick=function(){return Ss(-1)};var kn=document.createElement("div");kn.classList.add(f.classes.button),kn.classList.add(f.classes.elementHalf),kn.classList.add(f.classes.backgroundSuccess),kn.innerHTML=de,kn.onclick=function(){R(gi,G),P(),fe?fe(pe):q&&q(pe)};var aa=document.createElement("div");aa.classList.add(f.classes.button),aa.classList.add(f.classes.elementHalf),aa.classList.add(f.classes.backgroundError),aa.innerHTML=me,aa.onclick=function(){R(gi,G),P(),Se?Se(pe):Z&&Z(pe)},pn.appendChild(fr),pn.appendChild(gn),pn.appendChild(Vn),pn.appendChild(at),pn.appendChild(Je),pn.appendChild(xe),pn.appendChild(na),pn.appendChild(ra),pn.appendChild(fi),Qi.appendChild(pn),jr.appendChild(Qi),jr.appendChild(kn),jr.appendChild(aa),jr.listener=function(St){D(St)?kn.click():I(St)&&aa.click()},F(jr,G),B(jr,G)};d.default={alert:O,force:z,confirm:V,input:ie,select:je,date:Le,setOptions:y,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),l3={};VE(l3,{default:()=>wl});var YE=s3(u3());KE(l3,s3(u3()));var{default:o3,...QE}=YE,wl=o3!==void 0?o3:QE;var El=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Es(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Sm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function c3(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ieo[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),JE=e=>Object.keys(eo).find(t=>eo[t]===e),ZE=e=>Object.keys(yr).find(t=>yr[t]===e);function h3(e){g3=e||"all"}function As(){return g3||"all"}function XE(){return st.slice(0)}function $E(){return st.map(e=>JE(e)||ZE(e)||String.fromCharCode(e))}function e8(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>ks(o))})})}),e}function t8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function n8(e){return typeof e=="string"&&(e=ks(e)),st.indexOf(e)!==-1}function r8(e,t){let n,r;e||(e=As());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&st.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&st.splice(0,st.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in yr)yr[r]===t&&(da[r]=!1)}}function b3(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&Cm(n)});else if(typeof e=="object")e.key&&Cm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),Cm({key:e,scope:n,method:r,splitKey:"+"})}}var Cm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Tm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":ks(u);if(!Tt[l])return;t||(t=As());let c=s>1?Sm(yr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&c3(d.mods,c)))})};function m3(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(st),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function p3(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!da.filter.call(this,e))return;if((r===93||r===224)&&(r=91),st.indexOf(r)===-1&&r!==229&&st.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Al[i];e[i]&&st.indexOf(o)===-1?st.push(o):!e[i]&&st.indexOf(o)>-1?st.splice(st.indexOf(o),1):i==="metaKey"&&e[i]&&st.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(st=st.slice(st.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in yr)yr[i]===r&&(da[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Al[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(st.indexOf(17)===-1&&st.push(17),st.indexOf(18)===-1&&st.push(18),tn[17]=!0,tn[18]=!0);let a=As();if(n)for(let i=0;i-1}function da(e,t,n){st=[];let r=Tm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&b3(e,i);s1&&(a=Sm(yr,e)),e=e[e.length-1],e=e==="*"?"*":ks(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!i8(o)&&window&&(f3.push(o),Es(o,"keydown",p=>{p3(p,o)},d),d3||(d3=!0,Es(window,"focus",()=>{st=[]},d),Es(window,"click",()=>{st=[]},!1)),Es(o,"keyup",p=>{p3(p,o),a8(p)},d))}function o8(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var wm={getPressedKeyString:$E,setScope:h3,getScope:As,deleteScope:r8,getPressedKeyCodes:XE,getAllKeyCodes:e8,isPressed:n8,filter:t8,trigger:o8,unbind:b3,keyMap:eo,modifier:yr,modifierMap:Al};for(let e in wm)Object.prototype.hasOwnProperty.call(wm,e)&&(da[e]=wm[e]);if(typeof window<"u"){let e=window.hotkeys;da.noConflict=t=>(t&&window.hotkeys===da&&(window.hotkeys=e),da),window.hotkeys=da}var jn=da;var s8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},x3={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},_t={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Mn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ma={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},H=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=H.getVersionPrecision(e),a=H.getVersionPrecision(t),i=Math.max(r,a),o=0,s=H.map([e,t],u=>{let l=i-H.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return H.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return s8[e]}static getBrowserTypeByAlias(e){return x3[e]||""}},ut=/version\/(\d+(\.?_?\d+)+)/i,u8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=H.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=H.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=H.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=H.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=H.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=H.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=H.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=H.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=H.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=H.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=H.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=H.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=H.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=H.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=H.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=H.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=H.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=H.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=H.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=H.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=H.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=H.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=H.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=H.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=H.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=H.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:H.getFirstMatch(r,e),version:H.getSecondMatch(r,e)}}}],l8=u8,c8=[{test:[/Roku\/DVP/],describe(e){let t=H.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Mn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=H.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Mn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=H.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=H.getWindowsVersionName(t);return{name:Mn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Mn.iOS},n=H.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=H.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=H.getMacOSVersionName(t),r={name:Mn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=H.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Mn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=H.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=H.getAndroidVersionName(t),r={name:Mn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=H.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Mn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=H.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||H.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||H.getFirstMatch(/\bbb(\d+)/i,e);return{name:Mn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=H.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Mn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=H.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Mn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Mn.Linux}}},{test:[/CrOS/],describe(){return{name:Mn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=H.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Mn.PlayStation4,version:t}}}],d8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=H.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:_t.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:_t.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:_t.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:_t.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:_t.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=H.getFirstMatch(/(ipod|iphone)/i,e);return{type:_t.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:_t.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:_t.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:_t.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:_t.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:_t.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:_t.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:_t.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:_t.tv}}}],m8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ma.Blink};let t=H.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ma.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ma.Trident},n=H.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ma.Presto},n=H.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ma.Gecko},n=H.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ma.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ma.WebKit},n=H.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],p8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=H.find(l8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=H.find(c8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=H.find(d8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=H.find(m8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return H.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=H.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=H.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=H.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=H.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(H.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},y3=p8,g8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new y3(e,t)}static parse(e){return new y3(e).getResult()}static get BROWSER_MAP(){return x3}static get ENGINE_MAP(){return Ma}static get OS_MAP(){return Mn}static get PLATFORMS_MAP(){return _t}},to=g8;var{entries:k3,setPrototypeOf:v3,isFrozen:f8,getPrototypeOf:h8,getOwnPropertyDescriptor:b8}=Object,{freeze:Rn,seal:vr,create:y8}=Object,{apply:Pm,construct:Mm}=typeof Reflect<"u"&&Reflect;Pm||(Pm=function(e,t,n){return e.apply(t,n)});Rn||(Rn=function(e){return e});vr||(vr=function(e){return e});Mm||(Mm=function(e,t){return new e(...t)});var x8=lr(Array.prototype.forEach),S3=lr(Array.prototype.pop),Ds=lr(Array.prototype.push),Ll=lr(String.prototype.toLowerCase),Em=lr(String.prototype.toString),v8=lr(String.prototype.match),xr=lr(String.prototype.replace),S8=lr(String.prototype.indexOf),T8=lr(String.prototype.trim),Qn=lr(RegExp.prototype.test),Ls=C8(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),D8=vr(/\${[\w\W]*}/gm),L8=vr(/^data-[\-\w.\u00B7-\uFFFF]/),P8=vr(/^aria-[\-\w]+$/),D3=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),M8=vr(/^(?:\w+script|data):/i),R8=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),L3=vr(/^html$/i),A3=Object.freeze({__proto__:null,MUSTACHE_EXPR:A8,ERB_EXPR:k8,TMPLIT_EXPR:D8,DATA_ATTR:L8,ARIA_ATTR:P8,IS_ALLOWED_URI:D3,IS_SCRIPT_OR_DATA:M8,ATTR_WHITESPACE:R8,DOCTYPE_NAME:L3}),I8=()=>typeof window>"u"?null:window,F8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function P3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I8(),t=M=>P3(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,b=kl(g,"cloneNode"),h=kl(g,"nextSibling"),f=kl(g,"childNodes"),y=kl(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,S="",{implementation:w,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:A}=a,{importNode:D}=n,I={};t.isSupported=typeof k3=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:P,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:z}=A3,{IS_ALLOWED_URI:V}=A3,ie=null,je=Oe({},[...T3,...Am,...km,...Dm,...C3]),Le=null,N=Oe({},[...w3,...Lm,...E3,...Dl]),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,we=null,pe=!0,Ge=!0,de=!1,ge=!0,me=!1,fe=!1,Se=!1,Ue=!1,G=!1,be=!1,at=!1,Je=!0,xe=!1,vt="user-content-",Vt=!0,Dt=!1,Ft={},An=null,sr=Oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ss=null,jr=Oe({},["audio","video","img","source","image","track"]),gi=null,Qi=Oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pn="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",gn="http://www.w3.org/1999/xhtml",Vn=gn,na=!1,ra=null,fi=Oe({},[pn,fr,gn],Em),kn,aa=["application/xhtml+xml","text/html"],St="text/html",nt,Kn=null,KC=a.createElement("form"),L4=function(M){return M instanceof RegExp||M instanceof Function},Jd=function(M){if(!(Kn&&Kn===M)){if((!M||typeof M!="object")&&(M={}),M=no(M),kn=aa.indexOf(M.PARSER_MEDIA_TYPE)===-1?kn=St:kn=M.PARSER_MEDIA_TYPE,nt=kn==="application/xhtml+xml"?Em:Ll,ie="ALLOWED_TAGS"in M?Oe({},M.ALLOWED_TAGS,nt):je,Le="ALLOWED_ATTR"in M?Oe({},M.ALLOWED_ATTR,nt):N,ra="ALLOWED_NAMESPACES"in M?Oe({},M.ALLOWED_NAMESPACES,Em):fi,gi="ADD_URI_SAFE_ATTR"in M?Oe(no(Qi),M.ADD_URI_SAFE_ATTR,nt):Qi,Ss="ADD_DATA_URI_TAGS"in M?Oe(no(jr),M.ADD_DATA_URI_TAGS,nt):jr,An="FORBID_CONTENTS"in M?Oe({},M.FORBID_CONTENTS,nt):sr,Z="FORBID_TAGS"in M?Oe({},M.FORBID_TAGS,nt):{},we="FORBID_ATTR"in M?Oe({},M.FORBID_ATTR,nt):{},Ft="USE_PROFILES"in M?M.USE_PROFILES:!1,pe=M.ALLOW_ARIA_ATTR!==!1,Ge=M.ALLOW_DATA_ATTR!==!1,de=M.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=M.SAFE_FOR_TEMPLATES||!1,fe=M.WHOLE_DOCUMENT||!1,G=M.RETURN_DOM||!1,be=M.RETURN_DOM_FRAGMENT||!1,at=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Je=M.SANITIZE_DOM!==!1,xe=M.SANITIZE_NAMED_PROPS||!1,Vt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,V=M.ALLOWED_URI_REGEXP||D3,Vn=M.NAMESPACE||gn,q=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&L4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&L4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Ge=!1),be&&(G=!0),Ft&&(ie=Oe({},[...C3]),Le=[],Ft.html===!0&&(Oe(ie,T3),Oe(Le,w3)),Ft.svg===!0&&(Oe(ie,Am),Oe(Le,Lm),Oe(Le,Dl)),Ft.svgFilters===!0&&(Oe(ie,km),Oe(Le,Lm),Oe(Le,Dl)),Ft.mathMl===!0&&(Oe(ie,Dm),Oe(Le,E3),Oe(Le,Dl))),M.ADD_TAGS&&(ie===je&&(ie=no(ie)),Oe(ie,M.ADD_TAGS,nt)),M.ADD_ATTR&&(Le===N&&(Le=no(Le)),Oe(Le,M.ADD_ATTR,nt)),M.ADD_URI_SAFE_ATTR&&Oe(gi,M.ADD_URI_SAFE_ATTR,nt),M.FORBID_CONTENTS&&(An===sr&&(An=no(An)),Oe(An,M.FORBID_CONTENTS,nt)),Vt&&(ie["#text"]=!0),fe&&Oe(ie,["html","head","body"]),ie.table&&(Oe(ie,["tbody"]),delete Z.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=F8(p,r)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Rn&&Rn(M),Kn=M}},P4=Oe({},["mi","mo","mn","ms","mtext"]),M4=Oe({},["foreignobject","desc","title","annotation-xml"]),YC=Oe({},["title","style","font","a","script"]),dl=Oe({},Am);Oe(dl,km),Oe(dl,w8);let Zd=Oe({},Dm);Oe(Zd,E8);let QC=function(M){let se=y(M);(!se||!se.tagName)&&(se={namespaceURI:Vn,tagName:"template"});let Q=Ll(M.tagName),$e=Ll(se.tagName);return ra[M.namespaceURI]?M.namespaceURI===fr?se.namespaceURI===gn?Q==="svg":se.namespaceURI===pn?Q==="svg"&&($e==="annotation-xml"||P4[$e]):!!dl[Q]:M.namespaceURI===pn?se.namespaceURI===gn?Q==="math":se.namespaceURI===fr?Q==="math"&&M4[$e]:!!Zd[Q]:M.namespaceURI===gn?se.namespaceURI===fr&&!M4[$e]||se.namespaceURI===pn&&!P4[$e]?!1:!Zd[Q]&&(YC[Q]||!dl[Q]):!!(kn==="application/xhtml+xml"&&ra[M.namespaceURI]):!1},Ji=function(M){Ds(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},Xd=function(M,se){try{Ds(t.removed,{attribute:se.getAttributeNode(M),from:se})}catch{Ds(t.removed,{attribute:null,from:se})}if(se.removeAttribute(M),M==="is"&&!Le[M])if(G||be)try{Ji(se)}catch{}else try{se.setAttribute(M,"")}catch{}},R4=function(M){let se,Q;if(Ue)M=""+M;else{let Dn=v8(M,/^[\r\n\t ]+/);Q=Dn&&Dn[0]}kn==="application/xhtml+xml"&&Vn===gn&&(M=''+M+"");let $e=v?v.createHTML(M):M;if(Vn===gn)try{se=new m().parseFromString($e,kn)}catch{}if(!se||!se.documentElement){se=w.createDocument(Vn,"template",null);try{se.documentElement.innerHTML=na?S:$e}catch{}}let Kt=se.body||se.documentElement;return M&&Q&&Kt.insertBefore(a.createTextNode(Q),Kt.childNodes[0]||null),Vn===gn?A.call(se,fe?"html":"body")[0]:fe?se.documentElement:Kt},I4=function(M){return C.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},JC=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},ml=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},ia=function(M,se,Q){I[M]&&x8(I[M],$e=>{$e.call(t,se,Q,Kn)})},F4=function(M){let se;if(ia("beforeSanitizeElements",M,null),JC(M))return Ji(M),!0;let Q=nt(M.nodeName);if(ia("uponSanitizeElement",M,{tagName:Q,allowedTags:ie}),M.hasChildNodes()&&!ml(M.firstElementChild)&&(!ml(M.content)||!ml(M.content.firstElementChild))&&Qn(/<[/\w]/g,M.innerHTML)&&Qn(/<[/\w]/g,M.textContent))return Ji(M),!0;if(!ie[Q]||Z[Q]){if(!Z[Q]&&_4(Q)&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q)))return!1;if(Vt&&!An[Q]){let $e=y(M)||M.parentNode,Kt=f(M)||M.childNodes;if(Kt&&$e){let Dn=Kt.length;for(let Nn=Dn-1;Nn>=0;--Nn)$e.insertBefore(b(Kt[Nn],!0),h(M))}}return Ji(M),!0}return M instanceof u&&!QC(M)||(Q==="noscript"||Q==="noembed")&&Qn(/<\/no(script|embed)/i,M.innerHTML)?(Ji(M),!0):(me&&M.nodeType===3&&(se=M.textContent,se=xr(se,F," "),se=xr(se,R," "),se=xr(se,B," "),M.textContent!==se&&(Ds(t.removed,{element:M.cloneNode()}),M.textContent=se)),ia("afterSanitizeElements",M,null),!1)},B4=function(M,se,Q){if(Je&&(se==="id"||se==="name")&&(Q in a||Q in KC))return!1;if(!(Ge&&!we[se]&&Qn(P,se))&&!(pe&&Qn(_,se))){if(!Le[se]||we[se]){if(!(_4(M)&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,M)||q.tagNameCheck instanceof Function&&q.tagNameCheck(M))&&(q.attributeNameCheck instanceof RegExp&&Qn(q.attributeNameCheck,se)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(se))||se==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Qn(q.tagNameCheck,Q)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Q))))return!1}else if(!gi[se]&&!Qn(V,xr(Q,z,""))&&!((se==="src"||se==="xlink:href"||se==="href")&&M!=="script"&&S8(Q,"data:")===0&&Ss[M])&&!(de&&!Qn(O,xr(Q,z,"")))&&Q)return!1}return!0},_4=function(M){return M.indexOf("-")>0},O4=function(M){let se,Q,$e,Kt;ia("beforeSanitizeAttributes",M,null);let{attributes:Dn}=M;if(!Dn)return;let Nn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le};for(Kt=Dn.length;Kt--;){se=Dn[Kt];let{name:$t,namespaceURI:Zi}=se;if(Q=$t==="value"?se.value:T8(se.value),$e=nt($t),Nn.attrName=$e,Nn.attrValue=Q,Nn.keepAttr=!0,Nn.forceKeepAttr=void 0,ia("uponSanitizeAttribute",M,Nn),Q=Nn.attrValue,Nn.forceKeepAttr||(Xd($t,M),!Nn.keepAttr))continue;if(!ge&&Qn(/\/>/i,Q)){Xd($t,M);continue}me&&(Q=xr(Q,F," "),Q=xr(Q,R," "),Q=xr(Q,B," "));let N4=nt(M.nodeName);if(B4(N4,$e,Q)){if(xe&&($e==="id"||$e==="name")&&(Xd($t,M),Q=vt+Q),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zi)switch(p.getAttributeType(N4,$e)){case"TrustedHTML":{Q=v.createHTML(Q);break}case"TrustedScriptURL":{Q=v.createScriptURL(Q);break}}try{Zi?M.setAttributeNS(Zi,$t,Q):M.setAttribute($t,Q),S3(t.removed)}catch{}}}ia("afterSanitizeAttributes",M,null)},ZC=function M(se){let Q,$e=I4(se);for(ia("beforeSanitizeShadowDOM",se,null);Q=$e.nextNode();)ia("uponSanitizeShadowNode",Q,null),!F4(Q)&&(Q.content instanceof i&&M(Q.content),O4(Q));ia("afterSanitizeShadowDOM",se,null)};return t.sanitize=function(M){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,$e,Kt,Dn;if(na=!M,na&&(M=""),typeof M!="string"&&!ml(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw Ls("dirty is not a string, aborting")}else throw Ls("toString is not a function");if(!t.isSupported)return M;if(Se||Jd(se),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let Zi=nt(M.nodeName);if(!ie[Zi]||Z[Zi])throw Ls("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)Q=R4(""),$e=Q.ownerDocument.importNode(M,!0),$e.nodeType===1&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?Q=$e:Q.appendChild($e);else{if(!G&&!me&&!fe&&M.indexOf("<")===-1)return v&&at?v.createHTML(M):M;if(Q=R4(M),!Q)return G?null:at?S:""}Q&&Ue&&Ji(Q.firstChild);let Nn=I4(Dt?M:Q);for(;Kt=Nn.nextNode();)F4(Kt)||(Kt.content instanceof i&&ZC(Kt.content),O4(Kt));if(Dt)return M;if(G){if(be)for(Dn=T.call(Q.ownerDocument);Q.firstChild;)Dn.appendChild(Q.firstChild);else Dn=Q;return(Le.shadowroot||Le.shadowrootmod)&&(Dn=D.call(n,Dn,!0)),Dn}let $t=fe?Q.outerHTML:Q.innerHTML;return fe&&ie["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Qn(L3,Q.ownerDocument.doctype.name)&&($t=" +`+$t),me&&($t=xr($t,F," "),$t=xr($t,R," "),$t=xr($t,B," ")),v&&at?v.createHTML($t):$t},t.setConfig=function(M){Jd(M),Se=!0},t.clearConfig=function(){Kn=null,Se=!1},t.isValidAttribute=function(M,se,Q){Kn||Jd({});let $e=nt(M),Kt=nt(se);return B4($e,Kt,Q)},t.addHook=function(M,se){typeof se=="function"&&(I[M]=I[M]||[],Ds(I[M],se))},t.removeHook=function(M){if(I[M])return S3(I[M])},t.removeHooks=function(M){I[M]&&(I[M]=[])},t.removeAllHooks=function(){I={}},t}var Ze=P3();var B8=Object.create,Im=Object.defineProperty,_8=Object.getOwnPropertyDescriptor,O8=Object.getOwnPropertyNames,N8=Object.getPrototypeOf,j8=Object.prototype.hasOwnProperty,Fm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U8=(e,t)=>{for(var n in t)Im(e,n,{get:t[n],enumerable:!0})},Rm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of O8(t))!j8.call(e,a)&&a!==n&&Im(e,a,{get:()=>t[a],enumerable:!(r=_8(t,a))||r.enumerable});return e},H8=(e,t,n)=>(Rm(e,t,"default"),n&&Rm(n,t,"default")),R3=(e,t,n)=>(n=e!=null?B8(N8(e)):{},Rm(t||!e||!e.__esModule?Im(n,"default",{value:e,enumerable:!0}):n,e)),q8=Fm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,b,h,f){return o(b)+(h||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(G){if(!(!G.parentNode||typeof G.parentNode.tagName>"u")){var be=this._getInnerText(G);if(!(be.length<25)){var at=this._getNodeAncestors(G,5);if(at.length!==0){var Je=0;Je+=1,Je+=be.split(",").length,Je+=Math.min(Math.floor(be.length/100),3),this._forEachNode(at,function(xe,vt){if(!(!xe.tagName||!xe.parentNode||typeof xe.parentNode.tagName>"u")){if(typeof xe.readability>"u"&&(this._initializeNode(xe),b.push(xe)),vt===0)var Vt=1;else vt===1?Vt=2:Vt=vt*3;xe.readability.contentScore+=Je/Vt}})}}}});for(var h=[],f=0,y=b.length;fC.readability.contentScore){h.splice(w,0,v),h.length>this._nbTopCandidates&&h.pop();break}}}var T=h[0]||null,A=!1,D;if(T===null||T.tagName==="BODY"){for(T=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),T.appendChild(r.firstChild);r.appendChild(T),this._initializeNode(T)}else if(T){for(var I=[],F=1;F=.75&&I.push(this._getNodeAncestors(h[F]));var R=3;if(I.length>=R)for(D=T.parentNode;D.tagName!=="BODY";){for(var B=0,P=0;P=R){T=D;break}D=D.parentNode}T.readability||this._initializeNode(T),D=T.parentNode;for(var _=T.readability.contentScore,O=_/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var z=D.readability.contentScore;if(z_){T=D;break}_=D.readability.contentScore,D=D.parentNode}for(D=T.parentNode;D.tagName!="BODY"&&D.children.length==1;)T=D,D=T.parentNode;T.readability||this._initializeNode(T)}var V=a.createElement("DIV");i&&(V.id="readability-content");var ie=Math.max(10,T.readability.contentScore*.2);D=T.parentNode;for(var je=D.children,Le=0,N=je.length;Le=ie)Z=!0;else if(q.nodeName==="P"){var pe=this._getLinkDensity(q),Ge=this._getInnerText(q),de=Ge.length;(de>80&&pe<.25||de<80&&de>0&&pe===0&&Ge.search(/\.( |$)/)!==-1)&&(Z=!0)}}Z&&(this.log("Appending node:",q),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(q.nodeName)===-1&&(this.log("Altering sibling:",q,"to div."),q=this._setNodeTag(q,"DIV")),V.appendChild(q),je=D.children,Le-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+V.innerHTML),this._prepArticle(V),this._debug&&this.log("Article content post-prep: "+V.innerHTML),A)T.id="readability-page-1",T.className="page";else{var ge=a.createElement("DIV");for(ge.id="readability-page-1",ge.className="page";V.firstChild;)ge.appendChild(V.firstChild);V.appendChild(ge)}this._debug&&this.log("Article content after paging: "+V.innerHTML);var me=!0,fe=this._getInnerText(V,!0).length;if(fe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,h=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||b>Math.floor(m/3)||!s&&h<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||f===1&&C<75||f>1;if(s&&T){for(var A=0;A1)return T;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return T}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),z8=Fm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),I3=Fm((e,t)=>{var n=q8(),r=z8();t.exports={Readability:n,isProbablyReaderable:r}}),F3={};U8(F3,{Readability:()=>Pl,default:()=>O3,isProbablyReaderable:()=>_3});var B3=R3(I3());H8(F3,R3(I3()));var{Readability:Pl,isProbablyReaderable:_3}=B3,{default:M3,...W8}=B3,O3=M3!==void 0?M3:W8;var G8=wl.alert;var Y="immersiveTranslate",yi="Immersive Translate",L="immersive-translate",Rl="imt";var nn="immersivetranslate.com",V8=`https://config.${nn}/`,iH=`https://app.${nn}/`,ae=oa()||rm()?`https://${nn}/`:`https://test.${nn}/`,Ml=`https://dash.${nn}/`,rt=oa()||rm()?`https://api2.${nn}/`:`https://test-api2.${nn}/`,q3=`https://github.com/${L}/${L}/`,z3=`https://s.${nn}/`,oH=`https://onboarding.${nn}/`,W3=Y+"DeeplGlobalState",Bm=Y+"BingGlobalState",_m=Y+"YandexGlobalState",Om=Y+"BaiduQianfanGlobalConfigStorageKey",G3=Y+"SiliconCloudGlobalConfigStorageKey",V3=Y+"ZhipuGlobalConfigStorageKey";var Nm=Y+"GoogleAccessToken",K3=Y+"AuthFlow",Y3=L+"-config-latest.json",K8=Y+"AuthState",Il=Y+"IframeMessage",sH=Y+"WaitForRateLimit",Fl=Y+"DocumentMessageAsk",Ot=Y+"DocumentMessageTellThirdParty",Un=Y+"showError",xi=Y+"showModal",Bl=Y+"showToast",Q3=Y+"DocumentMessageThirdPartyTell",J3=Y+"DocumentMessageEventUpload",Z3=Y+"DocumentMessageTypeStopJsSDK",_l=Y+"DocumentMessageHandler",Ol=Y+"DocumentSetFloatBallActive",Nl=`${Y}Share`,jl=`${Y}ShowFloatBallGuide`,ro=Y+"DocumentMessageTempEnableSubtitleChanged",Ps=`${Y}ToggleMouseHoverTranslateDirectly`,X3=`${Y}ReqDraft`,$3=`${Y}ResDraft`,Y8=`${Y}Container`,e1=`${Y}SpecifiedContainer`,Ul="buildinConfig",Ms="localConfig",jm="openOptionsPage",t1="translateMangaMenuId",Um="openAboutPage";var Hm="openEbookViewer",qm="openEbookBuilder";var vi=`${Y}PageTranslatedStatus`,Rs=`${Y}MangaTranslatedStatus`,uH=`${Y}PageUrlChanged`,Sr=`${Y}ReceiveCommand`,n1=Y+"LastUseMouseHoverTime",zm=Y+"LastUseInputTime",cr=Y+"LastUseManualTranslatePageTime",lH=`${Y}PopupReceiveMessage`,Si=Y+"DocumentMessageEventTogglePopup",Is=`${V8}default_config.json`,cH=`${Y}Mark`,Jn=`${Y}Root`,r1=`${Y}Walked`,dH=`data-${L}-walked`,a1=`${Y}Paragraph`,i1=`data-${L}-paragraph`,ao=`data-${L}-translation-element-mark`,o1=`${Y}TranslationElementMark`,mH=`${Y}TranslatedMark`,Hl=`${L}-input-injected-css`,s1=`${Y}LoadingId`,Wm=`data-${L}-loading-id`,u1=`${Y}ErrorId`,ql=`data-${L}-error-id`,Q8=`${Y}AtomicBlockMark`,l1=`${Y}ExcludeMark`,pH=`data-${L}-exclude-mark`,J8=`${Y}StayOriginalMark`,gH=`${Y}PreWhitespaceMark`,zl=`${Y}InlineMark`,c1=`${Y}BlockMark`,fH=`${Y}Left`,hH=`${Y}Right`,bH=`${Y}Width`,yH=`${Y}Height`,xH=`${Y}Top`,vH=`${Y}FontSize`,Fs="lastRunTime";var SH=`${Y}GlobalStyleMark`,io=["@","#"],Wl=" --- ",d1=` +`,Lt=`${L}-target-wrapper`,TH=`${L}-pdf-target-container`,Gl=`${L}-target-inner`,CH=`${L}-source-wrapper`,Gm=`${L}-target-translation-block-wrapper`,wH=`${L}-root-translation-theme`,oo=`${Y}RootTranslationTheme`,m1=`${L}-target-translation-vertical-block-wrapper`,EH=`${L}-target-translation-pdf-block-wrapper`,p1=`${L}-target-translation-pre-whitespace`,Vm=`${L}-target-translation-inline-wrapper`;var g1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var f1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],h1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Ml,Ml+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ra="zh-CN",AH=ae+"docs/communities/",kH=q3+"issues/1809",DH=q3+"issues/1179",Vl={type:Y+"ChildFrameToRootFrameIdentifier"},Km=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Bs=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],b1=["ctrl","alt","shift","cmd","command","option","control"];var Kl=oa()?Ml+"#general":"http://localhost:8000/dist/userscript/options/#general",Ym="user_from_plugin",ct="user_info",Yl=ae+"accounts/login?from=plugin",y1=Ml+"#general",LH=ae+"accounts/login?from=plugin&return_url="+encodeURIComponent(y1),x1=Yl+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",v1=Yl+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",_s=ae+"profile/",Os=ae+"auth/pricing/",In=ae+"pricing/",Z8=ae+"download/",X8=ae+"topup?type=open_ai&",$8=ae+"topup?type=deepl&",S1=ae+"topup?type=comics&",PH=In+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",T1=In+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",MH=Z8+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",RH=In+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Ql=In+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Qm=In+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",IH=_s+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",C1=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",w1=X8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",E1=$8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",A1=ae+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",eA=In+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",Jm=_s+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",FH=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",BH=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",_H=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",OH=Os+"?utm_source=extension&utm_medium=extension&utm_campaign=",k1=ae+"docs/usage/",NH=ae+"docs/communities/",Ns=ke().TRANSLATE_FILE_URL,jH=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",D1=Ns+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",L1=`${Ns}download-subtitle/`,P1=`${Ns}pdf-pro/`,M1=`${Ns}text/`,Ti=["deepl","openai","gemini","claude"],tA="G-BHWL0KMJB8",nA="7pr-olTJR6GKAjIW48UD0Q",N3="G-MKMD9LWFTR",j3="sitc4WmvShWYwfU0dANM3Q",U3="G-V5H2F5MJFJ",H3="UBjpGOLISEaY5LVXNj3WvQ";function Jl(){return bl()?[`https://www.google-analytics.com/mp/collect?measurement_id=${tA}&api_secret=${nA}`]:oa?[`https://www.google-analytics.com/mp/collect?measurement_id=${N3}&api_secret=${j3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${U3}&api_secret=${H3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${N3}&api_secret=${j3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${U3}&api_secret=${H3}`]}var js=`https://analytics.${nn}/collect`,rA=`${ae}activities/components/image-pro`;function Zm(e,t){return`${rA}?utm_source=extension&utm_medium=extension&utm_campaign=${e}&lang=${t}`}var R1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",I1="0VmM83i2D1ICuYBf",Zl=`[${Rl}-ctx-divider]`,Xl=`${Rl}_context_preview`;var so=console,Xm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),so.debug(ur.dim(yi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Us=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&so.log(ur.dim(yi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&so.log(ur.green(yi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&so.warn(ur.yellow(yi+" WARN:"),...t)}error(...t){this.#e<=3&&so.error(ur.red(yi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&so.error(ur.red(yi+" FATAL:"),...t)}timing(){return this.level===0?new Xm:{reset:()=>{},stop:()=>{}}}},k=new Us;var $m=/iPhone/i,F1=/iPod/i,B1=/iPad/i,_1=/\biOS-universal(?:.+)Mac\b/i,ep=/\bAndroid(?:.+)Mobile\b/i,O1=/Android/i,uo=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,$l=/Silk/i,ma=/Windows Phone/i,N1=/\bWindows(?:.+)ARM\b/i,j1=/BlackBerry/i,U1=/BB10/i,H1=/Opera Mini/i,q1=/\b(CriOS|Chrome)(?:.+)Mobile/i,z1=/Mobile(?:.+)Firefox\b/i,W1=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function aA(e){return t=>t.test(e)}function Ve(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=aA(n),i={apple:{phone:a($m)&&!a(ma),ipod:a(F1),tablet:!a($m)&&(a(B1)||W1(t))&&!a(ma),universal:a(_1),device:(a($m)||a(F1)||a(B1)||a(_1)||W1(t))&&!a(ma)},amazon:{phone:a(uo),tablet:!a(uo)&&a($l),device:a(uo)||a($l)},android:{phone:!a(ma)&&a(uo)||!a(ma)&&a(ep),tablet:!a(ma)&&!a(uo)&&!a(ep)&&(a($l)||a(O1)),device:!a(ma)&&(a(uo)||a($l)||a(ep)||a(O1))||a(/\bokhttp\b/i)},windows:{phone:a(ma),tablet:a(N1),device:a(ma)||a(N1)},other:{blackberry:a(j1),blackberry10:a(U1),opera:a(H1),firefox:a(z1),chrome:a(q1),device:a(j1)||a(U1)||a(H1)||a(z1)||a(q1)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var tp="DENO",ec="CHROME",tc="FIREFOX";function G1(e){let t=ec;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=tc:/deno/i.test(n)&&(t=tp)}catch{}return e===ec&&t===ec||e===tc&&t===tc||e===tp&&t===tp}function V1(){return G1(ec)}function K1(){return typeof Deno<"u"}function Tr(){return ke().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:G1(tc)}function Zn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Hs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var Y1={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Q1={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Y1,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:Y1,query:()=>{},sendMessage:()=>{}}};var re;K1()?re=Q1:re=globalThis.immersiveTranslateBrowserAPI;var lq=Z1(2),J1=Z1(3);function Z1(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var iA=/\s+/g,oA=/[\t\n\v\f\r ]+/g;function X1(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?sA:uA;return String(e).replace(t.style==="html"?oA:iA,t.trim?lA(n):n)}function sA(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function uA(){return" "}function lA(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var $1={}.hasOwnProperty;function cA(e){return e==null?"":X1(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function dA(e){return J1(" "+cA(e)+" ")}function mA(e){let t=dA(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function xA(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function vA(e,t,n,r){t=TA(t,n,r);let a=[],i;if(t)for(i in t)nc.call(t,i)&&a.push([i,SA(e,t[i])]);return a.length===0?rp():a.sort(CA)}function SA(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of IA){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?s2(e)?"zh-TW":"zh-CN":t:"auto"}var l2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],ap=new Map(l2),FA=new Map(l2.map(([e,t])=>[t,e]));function c2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>FA.get(s));!t&&t!==0&&(t=25);let a=ac(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...ap.keys()]},o=n2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return ap.get(d)}}let[s,u]=o[0],l=ap.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],ip={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},d2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},op={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},sp={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function $(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return $(document?.documentElement?.lang||"en")}var Ci=Y+"CacheKey_";function wi(e,t){let n=Ci+e;return re.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function BA(){let e=re.storage.local.refresh;e&&e()}function up(e,t){let n=Ci+e;return re.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ci)).filter(r=>r!==Ci+ct);if(n.length>0)return re.storage.local.remove(n)}}var dt={get:wi,set:Ei,getExpired:up,setExpired:lp,remove:cp,clear:dp,refresh:BA};function ft(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function m2(e){if(e){let t=new Date(e.createTime),n=_A(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function _A(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function zs(e){if(e?.isPro)return!0;let t=await dt.get(ct,null);return ft(t)}var p2=Y+"SyncStoreKey_";function Nt(e,t){let n=p2+e;return re.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function mt(e,t){let n=p2+e;return re.storage.sync.set({[n]:t})}var g2=Y+"StoreKey_";function Ai(e,t){let n=g2+e;return re.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function f2(e,t){let n=g2+e;return re.storage.local.set({[n]:t})}var h2={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5558,7 +5558,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var x2={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var b2={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5572,7 +5572,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var v2={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var y2={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5585,20 +5585,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var HA=[{code:"zh-CN",messages:y2},{code:"zh-TW",messages:x2},{code:"en",messages:v2}],S2=te()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Di={};for(let e of HA)Di[e.code]=e.messages;async function T2(){try{if(te())return;let e=re.runtime.getURL("locales.json"),t=await K({url:e,responseType:"json",method:"GET",headers:{"Content-Type":"application/json"}});Object.assign(Di,t)}catch{}}function qA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=WA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:P+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function C2(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function zA(e,t,n,r){if(!Di.hasOwnProperty(t)&&!Di.hasOwnProperty(n))return e;let a=C2(Di,t,e);return a===e&&t!==n&&(a=C2(Di,n,e)),qA(a,r)}function WA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function De(e,t,n){return zA(t,e,"en",n)}function w2(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function E2(e){return new Date(e).getTime()}var j=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ci.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=De.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Yl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Yl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=De.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var UA=[{code:"zh-CN",messages:h2},{code:"zh-TW",messages:b2},{code:"en",messages:y2}],x2=te()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],ki={};for(let e of UA)ki[e.code]=e.messages;async function v2(){try{if(te())return;let e=re.runtime.getURL("locales.json"),t=await K({url:e,responseType:"json",method:"GET",headers:{"Content-Type":"application/json"}});Object.assign(ki,t)}catch{}}function HA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=zA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:L+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function S2(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function qA(e,t,n,r){if(!ki.hasOwnProperty(t)&&!ki.hasOwnProperty(n))return e;let a=S2(ki,t,e);return a===e&&t!==n&&(a=S2(ki,n,e)),HA(a,r)}function zA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function De(e,t,n){return qA(t,e,"en",n)}function T2(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function C2(e){return new Date(e).getTime()}var j=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ti.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=De.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Kl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Kl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=De.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Yl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ci.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=De.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:P,href:C1})];mp(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Kl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ti.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=De.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:L,href:S1})];mp(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:De.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=D1,i?o.push(r("proQuotaError.trail",{brandId:P,href:Jm})):o.push(r("proQuotaError.newPackage",{brandId:P,href:s})),mp(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:De.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=A1,i?o.push(r("proQuotaError.trail",{brandId:L,href:Jm})):o.push(r("proQuotaError.newPackage",{brandId:L,href:s})),mp(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:P,href:Jl}));else{let d="";u=="AI"?d=A1:d=k1,o?l.push(r("proQuotaError.trail",{brandId:P,href:Jm})):l.push(r("proQuotaError.package",{brandId:P,href:d,translationService:u})),mp(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:L,href:Ql}));else{let d="";u=="AI"?d=w1:d=E1,o?l.push(r("proQuotaError.trail",{brandId:L,href:Jm})):l.push(r("proQuotaError.package",{brandId:L,href:d,translationService:u})),mp(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function mp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||E2(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:w2(i,"YYYY-MM-DD HH:mm:ss")}))}function oc(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function A2(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function k2(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function sc(e){let{mimeType:t,base64:n}=GA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await um(D2.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await D2(e);return t}async function D2(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=oc(e.body):r=="urlSearchParams"?a.body=A2(e.body):r=="blob"&&e.body&&(a.body=sc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new j("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new j("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of VA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` -`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){k.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){k.error("parse response failed",h)}c&&k.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${nn}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new j("fetchError",m).initNetWork(l.status)}}async function*VA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var KA=new Map;function uc(e){let t=YA(64),n=new CustomEvent(Bl,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{KA.set(t,(i,o)=>{i?a(i):r(o)})})}function YA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var JA="";function Ht(){return JA||lc.version}function lo(){return re.runtime.getManifest().version}function L2(e){let t=Gs(),n=lo();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function Ke(){try{let e=[ke().EBOOK_BUILDER_URL,ke().EBOOK_VIEWER_URL,ke().SUBTITLE_BUILDER_URL,ke().HTML_VIEWER_URL,ke().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+nn];ua()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var Vs=new Map,Fa=class{fromType;logger;constructor(t,n=!1){this.logger=new Hs,n&&this.logger.setLevel("debug"),this.fromType=t,Vs.has(t)||(Vs.set(t,new Map),re.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),b=Vs.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,v);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,v).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Vs.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Vs.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await re.runtime.sendMessage(o);return P2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await re.tabs.sendMessage(i,o);return P2(o,s,this.logger)}}};function P2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new j(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new j("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}var ZA="";function co(){return ZA||globalThis.navigator.userAgent}function Ks(){return co().includes("ImtFxiOS")}function M2(){let t=co().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function fp(){return co().includes("ImtFxAndroid")}function R2(){let e=co();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function I2(){let t=co().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ys(){let e=co();if(Ks()||fp()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var cc=function(){return cc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,XA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Qs(e){return e.then(void 0,function(){}),e}function e7(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function n7(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function r7(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Ba(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function dr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function mo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function $n(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];yt(e,t),dr(e,a7),t[1]=e[0]>>>1,yt(e,t),dr(e,i7),t[1]=e[0]>>>1,yt(e,t)}var dc=[2277735313,289559509],mc=[1291169091,658871167],O2=[0,5],o7=[0,1390208809],s7=[0,944331445];function u7(e,t){var n=r7(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function l7(e){var t;return cc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function c7(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function d7(e){return typeof e!="function"}function m7(e,t){var n=Qs(new Promise(function(r){var a=Date.now();F2(e.bind(null,t),function(){for(var i=[],o=0;o=4}function g7(){var e=window,t=navigator;return er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!J2()}function fc(){var e=window,t=navigator;return er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Ar(){var e=window,t=navigator;return er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Cp(){var e=window,t=e.HTMLElement,n=e.Document;return er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Js(){var e=window;return c7(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Z2(){var e,t,n=window;return er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function f7(){var e=window;return er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function h7(){var e=window;return er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Zs(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function b7(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function y7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function x7(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function wp(){var e=fc(),t=Z2(),n=window,r=navigator,a="connection";return e?er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function v7(){return C7()?-4:S7()}function S7(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(T7())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=w7(a),u=s[0],l=s[1],c=Qs(u.then(function(d){return E7(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function T7(){return Ar()&&!Cp()&&!h7()}function C7(){return Ar()&&Zs()&&Js()}function w7(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(N2("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(Y2(g)&&Qs(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(N2("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function E7(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function nk(){var e=new Date().getFullYear();return Math.max(Er(new Date(e,0,1).getTimezoneOffset()),Er(new Date(e,6,1).getTimezoneOffset()))}function rk(){try{return!!window.sessionStorage}catch{return!0}}function ak(){try{return!!window.localStorage}catch{return!0}}function ik(){if(!(J2()||g7()))try{return!!window.indexedDB}catch{return!0}}function ok(){return!!window.openDatabase}function sk(){return navigator.cpuClass}function uk(){var e=navigator.platform;return e==="MacIntel"&&Ar()&&!Cp()?b7()?"iPad":"iPhone":e}function lk(){return navigator.vendor||""}function ck(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function gk(){return Ar()||wp()}function fk(e){var t;return Cr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return wr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},U2(r),u=0;u`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function mp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||C2(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:T2(i,"YYYY-MM-DD HH:mm:ss")}))}function ic(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function w2(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function E2(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function oc(e){let{mimeType:t,base64:n}=WA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await sm(A2.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await A2(e);return t}async function A2(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=ic(e.body):r=="urlSearchParams"?a.body=w2(e.body):r=="blob"&&e.body&&(a.body=oc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new j("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new j("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let b=d.result;p(b)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of GA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` +`))>=0;){let b=c.slice(0,g).trim();if(c=c.slice(g+1),b.startsWith("event:")||b==="")continue;let h="";if(b.startsWith("data:")&&(h=b.slice(5).trim()),h==="[DONE]")break;let f;try{f=JSON.parse(h??"")}catch(y){k.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(b){k.error("parse response failed",b)}c&&k.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${nn}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new j("fetchError",m).initNetWork(l.status)}}async function*GA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var VA=new Map;function sc(e){let t=KA(64),n=new CustomEvent(Fl,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{VA.set(t,(i,o)=>{i?a(i):r(o)})})}function KA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var QA="";function Ht(){return QA||uc.version}function lo(){return re.runtime.getManifest().version}function k2(e){let t=Ws(),n=lo();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function Ke(){try{let e=[ke().EBOOK_BUILDER_URL,ke().EBOOK_VIEWER_URL,ke().SUBTITLE_BUILDER_URL,ke().HTML_VIEWER_URL,ke().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+nn];oa()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var Gs=new Map,Ia=class{fromType;logger;constructor(t,n=!1){this.logger=new Us,n&&this.logger.setLevel("debug"),this.fromType=t,Gs.has(t)||(Gs.set(t,new Map),re.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),h=Gs.get(m).get(p);if(!h)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=h,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,v);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,v).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Gs.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Gs.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await re.runtime.sendMessage(o);return D2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await re.tabs.sendMessage(i,o);return D2(o,s,this.logger)}}};function D2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new j(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new j("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}var JA="";function co(){return JA||globalThis.navigator.userAgent}function Vs(){return co().includes("ImtFxiOS")}function L2(){let t=co().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function fp(){return co().includes("ImtFxAndroid")}function P2(){let e=co();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function M2(){let t=co().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ks(){let e=co();if(Vs()||fp()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var lc=function(){return lc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,ZA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Ys(e){return e.then(void 0,function(){}),e}function $A(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function t7(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function n7(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Fa(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function dr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function mo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function $n(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];yt(e,t),dr(e,r7),t[1]=e[0]>>>1,yt(e,t),dr(e,a7),t[1]=e[0]>>>1,yt(e,t)}var cc=[2277735313,289559509],dc=[1291169091,658871167],B2=[0,5],i7=[0,1390208809],o7=[0,944331445];function s7(e,t){var n=n7(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function u7(e){var t;return lc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function l7(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function c7(e){return typeof e!="function"}function d7(e,t){var n=Ys(new Promise(function(r){var a=Date.now();R2(e.bind(null,t),function(){for(var i=[],o=0;o=4}function p7(){var e=window,t=navigator;return er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Y2()}function gc(){var e=window,t=navigator;return er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Ar(){var e=window,t=navigator;return er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Cp(){var e=window,t=e.HTMLElement,n=e.Document;return er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Qs(){var e=window;return l7(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Q2(){var e,t,n=window;return er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function g7(){var e=window;return er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function f7(){var e=window;return er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Js(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function h7(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function b7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function y7(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function wp(){var e=gc(),t=Q2(),n=window,r=navigator,a="connection";return e?er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function x7(){return T7()?-4:v7()}function v7(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(S7())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=C7(a),u=s[0],l=s[1],c=Ys(u.then(function(d){return w7(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function S7(){return Ar()&&!Cp()&&!f7()}function T7(){return Ar()&&Js()&&Qs()}function C7(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(_2("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(V2(g)&&Ys(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(_2("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function w7(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function tk(){var e=new Date().getFullYear();return Math.max(Er(new Date(e,0,1).getTimezoneOffset()),Er(new Date(e,6,1).getTimezoneOffset()))}function nk(){try{return!!window.sessionStorage}catch{return!0}}function rk(){try{return!!window.localStorage}catch{return!0}}function ak(){if(!(Y2()||p7()))try{return!!window.indexedDB}catch{return!0}}function ik(){return!!window.openDatabase}function ok(){return navigator.cpuClass}function sk(){var e=navigator.platform;return e==="MacIntel"&&Ar()&&!Cp()?h7()?"iPad":"iPhone":e}function uk(){return navigator.vendor||""}function lk(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function pk(){return Ar()||wp()}function gk(e){var t;return Cr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return wr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},N2(r),u=0;u')}function Pk(){return navigator.pdfViewerEnabled}function Mk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Rk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Ik())return-3;try{return e.canMakePayments()?1:0}catch(t){return Fk(t)}}var Ik=D7;function Fk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Bk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var $2=-1,eb=-2,_k=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Ok=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Nk=["FRAGMENT_SHADER","VERTEX_SHADER"],jk=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],tb="WEBGL_debug_renderer_info",Uk="WEBGL_polygon_mode";function Hk(e){var t,n,r,a,i,o,s=e.cache,u=nb(s);if(!u)return $2;if(!ab(u))return eb;var l=rb()?null:u.getExtension(tb);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function qk(e){var t=e.cache,n=nb(t);if(!n)return $2;if(!ab(n))return eb;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(K2,"/npm-monitoring"),!0),e.send()}catch{}}function iD(e){var t;return e===void 0&&(e={}),Cr(this,void 0,void 0,function(){var n,r,a;return wr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&aD(),n=e.delayFallback,r=e.debug,[4,nD(n)];case 1:return i.sent(),a=Yk({cache:{},debug:r}),[2,rD(a,r)]}})})}var Ep={load:iD,hashComponents:ib,componentsToDebugString:eD};async function Xs(){let e=await Nt("fakeUserId","");e||(e=await ki("fakeUserId",""),e&&await ot("fakeUserId",e));let t=new Date,n=await Nt("installedAt","");return n||(n=await ki("installedAt",""),n&&await ot("installedAt",n)),e?n||(n=new Date(0).toISOString(),await ot("installedAt",n)):(e=await uD(64),await ot("fakeUserId",e)),n||(n=t.toISOString(),await ot("installedAt",n)),{fakeUserId:e,installedAt:n}}var oD=10;async function fo(){let e=await Nt("userTag","");if(e)return e;let{fakeUserId:t}=await Xs(),r=t.charCodeAt(0)%oD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await ot("userTag",e),e}function sD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):lD(i,e)}catch{return sD(64)}}function lD(e,t=32){let n="";for(let a=0;a{}),xc)}async function ub(e,t){try{let n=ke(),r=n.INSTALL_FROM==="firefox_store";if(Ys()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=te(),o=Ke(),s=n.PROD==="1",u=Ht(),l=new Date,{fakeUserId:c,installedAt:d}=await Xs(),m=await fo(),p=await ho(),g=await bo(),h=new Date(d),b=_a(h),f=_a(l),y=b===f,v=24*60*60*1e3,S=l.getTime()-h.getTime()<7*v,w=l.getTime()-h.getTime()<30*v,C=l.getTime()-h.getTime()<365*v,T=Zl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=to.parse(A),I=e.map(F=>{let R=F.params||{};if(D.os&&(R.os_name=D.os.name||"unknown",R.os_version=D.os.version||"unknown",R.os_version_name=D.os.versionName||"unknown"),D.browser){R.browser_name=D.browser.name||"unknown",R.browser_version=D.browser.version||"unknown";let B=Ys();B&&(R.browser_name=B.name,R.browser_version=B.version)}if(D.platform&&(R.platform_type=D.platform.type||"unknown"),D.engine&&(R.engine_name=D.engine.name||"unknown",R.engine_version=D.engine.version||"unknown"),u&&(R.version=u),n.INSTALL_FROM&&(R.install_from=n.INSTALL_FROM),b){R.install_day=hc(h);let B=yc(h);R.install_week=`${B.year}${B.week}`}return R.userscript=i.toString(),y?R.is_new_user_today="1":R.is_new_user_today="0",R.is_new_user_this_week=S?"1":"0",R.is_new_user_this_month=w?"1":"0",R.is_new_user_this_year=C?"1":"0",o?R.main_frame=0:R.main_frame=1,m&&(R.ab_tag=m),p&&(R.ab_group=p),R.campaign=g||"none",{...F,params:R}});T.forEach(async F=>{let R=await $s({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:I})})}),t&&mD(c,I)}catch{}}async function dD(e){return await cD().sendMessage("background:main",e)}function $s(e){return bl()?uc({method:"request",data:e}):te()||hl()?(e.fetchPolyfill=globalThis.GM_fetch,Li(e)):dD({method:"fetch",data:e})}function mD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=bc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);$s({url:Us,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var vc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function hk(){for(var e=0,t=["rec2020","p3","srgb"];e')}function Lk(){return navigator.pdfViewerEnabled}function Pk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Mk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Rk())return-3;try{return e.canMakePayments()?1:0}catch(t){return Ik(t)}}var Rk=k7;function Ik(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Fk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Z2=-1,X2=-2,Bk=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),_k=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Ok=["FRAGMENT_SHADER","VERTEX_SHADER"],Nk=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],$2="WEBGL_debug_renderer_info",jk="WEBGL_polygon_mode";function Uk(e){var t,n,r,a,i,o,s=e.cache,u=eb(s);if(!u)return Z2;if(!nb(u))return X2;var l=tb()?null:u.getExtension($2);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function Hk(e){var t=e.cache,n=eb(t);if(!n)return Z2;if(!nb(n))return X2;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(G2,"/npm-monitoring"),!0),e.send()}catch{}}function aD(e){var t;return e===void 0&&(e={}),Cr(this,void 0,void 0,function(){var n,r,a;return wr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&rD(),n=e.delayFallback,r=e.debug,[4,tD(n)];case 1:return i.sent(),a=Kk({cache:{},debug:r}),[2,nD(a,r)]}})})}var Ep={load:aD,hashComponents:rb,componentsToDebugString:$k};async function Zs(){let e=await Nt("fakeUserId","");e||(e=await Ai("fakeUserId",""),e&&await mt("fakeUserId",e));let t=new Date,n=await Nt("installedAt","");return n||(n=await Ai("installedAt",""),n&&await mt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await mt("installedAt",n)):(e=await sD(64),await mt("fakeUserId",e)),n||(n=t.toISOString(),await mt("installedAt",n)),{fakeUserId:e,installedAt:n}}var iD=10;async function fo(){let e=await Nt("userTag","");if(e)return e;let{fakeUserId:t}=await Zs(),r=t.charCodeAt(0)%iD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await mt("userTag",e),e}function oD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):uD(i,e)}catch{return oD(64)}}function uD(e,t=32){let n="";for(let a=0;a{}),yc)}async function ob(e,t){try{let n=ke(),r=n.INSTALL_FROM==="firefox_store";if(Ks()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=te(),o=Ke(),s=n.PROD==="1",u=Ht(),l=new Date,{fakeUserId:c,installedAt:d}=await Zs(),m=await fo(),p=await ho(),g=await bo(),b=new Date(d),h=Ba(b),f=Ba(l),y=h===f,v=24*60*60*1e3,S=l.getTime()-b.getTime()<7*v,w=l.getTime()-b.getTime()<30*v,C=l.getTime()-b.getTime()<365*v,T=Jl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=to.parse(A),I=e.map(F=>{let R=F.params||{};if(D.os&&(R.os_name=D.os.name||"unknown",R.os_version=D.os.version||"unknown",R.os_version_name=D.os.versionName||"unknown"),D.browser){R.browser_name=D.browser.name||"unknown",R.browser_version=D.browser.version||"unknown";let B=Ks();B&&(R.browser_name=B.name,R.browser_version=B.version)}if(D.platform&&(R.platform_type=D.platform.type||"unknown"),D.engine&&(R.engine_name=D.engine.name||"unknown",R.engine_version=D.engine.version||"unknown"),u&&(R.version=u),n.INSTALL_FROM&&(R.install_from=n.INSTALL_FROM),h){R.install_day=fc(b);let B=bc(b);R.install_week=`${B.year}${B.week}`}return R.userscript=i.toString(),y?R.is_new_user_today="1":R.is_new_user_today="0",R.is_new_user_this_week=S?"1":"0",R.is_new_user_this_month=w?"1":"0",R.is_new_user_this_year=C?"1":"0",o?R.main_frame=0:R.main_frame=1,m&&(R.ab_tag=m),p&&(R.ab_group=p),R.campaign=g||"none",{...F,params:R}});T.forEach(async F=>{let R=await Xs({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:I})})}),t&&dD(c,I)}catch{}}async function cD(e){return await lD().sendMessage("background:main",e)}function Xs(e){return hl()?sc({method:"request",data:e}):te()||fl()?(e.fetchPolyfill=globalThis.GM_fetch,Di(e)):cD({method:"fetch",data:e})}function dD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=hc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Xs({url:js,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var xc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5853,11 +5853,11 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function Ap(e){return e.replace(//g,">")}var Sc=!1,gD=te();function lb(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function fD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&cb(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Oa(i,Wl)){if(a===!0)return!0;continue}if(eu(i.nodeName,t.inlineTags))return!0;if(!kp(i,t))return!1}}return!0}function Dp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(eu(e.nodeName,n)||kp(e,t)){if(Oa(e,m1)||eu(e.nodeName,["BR"]))return!1;if(Oa(e,Wl))return!0;if(kp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return fD(e,t)}else return Oa(e,Wl);return!1}function cb(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Oa(e,d1,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Oa(e,n1))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||eu(e.nodeName,i))}function yo(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!mb(r)&&r.length>=n}function db(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(mb(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function mb(e){for(let t=0;t127)return!1;return!0}function pb(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function gb(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function fb(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function hb(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function bb(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Oa(e,t,n=!1){return Lp(e,t,"1",n)}function Lp(e,t,n,r=!1){return Sc&&!r?e[Jn]?e[Jn]?.[t]===n:!1:e.dataset?.[t]===n}function xo(e){return(e.innerText||e.textContent||"").trim()}function Pp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Tc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function wt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Sc&&!r?(e[Jn]||(e[Jn]={}),e[Jn][t]||(e[Jn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function yb(e,t,n=!1){if(Sc&&!n){if(!e[Jn]||!e[Jn][t])return;delete e[Jn][t]}else delete e.dataset[t]}function xb(e,t,n=!1){return Sc&&!n?!e[Jn]||!e[Jn][t]?void 0:e[Jn][t]:e.dataset[t]}function kp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!eu(e.nodeName,n)}function Se(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ke())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function hn(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function Na(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(gD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${P}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function eu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function vb(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function Sb(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||cb(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function Tb(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function Cb(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function Ap(e){return e.replace(//g,">")}var vc=!1,pD=te();function sb(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function gD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&ub(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(_a(i,zl)){if(a===!0)return!0;continue}if($s(i.nodeName,t.inlineTags))return!0;if(!kp(i,t))return!1}}return!0}function Dp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if($s(e.nodeName,n)||kp(e,t)){if(_a(e,c1)||$s(e.nodeName,["BR"]))return!1;if(_a(e,zl))return!0;if(kp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return gD(e,t)}else return _a(e,zl);return!1}function ub(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&_a(e,l1,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&_a(e,e1))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||$s(e.nodeName,i))}function yo(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!cb(r)&&r.length>=n}function lb(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(cb(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function cb(e){for(let t=0;t127)return!1;return!0}function db(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function mb(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function pb(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function gb(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function fb(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function _a(e,t,n=!1){return Lp(e,t,"1",n)}function Lp(e,t,n,r=!1){return vc&&!r?e[Jn]?e[Jn]?.[t]===n:!1:e.dataset?.[t]===n}function xo(e){return(e.innerText||e.textContent||"").trim()}function Pp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Sc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function wt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(vc&&!r?(e[Jn]||(e[Jn]={}),e[Jn][t]||(e[Jn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function hb(e,t,n=!1){if(vc&&!n){if(!e[Jn]||!e[Jn][t])return;delete e[Jn][t]}else delete e.dataset[t]}function bb(e,t,n=!1){return vc&&!n?!e[Jn]||!e[Jn][t]?void 0:e[Jn][t]:e.dataset[t]}function kp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!$s(e.nodeName,n)}function ve(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ke())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function fn(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function Oa(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(pD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${L}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function $s(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function yb(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function xb(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||ub(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function vb(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function Sb(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function Eb(e,t,n=!1){let r=hD(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function bD(e,t){let n=[],r=[];for(let a=0;a0?h=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function Cb(e,t,n=!1){let r=fD(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function hD(e,t){let n=[],r=[];for(let a=0;a0?bt){let y=[];Mp(b,t,y);for(let v=0;v0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&Mp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:xD([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var wc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ft(u),c=Object.keys(kr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&it()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=kr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=vo);let h=Rp(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function kb(e,t,n){return wc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:yD(r.config,n))}function yD(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Db(e,t,n="en",r){return wc(e,t,n).find(o=>o.id===r)}function nu(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function Lb(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function Pb(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ci.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function xD(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function vD(e,t){let n=Eb(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function Ec(e,t){return e?`
-
${vD(t,e)}
-
${t}
`:t}function So(e){let t=location.search.includes($l);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var Pc,Re,Bb,SD,ru,Mb,_b,kc={},Ob=[],TD=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ua(e,t){for(var n in t)e[n]=t[n];return e}function Nb(e){var t=e.parentNode;t&&t.removeChild(e)}function au(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Pc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Ac(e,o,r,a,null)}function Ac(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++Bb};return a==null&&Re.vnode!=null&&Re.vnode(i),i}function Et(e){return e.children}function To(e,t){this.props=e,this.context=t}function Co(e,t){if(t==null)return e.__?Co(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Ac(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:Mc}),n.__[e]}function W(e){return iu=1,AD(ey,e)}function AD(e,t,n){var r=ou(Eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ey(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Pt,!Pt.u)){Pt.u=!0;var a=Pt.shouldComponentUpdate;Pt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function J(e,t){var n=ou(Eo++,3);!Re.__s&&Op(n.__H,t)&&(n.__=e,n.i=t,Pt.__H.__h.push(n))}function su(e,t){var n=ou(Eo++,4);!Re.__s&&Op(n.__H,t)&&(n.__=e,n.i=t,Pt.__h.push(n))}function Ce(e){return iu=5,he(function(){return{current:e}},[])}function he(e,t){var n=ou(Eo++,7);return Op(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ae(e,t){return iu=8,he(function(){return e},t)}function Ic(e){var t=Pt.context[e.__c],n=ou(Eo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pt)),t.props.value):e.__}function kD(){for(var e;e=$b.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Rc),e.__H.__h.forEach(_p),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){typeof e.type!="function"||e.o||e.type===Et?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Pt=null,Kb&&Kb(e)},Re.__r=function(e){Yb&&Yb(e),Eo=0;var t=(Pt=e.__c).__H;t&&(Bp===Pt?(t.__h=[],Pt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Mc,n.__N=n.i=void 0})):(t.__h.forEach(Rc),t.__h.forEach(_p),t.__h=[])),Bp=Pt},Re.diffed=function(e){Qb&&Qb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($b.push(t)!==1&&Vb===Re.requestAnimationFrame||((Vb=Re.requestAnimationFrame)||DD)(kD)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Mc&&(n.__=n.__V),n.i=void 0,n.__V=Mc})),Bp=Pt=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Rc),n.__h=n.__h.filter(function(r){return!r.__||_p(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Re.__e(r,n.__v)}}),Jb&&Jb(e,t)},Re.unmount=function(e){Zb&&Zb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Rc(r)}catch(a){t=a}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var Xb=typeof requestAnimationFrame=="function";function DD(e){var t,n=function(){clearTimeout(r),Xb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Xb&&(t=requestAnimationFrame(n))}function Rc(e){var t=Pt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pt=t}function _p(e){var t=Pt;e.__c=e.__(),Pt=t}function Op(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ey(e,t){return typeof t=="function"?t(e):t}var ty=["*://*/*","*","*://*"],ry="immersive-translate-wildcard-placeholder.com";function Np(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>ty.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(ty.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return PD(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,ry),m;try{m=new URL(d)}catch{return k.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=LD(l+":",ny(p),ny(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function ny(e){return e.replaceAll(ry,"*")}function LD(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function ze(e,t){return Np(e,t)!==null}function PD(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var ay=null;if(typeof trustedTypes<"u")try{ay=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var iy=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(iy=!0)});function Fc(){return iy}var Un=ay;function sy(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(RD(t,o))return"";i=oy(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let b of n){let f=oy(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";continue}u=f,l+=g(b)||""}h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` -`).filter(b=>!!b.trim()).length>1)return t.innerHTML||"";return s;function p(b){return b.replace(/\s+/g,"")}function g(b){return b instanceof HTMLElement?b.innerText:b?.textContent||""}function h(){let b=p(g(u)),f=p(l);if(b==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` +`;continue}else if(h.length>t){let y=[];Mp(h,t,y);for(let v=0;v0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&Mp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(h.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];h.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:yD([...f,...h,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],b=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?b.push(f):g.push(f))});let h=b.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(h.length>0){for(let f of h)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:g}}var Cc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ft(u),c=Object.keys(kr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&it()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=kr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=vo);let b=Rp(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?b:null}).filter(p=>!!p);function m(p,g){let b=!!p.canary,h=!!p.alpha,f=!!p.beta;return g===e[t]||b&&o||h&&(a||o)||f&&(i||a||o)?!0:!h&&!f&&!b}};function Eb(e,t,n){return Cc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:bD(r.config,n))}function bD(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Ab(e,t,n="en",r){return Cc(e,t,n).find(o=>o.id===r)}function tu(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function kb(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function Db(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ti.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function yD(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function xD(e,t){let n=Cb(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function wc(e,t){return e?`
+
${xD(t,e)}
+
${t}
`:t}function So(e){let t=location.search.includes(Xl);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var Lc,Re,Ib,vD,nu,Lb,Fb,Ac={},Bb=[],SD=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ja(e,t){for(var n in t)e[n]=t[n];return e}function _b(e){var t=e.parentNode;t&&t.removeChild(e)}function ru(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Lc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Ec(e,o,r,a,null)}function Ec(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++Ib};return a==null&&Re.vnode!=null&&Re.vnode(i),i}function Et(e){return e.children}function To(e,t){this.props=e,this.context=t}function Co(e,t){if(t==null)return e.__?Co(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Ec(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:Pc}),n.__[e]}function W(e){return au=1,ED(Xb,e)}function ED(e,t,n){var r=iu(Eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Xb(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Pt,!Pt.u)){Pt.u=!0;var a=Pt.shouldComponentUpdate;Pt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function J(e,t){var n=iu(Eo++,3);!Re.__s&&Op(n.__H,t)&&(n.__=e,n.i=t,Pt.__H.__h.push(n))}function ou(e,t){var n=iu(Eo++,4);!Re.__s&&Op(n.__H,t)&&(n.__=e,n.i=t,Pt.__h.push(n))}function Ce(e){return au=5,he(function(){return{current:e}},[])}function he(e,t){var n=iu(Eo++,7);return Op(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ae(e,t){return au=8,he(function(){return e},t)}function Rc(e){var t=Pt.context[e.__c],n=iu(Eo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pt)),t.props.value):e.__}function AD(){for(var e;e=Zb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Mc),e.__H.__h.forEach(_p),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){typeof e.type!="function"||e.o||e.type===Et?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Pt=null,Gb&&Gb(e)},Re.__r=function(e){Vb&&Vb(e),Eo=0;var t=(Pt=e.__c).__H;t&&(Bp===Pt?(t.__h=[],Pt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Pc,n.__N=n.i=void 0})):(t.__h.forEach(Mc),t.__h.forEach(_p),t.__h=[])),Bp=Pt},Re.diffed=function(e){Kb&&Kb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Zb.push(t)!==1&&Wb===Re.requestAnimationFrame||((Wb=Re.requestAnimationFrame)||kD)(AD)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Pc&&(n.__=n.__V),n.i=void 0,n.__V=Pc})),Bp=Pt=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Mc),n.__h=n.__h.filter(function(r){return!r.__||_p(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Re.__e(r,n.__v)}}),Yb&&Yb(e,t)},Re.unmount=function(e){Qb&&Qb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Mc(r)}catch(a){t=a}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var Jb=typeof requestAnimationFrame=="function";function kD(e){var t,n=function(){clearTimeout(r),Jb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Jb&&(t=requestAnimationFrame(n))}function Mc(e){var t=Pt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pt=t}function _p(e){var t=Pt;e.__c=e.__(),Pt=t}function Op(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Xb(e,t){return typeof t=="function"?t(e):t}var $b=["*://*/*","*","*://*"],ty="immersive-translate-wildcard-placeholder.com";function Np(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>$b.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if($b.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return LD(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let h=u.split("://");l=h[0],l==="*"&&h.length>1&&(l="*",u="https://"+h[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,ty),m;try{m=new URL(d)}catch{return k.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let b=DD(l+":",ey(p),ey(g));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function ey(e){return e.replaceAll(ty,"*")}function DD(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function We(e,t){return Np(e,t)!==null}function LD(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var ny=null;if(typeof trustedTypes<"u")try{ny=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var ry=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(ry=!0)});function Ic(){return ry}var Bn=ny;function iy(e,t,n,r,a){if(!e)return"";for(let h of r||[])if(t?.querySelector(h))return"";let i=n[0],o=n[n.length-1];if(MD(t,o))return"";i=ay(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let h of n){let f=ay(t,h);if(c+=g(h),u&&f!=u){b(),u=f,l=g(h)||"";continue}u=f,l+=g(h)||""}b();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` +`).filter(h=>!!h.trim()).length>1)return t.innerHTML||"";return s;function p(h){return h.replace(/\s+/g,"")}function g(h){return h instanceof HTMLElement?h.innerText:h?.textContent||""}function b(){let h=p(g(u)),f=p(l);if(h==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` `)&&y?.startsWith(` `)||!c.endsWith(` `)&&y?.endsWith(` -`)){s+=l;return}s+=gy(u,a)}else s+=l}}function uy(e,t,n,r,a){if(!e||!t)return"";let i=gy(n,a)||"";return t.replace(i,r)}var jp=globalThis.document?.createElement("div");function MD(e){return jp?(jp.innerHTML=Un?.createHTML(e)||e,jp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function ly(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||MD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function cy(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function dy(e,t,n,r){let a="";return n?a=my(e,t,n):a=py(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function my(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?my(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function py(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return py(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function gy(e,t){if(e instanceof HTMLElement){if(tu(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=my(u,a)}else s+=l}}function oy(e,t,n,r,a){if(!e||!t)return"";let i=my(n,a)||"";return t.replace(i,r)}var jp=globalThis.document?.createElement("div");function PD(e){return jp?(jp.innerHTML=Bn?.createHTML(e)||e,jp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function sy(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||PD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function uy(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let h=o.findIndex(y=>y.tag==m);if(h==-1)return d;let f=o[h];return o=o.slice(h+1),n?``:``}else{let h=e[m];if(!h)return d;if(o.unshift(h),n)return`<${n}${m}>`;if(!h.attributes)return`<${h.tag}>`;let f=a||"";return`<${h.tag} ${r||"id"}=${f}${h.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let h=s[0],f=s[1],y=u[u.length-1];h?.tag==m?(h.end==g?(h.endTag=d,h.end=g+d.length,u.push(h)):h.end==y?.begin&&y.end==g&&(h.endTag=d,h.end=g+d.length,h.times++,u[u.length-1]=h),s.shift()):f?.tag==m&&f.end==h.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function ly(e,t,n,r){let a="";return n?a=cy(e,t,n):a=dy(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function cy(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?cy(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function dy(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return dy(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function my(e,t){if(e instanceof HTMLElement){if(eu(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` `)<0?r=Ze.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=Ze.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}else if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}else return e?.outerHTML;return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function RD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function oy(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Bc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Up(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Dr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ao(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function fy(e,t){let n=t||e.translationService;return Ao(e,n,e.config.translationServices)?Up(e.rule):e.rule}function uu(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var ID=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function tr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Hr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(tr(e,i))return!1;if(tr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!tr(e,o)),c;function d(){return n&&n.display?!!ID.includes(n.display):tr(e,r)}}var At=tr;function Mi(e){return!!e.shadowRoot}function qa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function lu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function qr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Pi(e,t,n=!1){let r=e?.[t];return qr(r,n)}function ko(e,t){return ja(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Hp(e){let{rule:t}=e,n=FD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function FD(e){let t=e.config.loadingTheme;return`${P}-loading-${t}`}function cu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,l1,t.toString());let i=Hp(e);return a.append(n?" ...":Ze.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Do(e,t){return e.querySelector(`[${Wm}='${t}']`)}function by(){document.querySelectorAll(`[${Wm}]`).forEach(t=>{t.remove()})}function yy(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function xy(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Na(n)&&t.push(n)}),t}function qp(e,t){return t?BD(e):_D(e)}function BD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=vy(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Ap(p),m.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function _D(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=vy(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=Ap(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){k.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function zp(e,t){return t?OD(e):ND(e)}function OD(e){let{text:t,variables:n}=e,r=uu(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function ND(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function vy(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Lo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||bb(l)||pb(l)||hb(l)||gb(l)||fb(l)||UD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:yo(i?.trim(),n,r)}function Ri(e){return e.nodeType===Node.ELEMENT_NODE}function Sy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Lr(){return await Nt("fakeUserId","")}async function jD(){return await Nt("installedAt","")}async function Po(e,t){let r=ke().INSTALL_FROM,a=Ht(),i=await jD(),o=await Lr(),s=await qt(),u=!1,l=await mt.get(dt,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await fo(),m=await bo(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await ho();return g&&(p.abGroup=g),p}function du(e,t){let[n,r]=W();return J(()=>{!e||!t||(async()=>{let a=await Wp(e,t);r(a)})()},[e,t,r]),n}async function Wp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!it()&&te()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Nt("installedAt","");new Date(o).getTime()s==n),a=HD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function HD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Cy(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function wy(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{_c[e]=setTimeout(()=>{n("")},t)})}function Ay(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function za(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new j(t,n).initNetWork(e.status)}function jc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function ha(){return fp()?"imtAndroid":Ks()?"imtIOS":te()?"userscript":it()?"safari":Tr()?"firefox":Y1()?"chrome":"other"}function zr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Uc(e){return e?.getAttribute("imt-state")||""}function Wr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Hc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(tr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function ky(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Dy(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function Ly(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var qD={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Oc={...qD};function ba(e){Oc[e]||(Oc[e]=Date.now())}var hy=!1;function Py(){if(hy)return;hy=!0;let e=Oc.initial,t={...Oc};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(Y+"PerformanceData",JSON.stringify(t))}function Ga(e){if(e.beta)return!1;if(it()&&e.spVersion)return Wa(lo(),e.spVersion);if(R2()&&e.gspVersion){let t=I2();if(t)return Wa(t,e.gspVersion)}if(Ks()&&e.ispVersion){let t=M2();if(t)return Wa(t,e.ispVersion)}return!1}function Wa(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Vp(e){e.message?.indexOf("token invalid")>=0&&(mt.remove(dt),mu())}async function My(e){let n=(await qt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),zD(a.toString())}function zD(e){try{it()?Gr(e):globalThis.open(e)}catch{globalThis.open(e)}}function Ry(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function Iy(e){return ft(e)}function qc(e){return Array.isArray(e)?e:e?[e]:[]}function zc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Wc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Fy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function pu(e,t){let n={...e};return jy(n,t),WD(n,t),n}function Ny(e,t,n){let r={...e};return Dr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Dr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function WD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;jy(e,a)}function Dr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=By(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=By(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=qc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!_y(u))return;d=Kp(c,l)}else if(s=="remove_v"){if(!_y(u))return;d=Oy(c,l)}else s==="add"?d=Kp(c,l):s=="remove"&&(d=Oy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Kp(c,l):d=l,r(o,d)})}function jy(e,t){return Dr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Kp(e,t){let n;if(Array.isArray(e)){let r=qc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function By(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function _y(e){let t=Ht();return e&&Wa(t,e)}function Oy(e,t){if(Array.isArray(e)){let n=qc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Uy="userConfig",Gc="userPromptPool",Vc="userObjectPool";async function Kc(){let e=await Vy(Uy)||{},t=await Ii(Gc)||{},n=await Ii(Vc)||{};return GD(e,t,n)}async function Hy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Yp(e);await Gy(Uy,t),await Pr(Gc,n),await Pr(Vc,r)}function Yp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return qy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),zy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function GD(e,t,n){return qy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),zy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function qy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function zy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Va(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Wy(r);for(let o of i)delete a[o]}),n}function Qp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Wy(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Wy(e){let t=kr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=vo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Ky(e,t){return Yy(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function Yy(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>Yy(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Dr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),JD(l),QD(n,u,l),l=await eL(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Jy(){if(le.PROD==="1")return{};let e={};if(le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(le.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=le.DEEPL_PROXY_ENDPOINT),le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}le.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=le.IMMERSIVE_TRANSLATE_SERVICE);let t={};return le.DEBUG==="1"&&(t.debug=!0,t.cache=!1),le.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await re.storage.local.get(Ms);if(e[Ms]){let t=e[Ms],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await re.storage.local.set({[Ms]:e})}async function Zy(e){await re.storage.local.set({[Hl]:e})}async function Xy(){return le.DEBUG==="1"?void 0:(await re.storage.local.get(Hl))[Hl]}async function Yc(){let e=await Xy(),n={...Gs(),...vc,buildinConfigUpdatedAt:le.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function ln(){return Kc()}function Vr(e){return Hy(e)}async function Gy(e,t){await re.storage.sync.set({[e]:t})}async function Vy(e){return(await re.storage.sync.get(e))[e]}async function Pr(e,t){await re.storage.local.set({[e]:t})}async function Ii(e){return(await re.storage.local.get(e))[e]}var $y={};function Qc(e){return $y[e]}function e9(e,t){$y[e]=t}var VD=async()=>{let e=["zh-CN"];try{e=await re.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>S2.find(a=>a===r));return n||"en"},Gs=()=>{let e={...vc,buildinConfigUpdatedAt:le.BUILD_TIME};return{...e,targetLanguage:Ia,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function KD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function YD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ia;let n=await Nt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Qy(l,r[s]))}),Dr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Qy(l,n[s]))}),Dr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function JD(e){try{let t=await Nt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Qy(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function ZD(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Nt("installedAt",""),p=Number(await ki("translage_page_daily",0)),g=Number(await Nt(cr,0)),h;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function $D(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function eL(e,t){let n=await tL(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=pu(e[o],t[o]));else if(o==="translationServices")t9(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(te()||it()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?Ny(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(le.PROD==="0"&&le.DEV_RULES){let s=JSON.parse(le.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function tL(){let e={};if(!te()&&re.commands&&re.commands.getAll){let t=await re.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function n9(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Ky(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Dr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&t9(i,e),s&&(r=pu(r,s))}),r}function Ka(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function nL(e,t){return e<>>32-t}function Zc(e,t,n,r,a,i){return Ka(nL(Ka(Ka(t,e),Ka(r,i)),a),n)}function bn(e,t,n,r,a,i,o){return Zc(t&n|~t&r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return Zc(t&r|n&~r,e,t,a,i,o)}function xn(e,t,n,r,a,i,o){return Zc(t^n^r,e,t,a,i,o)}function vn(e,t,n,r,a,i,o){return Zc(n^(t|~r),e,t,a,i,o)}function Jc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Jp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Jc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Jc(a.concat(Jp(t)),512+t.length*8),r9(Jc(i.concat(o),512+128))}function a9(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Zp(e){return unescape(encodeURIComponent(e))}function i9(e){return rL(Zp(e))}function iL(e){return a9(i9(e))}function o9(e,t){return aL(Zp(e),Zp(t))}function oL(e,t){return a9(o9(e,t))}function nr(e,t,n){return t?n?o9(t,e):oL(t,e):n?i9(e):iL(e)}var Ro=[],iK=1e3*3600*24;async function Xc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function s9(e){let t=`${P}-${e.service}@${e.from}->${e.to}`;return await lL(t,{...e,createAt:new Date().getTime()})}async function u9(e){let t=nr(e.originalText),n=`${P}-${e.service}@${e.from}->${e.to}`;return await uL(n,t)}async function uL(e,t){let n=await Xc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function lL(e,t){let n=await Xc(e);return(await l9()).includes(e)||await cL(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function cL(e){let t="cache_list",n=await Xc(P+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Ro.push(e)},a.onerror=i=>{n.close()}}async function l9(){if(Ro&&Ro.length>0)return Ro;let e=await Xc(P+"-cacheList","cache_list");return Ro=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Ro}async function c9(){try{let t=(await l9()).map(r=>dL(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function dL(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var $c="Original";function Ye(){return $c}function _n(e){$c=e,m9($c);let t=new CustomEvent(Ot,{detail:JSON.stringify({type:"updatePageStatus",payload:$c})});document.dispatchEvent(t)}var d9="Original";function Io(){return d9}function mr(e,t){if(t)return;d9=e;let n=new CustomEvent(Rs,{detail:e});document.dispatchEvent(n)}var g9="auto",e0="auto",p9="auto";function f9(e){g9=e}function rr(e){e0=e}function pt(){return e0!=="auto"?e0:p9!=="auto"?p9:g9}function t0(){return e0}function Fi(e){return e?.id?.endsWith("pdfWebPage")||!1}function Bi(e){try{if(!e||!Fi(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function Xp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function n0(e){return $p(JSON.stringify(e))}async function $p(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var pr,tg=0,r0=!1,gu="initial",ng=!1,h9="",b9,y9,rg=!1,eg=new Map;async function Fo(e,t,n,r){if(rg=!1,y9=e.sourceProgram,b9=e.specialAiAssistant,r!=null&&ng&&pr||pr&&h9==n&&!n.trim())return;gu="initial",pr=void 0,ng=r||!1;let a=e.rule.bodyRule;if(r0=!1,!n||!a||!e.isPro||(tg=(a.contextTimeout||0)/100,tg<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(r0=i.enableAIContext||!1,!!r0&&e.user?.token)){gu="requesting";try{let o=await $p(n);if(eg.has(o)){pr=eg.get(o);return}let s=await K({url:rt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});h9=n,pr={theme:s.theme,termsRaw:s.terms,terms:mL(s.terms)},eg.set(o,pr)}catch{}finally{gu="finished"}k.debug("requestTermsByContext contextTerms",pr)}}function x9(){ng||(gu="initial",pr=void 0)}function v9(){rg=!0}function a0(){return b9?null:{contextTerms:pr,used:rg,sourceProgram:y9}}async function S9(){if(!(!r0||gu=="initial")){for(let e=0;ee.includes(n)):[]}function mL(e){let t=[];return e.split(` -`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var _e={},Kr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return _e.getIsDulSubtitle();if(n==="getPageStatus")return Ye();n==="updateContextState"&&await _e.updateContextState(r);let a=await _e.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await _e.translateTheWholePage(r),ot(cr,i);else if(n==="translateTheMainPage")await _e.translateTheMainPage(r),ot(cr,i);else if(n==="translateToThePageEndImmediately")await _e.translateToThePageEndImmediately(r),ot(cr,i);else if(n==="toggleTranslateManga")await _e.toggleTranslateManga(),ot(cr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Fi(a?.rule)){let s=Bi(a.rule);Bo(!0,s||o);return}await _e.toggleTranslatePage(r),ot(cr,i)}else if(n==="toggleTranslateTheWholePage")await _e.toggleTranslateTheWholePage(r),ot(cr,i);else if(n==="toggleTranslateTheMainPage")await _e.toggleTranslateTheMainPage(r),ot(cr,i);else if(n==="toggleOnlyTransation")await _e.ensureSwitchTranslationMode(r),ot(cr,i);else if(n=="toggleEnableEditTranslation")_e.toggleEnableEditTranslation();else if(n==="translatePage")await _e.translatePage(a,r),ot(cr,i);else if(n==="toggleTranslationMask")await _e.toggleTranslationMask(r);else if(n==="restorePage")_e.restorePage();else if(n==="retryFailedParagraphs")_e.retryFailedParagraphs();else if(n=="change_translate_service")_e.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await _e.switchTranslationMode(r.mode),await _e.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")_e.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(jl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await _e.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Ps,{detail:r}));else if(n==="translateWithOpenAI")await _e.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await _e.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await _e.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await _e.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await _e.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await _e.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await _e.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await _e.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await _e.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Ke()||await _e.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Ke())return JSON.stringify(a);await st(5e3)}else if(n==="inputSelectedTextTranslate")await _e.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return _e.popupEventReport(a,r);if(n==="updateFloatBallEnable")return _e.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}})):n===r1&&await _e.translateSelectImage(a,r)}};function C9(e){Object.assign(_e,e)}function w9(e){Object.assign(_e,e)}function E9(e){Object.assign(_e,e)}var pL=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ye();if(n==="getCurrentPageLanguage"){let a=pt();return _e.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return rr(r),pt();if(n==="getContextString"){let a=_e.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=_e.getPureGlobalContext();return Bi(a?.rule)}else if(n=="getAIContextInfo")return a0()}},i0,o0;function A9(){let e=s0();Ke()||gL(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function s0(){return i0||(i0=new Fa("content_script",!1).getConnection("main",Kr),i0)}function gL(){return o0||(o0=new Fa("content_script",!1).getConnection("main_sync",pL,{sync:!0}),o0)}var ag=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],u0="https://transmart.qq.com/api/imt",ya=class e{static langMapReverse=new Map(ag.map(([t,n])=>[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await K({url:u0,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function fL(e,t){return Math.floor(Math.random()*(t-e+1))+e}var hL=30,ig="RATE_LIMITER_TICKS",_o=class e{static strictTicks={};static clearStrictTicks(){Pr(ig,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Ii(ig)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Pr(ig,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=fL(4,hL);await st(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ct(e){return await s0().sendMessage("background:main",e)}function K(e){return bl()?uc({method:"request",data:e}):te()||hl()?(e.fetchPolyfill=globalThis.GM_fetch,Li(e)):ct({method:"fetch",data:e})}function Sn(){return te()?qt():ct({method:"getConfig"})}function Wt(e){return te()?Vr(e):ct({method:"setUserConfig",data:e})}function Mt(){return te()?ln():ct({method:"getUserConfig"})}function On(){return te()?Yt():ct({method:"getLocalConfig"})}function xa(e){return te()?zt(e):ct({method:"setLocalConfig",data:e})}function k9(e){return te()?Zy(e):ct({method:"setBuildinConfig",data:e})}async function Be(e){if(e.text){let n=ic(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(te()||it()){if(e.translateService&&!Cc.includes(e.translateService))return Promise.resolve("auto");let r=m2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ct({method:"detectLanguage",data:e});return Promise.resolve(t)}function D9(){return ct({method:"detectTabLanguage"})}async function l0(e){let t=await Be({text:e,pageLangs:["en"]});try{if(te()||it()){let n=e.substring(0,200);t=await ya.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function m9(e){let t=new CustomEvent(Si,{detail:e});if(document.dispatchEvent(t),te())return;s0().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function L9(e){return te()?u9(e):ct({method:"queryParagraphCache",data:e})}async function P9(e){if(te()){await s9(e);return}return ct({method:"setParagraphCache",data:e})}async function M9(){if(te())return Promise.resolve();await ct({method:"mockRequest"})}function Ya(e=!1,t=""){return document.querySelector(`meta[name=${P}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):te()?(re.runtime.openOptionsPage(e,t),Promise.resolve()):ct({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Qa(e=""){return te()||it()?ke().OPTIONS_URL:re.runtime.getURL("options.html")}function R9(e=""){return re&&re.runtime&&re.runtime.getURL?re.runtime.getURL("options.html"):""}function c0(e=!1){return te()?(re.extra.openAboutPage(e),Promise.resolve()):ct({method:"openAboutPage"})}function Gr(e){return te()?(re.extra.openInTab(e),Promise.resolve()):ct({method:"openInTab",data:e})}function I9(e=!1){return te()?(re.extra.openEbookViewerPage(e),Promise.resolve()):ct({method:"openEbookViewerPage"})}function F9(e=!1){return te()?(re.extra.openEbookBuilderPage(e),Promise.resolve()):ct({method:"openEbookBuilderPage"})}function d0(e){it()}function Bo(e=!1,t){return te()?(re.extra.openPdfViewerPage(e),Promise.resolve()):ct({method:"openPdfViewerPage",data:{url:t}})}function B9(e=!1){return te()?(re.extra.openSubtitleBuilderPage(e),Promise.resolve()):ct({method:"openSubtitleBuilderPage"})}function fu(e){return te()?Promise.resolve():ct({method:"setBadge",data:{text:e}})}function _9(){return te()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ct({method:"autoSyncLatestConfig"})}function m0(e,t=!1){return te()?re.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function O9(e,t){return te()||le.MOCK==="1"?_o.getDelay(e,t):ct({method:"getDelay",data:{key:e,options:t}})}async function N9(){return te()?!1:ct({method:"getIsSupportIsOnToolbar"})}async function j9(){return te()?!1:ct({method:"getIsOnToolbar"})}async function og(){if(!te())return ct({method:"updateVideoSubtitleStatus"})}function _i({targetLanguage:e,text:t}){te()||ct({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function mu(){te()||ct({method:"updateImageMenu"})}async function U9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",sg(t),"AES-GCM",!0,["encrypt","decrypt"]),a=sg(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:sg(n)},r,a);return bL(i)}catch{return Promise.reject("Encryption failed")}}function bL(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=B.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let O=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),O.enableAIContext&&(L.ai_assistant="ai_context"),O&&(O.provider&&(L.translation_service_provider=O.provider),n.translationService==="openai"&&O.provider==="custom"&&(O.apiUrl?O.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),O.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=hc(y);let O=yc(y);L.install_week=`${O.year}${O.week}`}if(n.user){let O=g2(n.user);O&&Object.keys(O).forEach(z=>{L[z]=O[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=T?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let O=n.url;try{let z=new URL(O);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...B,params:L}});if(i)return;I.forEach(async B=>{let L=await K({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&yL(p,R),n.config.enablePerformanceReport&&SL(n,R)}catch(r){k.debug("report error",r)}}function yL(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};H9(r);let a=Date.now()+(Math.random()*100).toFixed(0);K({url:Us,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var xL=Date.now(),vL=["translate_page","translate_video_subtitle"];function SL(e,t){try{t.forEach(async n=>{if(!vL.includes(n.name)||e.config.performanceBlockUrls?.some(l=>ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};H9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-xL},s=await U9(JSON.stringify(o),F1,B1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);K({url:Us,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function H9(e){return e?.install_day&&(e.install_day=bc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Ja(e){return e!=null}function W9(e,t,n){return`${e.type}#${t}#${n}`}function G9(e,t,n,r,a){return{body:a,id:r,type:W9(e,t,n)}}function TL(e,t,n,r){return{id:n,response:r,type:W9(e,"ask",t)}}function V9(e,t,n,r){if(Ja(r)){let a=r.type;if(Ja(a)&&Ja(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function CL(e,t,n){if(Ja(n)){let r=n.type;if(Ja(r)&&Ja(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function wL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function EL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;CL(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function AL(e,t,n,r){let a=i=>{let o=i.data;V9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function q9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(V9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(TL(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function kL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(G9(t,"tell",n,i,r),a)}async function z9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await EL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(G9(n,"ask",r,s,a),i),u}var Za=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;q9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ja(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await z9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(AL(this.thisWindow,this.protocol,t,n))}tell(t,n){kL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(q9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return z9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){wL(this.listeners)}};var K9;async function Y9(){if(Ke()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Za.iframe(Kl,"*",{targetWindow:t});K9=n,await Za.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function Q9(){return K9}function J9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ee=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Ab(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof j?new j(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f?.callback?.(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let S=p[b],w=0;for(let C=0;C{let w=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(w=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(T=>T.text),forces:f.tempSentences.map(T=>T.force),xpaths:f.tempSentences.map(T=>T.xpath||""),from:w,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=p1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let T=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(T=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=qr(this.serviceConfig);if(f.tempSentences.forEach((O,z)=>{let V=qp({text:O.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);O.force!==!0&&(V&&V.text&&V.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:O,from:w,to:f.to})}let I="";T&&T.length>=2?I=A.map((O,z)=>{let{item:V}=O;return z===A.length-1?V.text:V.text+T[0]+(z+1)+T[1]}).join(""):I=A.map(({item:O})=>O.text).join(C);let F=await this.translate({text:I,from:w,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:R}=F,B=[];if(T&&T.length>=2){let O=`${T[0]}\\d+${T[1]}`;T&&T.length>=3&&(O=T[2]);let z=new RegExp(O,"g");B=R.split(z)}else B=R.split(C);let L=[];if(B.length>A.length){for(let O=0;OO.text);return D=qr(this.serviceConfig,!0),L.forEach((O,z)=>{let V=A[z],ie=V.index,je=V.variables||{};Object.keys(je).length>0&&(O=zp({text:O,delimiters:D,variables:je},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ie]=O}),{sourceTempSentences:f.tempSentences,text:_,from:F.from,to:F.to}}};m.push(S().then(w=>{let{text:C,sourceTempSentences:T}=w;for(let A=0;A{if(w instanceof j&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=qr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=qp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=qr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=zp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Be({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Oo="input is invalid type",ug=typeof window=="object",Xa=ug?window:{};Xa.JS_SHA256_NO_WINDOW&&(ug=!1);var DL=!ug&&typeof self=="object",LL=!Xa.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;LL?Xa=global:DL&&(Xa=self);var mQ=!Xa.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,pQ=typeof define=="function"&&define.amd,hu=!Xa.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ce="0123456789abcdef".split(""),PL=[-2147483648,8388608,32768,128],Mr=[24,16,8,0],p0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],g0=["hex","array","digest","arrayBuffer"],rn=[];(Xa.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});hu&&(Xa.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Z9=function(e,t){return function(n){return new an(t,!0).update(n)[e]()}},$9=function(e){var t=Z9("hex",e);t.create=function(){return new an(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};an.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=PL[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};an.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+p0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+p0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+p0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+p0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};an.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ce[e>>28&15]+ce[e>>24&15]+ce[e>>20&15]+ce[e>>16&15]+ce[e>>12&15]+ce[e>>8&15]+ce[e>>4&15]+ce[e&15]+ce[t>>28&15]+ce[t>>24&15]+ce[t>>20&15]+ce[t>>16&15]+ce[t>>12&15]+ce[t>>8&15]+ce[t>>4&15]+ce[t&15]+ce[n>>28&15]+ce[n>>24&15]+ce[n>>20&15]+ce[n>>16&15]+ce[n>>12&15]+ce[n>>8&15]+ce[n>>4&15]+ce[n&15]+ce[r>>28&15]+ce[r>>24&15]+ce[r>>20&15]+ce[r>>16&15]+ce[r>>12&15]+ce[r>>8&15]+ce[r>>4&15]+ce[r&15]+ce[a>>28&15]+ce[a>>24&15]+ce[a>>20&15]+ce[a>>16&15]+ce[a>>12&15]+ce[a>>8&15]+ce[a>>4&15]+ce[a&15]+ce[i>>28&15]+ce[i>>24&15]+ce[i>>20&15]+ce[i>>16&15]+ce[i>>12&15]+ce[i>>8&15]+ce[i>>4&15]+ce[i&15]+ce[o>>28&15]+ce[o>>24&15]+ce[o>>20&15]+ce[o>>16&15]+ce[o>>12&15]+ce[o>>8&15]+ce[o>>4&15]+ce[o&15];return this.is224||(u+=ce[s>>28&15]+ce[s>>24&15]+ce[s>>20&15]+ce[s>>16&15]+ce[s>>12&15]+ce[s>>8&15]+ce[s>>4&15]+ce[s&15]),u};an.prototype.toString=an.prototype.hex;an.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};an.prototype.array=an.prototype.digest;an.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function f0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Oo);if(hu&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!hu||!ArrayBuffer.isView(e)))throw new Error(Oo)}else throw new Error(Oo);e.length>64&&(e=new an(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}an.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}f0.prototype=new an;f0.prototype.finalize=function(){if(an.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();an.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),an.prototype.finalize.call(this)}};var No=$9();No.sha256=No;No.sha224=$9(!0);No.sha256.hmac=e6();No.sha224.hmac=e6(!0);var t6=No;var n6=t6.sha256;function Hn(e){return Promise.resolve(n6(e))}function jo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=n6.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function r6(e,t){let n=await ar(e,t);return jo(n)}async function h0(e,t){let n=ML(t),r=await ar(e,n);return jo(r)}function ML(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var a6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],bu=class e extends Ee{static langMap=new Map(a6);maxTextGroupLength=50;static langMapReverse=new Map(a6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new j("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function MD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function ay(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Fc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Up(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Dr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ao(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function py(e,t){let n=t||e.translationService;return Ao(e,n,e.config.translationServices)?Up(e.rule):e.rule}function su(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var RD=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function tr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Ur(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(tr(e,i))return!1;if(tr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!tr(e,o)),c;function d(){return n&&n.display?!!RD.includes(n.display):tr(e,r)}}var At=tr;function Pi(e){return!!e.shadowRoot}function Ha(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function uu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Hr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Li(e,t,n=!1){let r=e?.[t];return Hr(r,n)}function ko(e,t){return Na(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Hp(e){let{rule:t}=e,n=ID(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function ID(e){let t=e.config.loadingTheme;return`${L}-loading-${t}`}function lu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,s1,t.toString());let i=Hp(e);return a.append(n?" ...":Ze.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Do(e,t){return e.querySelector(`[${Wm}='${t}']`)}function fy(){document.querySelectorAll(`[${Wm}]`).forEach(t=>{t.remove()})}function hy(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function by(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Oa(n)&&t.push(n)}),t}function qp(e,t){return t?FD(e):BD(e)}function FD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,b)=>{if(g=="id"&&u[b+2]=="=")return p;let h=l++;return t[`${h}`]=yy(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Ap(p),m.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function BD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,b)=>g.tl&&!b.tl?1:!g.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,b,h)=>{if(b=="id"&&l[h+2]=="=")return g;let f=c++;return t[`${f}`]=yy(b,d),o.length>2?g.replace(b,`<${o[2]}${f}>`):g.replace(b,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let b=c++;return t[`${b}`]=Ap(g),o.length>2?p.replace(g,`<${o[2]}${b}>`):p.replace(g,`${o[0]}${b}${o[1]}`)})})}catch(d){k.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function zp(e,t){return t?_D(e):OD(e)}function _D(e){let{text:t,variables:n}=e,r=su(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function OD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function yy(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Lo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||fb(l)||db(l)||gb(l)||mb(l)||pb(l)||jD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:yo(i?.trim(),n,r)}function Mi(e){return e.nodeType===Node.ELEMENT_NODE}function xy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Lr(){return await Nt("fakeUserId","")}async function ND(){return await Nt("installedAt","")}async function Po(e,t){let r=ke().INSTALL_FROM,a=Ht(),i=await ND(),o=await Lr(),s=await qt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await fo(),m=await bo(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await ho();return g&&(p.abGroup=g),p}function cu(e,t){let[n,r]=W();return J(()=>{!e||!t||(async()=>{let a=await Wp(e,t);r(a)})()},[e,t,r]),n}async function Wp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!it()&&te()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Nt("installedAt","");new Date(o).getTime()s==n),a=UD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function UD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Sy(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function Ty(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Bc[e]=setTimeout(()=>{n("")},t)})}function wy(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function qa(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new j(t,n).initNetWork(e.status)}function Nc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function ga(){return fp()?"imtAndroid":Vs()?"imtIOS":te()?"userscript":it()?"safari":Tr()?"firefox":V1()?"chrome":"other"}function qr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function jc(e){return e?.getAttribute("imt-state")||""}function zr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Uc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(tr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Ey(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Ay(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function ky(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var HD={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},_c={...HD};function fa(e){_c[e]||(_c[e]=Date.now())}var gy=!1;function Dy(){if(gy)return;gy=!0;let e=_c.initial,t={..._c};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(Y+"PerformanceData",JSON.stringify(t))}function Wa(e){if(e.beta)return!1;if(it()&&e.spVersion)return za(lo(),e.spVersion);if(P2()&&e.gspVersion){let t=M2();if(t)return za(t,e.gspVersion)}if(Vs()&&e.ispVersion){let t=L2();if(t)return za(t,e.ispVersion)}return!1}function za(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Vp(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),du())}async function Ly(e){let n=(await qt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),qD(a.toString())}function qD(e){try{it()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function Py(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function My(e){return ft(e)}function Hc(e){return Array.isArray(e)?e:e?[e]:[]}function qc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function zc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ry(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function mu(e,t){let n={...e};return Oy(n,t),zD(n,t),n}function _y(e,t,n){let r={...e};return Dr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Dr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function zD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;Oy(e,a)}function Dr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Iy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,b]=Iy(i);o=m+"."+p,s=g,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Hc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!Fy(u))return;d=Kp(c,l)}else if(s=="remove_v"){if(!Fy(u))return;d=By(c,l)}else s==="add"?d=Kp(c,l):s=="remove"&&(d=By(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Kp(c,l):d=l,r(o,d)})}function Oy(e,t){return Dr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Kp(e,t){let n;if(Array.isArray(e)){let r=Hc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Iy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Fy(e){let t=Ht();return e&&za(t,e)}function By(e,t){if(Array.isArray(e)){let n=Hc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Ny="userConfig",Wc="userPromptPool",Gc="userObjectPool";async function Vc(){let e=await Wy(Ny)||{},t=await Ri(Wc)||{},n=await Ri(Gc)||{};return WD(e,t,n)}async function jy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Yp(e);await zy(Ny,t),await Pr(Wc,n),await Pr(Gc,r)}function Yp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Uy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Hy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function WD(e,t,n){return Uy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Hy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Uy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Hy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ga(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=qy(r);for(let o of i)delete a[o]}),n}function Qp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=qy(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function qy(e){let t=kr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=vo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Gy(e,t){return Vy(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function Vy(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>Vy(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Dr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await QD(l),YD(n,u,l),l=await $D(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Yy(){if(le.PROD==="1")return{};let e={};if(le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(le.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=le.DEEPL_PROXY_ENDPOINT),le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}le.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=le.IMMERSIVE_TRANSLATE_SERVICE);let t={};return le.DEBUG==="1"&&(t.debug=!0,t.cache=!1),le.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await re.storage.local.get(Ms);if(e[Ms]){let t=e[Ms],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await re.storage.local.set({[Ms]:e})}async function Qy(e){await re.storage.local.set({[Ul]:e})}async function Jy(){return le.DEBUG==="1"?void 0:(await re.storage.local.get(Ul))[Ul]}async function Kc(){let e=await Jy(),n={...Ws(),...xc,buildinConfigUpdatedAt:le.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function ln(){return Vc()}function Gr(e){return jy(e)}async function zy(e,t){await re.storage.sync.set({[e]:t})}async function Wy(e){return(await re.storage.sync.get(e))[e]}async function Pr(e,t){await re.storage.local.set({[e]:t})}async function Ri(e){return(await re.storage.local.get(e))[e]}var Zy={};function Yc(e){return Zy[e]}function Xy(e,t){Zy[e]=t}var GD=async()=>{let e=["zh-CN"];try{e=await re.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>x2.find(a=>a===r));return n||"en"},Ws=()=>{let e={...xc,buildinConfigUpdatedAt:le.BUILD_TIME};return{...e,targetLanguage:Ra,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function VD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function KD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ra;let n=await Nt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Ky(l,r[s]))}),Dr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Ky(l,n[s]))}),Dr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function QD(e){try{let t=await Nt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Ky(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function JD(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Nt("installedAt",""),p=Number(await Ai("translage_page_daily",0)),g=Number(await Nt(cr,0)),b;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function XD(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function $D(e,t){let n=await eL(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=mu(e[o],t[o]));else if(o==="translationServices")$y(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(te()||it()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?_y(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(le.PROD==="0"&&le.DEV_RULES){let s=JSON.parse(le.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function eL(){let e={};if(!te()&&re.commands&&re.commands.getAll){let t=await re.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function e9(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Gy(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Dr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&$y(i,e),s&&(r=mu(r,s))}),r}function Va(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function tL(e,t){return e<>>32-t}function Jc(e,t,n,r,a,i){return Va(tL(Va(Va(t,e),Va(r,i)),a),n)}function hn(e,t,n,r,a,i,o){return Jc(t&n|~t&r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return Jc(t&r|n&~r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return Jc(t^n^r,e,t,a,i,o)}function xn(e,t,n,r,a,i,o){return Jc(n^(t|~r),e,t,a,i,o)}function Qc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Jp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Qc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Qc(a.concat(Jp(t)),512+t.length*8),t9(Qc(i.concat(o),512+128))}function n9(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Zp(e){return unescape(encodeURIComponent(e))}function r9(e){return nL(Zp(e))}function aL(e){return n9(r9(e))}function a9(e,t){return rL(Zp(e),Zp(t))}function iL(e,t){return n9(a9(e,t))}function nr(e,t,n){return t?n?a9(t,e):iL(t,e):n?r9(e):aL(e)}var Ro=[],oK=1e3*3600*24;async function Zc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function i9(e){let t=`${L}-${e.service}@${e.from}->${e.to}`;return await uL(t,{...e,createAt:new Date().getTime()})}async function o9(e){let t=nr(e.originalText),n=`${L}-${e.service}@${e.from}->${e.to}`;return await sL(n,t)}async function sL(e,t){let n=await Zc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function uL(e,t){let n=await Zc(e);return(await s9()).includes(e)||await lL(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function lL(e){let t="cache_list",n=await Zc(L+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Ro.push(e)},a.onerror=i=>{n.close()}}async function s9(){if(Ro&&Ro.length>0)return Ro;let e=await Zc(L+"-cacheList","cache_list");return Ro=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Ro}async function u9(){try{let t=(await s9()).map(r=>cL(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function cL(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var Xc="Original";function Ye(){return Xc}function _n(e){Xc=e,c9(Xc);let t=new CustomEvent(Ot,{detail:JSON.stringify({type:"updatePageStatus",payload:Xc})});document.dispatchEvent(t)}var l9="Original";function Io(){return l9}function mr(e,t){if(t)return;l9=e;let n=new CustomEvent(Rs,{detail:e});document.dispatchEvent(n)}var m9="auto",$c="auto",d9="auto";function p9(e){m9=e}function rr(e){$c=e}function pt(){return $c!=="auto"?$c:d9!=="auto"?d9:m9}function e0(){return $c}function Ii(e){return e?.id?.endsWith("pdfWebPage")||!1}function Fi(e){try{if(!e||!Ii(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function Xp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function t0(e){return $p(JSON.stringify(e))}async function $p(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var pr,tg=0,n0=!1,pu="initial",ng=!1,g9="",f9,h9,rg=!1,eg=new Map;async function Fo(e,t,n,r){if(rg=!1,h9=e.sourceProgram,f9=e.specialAiAssistant,r!=null&&ng&&pr||pr&&g9==n&&!n.trim())return;pu="initial",pr=void 0,ng=r||!1;let a=e.rule.bodyRule;if(n0=!1,!n||!a||!e.isPro||(tg=(a.contextTimeout||0)/100,tg<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(n0=i.enableAIContext||!1,!!n0&&e.user?.token)){pu="requesting";try{let o=await $p(n);if(eg.has(o)){pr=eg.get(o);return}let s=await K({url:rt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});g9=n,pr={theme:s.theme,termsRaw:s.terms,terms:dL(s.terms)},eg.set(o,pr)}catch{}finally{pu="finished"}k.debug("requestTermsByContext contextTerms",pr)}}function b9(){ng||(pu="initial",pr=void 0)}function y9(){rg=!0}function r0(){return f9?null:{contextTerms:pr,used:rg,sourceProgram:h9}}async function x9(){if(!(!n0||pu=="initial")){for(let e=0;ee.includes(n)):[]}function dL(e){let t=[];return e.split(` +`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Be={},Vr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Be.getIsDulSubtitle();if(n==="getPageStatus")return Ye();n==="updateContextState"&&await Be.updateContextState(r);let a=await Be.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Be.translateTheWholePage(r),mt(cr,i);else if(n==="translateTheMainPage")await Be.translateTheMainPage(r),mt(cr,i);else if(n==="translateToThePageEndImmediately")await Be.translateToThePageEndImmediately(r),mt(cr,i);else if(n==="toggleTranslateManga")await Be.toggleTranslateManga(),mt(cr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Ii(a?.rule)){let s=Fi(a.rule);Bo(!0,s||o);return}await Be.toggleTranslatePage(r),mt(cr,i)}else if(n==="toggleTranslateTheWholePage")await Be.toggleTranslateTheWholePage(r),mt(cr,i);else if(n==="toggleTranslateTheMainPage")await Be.toggleTranslateTheMainPage(r),mt(cr,i);else if(n==="toggleOnlyTransation")await Be.ensureSwitchTranslationMode(r),mt(cr,i);else if(n=="toggleEnableEditTranslation")Be.toggleEnableEditTranslation();else if(n==="translatePage")await Be.translatePage(a,r),mt(cr,i);else if(n==="toggleTranslationMask")await Be.toggleTranslationMask(r);else if(n==="restorePage")Be.restorePage();else if(n==="retryFailedParagraphs")Be.retryFailedParagraphs();else if(n=="change_translate_service")Be.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Be.switchTranslationMode(r.mode),await Be.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Be.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Nl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Be.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Ps,{detail:r}));else if(n==="translateWithOpenAI")await Be.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Be.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Be.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Be.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Be.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Be.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Be.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Be.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Be.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Ke()||await Be.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Ke())return JSON.stringify(a);await ot(5e3)}else if(n==="inputSelectedTextTranslate")await Be.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Be.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Be.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(xi,{detail:{type:"webReport"}})):n===t1&&await Be.translateSelectImage(a,r)}};function S9(e){Object.assign(Be,e)}function T9(e){Object.assign(Be,e)}function C9(e){Object.assign(Be,e)}var mL=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ye();if(n==="getCurrentPageLanguage"){let a=pt();return Be.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return rr(r),pt();if(n==="getContextString"){let a=Be.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Be.getPureGlobalContext();return Fi(a?.rule)}else if(n=="getAIContextInfo")return r0()}},a0,i0;function w9(){let e=o0();Ke()||pL(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function o0(){return a0||(a0=new Ia("content_script",!1).getConnection("main",Vr),a0)}function pL(){return i0||(i0=new Ia("content_script",!1).getConnection("main_sync",mL,{sync:!0}),i0)}var ag=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],s0="https://transmart.qq.com/api/imt",ha=class e{static langMapReverse=new Map(ag.map(([t,n])=>[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await K({url:s0,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function gL(e,t){return Math.floor(Math.random()*(t-e+1))+e}var fL=30,ig="RATE_LIMITER_TICKS",_o=class e{static strictTicks={};static clearStrictTicks(){Pr(ig,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Ri(ig)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Pr(ig,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=gL(4,fL);await ot(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await o0().sendMessage("background:main",e)}function K(e){return hl()?sc({method:"request",data:e}):te()||fl()?(e.fetchPolyfill=globalThis.GM_fetch,Di(e)):lt({method:"fetch",data:e})}function vn(){return te()?qt():lt({method:"getConfig"})}function Wt(e){return te()?Gr(e):lt({method:"setUserConfig",data:e})}function Mt(){return te()?ln():lt({method:"getUserConfig"})}function On(){return te()?Yt():lt({method:"getLocalConfig"})}function ba(e){return te()?zt(e):lt({method:"setLocalConfig",data:e})}function E9(e){return te()?Qy(e):lt({method:"setBuildinConfig",data:e})}async function Ne(e){if(e.text){let n=ac(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(te()||it()){if(e.translateService&&!Tc.includes(e.translateService))return Promise.resolve("auto");let r=c2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function A9(){return lt({method:"detectTabLanguage"})}async function u0(e){let t=await Ne({text:e,pageLangs:["en"]});try{if(te()||it()){let n=e.substring(0,200);t=await ha.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function c9(e){let t=new CustomEvent(vi,{detail:e});if(document.dispatchEvent(t),te())return;o0().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function k9(e){return te()?o9(e):lt({method:"queryParagraphCache",data:e})}async function D9(e){if(te()){await i9(e);return}return lt({method:"setParagraphCache",data:e})}async function L9(){if(te())return Promise.resolve();await lt({method:"mockRequest"})}function Ka(e=!1,t=""){return document.querySelector(`meta[name=${L}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):te()?(re.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Ya(e=""){return te()||it()?ke().OPTIONS_URL:re.runtime.getURL("options.html")}function P9(e=""){return re&&re.runtime&&re.runtime.getURL?re.runtime.getURL("options.html"):""}function l0(e=!1){return te()?(re.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Wr(e){return te()?(re.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function M9(e=!1){return te()?(re.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function R9(e=!1){return te()?(re.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function c0(e){it()}function Bo(e=!1,t){return te()?(re.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function I9(e=!1){return te()?(re.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function gu(e){return te()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function F9(){return te()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function d0(e,t=!1){return te()?re.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function B9(e,t){return te()||le.MOCK==="1"?_o.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function _9(){return te()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function O9(){return te()?!1:lt({method:"getIsOnToolbar"})}async function og(){if(!te())return lt({method:"updateVideoSubtitleStatus"})}function Bi({targetLanguage:e,text:t}){te()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function du(){te()||lt({method:"updateImageMenu"})}async function N9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",sg(t),"AES-GCM",!0,["encrypt","decrypt"]),a=sg(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:sg(n)},r,a);return hL(i)}catch{return Promise.reject("Encryption failed")}}function hL(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let P=B.params||{};if(F.os&&(P.os_name=F.os.name||"unknown",P.os_version=F.os.version||"unknown",P.os_version_name=F.os.versionName||"unknown"),F.browser&&(P.browser_name=F.browser.name||"unknown",P.browser_version=F.browser.version||"unknown",r&&(P.browser_name=r.name,P.browser_version=r.version)),F.platform&&(P.platform_type=F.platform.type||"unknown"),F.engine&&(P.engine_name=F.engine.name||"unknown",P.engine_version=F.engine.version||"unknown"),n.translationService){P.translation_service||(P.translation_service=n.translationService);let O=n.config.translationServices?.[n.translationService];!P.ai_assistant&&P.translation_service&&n.specialAiAssistant?.applyTranslationService==P.translation_service&&(P.ai_assistant=n?.specialAiAssistant.id),O.enableAIContext&&(P.ai_assistant="ai_context"),O&&(O.provider&&(P.translation_service_provider=O.provider),n.translationService==="openai"&&O.provider==="custom"&&(O.apiUrl?O.apiUrl.startsWith("https://api.openai.com/")?P.openai_is_official="1":P.openai_is_official="0":P.openai_is_official="1"),O.extends=="ai"&&!P.ai_assistant&&(P.ai_assistant="common"))}if(P.translation_service&&P.translation_service.startsWith("custom")&&(P.translation_service="custom-ai"),P.ai_assistant&&P.ai_assistant.startsWith("custom")&&(P.ai_assistant="custom"),P.ai_assistant_use&&P.ai_assistant_use.startsWith("custom")&&(P.ai_assistant_use="custom"),n.targetLanguage&&(P.target_language=n.targetLanguage),n.config.interfaceLanguage&&(P.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?P.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":P.enable_default_always_translated_urls="0",d&&(P.version=d),n.config.enableInputTranslation?P.enable_input_translation=n.config.enableInputTranslation?"1":"0":P.enable_input_translation="0",n.config.translationTheme&&(P.translation_theme=n.config.translationTheme),n.config.alpha&&(P.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?P.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):P.always_translate_languages="none",a.INSTALL_FROM&&(P.install_from=a.INSTALL_FROM),n.config.beta&&(P.beta=n.config.alpha.toString()),n.config.translationArea&&(P.translation_area=n.config.translationArea),v){P.install_day=fc(y);let O=bc(y);P.install_week=`${O.year}${O.week}`}if(n.user){let O=m2(n.user);O&&Object.keys(O).forEach(z=>{P[z]=O[z]})}else P.user_type="anonymous";n.config.translationMode&&(P.translation_mode=n.config.translationMode),P.userscript=o.toString(),w?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=T?"1":"0",P.is_new_user_this_month=A?"1":"0",P.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?P.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():P.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),P.page_type=_,s?P.main_frame=0:P.main_frame=1,!c){let O=n.url;try{let z=new URL(O);P.site_host=z.hostname}catch{P.site_host="unknown"}n.sourceLanguage&&(P.source_language=n.sourceLanguage)}return b&&(P.ab_tag=b),h&&(P.ab_group=h),P.campaign=f||"none",{...B,params:P}});if(i)return;I.forEach(async B=>{let P=await K({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&bL(p,R),n.config.enablePerformanceReport&&vL(n,R)}catch(r){k.debug("report error",r)}}function bL(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};j9(r);let a=Date.now()+(Math.random()*100).toFixed(0);K({url:js,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var yL=Date.now(),xL=["translate_page","translate_video_subtitle"];function vL(e,t){try{t.forEach(async n=>{if(!xL.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};j9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-yL},s=await N9(JSON.stringify(o),R1,I1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);K({url:js,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function j9(e){return e?.install_day&&(e.install_day=hc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Qa(e){return e!=null}function q9(e,t,n){return`${e.type}#${t}#${n}`}function z9(e,t,n,r,a){return{body:a,id:r,type:q9(e,t,n)}}function SL(e,t,n,r){return{id:n,response:r,type:q9(e,"ask",t)}}function W9(e,t,n,r){if(Qa(r)){let a=r.type;if(Qa(a)&&Qa(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function TL(e,t,n){if(Qa(n)){let r=n.type;if(Qa(r)&&Qa(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function CL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function wL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;TL(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function EL(e,t,n,r){let a=i=>{let o=i.data;W9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function U9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(W9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(SL(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function AL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(z9(t,"tell",n,i,r),a)}async function H9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await wL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(z9(n,"ask",r,s,a),i),u}var Ja=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;U9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Qa(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await H9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(EL(this.thisWindow,this.protocol,t,n))}tell(t,n){AL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(U9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return H9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){CL(this.listeners)}};var G9;async function V9(){if(Ke()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Ja.iframe(Vl,"*",{targetWindow:t});G9=n,await Ja.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function K9(){return G9}function Y9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ee=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let h of a)h.from&&h.from!=="auto"&&l.add(h.from),h.refresh&&(i=!0),h.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=wb(a,c,d)}catch(h){if(r)for(let f=0;fh));let m=[],p=[],g=(h,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[h]||(p[h]=f,p[h].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[h].hasError)return;if(y){let C=y instanceof j?new j(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[h].hasError=!0,f?.callback?.(C,null,f.sentence);return}p[h].translatedTexts[f.partIndex]=v;let S=p[h],w=0;for(let C=0;C{let w=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(w=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(T=>T.text),forces:f.tempSentences.map(T=>T.force),xpaths:f.tempSentences.map(T=>T.xpath||""),from:w,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=d1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let T=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(T=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Hr(this.serviceConfig);if(f.tempSentences.forEach((O,z)=>{let V=qp({text:O.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);O.force!==!0&&(V&&V.text&&V.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:O,from:w,to:f.to})}let I="";T&&T.length>=2?I=A.map((O,z)=>{let{item:V}=O;return z===A.length-1?V.text:V.text+T[0]+(z+1)+T[1]}).join(""):I=A.map(({item:O})=>O.text).join(C);let F=await this.translate({text:I,from:w,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:R}=F,B=[];if(T&&T.length>=2){let O=`${T[0]}\\d+${T[1]}`;T&&T.length>=3&&(O=T[2]);let z=new RegExp(O,"g");B=R.split(z)}else B=R.split(C);let P=[];if(B.length>A.length){for(let O=0;OO.text);return D=Hr(this.serviceConfig,!0),P.forEach((O,z)=>{let V=A[z],ie=V.index,je=V.variables||{};Object.keys(je).length>0&&(O=zp({text:O,delimiters:D,variables:je},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ie]=O}),{sourceTempSentences:f.tempSentences,text:_,from:F.from,to:F.to}}};m.push(S().then(w=>{let{text:C,sourceTempSentences:T}=w;for(let A=0;A{if(w instanceof j&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=h.sentence.text;return h.translatedTexts&&h.translatedTexts.length>0&&(f=h.translatedTexts.join("")),{...h.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Hr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=qp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Hr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=zp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ne({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Oo="input is invalid type",ug=typeof window=="object",Za=ug?window:{};Za.JS_SHA256_NO_WINDOW&&(ug=!1);var kL=!ug&&typeof self=="object",DL=!Za.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;DL?Za=global:kL&&(Za=self);var pQ=!Za.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,gQ=typeof define=="function"&&define.amd,fu=!Za.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ce="0123456789abcdef".split(""),LL=[-2147483648,8388608,32768,128],Mr=[24,16,8,0],m0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p0=["hex","array","digest","arrayBuffer"],rn=[];(Za.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});fu&&(Za.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Q9=function(e,t){return function(n){return new an(t,!0).update(n)[e]()}},Z9=function(e){var t=Q9("hex",e);t.create=function(){return new an(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};an.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=LL[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};an.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,b,h,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(h=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(h=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),h=e&t,m=h^e&n^v,b=a&i^~a&o,p=s+d+b+m0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^h,b=s&a^~s&i,p=o+d+b+m0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,b=o&s^~o&a,p=i+d+b+m0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,b=i&o^~i&s,p=a+d+b+m0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};an.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ce[e>>28&15]+ce[e>>24&15]+ce[e>>20&15]+ce[e>>16&15]+ce[e>>12&15]+ce[e>>8&15]+ce[e>>4&15]+ce[e&15]+ce[t>>28&15]+ce[t>>24&15]+ce[t>>20&15]+ce[t>>16&15]+ce[t>>12&15]+ce[t>>8&15]+ce[t>>4&15]+ce[t&15]+ce[n>>28&15]+ce[n>>24&15]+ce[n>>20&15]+ce[n>>16&15]+ce[n>>12&15]+ce[n>>8&15]+ce[n>>4&15]+ce[n&15]+ce[r>>28&15]+ce[r>>24&15]+ce[r>>20&15]+ce[r>>16&15]+ce[r>>12&15]+ce[r>>8&15]+ce[r>>4&15]+ce[r&15]+ce[a>>28&15]+ce[a>>24&15]+ce[a>>20&15]+ce[a>>16&15]+ce[a>>12&15]+ce[a>>8&15]+ce[a>>4&15]+ce[a&15]+ce[i>>28&15]+ce[i>>24&15]+ce[i>>20&15]+ce[i>>16&15]+ce[i>>12&15]+ce[i>>8&15]+ce[i>>4&15]+ce[i&15]+ce[o>>28&15]+ce[o>>24&15]+ce[o>>20&15]+ce[o>>16&15]+ce[o>>12&15]+ce[o>>8&15]+ce[o>>4&15]+ce[o&15];return this.is224||(u+=ce[s>>28&15]+ce[s>>24&15]+ce[s>>20&15]+ce[s>>16&15]+ce[s>>12&15]+ce[s>>8&15]+ce[s>>4&15]+ce[s&15]),u};an.prototype.toString=an.prototype.hex;an.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};an.prototype.array=an.prototype.digest;an.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function g0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Oo);if(fu&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!fu||!ArrayBuffer.isView(e)))throw new Error(Oo)}else throw new Error(Oo);e.length>64&&(e=new an(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}an.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}g0.prototype=new an;g0.prototype.finalize=function(){if(an.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();an.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),an.prototype.finalize.call(this)}};var No=Z9();No.sha256=No;No.sha224=Z9(!0);No.sha256.hmac=X9();No.sha224.hmac=X9(!0);var $9=No;var e6=$9.sha256;function Hn(e){return Promise.resolve(e6(e))}function jo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=e6.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function t6(e,t){let n=await ar(e,t);return jo(n)}async function f0(e,t){let n=PL(t),r=await ar(e,n);return jo(r)}function PL(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var n6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],hu=class e extends Ee{static langMap=new Map(n6);maxTextGroupLength=50;static langMapReverse=new Map(n6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new j("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` `),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Hn(c)].join(` -`),p=await r6(d,`TC3${n}`),g=await h0(i,p),h=await h0("tc3_request",g),b=await h0(m,h),f=await K({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new j(f.Response.Error.Message);return f}};var i6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],RL={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},yu=class e extends Ee{static langMap=new Map(i6);static langMapReverse=new Map(i6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await K({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:RL,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var o6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],xu=class e extends Ee{static langMap=new Map(o6);static langMapReverse=new Map(o6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new j("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new j("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await K({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function IL(e,t){return t?e+(t-e%t):e}function FL(e,t){return e.split(t).length-1}function lg(e){let t=Date.now(),n=1;for(let r of e)n+=FL(r,"i");return IL(t,n)}function BL(e,t){return Math.floor(Math.random()*(t-e+1))+e}function cg(){return BL(1e6,1e8)}var dg="https://www2.deepl.com/jsonrpc",mg="auto",s6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function _L(e=s6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function pg(e){return _L()[e.toLowerCase()]}var OL={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function NL(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function jL(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function UL(e,t,n,r,a,i,o){let s=cg(),u=jL(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=lg(t);let c=await K({retry:2,method:"POST",url:e,body:NL(u),headers:OL}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function u6(e,t,n,r=mg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:UL(e,t,pg(n),pg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var l6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Uo=class e extends Ee{static langMap=new Map(l6);static langMapReverse=new Map(l6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=dg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=xt(dg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await u6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var vu=class e extends Ee{static langMap=new Map(ag);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ya.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=ke(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=c6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await K({url:u0,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new j(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=ke(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=c6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await K({url:u0,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new j(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function c6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function gg(){return Math.random()>=.001}var Ho=class extends Ee{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!gg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await M9(),!gg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var m6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],fg=new Map(m6),d6=new Map(m6.map(([e,t])=>[t,e])),hg=class e extends Ee{static langMap=fg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new j("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await K({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:fg.get(r)||"auto",target_lang:fg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:d6.get(o.source_lang),to:d6.get(o.target_lang)}}else throw new j(i.msg)}},b0=hg;var bg="https://{s}bing.com",b6=bg+"/translator",HL=bg+"/ttranslatev3",qL=bg+"/tspellcheckv3",y0="bingGlobalConfig",y6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],p6=new Map(y6),g6=new Map(y6.map(([e,t])=>[t,e])),f6=1e3,Rr,qo;function yg(e,t){return e.replace("{s}",t?t+".":"")}async function zL(){if(!Rr){let n=await re.storage.local.get(y0);return n&&(Rr=n[y0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Rr;return Date.now()-e>t}async function h6(){let e,t,n,r,a,i,o,s,u,l;try{let c=yg(b6,e),d=await K({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Rr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await re.storage.local.set({[y0]:Rr}),Rr}function WL(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Rr;return yg(e?qL:HL,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Rr.count++:"")}function GL(e,t,n,r){let{token:a,key:i}=Rr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function x6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>f6)throw new Error(`The supported maximum length of text is ${f6}. Please shorten the text.`);qo||(qo=h6()),await qo,await zL()&&(qo=h6(),await qo),t=t||"auto",n=n||"zh-CN",t=p6.get(t)||t,n=p6.get(n)||n;let a=WL(!1),i=GL(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:yg(b6,Rr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await K({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Rr=null,qo=null,await re.storage.local.remove(y0),c.ShowCaptcha)throw new Error(` +`),p=await t6(d,`TC3${n}`),g=await f0(i,p),b=await f0("tc3_request",g),h=await f0(m,b),f=await K({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${h}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new j(f.Response.Error.Message);return f}};var r6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ML={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},bu=class e extends Ee{static langMap=new Map(r6);static langMapReverse=new Map(r6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await K({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:ML,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var a6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],yu=class e extends Ee{static langMap=new Map(a6);static langMapReverse=new Map(a6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new j("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new j("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await K({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function RL(e,t){return t?e+(t-e%t):e}function IL(e,t){return e.split(t).length-1}function lg(e){let t=Date.now(),n=1;for(let r of e)n+=IL(r,"i");return RL(t,n)}function FL(e,t){return Math.floor(Math.random()*(t-e+1))+e}function cg(){return FL(1e6,1e8)}var dg="https://www2.deepl.com/jsonrpc",mg="auto",i6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function BL(e=i6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function pg(e){return BL()[e.toLowerCase()]}var _L={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function OL(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function NL(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function jL(e,t,n,r,a,i,o){let s=cg(),u=NL(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=lg(t);let c=await K({retry:2,method:"POST",url:e,body:OL(u),headers:_L}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function o6(e,t,n,r=mg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:jL(e,t,pg(n),pg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var s6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Uo=class e extends Ee{static langMap=new Map(s6);static langMapReverse=new Map(s6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=dg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=xt(dg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await o6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var xu=class e extends Ee{static langMap=new Map(ag);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ha.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=ke(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=u6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await K({url:s0,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new j(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=ke(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=u6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await K({url:s0,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new j(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ha.detectLanguageRemotelyByTransmart(t)}};function u6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function gg(){return Math.random()>=.001}var Ho=class extends Ee{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!gg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await L9(),!gg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var c6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],fg=new Map(c6),l6=new Map(c6.map(([e,t])=>[t,e])),hg=class e extends Ee{static langMap=fg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new j("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await K({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:fg.get(r)||"auto",target_lang:fg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:l6.get(o.source_lang),to:l6.get(o.target_lang)}}else throw new j(i.msg)}},h0=hg;var bg="https://{s}bing.com",f6=bg+"/translator",UL=bg+"/ttranslatev3",HL=bg+"/tspellcheckv3",b0="bingGlobalConfig",h6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],d6=new Map(h6),m6=new Map(h6.map(([e,t])=>[t,e])),p6=1e3,Rr,qo;function yg(e,t){return e.replace("{s}",t?t+".":"")}async function qL(){if(!Rr){let n=await re.storage.local.get(b0);return n&&(Rr=n[b0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Rr;return Date.now()-e>t}async function g6(){let e,t,n,r,a,i,o,s,u,l;try{let c=yg(f6,e),d=await K({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Rr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await re.storage.local.set({[b0]:Rr}),Rr}function zL(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Rr;return yg(e?HL:UL,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Rr.count++:"")}function WL(e,t,n,r){let{token:a,key:i}=Rr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function b6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>p6)throw new Error(`The supported maximum length of text is ${p6}. Please shorten the text.`);qo||(qo=g6()),await qo,await qL()&&(qo=g6(),await qo),t=t||"auto",n=n||"zh-CN",t=d6.get(t)||t,n=d6.get(n)||n;let a=zL(!1),i=WL(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:yg(f6,Rr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await K({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Rr=null,qo=null,await re.storage.local.remove(b0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:g6.get(m.language),to:g6.get(d.to)}}var x0=new Map;async function xg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=nr(e.body)),x0.has(t))return x0.get(t);let n=K(e);x0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{x0.delete(t)},3e3)}}async function v6(e){return xg(e)}async function Yr(e){if(Ke()){let n=Q9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return xg(e)}else return xg(e)}function S6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function S0(e){await cp(e)}async function Qr(e,t){let n=await up(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return v0(e,t)}return v0(e,t)}async function v0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await lp(e,n,i-1e3),n}var VL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],vg=new Map(VL),Ir=class extends Ee{static langMap=vg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await S0(_m)}async translate(t){let{text:n,from:r,to:a}=t;return n?await x6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Qr(_m,async()=>{let t=await Yr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return S6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=vg.get(n)||"auto",o=vg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await K({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new j("Microsoft translate error "+JSON.stringify(d))}};var KL=["chinese","english","japanese","korean","french","spanish","deutsch"],Jr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},T0=e=>Jr.chinese.test(e),YL=e=>Jr.english.test(e),QL=e=>Jr.japanese.test(e),JL=e=>Jr.korean.test(e),ZL=e=>Jr.french.test(e),XL=e=>Jr.deutsch.test(e),$L=e=>Jr.spanish.test(e),vZ={chinese:br(T0),english:br(YL),japanese:br(QL),korean:br(JL),french:br(ZL),spanish:br($L),deutsch:br(XL)},T6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,SZ=new RegExp(`^(\\d|\\s|${T6.source})+$`),eP=new RegExp(`${Jr.chinese.source}|${Jr.japanese.source}|${Jr.korean.source}`),TZ=br(e=>(e.replace(new RegExp(T6,"g")," ").replace(new RegExp(eP,"g")," x ").match(/\S+/g)||"").length),CZ=[...KL,"others","matchAll"];var w6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Su=new Map(w6),tP=new Map(w6.map(([e,t])=>[t,e])),Sg=class extends Ee{static langMap=Su;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${nn}/v2/translate`;immersiveTranslateDeeplTokenUrl=rt;immersiveTranslateDeeplProApiUrl=rt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new j("authKey are required");if(!this.authKey)throw new j("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=xt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=xt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=xt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=xt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=xt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:Su.get(n)||"",target_lang:Su.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:Su.get(n)||"auto",target_lang:Su.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await K({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>Tg(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new Ir({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&tP.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ua()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},zo=Sg;function Tg(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&T0(t[0])&&C6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&T0(t[t.length-1])&&C6(t,"\u300A")==1?t+"\u300B":nP(e,t)}function nP(e,t){let n=e?.richIdName;return!n||!Ly(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function C6(e,t){return e.split(t).length-1}var rP=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Cg=new Map(rP),wg=class extends Ee{static langMap=Cg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Cg.get(r)||r,to:Cg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await K(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new j(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},E6=wg;var aP=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Eg=new Map(aP),Ag=class extends Ee{static langMap=Eg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Eg.get(a)||a};r!=="auto"&&(i.from=Eg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await K(c);if(d.length===0)throw new j("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},A6=Ag;var iP=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Wo=new Map(iP),kg=class extends Ee{static langMap=Wo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:m6.get(m.language),to:m6.get(d.to)}}var y0=new Map;async function xg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=nr(e.body)),y0.has(t))return y0.get(t);let n=K(e);y0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{y0.delete(t)},3e3)}}async function y6(e){return xg(e)}async function Kr(e){if(Ke()){let n=K9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return xg(e)}else return xg(e)}function x6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function v0(e){await cp(e)}async function Yr(e,t){let n=await up(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return x0(e,t)}return x0(e,t)}async function x0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await lp(e,n,i-1e3),n}var GL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],vg=new Map(GL),Ir=class extends Ee{static langMap=vg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await v0(Bm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await b6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Yr(Bm,async()=>{let t=await Kr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return x6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=vg.get(n)||"auto",o=vg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await K({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new j("Microsoft translate error "+JSON.stringify(d))}};var VL=["chinese","english","japanese","korean","french","spanish","deutsch"],Qr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},S0=e=>Qr.chinese.test(e),KL=e=>Qr.english.test(e),YL=e=>Qr.japanese.test(e),QL=e=>Qr.korean.test(e),JL=e=>Qr.french.test(e),ZL=e=>Qr.deutsch.test(e),XL=e=>Qr.spanish.test(e),SZ={chinese:br(S0),english:br(KL),japanese:br(YL),korean:br(QL),french:br(JL),spanish:br(XL),deutsch:br(ZL)},v6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,TZ=new RegExp(`^(\\d|\\s|${v6.source})+$`),$L=new RegExp(`${Qr.chinese.source}|${Qr.japanese.source}|${Qr.korean.source}`),CZ=br(e=>(e.replace(new RegExp(v6,"g")," ").replace(new RegExp($L,"g")," x ").match(/\S+/g)||"").length),wZ=[...VL,"others","matchAll"];var T6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],vu=new Map(T6),eP=new Map(T6.map(([e,t])=>[t,e])),Sg=class extends Ee{static langMap=vu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${nn}/v2/translate`;immersiveTranslateDeeplTokenUrl=rt;immersiveTranslateDeeplProApiUrl=rt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new j("authKey are required");if(!this.authKey)throw new j("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=xt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=xt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=xt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=xt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=xt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:vu.get(n)||"",target_lang:vu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:vu.get(n)||"auto",target_lang:vu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let b,h={};t.refresh&&(h={"X-Refresh":"True"}),t.debug&&(h={...h,"X-Debug":"True"}),this.provider==="pro"?b=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...h,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...h,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await K({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>Tg(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new Ir({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&eP.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!oa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},zo=Sg;function Tg(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&S0(t[0])&&S6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&S0(t[t.length-1])&&S6(t,"\u300A")==1?t+"\u300B":tP(e,t)}function tP(e,t){let n=e?.richIdName;return!n||!ky(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function S6(e,t){return e.split(t).length-1}var nP=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Cg=new Map(nP),wg=class extends Ee{static langMap=Cg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Cg.get(r)||r,to:Cg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await K(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new j(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},C6=wg;var rP=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Eg=new Map(rP),Ag=class extends Ee{static langMap=Eg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Eg.get(a)||a};r!=="auto"&&(i.from=Eg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await K(c);if(d.length===0)throw new j("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},w6=Ag;var aP=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Wo=new Map(aP),kg=class extends Ee{static langMap=Wo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Wo.get(r)?(i=(await K({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Wo.get(r)||r,target:Wo.get(a)||a})):u.body=JSON.stringify({text:s,source:Wo.get(r),target:Wo.get(a)||a});let l=await K(u);if(l.translatedText==="")throw new j("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},k6=kg;var oP={lang:"en"};function Dg(e){let t=Object.assign({},oP,e),[n,r]=W(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>De(n,i,o)}}var sP=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--sP,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var Lg=wo(null),Go=e=>{let{t,setLang:n,lang:r}=Dg({lang:e.lang});return x(Lg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function oe(){return Ic(Lg)}function P6(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Fr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=uP(e,a)),i||(i=lP(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function uP(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Mg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function lP(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Mg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>ze(a,s.matches)&&!ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function M6(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function C0(e,t,n){n=n||await On();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&D6(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&D6(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await xa(n),await Vr(i)}catch{return!1}return a}async function R6(){return(await On()).aiAssistants||[]}async function cP(e,t){(await Promise.allSettled(e.map(r=>K({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&C0("add",a,t)}})}async function dP(e,t,n=!0){e||(e=await qt()),t||(t=await On());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await gP();i=await pP(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&cP(o,t)}var va=Mn(dP,1500);function D6(e){return Wa(lo(),e.extensionVersion)}function mP(e,t){return t?!Wa(e.version,t):!1}function pP(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{mP(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function gP(){return(await K({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var fP=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function F6(e,t,n,r,a){let i={...t},o=Mg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,M6({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=P6(i,i.langOverrides,n),o||fP.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await S9();i.contextTerms=s}return i}async function Tn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Vo(t,o),f=Vo(t,g),y=s,v=Object.keys(u);for(let G of v){let be=u[G];if(Vo(t,be)){y=G;break}}let S=l,w=Object.keys(c);for(let G of w){let be=c[G];if(be&&Vo(t,be)){S=G;break}}let C=Vo(t,d),T=I6(t,d);T||(T=ze(t,y1)),T||(T=ze(t,n.blockUrls));let A=I6(t,n.inputTranslationUrlPattern);A||(A=ze(t,n.inputTranslationBlockUrls));let D=ze(t,n.mutationBlockUrls),I=Object.keys(p),F={};for(let G of I){let be=p[G];if(be&&be.matches)for(let at of be.matches)F[at]=G}let R=Object.keys(F),B=Np(t,R);B&&(i=F[B]??"auto",F[B]&&F[B]!=="auto"&&rr(F[B]));let L=a.hostname,_=await Hn(L),O=a.pathname+a.search+a.hash,z=await Hn(O),V=`https://${_}.com/${z}`,ie=await Yt(),je=await Yc(),Le=n.translationStartMode,N=bP(ie,n);ie.aiAssistants=yP(N,n),Le==="dynamic"&&f&&(Le="immediate");let q=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(q=n.inputTranslationService);let Z=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Z=n.mouseHoverTranslationService);let we=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(we=n.subtitleTranslateService);let pe=await mt.get(dt,null),Ge=!1;pe&&(Ge=ft(pe)),n.platform=ha();let de={targetLanguage:h,config:n,translationService:y,inputTranslationService:q,mouseHoverTranslationService:Z,subtitleTranslateService:we,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:T,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ie};pe&&(de.user=pe,Ge?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(G=>!de.config.generalRule.bodyTranslateTags.includes(G)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let ge=n.translationServices[de.translationService]||{};ge.immediateTranslationTextCount!==void 0&&hP(ge.immediateTranslationTextCount)&&ge.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCount),de.translationService==="deepl"&&(ge?.authKey?.startsWith("immersive_")||ge?.provider==="pro"&&de.user?.token)&&ge.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ge.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCountForImmersiveDeepl),ge&&ge.translationDebounce&&typeof ge.translationDebounce=="number"&&(de.state.translationDebounce=ge.translationDebounce);let me=je.immediateTranslationTextCount;n.immediateTranslationTextCount!==me&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,ve;globalThis.PDFViewerApplication?ve=fe.find(G=>G.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?ve=fe.find(G=>G.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?ve=fe.find(G=>G.pageType=="ebookBuilder"):ve=fe.find(G=>Vo(t,G)),ve&&ve.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(ve&&(de.rule=pu(Ue,ve),de.rule=n9(n,de.rule,ve)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(G=>!de.rule.bodyTranslateTags.includes(G)&&!de.rule.forceTranslateTags.includes(G))),de.rule.mainFrameSelector){let G=document.querySelector(de.rule.mainFrameSelector);G&&(de.mainFrame=G)}return de}function Vo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&ze(e,r)?!1:n&&n.length>0&&ze(e,n)?!0:i&&i.length>0&&Tc(i)?!1:!!(a&&a.length>0&&Tc(a))}function I6(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&ze(e,n)||r&&r.length>0&&Tc(r))}function hP(e){return typeof e=="number"}function bP(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function yP(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Fy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function B6(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Wo.get(r)?(i=(await K({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Wo.get(r)||r,target:Wo.get(a)||a})):u.body=JSON.stringify({text:s,source:Wo.get(r),target:Wo.get(a)||a});let l=await K(u);if(l.translatedText==="")throw new j("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},E6=kg;var iP={lang:"en"};function Dg(e){let t=Object.assign({},iP,e),[n,r]=W(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>De(n,i,o)}}var oP=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--oP,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var Lg=wo(null),Go=e=>{let{t,setLang:n,lang:r}=Dg({lang:e.lang});return x(Lg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function oe(){return Rc(Lg)}function D6(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function ya(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=sP(e,a)),i||(i=uP(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function sP(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Mg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function uP(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Mg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function L6(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function T0(e,t,n){n=n||await On();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&A6(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&A6(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ba(n),await Gr(i)}catch{return!1}return a}async function P6(){return(await On()).aiAssistants||[]}async function lP(e,t){(await Promise.allSettled(e.map(r=>K({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&T0("add",a,t)}})}async function cP(e,t,n=!0){e||(e=await qt()),t||(t=await On());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await pP();i=await mP(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&lP(o,t)}var xa=Pn(cP,1500);function A6(e){return za(lo(),e.extensionVersion)}function dP(e,t){return t?!za(e.version,t):!1}function mP(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{dP(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function pP(){return(await K({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var gP=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function R6(e,t,n,r,a){let i={...t},o=Mg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,L6({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=D6(i,i.langOverrides,n),o||gP.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await x9();i.contextTerms=s}return i}async function Sn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,b=m||"zh-CN",h=Vo(t,o),f=Vo(t,g),y=s,v=Object.keys(u);for(let G of v){let be=u[G];if(Vo(t,be)){y=G;break}}let S=l,w=Object.keys(c);for(let G of w){let be=c[G];if(be&&Vo(t,be)){S=G;break}}let C=Vo(t,d),T=M6(t,d);T||(T=We(t,h1)),T||(T=We(t,n.blockUrls));let A=M6(t,n.inputTranslationUrlPattern);A||(A=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),I=Object.keys(p),F={};for(let G of I){let be=p[G];if(be&&be.matches)for(let at of be.matches)F[at]=G}let R=Object.keys(F),B=Np(t,R);B&&(i=F[B]??"auto",F[B]&&F[B]!=="auto"&&rr(F[B]));let P=a.hostname,_=await Hn(P),O=a.pathname+a.search+a.hash,z=await Hn(O),V=`https://${_}.com/${z}`,ie=await Yt(),je=await Kc(),Le=n.translationStartMode,N=hP(ie,n);ie.aiAssistants=bP(N,n),Le==="dynamic"&&f&&(Le="immediate");let q=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(q=n.inputTranslationService);let Z=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Z=n.mouseHoverTranslationService);let we=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(we=n.subtitleTranslateService);let pe=await dt.get(ct,null),Ge=!1;pe&&(Ge=ft(pe)),n.platform=ga();let de={targetLanguage:b,config:n,translationService:y,inputTranslationService:q,mouseHoverTranslationService:Z,subtitleTranslateService:we,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:T,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ie};pe&&(de.user=pe,Ge?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(G=>!de.config.generalRule.bodyTranslateTags.includes(G)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let ge=n.translationServices[de.translationService]||{};ge.immediateTranslationTextCount!==void 0&&fP(ge.immediateTranslationTextCount)&&ge.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCount),de.translationService==="deepl"&&(ge?.authKey?.startsWith("immersive_")||ge?.provider==="pro"&&de.user?.token)&&ge.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ge.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCountForImmersiveDeepl),ge&&ge.translationDebounce&&typeof ge.translationDebounce=="number"&&(de.state.translationDebounce=ge.translationDebounce);let me=je.immediateTranslationTextCount;n.immediateTranslationTextCount!==me&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,Se;globalThis.PDFViewerApplication?Se=fe.find(G=>G.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Se=fe.find(G=>G.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Se=fe.find(G=>G.pageType=="ebookBuilder"):Se=fe.find(G=>Vo(t,G)),Se&&Se.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(Se&&(de.rule=mu(Ue,Se),de.rule=e9(n,de.rule,Se)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(G=>!de.rule.bodyTranslateTags.includes(G)&&!de.rule.forceTranslateTags.includes(G))),de.rule.mainFrameSelector){let G=document.querySelector(de.rule.mainFrameSelector);G&&(de.mainFrame=G)}return de}function Vo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&Sc(i)?!1:!!(a&&a.length>0&&Sc(a))}function M6(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&Sc(r))}function fP(e){return typeof e=="number"}function hP(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function bP(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Ry(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function I6(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` `+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var Rg=class extends Ee{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=So()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?Ec(l,s):`${s}${Xl}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let b="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Bc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let I=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let R=0;RR==="from"?c:R==="to"?d+" Language":R==="text"?r:R=="json"?b:R=="yaml"?f:m[R]===""?"":m[R]||F).replace(/{{(.+?)}}/g,(F,R)=>m[R]||F)}}async rawRequest(t){return await K(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=So()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?wc(l,s):`${s}${Zl}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),b=[r];s?.rawTextArrayLength&&(b=r.split(this.translationTextSeparator)),b.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&b.length>1&&(l=this.subtitlePrompt);let h="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Fc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let I=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let R=0;RR==="from"?c:R==="to"?d+" Language":R==="text"?r:R=="json"?h:R=="yaml"?f:m[R]===""?"":m[R]||F).replace(/{{(.+?)}}/g,(F,R)=>m[R]||F)}}async rawRequest(t){return await K(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;a`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;s`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` [theme]`,n.imt_theme,` -\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},$a=Rg;function xP(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var vP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],_6=new Map(vP),Ig=class extends $a{static langMap=_6;provider="custom";immersiveApiUrl=`https://openai-api.${nn}/v1/chat/completions`;immersiveProApiUrl=rt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=xt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=xt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return _6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!zo.langMap.has(n.to)||!zo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new zo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},O6=Ig;function cn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function SP(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Te(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ei(e,t){return e<>>32-t}function Zr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Ko(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function N6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Yo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Xr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var j6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?cn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Zr(a(m,r),t)},this.b64=function(m){return $r(a(m),n)},this.any=function(m,p){return Xr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Zr(i(m,p),t)},this.b64_hmac=function(m,p){return $r(i(m,p),n)},this.any_hmac=function(m,p,g){return Xr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?cn(m):m,N6(o(Yo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?cn(m):m,p=r?cn(p):p,g=Yo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Yo(p)),512+p.length*8),N6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,S=-271733879,w=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Sa(c)),512+c.length*8),Ko(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),S=1732584193,w=-271733879,C=-1732584194,T=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,S.length*8));T<16;T+=1)D[T]=A[T]^909522486,I[T]=A[T]^1549556828;return C=v(D.concat(Sa(w)),512+w.length*8),Ko(v(I.concat(C),512+256))}function s(S,w){return S>>>w|S<<32-w}function u(S,w){return S>>>w}function l(S,w,C){return S&w^~S&C}function c(S,w,C){return S&w^S&C^w&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,w){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=new Array(64),A,D,I,F,R,B,L,_,O,z,V,ie;for(S[w>>5]|=128<<24-w%32,S[(w+64>>9<<4)+15]=w,O=0;O32&&(S=s(S,b.length*8));v<32;v+=1)w[v]=S[v]^909522486,C[v]=S[v]^1549556828;return y=s(w.concat(Sa(f)),1024+f.length*8),Ko(s(C.concat(y),1024+512))}function s(b,f){var y,v,S,w=new Array(80),C=new Array(16),T=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),I=new u(0,0),F=new u(0,0),R=new u(0,0),B=new u(0,0),L=new u(0,0),_=new u(0,0),O=new u(0,0),z=new u(0,0),V=new u(0,0),ie=new u(0,0),je=new u(0,0),Le=new u(0,0),N=new u(0,0),q=new u(0,0),Z=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)w[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),w=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(w>>>16);b.l=v&65535|S<<16,b.h=w&65535|C<<16}function g(b,f,y,v,S){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w>>>16),T=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T>>>16);b.l=w&65535|C<<16,b.h=T&65535|A<<16}function h(b,f,y,v,S,w){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(w.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(w.h&65535)+(T>>>16),D=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(w.h>>>16)+(A>>>16);b.l=C&65535|T<<16,b.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Zr(u(h,r))},this.b64=function(h){return $r(u(h,r),n)},this.any=function(h,b){return Xr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Zr(l(h,b))},this.b64_hmac=function(h,b){return $r(l(h,b),n)},this.any_hmac=function(h,b,f){return Xr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?cn(h):h,c(d(Yo(h),h.length*8))}function l(h,b){h=r?cn(h):h,b=r?cn(b):b;var f,y,v=Yo(h),S=Array(16),w=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,w[f]=v[f]^1549556828;return y=d(S.concat(Yo(b)),512+b.length*8),c(d(w.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,S,w=1732584193,C=4023233417,T=2562383102,A=271733878,D=3285377520,I,F,R,B,L,_,O,z,V,ie;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new j("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new j6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await K({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new j(g.Message);return g}};var TP=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Bg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Fg).sort().join(`&${r}=`)}`:`${r}=${Fg(n)}`}).filter(t=>t).join("&"),Qo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,Bg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return jo(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Xa=Rg;function yP(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var xP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],F6=new Map(xP),Ig=class extends Xa{static langMap=F6;provider="custom";immersiveApiUrl=`https://openai-api.${nn}/v1/chat/completions`;immersiveProApiUrl=rt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=xt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=xt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return F6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!zo.langMap.has(n.to)||!zo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new zo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},B6=Ig;function cn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function vP(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Te(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function $a(e,t){return e<>>32-t}function Jr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Ko(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function _6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Yo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Zr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var O6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?cn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,b="",h=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?h[g]=String.fromCharCode(o):m===64?h[g]=String.fromCharCode(o,s):h[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Jr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Zr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Jr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Zr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?cn(m):m,_6(o(Yo(m),m.length*8))}function i(m,p){var g,b,h,f,y;for(m=r?cn(m):m,p=r?cn(p):p,g=Yo(m),g.length>16&&(g=o(g,m.length*8)),b=Array(16),h=Array(16),y=0;y<16;y+=1)b[y]=g[y]^909522486,h[y]=g[y]^1549556828;return f=o(b.concat(Yo(p)),512+p.length*8),_6(o(h.concat(f),512+128))}function o(m,p){var g,b,h,f,y,v=1732584193,S=-271733879,w=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return b=o(m.concat(va(c)),512+c.length*8),Ko(o(p.concat(b),512+160))}function o(l,c){var d,m,p,g,b,h,f,y,v=Array(80),S=1732584193,w=-271733879,C=-1732584194,T=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,S.length*8));T<16;T+=1)D[T]=A[T]^909522486,I[T]=A[T]^1549556828;return C=v(D.concat(va(w)),512+w.length*8),Ko(v(I.concat(C),512+256))}function s(S,w){return S>>>w|S<<32-w}function u(S,w){return S>>>w}function l(S,w,C){return S&w^~S&C}function c(S,w,C){return S&w^S&C^w&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function b(S){return s(S,28)^s(S,34)^s(S,39)}function h(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,w){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=new Array(64),A,D,I,F,R,B,P,_,O,z,V,ie;for(S[w>>5]|=128<<24-w%32,S[(w+64>>9<<4)+15]=w,O=0;O32&&(S=s(S,h.length*8));v<32;v+=1)w[v]=S[v]^909522486,C[v]=S[v]^1549556828;return y=s(w.concat(va(f)),1024+f.length*8),Ko(s(C.concat(y),1024+512))}function s(h,f){var y,v,S,w=new Array(80),C=new Array(16),T=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),I=new u(0,0),F=new u(0,0),R=new u(0,0),B=new u(0,0),P=new u(0,0),_=new u(0,0),O=new u(0,0),z=new u(0,0),V=new u(0,0),ie=new u(0,0),je=new u(0,0),Le=new u(0,0),N=new u(0,0),q=new u(0,0),Z=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)w[v]=new u(0,0);for(h[f>>5]|=128<<24-(f&31),h[(f+128>>10<<5)+31]=f,S=h.length,v=0;v>>y|f.h<<32-y,h.h=f.h>>>y|f.l<<32-y}function d(h,f,y){h.l=f.h>>>y|f.l<<32-y,h.h=f.l>>>y|f.h<<32-y}function m(h,f,y){h.l=f.l>>>y|f.h<<32-y,h.h=f.h>>>y}function p(h,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),w=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(w>>>16);h.l=v&65535|S<<16,h.h=w&65535|C<<16}function g(h,f,y,v,S){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w>>>16),T=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T>>>16);h.l=w&65535|C<<16,h.h=T&65535|A<<16}function b(h,f,y,v,S,w){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(w.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(w.h&65535)+(T>>>16),D=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(w.h>>>16)+(A>>>16);h.l=C&65535|T<<16,h.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return Jr(u(b,r))},this.b64=function(b){return Xr(u(b,r),n)},this.any=function(b,h){return Zr(u(b,r),h)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,h){return Jr(l(b,h))},this.b64_hmac=function(b,h){return Xr(l(b,h),n)},this.any_hmac=function(b,h,f){return Zr(l(b,h),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?cn(b):b,c(d(Yo(b),b.length*8))}function l(b,h){b=r?cn(b):b,h=r?cn(h):h;var f,y,v=Yo(b),S=Array(16),w=Array(16);for(v.length>16&&(v=d(v,b.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,w[f]=v[f]^1549556828;return y=d(S.concat(Yo(h)),512+h.length*8),c(d(w.concat(y),512+160))}function c(b){var h,f="",y=b.length*32;for(h=0;h>5]>>>h%32&255);return f}function d(b,h){var f,y,v,S,w=1732584193,C=4023233417,T=2562383102,A=271733878,D=3285377520,I,F,R,B,P,_,O,z,V,ie;for(b[h>>5]|=128<>>9<<4)+14]=h,S=b.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new j("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new O6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(b=>{let f=Object.keys(b).sort().map(y=>`${this.encode(y)}=${this.encode(b[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await K({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new j(g.Message);return g}};var SP=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Bg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Fg).sort().join(`&${r}=`)}`:`${r}=${Fg(n)}`}).filter(t=>t).join("&"),Qo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,Bg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return jo(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=Bg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new j(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Bg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return TP.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var H6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],_g=new Map(H6),CP=new Map(H6.map(([e,t])=>[t,e])),Og=class extends Ee{static langMap=_g;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new j("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Qo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await K({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new j(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new j(s.Code,s.Message)}else throw new j("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=_g.get(r),o={TargetLanguage:_g.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Qo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await K({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=CP.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new j(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new j(d.Code,d.Message)}else throw new j("response: "+JSON.stringify(c))}},q6=Og;var z6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ng=new Map(z6),wP=new Map(z6.map(([e,t])=>[t,e])),Cu=class extends Ee{static langMap=Ng;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ng.get(r)||"detect",o=Ng.get(a)||a,u=await K({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=wP.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new j(l.status_code.toString(),l.status_message)}}};var EP=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],jg=new Map(EP),wu=class extends Ee{static langMap=jg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new j("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:jg.get(r)||r,target_lang:jg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await K({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Tg(this.serviceConfig,u.data,a),from:r,to:a};throw new j(u.message||u.message||"API Error")}};var W6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ug=new Map(W6),AP=new Map(W6.map(([e,t])=>[t,e])),Hg=class extends Ee{static langMap=Ug;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new j("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=nr(a+o+n+i);this.domain&&(l=nr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ug.get(s)||"auto",to:Ug.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await K({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new j("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:AP.get(g)||g,to:u,text:h.join(` -`)}}},G6=Hg;var Oi=class extends Ee{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new j("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?kP(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function kP(e){let t=Math.floor(Math.random()*e.length);return e[t]}var V6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],qg=class extends Oi{static langMap=new Map(V6);constructor(t,n,r,a){if(!t?.token)throw new j("token are required");super({...t,isSupportList:!0,langs:V6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},K6=qg;var DP=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],w0=new Map(DP),zg=class extends Ee{static langMap=w0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!w0.get(a))throw new j(`Unsupported language: ${a}`);if(r==="auto")throw new j("Unsupported language: auto");let o=n;return{text:(await K({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${w0.get(r)||"auto"}2${w0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},Y6=zg;var Q6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Wg=new Map(Q6),LP=new Map(Q6.map(([e,t])=>[t,e]));function PP(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Gg=class extends Ee{static langMap=Wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new j("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=MP(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+PP(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Wg.get(r)||"auto",to:Wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await K({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new j(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` -`),from:LP.get(g),to:a}}};function MP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Kg=class extends Ee{static langMap=Vg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Vg.get(r)||"auto",to:Vg.get(a)||a},o=new URLSearchParams(i),s=await K({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new j("Youdao translation failed: "+JSON.stringify(s))}},X6=Kg;var Eu=class extends Oi{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Yg=class extends $a{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=xt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},E0=Yg;var $6=P+"-gemini-fake-user-key",RP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],ex=new Map(RP),Qg=class extends E0{static langMap=ex;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=rt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return ex}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ei($6,""),this.fakeId||(this.fakeId=IP(10),await Ai($6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new j("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function IP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Yr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Zg.get(r)+"-"}${Zg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await K({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var _P=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],ax=new Map(_P),ku=class extends $a{static langMap=ax;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Qr(Nm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Yr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return ax}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(v0(Nm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new j("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new j(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var OP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],ix=new Map(OP),qn=class extends $a{static langMap=ix;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return ix}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var A0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new j(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return jo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Bg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return SP.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var j6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],_g=new Map(j6),TP=new Map(j6.map(([e,t])=>[t,e])),Og=class extends Ee{static langMap=_g;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new j("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Qo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await K({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new j(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new j(s.Code,s.Message)}else throw new j("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=_g.get(r),o={TargetLanguage:_g.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Qo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await K({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=TP.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new j(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new j(d.Code,d.Message)}else throw new j("response: "+JSON.stringify(c))}},U6=Og;var H6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ng=new Map(H6),CP=new Map(H6.map(([e,t])=>[t,e])),Tu=class extends Ee{static langMap=Ng;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ng.get(r)||"detect",o=Ng.get(a)||a,u=await K({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=CP.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new j(l.status_code.toString(),l.status_message)}}};var wP=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],jg=new Map(wP),Cu=class extends Ee{static langMap=jg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new j("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:jg.get(r)||r,target_lang:jg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await K({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Tg(this.serviceConfig,u.data,a),from:r,to:a};throw new j(u.message||u.message||"API Error")}};var q6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ug=new Map(q6),EP=new Map(q6.map(([e,t])=>[t,e])),Hg=class extends Ee{static langMap=Ug;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new j("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=nr(a+o+n+i);this.domain&&(l=nr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ug.get(s)||"auto",to:Ug.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await K({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new j("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,b=p.map(({dst:f})=>f);return{from:EP.get(g)||g,to:u,text:b.join(` +`)}}},z6=Hg;var _i=class extends Ee{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Xs(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new j("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Xs(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),b=o[p];return g==="random"?AP(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ha.detectLanguageRemotelyByTransmart(t)}};function AP(e){let t=Math.floor(Math.random()*e.length);return e[t]}var W6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],qg=class extends _i{static langMap=new Map(W6);constructor(t,n,r,a){if(!t?.token)throw new j("token are required");super({...t,isSupportList:!0,langs:W6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},G6=qg;var kP=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],C0=new Map(kP),zg=class extends Ee{static langMap=C0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!C0.get(a))throw new j(`Unsupported language: ${a}`);if(r==="auto")throw new j("Unsupported language: auto");let o=n;return{text:(await K({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${C0.get(r)||"auto"}2${C0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},V6=zg;var K6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Wg=new Map(K6),DP=new Map(K6.map(([e,t])=>[t,e]));function LP(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Gg=class extends Ee{static langMap=Wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new j("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=PP(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+LP(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Wg.get(r)||"auto",to:Wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await K({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new j(JSON.stringify(m));let p=m.l,[g,b]=p.split("2");return{text:m.translation.join(` +`),from:DP.get(g),to:a}}};function PP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Kg=class extends Ee{static langMap=Vg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Vg.get(r)||"auto",to:Vg.get(a)||a},o=new URLSearchParams(i),s=await K({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new j("Youdao translation failed: "+JSON.stringify(s))}},J6=Kg;var wu=class extends _i{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Yg=class extends Xa{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=xt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},w0=Yg;var Z6=L+"-gemini-fake-user-key",MP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],X6=new Map(MP),Qg=class extends w0{static langMap=X6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=rt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return X6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await wi(Z6,""),this.fakeId||(this.fakeId=RP(10),await Ei(Z6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new j("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function RP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Kr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Zg.get(r)+"-"}${Zg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await K({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var BP=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],nx=new Map(BP),Au=class extends Xa{static langMap=nx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Yr(Om+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Kr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return nx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(x0(Om+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new j("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new j(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var _P=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],rx=new Map(_P),qn=class extends Xa{static langMap=rx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=xt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return rx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var E0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new j(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return jo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` `+i}}async getCanonicalRequest(t){let n=await Hn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 @@ -5928,59 +5928,59 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var k0=class extends qn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Qr(K3,async()=>{let t=await Yr({responseType:"json",url:`${rt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Xg=["glm-4-flash"],D0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Xg.includes(this.model)&&!this.apiKeys.length)throw new j("apiKey are required");if(!Xg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Qr(Y3,async()=>{let t=await Yr({responseType:"json",url:`${rt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Ir.langMap.has(n.to)||!Ir.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ir(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Xg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var L0={mock:Ho,mock2:Ho,custom:Eu,google:xu,transmart:vu,deepl:zo,volc:q6,volcAlpha:Cu,bing:Ir,tencent:bu,tenAlpha:yu,baidu:G6,caiyun:K6,cai:Y6,openl:b0,youdao:J6,you:X6,d:Uo,dpro:Uo,deeplx:wu,niu:E6,azure:A6,openai:O6,gemini:tx,claude:rx,papago:k6,aliyun:Tu,yandex:Au,qianfan:ku,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:A0,siliconcloud:k0,lingyiwanwu:qn,zhipu:D0};globalThis.TranslationServicesClass=L0;var ti={};Object.keys(kr).forEach(e=>{ti[e]={...kr[e],class:L0[e]}});function P0(e,t){let n=Xn;if(ti[e]&&ti[e].class&&ti[e].class.langMap&&ti[e].class.langMap.size>0){let r=ti[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function ea(e,t,n){if(!e.text)return e;let r=null,a=await Qt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new j("translateFailed","translate failed")}async function ox(e,t){for(let n of e)try{return await ea({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function $g(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new ti[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function NP(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Qt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),va(a,t.localConfig,!1),d=await F6(m,d,{sourceLanguage:NP(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=jP(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ft(t.user),w;try{w=new ti[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let I of b){let F=A instanceof j?new j(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(F,null,I)}}return{sentences:[]}}if(o.cache&&!So(a))for(let A of e.sentences){v++;let D=l;l==="openl"&&(D=l+"-"+d.codename||b0.DEFAULT_CODENAME);let I=w.getCacheKeyPrefix();I&&(D=I+"-"+D);let F=null;try{F=await xl(L9({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(R){k.warn("query cache DB error, but it's ok",R)}if(F){let R={...A,text:F.translatedText};f.sentences[v]=R,n&&n(null,R,A)}else b.push(A)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&k.debug(`use ${y-C} sentences from cache`),!b.length)return f;let T=await w.multipleTranslate({sentences:b},d,(A,D,I)=>{if(n&&n(A,D,I),!A&&D&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||b0.DEFAULT_CODENAME);let R=w.getCacheKeyPrefix();R&&(F=R+"-"+F),o.cache&&xl(P9({translatedText:D.text,from:I.from,to:I.to,detectedFrom:D.from,key:nr(I.text),service:F}),3e3).catch(B=>{k.warn("set cache DB error",B)})}});for(let A of T?.sentences||[]){let D=f.sentences.findIndex(I=>!I);if(D===-1)throw new j("translateFailed","can not match the result");f.sentences[D]=A}return f}function jP(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var UP=1e5;var sx=Date.now();async function Ta(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=HP(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,h=null;async function b(C){let{container:T,onFrame:A,onIgnoreElement:D,id:I,isLongHtml:F}=C,R=document.createTreeWalker(T,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let O=L(_);return O==NodeFilter.FILTER_ACCEPT?ht.mark(_,I,m):QP(_,O,n)&&y(),O}),B=T;if(L(B)===NodeFilter.FILTER_REJECT)return;for(ht.mark(B,I,m);B;){if(a?.interruptEffectDOM)return;let _=Date.now()-sx;if(_>50&&(k.debug("taskTime",_,T),sx=Date.now(),await st(0)),s&&s.length>0){let{currentNode:O,isMatchedSelection:z}=f(R,B,s);if(O)B=O;else break;if(!z)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let O=B;if(O.nodeName==="IFRAME"){A&&A(O),y(),ef(p,!0),B=R.nextNode();continue}O.nodeType===Node.ELEMENT_NODE&&(o&&tf(O,o),c&&rf(O,c));let z=Hr(O,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},O.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&O.childNodes.length==1&&O.childNodes[0].nodeType===Node.TEXT_NODE&&O.innerText?.length==1&&O?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),At(O,i)&&!z){v(O);let je=null;for(;!(je=R.nextSibling())&&R.parentNode(););B=je;continue}let V=Mi(O);if(!ux(p,O)||z){y(O);let je=z?O:O.parentElement;je&&je.childNodes.length>0&&S(p,je,je.immersiveTranslateComputedStyle||null)}V&&O.shadowRoot?.mode==="open"&&(z?A?.(O.shadowRoot):b({...C,container:O.shadowRoot})),O.nodeType===Node.ELEMENT_NODE&&At(O,n.likePreSelectors)&&u&&(F||GP(O,n.advanceTransformPreTagNewLine))}else if(B.nodeType===Node.TEXT_NODE)v(B);else throw new Error("should not be here");B=R.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ri(_)){if(c){let ie=Object.keys(c);if(ie.length>0&&At(_,ie))for(let Le of ie){let N=c[Le];if(_.matches(Le)){let q=c[Le],Z=Object.keys(q);for(let we of Z){let pe=q[we];_.getAttribute(we)!==pe&&(pe===null?_.removeAttribute(we):_.setAttribute(we,pe))}break}}}if(!C.force&&ht.isMarked(_,I)||Sy(_,I)||M0(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!Na(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ie=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ie,nf(ie))return D&&D(_),NodeFilter.FILTER_REJECT;let je=Hr(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ie||null);if(_.isBlock=je,At(_,i)&&je)return NodeFilter.FILTER_REJECT}let O=_.getBoundingClientRect(),{width:z,height:V}=O;return _.nodeName==="IMG"&&(z>48&&V>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&V>0&&d!==!1&&(_.setAttribute("width",z),_.setAttribute("height",V))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||V>0&&V<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let O=_.textContent?.trim();if(!O)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:V,height:ie}=z.getBoundingClientRect();if(V>0&&V<4||ie>0&&ie<4)return NodeFilter.FILTER_REJECT}return l>0&&O.length>=l&&VP(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await b(e)}catch(C){k.error(C)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(C,T,A){let D=T.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(T))if(g=!1,T&&T.nodeType===Node.ELEMENT_NODE)if(Du(T,A))g=!0,h=T,y(),S(p,h,D);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g}}else if(T&&T.nodeType===Node.ELEMENT_NODE)if(Du(T,A))g=!0,h=T,y(),S(p,h,D);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};return{currentNode:T,isMatchedSelection:!0}}function y(C){let T=p.flatNodes.length-1;if(n.skipTrailTextRegex&&T>0)for(let D=T;D>=0;D--){let F=p.flatNodes[D]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(D,1);continue}break}if(C&&C.nodeName==="BR"){if(C.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=JP(C,n);let D=[...p.flatNodes],I=p.flatNodes.filter(F=>C.parentNode?.contains(F));I.length>0&&D.length!=I.length&&(p.flatNodes=I,p.flatNodes.original=D)}let A=WP(p,r,n);A&&t&&t(A),ef(p)}function v(C){if(!ux(p,C)){y(),ef(p);let T=C.parentNode;T&&S(p,T,T.computedStyle)}p.flatNodes.push(C)}function S(C,T,A){C.commonAncestorContainer=T;let D=w(A);C.isPreWhitespace=D}function w(C){return C&&C.whiteSpace&&C.whiteSpace.startsWith("pre")||C&&C.whiteSpace==="break-spaces"||!1}}function ux(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mi(t));let r=zP(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function HP(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function qP(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function tf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function zP(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mi(t)):!1}function WP(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Hc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=qP(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>UP){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Ay(o)}}else return null}function ef(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function nf(e){return e.display==="none"}var ht={_marked_key:i1,isMarked(e,t){return Lp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return yb(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function GP(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=Un?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function VP(e,t,n){let r=e.textContent||"",a=wy(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=lb(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function cx(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||YP(p,a,i,o)||!db(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function rf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function M0(e,t){return KP(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function KP(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(jc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function Du(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function YP(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&M0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(yo(o,t,n))return!0}}return!1}function QP(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Hr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function JP(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Hr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function dx(e,t,n,r,a){let i=t,o=h1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${P}-theme-${i}-${d}: ${m}; -`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=vb(m);s+=`--${P}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var A0=class extends qn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(G3,async()=>{let t=await Kr({responseType:"json",url:`${rt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Xg=["glm-4-flash"],k0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Xg.includes(this.model)&&!this.apiKeys.length)throw new j("apiKey are required");if(!Xg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(V3,async()=>{let t=await Kr({responseType:"json",url:`${rt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Ir.langMap.has(n.to)||!Ir.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ir(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Xg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var D0={mock:Ho,mock2:Ho,custom:wu,google:yu,transmart:xu,deepl:zo,volc:U6,volcAlpha:Tu,bing:Ir,tencent:hu,tenAlpha:bu,baidu:z6,caiyun:G6,cai:V6,openl:h0,youdao:Y6,you:J6,d:Uo,dpro:Uo,deeplx:Cu,niu:C6,azure:w6,openai:B6,gemini:$6,claude:tx,papago:E6,aliyun:Su,yandex:Eu,qianfan:Au,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:E0,siliconcloud:A0,lingyiwanwu:qn,zhipu:k0};globalThis.TranslationServicesClass=D0;var ei={};Object.keys(kr).forEach(e=>{ei[e]={...kr[e],class:D0[e]}});function L0(e,t){let n=Xn;if(ei[e]&&ei[e].class&&ei[e].class.langMap&&ei[e].class.langMap.size>0){let r=ei[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function Oi(e,t,n){if(!e.text)return e;let r=null,a=await Qt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new j("translateFailed","translate failed")}async function ax(e,t){for(let n of e)try{return await Oi({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function $g(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new ei[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function OP(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Qt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),xa(a,t.localConfig,!1),d=await R6(m,d,{sourceLanguage:OP(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=NP(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let h=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ft(t.user),w;try{w=new ei[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){h.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let I of h){let F=A instanceof j?new j(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(F,null,I)}}return{sentences:[]}}if(o.cache&&!So(a))for(let A of e.sentences){v++;let D=l;l==="openl"&&(D=l+"-"+d.codename||h0.DEFAULT_CODENAME);let I=w.getCacheKeyPrefix();I&&(D=I+"-"+D);let F=null;try{F=await yl(k9({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(R){k.warn("query cache DB error, but it's ok",R)}if(F){let R={...A,text:F.translatedText};f.sentences[v]=R,n&&n(null,R,A)}else h.push(A)}else h.push(...e.sentences);let C=h.length;if(y-C>0&&k.debug(`use ${y-C} sentences from cache`),!h.length)return f;let T=await w.multipleTranslate({sentences:h},d,(A,D,I)=>{if(n&&n(A,D,I),!A&&D&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||h0.DEFAULT_CODENAME);let R=w.getCacheKeyPrefix();R&&(F=R+"-"+F),o.cache&&yl(D9({translatedText:D.text,from:I.from,to:I.to,detectedFrom:D.from,key:nr(I.text),service:F}),3e3).catch(B=>{k.warn("set cache DB error",B)})}});for(let A of T?.sentences||[]){let D=f.sentences.findIndex(I=>!I);if(D===-1)throw new j("translateFailed","can not match the result");f.sentences[D]=A}return f}function NP(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var jP=1e5;var ix=Date.now();async function Sa(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=UP(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,b=null;async function h(C){let{container:T,onFrame:A,onIgnoreElement:D,id:I,isLongHtml:F}=C,R=document.createTreeWalker(T,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let O=P(_);return O==NodeFilter.FILTER_ACCEPT?ht.mark(_,I,m):YP(_,O,n)&&y(),O}),B=T;if(P(B)===NodeFilter.FILTER_REJECT)return;for(ht.mark(B,I,m);B;){if(a?.interruptEffectDOM)return;let _=Date.now()-ix;if(_>50&&(k.debug("taskTime",_,T),ix=Date.now(),await ot(0)),s&&s.length>0){let{currentNode:O,isMatchedSelection:z}=f(R,B,s);if(O)B=O;else break;if(!z)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let O=B;if(O.nodeName==="IFRAME"){A&&A(O),y(),ef(p,!0),B=R.nextNode();continue}O.nodeType===Node.ELEMENT_NODE&&(o&&tf(O,o),c&&rf(O,c));let z=Ur(O,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},O.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&O.childNodes.length==1&&O.childNodes[0].nodeType===Node.TEXT_NODE&&O.innerText?.length==1&&O?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),At(O,i)&&!z){v(O);let je=null;for(;!(je=R.nextSibling())&&R.parentNode(););B=je;continue}let V=Pi(O);if(!ox(p,O)||z){y(O);let je=z?O:O.parentElement;je&&je.childNodes.length>0&&S(p,je,je.immersiveTranslateComputedStyle||null)}V&&O.shadowRoot?.mode==="open"&&(z?A?.(O.shadowRoot):h({...C,container:O.shadowRoot})),O.nodeType===Node.ELEMENT_NODE&&At(O,n.likePreSelectors)&&u&&(F||WP(O,n.advanceTransformPreTagNewLine))}else if(B.nodeType===Node.TEXT_NODE)v(B);else throw new Error("should not be here");B=R.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function P(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Mi(_)){if(c){let ie=Object.keys(c);if(ie.length>0&&At(_,ie))for(let Le of ie){let N=c[Le];if(_.matches(Le)){let q=c[Le],Z=Object.keys(q);for(let we of Z){let pe=q[we];_.getAttribute(we)!==pe&&(pe===null?_.removeAttribute(we):_.setAttribute(we,pe))}break}}}if(!C.force&&ht.isMarked(_,I)||xy(_,I)||P0(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!Oa(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ie=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ie,nf(ie))return D&&D(_),NodeFilter.FILTER_REJECT;let je=Ur(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ie||null);if(_.isBlock=je,At(_,i)&&je)return NodeFilter.FILTER_REJECT}let O=_.getBoundingClientRect(),{width:z,height:V}=O;return _.nodeName==="IMG"&&(z>48&&V>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&V>0&&d!==!1&&(_.setAttribute("width",z),_.setAttribute("height",V))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||V>0&&V<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let O=_.textContent?.trim();if(!O)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:V,height:ie}=z.getBoundingClientRect();if(V>0&&V<4||ie>0&&ie<4)return NodeFilter.FILTER_REJECT}return l>0&&O.length>=l&&GP(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await h(e)}catch(C){k.error(C)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(C,T,A){let D=T.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(T))if(g=!1,T&&T.nodeType===Node.ELEMENT_NODE)if(ku(T,A))g=!0,b=T,y(),S(p,b,D);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g}}else if(T&&T.nodeType===Node.ELEMENT_NODE)if(ku(T,A))g=!0,b=T,y(),S(p,b,D);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};return{currentNode:T,isMatchedSelection:!0}}function y(C){let T=p.flatNodes.length-1;if(n.skipTrailTextRegex&&T>0)for(let D=T;D>=0;D--){let F=p.flatNodes[D]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(D,1);continue}break}if(C&&C.nodeName==="BR"){if(C.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=QP(C,n);let D=[...p.flatNodes],I=p.flatNodes.filter(F=>C.parentNode?.contains(F));I.length>0&&D.length!=I.length&&(p.flatNodes=I,p.flatNodes.original=D)}let A=zP(p,r,n);A&&t&&t(A),ef(p)}function v(C){if(!ox(p,C)){y(),ef(p);let T=C.parentNode;T&&S(p,T,T.computedStyle)}p.flatNodes.push(C)}function S(C,T,A){C.commonAncestorContainer=T;let D=w(A);C.isPreWhitespace=D}function w(C){return C&&C.whiteSpace&&C.whiteSpace.startsWith("pre")||C&&C.whiteSpace==="break-spaces"||!1}}function ox(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Pi(t));let r=qP(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function UP(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function HP(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function tf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function qP(e){return e&&e._currentStacks?e._currentStacks.some(t=>Pi(t)):!1}function zP(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Uc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=HP(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>jP){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:wy(o)}}else return null}function ef(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function nf(e){return e.display==="none"}var ht={_marked_key:r1,isMarked(e,t){return Lp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Pi(e)))return hb(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Pi(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Pi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function WP(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=Bn?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function GP(e,t,n){let r=e.textContent||"",a=Ty(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=sb(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function ux(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let b=c[g];if(g==="translate"&&b==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||KP(p,a,i,o)||!lb(f,n,r))continue}p.getAttribute(g)!==b&&(b===null?p.removeAttribute(g):p.setAttribute(g,b))}})}}function rf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function P0(e,t){return VP(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function VP(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(Nc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function ku(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function KP(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&P0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(yo(o,t,n))return!0}}return!1}function YP(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ur(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function QP(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ur(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function lx(e,t,n,r,a){let i=t,o=g1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${L}-theme-${i}-${d}: ${m}; +`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b}=yb(m);s+=`--${L}-theme-${i}-${d}-rgb: ${p}, ${g}, ${b}; `}}}),r||(r="inherit"),e&&(s+=` -.${P}-target-inner { font-family: ${r}; } +.${L}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` -[imt-state="dual"] .${P}-target-translation-theme-${i}-inner{color: ${c};} +[imt-state="dual"] .${L}-target-translation-theme-${i}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;u+=` -[imt-state="dual"] .${P}-target-translation-theme-${i}-inner{font-size: max(13px, ${c}%);} +[imt-state="dual"] .${L}-target-translation-theme-${i}-inner{font-size: max(13px, ${c}%);} `}if(n&&n.weight){let c=n.weight;u+=` -[imt-state="dual"] .${P}-target-translation-theme-${i}-inner{font-weight: ${c};} +[imt-state="dual"] .${L}-target-translation-theme-${i}-inner{font-weight: ${c};} `}n&&n.italics&&(u+=` -[imt-state="dual"] .${P}-target-translation-theme-${i}-inner{font-style: italic;} +[imt-state="dual"] .${L}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?hn(e,l,P+"-user-custom-style"):a&&hn(e,"",P+"-user-custom-style")}function Jo(e,t){let r=ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;hn(e,r,P+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};dx(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?fn(e,l,L+"-user-custom-style"):a&&fn(e,"",L+"-user-custom-style")}function Jo(e,t){let r=ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;fn(e,r,L+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};lx(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&hn(e,s,P+"-dynamic-injected-css")}async function mx(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Be({text:xo(document.body),pageLangs:t})),e}function af(e,t,n=[],r){let a=["notranslate"];return r&&a.push(f1),e&&(a.push(`${P}-target-translation-theme-${e}`),t?a.push(`${Vm}-theme-${e}`):a.push(`${Gm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Vm):a.push(Gm),a}function of(e){let t=["notranslate",Vl];return e&&t.push(`${P}-target-translation-theme-${e}-inner`),t}function px(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Pi(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let w=f.indexOf(S),C=f[w-1]===" ",T=f[w+S.length]===" ",D=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),I=Number(D);if(isNaN(I))return S;let F=o[I];if(F&&F.type==="element"){let R=Ze.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(R=" "+R),T||(R=R+" "),R}else k.error("variable type not supported",F,S);return S}));let y=af(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(g1);let v=of(i);return sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function R0(e,t,n,r,a){let i=t.original||t,o=sy(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function gx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function fx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=So(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=uu(e.targetText):e.targetText=Ze.sanitize(uu(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=Ec(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=dy(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` -`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Pi(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return ZP({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=px(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function ZP(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",w=p[v+y.length]===" ",C=y.match(h);if(!C)return y;let T=C[1],A=Number(T);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let I=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(I=" "+I),w||(I=I+" "),I}else if(D&&D.type==="text"){let I=D.value;return S||(I=" "+I),w||(I=I+" "),I}else k.error("variable type not supported",D,y);return y}));let b=af(l,n,r||[],s),f=of(l);return sf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function lf(e){let t=e[e.length-1];return t?t.text:""}function hx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Ml(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=$P(u.content,t),n&&tM(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:ky(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function bx(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function XP(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` -`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=XP(o,20),u=eM(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return Hc(i,document.body,t)}function eM(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function tM(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function yx(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Gl)||cf(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Lu="";async function cf(e){let t=document.title;if(!t||t.includes(Gl))return;Lu!==t&&(Lu=t);let n=await Be({text:t,pageLangs:[pt(),"en"]});if(!ko(e,n))try{let r=await ea({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Lu,document.title=r.text+Gl+Lu)}catch(r){throw r}}function xx(e){e.rule.isTranslateTitle&&(document.title=Lu)}function Zo(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function I0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Gp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`+t.rule.additionalInjectedCss)),s&&fn(e,s,L+"-dynamic-injected-css")}async function cx(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ne({text:xo(document.body),pageLangs:t})),e}function af(e,t,n=[],r){let a=["notranslate"];return r&&a.push(p1),e&&(a.push(`${L}-target-translation-theme-${e}`),t?a.push(`${Vm}-theme-${e}`):a.push(`${Gm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Vm):a.push(Gm),a}function of(e){let t=["notranslate",Gl];return e&&t.push(`${L}-target-translation-theme-${e}-inner`),t}function dx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Li(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],b=`${p}(\\d+)${g}`,h=new RegExp(b,"g"),f=u;o.length>0&&(f=f.replace(h,S=>{let w=f.indexOf(S),C=f[w-1]===" ",T=f[w+S.length]===" ",D=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),I=Number(D);if(isNaN(I))return S;let F=o[I];if(F&&F.type==="element"){let R=Ze.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(R=" "+R),T||(R=R+" "),R}else k.error("variable type not supported",F,S);return S}));let y=af(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(m1);let v=of(i);return sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function M0(e,t,n,r,a){let i=t.original||t,o=iy(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function mx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function px(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=So(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=su(e.targetText):e.targetText=Ze.sanitize(su(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=wc(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=ly(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` +`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Li(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return JP({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=dx(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function JP(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",w=p[v+y.length]===" ",C=y.match(b);if(!C)return y;let T=C[1],A=Number(T);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let I=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(I=" "+I),w||(I=I+" "),I}else if(D&&D.type==="text"){let I=D.value;return S||(I=" "+I),w||(I=I+" "),I}else k.error("variable type not supported",D,y);return y}));let h=af(l,n,r||[],s),f=of(l);return sf({targetWrapperTag:a,innerClassList:f,classList:h,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function lf(e){let t=e[e.length-1];return t?t.text:""}function gx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Pl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=XP(u.content,t),n&&eM(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Ey(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function fx(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function ZP(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` +`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=ZP(o,20),u=$P(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return Uc(i,document.body,t)}function $P(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function eM(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function hx(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Wl)||cf(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Du="";async function cf(e){let t=document.title;if(!t||t.includes(Wl))return;Du!==t&&(Du=t);let n=await Ne({text:t,pageLangs:[pt(),"en"]});if(!ko(e,n))try{let r=await Oi({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Du,document.title=r.text+Wl+Du)}catch(r){throw r}}function bx(e){e.rule.isTranslateTitle&&(document.title=Du)}function Zo(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function R0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Gp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function vx(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Gp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function yx(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Gp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${P}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function F0(e){let t=fy(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function on(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Up(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var nM={sanitize:e=>e};async function gf(e,t){if(e.interruptEffectDOM)return;ba("consumeContainer");let n=on(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{df(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Xi&&wt(t,"consumeContainer",e.id)}function df(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Na(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${ql}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,zr(t.contentWindow?.document.documentElement,e.translateState),ri(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ri(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ri(e,t,n=!0){ba("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=on(t.ctx),o=0;if(l(t,e,n))return;if(Ri(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ri(d)&&(a&&tf(d,a),i&&rf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await gf(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await st(0))}else Xi&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return df(t,c.shadowRoot,n),!1;if(d==="iframe")return df(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Du(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&Du(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){bx(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=on(c.ctx);return!!(M0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Pu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=Xo(e,t.rootNodes);if(mf(s))return;ni(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Xo(e,t.targetNodes,s);ni(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Xo(e,t.rootNodes);if(mf(s))return;ni(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Xo(e,t.targetNodes);ni(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),bf(t)}catch(s){k.error(s)}ba("inserted"),Py()}}function mf(e){return!e||!Ri(e)?!1:e.classList.contains(Lt)}function Xo(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ni(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var rM=Yn(B0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;ba("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||aM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Xi&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Pi(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=R0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:F0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await hf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:qr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),iM(e,t.text),ff(e,t,r)):(Xi&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function aM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ri(t)&&t.classList.contains(Lt):!1}function iM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function ff(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;ba("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Xi&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,o1,"1",!0),n=="hover"){B0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";rM.call(e,e.ctx,a)}async function B0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await _0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function _0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=cu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;ni(t,u,i.commonAncestorContainer,[s]),bf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Qt(a,t,(i,o,s)=>{let u=s.id,l=oM(e,u.toString());l&&sM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function oM(e,t){return e.find(n=>n.id===t)}function sM(e,t,n,r,a,i){ba("translated");let o=!1,s=r;Do(s.commonAncestorContainer,n.id)?.remove(),bf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(ao,"1");let p=fx(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Zo(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=nM.sanitize(p);m.innerHTML=Un?.createHTML(g)||g,c.targetNodes=[m],Pu(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,c1,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(mf(g)||ni(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=uM(a,c).replaceAll(` -`,"").replaceAll('"',"""),b=c.message.replaceAll(` -`,"").replaceAll('"',"""),f=De(a.config.interfaceLanguage,"retryAllButton"),y=De(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,v=De(a.config.interfaceLanguage,"error.retry"),S=De(a.config.interfaceLanguage,"error.reason"),w=`
<${d.targetWrapperTag} class="${P}-error notranslate"> - <${d.targetWrapperTag} class="${P}-error-wrapper"> - + ${r.innerHTML}`.replaceAll(`data-${L}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function I0(e){let t=py(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function on(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Up(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var tM={sanitize:e=>e};async function gf(e,t){if(e.interruptEffectDOM)return;fa("consumeContainer");let n=on(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{df(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Xi&&wt(t,"consumeContainer",e.id)}function df(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Oa(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Hl}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,qr(t.contentWindow?.document.documentElement,e.translateState),ni(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ni(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ni(e,t,n=!0){fa("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=on(t.ctx),o=0;if(l(t,e,n))return;if(Mi(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Mi(d)&&(a&&tf(d,a),i&&rf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await gf(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await ot(0))}else Xi&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return df(t,c.shadowRoot,n),!1;if(d==="iframe")return df(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return ku(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&ku(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){fx(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=on(c.ctx);return!!(P0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Lu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=Xo(e,t.rootNodes);if(mf(s))return;ti(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Xo(e,t.targetNodes,s);ti(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Xo(e,t.rootNodes);if(mf(s))return;ti(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Xo(e,t.targetNodes);ti(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),bf(t)}catch(s){k.error(s)}fa("inserted"),Dy()}}function mf(e){return!e||!Mi(e)?!1:e.classList.contains(Lt)}function Xo(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ti(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var nM=Yn(F0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;fa("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||rM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Xi&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Li(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=M0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:I0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await hf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Hr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),aM(e,t.text),ff(e,t,r)):(Xi&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function rM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Mi(t)&&t.classList.contains(Lt):!1}function aM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function ff(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;fa("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Xi&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,a1,"1",!0),n=="hover"){F0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";nM.call(e,e.ctx,a)}async function F0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await B0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function B0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=lu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;ti(t,u,i.commonAncestorContainer,[s]),bf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Qt(a,t,(i,o,s)=>{let u=s.id,l=iM(e,u.toString());l&&oM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function iM(e,t){return e.find(n=>n.id===t)}function oM(e,t,n,r,a,i){fa("translated");let o=!1,s=r;Do(s.commonAncestorContainer,n.id)?.remove(),bf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(ao,"1");let p=px(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Zo(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=tM.sanitize(p);m.innerHTML=Bn?.createHTML(g)||g,c.targetNodes=[m],Lu(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,u1,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(mf(g)||ti(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=sM(a,c).replaceAll(` +`,"").replaceAll('"',"""),h=c.message.replaceAll(` +`,"").replaceAll('"',"""),f=De(a.config.interfaceLanguage,"retryAllButton"),y=De(a.config.interfaceLanguage,"errorTooltipTitle")+": "+h,v=De(a.config.interfaceLanguage,"error.retry"),S=De(a.config.interfaceLanguage,"error.reason"),w=`<${d.targetWrapperTag} class="${L}-error notranslate"> + <${d.targetWrapperTag} class="${L}-error-wrapper"> + ${v}    - + ${S} - `;p.innerHTML=Un?.createHTML(w)||w}}}var Sx="";async function hf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=Sx.slice(0,e.rule?.detectTextBufferLength)+" "+o),Sx=s;let u=await Be({text:s,minLength:15,pageLangs:[pt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Lo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Lo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=t0();r.isDetectParagraphLanguage&&(m="auto");let p=pt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!Cc.includes(e.translationService)&&(te()||it())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return ja(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>ja(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Mu(){pf=0}var pf=0;function uM(e,t){pf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new j("contextInvalidated",n)),t instanceof j){let r=t.uiConfig(e);if(n=JSON.stringify(r),pf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(fn,{detail:r}))}return n}function bf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,lM(t,`[${s1}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function lM(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}var cM=[];function Tx(e){cM.push(e)}var yf;function Cx(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=on(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Ru(e,i,t,r)}),yf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&tr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||vf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Ru(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Hr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Mo(r,u.parentElement);c&&(ht.clearToParentMark(u,c),Ru(e,c,t,r));continue}Ru(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ht.isMarked(o,e.id)||Ru(e,o,t,r)})}),yf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Ru(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&xf(t),Ta({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{ji(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function wx(){yf?.disconnect()}function $o({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&hn(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}Ha(x(Go,{lang:t.config.interfaceLanguage,children:x(n,{...r})}),d)}function Ex(e){let t=document.createElement("span");return t.innerHTML=e,(t.textContent||"").trim()}function qe(e,t,n){Fe("translate_video_subtitle",[{name:"translate_video_subtitle",params:{video_platform:n||e.rule.id||""}}],{...e,sourceLanguage:t||"auto"})}function Xe(e,t){return e==t}function Ca(e,t){return!e||!t?!1:e.startsWith("zh")&&t.startsWith("zh")}function Ax(e){let{url:t,method:n,headers:r,body:a}=e,i=new Headers;for(let[u,l]of Object.entries(r))i.append(u,l);let o;return typeof a=="object"?(delete a._formatBodyType,o=JSON.stringify(a)):typeof a=="string"&&(o=a),new Request(t,{method:n,headers:i,body:o})}function kx(e){return e?Object.entries(e).reduce((t,[n,r])=>{if(r==null||r==null||typeof r=="object"&&Object.keys(r).length===0)return t;if(n=="body"&&typeof r=="object"&&r._formatBodyType=="FormData"){let a=new FormData;for(let[i,o]of Object.entries(r))i!=="_formatBodyType"&&a.append(i,o);return t[n]=a,t}return t[n]=r,t},{}):null}function Sf(e){return e.replace(/\n/g," ")}function Dx(e){let t;return e instanceof URL?t=e.href:typeof e=="string"?t=e:e instanceof Request?t=e.url:t=String(e),t}function O0(e,t,n){let r="translationServices."+n,a=t("translationServices."+n);return a!=r?a:e.config.translationServices[n]?.name||a}function es(e){return ts(e).subtitles}function ts(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${zf.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},aR=e=>/]*>[\s\S]*]*>/.test(e),fv=un({name:gv,build:rR,detect:aR,helper:zf,parse:nR});var iR="srt",Nu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},oR=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Nu.toMilliseconds(s[2]),u.end=Nu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},sR=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${Nu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},uR=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),hv=un({name:iR,build:sR,detect:uR,helper:Nu,parse:oR});var lR="sub",Wf=25,cR=(e,t)=>{t.fps||=Wf;let n=t.fps>0?t.fps:Wf,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Wf,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},mR=e=>/^\{\d+\}\{\d+\}.*/.test(e),bv=un({name:lR,build:dR,detect:mR,parse:cR});var pR="vtt",ju={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},gR=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=ju.toMilliseconds(s[2]),l.end=ju.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},fR=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${ju.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},hR=e=>/^\s*WEBVTT\r?\n/.test(e),yv=un({name:pR,build:fR,detect:hR,helper:ju,parse:gR});var bR={vtt:yv,lrc:mv,smi:fv,ssa:lv,ass:cv,sub:bv,srt:hv,sbv:pv,json:dv},xv=bR;var yR=e=>JSON.parse(JSON.stringify(e)),Gf=class{format=xv;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),q0.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];Zo(this.ctx)&&this.isEnableSubtitle()&&(wt(document.documentElement,Y+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${P}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&hn(document,`${t.join(` -`)}`,P+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await We(Se(),{});if(this.initConfig(n),await st(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(Ax(r),kx(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!ze(Se(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return De(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:O0(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function BM(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:z0}})}function _M(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:Gx}})}function OM(){return x("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:x("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function NM(){return x("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:x("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function jM(){return x("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:x("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var Nf=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},un=e=>new Nf(e);var UM="ssa",Ui={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},jf=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sw.split(C,T).join(C).length)(h,",",r.length-1)+1;y.content=h.substring(S),y.data.Text=y.content,y.text=y.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(y)}}}}}t.verbose}return a},Uf=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,sv=un({name:UM,build:Uf,detect:Hf,helper:Ui,parse:jf});var HM="ass",uv=un({name:HM,build:Uf,detect:Hf,helper:Ui,parse:jf});var qM="json",zM=(e,t)=>JSON.parse(e),WM=(e,t)=>JSON.stringify(e,void 0,2),VM=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},lv=un({name:qM,build:WM,detect:VM,parse:zM});var KM="lrc",qf={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},YM=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),cv=un({name:KM,build:QM,detect:JM,helper:qf,parse:YM});var ZM="sbv",_u={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},XM=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},$M=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),dv=un({name:ZM,build:$M,detect:eR,helper:_u,parse:XM});var mv="smi",zf={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},tR=(e,t)=>{if(t.format&&t.format!==mv)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(d){let m={};m.type="caption",m.start=parseInt(d[1]),m.end=m.start+2e3,m.duration=m.end-m.start,m.content=d[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,g=/^([\s\S]*)/i.exec(m.content)||/^]*)>([\s\S]*)/i.exec(m.content);if(g){let b=g[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),b=b.replace(/^\s+/g,"").replace(/\s+$/g,""),p=b.replace(/ /gi," ").replace(/\s+/g,"").length===0,m.text=zf.htmlDecode(b,r)}!t.preserveSpaces&&p?t.verbose:n.push(m),s&&(s.end=m.start,s.duration=s.end-s.start),s=m;continue}t.verbose}return n},nR=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${zf.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},rR=e=>/]*>[\s\S]*]*>/.test(e),pv=un({name:mv,build:nR,detect:rR,helper:zf,parse:tR});var aR="srt",Ou={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},iR=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Ou.toMilliseconds(s[2]),u.end=Ou.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},oR=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Ou.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},sR=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),gv=un({name:aR,build:oR,detect:sR,helper:Ou,parse:iR});var uR="sub",Wf=25,lR=(e,t)=>{t.fps||=Wf;let n=t.fps>0?t.fps:Wf,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Wf,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},dR=e=>/^\{\d+\}\{\d+\}.*/.test(e),fv=un({name:uR,build:cR,detect:dR,parse:lR});var mR="vtt",Nu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},pR=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Nu.toMilliseconds(s[2]),l.end=Nu.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},gR=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Nu.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},fR=e=>/^\s*WEBVTT\r?\n/.test(e),hv=un({name:mR,build:gR,detect:fR,helper:Nu,parse:pR});var hR={vtt:hv,lrc:cv,smi:pv,ssa:sv,ass:uv,sub:fv,srt:gv,sbv:dv,json:lv},bv=hR;var bR=e=>JSON.parse(JSON.stringify(e)),Gf=class{format=bv;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),H0.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];Zo(this.ctx)&&this.isEnableSubtitle()&&(wt(document.documentElement,Y+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${L}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&fn(document,`${t.join(` +`)}`,L+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await He(ve(),{});if(this.initConfig(n),await ot(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(wx(r),Ex(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!We(ve(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return De(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:_0(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=Ze.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Qt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=U0(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Bu(this.ctx,n,r)}getTranslationMode(t){return Ca(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=P+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;qe(this.ctx,n);let r=t.filter(a=>a.text);wa(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(_u(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Mn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&$o({id:P+"quick-button",parent:n,ctx:this.ctx,Component:sv,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:uv+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Hi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return l0(t.slice(0,50).map(n=>n.text).join(" "))}};function Sv(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var G0=class extends tt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!ze(Se(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Xe($(r),this.ctx.targetLanguage);if(a||Ca(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(Vx(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=Gx(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${rt}subtitles/yt-asr-subs`;try{let a=await n0(t),o=(await K({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Xe($(o),r)&&!Ca($(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Xe($(d.languageCode),r)&&!Ca($(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>$(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=$(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=Sv(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>$(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>$(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return $(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=P+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Xe($(a[u]),this.ctx.targetLanguage)&&!Ca($(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:Ex(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await We(Se(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&_u(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await We(Se(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=N0(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Se()&&(this.lastReportUrl=Se(),qe(this.ctx,$(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),j0(a.arrayBuffer,a.document))}catch{}}};var V0=class extends tt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;qe(this.ctx,$(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:$(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,$(i));return}this.downloadSubtitle(o,$(i),[]);let u=await this.requestHumanSubtitle(o,$(i),r);if(u)return this.handleIOSFullScreen(u,$(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,$(i));return l?(this.handleIOSFullScreen(l,$(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[$(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ns(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!te()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Iu(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Se()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ii=class extends tt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),$(i.language)),i.isTranslated=!0;return}qe(this.ctx,$(i.language)),this.translateSubtitle([...i.cues||[]],$(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>xR(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function xR(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var ta=class extends ii{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&qe(this.ctx,$(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,$(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var is=class extends ta{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=ts(r),i=await Be({text:a.subtitles.map(l=>l.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Xe($(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,$(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ai(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var K0=class extends tt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Xe($(a),this.ctx.targetLanguage))return null;qe(this.ctx,$(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,$(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:Sf(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=Br(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${Sf(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Y0=class extends ii{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;qe(this.ctx,$(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,$(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,$(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=es(t),s=es(i),u=ns(o,s);return{text:ai(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=es(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=Br(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),ai(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[$(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Se()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Q0=class extends tt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=Tv(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=Tv(o,r.itemsPath):s=SR(o,r),!s?.length)continue;let u=await Be({text:s.map(l=>Uu(l,r.textKey)).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Uu(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),qe(this.ctx,$(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Uu(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=vR(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function Tv(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Mo(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,qe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return tr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Hp(t);o.append(Ze.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Be({text:n,pageLangs:[pt(),"en"]});return ko(t,r)?void 0:(await ea({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ye(),n=await We(Se(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await We(Se(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var J0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=TR(r),o=await Be({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=Cv(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),qe(this.ctx,$(o));let s=await this.translateSubtitle(a,i,$(o));if(this.config.enableHookDownload)try{let u=Cv(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),$(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Br(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(Hu,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},Hu="http://www.w3.org/ns/ttml";function TR(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Hu,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Hu,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Hu,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function Cv(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Hu,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:wv(i),end:wv(o),text:s})}),r}function wv(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Z0=class extends tt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=ts(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Xe(o,this.ctx.targetLanguage))return null;if(qe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,$(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ns(n.subtitles,es(u));return n.subtitles=l,ai(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=Br(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),ai(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>$(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=ER(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return Be({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Se()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=wR(r),i=CR(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function CR(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function wR(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function ER(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var X0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=N0(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(qe(this.ctx,$(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),j0(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var $0=class extends tt{async requestSubtitle(t){let n=await We(Se(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new is(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Tf(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}Px(a),kf(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var ed=class extends tt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(Ev).forEach(n=>{Ev[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Xe($(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(qe(this.ctx,t),wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=Dx(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},Ev={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var td=class extends ta{constructor(t){super(t),new os(t)}};var nd=class extends ta{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Hi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Be({text:i.map(c=>c.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Xe($(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,$(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Hi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var rd=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Be({text:a.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Xe($(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,$(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),$(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",b=wf(g,l),f=wf(h,l),y=sn(b),v=sn(f);u==="duration"&&(v=y+v);let S=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(S||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var ad=class extends tt{hasSubtitle=!1;async mutationVideoChange(){let t=AR(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(qe(this.ctx,"ja","av"),this.hasSubtitle=!0,wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await K({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Hi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function AR(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var id=class extends tt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(qe(this.ctx,n.language_code),wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var kR={youtube:G0,netflix:V0,webvtt:is,khanacademy:K0,udemy:Y0,hulu:$0,mubi:id,text_track:ii,text_track_dynamic:ta,general:Q0,live:os,ebutt:J0,disneyplus:Z0,"fmp4.xml":X0,multi_attach_vtt:ed,twitter:td,subsrt:nd,xml:rd,av:ad},od;async function Av(e){try{te()&&await st(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=kR[t.type];if(!n)return;od=new n(e)}catch(t){k.error(t)}}async function Vf(){od?.onPageStatusChange()}async function DR(e,t){if(od?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Ke())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Fe("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function LR(){od?.onTranslationModeChanged()}E9({autoEnableSubtitleChanged:DR,reloadSubtitleWithTranslationModeChanged:LR});var ue=null;function qu(){return ue||null}function ud(e){Jo(document,e),PR(e),OR(e),FR(e),_R(e),IR(ue),_n("Translated"),BR(ue),Tx(ss),MR(ue),Vf(),VR()}function PR(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=on(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}cx(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}Zo(e)&&wt(document.documentElement,Y+"_rtl",e.targetLanguage)}function MR(e){let t=e.ctx;Bv(t,!0),Cx(e),Cy(window.location.href)}function RR(e){let t=e.ctx;Bv(t,!1),wx()}async function IR(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await Pv(e.ctx,on(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ri(s,e);await ri(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ri(s,e)}function Pv(e,t){x9(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=hx(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Fo({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function FR(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Yt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await zt({...t,tempTranslationUrlMatches:[...i]})}}function BR(e){e.ctx.rule.isTranslateTitle&&(cf(e.ctx),e.titleDynamicObserver=yx(e.ctx))}function _R(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Kf(e,t){ue&&(e.filterRule=on(e,!0),e.isRichTranslate=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=on(e)),ue.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},ue.translationService=e.translationService,ue.urlChangeDelay=e.rule.urlChangeDelay,ue.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ue.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",zr(document.documentElement,ue.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function OR(e){let t=nu();ue&&(t=ue.id),ue=ue||{},ue.ctx=e,ue.id=t,ue.paragraphQueue=ue.paragraphQueue||[],Kf(e),ue.currentUrl=window.location.href,ue.paragraphEntities=ue.paragraphEntities||{},ue.autoIncreaseParagraphId=ue.autoIncreaseParagraphId||1,ue.interruptEffectDOM=!1,ue.observeContainers=ue.observeContainers||[],ue.observeParagraphs=ue.observeParagraphs||[],ue.dynamicContainerObserver=ue.dynamicContainerObserver||WR(ue),ue.ignoreResizeObserver=ue.ignoreResizeObserver||GR(ue),ue.containerVisibleObserver=ue.containerVisibleObserver||UR(ue),ue.paragraphVisibleObserver=ue.paragraphVisibleObserver||HR(ue),ue.injectCssToDocument=sd,ue.walkContainer=Ta,e.specialAiAssistant=Fr(e,e.translationService,!0),window.onerror=jR(ue,e),window.immersiveTranslateSwitchTranslateState=Qf.bind(ue)}function Mv(e,t){t.getRootNode()instanceof ShadowRoot?sd(t.getRootNode(),e):sd(t.ownerDocument,e),NR(e)}function NR(e){ue||(ue={},ue.ctx=e,ue.id=nu(),Yf(ue,e))}function Yf(e,t){let n={...e};n.injectCssToDocument=sd,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=Qf.bind(n);let r=Fr(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Ao(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function ss(e=!0){ue&&(_n("Original"),Vf(),RR(ue),Mu(),ue.interruptEffectDOM=!0,ue.ignoreResizeObserver?.disconnect(),ue.dynamicContainerObserver?.disconnect(),ue.containerVisibleObserver?.disconnect(),ue.paragraphVisibleObserver?.disconnect(),ue.titleDynamicObserver?.disconnect(),xx(ue.ctx),by(),yy(),e&&Qf.call(ue,"original"),Object.values(ue.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ue=null)}function jR(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),ss(),n=setTimeout(()=>{ud(t)},e.urlChangeDelay||2e3)),!0}}function UR(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await gf(e,r.target),n.unobserve(r.target))})}function HR(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{ff(e,o)}),n.unobserve(a)}})})}var kv;function qR(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function zR(e){if(e.urlChangeDelay<=0||(clearTimeout(kv),e.translateState=="original"))return!1;ss(e.urlChangeDelay>20),kv=setTimeout(()=>{let t=e.ctx;ud(t)},e.urlChangeDelay)}function WR(e){let t=e.ctx.rule,n=on(e.ctx);return new MutationObserver(r=>{if(qR(e)&&(Pv(e.ctx,n),t.mutationConfig.enableUrlChange&&zR(e))||e.interruptEffectDOM)return;let a=Uc(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!tr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&tr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Vl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Dv(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&vf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Dv(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ht.isSkipMarkEle(i.target)&&!ht.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Hr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Mo(n,o.parentElement);l&&(ht.clearToParentMark(o,l),Lv(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&Lv(e,i.target)}catch(o){k.error(o)}}})}function Dv(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{xf(n),Ta({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{ji(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function Lv(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ht.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ri(t,e,n),i.timer=null},a)}function xf(e){e.paragraphs=[],ht.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${P}-walked]`).forEach(t=>{t.paragraphs=void 0,ht.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function vf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function GR(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);nf(i)||(n.unobserve(r.target),ht.clearMark(a),ri(a,e))}})}async function Qf(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await _r(),await st(50),Jt({method:"translatePage"});return}this.translateState=e,zr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{zr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Pu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function sd(e,t){if(e instanceof HTMLIFrameElement){Jo(e.contentDocument,t);return}Jo(e,t)}async function Rv(e){let t=Ke(),n="auto";if(te()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=Pp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})):(r=xo(e.mainFrame).slice(0,1e3),n=await Be({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Be({text:xo(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=Pp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})}else n=await D9();return n==="auto"&&(n=await mx()),f9(n),n}async function Iv(){if(!ue)return;Mu(),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ue.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){ue.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${zl}='${n}']`);i&&i.remove()}}B0.call(ue,ue.ctx)}async function Jf(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Fe("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:pt()});let r=ue?.ctx||t,a=await Yt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:vx(r)},await zt(a);let o=ke().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Gr(o)}catch(i){k.error(i)}}async function Fv(){let e=await Yt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(t1,{detail:JSON.stringify(e.draft)}))}async function VR(){try{if(await Ii("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Lr();await K({url:rt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Pr("reportActive","1")}catch(e){k.error(e)}}function Bv(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(ro,{detail:{tempEnableSubtitle:t}}))}function Zf(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&jn(o,s=>{s.preventDefault();let u=r[i];Jt({method:u,data:{trigger:"shortcut"}})})}}var KR="imt-fb";function Rt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${KR}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function _v(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var ld="DROP_DOWN_DEFAULT_VALUE";function Xf(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:ld,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==ld){s.current.value=ld,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:ld,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function us(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var YR=({date:e})=>{let{t}=oe(),[n,r]=W(!1);return J(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},QR=({minVersion:e})=>{let{t}=oe();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},JR=()=>{let{t:e}=oe();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ae+"docs/installation/"})}})},ZR=({message:e,handleSyncing:t,date:n})=>{let{t:r}=oe();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function $f(e){let{isShowError:t,request:n}=e,[r,a]=W(null),{t:i}=oe(),[o,s]=W(null),[u,l]=W(null),[c,d]=W(""),[m,p]=W(!1),[g,h]=W(!1),[b,f]=W(!1),[y,v]=W(null),[S,w]=W(null),C=Ht(),T=async()=>{d("");let A=o;if(o===null)try{let D=await n({url:Fs});D?(s(D),A=D,p(!0)):(d(i("unknownError")),l(null))}catch(D){l(null),d(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return J(()=>{le.DEBUG||qt().then(A=>{let D=A.buildinConfigUpdatedAt;v(A);let I=new Date(D);if(a(D),C==="0.0.0"){f(!0);return}n({url:Fs}).then(F=>{let R=F,B=R.minVersion,L=C;s(R);let _=R.latestVersion;if(_&&(us(L,_)?w(!0):w(!1)),us(L,B)){let O=R.buildinConfigUpdatedAt;new Date(O)>I?(l(!0),T()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),J(()=>{qt().then(A=>{v(A),va(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x(JR,{}):c?t===!1?null:x(ZR,{handleSyncing:T,message:c,date:r||""}):g?t===!1?null:x(QR,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(YR,{date:r}):null}):null}function XR(){return navigator.userAgent.indexOf("Mac")!==-1}var Ov={Alt:"\u2325"};function ls(e=""){return XR()?Object.keys(Ov).reduce((t,n)=>t.replace(n,Ov[n]),e):e}var Nv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var jv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Uv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),Hv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),qv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var zv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),Wv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),Gv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),Vv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function cs(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function Kv(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=oe();return Ga(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Os,`${e.type}_user_info`);return}e.onOpenUrl(Ql,`${e.type}_user_info`)},children:[x("img",{src:n?Qx:Yx}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x($R,{...e})]})}function $R(e){let{t}=oe(),n=he(()=>cs(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Os,`${e.type}_pro_logo`)},children:x("img",{src:as})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Fn)},children:[x(Rt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Fn,`${e.type}_user_upgrade`)},children:[Wv,x("span",{children:t("popup.upgrade")})]})}var oi=(e,t,n,r)=>{let a=p2[e]||e,i=ip[e]||e,o=op[e],s=sp[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function eh(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=op,a="zh-CN"):n==="zh-TW"?(r=sp,a="zh-TW"):(r=ip,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function Yv({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=oe();if(!t)return null;let o=P0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(eI,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:Jx,style:{maxWidth:"unset"},class:"mx-2"}),x(tI,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function eI(e){let{t}=oe(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=oi(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=oi(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function tI(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=oi(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function si(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=oe();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var th;function dh(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r5(e,t=","){return e.map(dh).join(t)}var a5=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function dd(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function md(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function nI(){}var mn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function i5(e){return e.match(/[-=:;]/g)?.length||0}function sh(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(i5(e),15)<<18}var rI=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function mh({n:e,i:t,v:n=[]},r,a,i){e&&(e=dh({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&md(u)||r.v(s))){var o;i.push(l),a|=u?67108864|sh(l):s=="dark"?1073741824:l[0]=="@"?sh(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~rI.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var ph=new Map;function Qv(e){if(e.d){let t=[],n=nh(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?nh(r,i=>nh(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):rh(i,o)}return rh(o,i)})):r,"&"),r=>rh(r,e.n?"."+a5(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function nh(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function rh(e,t){return e.replace(/&/g,t)}var Jv=new Intl.Collator("en",{numeric:!0});function aI(e,t){for(var n=0,r=e.length;n>1;0>=o5(e[a],t)?n=a+1:r=a}return r}function o5(e,t){let n=e.p&mn.o;return n==(t.p&mn.o)&&(n==mn.b||n==mn.o)?0:e.p-t.p||e.o-t.o||Jv.compare(Zv(e.n),Zv(t.n))||Jv.compare(Xv(e.n),Xv(t.n))}function Zv(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Xv(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ah(e,t){return Math.round(parseInt(e,16)*t)}function ui(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ah(e.substr(1,i),o),ah(e.substr(1+i,i),o),ah(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function s5(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...l5(s,u,fh(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ir(v))m.push(...i(S,{n:s,p:(b=mn[y[7]],u&~mn.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:mn.d,o:0,r:[y],d:i(v,{p:mn.d},d).map(Qv).join("")});continue}if(y[1]=="f"){m.push(...ir(v).map(S=>({p:mn.d,o:0,r:[y],d:i(S,{p:mn.d},d).map(Qv).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+dd(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:i5(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(v).map(S=>d.s(y,u5(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(w,C)=>{let T=d.theme("screens",C);return T?(S|=67108864,md(T,"")):w}),S|=sh(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(o5)}(e,mh(t,n,r,a),n)}function u5(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?ui(s):""+ir(s).filter(u=>Object(u)!==u)})}function gh(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function uh(e,t,n=mn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=ph.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=mh(u,l,c,d),gh(uh(fh(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(h=c,b=g.p??c,h&~mn.o|b)}}):s5(p,u,l,c,d):[{c:dh(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(aI(i,s),0,s);return i}function l5(e,t,n,r,a,i,o,s){return gh((s?n.flatMap(u=>uh([u],r,a,i,o)):uh(n,r,a,i,o)).map(u=>u.p&mn.o&&(u.n||t==mn.b)?{...u,p:u.p&~mn.o|t,o:0}:u),e)}function iI(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=mh(i,o,t);return n&&l5(s,t,n,o,u,l,c,r)},ph.set(e,a),e}function ih(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(oI),i:a}))}}function oI(e,t,n){return n.indexOf(e)==t}var $v=new Map;function fh(e){let t=$v.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&ih(n,r)),a=s+1};for(;s1?d.slice(0,-1)+dd(JSON.stringify([d,m])):d+"("+r5(m)+")",mn.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),$v.set(e,t=r[0])}return t}function c5(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function d5(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?c5(e,t,n=>oh(n).trim()):t.filter(Boolean).reduce((n,r)=>n+oh(r),e?oh(e):"")}function oh(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=d5(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var bme=m5("@"),yme=m5("~");function m5(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return r5(fh(n+e+"("+d5(r,a)+")"))}}function lh(e,t){return Array.isArray(e)?e5(c5(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?e5(e):[e]}var sI=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function e5(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=sI.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function p5(e,...t){var n;let r=lh(e,t),a=(r.find(i=>i.label)?.label||"css")+dd(JSON.stringify(r));return n=(i,o)=>gh(r.flatMap(s=>s5(s,i,o,mn.o)),a),ph.set(a,n),a}var xme=new Proxy(function(e,t){return t5("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return t5(t,n,r)}}});function t5(e,t,n){return{toString(){return p5({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function X(e,t,n){return[e,uI(t,n)]}function uI(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ch(n,1)}):n=>e||{[n[1]]:ch(n,2)}}function ch(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,lI(t,n,r)]}function lI(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=g5(e||a[1]),s=i.theme(o,a.$$)??ds(a.$$,o,i);if(s!=null)return a._=ch(a,0,s),r(a,i,o)}}function Zt(e,t={},n){return[e,cI(t,n)]}function cI(e={},t){return(n,r)=>{let{section:a=g5(n[0]).replace("-","")+"Color"}=e,[i,o]=dI(n.$$);if(!i)return;let s=r.theme(a,i)||ds(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&ds(o,l,r),p=t||(({_:h})=>{let b=zu(c,h);return d?{[d]:b}:b});n._={value:ui(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>ui(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:ui(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>ui(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function dI(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function zu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function ds(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=cd(u5(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function g5(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function cd(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>cd(n)+r+cd(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var vme=Symbol();var f5=new Proxy(nI,{apply(e,t,n){return th(n[0])},get(e,t){let n=th[t];return typeof n=="function"?function(){return n.apply(th,arguments)}:n}});var Sme=function e(t){return new Proxy(function(n,...r){return n5(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return n5(t,r,a,i)}}})}();function n5(e,t,n,r){return{toString(){let a=lh(n,r),i=a5(t+dd(JSON.stringify([t,a])));return(typeof e=="function"?e:f5)(p5({[`@keyframes ${i}`]:lh(n,r)})),i}}}var h5={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Qe("blur"),backdropBrightness:Qe("brightness"),backdropContrast:Qe("contrast"),backdropGrayscale:Qe("grayscale"),backdropHueRotate:Qe("hueRotate"),backdropInvert:Qe("invert"),backdropOpacity:Qe("opacity"),backdropSaturate:Qe("saturate"),backdropSepia:Qe("sepia"),backgroundColor:Qe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Qe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Qe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Qe("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Qe("colors"),caretColor:Qe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Qe("borderColor"),divideOpacity:Qe("borderOpacity"),divideWidth:Qe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Wu(2,6),...Wu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Qe("spacing"),gradientColorStops:Qe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Wu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Wu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Qe("spacing"),placeholderColor:Qe("colors"),placeholderOpacity:Qe("opacity"),outlineColor:Qe("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Qe("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Qe("spacing"),scrollPadding:Qe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Qe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Qe("colors"),textDecorationColor:Qe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Qe("spacing"),textOpacity:Qe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Qe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Wu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function Wu(e,t){let n={};do for(var r=1;rt(e)}var jme={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${h5.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${h5.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},Hme=[X("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:ds(`[${t}]`,"",n)}}})),X("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),X("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[md(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),X("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),X("box-(border|content)","boxSizing",({1:e})=>e+"-box"),X("hidden",{display:"none"}),X("table-(auto|fixed)","tableLayout"),X(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",X("isolate","isolation"),X("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),X("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",pd),X("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),X("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),X("(visible|collapse)","visibility"),X("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),X("flex-((row|col)(-reverse)?)","flexDirection",b5),X("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),X("grid-cols-(\\d+)","gridTemplateColumns",S5),ee("col-","gridColumn"),X("col-(span)-(\\d+)","gridColumn",v5),ee("col-start-","gridColumnStart"),X("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),X("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),X("grid-rows-(\\d+)","gridTemplateRows",S5),ee("row-","gridRow"),X("row-(span)-(\\d+)","gridRow",v5),ee("row-start-","gridRowStart"),X("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),X("row-end-(auto|\\d+)","gridRowEnd"),X("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>pd(b5(e))),X("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",X("justify-","justifyContent",y5),X("(content|items|self)-",e=>({["align-"+e[1]]:y5(e)})),X("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",ms("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",ms("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),X("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:Or(e)}:{fontFamily:Or(e[0]),...e[1]}),X("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),X("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),X("italic","fontStyle"),X("not-italic",{fontStyle:"normal"}),X("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...li({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),X("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),X("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Zt("placeholder-",{property:"color",selector:"&::placeholder"}),X("text-(left|center|right|justify|start|end)","textAlign"),X("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Zt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),X("(overline|underline|line-through)","textDecorationLine"),X("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Zt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),X("decoration-","textDecorationStyle"),X("(uppercase|lowercase|capitalize)","textTransform"),X("normal-case",{textTransform:"none"}),X("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),X("align-","verticalAlign"),X("whitespace-","whiteSpace"),X("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),X("break-words",{overflowWrap:"break-word"}),X("break-all",{wordBreak:"break-all"}),X("break-keep",{wordBreak:"keep-all"}),Zt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Zt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),X("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qi(e," ")},var(--tw-gradient-stops))`),Zt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Zt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Zt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),X("bg-(fixed|local|scroll)","backgroundAttachment"),X("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),X(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),X("bg-blend-","backgroundBlendMode"),X("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Zt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),X("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",pd),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qi(n[0])}-radius`]:t,[`border-${qi(n[1])}-radius`]:t}}),X("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),X("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...li({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Zt("border-([xytrbl])-",{section:"borderColor"},ms("border","Color")),Zt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",ms("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),X("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),X("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Zt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Zt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),X("ring-inset",{"--tw-ring-inset":"inset"}),Zt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...li({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ui(t("ringOffsetColor","","#fff")),"--tw-ring-color":ui(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Zt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...li({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Or(e),"--tw-shadow-colored":Or(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),X("mix-blend-","mixBlendMode"),...x5(),...x5("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Or(e),transitionTimingFunction:e._=="none"?void 0:Or(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Or(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",Or),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Or),ee("delay(?:$|-)","transitionDelay","transitionDelay",Or),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Or(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",X("transform",bh),X("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":T5(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...bh()})),ee("-?(rotate)-","rotate",hh),ee("-?(translate-[xy])-","translate",hh),ee("-?(skew-[xy])-","skew",hh),X("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",pd),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",X("snap-(none)","scroll-snap-type"),X("snap-(x|y|both)",({1:e})=>({...li({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),X("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),X("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),X("snap-(normal|always)","scroll-snap-stop"),X("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",ms("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",ms("scroll-margin")),X("touch-(auto|none|manipulation)","touch-action"),X("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...li({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),X("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),X("outline",{outlineStyle:"solid"}),X("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Zt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],X("select-(none|text|all|auto)","userSelect"),Zt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Zt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),X("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),X("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function pd(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function b5(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Or(e){return e&&""+(e._||e)}function y5({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function ms(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...zu(e+"-"+qi(a[0])+t,r),...zu(e+"-"+qi(a[1])+t,r)}:zu(e+t,r)}}function x5(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...li(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,X(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function hh({1:e,_:t}){return{["--tw-"+e]:t,...bh()}}function bh(){return{...li({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":T5()}),transform:"var(--tw-transform)"}}function T5(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function v5({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function S5({1:e}){return`repeat(${e},minmax(0,1fr))`}function li(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var gd=globalThis||(typeof window<"u"?window:self),gI=Object.create,xh=Object.defineProperty,fI=Object.getOwnPropertyDescriptor,hI=Object.getOwnPropertyNames,bI=Object.getPrototypeOf,yI=Object.prototype.hasOwnProperty,xI=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vI=(e,t)=>{for(var n in t)xh(e,n,{get:t[n],enumerable:!0})},yh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of hI(t))!yI.call(e,a)&&a!==n&&xh(e,a,{get:()=>t[a],enumerable:!(r=fI(t,a))||r.enumerable});return e},SI=(e,t,n)=>(yh(e,t,"default"),n&&yh(n,t,"default")),w5=(e,t,n)=>(n=e!=null?gI(bI(e)):{},yh(t||!e||!e.__esModule?xh(n,"default",{value:e,enumerable:!0}):n,e)),E5=xI((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof gd=="object"&&gd.global===gd?gd:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),A5={};vI(A5,{default:()=>fd});var TI=w5(E5());SI(A5,w5(E5()));var{default:C5,...CI}=TI,fd=C5!==void 0?C5:CI;function q5(e){return typeof e>"u"||e===null}function wI(e){return typeof e=="object"&&e!==null}function EI(e){return Array.isArray(e)?e:q5(e)?[]:[e]}function AI(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Sh(e,t){return Xt.repeat(" ",t-e.length)+e}function BI(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=vh(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Xt.repeat(" ",t.indent)+Sh((e.line-u+1).toString(),c)+" | "+l.str+` +`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Qt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=j0(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Fu(this.ctx,n,r)}getTranslationMode(t){return Ta(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=L+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;ze(this.ctx,n);let r=t.filter(a=>a.text);Ca(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Bu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Pn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&$o({id:L+"quick-button",parent:n,ctx:this.ctx,Component:iv,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:ov+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Hi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return u0(t.slice(0,50).map(n=>n.text).join(" "))}};function xv(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var W0=class extends tt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!We(ve(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Xe($(r),this.ctx.targetLanguage);if(a||Ta(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(Wx(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=zx(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${rt}subtitles/yt-asr-subs`;try{let a=await t0(t),o=(await K({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Xe($(o),r)&&!Ta($(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Xe($(d.languageCode),r)&&!Ta($(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>$(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=$(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=xv(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>$(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>$(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return $(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=L+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Xe($(a[u]),this.ctx.targetLanguage)&&!Ta($(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:Cx(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await He(ve(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Bu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await He(ve(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=O0(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Ne({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==ve()&&(this.lastReportUrl=ve(),ze(this.ctx,$(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),N0(a.arrayBuffer,a.document))}catch{}}};var G0=class extends tt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;ze(this.ctx,$(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:$(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,$(i));return}this.downloadSubtitle(o,$(i),[]);let u=await this.requestHumanSubtitle(o,$(i),r);if(u)return this.handleIOSFullScreen(u,$(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,$(i));return l?(this.handleIOSFullScreen(l,$(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[$(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ns(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!te()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Ru(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(ve()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ai=class extends tt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),$(i.language)),i.isTranslated=!0;return}ze(this.ctx,$(i.language)),this.translateSubtitle([...i.cues||[]],$(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>yR(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function yR(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var $r=class extends ai{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&ze(this.ctx,$(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,$(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var is=class extends $r{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=ts(r),i=await Ne({text:a.subtitles.map(l=>l.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Xe($(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,$(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ri(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}};var V0=class extends tt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Xe($(a),this.ctx.targetLanguage))return null;ze(this.ctx,$(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,$(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:Sf(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=Fr(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${Sf(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var K0=class extends ai{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;ze(this.ctx,$(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,$(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,$(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=es(t),s=es(i),u=ns(o,s);return{text:ri(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=es(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=Fr(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),ri(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[$(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(ve()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Y0=class extends tt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=vv(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=vv(o,r.itemsPath):s=vR(o,r),!s?.length)continue;let u=await Ne({text:s.map(l=>ju(l,r.textKey)).join(` +`),pageLangs:[Ct(),"en"]});if(Xe($(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:ju(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),ze(this.ctx,$(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>ju(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=xR(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function vv(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Mo(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,ze(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return tr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Hp(t);o.append(Ze.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Ne({text:n,pageLangs:[pt(),"en"]});return ko(t,r)?void 0:(await Oi({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ye(),n=await He(ve(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await He(ve(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var Q0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=SR(r),o=await Ne({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(Xe($(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=Sv(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=await this.translateSubtitle(a,i,$(o));if(this.config.enableHookDownload)try{let u=Sv(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),$(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Fr(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(Uu,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},Uu="http://www.w3.org/ns/ttml";function SR(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Uu,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Uu,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Uu,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function Sv(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Uu,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:Tv(i),end:Tv(o),text:s})}),r}function Tv(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var J0=class extends tt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=ts(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Xe(o,this.ctx.targetLanguage))return null;if(ze(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,$(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ns(n.subtitles,es(u));return n.subtitles=l,ri(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Qt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=Fr(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),ri(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>$(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=wR(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return Ne({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(ve()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=CR(r),i=TR(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function TR(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function CR(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function wR(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Z0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=O0(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Ne({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(ze(this.ctx,$(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),N0(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var X0=class extends tt{async requestSubtitle(t){let n=await He(ve(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new is(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Tf(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}Dx(a),kf(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var $0=class extends tt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(Cv).forEach(n=>{Cv[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Xe($(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(ze(this.ctx,t),Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=Ax(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},Cv={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var ed=class extends $r{constructor(t){super(t),new os(t)}};var td=class extends $r{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Hi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Ne({text:i.map(c=>c.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Xe($(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Hi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var nd=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Ne({text:a.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Xe($(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),$(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",h=wf(g,l),f=wf(b,l),y=sn(h),v=sn(f);u==="duration"&&(v=y+v);let S=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(S||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var rd=class extends tt{hasSubtitle=!1;async mutationVideoChange(){let t=ER(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(ze(this.ctx,"ja","av"),this.hasSubtitle=!0,Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await K({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Hi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function ER(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var ad=class extends tt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(ze(this.ctx,n.language_code),Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var AR={youtube:W0,netflix:G0,webvtt:is,khanacademy:V0,udemy:K0,hulu:X0,mubi:ad,text_track:ai,text_track_dynamic:$r,general:Y0,live:os,ebutt:Q0,disneyplus:J0,"fmp4.xml":Z0,multi_attach_vtt:$0,twitter:ed,subsrt:td,xml:nd,av:rd},id;async function wv(e){try{te()&&await ot(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=AR[t.type];if(!n)return;id=new n(e)}catch(t){k.error(t)}}async function Vf(){id?.onPageStatusChange()}async function kR(e,t){if(id?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Ke())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ie("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function DR(){id?.onTranslationModeChanged()}C9({autoEnableSubtitleChanged:kR,reloadSubtitleWithTranslationModeChanged:DR});var ue=null;function Hu(){return ue||null}function sd(e){Jo(document,e),LR(e),_R(e),IR(e),BR(e),RR(ue),_n("Translated"),FR(ue),vx(ss),PR(ue),Vf(),GR()}function LR(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=on(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}ux(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}Zo(e)&&wt(document.documentElement,Y+"_rtl",e.targetLanguage)}function PR(e){let t=e.ctx;Iv(t,!0),Sx(e),Sy(window.location.href)}function MR(e){let t=e.ctx;Iv(t,!1),Tx()}async function RR(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await Dv(e.ctx,on(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ni(s,e);await ni(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ni(s,e)}function Dv(e,t){b9(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=gx(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Fo({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function IR(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Yt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await zt({...t,tempTranslationUrlMatches:[...i]})}}function FR(e){e.ctx.rule.isTranslateTitle&&(cf(e.ctx),e.titleDynamicObserver=hx(e.ctx))}function BR(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Kf(e,t){ue&&(e.filterRule=on(e,!0),e.isRichTranslate=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=on(e)),ue.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},ue.translationService=e.translationService,ue.urlChangeDelay=e.rule.urlChangeDelay,ue.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ue.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",qr(document.documentElement,ue.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function _R(e){let t=tu();ue&&(t=ue.id),ue=ue||{},ue.ctx=e,ue.id=t,ue.paragraphQueue=ue.paragraphQueue||[],Kf(e),ue.currentUrl=window.location.href,ue.paragraphEntities=ue.paragraphEntities||{},ue.autoIncreaseParagraphId=ue.autoIncreaseParagraphId||1,ue.interruptEffectDOM=!1,ue.observeContainers=ue.observeContainers||[],ue.observeParagraphs=ue.observeParagraphs||[],ue.dynamicContainerObserver=ue.dynamicContainerObserver||zR(ue),ue.ignoreResizeObserver=ue.ignoreResizeObserver||WR(ue),ue.containerVisibleObserver=ue.containerVisibleObserver||jR(ue),ue.paragraphVisibleObserver=ue.paragraphVisibleObserver||UR(ue),ue.injectCssToDocument=od,ue.walkContainer=Sa,e.specialAiAssistant=ya(e,e.translationService,!0),window.onerror=NR(ue,e),window.immersiveTranslateSwitchTranslateState=Qf.bind(ue)}function Lv(e,t){t.getRootNode()instanceof ShadowRoot?od(t.getRootNode(),e):od(t.ownerDocument,e),OR(e)}function OR(e){ue||(ue={},ue.ctx=e,ue.id=tu(),Yf(ue,e))}function Yf(e,t){let n={...e};n.injectCssToDocument=od,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=Qf.bind(n);let r=ya(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Ao(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function ss(e=!0){ue&&(_n("Original"),Vf(),MR(ue),Pu(),ue.interruptEffectDOM=!0,ue.ignoreResizeObserver?.disconnect(),ue.dynamicContainerObserver?.disconnect(),ue.containerVisibleObserver?.disconnect(),ue.paragraphVisibleObserver?.disconnect(),ue.titleDynamicObserver?.disconnect(),bx(ue.ctx),fy(),hy(),e&&Qf.call(ue,"original"),Object.values(ue.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ue=null)}function NR(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),ss(),n=setTimeout(()=>{sd(t)},e.urlChangeDelay||2e3)),!0}}function jR(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await gf(e,r.target),n.unobserve(r.target))})}function UR(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{ff(e,o)}),n.unobserve(a)}})})}var Ev;function HR(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function qR(e){if(e.urlChangeDelay<=0||(clearTimeout(Ev),e.translateState=="original"))return!1;ss(e.urlChangeDelay>20),Ev=setTimeout(()=>{let t=e.ctx;sd(t)},e.urlChangeDelay)}function zR(e){let t=e.ctx.rule,n=on(e.ctx);return new MutationObserver(r=>{if(HR(e)&&(Dv(e.ctx,n),t.mutationConfig.enableUrlChange&&qR(e))||e.interruptEffectDOM)return;let a=jc(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!tr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&tr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Gl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Av(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&vf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Av(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ht.isSkipMarkEle(i.target)&&!ht.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Ur(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Mo(n,o.parentElement);l&&(ht.clearToParentMark(o,l),kv(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&kv(e,i.target)}catch(o){k.error(o)}}})}function Av(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{xf(n),Sa({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{ji(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function kv(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ht.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ni(t,e,n),i.timer=null},a)}function xf(e){e.paragraphs=[],ht.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${L}-walked]`).forEach(t=>{t.paragraphs=void 0,ht.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function vf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function WR(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);nf(i)||(n.unobserve(r.target),ht.clearMark(a),ni(a,e))}})}async function Qf(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Br(),await ot(50),Jt({method:"translatePage"});return}this.translateState=e,qr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{qr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Lu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function od(e,t){if(e instanceof HTMLIFrameElement){Jo(e.contentDocument,t);return}Jo(e,t)}async function Pv(e){let t=Ke(),n="auto";if(te()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=Pp(e.mainFrame),n=await Ne({text:r,pageLangs:["en"]})):(r=xo(e.mainFrame).slice(0,1e3),n=await Ne({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Ne({text:xo(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=Pp(e.mainFrame),n=await Ne({text:r,pageLangs:["en"]})}else n=await A9();return n==="auto"&&(n=await cx()),p9(n),n}async function Mv(){if(!ue)return;Pu(),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ue.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){ue.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${ql}='${n}']`);i&&i.remove()}}F0.call(ue,ue.ctx)}async function Jf(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ie("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:pt()});let r=ue?.ctx||t,a=await Yt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:yx(r)},await zt(a);let o=ke().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Wr(o)}catch(i){k.error(i)}}async function Rv(){let e=await Yt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent($3,{detail:JSON.stringify(e.draft)}))}async function GR(){try{if(await Ri("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Lr();await K({url:rt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Pr("reportActive","1")}catch(e){k.error(e)}}function Iv(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(ro,{detail:{tempEnableSubtitle:t}}))}function Zf(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&jn(o,s=>{s.preventDefault();let u=r[i];Jt({method:u,data:{trigger:"shortcut"}})})}}var VR="imt-fb";function Rt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${VR}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function Fv(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var ud="DROP_DOWN_DEFAULT_VALUE";function Xf(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:ud,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==ud){s.current.value=ud,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:ud,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function us(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var KR=({date:e})=>{let{t}=oe(),[n,r]=W(!1);return J(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},YR=({minVersion:e})=>{let{t}=oe();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},QR=()=>{let{t:e}=oe();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ae+"docs/installation/"})}})},JR=({message:e,handleSyncing:t,date:n})=>{let{t:r}=oe();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function $f(e){let{isShowError:t,request:n}=e,[r,a]=W(null),{t:i}=oe(),[o,s]=W(null),[u,l]=W(null),[c,d]=W(""),[m,p]=W(!1),[g,b]=W(!1),[h,f]=W(!1),[y,v]=W(null),[S,w]=W(null),C=Ht(),T=async()=>{d("");let A=o;if(o===null)try{let D=await n({url:Is});D?(s(D),A=D,p(!0)):(d(i("unknownError")),l(null))}catch(D){l(null),d(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return J(()=>{le.DEBUG||qt().then(A=>{let D=A.buildinConfigUpdatedAt;v(A);let I=new Date(D);if(a(D),C==="0.0.0"){f(!0);return}n({url:Is}).then(F=>{let R=F,B=R.minVersion,P=C;s(R);let _=R.latestVersion;if(_&&(us(P,_)?w(!0):w(!1)),us(P,B)){let O=R.buildinConfigUpdatedAt;new Date(O)>I?(l(!0),T()):l(!1)}else b(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),J(()=>{qt().then(A=>{v(A),xa(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:h?x(QR,{}):c?t===!1?null:x(JR,{handleSyncing:T,message:c,date:r||""}):g?t===!1?null:x(YR,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(KR,{date:r}):null}):null}function ZR(){return navigator.userAgent.indexOf("Mac")!==-1}var Bv={Alt:"\u2325"};function ls(e=""){return ZR()?Object.keys(Bv).reduce((t,n)=>t.replace(n,Bv[n]),e):e}var _v=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var Ov=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Nv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),jv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),Uv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var Hv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),qv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),zv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),Wv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function cs(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function Gv(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=oe();return Wa(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(_s,`${e.type}_user_info`);return}e.onOpenUrl(Yl,`${e.type}_user_info`)},children:[x("img",{src:n?Kx:Vx}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(XR,{...e})]})}function XR(e){let{t}=oe(),n=he(()=>cs(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(_s,`${e.type}_pro_logo`)},children:x("img",{src:as})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||In)},children:[x(Rt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(In,`${e.type}_user_upgrade`)},children:[qv,x("span",{children:t("popup.upgrade")})]})}var ii=(e,t,n,r)=>{let a=d2[e]||e,i=ip[e]||e,o=op[e],s=sp[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function eh(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=op,a="zh-CN"):n==="zh-TW"?(r=sp,a="zh-TW"):(r=ip,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function Vv({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=oe();if(!t)return null;let o=L0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x($R,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:Yx,style:{maxWidth:"unset"},class:"mx-2"}),x(eI,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function $R(e){let{t}=oe(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=ii(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=ii(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function eI(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=ii(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function oi(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=oe();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var th;function dh(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function t5(e,t=","){return e.map(dh).join(t)}var n5=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function cd(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function dd(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function tI(){}var mn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function r5(e){return e.match(/[-=:;]/g)?.length||0}function sh(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(r5(e),15)<<18}var nI=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function mh({n:e,i:t,v:n=[]},r,a,i){e&&(e=dh({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&dd(u)||r.v(s))){var o;i.push(l),a|=u?67108864|sh(l):s=="dark"?1073741824:l[0]=="@"?sh(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~nI.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var ph=new Map;function Kv(e){if(e.d){let t=[],n=nh(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?nh(r,i=>nh(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):rh(i,o)}return rh(o,i)})):r,"&"),r=>rh(r,e.n?"."+n5(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function nh(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function rh(e,t){return e.replace(/&/g,t)}var Yv=new Intl.Collator("en",{numeric:!0});function rI(e,t){for(var n=0,r=e.length;n>1;0>=a5(e[a],t)?n=a+1:r=a}return r}function a5(e,t){let n=e.p&mn.o;return n==(t.p&mn.o)&&(n==mn.b||n==mn.o)?0:e.p-t.p||e.o-t.o||Yv.compare(Qv(e.n),Qv(t.n))||Yv.compare(Jv(e.n),Jv(t.n))}function Qv(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Jv(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ah(e,t){return Math.round(parseInt(e,16)*t)}function si(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ah(e.substr(1,i),o),ah(e.substr(1+i,i),o),ah(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function i5(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,b=0;for(let y in o||{}){var h,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...s5(s,u,fh(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ir(v))m.push(...i(S,{n:s,p:(h=mn[y[7]],u&~mn.o|h),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:mn.d,o:0,r:[y],d:i(v,{p:mn.d},d).map(Kv).join("")});continue}if(y[1]=="f"){m.push(...ir(v).map(S=>({p:mn.d,o:0,r:[y],d:i(S,{p:mn.d},d).map(Kv).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+cd(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),b+=1,g=Math.max(g,(f=y)[0]=="-"?0:r5(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(v).map(S=>d.s(y,o5(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(w,C)=>{let T=d.theme("screens",C);return T?(S|=67108864,dd(T,"")):w}),S|=sh(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(a5)}(e,mh(t,n,r,a),n)}function o5(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?si(s):""+ir(s).filter(u=>Object(u)!==u)})}function gh(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function uh(e,t,n=mn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,b){let h=ph.get(g.n);return h?h(g,b):b.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=mh(u,l,c,d),gh(uh(fh(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var b,h;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(b=c,h=g.p??c,b&~mn.o|h)}}):i5(p,u,l,c,d):[{c:dh(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(rI(i,s),0,s);return i}function s5(e,t,n,r,a,i,o,s){return gh((s?n.flatMap(u=>uh([u],r,a,i,o)):uh(n,r,a,i,o)).map(u=>u.p&mn.o&&(u.n||t==mn.b)?{...u,p:u.p&~mn.o|t,o:0}:u),e)}function aI(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=mh(i,o,t);return n&&s5(s,t,n,o,u,l,c,r)},ph.set(e,a),e}function ih(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(iI),i:a}))}}function iI(e,t,n){return n.indexOf(e)==t}var Zv=new Map;function fh(e){let t=Zv.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&ih(n,r)),a=s+1};for(;s1?d.slice(0,-1)+cd(JSON.stringify([d,m])):d+"("+t5(m)+")",mn.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Zv.set(e,t=r[0])}return t}function u5(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function l5(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?u5(e,t,n=>oh(n).trim()):t.filter(Boolean).reduce((n,r)=>n+oh(r),e?oh(e):"")}function oh(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=l5(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var yme=c5("@"),xme=c5("~");function c5(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return t5(fh(n+e+"("+l5(r,a)+")"))}}function lh(e,t){return Array.isArray(e)?Xv(u5(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Xv(e):[e]}var oI=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Xv(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=oI.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function d5(e,...t){var n;let r=lh(e,t),a=(r.find(i=>i.label)?.label||"css")+cd(JSON.stringify(r));return n=(i,o)=>gh(r.flatMap(s=>i5(s,i,o,mn.o)),a),ph.set(a,n),a}var vme=new Proxy(function(e,t){return $v("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return $v(t,n,r)}}});function $v(e,t,n){return{toString(){return d5({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function X(e,t,n){return[e,sI(t,n)]}function sI(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ch(n,1)}):n=>e||{[n[1]]:ch(n,2)}}function ch(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,uI(t,n,r)]}function uI(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=m5(e||a[1]),s=i.theme(o,a.$$)??ds(a.$$,o,i);if(s!=null)return a._=ch(a,0,s),r(a,i,o)}}function Zt(e,t={},n){return[e,lI(t,n)]}function lI(e={},t){return(n,r)=>{let{section:a=m5(n[0]).replace("-","")+"Color"}=e,[i,o]=cI(n.$$);if(!i)return;let s=r.theme(a,i)||ds(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&ds(o,l,r),p=t||(({_:b})=>{let h=qu(c,b);return d?{[d]:h}:h});n._={value:si(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:b=>si(s,b),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:si(b,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:h=>si(b,h),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function cI(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function qu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function ds(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=ld(o5(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function m5(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function ld(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>ld(n)+r+ld(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Sme=Symbol();var p5=new Proxy(tI,{apply(e,t,n){return th(n[0])},get(e,t){let n=th[t];return typeof n=="function"?function(){return n.apply(th,arguments)}:n}});var Tme=function e(t){return new Proxy(function(n,...r){return e5(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return e5(t,r,a,i)}}})}();function e5(e,t,n,r){return{toString(){let a=lh(n,r),i=n5(t+cd(JSON.stringify([t,a])));return(typeof e=="function"?e:p5)(d5({[`@keyframes ${i}`]:lh(n,r)})),i}}}var g5={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Qe("blur"),backdropBrightness:Qe("brightness"),backdropContrast:Qe("contrast"),backdropGrayscale:Qe("grayscale"),backdropHueRotate:Qe("hueRotate"),backdropInvert:Qe("invert"),backdropOpacity:Qe("opacity"),backdropSaturate:Qe("saturate"),backdropSepia:Qe("sepia"),backgroundColor:Qe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Qe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Qe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Qe("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Qe("colors"),caretColor:Qe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Qe("borderColor"),divideOpacity:Qe("borderOpacity"),divideWidth:Qe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...zu(2,6),...zu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Qe("spacing"),gradientColorStops:Qe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...zu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...zu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Qe("spacing"),placeholderColor:Qe("colors"),placeholderOpacity:Qe("opacity"),outlineColor:Qe("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Qe("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Qe("spacing"),scrollPadding:Qe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Qe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Qe("colors"),textDecorationColor:Qe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Qe("spacing"),textOpacity:Qe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Qe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...zu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function zu(e,t){let n={};do for(var r=1;rt(e)}var Ume={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${g5.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${g5.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},qme=[X("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:ds(`[${t}]`,"",n)}}})),X("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),X("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[dd(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),X("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),X("box-(border|content)","boxSizing",({1:e})=>e+"-box"),X("hidden",{display:"none"}),X("table-(auto|fixed)","tableLayout"),X(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",X("isolate","isolation"),X("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),X("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",md),X("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),X("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),X("(visible|collapse)","visibility"),X("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),X("flex-((row|col)(-reverse)?)","flexDirection",f5),X("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),X("grid-cols-(\\d+)","gridTemplateColumns",x5),ee("col-","gridColumn"),X("col-(span)-(\\d+)","gridColumn",y5),ee("col-start-","gridColumnStart"),X("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),X("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),X("grid-rows-(\\d+)","gridTemplateRows",x5),ee("row-","gridRow"),X("row-(span)-(\\d+)","gridRow",y5),ee("row-start-","gridRowStart"),X("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),X("row-end-(auto|\\d+)","gridRowEnd"),X("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>md(f5(e))),X("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",X("justify-","justifyContent",h5),X("(content|items|self)-",e=>({["align-"+e[1]]:h5(e)})),X("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",ms("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",ms("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),X("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:_r(e)}:{fontFamily:_r(e[0]),...e[1]}),X("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),X("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),X("italic","fontStyle"),X("not-italic",{fontStyle:"normal"}),X("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ui({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),X("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),X("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Zt("placeholder-",{property:"color",selector:"&::placeholder"}),X("text-(left|center|right|justify|start|end)","textAlign"),X("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Zt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),X("(overline|underline|line-through)","textDecorationLine"),X("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Zt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),X("decoration-","textDecorationStyle"),X("(uppercase|lowercase|capitalize)","textTransform"),X("normal-case",{textTransform:"none"}),X("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),X("align-","verticalAlign"),X("whitespace-","whiteSpace"),X("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),X("break-words",{overflowWrap:"break-word"}),X("break-all",{wordBreak:"break-all"}),X("break-keep",{wordBreak:"keep-all"}),Zt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Zt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),X("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qi(e," ")},var(--tw-gradient-stops))`),Zt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Zt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Zt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),X("bg-(fixed|local|scroll)","backgroundAttachment"),X("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),X(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),X("bg-blend-","backgroundBlendMode"),X("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Zt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),X("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",md),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qi(n[0])}-radius`]:t,[`border-${qi(n[1])}-radius`]:t}}),X("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),X("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ui({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Zt("border-([xytrbl])-",{section:"borderColor"},ms("border","Color")),Zt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",ms("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),X("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),X("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Zt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Zt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),X("ring-inset",{"--tw-ring-inset":"inset"}),Zt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ui({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":si(t("ringOffsetColor","","#fff")),"--tw-ring-color":si(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Zt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...ui({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":_r(e),"--tw-shadow-colored":_r(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),X("mix-blend-","mixBlendMode"),...b5(),...b5("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:_r(e),transitionTimingFunction:e._=="none"?void 0:_r(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:_r(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",_r),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",_r),ee("delay(?:$|-)","transitionDelay","transitionDelay",_r),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=_r(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",X("transform",bh),X("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":v5(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...bh()})),ee("-?(rotate)-","rotate",hh),ee("-?(translate-[xy])-","translate",hh),ee("-?(skew-[xy])-","skew",hh),X("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",md),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",X("snap-(none)","scroll-snap-type"),X("snap-(x|y|both)",({1:e})=>({...ui({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),X("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),X("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),X("snap-(normal|always)","scroll-snap-stop"),X("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",ms("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",ms("scroll-margin")),X("touch-(auto|none|manipulation)","touch-action"),X("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ui({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),X("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),X("outline",{outlineStyle:"solid"}),X("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Zt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],X("select-(none|text|all|auto)","userSelect"),Zt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Zt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),X("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),X("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function md(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function f5(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function _r(e){return e&&""+(e._||e)}function h5({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function ms(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...qu(e+"-"+qi(a[0])+t,r),...qu(e+"-"+qi(a[1])+t,r)}:qu(e+t,r)}}function b5(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ui(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,X(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function hh({1:e,_:t}){return{["--tw-"+e]:t,...bh()}}function bh(){return{...ui({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":v5()}),transform:"var(--tw-transform)"}}function v5(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function y5({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function x5({1:e}){return`repeat(${e},minmax(0,1fr))`}function ui(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var pd=globalThis||(typeof window<"u"?window:self),pI=Object.create,xh=Object.defineProperty,gI=Object.getOwnPropertyDescriptor,fI=Object.getOwnPropertyNames,hI=Object.getPrototypeOf,bI=Object.prototype.hasOwnProperty,yI=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xI=(e,t)=>{for(var n in t)xh(e,n,{get:t[n],enumerable:!0})},yh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of fI(t))!bI.call(e,a)&&a!==n&&xh(e,a,{get:()=>t[a],enumerable:!(r=gI(t,a))||r.enumerable});return e},vI=(e,t,n)=>(yh(e,t,"default"),n&&yh(n,t,"default")),T5=(e,t,n)=>(n=e!=null?pI(hI(e)):{},yh(t||!e||!e.__esModule?xh(n,"default",{value:e,enumerable:!0}):n,e)),C5=yI((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof pd=="object"&&pd.global===pd?pd:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&g||s)&&typeof FileReader<"u"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},h.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),w5={};xI(w5,{default:()=>gd});var SI=T5(C5());vI(w5,T5(C5()));var{default:S5,...TI}=SI,gd=S5!==void 0?S5:TI;function U5(e){return typeof e>"u"||e===null}function CI(e){return typeof e=="object"&&e!==null}function wI(e){return Array.isArray(e)?e:U5(e)?[]:[e]}function EI(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Sh(e,t){return Xt.repeat(" ",t-e.length)+e}function FI(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=vh(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Xt.repeat(" ",t.indent)+Sh((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=vh(e.buffer,r[o],a[o],e.position,d),s+=Xt.repeat(" ",t.indent)+Sh((e.line+1).toString(),c)+" | "+l.str+` `,s+=Xt.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=vh(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=Xt.repeat(" ",t.indent)+Sh((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var _I=BI,OI=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],NI=["scalar","sequence","mapping"];function jI(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function UI(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(OI.indexOf(n)===-1)throw new zn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=jI(t.styleAliases||null),NI.indexOf(this.kind)===-1)throw new zn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var wn=UI;function k5(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function HI(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),uF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function lF(e){return!(e===null||!uF.test(e)||e[e.length-1]==="_")}function cF(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var dF=/^[-+]?[0-9]+e/;function mF(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Xt.isNegativeZero(e))return"-0.0";return n=e.toString(10),dF.test(n)?n.replace("e",".e"):n}function pF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xt.isNegativeZero(e))}var gF=new wn("tag:yaml.org,2002:float",{kind:"scalar",resolve:lF,construct:cF,predicate:pF,represent:mF,defaultStyle:"lowercase"}),fF=VI.extend({implicit:[JI,eF,sF,gF]}),hF=fF,W5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),G5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bF(e){return e===null?!1:W5.exec(e)!==null||G5.exec(e)!==null}function yF(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=W5.exec(e),t===null&&(t=G5.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function xF(e){return e.toISOString()}var vF=new wn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bF,construct:yF,instanceOf:Date,represent:xF});function SF(e){return e==="<<"||e===null}var TF=new wn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:SF}),Dh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function CF(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Dh;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function wF(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Dh,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function EF(e){var t="",n=0,r,a,i=e.length,o=Dh;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function AF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var kF=new wn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:CF,construct:wF,predicate:AF,represent:EF}),DF=Object.prototype.hasOwnProperty,LF=Object.prototype.toString;function PF(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Z5=new Array(256),X5=new Array(256);for(zi=0;zi<256;zi++)Z5[zi]=P5(zi)?1:0,X5[zi]=P5(zi);var zi;function QF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||V5,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $5(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=_I(n),new zn(t,n)}function ye(e,t){throw $5(e,t)}function yd(e,t){e.onWarning&&e.onWarning.call(null,$5(e,t))}var M5={YAML:function(e,t,n){var r,a,i;e.version!==null&&ye(e,"duplication of %YAML directive"),n.length!==1&&ye(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ye(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ye(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&yd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ye(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],Q5.test(r)||ye(e,"ill-formed tag handle (first argument) of the TAG directive"),di.call(e.tagMap,r)&&ye(e,'there is a previously declared suffix for "'+r+'" tag handle'),J5.test(a)||ye(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ye(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function ci(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Xt.repeat(` -`,t-1))}function JF(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||gs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&gs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&gs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&Sd(e)||n&&gs(p))break;if(na(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,Gt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(ci(e,i,o,!1),Ph(e,e.line-u),i=o=e.position,s=!1),Wi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ci(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function ZF(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ci(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else na(n)?(ci(e,r,a,!0),Ph(e,Gt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&Sd(e)?ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ye(e,"unexpected end of the stream within a single quoted scalar")}function XF(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ci(e,n,e.position,!0),e.position++,!0;if(s===92){if(ci(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),na(s))Gt(e,!1,t);else if(s<256&&Z5[s])e.result+=X5[s],e.position++;else if((o=VF(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=GF(s))>=0?i=(i<<4)+o:ye(e,"expected hexadecimal character");e.result+=YF(i),e.position++}else ye(e,"unknown escape sequence");n=r=e.position}else na(s)?(ci(e,n,r,!0),Ph(e,Gt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Sd(e)?ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ye(e,"unexpected end of the stream within a double quoted scalar")}function $F(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ye(e,"expected the node content, but found ','"):ye(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,Gt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,hs(e,t,hd,!1,!0),b=e.tag,h=e.result,Gt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),Gt(e,!0,t),hs(e,t,hd,!1,!0),f=e.result),p?fs(e,s,g,b,h,f,r,a,i):d?s.push(fs(e,null,g,b,h,f,r,a,i)):s.push(h),Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ye(e,"unexpected end of the stream within a flow collection")}function eB(e,t){var n,r,a=Th,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Th===a?a=d===43?D5:HF:ye(e,"repeat of a chomping mode identifier");else if((c=KF(d))>=0)c===0?ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ye(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Wi(d)){do d=e.input.charCodeAt(++e.position);while(Wi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!na(d)&&d!==0)}for(;d!==0;){for(Lh(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),na(d)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),sF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function uF(e){return!(e===null||!sF.test(e)||e[e.length-1]==="_")}function lF(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var cF=/^[-+]?[0-9]+e/;function dF(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Xt.isNegativeZero(e))return"-0.0";return n=e.toString(10),cF.test(n)?n.replace("e",".e"):n}function mF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Xt.isNegativeZero(e))}var pF=new Cn("tag:yaml.org,2002:float",{kind:"scalar",resolve:uF,construct:lF,predicate:mF,represent:dF,defaultStyle:"lowercase"}),gF=GI.extend({implicit:[QI,$I,oF,pF]}),fF=gF,q5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),z5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function hF(e){return e===null?!1:q5.exec(e)!==null||z5.exec(e)!==null}function bF(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=q5.exec(e),t===null&&(t=z5.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function yF(e){return e.toISOString()}var xF=new Cn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:hF,construct:bF,instanceOf:Date,represent:yF});function vF(e){return e==="<<"||e===null}var SF=new Cn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:vF}),Dh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function TF(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Dh;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function CF(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Dh,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function wF(e){var t="",n=0,r,a,i=e.length,o=Dh;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function EF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var AF=new Cn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:TF,construct:CF,predicate:EF,represent:wF}),kF=Object.prototype.hasOwnProperty,DF=Object.prototype.toString;function LF(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Q5=new Array(256),J5=new Array(256);for(zi=0;zi<256;zi++)Q5[zi]=D5(zi)?1:0,J5[zi]=D5(zi);var zi;function YF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||W5,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Z5(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=BI(n),new zn(t,n)}function ye(e,t){throw Z5(e,t)}function bd(e,t){e.onWarning&&e.onWarning.call(null,Z5(e,t))}var L5={YAML:function(e,t,n){var r,a,i;e.version!==null&&ye(e,"duplication of %YAML directive"),n.length!==1&&ye(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ye(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ye(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&bd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ye(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],K5.test(r)||ye(e,"ill-formed tag handle (first argument) of the TAG directive"),ci.call(e.tagMap,r)&&ye(e,'there is a previously declared suffix for "'+r+'" tag handle'),Y5.test(a)||ye(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ye(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function li(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Xt.repeat(` +`,t-1))}function QF(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||gs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&gs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&gs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&vd(e)||n&&gs(p))break;if(ea(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,Gt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(li(e,i,o,!1),Ph(e,e.line-u),i=o=e.position,s=!1),Wi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return li(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function JF(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(li(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ea(n)?(li(e,r,a,!0),Ph(e,Gt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&vd(e)?ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ye(e,"unexpected end of the stream within a single quoted scalar")}function ZF(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return li(e,n,e.position,!0),e.position++,!0;if(s===92){if(li(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ea(s))Gt(e,!1,t);else if(s<256&&Q5[s])e.result+=J5[s],e.position++;else if((o=GF(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=WF(s))>=0?i=(i<<4)+o:ye(e,"expected hexadecimal character");e.result+=KF(i),e.position++}else ye(e,"unknown escape sequence");n=r=e.position}else ea(s)?(li(e,n,r,!0),Ph(e,Gt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&vd(e)?ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ye(e,"unexpected end of the stream within a double quoted scalar")}function XF(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),b,h,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ye(e,"expected the node content, but found ','"):ye(e,"missed comma between flow collection entries"),h=b=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,Gt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,hs(e,t,fd,!1,!0),h=e.tag,b=e.result,Gt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),Gt(e,!0,t),hs(e,t,fd,!1,!0),f=e.result),p?fs(e,s,g,h,b,f,r,a,i):d?s.push(fs(e,null,g,h,b,f,r,a,i)):s.push(b),Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ye(e,"unexpected end of the stream within a flow collection")}function $F(e,t){var n,r,a=Th,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Th===a?a=d===43?A5:UF:ye(e,"repeat of a chomping mode identifier");else if((c=VF(d))>=0)c===0?ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ye(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Wi(d)){do d=e.input.charCodeAt(++e.position);while(Wi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ea(d)&&d!==0)}for(;d!==0;){for(Lh(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ea(d)){u++;continue}if(e.lineIndentt)&&u!==0)ye(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),hs(e,t,bd,!0,a)&&(b?g=e.result:h=e.result),b||(fs(e,d,m,p,g,h,o,s,u),p=g=h=null),Gt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ye(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function iB(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Gt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ye(e,"directive name must not be less than one character in length");o!==0;){for(;Wi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!na(o));break}if(na(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Lh(e),di.call(M5,r)?M5[r](e,r,a):yd(e,'unknown document directive "'+r+'"')}if(Gt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Gt(e,!0,-1)):i&&ye(e,"directives end mark is expected"),hs(e,e.lineIndent-1,bd,!1,!0),Gt(e,!0,-1),e.checkLineBreaks&&zF.test(e.input.slice(t,e.position))&&yd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Sd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Gt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=eS(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)ye(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(h&&(o=e.line,s=e.lineStart,u=e.position),hs(e,t,hd,!0,a)&&(h?g=e.result:b=e.result),h||(fs(e,d,m,p,g,b,o,s,u),p=g=b=null),Gt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ye(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function aB(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Gt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ye(e,"directive name must not be less than one character in length");o!==0;){for(;Wi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ea(o));break}if(ea(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Lh(e),ci.call(L5,r)?L5[r](e,r,a):bd(e,'unknown document directive "'+r+'"')}if(Gt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Gt(e,!0,-1)):i&&ye(e,"directives end mark is expected"),hs(e,e.lineIndent-1,hd,!1,!0),Gt(e,!0,-1),e.checkLineBreaks&&qF.test(e.input.slice(t,e.position))&&bd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Gt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=X5(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function lS(e){var t=/^\n* /;return t.test(e)}var cS=1,Ah=2,dS=3,mS=4,ps=5;function BB(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=IB(Gu(e,0))&&FB(Gu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Gu(e,u),!Qu(l))return ps;h=h&&_5(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Gu(e,u),l===Ku)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Qu(l))return ps;h=h&&_5(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?cS:i===Yu?ps:Ah:n>9&&lS(e)?ps:o?i===Yu?ps:Ah:m?mS:dS}function _B(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Yu?'""':"''";if(!e.noCompatMode&&(AB.indexOf(t)!==-1||kB.test(t)))return e.quotingType===Yu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return RB(e,l)}switch(BB(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case cS:return t;case Ah:return"'"+t.replace(/'/g,"''")+"'";case dS:return"|"+O5(t,e.indent)+N5(F5(t,i));case mS:return">"+O5(t,e.indent)+N5(F5(OB(t,o),i));case ps:return'"'+NB(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function O5(e,t){var n=lS(e)?String(t):"",r=e[e.length-1]===` +`+Xt.repeat(" ",e.indent*t)}function MB(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function sS(e){var t=/^\n* /;return t.test(e)}var uS=1,Ah=2,lS=3,cS=4,ps=5;function FB(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,b=RB(Wu(e,0))&&IB(Wu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Wu(e,u),!Yu(l))return ps;b=b&&F5(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Wu(e,u),l===Vu)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Yu(l))return ps;b=b&&F5(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?b&&!o&&!a(e)?uS:i===Ku?ps:Ah:n>9&&sS(e)?ps:o?i===Ku?ps:Ah:m?cS:lS}function BB(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Ku?'""':"''";if(!e.noCompatMode&&(EB.indexOf(t)!==-1||AB.test(t)))return e.quotingType===Ku?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return MB(e,l)}switch(FB(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case uS:return t;case Ah:return"'"+t.replace(/'/g,"''")+"'";case lS:return"|"+B5(t,e.indent)+_5(R5(t,i));case cS:return">"+B5(t,e.indent)+_5(R5(_B(t,o),i));case ps:return'"'+OB(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function B5(e,t){var n=sS(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function N5(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function OB(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,j5(e.slice(0,l),t)}(),a=e[0]===` +`}function _5(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function _B(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,O5(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+j5(u,t),a=i}return r}function j5(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+O5(u,t),a=i}return r}function O5(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function NB(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Gu(e,a),r=En[n],!r&&Qu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||LB(n);return t}function jB(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Ea(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function U5(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Ea(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Eh(e,t)),e.dump&&Ku===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function UB(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ea(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function HB(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Ku===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Eh(e,t)),Ea(e,t+1,c,!0,d)&&(e.dump&&Ku===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function H5(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ea(e,t,n,r,a,i,o){e.tag=null,e.dump=n,H5(e,n,!1)||H5(e,n,!0);var s=nS.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(HB(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(UB(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?U5(e,t-1,e.dump,a):U5(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(jB(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&_B(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function qB(e,t){var n=[],r=[],a,i;for(kh(e,n,r),a=0,i=r.length;ac.selected),[r,a]=W(!1),i=Ce(null),[o,s]=W(pS),[u,l]=W(0);return su(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,S=g+d.height;if(v>m.clientHeight-S){let w=Math.min(y,v);l(m.clientHeight-g-w-h)}else l(0);s(Math.max(pS,y))}},[i.current,r,t]),J(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(fS,{item:n,isDefault:!0}),Vv]}),x(KB,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function KB(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return J(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(fS,{item:o,onClick:e.onClick},o.value))})}function fS(e){let t=e.item,{t:n}=oe();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:as}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var YB={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/FBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubq6urf39/n5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj///8jGdzm5ub9/f0lG93v7+/p6enx8fHs7Oz6+vr19fXk4/uvq/MwJt76+v7r6vz39/daUuVKQuP39/5UTORFPOL19f6infB7dupORuNBOOHv7v2yr/M0Kt+5tvSdmPA5MOA9NOHEwvaopPFfV+YrId3z8/3Rz/iKhe1zben5+P5jXOa+u/Wrp/KZle+Vke9sZuhoYefw8P3V0/n29vaGgeyCfew3Lt/a2PnLyPeQi+13cerd2/rh3/re3frw8PDu7u5kosIuAAAAE3RSTlMAIN/vkHC/nzAQQK/PYGDPgFBvO1+5egAABeNJREFUaN7Fmmdf4kAQxiEkoVlvS0B6F5SOggIW7PVO/f7f5TZFBpTdTYDznhf3S87yd+aZndlk8blVeFdTo9tKgDAFFF1XtUjYt075taBCFkiJboXWQ4ioNiCxlyokKUVMlCYLqb2EDQpGViWEdzYIU+yOogVK3sXiJmfLvwIipJoW7CWRQEmLE1wW49fNJAGBq8LHspiwagZBkSvR2FKYXwFAuMUoW54zlQCEa4zu9xRGvIA86y5OApoHN94hDI/BqO5StU1ICi2pFHPG74KhkDhFS4vGXVBCAXB8OUqCBEJSxjtaUTGg8Bh7aGXtCSl+YKxK8Qs8f0drUYzvvkISaE1KkO3Fc1MV1a73SlYX9hJCgLE6hRBtoekptEalFpmvkxhaq2JE/8rYBEPWZ4v2rXrvZD90fDjovjTcUwokMF9hQWmy6NDATP0p5SbzOvwtqWN1LhB5ZTWxreucfX9bYTfZSyquML+nQBo97KhtM1rWjTEStxfdUyDH+FNnZijjQ+yoKQ4lJA8EdDWFZPPsdjK9rYhDUT0EQvfxVKcI5btwKzKfQoFtkg8k0Yn5W8GUDAZdiAtsZ9p9Cx4hrxh0Kdwpkw2bESFx+fKtz6XrGoOaSCRCImC7TGczxs9D0siN9QoR7dzL9EsJF3OQLqgufr4UkxESZCvXLPbqD0/sKt3CjjLsrgOQYySWveo3+dkaj7CpQY1dZwxsqZ+bQ1bG0o6vMUiU13/hDzaYufTAuty3LRhiW90n+fAKCi0Zl7Cj+gmjvOwPHg/yzpceDCuOP+y6+nSbpvy6NE0J8y05MuZX3Ek+Dz97Orx6bTP2yX09O8gW25RvStgX4e+D7sHePvd3jJyMTih30e/6NP6msQKQ+g1arAwG33grRfOp3E1KtQuQR87YpfCHHFZ5zqs+ndu4bh4B0p2B5BAo35ppN7xRH2WQpKhfQXnZeno5q/SHf5CjUwzq8HukQqh8UOGi/U35kWEb8OpE1sage34NB/iQc+NLP3+ugwNvzvYC9MAdXD5CEE/jytR3a4HcPmLQfv5rJEPuQgGIaDXWrGrr41mNxuZ3yDyRQ9B5zyote8J2bORcCv8YcH+0JAQ1MvfDtt1Mfg/wvLLPLLrS9LaX50LAeInSJQwCWy4M8J1vvAIQOaMymUwwqFJF9LPpn5UFbXiDJJFcT3bxHrDLWWfOGsz7UWW/dN2k/AGss5lVkDNue3ghBF9VzT5TrQqfIHRokAKdtjAHgvtV+WhUodULnn6yeAEEMgbitfpd2cN72dpktQ46tVrtyIS02IVp0WBSq40wrv+WPdJHYPxydNO3cg9bOGOf/VM010nanlk9WIW88SupYfpg1WoO8SE4eyHd3QWFzp8PnHlEO/1isbMQgo0jke9RBtFEW+Fqxerr7OrScIyfh8Do5W7uthjEzzMFWvnEeuzhQCSb1TgJyTbcD5+/4hYLIX2hJUyqYKUUP8fJmyGE9MrcbAWlD0GVzwCqJSGkledmK2JBoEfynn3q1B74ALl2CSmwbNna4S/6IUzWdLvZPDUh3TFCjfNms30CkHqOt9y3HEiYP7iOBvYQPJ1ZjMb5913qSPjiQ2J9ruSko5Yv52wZ+PGiUXZ0DI9fItudJzoqe93RKh3asrYWJUddp7gaskCYdG4o5SvsQi/CQOQvPtJ9OeNKFAhI5RdY9bLuzCkj2yveH7ePzi9ernswu1r3J5JAoMAK/JHynKl1OrXm81t55v86o8PWYNA7u0zz+u+319zav3jRufUTr2x/+uUzJGzNr9F/+EAAFN5Y59GGwj2kAfNXP6T5ieOm/3ZwBpTYOo4A//9h5r8/lgXKKgfM22IGrEoSW/6oPOxzJy2wVDAFOPR3I7/uPRiagI8vuNSm4g1D9wiE4T6YIAGMCwS44R3zUZAjkgkCmVoOE48lhQQziIAK628JzKZicVILQfQuRpi2d8K+FRUJij96pUZ8a1FoM7r4Q2RBze9bp8IRTdX1z4/DbURVbdd1kv4C2SuPZ2Cb8cQAAAAASUVORK5CYII=",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,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",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA6lBMVEUAAADn5+fm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fl5eXm5ubn5+fm5ubm5ubn5+fk5OTl5eXm5ubl5eXo6Ojn5+f///8Aidbm5ubw8PD7+/v7/f/19fXs7Ozp6en9/f3n5+c3o9/5+fkMj9j39/cDi9cHjNf2+/4YlNonm91htubj8vu23vR3wekgmNsTktn5/P7v9/3f8frW7PnG5fa84PTo6OhZsuXy+f3S6/ih1PCWzu5FqeIunt7n9PvM5/eu2vKo1/GRzO6JyexwvehpuedPruNMrOLq9fxApuGY0O9/xOs6pODa7vkvVpHpAAAAFnRSTlMAIN/vcL8wEJBAn4+gr89gYM9QgG9/jIFk+AAABRFJREFUaN7VmtlW2zAQhr3EiZOQsLSVxmv2nQQogQBl3ynt+79OZRUqx7EsxXY57XeT+Mb/mflnRj6SFFlKO4VqbVvTgaBrhlEtlEtKnqiFigYxaLWtYj4K5SoVaHqW223bDURo2O2ua3lNKlQpZ1UofakHApZroxjaruUHOltqBoliVQ8U2iiBNtWppJVRDQDw2khI10srU6oGQdhICttKJfNZB7Coy/Iy2tbamfJYFNIyhrpWGH4XrY3rg16QdoOfKXEwVblUbUPTRSlxm6CpEhoa+DZKje1LqBR18BooA7YHelGoYaGMWExFUiN/FZVpZFVR+Z4zjYwqfPc18FBOeLAdv25WWe1mpuHHd+VnaNooN+wmFGJNd1GOuHHmG8z0vMw3ohqbzJD8bClEq1c+WYPvU6nB0wV9ucI25JN18ND5KlvH1aVAAGxZjfPemPxMZCoMQE0TiHN1gTtXCM1fHDnv0wRyvYfxgrz/ofddxvsmFNcPZNrBuDNH6GSGhxOpUMx1A3keY8LTPkK7PYzHMq6wAtuUG4w/X3DAEXFmQX77c6kC+/Rn+nYlLN+dUY0WcWQyxISXEySkDXWFUgYfibnrUI3eNfl/iwP635CYJpSlbd+f9jHlYkCeWpgyu5S3XoM2EvD1Cf+mf0aeTvEb9zL50ujHgzhbpyP8RuuAPN6/P3VOZfKl0toSZWt3D7/Ruw0GJJWkPDrifNFZXBPN30NaS8yRM2IPy54IFyrUEjvZ8zH+QzBLnEfMGAm9twNTSnCMEjnq4HeGgyCwGQ4xdcSmlJSyoN1DDuA7RPiGw3SuxE2/oxQEvofeOTtEhBe8xMKRcN5M9v3nMJQa2jJ4mf610HlTMRIHlxNyfY+uuq84QutAtNTXiEhb3CKUB1prFzjKqyOakckVfNIKWXxJVVmTsL4X1rAODcTlFjPGKODyHK/wmLwGg64AIC6XofLtHCLKZIaj9I5QEgBJIs5DOBDnvTmHOMrFQXqR+V5s0910VkK5Sy0yCKf/KdyfPRxheJgswjf+jJv2exxlnGg8v4RPwrlvLZv1tJKwq8QSrnNEGveY0T+KZPLHSt/v85vRUGqcsXIa7rofTnTRn0VD+cYfKwZvQO4vwm+45lUeYzjhD0jeqL9ZysWAO9UY44RRvwMeZ6li3PAXGkb/lLdoleOXX+cOhxgNYufBNNIuTw53+Y2t4cOlXJxxanwRCeWG/3W3AW6i63jEJlNyIQ+fY32vEZEY53eXEsEfTNGJfB/r+xYRUVdNWbRCnD+LP5fYcrCCD8X4D25nCc43+PX08WIY8f7cibWEYK634XEymd+OWyyEZO8tqFCRMsmXFM7X3duH81EH8xlFc+uTLqHUoS14+8FkfjZ9HA37WMRrdHBpym8+gYf+El5QW5SSDjbKH7bxwazPHWY7pQjHbA3OPxDxtl32QMQbH9kDYZiCAssWCCuwLsoZd2WbuwB+zt7bPmx9xJbtB28+s4Qd/7VtdIZJbMnREDP+6K+e59GG9qGHNB9/3MQOzv6H4zmRBlXxMlVywyMa/8KxLFU5znLAvE01hJgAlp0qVRaAWVLkKOjgpwimSw/9pVGN9YOxPXZ9QZJNjclIZoqFIY26AfIyttXkuyGW8bpISNsDlql0Mr7omg8JQjeLSnrUwBvwOReWbDdQgO1PJSUj5Y2Yq1c2u3pllpVcKG7W4i+RVQqqkielcsE0jPfrcPWaWdiRTtIvY9nMlpGXsBcAAAAASUVORK5CYII=",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC9FBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubn5+fm5ubm5ubm5ubl5eXm5ubm5ubo6Oj////m5ub8/fxLSskhxqXv7+8wr/tNzP/9/v4Zmfj+/vwlpvn19fX5+fkgofl5efnx8fFLy//s7Owoqft9g/lrXPgalYsys/ssrPnp6ekg3rk8vP04uP0jpPpmUfke4bu36v77+/tKSscg07EZnIz6/v4srPx0b/kekI4bm/n39/d7fvd4ffEd578ejI4amI1hQ/05uvtoVfttX/piS/gd7sU1tf1bOvsd5b0f0a9xa/pvY/pvZvdDxP5pWfplTvpgRPkgzKgUm4YNXYE+v/5Bw/wf1rIfzq39/fgenvgklPdnVfcd68MgiI9Jyf9Fxv7r6vs1tvkVlvd2dffe7uxQS9Ec9cse88lMTMkf3LYf2LQhyaj8/P1AwPx1c/kNXHxePfse470g2bYajoP3/PpxaPlrYvQb+M0d8MgUpIgbm/RxavQc8sgf6MI+hrEcv6AihZIck48Xoo0OZIYRlH90dPIa+88e+c8uVKwSb6D2+vx6hPTo6OhAWMcYr5YQaJUYhYwYi4oQgHBUWt9NWdZIWc8YgsA6Wb0xWLMiWKAPd2it4/zJw/jg4PZ9zPafmPUaleZSU8wTf8Yowbwh1rQdyKYRYY7Q7vvu+/oZlvjk+vfk9PdZPfZzcPWJgfMWkvLK+fA0e+ZZXOWcnN0fkdVNsNBA9M4boJ0SiHZayvnq9vbF5/W0sfU2p/PT1PImofEtse5pk+hPReS4t+FY+Ni00dNdZs8ks84+YM4fh8Iy1rsftaWd3vdAtffZ+/ZWt/aw2vS2/PBaTvCQ+eQdpuFu9dt/etiU5tWS18oo8clc4cY748IYnMKCzb08b7sysLcUdq4fwa1So6sqh6Icm5aFcfWVmOhVTeiX+eVNZuSh8uO27uEstd4qm9aGkNa82dVDSNU+l9Bv28Jpi7Yqd6YoZaYWkqEmiZ8SeZGeio1ZAAAAE3RSTlMAIN/vcL+fMBCQYECPr8/PgFBv9P4ivAAACcBJREFUaN7F2ldUE0EUBmATEiCANTMaXEKiGBvFlmAUYy+oqCjFEsUGKqBgRwUsKNhAEXvvvffee++99967vnhnsxDR3c2GcPTXo4/fuffOzObMbh6hcSwoccmbX2yHIHZiqdRF4uyYJzcjktiLEUvEeZ0cckdwdjEBGg+VQY2xHIKx2qDy0Jgge2dbBccC+RBEocJylqhVCi/iOIlsIBxcyAg81HKeqGnHPqeMSEqaBIKlGBQ5ZRxdSBFYLig4Z0whO+EEw8BsrO6UhiasY6Qiq8rwMsitjsoL2UmsmIaCKcP6YlyEtSo/Qip5DqOCyYgEGGLkheU5DvYSoDjY0RO3QdEgOweLhkJuYxSgWDA85DbHg1cRmQ1bFRHPzBXyXImCe/pipJHnUjQovyOr4cKydm1YyS6sZwlCQgy9Vr9SH6vHlhSEJGxDF7TPtfq013fubNTrLe59tuFLhQxdj/HG7X0renvfXo1jKUvDl/5pOAkaSNzqa+1rNq7o3aPH6RtxmLI0Fslfq1dlqQo5pX95y38ojbT2DTj9JlbJyxiQXfYVZm+xWVSaeuP2qCH+dCX9evgGtIn5vFur5V/HLtkKsbyyqNXXogZFZkNiitxYaWGFiYQXgrUYG2/2GBKZHSmSFPKB0vMsAA8kFV6IXrsmDt9LSGqcDQmesHP2MSpudSxfKQ6CClFSGK+Z7zl/zb2EhIRl/gyyNCAgaeTs2bOPbTwaeWUlpiiKoxSZoEIonHb2nKdnyX3bkkGZ4FuTRlr7Tpg8efbsybdvRUUN2n4pVs+OYPMCc+IuhFIa9+wKd3Wt4u7ufnVHQkhIyITuBEkaORkS0tjff0jUoEGRR89zMBpUIOv0NXAZ6t3zw8uVBaSke/libe9WDoEkeS+dMHLnzp0jA2oObe8fHx8ZOWjMmCtpcay/lFE+k+GMvLgM/Zyedc1IsWqJd8uUGdk/JGQkJKlvzcY1CRIVOWjQmNHbL8nlLMUg5Mw/dmrPrpY+dcs1zKqkmlvEwu/9+/cnXetRsWLfxjWH+vvHR0VFAjJ69NHz2ljO0YuRmh2p1Krn30gqQZKXdff2BgX6ZUbGtOmqZemXmBgOnN2qVKJTz2xIYuLD0N6AJPm27tG9uzeUAkp8/JCoyDFjRg/dMREQln6JeNdWpaIlOga2NCMHtqb07t27f3Kw7+8ILDAoJf5Mh0kTu2K2E18CSF6k4kQgnXzCQSHIwtTekJSk4DYBvq1b94OGmZU2fh06dGBFVMieHomWs11EKdGK7JMqB6anpISGpjyNiQGElAIKg8R775hUiwvBZCiOaLycHykRWNfVc2vqckAmnilSJCY4mCDQMDJ6WMV9z/jVImFHYCiOsEs0/EjHjoGBPlszMjKW/5xQhCQ4uE0bonQnSs2+y2r7+ZkUdkSDCuaRIA8LSKfAwJ4936Vm7EiKoRHol3kqbZ76lRkxwo92JrEiHjB5GVLxIiUAaQXb5eAJWmCUgADfpaCcfjB8uF+ZMmVoBRA9688WGfxKMfAhUEinQLInw8MPLslCggFpvXTptnHDAKkNCF0MO2JAeQFRcyNMIT19fMqVa+jq+pZhgukFtuRQqVKAlAGEZARBOM5IMcL8SKDpcAkv6+rp6XniEUGWQSlLto0rRSO16RCFIOxr2I4HISPpRCPlGpIdCVsSegZITAwhCNKhQ+3KlSsDQtI1lhWxy4OQnCsrdpFutWqVeUp6lnSHw+UqFPMAOkUyLgupDV17vJv1wYUQH0KlnYVuMYWQbjEPlROHxpWqblIAAcPE3FRpldYj+j372tY1FVKOLqRkefq8b1e9VHUS+G9YrVqVkwkSMnzWF43RaD1S6UBERIS7D0GYQjKRzJiQ5OSEEd9mzZo1ozMHwj/4uokREdU8fcIJUoV5BLu5tSueFYIkJFf+OnPsrLGH63RWcgxezLu6Orm6rVqV6Eq6xRSSHTn+xK9y8o8ZM2aO/bg2qAEHIs6TD2m590kJOOjdE93cylehu+VOCgGkS6bRZeDm+0/up8+YUXhtn6AK9VgRNZLCM8vAg5To2CqwbKJbtbbuVQCBQkwIk16ATJk6bVr64UaNghqElWZFDIDwHpD0wdWzrnvbaonTt0IhDNIrK2GXp0ydCsTaPmA0A4T1gOQ96pkDuG65sgszQkMfLjR1C5CqTNZVCLr8Ym2jRo2gWaWbDQaE/agvyPPQIgSsX9iJp0JDey8/uamdCWEISIU6QX0aQcAYOHgUK6JBzryP35b0yUiWLyCzpmze/Kqdm9sqgjQxpWqLOnUAIQMBowYg7I9fnjU8x8eHELAPAek9ttuUKVOmbtoAm7HJgCZMTAgZyOB1NQjC8evOHqm4ECgDCFhXJacDotMtmgpLadMqQJg0A4QZCBisiArlBUSCFFwIc/bC2jUhwEw7mX5yUzMmNNIHjLCB60ZxIArkBIgIjedCwoGoQp/v00NDx+oKR0cXjp6WPiO9WVNTmjUlSFCDemQgNarXYDu7vJAD7w/uFeeAgJMXVu700JSx0YUhuujo9PSBTZkQpA4MhBjjajw3GNlHApFx7RRq5XxPqILswMUpy2eaEF20Lrp+VgAhAxkFxPq5aqWRpVv2NOLM2S9Ku+JCW9iAERGLl2cAwqRb6dKMUbpCUJ0WsEO61KixV6HEcrZuMa9X8nH0i5JTOO7iPrcIQDJSsyGZaVEnKIwYC+ZhJcWCGKBbphTgu7GLWzM/YsOGxampM3VmpDmT+mENgqBZ6/erMdfNhxODOHI+uCAYx624AMjj92akeRiDhC14FjRw1F61VkvxXXzwj55EqZSnXfx0LG2LGanHJKzeXMPeBfOUcspkcI6dxAGNx7x3K3FGrP8NCTMjlNGoFniDI+W/D6aU8PdItE7HIBUyU3+/UkmvW95ChF9FYfWR44zSrUULIjSosH6eVvBVFERmWmD85Ri2LCqsgz/dGrQgGTwXw7wgQgphFpjB8k2qdv/1RbrCgJAsUBkt3Kf+dc0tEXDRqcSx2iPHC0cTZP08JcaUhYtOp5xc2UJi47Ys6tag9Fyt0vJ9vTSnl884Vj3v+gKD0mj95TOJhGwWAaEoJfk3J9foEFnuvhCQsb/6y5ebrzbE/+klTe6/bvo/L85y/xXg/3+Z+S9eyzLKeFteMOcHQ0Bktrwqlwn9ZEYCL/1zUIxB+Et/EpHU+mKwxrrPFyBOYusY7IHMZQgvxh4JZ4BgppEzxmCZUGsQe6eEM14KNa9AirCTOdjy0ZWTmHZUWtYuqRQIkr+Ao82fXtmzfHqlNX96JXPOkytxcMrL/hGZvQQmkYtxdJbIpNLMz+Hy5ZVJCgpu0i9lV7wbhYzjEgAAAABJRU5ErkJggg==",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function Td(e){let t=YB[e];return t}function hS(e){let{t}=oe(),{translationServiceItems:n,translationServiceOptions:r}=XB(e),a=he(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(bS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(QB,{...e,currentTranslationService:a})]}):null}function bS(e){let{t}=oe(),n=he(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=Fr(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(gS,{className:"translate-service",items:n}):x(si,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function QB({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=oe(),u=ZB(e,o),l=JB(e,o),c=Ae((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=he(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Et,{children:d.map(({label:m,items:p},g)=>x(bS,{label:m,items:p,ctx:e},"field-"+g))})}function JB(e,t){return he(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function ZB(e,t){let{lang:n}=oe();return he(()=>{let a=Db(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[kr,Rp,e,n,t])}function XB({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=oe(),d=he(()=>t?kb(t,"translationService",c):[],[t,c]),m=Ae(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=he(()=>{let g=Ga(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=Pb(f,e,g,l,!0),v=Td(f.id);f.id.startsWith("custom-ai")&&(v=Td("custom-ai")),f.id.startsWith("mock")&&(v="");let S=Ci.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Td("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function yS(e){let t;try{t=new URL(e)}catch{return!1}let n=R9(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!($B(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function $B(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function xS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function vS(e){let{t}=oe(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=e_(e),[o,s]=W(()=>a?"excludeMatches":"matches"),u=he(()=>r||a||!1,[r,a]),l=Ae(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(si,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function e_({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=he(()=>new URL(e||""),[e]),t.config&&e&&yS(e)){c=xS(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>ze(e,v)),m=!!y.find(v=>ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=Ae(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(w=>w.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=Ae((f,y)=>{if(f==="default"){s(w=>{let C={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:Ih(e,C.matches),excludeMatches:Ih(e,C.excludeMatches)}}}),h();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(w=>{let C={...w.translationUrlPattern};return C[S]=Ih(e,C[S]),C[v]=zc(y,C[v]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function Ih(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!ze(e,n)):t):[]}var Fh={};function mi(e){let t=Cd(e)||{};Fh[e.sourceUrl+"_"+e.to]={...t,...e}}function Cd(e){return Fh[e.sourceUrl+"_"+e.to]}async function SS(e,t){let n=location.href,r=Object.values(Fh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ve().any,platform:ha(),images:[],version:Ht()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=I0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Va(!1,o)}return a}async function TS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await za(l,"web"),l.json()))}var Ju={width:94,height:80};function CS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?CS(e.parentElement,t+1):e}function bs(e,t,n,r){let a=De.bind(null,e.config.interfaceLanguage),i=CS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Ju.width+"px",c.style.height=Ju.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Ju.width)/2+"px",c.style.top=l.top-u.top+(l.height-Ju.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Ju.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function OB(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Wu(e,a),r=wn[n],!r&&Yu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||DB(n);return t}function NB(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&wa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function N5(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Eh(e,t)),e.dump&&Vu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function jB(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function UB(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Vu===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Eh(e,t)),wa(e,t+1,c,!0,d)&&(e.dump&&Vu===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function j5(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function wa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,j5(e,n,!1)||j5(e,n,!0);var s=eS.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(UB(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(jB(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?N5(e,t-1,e.dump,a):N5(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(NB(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&BB(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function HB(e,t){var n=[],r=[],a,i;for(kh(e,n,r),a=0,i=r.length;ac.selected),[r,a]=W(!1),i=Ce(null),[o,s]=W(dS),[u,l]=W(0);return ou(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,b=20,h=30,f=5,y=m.clientHeight-b*2,v=t.length*h+f*3,S=g+d.height;if(v>m.clientHeight-S){let w=Math.min(y,v);l(m.clientHeight-g-w-b)}else l(0);s(Math.max(dS,y))}},[i.current,r,t]),J(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(pS,{item:n,isDefault:!0}),Wv]}),x(VB,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function VB(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return J(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(pS,{item:o,onClick:e.onClick},o.value))})}function pS(e){let t=e.item,{t:n}=oe();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:as}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var KB={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTjyPtxhVTdV69fd+9mJlG8VUhMefQYaqmMgmRShSK6PFpIlGBKIldKqQtJY2iiBocQLToHmMzJs4Vl0FoIyKLNEJYtudnEQcpogRJC4qgZQNdJS1woQyedlXE0kgAQUaPLgJA8A0EFIM5R+ouRKCilZiB4UpjOX0xIdGZCS7yS1j9MbChUcp6y1xjIxudKmVEXOEYh8cmGNYz4rE5WKpP7kMY0pFKezUT3rlRqaspG/FQ2E5VKvGBIqVVL/JbW6gUlqoyaoVQBUMxUFtUjYxoJUDqgeGAkJwEruVuKhDOCQpHgmUOtgiIdnr6UmkmQZKZq18/N6Kx3gySL1fVUxqYmYARLWhOVuww9GwmisrkKX0F1JKjSUcWvDA0SSECxyH/r3k4kyAqjMucOU3pTrAZzRoy+0I/pVJ9eHb3p4+hORij1VKzIQ+ev59C3slVOUchYMjRekfjPFrXw1GGUSnwxMmPxlXLF8+YooQdIvYpGBgmvNvDMbk/rReG9kXaHv7QtWq54BYBUKpCi4A1j6ibx4kdUMyRIvNytG4uJRvXWyLCXva/mqVq0UYW8UK8CHQoWMqYOjVczohZAUk5Y4N6Kyksj92vUGTf8elWwkpeHIkLi1zJkTJyyVKYxPd2l4mgwjTsjkSva12jdZtiZcgJE7wxJVypTkhduKGYay7F9w/C2HbcdIHXG9bzsgKTgkCIOSM4NeDAZqFr8bECtOGPFNg6pe7uPDYUkXTeYYDLRaB5jX7FtW/tBUK664xqMreAEqfkTJNm6jp6il1L0zf1Q++3tAVKn7o48uzpvEYJ3dBcPXoBkOYHXS8pfHvBq7fo4aNCgGsxInrYPyLlWedmccEgTgFRjLZwqU5J8AEm/H6+XxH1vrWxdAxCtmZG2V9p1niwOY0U+jCKkO4NkTf8eK5iO7+IY6P7t3aYOUxvGqFq0Nzln0wtrhe+u8PqGBOk4JFeyrFVyH0UfXkq3kTytW7dNmzZ16+ZhjHIryYHJYISPCYcYMjJI+aYC5PN0bB4hlBBqwozkEcUZxRs1aDC+gE2sltBcX7duHTCh/8UuXVY/X/fpBBpKCEyJGUukalsRwRgV8g4jy7ewagmbPsLQ1d735PwWPRqQyJ67hw7duxcd+phR5NhLY7tGRYtWZSpatBxj5FhMeg0EI0IDD7T3XTSDtBt65OyGa5B77jSZ085FJgWSV9FsSLUalStXFASIRoxR4jyJ7F8PGGBkir3Lvnak8/IJmX5EkjBz3CVY8qooCmxxPapQvHgjUPHigACG/kMDcnpyPUhkir1vLxI5/BI0MBvFZlnSF0uTMG3cV9ijPgZAkOa6kDdvBS6GAIa+1QyyaGAhY+hA+8hIcvAS9JY4JQCBasWNuxPdkVLkWdLjaokcOXLkBQAQGMJWYBgZusk4edPa2aTHWBgScXH9qFbhRLfQHpZRC3GlWXq9voQgPaiSrUCHESTSDmn0ILM3VjMIRhzVah63cP6Frp/BVBaFUuJScyq10jNxAiAqp0ixmJDx9pPtyAg+iMJyhNiF3oqbqDGSPKUoZF4Bm60Sl80GiA4pCtY7TkjfpYQcrhkORhILiYCRrMWEak0d5TskRYfKBbgYARCFKo4m5AAhB+OHi8USjQi9lSh/WT8gBVM4xBFG42gCarGRMyD1VN+4kfRVRCM4BA1+TqFCheoVBAGg0I2KxpIlU3PIZQeDpc4TASMQe/UyS7Dg0RaeZTQaKwqCPwEiNBQyIX1EhlgsmBGeCMRetvRCtIXVyDAO3pK6pCAApE4d2iRevBFQrPEORvmmPPUqQmuBkexzkWFURImBrZU3oaGpuUJBgChSpBchI7tyBnRveQiEp85nhBnJPgRZKwp8QZ6KB2rSpAn8ZISa8ePPIqRL1x8+WCBisXhrlcm+Bl2Q+KqfXwTEfz8nxI/Y2ICQ/l2dGFAsSJ21VpnS2Zfhqz4m9tCKnBLfoYiI8FrVxsI/TugKpXJiiMXqlr3lXOyhFc3N43dseHh4REQE/KxVq1p9g6EPdIN9K2MkacoZPBAx9dItJ7p5/KI9TPYZ6gsygDJmTDCbkF52Xiroq18Z2Wsfc/d2p8SS77jWICgjEBIk2MSmxM5L5cQQizVxCJZ7DIDI0Ze7OwlEJU6cOF06WI3k7ACOSNoM+qqKE6PhMvTlTgMQCRoKWZuYKR0oZcpSncFb/wFNmQ0nBnQvFGvidOJaVhrV/Qv3za4pmUqVKpUq1UX4e2f7ZobgpcotMMRAGi4keCRMKvwk7UgqrkyZMpUfTmDe7ayrXDEe44cfSvFDkIlgGlOeKUmSJOMJqP8AAcHGI2HznxjrIwkiq/ghCN2RoB6rmzZtmjNnznzMSAv7Zo7gNprHFRkQ+vqZ+NEHVIsrlpsTu+kb8kE3JR1DeLWSighWKpiPxmW5D9692LhrREiIzM1H7J5PcuVqlqsF2zN9B3CEw8bUsoKPPZ4PPsTocT3MkuUo35j2a7kFBLMBpYL5AB+rdhLiKXbhE53JQnAtGMP/t4s9PRSKIwqLpWpZu+G9jt6e4Ci4FVwWYUgSZs6cVkSADcZYBZG7NeLDUZTF0o6ctmdtzhGsUmADSrVmvy9HUZCKmbjX4KWrRQJDgI3Xx5DAESO8wTxf/QxZMGrV20mgd2uW3Z2p9Xie+tsxt5xakewDuEnR/I0j239x+AyS//ljdJAKYgliICrXV3/qYF5tSPFLGl3wLmn+4XVT8C/OcIouiFeAOMUcUCdbzMD4H65lGSWwC2Y1znCeSqrzy4xFR6nK26/MyGXU6oeZMOTSH5FE4bsZrRn5+gIujdQ3jCU5xW3gZpTUe4w2uUlMwz9MmGdEBjNFKuU1xqrL4JbATMhUfP78xWiknJPNJUjbSQcEqo4VEvBXr5Tuv3qlihYlKIqqieH6S2RKOSQRRIVEk6sUih9fh1PHUMljel2k71vLQqW37j3UAAAAAElFTkSuQmCC",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABXFBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/m5ubn5+fl5eXn5+fm5ubn5+fk5OTm5ubl5eXn5+f///8ANSXm5ub8/Pzv7+/09fT6+vrx8fHn5+dAaFwSQTLp6emPp58AMyHv8vG/zclggXf29/fs7Ozp7ezf5uQlUkMvW04gTkD19vZ0kYgUPi3e5eOvwLtYe3EgT0GnuLOAmpJQdGkDNyafs64LPCzr6+ucsKltioDP2dVUeG1HbmIOQDEbQS4IOinc4+G5x8Ojt7Gfs62Wq6Rnhn02YFMgT0DT3Nmpu7WJoJh+lo1wjYQtV0kWRjgA/wC1xMBdfnRNcWY7ZFj3+Pjw8PDr7+7W3tvK1dLH08/Cz8yYrqeSp6GFnZR4lYxwjoVvjYRpgndUcmQbSjwAPSMAWh63w75cdmlDaV00WkwARyIA7gSuurIZQzEAMR4AdxoAiRcAqRAAyQpeVOdNAAAAE3RSTlMAIN/vkHC/MBDPQJ+gr2BgUIB/BTjjCAAABhhJREFUaN7lmldz2kAQgIWQRHGwk+ydkOiiGAjEVCcBbMfdie0kTu+99/b/Z3IIN+Q9SQgmeciXl8xg+5vdvVut7hDcEjwtS5GQ6KcMv6gokhwOCpPEJ0+JFEGMzAQmYwhLpiBeiGl5XVWBoap6XosV4qZoKjyuIXg21BdEKyog6JVoqu+Z8Y2hCEh+ZojpYINueqa8anwK++2CDo7ko141QakfhAquUL1pZJYoXMHXiDMjZ6qAKJw0im+kMFJ5GJlKivrlEapxDwnDXTCSu1SFaFwDj2hxKvpcOESaUsEzasqFJeCnl5hjDMsl6g84Ou7BmESZxcERg7GJ2Vp8iMOjxWdT83swEaL86ov0EkyISzSEPzclbO16X8kS2kto3N5h1NK5coMwGol2K2vYW+JURouu2RlaCWIhkZ4DPhpWfIVGgUs2QVASWbviK1bHNCuIvQLnXM2mLPKJ1VsBnGKC2JLjJS1P/cMr7BQ3WekkceDcOuAUhleYj1IVr/c14oIXnIRR6nMRiFEmrijPcdqL4hxI8QoZ8PHaRYeUzXE2SwAJBHeUVOhZLG92doctBh6K5BRI+fAvaABf58kxzmdBfTWcMTSUowU2jQdyrOYfdICdY7EsvwfQrruofoGeOey+2PyzTo6xCwCvDmP53gGAhQwZJo1NyjQ0cIRpilOQIzJPAdTX+392fgNA/2B1kCRW/DgN25Q9R4ZhCap8Ggh3gRUkg3Qym9KLFJnca8TCxasAc31LpgsAz+YJQhbLl2gOD2i2rhAr35ilkyGZ1yrABr5tEmi+fLy1lSUnuU7vdgl5rQE0B/3s8893zqFEzV4cwfov2nkzyxmyZQBklweOL3t77xxD0egUpyRFgmNWpjdwkHd7e3s/LJ8byH5kRQnSONLfeZLkLOglMuDtry+/31o+b2FFCbJdUsCyxZdo5wk50My7KH2BnhZkZGg0iIOEj4HsFFmQkCEl60Zya/s28gM1pPKSoCCNq+VCcv4+PEB2fRp51EcEBVlcbReSyxWYQyQ5tEeKyLMk4V1SRtewH5Fc8S45hz24BErhBMS7hMAJKP1/JalDiQYrbiUjFj7T0ZuDXrK8CmtuC48u4TLhW9i/AfPn0OcWuoRDVEee755pI5tRESJIW0l7l7SQtqKgDbLmXZJFGyTe6j2Dt/rT/IfWxoV92kPrJ3fAFhsuOuTGxpLDQytsPn7xXl9qrq2tzT5aW2uuH5+AbtTrj1frfbbIw20g5dn24uLi/mCcxh+/5hpG87VAb1UXervVau6+ZcyqdZJ9CFm5Ce3NqyvZh3d3iEmRM92dohqer8VFJnmyUK0uWFdbr9dsNh/C/JKxA/X25mxnw2jxR6IIk8j84W7p4+rqo42tZULupA9os4TdXei/KuiklF2ERunO1dqm8Zw/3M2Yr0BxQEOp1h7fvLW+ufv45nY7WTqAJem22j/8eK6xXd+F3u300+L1fBXtKYwUDRwN3FgobzqdZvP+U2KhuWpuu1mSvKnC0psH3W2ids1acQduth1jwFnFL1dLTx7csDjuqHcI48kKId06LD3q9krLZifKoYcfU6YkjOaraA7V9ZWVpLXPzlZZtZ7t6M/6iwO2bteq1W0osw+KaLbCpmS/R+IN7OKmdUpsbBJGt1o354YLbB0sVZ9vsf+vo0cfojDgDC3gL6Yj8RJ/MZ3ZlwT93Fds95SdDj7w0oPRcO9gBeGX3STAORksNrw58BMcBQ8Fim4PcAzgBIIcRXms/ksDHAMxq1IAnHXHlCXTAPaBHC2wPOAUHcaKRBFwtBPH3LLNQWetYaPI2hx0zvz9I1vnw+diOnHC0DIcDp+9HKNnW+3E4Bi9nEvXnI/R/9WFgBAMTfJqQ+Rf0kQnd0nzD6+bJn9xxrdEJ3EF+O8vMyd9Lcu3jHfBHEIc6K6kUe9X5cERLv09BJPHLv35+JTRg1ELyNcX7JkWR9OoMYqE4RjMKYprcEUcqYZ7Td5ZoRconin3mlRUtzX0g/BLAcE7vmnR9GioSK1EmYGGzgSFMQmfsv/qlRQWJkJgOoJ/iWxK9gmTJBiWJUU5+DpcKCLJp10n6Q9+yapgtI9s1wAAAABJRU5ErkJggg==",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,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",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABlVBMVEUAAADn5+fm5ubm5ubm5ubm5ubf39/k5OTq6urn5+fl5eXm5ubn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojl5eXk5OT///8AYv//UC4A0mPm5ub8/Pzv7++/2P/19fXx8fH/7uvs7Ozp6en+/f3n5+f5+fn39/f9//8/iP/W5f//bE//08r7/v36+vol2Xro6OgF02YOa//u/PXb+ekM1Gv/d13/Xj/q8//f7P9zqv8XcP8HZv/q+/L/9PL/6ufM9uDG9d2z8tGZ7sH/w7eF6rVj5KBO4JNA3oow24EY13L/h2//VTT/UjD1+f/x9/9XmP8nev8fdf/2/fry/ffw8PDu7u7/18+n8Mr/zcJo5aNc45v/qZg33IX/l4Mg2HcQ1W3/aUv/WDfT5P/H3f+y0P+oyv+gxf+MuP9koP9JkP/1/fn/+vnj+u7/8e7W+Oe89Nau8c6f78WO67p86K9H34/Z6P+Fs/9po/9fnf83hP8ufv//5uH/492S7LyM67n/vbD/uax256v/qpr/oI3/fWP/blJ0WKayAAAAF3RSTlMAIN/vcL8QkDBAn4+gz69gYM+AUG+wMJ1qvdUAAAVLSURBVGje7Zrnd9JgFMYhgzCkUw1wE4NhBKtAW7Va69ZWq9bV7aht3XvvPf9uX1JDCnlXCHj84POt5/ScH/c+9x259w3xKtIvJbp6BRGQREGWE1IsEmqnwlJcAIyErp5oewixhA0omFnDqmh5FSmvFS0jaxZsUDwWlBDpS9YAuqGpGFUMPVfj9IQDIKIJERGyRZWios2Jt4oJywBgIgJL1lyrmEiiFoSmcknTW8JsFAGytsv8GKHHd6ZMNwpujBz2FUbOUn3LyIEo+XBjlpApdjAJvlT1QsFQW5RRACHMwRAgp6ktS8txUKIimHk1gDQTxCiTMasGlI4oDEZWDawslRJ2GMEpYYrns2pbpJPdF8BU2yQTevHnZsKt3cDK5/CrciMUuBj3Z7gquQAS1nSedV56Vq0eK/GsfZz5MugqW0cmM0iTh7nMl5sZ3TyGPLw0lLE1dHknjy1Sc/WykzXzYnemruXnTIwFYmOFbWAn6+m1TIOqR9l1nGgIBEBjmHEy49GJx4wKAwj7COThxO4MRkOXDjC2F5k7kNLzoQxBp46Vad4XIMoZyEKTGT6syYLCFcjjJjMw1uwiu+IWWDfMqQTtRCuDqaHxGXKB9dV3X8L9pzze5DfZGgKkCMk1RgxyeL+PVjG5OTI9/QSTwauEnaYAMartR05lmjX5pGTjF7z4yQNU6wUg3NwPTGQatOzWa/lbYyKXP5VJ+RJqjM0oWyQdvrrO3omG3WrX5XWMCfKiLEDYri2dtmNV3UIl/YKXu6g7voQgXdj9tx79/c+1xFQXSrgDrObataNl+uEVty2pqF5teTvgJubkeJmwjF68HJ92/pj/uRW7HpEpERhUcZDU8L6zqg8dWppKb8WbEkGrxMRDUqmLt0vcjO+r6TQeYkJ/SIIsAYL0fgsf4vgKQhAgWeS8AgYRgnR+lI34MIIARIgBSkgGiwZJDV9nhrGapkEs2IQgRRoExcKCjKSpkAokUQVrdMg2FmQ7CeLWsAj5zkLyIIYA1M5CVID/EF+Qv2L83ynhJFQ6CymCjM4sq7MQC0EUMDoLMUBxtvqgEPpW3w8mHXKBcXI92EOHmBAjH7+O9jP2+h11Bvn4tWuYBkndO0djHNxOh1RAsG+pBh2SeneDEsdKmg4xYBOCSKDTIShjb/YSriinXQIBokOP/Qk0yIAgDd85i8nUj6k0E5KDqHPhZkFQkd1Um/QFlRUd4l64QwpupdxIeXRvQF2neXS0c0B0iNuQGC5fpdtjXszdep1tPX3Gg1hZxGYrFrKVxF5Y9u7b76GM/cnZ11UP4swV/MYlhNbUR+jYjZ73UIbtMvuY9mjpEeHD1BkSRETSJ/aWC82UAWeRN2hkntX4cK3HWHNnmA3Zc9w5XHG2O9oMg86/saxxIa4ZD/g6ODKtHzywjQKZOn2I9ikX529F3bpIgows8reiQgq9JVx6PdYMcc1gB+IWGH30M3rXAzmzdJDeT/W0uSXIMSYar7a5EMcMxiSlx3/LtoSsqUN+LfK1bP03n8/tG1uD7LnC3XxuTtgguzM8ah8rjw7ytdExUjy2BBptKfjRX7Kdow2BPKTR2z2k6fy4qfODMypF7+AI0KWYWhBE3kSMf2Esa1MGgwyYe+kMd1WCrrWUKh1A4X0yI4mQayEYyx76cyss+w9GM53nC9zqFvxh8llww+APZgPwY7RsgewGGzNnsRFFE+iZYmNyepFKqAUhKtEgj666BZtjVLBZMnREgN6+SOCnVxvcp1dF5+lVxX16pcRCbVG0uwv/iCwuhUPtVCQmKbLsPIdLdilSP3eSfgOwPhJrcdcnSQAAAABJRU5ErkJggg==","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function Sd(e){let t=KB[e];return t}function gS(e){let{t}=oe(),{translationServiceItems:n,translationServiceOptions:r}=ZB(e),a=he(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(fS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(YB,{...e,currentTranslationService:a})]}):null}function fS(e){let{t}=oe(),n=he(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=ya(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(mS,{className:"translate-service",items:n}):x(oi,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function YB({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=oe(),u=JB(e,o),l=QB(e,o),c=Ae((m,p)=>{t(g=>{let b=g.translationServices||{},h=b[u.id]||{};return{...g,translationServices:{...b,[u.id]:{...h,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=he(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[m.name],onSelected:h=>{if(b.action=="jumpOptions"){let f=b.args||[];r(...f);return}c(m.name,b.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Et,{children:d.map(({label:m,items:p},g)=>x(fS,{label:m,items:p,ctx:e},"field-"+g))})}function QB(e,t){return he(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function JB(e,t){let{lang:n}=oe();return he(()=>{let a=Ab(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[kr,Rp,e,n,t])}function ZB({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=oe(),d=he(()=>t?Eb(t,"translationService",c):[],[t,c]),m=Ae(g=>{let b=d.find(h=>h.id===g.value);if(b.ok){if(u({translationService:b.id}),n(h=>(a(h.translationService||"",b.id),{...h,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(h=>({...h,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=he(()=>{let g=Wa(t.config),h=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=Db(f,e,g,l,!0),v=Sd(f.id);f.id.startsWith("custom-ai")&&(v=Sd("custom-ai")),f.id.startsWith("mock")&&(v="");let S=Ti.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return h.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Sd("more"),onSelected:()=>{s(!1,"#services")}}),h},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function hS(e){let t;try{t=new URL(e)}catch{return!1}let n=P9(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(XB(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function XB(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function bS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function yS(e){let{t}=oe(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=$B(e),[o,s]=W(()=>a?"excludeMatches":"matches"),u=he(()=>r||a||!1,[r,a]),l=Ae(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(oi,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function $B({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=he(()=>new URL(e||""),[e]),t.config&&e&&hS(e)){c=bS(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>We(e,v)),m=!!y.find(v=>We(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let b=Ae(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(w=>w.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),h=Ae((f,y)=>{if(f==="default"){s(w=>{let C={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:Ih(e,C.matches),excludeMatches:Ih(e,C.excludeMatches)}}}),b();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(w=>{let C={...w.translationUrlPattern};return C[S]=Ih(e,C[S]),C[v]=qc(y,C[v]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:h}}function Ih(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!We(e,n)):t):[]}var Fh={};function di(e){let t=Td(e)||{};Fh[e.sourceUrl+"_"+e.to]={...t,...e}}function Td(e){return Fh[e.sourceUrl+"_"+e.to]}async function xS(e,t){let n=location.href,r=Object.values(Fh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ve().any,platform:ga(),images:[],version:Ht()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=R0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Ga(!1,o)}return a}async function vS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await qa(l,"web"),l.json()))}var Qu={width:94,height:80};function SS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?SS(e.parentElement,t+1):e}function bs(e,t,n,r){let a=De.bind(null,e.config.interfaceLanguage),i=SS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Qu.width+"px",c.style.height=Qu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Qu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Qu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Qu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let d=a("translateFail");r==="gif_not_supported"&&(d=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6229,8 +6229,8 @@ ${s}`)}),ai(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s= - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function Bh(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=De.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Zu=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};var wd=[],wS=[];async function Oh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(Nh()||wd.includes(t))return"";if(wd.length>=s)return new Promise((l,c)=>{wS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});wd.push(t);try{let u=await a_(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await ES(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{wd.shift(),(async()=>{let u=wS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Oh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function t_(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${rt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${AS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await K({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function n_(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function r_(e,t,n){let r=await n_(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),te()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):K({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await k2(a)})}async function a_(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=i_(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await n0(u);mi({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await t_(e,r,l,n.type);if(c.objectKey&&mi({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await r_(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return te()?d=await fetch(_h()+"/trigger",{method:"POST",body:oc(u),headers:{token:e.user?.token||""}}).then(async m=>(await za(m,"manga"),m.json())):d=await K({url:_h()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),mi({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function ES(e,t,n,r,a){let i=Nh();if(i)return;mr("Translating",i);let o=await K({url:_h()+`/${t}/task-state?comicHash=${n}&domain=${AS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Ey(t,r.queryIntervalTime||100),ES(e,t,n,r,a))}function _h(){return rt+"comics"}function i_(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=L0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function AS(e){return e.replaceAll(".","_")}function ys(e,t){return te(t)?!1:o_(e.config,e.isPro)}function o_(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function Ed(e){let t=ha();return!(e?.platforms&&!e.platforms.includes(t))}function Ad(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function kS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var kt,jh,Dd,$u,Ut=!1;function Nh(){return Ut}var DS=!1;function MS(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ut=!1,!DS&&kt.injectedCss&&(hn(document,`${kt.injectedCss}`,P+"-image-injected-css"),DS=!0);let t=!1,n=Mn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=FS(kt);for(let i of a){if(Ut)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await st(20),await r(i,t))}},100);if(Fe("translate_manga",[{name:"translate_manga"}],e),n(),jh=new MutationObserver(a=>{n()}),jh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;$u=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Aa(e,o.target),$u?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}Dd=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?($u?.unobserve(a),$u?.observe(a)):await Aa(e,a)))}}async function Aa(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Io();if(n&&(Ut=!1),Ut||f_(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=u_(e,t);u||(s=bs(e,t,"translating")),n&&Fe("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await l_(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await s_(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||bs(e,t,"success")):(u||bs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&mr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&mr("Error",Ut),g_(e,l),u))return;if(l instanceof Zu)return bs(e,t,"error",l.type);bs(e,t,"error")}finally{n&&mr(i,Ut),s?.remove()}}function RS(){if(!kt)return;Ut=!0,jh?.disconnect(),Dd?.disconnect(),$u?.disconnect();let e=FS(kt);for(let t of e)pi(t)}function pi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&pi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function s_(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await c_(l,c,t.cloneNode(!0))}else o=await BS(t);if(Ut)return;if(!o||o.size<6*1e4){Dd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Xp(o);return await Uh(e,t,s)?!0:s?IS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function IS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await m_(n)||n,u=r||a;try{if(Ut)return;mr("Translating",Ut),Bh(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};mi(l);let d=await Oh(e,u,s,a,i,m=>{Bh(e,o,m)});return d?(l.targetUrl=d,mi(l),await _S(kt,t,d),mr("Translated",Ut),!0):!1}catch(l){if(mi({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function Uh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Cd(r);return a&&a?.targetUrl?(await _S(kt,t,a.targetUrl||""),mr("Translated",Ut),!0):!1}function u_(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Cd(r);return a&&a?.targetUrl}return!1}async function l_(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!p_(a,i)){Dd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await Uh(e,t,o))return!0;let s=null;if(mr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await za(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await d_(i);else{let d=await K({url:i,responseType:"base64"});s=await sc(d)}if(Ut)return;if(await kS(s))throw new Zu("GIFs not supported","gif_not_supported");let l=await Xp(s);if(!o&&(o=l,await Uh(e,t,o)))return!0;if(!o)return!1;return IS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function FS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function BS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function c_(e,t,n){return new Promise((r,a)=>{K({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await BS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function _S(e,t,n){try{return await LS(e,t,n)}catch{let a=await h_(n);return LS(e,t,a)}}async function LS(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function d_(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function m_(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function p_(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!jc(e.inValidSrcRegex,t):!0}var kd=0,Xu=0;function g_(e,t){if(kd!=0){Xu++;return}if(t.message.indexOf("quota exceeded")>0){PS(e,t);return}Xu++,kd=setTimeout(()=>{if(Xu<(kt.errorTimes||3)){kd=0,Xu=0;return}PS(e,t),Xu=0,kd=0},kt.errorInterval||3e3)}function PS(e,t){let r=new j("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(fn,{detail:r}))}function Ld(e){return e.classList.contains("imt-img")||e.hasTranslate}function f_(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function h_(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var el=null,Hh="showImagePricingModal";function OS(e){let t=Ce(null),n=Ce(!1),[r,a]=W(null),[i,o]=W({}),[s,u]=W(0);J(()=>{let d=e.rule.imageRule,m=d?.toolsMinHeight||100,p=d?.toolsMinWidth||100,g=null,h=f=>{f.isHoverMarked||(f.isHoverMarked=!0,!Ad(f.src)&&(f.addEventListener("mouseover",()=>{g&&clearTimeout(g),!f.closest('[contenteditable="true"]')&&(f.width{a(f)},d.toolsDelayTime):a(f)))}),f.addEventListener("mouseout",()=>{g&&clearTimeout(g),setTimeout(()=>{n.current||a(null)},10)})))};el&&el.disconnect();let b=Mn(()=>{document.querySelectorAll("img").forEach(f=>{h(f)})},200);return el=new MutationObserver(()=>{b()}),el.observe(document,{subtree:!0,childList:!0}),()=>{el?.disconnect()}},[n,e]),J(()=>{let d=document.querySelector("#monica-content-root");if(!r){o({});return}let m=()=>{let p=r.getBoundingClientRect(),g=d?56:16,h=p.top+p.height-50,b=p.left+p.width-30-g;o({top:h+"px",left:b+"px"})};return m(),globalThis.addEventListener("wheel",m),()=>{globalThis.removeEventListener("wheel",m)}},[r]),J(()=>{if(!r)return;let d=new IntersectionObserver((m,p)=>{m.forEach(g=>{g.isIntersecting||a(null)})});return d.observe(r),()=>{d.disconnect()}},[r]),J(()=>{t.current&&(t.current.addEventListener("mouseover",()=>{n.current=!0}),t.current.addEventListener("mouseout",()=>{n.current=!1}))},[t]);let l=Ae(async d=>{if(d.translationStatus==="translating")return;if(Ld(d)){pi(d),u(p=>p+1);return}if(setTimeout(()=>{u(p=>p+1)},100),!e.isPro){let p=await mt.get(dt,null);if(ft(p)){e.user=p,e.isPro=!0,await Aa(e,d,!0,"image_tools"),u(g=>g+1);return}tl("image_tools");return}await Aa(e,d,!0,"image_tools"),u(p=>p+1)},[e]),c=he(()=>{if(!r)return null;if(r.translationStatus=="translating")return"translating";if(r.translationStatus=="success"||r.classList.contains("imt-img"))return"success"},[r,s]);return{hoveImage:r,hoveImageStyles:i,containerRef:t,activeRef:n,imageStatus:c,handleTranslate:l}}function NS(e){let[t,n]=W(!1),[r,a]=W("");return J(()=>{if(!e)return;let i=o=>{let u=JSON.parse(o.detail);Fe("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:u.trigger}}],e),u.trigger&&a(u.trigger),n(!0)};return document.addEventListener(Hh,i),()=>{document.removeEventListener(Hh,i)}},[n,e]),{trigger:r,showPricingModal:t,setShowPricingModal:n}}function jS(e){let[t,n]=W(!0),r=Ae(async a=>{if(a==="UntilNext"){n(!1);return}let i=await ln(),o=i.generalRule?.["imageRule.add"]||{};if(a=="AlwaysClose")await Vr({...i,generalRule:{...i.generalRule,"imageRule.add":{...i.generalRule?.["imageRule.add"],enableTools:!1}}});else if(a=="CurrentWebsite"){let s=o.blockToolsUrls||[];await Vr({...i,generalRule:{...i.generalRule,"imageRule.add":{...o,blockToolsUrls:[...s,globalThis.location.hostname]}}})}n(!1)},[]);return J(()=>{let a=ze(e.url,e.rule.imageRule.blockToolsUrls);(!e.rule.imageRule.enableTools||a)&&n(!1)},[e]),{enable:t,handleCloseConfirm:r}}function tl(e){document.dispatchEvent(new CustomEvent(Hh,{detail:JSON.stringify({trigger:e})}))}function Pd(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Na(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var b_=new AbortController,{signal:y_}=b_,rl=0,al=0,Gi=!1,gi,US=0,ka=[];function Gh(e){x_(),Pd().forEach(t=>{Md(e,t)})}function Md(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&w_(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Md(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Md(n,t))}t.document.addEventListener(Ps,s),ka.push(()=>{t.document.removeEventListener(Ps,s)});let u=Yn(m=>{if(!(Math.abs(m.clientX-rl)+Math.abs(m.clientY-al)<=3)&&(rl=m.clientX,al=m.clientY,Gi&&!gi&&Wh(n,!1,t),o||Gi&&!gi)){let p=WS(n.rule,t);if(p){if(zh(p))return;Rd(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;zh(p)||(Rd(n,!0,t),Wh(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=jn.getPressedKeyCodes();if(g.length>1&&jn[p]&&(US=Date.now(),Gi=!1),g.length===1&&jn[p]){let h=Date.now();Gi=!0,gi&&clearTimeout(gi),gi=setTimeout(()=>{let b=US-h;b>0&&b<=i?Gi=!1:l(m),gi=void 0},i)}};if(ka.push(()=>{gi&&clearTimeout(gi)}),a)return;nl("mousemove",u,t),ka.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Gi=!1}if(nl("blur",d,t),ka.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=x1;nl("keyup",HS,t),ka.push(()=>{t.removeEventListener("keyup",HS)}),p.includes(m)?jn("*",{scope:"mouseHover",element:t.document},c):jn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),jn.setScope("mouseHover"),ka.push(()=>{jn.deleteScope("mouseHover")})}}function x_(){try{ka.forEach(e=>e())}catch{}ka=[],jn.setScope("all")}function HS(e){Gi=!1}function nl(e,t,n=window){return n.addEventListener(e,t,{signal:y_})}function Rd(e,t,n,r){if(r=r||WS(e.rule,n),!r){k.debug("can not find selection part!");return}if(S_(e,r,t))return;if(zh(r)){k.debug("exclude dom");return}Mv(e,r);let i=qu();i&&(i.setupMouseHoverListener=Md);let o=on(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=Yf(i,e);Ta({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{Uc(n.document.documentElement)!==l.state.translationMode&&zr(n.document.documentElement,l.state.translationMode),ji(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();ot(a1,p);let g={translation_service:u?.translationService||""};Fe("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function WS(e,t){return v_(rl,al,e,t)}function v_(e,t,n,r){let a=Sb(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=Tb(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:zS(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{C_(e,a)}),!0}function T_(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(P+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${P}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function C_(e,t){let n=qu();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Pu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function qh(e){return!!(e.host&&e.mode)}function qS(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||qh(n))return e;for(;n&&n.nodeName!=="BODY"&&!qh(n)&&Dp(n,t);){let r=n.parentNode;if(r&&qh(r))break;n=r}return n}function zS(e,t){return e.nodeType===Node.TEXT_NODE||Dp(e,t)?qS(e,t):e}function GS(e,t,n){rl=t.clientX,al=t.clientY,Rd(e,!0,n),Wh(e,!0,n)}async function Wh(e,t,n,r){if(!ys(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=Cb(rl,al,e.rule,n);if(!a||Ad(a.src)||a.translationStatus==="translating")return;let i=Ld(a);if(i&&!t||i&&!r)return;if(i){pi(a);return}if(!await Ws(e)){tl("image_mouse_hover");return}Aa(e,a,!0,"image_mouse_hover")}function w_(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Rd(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};nl("mousedown",i,t),nl("mouseup",o,t),ka.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var An=!1,Vh,VS=!1,Id=null,E_=` -.${P}-input { + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function Bh(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=De.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Ju=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};var Cd=[],TS=[];async function Oh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(Nh()||Cd.includes(t))return"";if(Cd.length>=s)return new Promise((l,c)=>{TS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});Cd.push(t);try{let u=await r_(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await CS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{Cd.shift(),(async()=>{let u=TS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Oh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function e_(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${rt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${wS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await K({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function t_(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function n_(e,t,n){let r=await t_(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),te()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):K({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await E2(a)})}async function r_(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=a_(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await t0(u);di({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await e_(e,r,l,n.type);if(c.objectKey&&di({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await n_(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return te()?d=await fetch(_h()+"/trigger",{method:"POST",body:ic(u),headers:{token:e.user?.token||""}}).then(async m=>(await qa(m,"manga"),m.json())):d=await K({url:_h()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),di({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function CS(e,t,n,r,a){let i=Nh();if(i)return;mr("Translating",i);let o=await K({url:_h()+`/${t}/task-state?comicHash=${n}&domain=${wS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Cy(t,r.queryIntervalTime||100),CS(e,t,n,r,a))}function _h(){return rt+"comics"}function a_(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=D0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function wS(e){return e.replaceAll(".","_")}function ys(e,t){return te(t)?!1:i_(e.config,e.isPro)}function i_(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function wd(e){let t=ga();return!(e?.platforms&&!e.platforms.includes(t))}function Ed(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function ES(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var kt,jh,kd,Xu,Ut=!1;function Nh(){return Ut}var AS=!1;function LS(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ut=!1,!AS&&kt.injectedCss&&(fn(document,`${kt.injectedCss}`,L+"-image-injected-css"),AS=!0);let t=!1,n=Pn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=RS(kt);for(let i of a){if(Ut)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await ot(20),await r(i,t))}},100);if(Ie("translate_manga",[{name:"translate_manga"}],e),n(),jh=new MutationObserver(a=>{n()}),jh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;Xu=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Ea(e,o.target),Xu?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}kd=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(Xu?.unobserve(a),Xu?.observe(a)):await Ea(e,a)))}}async function Ea(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Io();if(n&&(Ut=!1),Ut||g_(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=s_(e,t);u||(s=bs(e,t,"translating")),n&&Ie("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await u_(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await o_(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||bs(e,t,"success")):(u||bs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&mr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&mr("Error",Ut),p_(e,l),u))return;if(l instanceof Ju)return bs(e,t,"error",l.type);bs(e,t,"error")}finally{n&&mr(i,Ut),s?.remove()}}function PS(){if(!kt)return;Ut=!0,jh?.disconnect(),kd?.disconnect(),Xu?.disconnect();let e=RS(kt);for(let t of e)mi(t)}function mi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&mi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function o_(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await l_(l,c,t.cloneNode(!0))}else o=await IS(t);if(Ut)return;if(!o||o.size<6*1e4){kd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Xp(o);return await Uh(e,t,s)?!0:s?MS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function MS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await d_(n)||n,u=r||a;try{if(Ut)return;mr("Translating",Ut),Bh(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};di(l);let d=await Oh(e,u,s,a,i,m=>{Bh(e,o,m)});return d?(l.targetUrl=d,di(l),await FS(kt,t,d),mr("Translated",Ut),!0):!1}catch(l){if(di({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function Uh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Td(r);return a&&a?.targetUrl?(await FS(kt,t,a.targetUrl||""),mr("Translated",Ut),!0):!1}function s_(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Td(r);return a&&a?.targetUrl}return!1}async function u_(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!m_(a,i)){kd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await Uh(e,t,o))return!0;let s=null;if(mr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await qa(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await c_(i);else{let d=await K({url:i,responseType:"base64"});s=await oc(d)}if(Ut)return;if(await ES(s))throw new Ju("GIFs not supported","gif_not_supported");let l=await Xp(s);if(!o&&(o=l,await Uh(e,t,o)))return!0;if(!o)return!1;return MS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function RS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function IS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function l_(e,t,n){return new Promise((r,a)=>{K({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await IS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function FS(e,t,n){try{return await kS(e,t,n)}catch{let a=await f_(n);return kS(e,t,a)}}async function kS(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function c_(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function d_(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function m_(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Nc(e.inValidSrcRegex,t):!0}var Ad=0,Zu=0;function p_(e,t){if(Ad!=0){Zu++;return}if(t.message.indexOf("quota exceeded")>0){DS(e,t);return}Zu++,Ad=setTimeout(()=>{if(Zu<(kt.errorTimes||3)){Ad=0,Zu=0;return}DS(e,t),Zu=0,Ad=0},kt.errorInterval||3e3)}function DS(e,t){let r=new j("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(Un,{detail:r}))}function Dd(e){return e.classList.contains("imt-img")||e.hasTranslate}function g_(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function f_(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var $u=null,Hh="showImagePricingModal";function BS(e){let t=Ce(null),n=Ce(!1),[r,a]=W(null),[i,o]=W({}),[s,u]=W(0);J(()=>{let d=e.rule.imageRule,m=d?.toolsMinHeight||100,p=d?.toolsMinWidth||100,g=null,b=f=>{f.isHoverMarked||(f.isHoverMarked=!0,!Ed(f.src)&&(f.addEventListener("mouseover",()=>{g&&clearTimeout(g),!f.closest('[contenteditable="true"]')&&(f.width{a(f)},d.toolsDelayTime):a(f)))}),f.addEventListener("mouseout",()=>{g&&clearTimeout(g),setTimeout(()=>{n.current||a(null)},10)})))};$u&&$u.disconnect();let h=Pn(()=>{document.querySelectorAll("img").forEach(f=>{b(f)})},200);return $u=new MutationObserver(()=>{h()}),$u.observe(document,{subtree:!0,childList:!0}),()=>{$u?.disconnect()}},[n,e]),J(()=>{let d=document.querySelector("#monica-content-root");if(!r){o({});return}let m=()=>{let p=r.getBoundingClientRect(),g=d?56:16,b=p.top+p.height-50,h=p.left+p.width-30-g;o({top:b+"px",left:h+"px"})};return m(),globalThis.addEventListener("wheel",m),()=>{globalThis.removeEventListener("wheel",m)}},[r]),J(()=>{if(!r)return;let d=new IntersectionObserver((m,p)=>{m.forEach(g=>{g.isIntersecting||a(null)})});return d.observe(r),()=>{d.disconnect()}},[r]),J(()=>{t.current&&(t.current.addEventListener("mouseover",()=>{n.current=!0}),t.current.addEventListener("mouseout",()=>{n.current=!1}))},[t]);let l=Ae(async d=>{if(d.translationStatus==="translating")return;if(Dd(d)){mi(d),u(p=>p+1);return}if(setTimeout(()=>{u(p=>p+1)},100),!e.isPro){let p=await dt.get(ct,null);if(ft(p)){e.user=p,e.isPro=!0,await Ea(e,d,!0,"image_tools"),u(g=>g+1);return}el("image_tools");return}await Ea(e,d,!0,"image_tools"),u(p=>p+1)},[e]),c=he(()=>{if(!r)return null;if(r.translationStatus=="translating")return"translating";if(r.translationStatus=="success"||r.classList.contains("imt-img"))return"success"},[r,s]);return{hoveImage:r,hoveImageStyles:i,containerRef:t,activeRef:n,imageStatus:c,handleTranslate:l}}function _S(e){let[t,n]=W(!1),[r,a]=W("");return J(()=>{if(!e)return;let i=o=>{let u=JSON.parse(o.detail);Ie("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:u.trigger}}],e),u.trigger&&a(u.trigger),n(!0)};return document.addEventListener(Hh,i),()=>{document.removeEventListener(Hh,i)}},[n,e]),{trigger:r,showPricingModal:t,setShowPricingModal:n}}function OS(e){let[t,n]=W(!0),r=Ae(async a=>{if(a==="UntilNext"){n(!1);return}let i=await ln(),o=i.generalRule?.["imageRule.add"]||{};if(a=="AlwaysClose")await Gr({...i,generalRule:{...i.generalRule,"imageRule.add":{...i.generalRule?.["imageRule.add"],enableTools:!1}}});else if(a=="CurrentWebsite"){let s=o.blockToolsUrls||[];await Gr({...i,generalRule:{...i.generalRule,"imageRule.add":{...o,blockToolsUrls:[...s,globalThis.location.hostname]}}})}n(!1)},[]);return J(()=>{let a=We(e.url,e.rule.imageRule.blockToolsUrls);(!e.rule.imageRule.enableTools||a)&&n(!1)},[e]),{enable:t,handleCloseConfirm:r}}function el(e){document.dispatchEvent(new CustomEvent(Hh,{detail:JSON.stringify({trigger:e})}))}function Ld(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Oa(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var h_=new AbortController,{signal:b_}=h_,nl=0,rl=0,Gi=!1,pi,NS=0,Aa=[];function Gh(e){y_(),Ld().forEach(t=>{Pd(e,t)})}function Pd(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&C_(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Pd(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Pd(n,t))}t.document.addEventListener(Ps,s),Aa.push(()=>{t.document.removeEventListener(Ps,s)});let u=Yn(m=>{if(!(Math.abs(m.clientX-nl)+Math.abs(m.clientY-rl)<=3)&&(nl=m.clientX,rl=m.clientY,Gi&&!pi&&Wh(n,!1,t),o||Gi&&!pi)){let p=qS(n.rule,t);if(p){if(zh(p))return;Md(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;zh(p)||(Md(n,!0,t),Wh(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=jn.getPressedKeyCodes();if(g.length>1&&jn[p]&&(NS=Date.now(),Gi=!1),g.length===1&&jn[p]){let b=Date.now();Gi=!0,pi&&clearTimeout(pi),pi=setTimeout(()=>{let h=NS-b;h>0&&h<=i?Gi=!1:l(m),pi=void 0},i)}};if(Aa.push(()=>{pi&&clearTimeout(pi)}),a)return;tl("mousemove",u,t),Aa.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Gi=!1}if(tl("blur",d,t),Aa.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=b1;tl("keyup",jS,t),Aa.push(()=>{t.removeEventListener("keyup",jS)}),p.includes(m)?jn("*",{scope:"mouseHover",element:t.document},c):jn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),jn.setScope("mouseHover"),Aa.push(()=>{jn.deleteScope("mouseHover")})}}function y_(){try{Aa.forEach(e=>e())}catch{}Aa=[],jn.setScope("all")}function jS(e){Gi=!1}function tl(e,t,n=window){return n.addEventListener(e,t,{signal:b_})}function Md(e,t,n,r){if(r=r||qS(e.rule,n),!r){k.debug("can not find selection part!");return}if(v_(e,r,t))return;if(zh(r)){k.debug("exclude dom");return}Lv(e,r);let i=Hu();i&&(i.setupMouseHoverListener=Pd);let o=on(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=Yf(i,e);Sa({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{jc(n.document.documentElement)!==l.state.translationMode&&qr(n.document.documentElement,l.state.translationMode),ji(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();mt(n1,p);let g={translation_service:u?.translationService||""};Ie("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function qS(e,t){return x_(nl,rl,e,t)}function x_(e,t,n,r){let a=xb(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=vb(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:HS(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{T_(e,a)}),!0}function S_(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(L+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${L}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function T_(e,t){let n=Hu();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Lu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function qh(e){return!!(e.host&&e.mode)}function US(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||qh(n))return e;for(;n&&n.nodeName!=="BODY"&&!qh(n)&&Dp(n,t);){let r=n.parentNode;if(r&&qh(r))break;n=r}return n}function HS(e,t){return e.nodeType===Node.TEXT_NODE||Dp(e,t)?US(e,t):e}function zS(e,t,n){nl=t.clientX,rl=t.clientY,Md(e,!0,n),Wh(e,!0,n)}async function Wh(e,t,n,r){if(!ys(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=Sb(nl,rl,e.rule,n);if(!a||Ed(a.src)||a.translationStatus==="translating")return;let i=Dd(a);if(i&&!t||i&&!r)return;if(i){mi(a);return}if(!await zs(e)){el("image_mouse_hover");return}Ea(e,a,!0,"image_mouse_hover")}function C_(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Md(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};tl("mousedown",i,t),tl("mouseup",o,t),Aa.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}function w_(){let e=document.querySelector(`#${L}-modal-input-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-modal`);t&&(t.style.display="block")}}function WS(e){let t=`${L}-modal-input-root`,n=`${L}-modal`,r=`${L}-modal-title`,a=`${L}-modal-body`,i=`${L}-modal-footer`,o=document.querySelector(`#${t}`),s,u,l,c;return setTimeout(()=>{w_()},100),new Promise(d=>{let m=d;if(o){let R=o.shadowRoot;if(!R)return;s=R.querySelector(`.${n}`);let B=s.querySelector(`.${r}`),P=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let R=document.createElement("div");R.setAttribute("translate","no"),R.className=`no-translate ${L}-error-modal-input-shadow-root`,R.id=t,R.style.all="initial",R.style.zIndex="2147483647",document.body.appendChild(R);let B=R.attachShadow({mode:"open"}),P=document.createElement("style"),_=ke();P.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,B.appendChild(P),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let O=document.createElement("div");O.className=L+"-modal-content notranslate "+L+"-modal-content-in-input",s.appendChild(O);let z=document.createElement("span");z.textContent="\xD7",z.className=L+"-close",O.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",O.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",O.appendChild(c),l=document.createElement("div"),l.className=i,O.appendChild(l),B.appendChild(s),z.onclick=function(){A(),d("close")},B.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=De.bind(null,e.config.interfaceLanguage),g=`
${z0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Bn?.createHTML(g)||g,c.innerHTML=Bn?.createHTML("")||"";let b=document.createElement("p"),h=p("modalEnableInputTranslationDesc",{1:ae+"docs/input/"});b.innerHTML=Bn?.createHTML(h)||h,b.style.cssText="margin-bottom:12px",c.appendChild(b);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=Ze.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=Bn?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let R=0;R{A_(e,t)})}function A_(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(Id===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;Ve().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(An||Id===!1)return;let p=_d(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(M_(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&KS(t,o,m.target)&&(s=0,Jh(m,e,t,o))}function d(){Vh=l,t.removeEventListener("keyup",Vh),t.addEventListener("keyup",Vh,!0)}R_(e)}function YS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Fd(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var xs;function Yh(e){let t=e.parentElement;if(!t)return;xs=document.createElement("div"),xs.className=P+"-input";let n=`
`;xs.innerHTML=Un?.createHTML(n)||n,t.appendChild(xs);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=E_,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Qh(){xs&&xs.remove()}async function k_(e,t=window){if(An)return;let r=globalThis.getSelection()?.toString();if(r){$h(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let v=m.split(" ")[0];v&&v[0]&&(v=v[0].toLowerCase()+v.slice(1)),v.trim()&&u.flatAlias.includes(v)?(p=Fd(v,u.codeAlias),d=m.slice(v.length+1)):d=m},y=function(){p="";let v=YS(u),S=m.split(v);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let C=m.lastIndexOf(d),T=m.slice(0,C).lastIndexOf(S[S.length-2]);c=m.slice(0,T+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let w=m.slice(c.length+1,m.indexOf(d)).trim();if(p=Fd(w,u.codeAlias),!p){k.warn("not found alias",w);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(v=>i[v]=[v,...i[v]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;Ve().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;An=!0;let c="",d="",m=jr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=QS(d,u),h=await Be({text:g,pageLangs:["en"]});k.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;Yh(l),ot(Is,Date.now());try{e.specialAiAssistant=Fr(e,e.inputTranslationService,!0);let v=await ea(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});Xh(e),tT(e,t,l,c+v.text)}catch(v){if(v instanceof j){let S=v.uiConfig(e);e4(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(fn,{detail:S}))}}finally{An=!1}}catch(a){throw An=!1,a}finally{An=!1,Qh()}}async function Jh(e,t,n,r){if(!An)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=Fd(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=YS(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Fd(b,r.codeAlias),!u){k.warn("not found alias",b);return}},a=_d(n.document,t.rule.enableInputDeepActive);if(!a)return;An=!0;let i="",o="",s=jr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=QS(o,r),c=await Be({text:l,pageLangs:["en"]});k.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!VS){VS=!0;let g=await I_(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(Id=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Wt(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await Wt(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(Id=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Wt(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await Wt(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await Wt(h)}}Yh(a),ot(Is,Date.now());try{t.specialAiAssistant=Fr(t,t.inputTranslationService,!0);let g=await ea(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});Xh(t),tT(t,n,a,i+g.text)}catch(g){if(g instanceof j){let h=g.uiConfig(t);e4(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(fn,{detail:h}))}}finally{An=!1}}catch(a){throw An=!1,a}finally{An=!1,Qh()}}function KS(e,t,n){if(!n)return!1;if(Zh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=D_(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=it()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function D_(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function QS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function JS(e,t){let n=t.innerHTML,r=jr(t);return{html:n.replace(r,e),text:e}}function Bd(e,t,n=!1){let r=jr(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function jr(e){return e.value||e.innerText||e.textContent}async function Nr(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function L_(e,t,n){await Nr(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Nr(10)}async function ZS(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Nr(10))}async function XS(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Nr(20),(t.value||t.value==="")&&(t.value=e.text)}async function $S(e,t){Zh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Nr(20))}var eT=[L_.bind(null,["plain"])];function Zh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function P_(e,t){if(Zh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function tT(e,t,n,r){await Nr(50),await P_(t,n),await Nr(50);let a=e.rule.inputConfig,i=JS(r,n);try{await Nr(50),a?.execCommandDeleteEnable&&!Tr()&&jr(n)?.trim()!=""&&(t.document.execCommand("delete"),await Nr(50)),k.debug("clearContent",jr(n))}catch(o){k.error(o)}for(let o of[...eT,XS,$S,ZS]){await o(i,n);let s=nT(t);if(!s)return;if(k.debug("setContent",o.name,Bd(i,s),jr(s),i),Bd(i,s))break}}function nT(e){return e.document.activeElement}function Xh(e,t=""){Fe("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function M_(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function R_(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Nt(t,"")||Number(await Nt(Is,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{F_()},100),new Promise(d=>{let m=d;if(o){let R=o.shadowRoot;if(!R)return;s=R.querySelector(`.${n}`);let B=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let R=document.createElement("div");R.setAttribute("translate","no"),R.className=`no-translate ${P}-error-modal-input-shadow-root`,R.id=t,R.style.all="initial",R.style.zIndex="2147483647",document.body.appendChild(R);let B=R.attachShadow({mode:"open"}),L=document.createElement("style"),_=ke();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,B.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let O=document.createElement("div");O.className=P+"-modal-content notranslate "+P+"-modal-content-in-input",s.appendChild(O);let z=document.createElement("span");z.textContent="\xD7",z.className=P+"-close",O.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",O.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",O.appendChild(c),l=document.createElement("div"),l.className=i,O.appendChild(l),B.appendChild(s),z.onclick=function(){A(),d("close")},B.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=De.bind(null,e.config.interfaceLanguage),g=`
${W0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Un?.createHTML(g)||g,c.innerHTML=Un?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:ae+"docs/input/"});h.innerHTML=Un?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=Ze.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=Un?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let R=0;R0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function $h(e,t,n,r){if(An)return;try{let o=_d(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;An=!0;let u=e.config.inputTargetLanguage,l=await Be({text:n,pageLangs:["en"]});k.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;Yh(o),ot(Is,Date.now());try{if(e.specialAiAssistant=Fr(e,e.inputTranslationService,!0),Xh(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await ea(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await ea(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof j){let m=d.uiConfig(e);e4(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(fn,{detail:m}))}}finally{An=!1}}catch(o){throw An=!1,o}finally{An=!1,Qh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=JS(l,u);try{await Nr(50),c?.execCommandDeleteEnable&&!Tr()&&jr(u)?.trim()!=""&&(s.document.execCommand("delete"),await Nr(50)),k.debug("clearContent",jr(u))}catch(m){k.error(m)}for(let m of[...eT,XS,$S,ZS]){await m(d,u);let p=nT(s);if(!p)return;if(k.debug("setContent",m.name,Bd(d,p),jr(p),d),Bd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function e4(e){return e==="retry"||e==="changeService"}var il=[];function t4(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),il.push(()=>{document.removeEventListener("click",i)})}function rT(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),il.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Od(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),il.push(()=>{document.removeEventListener("touchstart",r)})}var n4={touchShortcutsOff:()=>{},"multipleClick.2":t4,"multipleClick.3":t4,"multipleClick.4":t4,"slide.left":rT,"slide.right":rT,"fingers.2":Od,"fingers.3":Od,"fingers.4":Od,"fingers.5":Od};async function iT(e,t=window){try{H_();let n=await ln(),r=b1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=__(e,n,a.command),o=n4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{U_(a.command,e,t,l)})})}catch(n){k.error(n)}}function __(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var O_=()=>{r4();let e=new CustomEvent(Sr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},N_=()=>{i4();let e=new CustomEvent(Sr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},j_=()=>{a4();let e=new CustomEvent(Sr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},aT=0,U_=(e,t,n,r)=>{if(!(new Date().getTime()-aT<200)){if(aT=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")O_();else if(e==="touchShortcutsToggleTranslationMask")j_();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")N_();else if(e==="touchShortcutsToggleTranslateTouchElement")GS(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Jh(r,t,n,s)}}};function H_(){il.forEach(e=>{e()}),il=[]}function oT(e){let{t}=oe(),{ctx:n,setSettings:r}=e,a=q_(e);return qs(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(si,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||_s[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(z_,{...e})}function q_({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=oe(),a=he(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=he(()=>_s.filter(s=>!(s==="Off"||_s.includes(a)&&s==="OtherCustom")),[e,a]);return he(()=>i.map(s=>{let u=r("mouseHoldKey",{key:ls(s)}),l=_s.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function z_(e){let{ctx:t,setSettings:n}=e,{t:r}=oe(),a=t.config.generalRule,i=Object.keys(n4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(si,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function sT(e){let{isAlwaysTranslateLang:t}=W_({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=oe();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:oi(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Wc(e.currentLang,u.matches),excludeMatches:Wc(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=zc(e.currentLang,u[i]),u[o]=Wc(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function W_({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function lT({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=oe(),i=ke(),o=he(()=>{let s=[{title:a("widget.translateFile"),icon:Nv,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:zv,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(I1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:Gv,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(R1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(dn,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(uT,{...s})}):x(uT,{...s}))})}function uT(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}async function o4(){let e=["bingGlobalConfig","baiduGlobalConfig",V3,jm];for(let t of e)await re.storage.local.remove(t);te()||await c9(),await dp()}var G_=["bing","transmart","google","yandex"];function dT(e){let{t}=oe();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:as,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Fn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Fn,`${e.type}_trial_pro_service`)}})]}):null}var cT="popup_trial_pro_show_count";function mT(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=W(null),s=Ce(!1);J(()=>{Ei(cT,0).then(l=>{o(l)})},[]);let u=he(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!G_.includes(d)},[t,n,r,i]);return J(()=>{!u||i==null||s.current||(s.current=!0,Ai(cT,i+1))},[u,i,s,a]),{showTrialPro:u}}function pT(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function gT(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function s4(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=W(""),[c,d]=W(null),[m,p]=W(null);J(()=>{mt.get(dt,null).then(y=>{y?(d(y),p(ft(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,h=it();n&&h&&(g=n.generalRule.showSponsorOnSafari);let b=Ga(n),{showTrialPro:f}=mT({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[b&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(Kv,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(X_,{openSharePage:r})]}),x(Yv,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(hS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(dT,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(Y_,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(J_,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x($_,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x($f,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(vS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(oT,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(sT,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(K_,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(V_,{ctx:a})]}),x(lT,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),x(Q_,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function V_({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Ed(e.rule.imageRule))return null;let{t}=oe();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function K_(e){let{t}=oe(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!he(()=>!i.disabled&&Km.includes(i.type||""),[n,Km,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Fc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function Y_(e){let{t}=oe(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(dn,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Uv:Hv})})}function Q_(e){let{t,lang:n}=oe(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=Ae(y=>{i&&(o(v=>Nc({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=du(i,s.rawUserConfig),d=ke(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[jv,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(Z_,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(Xf,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(Fn),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?h():y.value==="changeToTranslateTheMainPage"?b():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(Fn,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(L1,m):y.value==="cleanCache"?o4().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function h(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function b(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function J_({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=oe(),l=r.config,c=he(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");Fi(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?Tr()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):te()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Zn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${ls(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function Z_({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=oe(),o=Ht();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${P}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),My(`${ae}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[L2(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function X_(e){let{t}=oe();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),qv]})}function $_({aiContextInfo:e,curUrl:t}){let{t:n}=oe();if(!e?.visible)return null;let r=he(()=>{let a=new URL(t);return a.searchParams.append($l,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[pT(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(dn,{text:n("contextDiffPreview",{1:r}),children:gT()})]})}var u4={get:(e,t,n)=>re.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>re.storage[n].set({[e]:t})};function Nd(e,t,n){let[r]=W(()=>typeof t=="function"?t():t),[a]=W(n),[i,o]=W(r),[s,u]=W(!1),[l,c]=W("");J(()=>{u4.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=Ae(m=>{let p=typeof m=="function"?m(i):m;k.debug("new settings",p),u4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function l4(e,t,n){let r=[];return function(){let[i,o,s,u]=Nd(e,t,n),l=Ae(c=>{for(let d of r)d(c)},[]);return J(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function fT(e,t){return l4(e,t,"sync")}var eO="userConfig",tO=null,nO=fT(eO,tO);function Da(e){let[t,n,r,a]=nO(),[i,o]=W();J(()=>{(async function(){let u=await Kc();o(u)})()},[t]);let s=Ae(async u=>{let l=typeof u=="function"?u(i):u;l&&c4(l);let{userConfig:c,promptPool:d,objectPool:m}=await Yp(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(d).length,d),k.debug("objectPool size",JSON.stringify(m).length,m),await Pr(Gc,d),await Pr(Vc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function c4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var O3e=1e3*3600*24;async function jd(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await re.storage.local.set({[Bs]:t.toISOString()}),await d4(),te()||await _9()}catch(t){k.error("run cron task failed",t)}}async function hT(){let t=(await Sn()).interval;if(t){let n=await re.storage.local.get(Bs);if(n&&n[Bs]){let r=n[Bs];if(Date.now()-new Date(r).getTime()r?(await re.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Kr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}var X3e=ke().REDIRECT_URL;var F1e=wo([]);function yT(e){let[t,n]=W(null);return J(()=>{qt().then(r=>{n(r),k.debug("current config",r)})},[]),J(()=>{qt().then(r=>{n(r)})},[e]),t}function xT(){let[e,t]=W(null);return J(()=>{Yt().then(r=>{t(r)})},[]),[e,r=>{t(r),zt(r)}]}var uO=Mn(lO,1e3);async function lO(e,t,n){try{if(t===null)return"noupdate";let r=await Yt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Va(t.proSyncAPIKey,t);return await m4(e,c),await zt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await ST(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Ry(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Va(t.proSyncAPIKey,t);return await m4(e,u),await zt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||Iy(n)&&uO(n.token,e,t)},[e,n])}function cO(){let[e,t]=W(null);return J(()=>{mt.get(dt,null).then(n=>{t(n)})},[t]),e}function ST(e){return(location.href?.indexOf("popup.html")>0?Li:K)({responseType:"json",url:rt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function m4(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Li:K)({responseType:"json",url:rt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Hd(e){let{onClose:t}=e,[n,r]=W("Original"),[a,i,o,s]=Da(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});Ud(a,i);let[u,l]=W(null),[c,d]=W(globalThis.location.href),[m,p]=W("auto"),[g,h]=W(null),[b,f]=W({visible:!1,preview:!1}),y=Ce(!1);J(()=>{!g||y.current||(y.current=!0,Fe("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=_=>{r(_.detail)};J(()=>(document.addEventListener(Si,v,!1),Sn().then(_=>{l(_);let O=pt();p(O);let z=Ye();r(z),jd(_.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",C)}),[]),J(()=>{Sn().then(_=>{l(_)})},[a]),J(()=>{c&&u&&qd().then(_=>{h(_)})},[c,u]),J(()=>{let _=a0();f({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let S=Ae((_,O)=>{T("change_translate_service",!1,{translation_service:`${_}_${O}`})()},[]);if(!u||!g)return null;return x(s4,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},aiContextInfo:b,request:K,onClose:A,onToggleEnabled:D,onChangeService:S,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:R,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{F(Bi(g.rule)||c)},openAboutPage:B,openSharePage:T("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:xa,onSetBuildinConfig:k9,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:I,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function w(_){p(_);let O=_v(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:O})),rr(_)}function C(){d(globalThis.location.href)}function T(_,O,z={}){let V={trigger:"page_popup",...z};return()=>{Jt({method:_,data:V}),O&&t()}}function A(){t()}function D(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function I(_,O){let z=_;O&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${O}`),m0(z,!0),setTimeout(()=>{A()},50)}function F(_){_&&(Bo(!1,_),setTimeout(()=>{A()},50))}function R(_=!0,O=""){Ya(_,O),setTimeout(()=>{t()},50)}function B(){c0(),setTimeout(()=>{t()},50)}function L(){B9(),setTimeout(()=>{t()},50)}}function kT(){let[e,t]=W("Original");return J(()=>{let n=Ye();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Si,r),()=>{document.removeEventListener(Si,r)}},[]),{pageStatus:e}}function DT(){let[e,t]=W("Original");return J(()=>{let n=Io();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Rs,r),()=>{document.removeEventListener(Rs,r)}},[]),{mangaStatus:e}}var TT=6,dO={position:"right",top:335};function LT({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=W(!1),l=Ce(!1);l.current=s;let c=Ce(null),d=Ce(!1),m=Ce(n.floatBallConfig||dO),p=Ce(0),g=Ce(0),h=Ce(0),b=Ce(!1),f=Ce(0),y=Ce(0),v=Ce(0),S=Ce(0),w=Ce(!1),C=Ae(T=>{if(!a)if(clearTimeout(c.current),T)u(T);else{let A=Ve().any||Zn();c.current=setTimeout(()=>{u(T),b.current=!1},A?3e3:0)}},[u,c,b,a]);return J(()=>{a||u(!1)},[a]),J(()=>{if(i.current&&m.current){let T=p4(m.current.top);m.current.top=T,i.current.style.top=`${T}px`,i.current.style.display="flex"}},[t,i]),J(()=>{if(!o.current||!i.current)return;let T=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=L.clientX,S.current=L.clientY,w.current=!1,(Ve().any||Zn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{CT({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",F),document.addEventListener("mouseup",D),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},A=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,S.current=L.clientY,w.current))return;let _=L.clientY-g.current+h.current,O=p4(_);i.current.style.top=`${O}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),B(),d.current=!1,clearTimeout(c.current),b.current||C(!1),w.current)return;CT({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let O=p4(L.clientY-30);m.current.top=O;let z=await On();xa({...z,floatBallConfig:m.current})},I=L=>{L.preventDefault&&L.preventDefault(),T(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},B=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",T),o.current.addEventListener("touchstart",I),()=>{o.current&&(o.current.removeEventListener("mousedown",T),o.current.removeEventListener("touchstart",I))}},[t,o,i,c,d,n,C,e]),J(()=>{if(Ve().any)return;let T=D=>{D.target===i.current&&!b.current||!l.current&&ET(D)&&c.current||(b.current=!0,C(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&ET(D)&&c.current)){if(d.current){b.current=!1;return}D.target===i.current&&!b.current||C(!1)}};return i.current?.addEventListener("mouseover",T),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",T),i.current?.removeEventListener("mouseout",A)}},[i,d,C,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function CT({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>TT||i>TT}function PT(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=he(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=he(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=he(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=he(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function MT(){let[e,t]=W(!1);return J(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var wT="hasShownFloatingBallGuide",mO="2024-01-06";function RT(e,t){let[n,r]=W(!1),a=Ae(()=>{ot(wT,new Date().toISOString()),r(!0)},[r]);J(()=>{if(!e.config.enableShowFloatingBallGuide||pt()==e.targetLanguage)return;let o=ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Nt(wT,""),u=await Nt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Ul,o),()=>{document.removeEventListener(Ul,o)}},[]);let i=Ae(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function IT(){document.dispatchEvent(new CustomEvent(Ul))}function FT(e,t){let n=Ce(0),[r,a]=W(!0),[i,o]=W(!1),s=Da(),[u,l]=s,{t:c}=oe(),d=Ae(()=>{e?.config.floatBallTooltipRule&&(Ve().any||Zn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);J(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ve().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=Ae(async()=>{if(!e)return;n.current=n.current+1,d();let h=await ln();l(b=>{let f={...h};return Ve().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=he(()=>Ve().any||!r||Zn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=he(()=>{if(Ve().any||Zn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:oi(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${ls(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function p4(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var g4=0;function ET(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(g4=Date.now(),!0):Date.now()-g4<100}function BT(e,t){J(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Ti,n),()=>{globalThis.document.addEventListener(Ti,n)}},[e,t])}function _T(e,t){let n=Ce(e);n.current=e,J(()=>{!n.current||!t||Fe("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var AT="imt-float-ball-active";function OT(e){J(()=>{let t=!!document.querySelector(`meta[name='${AT}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(AT)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(Nl,n),()=>{document.removeEventListener(Nl,n)}},[])}function NT(e){document.dispatchEvent(new CustomEvent(Nl,{detail:{active:e}}))}function pO({isOpen:e,onClose:t,children:n}){let[r,a]=W(e);return J(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Et,{children:[e&&x("div",{className:`${P}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${P}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${P}-sheet-content`,children:n})})]})}var zd=pO;var Vi="imt-fb";function Wd(e){if(globalThis.innerWidth<=385)return x(zd,{isOpen:e.visible,onClose:e.onClose,children:x(jT,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${P}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${P}-popup-overlay`,class:`${P}-popup-overlay`,children:x("div",{class:`${P}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(jT,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function jT(e){let{t}=oe(),[n,r]=W("UntilNext"),a=Qa()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Vi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Vi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Rt,{type:"modal-close"})})]}),x("div",{class:`${Vi}-close-radio-content mt-3`,children:o.map(s=>x(gO,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Gr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Vi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Vi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function gO(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=fO(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Vi}-radio-sel`:`${Vi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function fO(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}function UT(e){return le.ASSETS_BASE_URL+e}var Ki="imt-fb";function HT(e){let{t}=oe(),n=a=>{a?.target?.id===P+"-popup-overlay"&&e.onClose()},r=he(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:x("div",{class:`${Ki}-guide-container`,style:r,children:[x("img",{class:`${Ki}-guide-bg ${e.fixedPosition}`,src:hO}),x("div",{class:`${Ki}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Ki}-guide-img`,src:UT("images/float_ball_intro.png")}),x("div",{class:`${Ki}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ve().any?` -${t("floatBall.longPress")}`:""]}),x("div",{class:`${Ki}-primary-btn ${Ki}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var hO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var qT="imt-manga";function zT({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=oe(),o=d=>{d?.target?.id===P+"-popup-overlay"&&t()},s=he(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=Ae(()=>{if(t(),!a.isPro){if(a.user)return window.open(w1);window.open(T1)}},[a,t]);return e?x("div",{onClick:o,id:P+"-popup-overlay",class:`${P}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${qT}-guide-bg ${r}`,src:`${G3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${qT}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Rt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var La="imt-fb";function f4(e){let{t}=oe(),n=Da(),[r,a,i,o]=n;Ud(r,a);let s=yT(r),u=e.ctx,{isFullScreen:l}=MT(),[c,d]=W(!1),m=Ce(c);m.current=c;let[p,g]=W(!0),{pageStatus:h}=kT(),b=du(u,r),f=Ae(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Jt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Jt,d]),y=Ae(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:w,ballRef:C,floatBallConfigRef:T,setActive:A}=LT({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),D=b?.fixedPosition||"right",I=D==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:R}=RT(e.ctx,b),{closeTransform:B,logoContainerTransform:L,settingTransform:_,mangaTransform:O}=PT(b,w||F);_T(u,w);let{tooltipDelay:z,disableTooltip:V,tooltipText:ie,handleShowTooltip:je}=FT(u,h);BT(d,m),OT(A);let N=globalThis.innerWidth<=385;return v?x(Et,{children:x("div",{class:`${La}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||F||c?"all":"none"},ref:S,children:[x(bO,{ctx:u,setVisible:g,closeTransform:B,setActive:A,getModalStyle:()=>WT(T.current.top,300,D)}),x(dn,{enableMobile:!0,text:ie,position:I,delay:z,onShow:je,disable:V,children:x("div",{class:`${La}-btn ${D} btn-animate `,ref:C,style:{transform:L,opacity:w||F?1:.5},children:x("div",{children:[x(Rt,{type:"logo"}),x(Rt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(vO,{ctx:u,mangaTransform:O,floatBallConfigRef:T,fixedPosition:D,hidden:F}),x("div",{style:{marginTop:"12px",transform:_},class:`${La}-more-buttons btn-animate`,children:[x(dn,{text:t("translateFileTooltip"),multiple:!0,position:I,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{m0(P1,!0)},children:x(Rt,{type:"file"})})}),x(dn,{text:t("floatBall.setting"),position:I,containerClass:"btn-animate",children:x("div",{class:`${La}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Rt,{type:"setting"})})}),x(TO,{ctx:u,tooltipPosition:I,rule:b,active:w})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:_},class:`${La}-more-buttons btn-animate`,children:x(dn,{text:t("reportTip"),position:I,containerClass:"btn-animate",children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}}))}})})}),x(h4,{onClose:()=>{A(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>WT(T.current.top,500,D)}),x(HT,{visible:F,top:T.current.top,fixedPosition:D,onClose:()=>{R(),A(!1)}})]})}):null}function bO(e){let{t}=oe(),[n,r]=W(!1),a=Da(),[i,o,s,u]=a,l=du(e.ctx,i),c=Ae(m=>{e.ctx&&o(p=>Nc({...p},m))},[e.ctx,o]),d=Ae(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Rt,{type:"close"})}),x(Wd,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function h4(e){let t=n=>{n?.target?.id===P+"-popup-overlay"&&e.onClose()};return e.isSheet?x(zd,{isOpen:e.visible,onClose:e.onClose,children:x(Hd,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:x("div",{class:`${P}-popup-wrapper`,style:e.getModalStyle(),children:x(Hd,{onClose:e.onClose})})}):null}function yO(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var WT=(e,t,n)=>{let a=yO().height,i={position:"fixed"},o=0;return V4()&&(e=xO.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},xO={position:"right",right:0,top:335};function vO({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=W(!1),{mangaStatus:u}=DT(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=oe();J(()=>{c||On().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),zt(p))})},[c,s]);let m=Ae(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await mt.get(dt,null);if(ft(g)){e.user=g,e.isPro=!0,Jt({method:"toggleTranslateManga"});return}s(!0);return}Jt({method:"toggleTranslateManga"})},[]);return!Ed(l)||r||!l?.enable?null:x(Et,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Rt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Rt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Rt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(dn,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"mangaReport"}}))}})})]}),x(zT,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var SO="float_ball_upgrade_show_count";function TO(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=oe(),o=Ga(n.config),s=Ce(!1),[u,l]=W(null),c=he(()=>cs(n.config),[n]),d=p=>cs(p)?.upgradeShowCountCacheKey||SO;J(()=>{Ei(d(n.config),0).then(p=>{l(p)})},[n]);let m=he(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=cs(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return J(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ai(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(dn,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Qm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${La}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Rt,{type:"upgrade"})})})}):x(dn,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{globalThis.open(Qm,"_blank")},children:x(Rt,{type:"upgrade"})})})}async function GT(){try{let e=await qt(),t={url:globalThis.location.href,config:e},n=await Tn(t),r=document.createElement("div");r.id=P+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});CO(a,e,n),document.documentElement.appendChild(r)}catch{}}function CO(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=ke(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);wO(e,[i]),e.appendChild(r),Ha(x(Go,{lang:t.interfaceLanguage,children:x(EO,{ctx:n})}),r)}function wO(e,t){for(let n of t){if(te()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function EO(e){let[t,n]=W(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");J(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Ti,u),()=>{globalThis.document.addEventListener(Ti,u)}},[r]);let o=globalThis.innerWidth,s=Ve().any&&o<=450;return x(h4,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Gd(e){document.dispatchEvent(new CustomEvent(Ti,{detail:e||{}}))}function AO(e,t){for(let n of t){if(te()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Vd(){let e=await Sn(),t=await ln(),n={url:globalThis.location.href,config:e},r=await Tn(n),a=await Wp(r,t),i=ze(r.url,a?.blockUrls),o=await Yt();if(!a?.enable||i)return GT();let s=document.createElement("div");s.id=P+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return kO(u,e,o,r),document.documentElement.appendChild(s),s}function VT(){let e=document.getElementById(P+"-popup");e&&e.remove(),Vd()}function kO(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=ke(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);AO(e,[o]),e.appendChild(a),Ha(x(Go,{lang:t.interfaceLanguage,children:x(f4,{localConfig:n,ctx:r})}),a)}var b4=!1;async function KT(e){if(!e){let t=await Sn(),n={url:globalThis.location.href,config:t};e=await Tn(n)}e.config.debug&&k.setLevel("debug"),e.isTranslateExcludeUrl?k.debug("detect exclude url, do not inject anything."):(b4=!0,Vd().catch(t=>{k.debug("init popup error",t)}))}async function YT(){b4||(b4=!0,Vd().catch(e=>{k.error("init popup error",e)}))}async function QT(e,t){let n,r;if(t){let a=I0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Va(!1,r)}return{siteUrl:location.href,pluginVersion:Ht(),isMobile:Ve().any,platform:ha(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function JT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await za(l,"web"),l.json()))}function ZT(e,t,n){if(e=="manga")return SS(t,n);if(e=="web")return QT(t,n)}function XT(e,t,n,r,a,i){if(e=="manga")return TS(t,n,a,i,r);if(e=="web")return JT(t,n,a,i,r)}function Kd(e,t,n,r,a,i,o){let s=De.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; +`;function Kh(e){Ld().forEach(t=>{A_(e,t)})}function A_(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(Rd===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;Ve().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(En||Rd===!1)return;let p=Bd(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(I_(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&VS(t,o,m.target)&&(s=0,Qh(m,e,t,o))}function d(){Vh=l,t.removeEventListener("keyup",Vh),t.addEventListener("keyup",Vh,!0)}F_(e)}function KS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Id(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var xs;function k_(e){let t=e.parentElement;if(!t)return;xs=document.createElement("div"),xs.className=L+"-input";let n=`
`;xs.innerHTML=Bn?.createHTML(n)||n,t.appendChild(xs);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=E_,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Yh(){xs&&xs.remove()}async function D_(e,t=window){if(En)return;let r=globalThis.getSelection()?.toString();if(r){Zh(e,t,r,"shortcutKey");return}try{let h=function(){p=e.config.inputTargetLanguage;let y=m.split(" ")[0];y&&y[0]&&(y=y[0].toLowerCase()+y.slice(1)),y.trim()&&u.flatAlias.includes(y)?(p=Id(y,u.codeAlias),d=m.slice(y.length+1)):d=m},f=function(){p="";let y=KS(u),v=m.split(y);if(v.length<2)return;if(d=v[v.length-1],c=v[0],v.length>2){let w=m.lastIndexOf(d),C=m.slice(0,w).lastIndexOf(v[v.length-2]);c=m.slice(0,C+v[v.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let S=m.slice(c.length+1,m.indexOf(d)).trim();if(p=Id(S,u.codeAlias),!p){k.warn("not found alias",S);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(y=>i[y]=[y,...i[y]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;Ve().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;En=!0;let c="",d="",m=Nr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?h():(f(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&h());let g=YS(d,u)||"";if(!g||g.length>5e3)return;let b=await Xh({translateContent:g,targetLang:p,ele:l,selfWindow:t});b&&eT(e,t,l,c+b),En=!1}catch(a){throw En=!1,a}finally{En=!1,Yh()}}async function Qh(e,t,n,r){if(!En)try{let d=function(){u=t.config.inputTargetLanguage;let p=s.split(" ")[0];p&&p[0]&&(p=p[0].toLowerCase()+p.slice(1)),p.trim()&&r.flatAlias.includes(p)?(u=Id(p,r.codeAlias),o=s.slice(p.length+1)):o=s},m=function(){u="";let p=KS(r),g=s.split(p);if(g.length<2)return;if(o=g[g.length-1],i=g[0],g.length>2){let h=s.lastIndexOf(o),f=s.slice(0,h).lastIndexOf(g[g.length-2]);i=s.slice(0,f+g[g.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Id(b,r.codeAlias),!u){k.warn("not found alias",b);return}},a=Bd(n.document,t.rule.enableInputDeepActive);if(!a)return;En=!0;let i="",o="",s=Nr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?d():(m(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&d());let l=YS(o,r)||"";if(!l)return;if(t.config.isShowInputTranslationConsent&&!GS){GS=!0;let p=await WS(t);if(e.target&&e.target.focus(),p==="disable_once"||p==="disable_forever"){if(Rd=!1,p==="disable_forever"){let g=await Mt();g.enableInputTranslation=!1,g.isShowInputTranslationConsent=!1,await Wt(g)}else if(p==="disable_once"){let g=await Mt();g.isShowInputTranslationConsent=!1,await Wt(g)}return}else if(p==="close_disable_once"||p==="close_disable_forever"){if(Rd=!1,p==="close_disable_forever"){let g=await Mt();g.enableInputTranslation=!1,g.isShowInputTranslationConsent=!1,await Wt(g)}return}else if(p==="enable"){let g=await Mt();g.enableInputTranslation=!0,g.isShowInputTranslationConsent=!1,await Wt(g)}else if(p==="close_enable"){let g=await Mt();g.enableInputTranslation=!0,await Wt(g)}}let c=await Xh({translateContent:l,targetLang:u,ele:a,selfWindow:n});c&&eT(t,n,a,i+c),En=!1}catch(a){throw En=!1,a}finally{En=!1,Yh()}}function VS(e,t,n){if(!n)return!1;if(Jh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` +`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=L_(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` +`).reverse(),l=it()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function L_(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function YS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function QS(e,t){let n=t.innerHTML,r=Nr(t);return{html:n.replace(r,e),text:e}}function Fd(e,t,n=!1){let r=Nr(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Nr(e){return e.value||e.innerText||e.textContent}async function Or(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function P_(e,t,n){await Or(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Or(10)}async function JS(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Or(10))}async function ZS(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Or(20),(t.value||t.value==="")&&(t.value=e.text)}async function XS(e,t){Jh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Or(20))}var $S=[P_.bind(null,["plain"])];function Jh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function M_(e,t){if(Jh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function eT(e,t,n,r){await Or(50),await M_(t,n),await Or(50);let a=e.rule.inputConfig,i=QS(r,n);try{await Or(50),a?.execCommandDeleteEnable&&!Tr()&&Nr(n)?.trim()!=""&&(t.document.execCommand("delete"),await Or(50)),k.debug("clearContent",Nr(n))}catch(o){k.error(o)}for(let o of[...$S,ZS,XS,JS]){await o(i,n);let s=tT(t);if(!s)return;if(k.debug("setContent",o.name,Fd(i,s),Nr(s),i),Fd(i,s))break}}function tT(e){return e.document.activeElement}function R_(e,t=""){Ie("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function I_(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function F_(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Nt(t,"")||Number(await Nt(zm,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function Zh(e,t,n,r){if(En)return;try{let o=Bd(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;En=!0;let u=e.config.inputTargetLanguage;if(!n)return;let l=await Xh({translateContent:n,targetLang:u,ele:o,selfWindow:t,trigger:r});if(!l)return;o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement?i(t,o,l):a(e,t,o,l)}catch(o){throw En=!1,o}finally{En=!1,Yh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=QS(l,u);try{await Or(50),c?.execCommandDeleteEnable&&!Tr()&&Nr(u)?.trim()!=""&&(s.document.execCommand("delete"),await Or(50)),k.debug("clearContent",Nr(u))}catch(m){k.error(m)}for(let m of[...$S,ZS,XS,JS]){await m(d,u);let p=tT(s);if(!p)return;if(k.debug("setContent",m.name,Fd(d,p),Nr(p),d),Fd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function __(e){return e==="retry"||e==="changeService"}async function Xh(e){let{translateContent:t,targetLang:n,ele:r,selfWindow:a,trigger:i}=e,o=await He(ve(),{}),s=await Ne({text:t,pageLangs:["en"]});k.debug("translateContent",t,s);let u={text:t||"",id:0,from:s,to:n,url:"https://google.com",fromByClient:s,force:!0};k_(r),mt(zm,Date.now());try{o.specialAiAssistant=ya(o,o.inputTranslationService,!0);let l=await Oi(u,{...o,isRichTranslate:!1,translationService:o.inputTranslationService});return R_(o,i),l.text}catch(l){if(l instanceof j){let c=l.uiConfig(o);__(c.action)&&(c.action="none"),a.document.dispatchEvent(new CustomEvent(Un,{detail:c}))}}finally{En=!1}}var al=[];function $h(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),al.push(()=>{document.removeEventListener("click",i)})}function nT(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),al.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function _d(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),al.push(()=>{document.removeEventListener("touchstart",r)})}var e4={touchShortcutsOff:()=>{},"multipleClick.2":$h,"multipleClick.3":$h,"multipleClick.4":$h,"slide.left":nT,"slide.right":nT,"fingers.2":_d,"fingers.3":_d,"fingers.4":_d,"fingers.5":_d};async function aT(e,t=window){try{q_();let n=await ln(),r=f1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=O_(e,n,a.command),o=e4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{H_(a.command,e,t,l)})})}catch(n){k.error(n)}}function O_(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var N_=()=>{t4();let e=new CustomEvent(Sr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},j_=()=>{r4();let e=new CustomEvent(Sr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},U_=()=>{n4();let e=new CustomEvent(Sr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},rT=0,H_=(e,t,n,r)=>{if(!(new Date().getTime()-rT<200)){if(rT=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")N_();else if(e==="touchShortcutsToggleTranslationMask")U_();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")j_();else if(e==="touchShortcutsToggleTranslateTouchElement")zS(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Qh(r,t,n,s)}}};function q_(){al.forEach(e=>{e()}),al=[]}function iT(e){let{t}=oe(),{ctx:n,setSettings:r}=e,a=z_(e);return Hs(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(oi,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Bs[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(W_,{...e})}function z_({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=oe(),a=he(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=he(()=>Bs.filter(s=>!(s==="Off"||Bs.includes(a)&&s==="OtherCustom")),[e,a]);return he(()=>i.map(s=>{let u=r("mouseHoldKey",{key:ls(s)}),l=Bs.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function W_(e){let{ctx:t,setSettings:n}=e,{t:r}=oe(),a=t.config.generalRule,i=Object.keys(e4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(oi,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function oT(e){let{isAlwaysTranslateLang:t}=G_({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=oe();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:ii(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:zc(e.currentLang,u.matches),excludeMatches:zc(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qc(e.currentLang,u[i]),u[o]=zc(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function G_({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function uT({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=oe(),i=ke(),o=he(()=>{let s=[{title:a("widget.translateFile"),icon:_v,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:Hv,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(M1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:zv,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(P1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(dn,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(sT,{...s})}):x(sT,{...s}))})}function sT(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}async function a4(){let e=["bingGlobalConfig","baiduGlobalConfig",W3,Nm];for(let t of e)await re.storage.local.remove(t);te()||await u9(),await dp()}var V_=["bing","transmart","google","yandex"];function cT(e){let{t}=oe();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:as,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(In,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(In,`${e.type}_trial_pro_service`)}})]}):null}var lT="popup_trial_pro_show_count";function dT(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=W(null),s=Ce(!1);J(()=>{wi(lT,0).then(l=>{o(l)})},[]);let u=he(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!V_.includes(d)},[t,n,r,i]);return J(()=>{!u||i==null||s.current||(s.current=!0,Ei(lT,i+1))},[u,i,s,a]),{showTrialPro:u}}function mT(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function pT(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function i4(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=W(""),[c,d]=W(null),[m,p]=W(null);J(()=>{dt.get(ct,null).then(y=>{y?(d(y),p(ft(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,b=it();n&&b&&(g=n.generalRule.showSponsorOnSafari);let h=Wa(n),{showTrialPro:f}=dT({ctx:a,isHidden:h,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[h&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(Gv,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x($_,{openSharePage:r})]}),x(Vv,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(gS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(cT,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(Q_,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(Z_,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x(eO,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x($f,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(yS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(iT,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(oT,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(Y_,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(K_,{ctx:a})]}),x(uT,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:h})]}),x(J_,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function K_({ctx:e}){if(e.rule.imageRule?.type!="manga"||!wd(e.rule.imageRule))return null;let{t}=oe();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function Y_(e){let{t}=oe(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!he(()=>!i.disabled&&Km.includes(i.type||""),[n,Km,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Ic()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function Q_(e){let{t}=oe(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(dn,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Nv:jv})})}function J_(e){let{t,lang:n}=oe(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=Ae(y=>{i&&(o(v=>Oc({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=cu(i,s.rawUserConfig),d=ke(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[Ov,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(X_,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(Xf,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(In),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?b():y.value==="changeToTranslateTheMainPage"?h():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(In,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(k1,m):y.value==="cleanCache"?a4().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function b(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function h(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function Z_({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=oe(),l=r.config,c=he(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");Ii(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?Tr()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):te()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Zn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${ls(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function X_({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=oe(),o=Ht();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${L}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),Ly(`${ae}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[k2(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function $_(e){let{t}=oe();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),Uv]})}function eO({aiContextInfo:e,curUrl:t}){let{t:n}=oe();if(!e?.visible)return null;let r=he(()=>{let a=new URL(t);return a.searchParams.append(Xl,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[mT(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(dn,{text:n("contextDiffPreview",{1:r}),children:pT()})]})}var o4={get:(e,t,n)=>re.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>re.storage[n].set({[e]:t})};function Od(e,t,n){let[r]=W(()=>typeof t=="function"?t():t),[a]=W(n),[i,o]=W(r),[s,u]=W(!1),[l,c]=W("");J(()=>{o4.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=Ae(m=>{let p=typeof m=="function"?m(i):m;k.debug("new settings",p),o4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function s4(e,t,n){let r=[];return function(){let[i,o,s,u]=Od(e,t,n),l=Ae(c=>{for(let d of r)d(c)},[]);return J(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function gT(e,t){return s4(e,t,"sync")}var tO="userConfig",nO=null,rO=gT(tO,nO);function ka(e){let[t,n,r,a]=rO(),[i,o]=W();J(()=>{(async function(){let u=await Vc();o(u)})()},[t]);let s=Ae(async u=>{let l=typeof u=="function"?u(i):u;l&&u4(l);let{userConfig:c,promptPool:d,objectPool:m}=await Yp(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(d).length,d),k.debug("objectPool size",JSON.stringify(m).length,m),await Pr(Wc,d),await Pr(Gc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function u4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Q3e=1e3*3600*24;async function Nd(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await re.storage.local.set({[Fs]:t.toISOString()}),await l4(),te()||await F9()}catch(t){k.error("run cron task failed",t)}}async function fT(){let t=(await vn()).interval;if(t){let n=await re.storage.local.get(Fs);if(n&&n[Fs]){let r=n[Fs];if(Date.now()-new Date(r).getTime()r?(await re.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Vr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}var c1e=ke().REDIRECT_URL;var V1e=wo([]);function bT(e){let[t,n]=W(null);return J(()=>{qt().then(r=>{n(r),k.debug("current config",r)})},[]),J(()=>{qt().then(r=>{n(r)})},[e]),t}function yT(){let[e,t]=W(null);return J(()=>{Yt().then(r=>{t(r)})},[]),[e,r=>{t(r),zt(r)}]}var lO=Pn(cO,1e3);async function cO(e,t,n){try{if(t===null)return"noupdate";let r=await Yt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ga(t.proSyncAPIKey,t);return await c4(e,c),await zt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await vT(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Py(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ga(t.proSyncAPIKey,t);return await c4(e,u),await zt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||My(n)&&lO(n.token,e,t)},[e,n])}function dO(){let[e,t]=W(null);return J(()=>{dt.get(ct,null).then(n=>{t(n)})},[t]),e}function vT(e){return(location.href?.indexOf("popup.html")>0?Di:K)({responseType:"json",url:rt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function c4(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Di:K)({responseType:"json",url:rt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Ud(e){let{onClose:t}=e,[n,r]=W("Original"),[a,i,o,s]=ka(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});jd(a,i);let[u,l]=W(null),[c,d]=W(globalThis.location.href),[m,p]=W("auto"),[g,b]=W(null),[h,f]=W({visible:!1,preview:!1}),y=Ce(!1);J(()=>{!g||y.current||(y.current=!0,Ie("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=_=>{r(_.detail)};J(()=>(document.addEventListener(vi,v,!1),vn().then(_=>{l(_);let O=pt();p(O);let z=Ye();r(z),Nd(_.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",C)}),[]),J(()=>{vn().then(_=>{l(_)})},[a]),J(()=>{c&&u&&Hd().then(_=>{b(_)})},[c,u]),J(()=>{let _=r0();f({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let S=Ae((_,O)=>{T("change_translate_service",!1,{translation_service:`${_}_${O}`})()},[]);if(!u||!g)return null;return x(i4,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},aiContextInfo:h,request:K,onClose:A,onToggleEnabled:D,onChangeService:S,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:R,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{F(Fi(g.rule)||c)},openAboutPage:B,openSharePage:T("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:ba,onSetBuildinConfig:E9,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:I,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function w(_){p(_);let O=Fv(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:O})),rr(_)}function C(){d(globalThis.location.href)}function T(_,O,z={}){let V={trigger:"page_popup",...z};return()=>{Jt({method:_,data:V}),O&&t()}}function A(){t()}function D(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function I(_,O){let z=_;O&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${O}`),d0(z,!0),setTimeout(()=>{A()},50)}function F(_){_&&(Bo(!1,_),setTimeout(()=>{A()},50))}function R(_=!0,O=""){Ka(_,O),setTimeout(()=>{t()},50)}function B(){l0(),setTimeout(()=>{t()},50)}function P(){I9(),setTimeout(()=>{t()},50)}}function AT(){let[e,t]=W("Original");return J(()=>{let n=Ye();t(n);let r=a=>{t(a.detail)};return document.addEventListener(vi,r),()=>{document.removeEventListener(vi,r)}},[]),{pageStatus:e}}function kT(){let[e,t]=W("Original");return J(()=>{let n=Io();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Rs,r),()=>{document.removeEventListener(Rs,r)}},[]),{mangaStatus:e}}var ST=6,mO={position:"right",top:335};function DT({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=W(!1),l=Ce(!1);l.current=s;let c=Ce(null),d=Ce(!1),m=Ce(n.floatBallConfig||mO),p=Ce(0),g=Ce(0),b=Ce(0),h=Ce(!1),f=Ce(0),y=Ce(0),v=Ce(0),S=Ce(0),w=Ce(!1),C=Ae(T=>{if(!a)if(clearTimeout(c.current),T)u(T);else{let A=Ve().any||Zn();c.current=setTimeout(()=>{u(T),h.current=!1},A?3e3:0)}},[u,c,h,a]);return J(()=>{a||u(!1)},[a]),J(()=>{if(i.current&&m.current){let T=d4(m.current.top);m.current.top=T,i.current.style.top=`${T}px`,i.current.style.display="flex"}},[t,i]),J(()=>{if(!o.current||!i.current)return;let T=P=>{P.preventDefault&&P.preventDefault(),p.current=P.clientX,g.current=P.clientY,f.current=Date.now(),b.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=P.clientX,S.current=P.clientY,w.current=!1,(Ve().any||Zn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{TT({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",F),document.addEventListener("mouseup",D),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},A=P=>{if(P.preventDefault&&P.preventDefault(),!d.current||!i.current||(v.current=P.clientX,S.current=P.clientY,w.current))return;let _=P.clientY-g.current+b.current,O=d4(_);i.current.style.top=`${O}px`},D=async P=>{if(P.preventDefault&&P.preventDefault(),B(),d.current=!1,clearTimeout(c.current),h.current||C(!1),w.current)return;TT({startX:p.current,startY:g.current,endX:P.clientX,endY:P.clientY})||(clearTimeout(y.current),e());let O=d4(P.clientY-30);m.current.top=O;let z=await On();ba({...z,floatBallConfig:m.current})},I=P=>{P.preventDefault&&P.preventDefault(),T(P.changedTouches[0])},F=P=>{P.preventDefault&&P.preventDefault(),A(P.changedTouches[0])},R=P=>{P.preventDefault&&P.preventDefault(),D(P.changedTouches[0])},B=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",T),o.current.addEventListener("touchstart",I),()=>{o.current&&(o.current.removeEventListener("mousedown",T),o.current.removeEventListener("touchstart",I))}},[t,o,i,c,d,n,C,e]),J(()=>{if(Ve().any)return;let T=D=>{D.target===i.current&&!h.current||!l.current&&wT(D)&&c.current||(h.current=!0,C(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&wT(D)&&c.current)){if(d.current){h.current=!1;return}D.target===i.current&&!h.current||C(!1)}};return i.current?.addEventListener("mouseover",T),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",T),i.current?.removeEventListener("mouseout",A)}},[i,d,C,t,h,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function TT({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>ST||i>ST}function LT(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=he(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=he(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=he(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=he(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function PT(){let[e,t]=W(!1);return J(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var CT="hasShownFloatingBallGuide",pO="2024-01-06";function MT(e,t){let[n,r]=W(!1),a=Ae(()=>{mt(CT,new Date().toISOString()),r(!0)},[r]);J(()=>{if(!e.config.enableShowFloatingBallGuide||pt()==e.targetLanguage)return;let o=We(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Nt(CT,""),u=await Nt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(jl,o),()=>{document.removeEventListener(jl,o)}},[]);let i=Ae(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function RT(){document.dispatchEvent(new CustomEvent(jl))}function IT(e,t){let n=Ce(0),[r,a]=W(!0),[i,o]=W(!1),s=ka(),[u,l]=s,{t:c}=oe(),d=Ae(()=>{e?.config.floatBallTooltipRule&&(Ve().any||Zn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);J(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ve().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=Ae(async()=>{if(!e)return;n.current=n.current+1,d();let b=await ln();l(h=>{let f={...b};return Ve().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=he(()=>Ve().any||!r||Zn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=he(()=>{if(Ve().any||Zn())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:ii(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${ls(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function d4(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var m4=0;function wT(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(m4=Date.now(),!0):Date.now()-m4<100}function FT(e,t){J(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Si,n),()=>{globalThis.document.addEventListener(Si,n)}},[e,t])}function BT(e,t){let n=Ce(e);n.current=e,J(()=>{!n.current||!t||Ie("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var ET="imt-float-ball-active";function _T(e){J(()=>{let t=!!document.querySelector(`meta[name='${ET}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(ET)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(Ol,n),()=>{document.removeEventListener(Ol,n)}},[])}function OT(e){document.dispatchEvent(new CustomEvent(Ol,{detail:{active:e}}))}function gO({isOpen:e,onClose:t,children:n}){let[r,a]=W(e);return J(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Et,{children:[e&&x("div",{className:`${L}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${L}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${L}-sheet-content`,children:n})})]})}var qd=gO;var Vi="imt-fb";function zd(e){if(globalThis.innerWidth<=385)return x(qd,{isOpen:e.visible,onClose:e.onClose,children:x(NT,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${L}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${L}-popup-overlay`,class:`${L}-popup-overlay`,children:x("div",{class:`${L}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(NT,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function NT(e){let{t}=oe(),[n,r]=W("UntilNext"),a=Ya()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Vi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Vi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Rt,{type:"modal-close"})})]}),x("div",{class:`${Vi}-close-radio-content mt-3`,children:o.map(s=>x(fO,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Wr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Vi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Vi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function fO(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=hO(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Vi}-radio-sel`:`${Vi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function hO(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}function jT(e){return le.ASSETS_BASE_URL+e}var Ki="imt-fb";function UT(e){let{t}=oe(),n=a=>{a?.target?.id===L+"-popup-overlay"&&e.onClose()},r=he(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:L+"-popup-overlay",class:`${L}-popup-overlay`,children:x("div",{class:`${Ki}-guide-container`,style:r,children:[x("img",{class:`${Ki}-guide-bg ${e.fixedPosition}`,src:bO}),x("div",{class:`${Ki}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Ki}-guide-img`,src:jT("images/float_ball_intro.png")}),x("div",{class:`${Ki}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ve().any?` +${t("floatBall.longPress")}`:""]}),x("div",{class:`${Ki}-primary-btn ${Ki}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var bO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var HT="imt-manga";function qT({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=oe(),o=d=>{d?.target?.id===L+"-popup-overlay"&&t()},s=he(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=Ae(()=>{if(t(),!a.isPro){if(a.user)return window.open(T1);window.open(v1)}},[a,t]);return e?x("div",{onClick:o,id:L+"-popup-overlay",class:`${L}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${HT}-guide-bg ${r}`,src:`${z3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${HT}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Rt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var Da="imt-fb";function p4(e){let{t}=oe(),n=ka(),[r,a,i,o]=n;jd(r,a);let s=bT(r),u=e.ctx,{isFullScreen:l}=PT(),[c,d]=W(!1),m=Ce(c);m.current=c;let[p,g]=W(!0),{pageStatus:b}=AT(),h=cu(u,r),f=Ae(()=>{if(h?.clickType==="popup")return d(!0);h?.clickType==="translate"&&Jt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[h,Jt,d]),y=Ae(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:w,ballRef:C,floatBallConfigRef:T,setActive:A}=DT({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),D=h?.fixedPosition||"right",I=D==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:R}=MT(e.ctx,h),{closeTransform:B,logoContainerTransform:P,settingTransform:_,mangaTransform:O}=LT(h,w||F);BT(u,w);let{tooltipDelay:z,disableTooltip:V,tooltipText:ie,handleShowTooltip:je}=IT(u,b);FT(d,m),_T(A);let N=globalThis.innerWidth<=385;return v?x(Et,{children:x("div",{class:`${Da}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||F||c?"all":"none"},ref:S,children:[x(yO,{ctx:u,setVisible:g,closeTransform:B,setActive:A,getModalStyle:()=>zT(T.current.top,300,D)}),x(dn,{enableMobile:!0,text:ie,position:I,delay:z,onShow:je,disable:V,children:x("div",{class:`${Da}-btn ${D} btn-animate `,ref:C,style:{transform:P,opacity:w||F?1:.5},children:x("div",{children:[x(Rt,{type:"logo"}),x(Rt,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),x(SO,{ctx:u,mangaTransform:O,floatBallConfigRef:T,fixedPosition:D,hidden:F}),x("div",{style:{marginTop:"12px",transform:_},class:`${Da}-more-buttons btn-animate`,children:[x(dn,{text:t("translateFileTooltip"),multiple:!0,position:I,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{d0(D1,!0)},children:x(Rt,{type:"file"})})}),x(dn,{text:t("floatBall.setting"),position:I,containerClass:"btn-animate",children:x("div",{class:`${Da}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Rt,{type:"setting"})})}),x(CO,{ctx:u,tooltipPosition:I,rule:h,active:w})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:_},class:`${Da}-more-buttons btn-animate`,children:x(dn,{text:t("reportTip"),position:I,containerClass:"btn-animate",children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xi,{detail:{type:"webReport"}}))}})})}),x(g4,{onClose:()=>{A(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>zT(T.current.top,500,D)}),x(UT,{visible:F,top:T.current.top,fixedPosition:D,onClose:()=>{R(),A(!1)}})]})}):null}function yO(e){let{t}=oe(),[n,r]=W(!1),a=ka(),[i,o,s,u]=a,l=cu(e.ctx,i),c=Ae(m=>{e.ctx&&o(p=>Oc({...p},m))},[e.ctx,o]),d=Ae(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Rt,{type:"close"})}),x(zd,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function g4(e){let t=n=>{n?.target?.id===L+"-popup-overlay"&&e.onClose()};return e.isSheet?x(qd,{isOpen:e.visible,onClose:e.onClose,children:x(Ud,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:L+"-popup-overlay",class:`${L}-popup-overlay`,children:x("div",{class:`${L}-popup-wrapper`,style:e.getModalStyle(),children:x(Ud,{onClose:e.onClose})})}):null}function xO(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var zT=(e,t,n)=>{let a=xO().height,i={position:"fixed"},o=0;return W4()&&(e=vO.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},vO={position:"right",right:0,top:335};function SO({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=W(!1),{mangaStatus:u}=kT(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=oe();J(()=>{c||On().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),zt(p))})},[c,s]);let m=Ae(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await dt.get(ct,null);if(ft(g)){e.user=g,e.isPro=!0,Jt({method:"toggleTranslateManga"});return}s(!0);return}Jt({method:"toggleTranslateManga"})},[]);return!wd(l)||r||!l?.enable?null:x(Et,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Rt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Rt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Rt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(dn,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xi,{detail:{type:"mangaReport"}}))}})})]}),x(qT,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var TO="float_ball_upgrade_show_count";function CO(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=oe(),o=Wa(n.config),s=Ce(!1),[u,l]=W(null),c=he(()=>cs(n.config),[n]),d=p=>cs(p)?.upgradeShowCountCacheKey||TO;J(()=>{wi(d(n.config),0).then(p=>{l(p)})},[n]);let m=he(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=cs(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return J(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ei(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(dn,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Qm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${Da}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Rt,{type:"upgrade"})})})}):x(dn,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(Qm,"_blank")},children:x(Rt,{type:"upgrade"})})})}async function WT(){try{let e=await qt(),t={url:globalThis.location.href,config:e},n=await Sn(t),r=document.createElement("div");r.id=L+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});wO(a,e,n),document.documentElement.appendChild(r)}catch{}}function wO(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=ke(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);EO(e,[i]),e.appendChild(r),Ua(x(Go,{lang:t.interfaceLanguage,children:x(AO,{ctx:n})}),r)}function EO(e,t){for(let n of t){if(te()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function AO(e){let[t,n]=W(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");J(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Si,u),()=>{globalThis.document.addEventListener(Si,u)}},[r]);let o=globalThis.innerWidth,s=Ve().any&&o<=450;return x(g4,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Wd(e){document.dispatchEvent(new CustomEvent(Si,{detail:e||{}}))}function kO(e,t){for(let n of t){if(te()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Gd(){let e=await vn(),t=await ln(),n={url:globalThis.location.href,config:e},r=await Sn(n),a=await Wp(r,t),i=We(r.url,a?.blockUrls),o=await Yt();if(!a?.enable||i)return WT();let s=document.createElement("div");s.id=L+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return DO(u,e,o,r),document.documentElement.appendChild(s),s}function GT(){let e=document.getElementById(L+"-popup");e&&e.remove(),Gd()}function DO(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=ke(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);kO(e,[o]),e.appendChild(a),Ua(x(Go,{lang:t.interfaceLanguage,children:x(p4,{localConfig:n,ctx:r})}),a)}var f4=!1;async function VT(e){if(!e){let t=await vn(),n={url:globalThis.location.href,config:t};e=await Sn(n)}e.config.debug&&k.setLevel("debug"),e.isTranslateExcludeUrl?k.debug("detect exclude url, do not inject anything."):(f4=!0,Gd().catch(t=>{k.debug("init popup error",t)}))}async function KT(){f4||(f4=!0,Gd().catch(e=>{k.error("init popup error",e)}))}async function YT(e,t){let n,r;if(t){let a=R0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Ga(!1,r)}return{siteUrl:location.href,pluginVersion:Ht(),isMobile:Ve().any,platform:ga(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function QT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await qa(l,"web"),l.json()))}function JT(e,t,n){if(e=="manga")return xS(t,n);if(e=="web")return YT(t,n)}function ZT(e,t,n,r,a,i){if(e=="manga")return vS(t,n,a,i,r);if(e=="web")return QT(t,n,a,i,r)}function Vd(e,t,n,r,a,i,o){let s=De.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; @@ -6294,20 +6294,20 @@ ${t("floatBall.longPress")}`:""]}),x("div",{class:`${Ki}-primary-btn ${Ki}-guide flex: 1;`),p.addEventListener("input",function(){C.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),m.append(p),a.append(m);let g=document.createElement("input");g.type="email",g.id="emailReport",g.size=30,g.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";mt.get(dt,null).then(D=>{D&&(h=D.email,g.value=D.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let D=l(this.value);C.disabled=c(),D?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(v),w.append(S),a.append(w);let C=document.createElement("button");C.className=P+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let D=await ZT(e,t,v.checked);C.uploading=!0;try{$T(C,!0),await XT(e,t,p.value,g.value!==h?g.value:"",v.checked,D),DO(s,r,a,i,o)}catch{LO(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,$T(C,!1)}},i.appendChild(C);let T=document.createElement("div");T.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(T);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function $T(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(P+"-loading-spinner"),e.appendChild(n))}function DO(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let b="";dt.get(ct,null).then(D=>{D&&(b=D.email,g.value=D.email)});let h=document.createElement("label");h.htmlFor=g.id,h.innerText=s("reportInfo.email"),h.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(h),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let D=l(this.value);C.disabled=c(),D?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(v),w.append(S),a.append(w);let C=document.createElement("button");C.className=L+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let D=await JT(e,t,v.checked);C.uploading=!0;try{XT(C,!0),await ZT(e,t,p.value,g.value!==b?g.value:"",v.checked,D),LO(s,r,a,i,o)}catch{PO(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,XT(C,!1)}},i.appendChild(C);let T=document.createElement("div");T.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(T);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function XT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(L+"-loading-spinner"),e.appendChild(n))}function LO(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=P+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function LO(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=L+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function PO(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=P+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Kd(s,e,t,r,a,i,o)},i.append(d)}var ra=null;async function eC(e,{srcUrl:t}){if(!ys(e))return;if(!await Ws(e)){tl("image_right_menu");return}if(!ra){k.error("rightMenu image ele not found",t,ra);return}if(ra.translationStatus!=="translating"){if(ra.hasTranslate){pi(ra);return}if(t!==ra.src)try{let r=new URL(t),a=new URL(ra.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,ra.src,r);return}Aa(e,ra,!0,"image_right_menu")}}function tC(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ra=e.target)})}var nC=0;function sl(e){let t=Date.now();if(t-nC<2e3||(nC=t,PO()))return;let n=`${P}-modal-root`,r=`${P}-modal`,a=document.getElementById(n),i=`${P}-modal-title`,o=`${P}-modal-body`,s=`${P}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,ol)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=ke();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=P+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=P+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,ol)}setTimeout(()=>{MO()},100)}function PO(){let e=document.querySelector(`#${P}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-modal`)?.style.display=="block":!1}function MO(){let e=document.querySelector(`#${P}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function ol(e,t=!1){let n=document.querySelector(`#${P}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function rC(e,t,n="sameLang",r,a,i,o){let s=De.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();Wt({...l,sameLangCheck:!1}),o(i,!0)})}var aC=0;async function iC(e){let t=Date.now();if(t-aC<2e3||(aC=t,RO()))return;let n=`${P}-toast-root`,r=`${P}-toast`,a=document.getElementById(n),i=`${P}-toast-msg`,o=`${P}-toast-content`,s=`${P}-toast-hidden`,u,l,c=()=>{l&&y4(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,y4);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=ke();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=P+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,y4)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{IO()},100),d=setTimeout(c,2500)}function RO(){let e=document.querySelector(`#${P}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-toast`)?.style.display=="flex":!1}function IO(){let e=document.querySelector(`#${P}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-toast`);t&&(t.style.display="flex")}}function y4(e,t=!1){let n=document.querySelector(`#${P}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function x4(e,t,n,r="retry",a,i,o,s,u){let l=De.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=Ze.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${P}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",oC({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(S1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Jl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(E1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)},v4(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=Ze.sanitize(m),p.onclick=()=>{sC(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=Ze.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Wt(g),oC({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=P+"-btn",p.innerHTML+=Ze.sanitize(m),s.appendChild(p)}function oC(e){Kr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Sr,{detail:e});globalThis.document.dispatchEvent(t)}var uC=!1,It={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},cC=[()=>{jn.unbind()}],lC=[...cC],FO=Yn(async()=>{await Ya()},50),BO=Yn(async()=>{await c0()},50),_O=Yn(async()=>{await F9()},50),OO=Yn(async()=>{await I9()},50),dC=Yn(e=>{Jt({method:e,data:{trigger:"userscript_menu"}})},50),S4=!1,NO=Mn(()=>{let e=globalThis.getSelection()?.toString().trim();!S4&&e&&e.length>0?_i({text:e}):_i({})},50),jO=()=>{S4=!0,setTimeout(()=>{S4=!1},100)};It.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(uC)return;uC=!0,te()||A9(),n.addEventListener("securitypolicyviolation",It.handleSecurityPolicyViolation),document.addEventListener(Y+"DocumentMessageUser",fC),document.addEventListener(Y+"DocumentMessageUpdateUser",hC),document.addEventListener(Y+"ChangeSuccessService",bC.bind(null,t)),document.addEventListener(Y+"ChangeService",yC.bind(null,t)),document.addEventListener(fn,It.showErrorByEvent.bind(null,t)),document.addEventListener(_l,It.showToastByEvent.bind(null,t)),document.addEventListener(vi,It.showModal.bind(null,t)),n.addEventListener(Y+"EbookLoaded",It.handleEbookLoaded),n.addEventListener(Z3,It.handleThirdPartyTell.bind(null,t)),n.addEventListener(X3,It.eventUpload.bind(null,t)),n.addEventListener(jl,a=>{Ke()||Jf(a,t)}),n.addEventListener(e1,Fv),n.addEventListener("click",a=>{It.handleClick(a,t)}),document.addEventListener("selectionchange",NO),document.addEventListener("contextmenu",jO),tC(),Ke()&&e.addEventListener("message",It.handleGlobalMessage,!1),te()&&(Ke()||n.addEventListener(Sr,It.handlePopupInit)),Ke()||Za.rootIframe(Kl).handleAsk("throttleRequest",v6)};function ll(e,t){qO(),It.SetupDomListenersForOnce(t,e),te()&&(Ke()||(Zf(e.config),zO(e.config))),Zn()&&iT(e,t),it()&&Zf(e.config)}It.handlePopupInit=e=>{YT()};It.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Fl&&Kr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};It.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){ol(n);return}let r=n.getAttribute(`data-${P}-event`);r&&Fe(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${P}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),mC({method:"retryFailedParagraphs"}),ol(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${P}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}sl(x4.bind(null,t,o,i,s));return}}};async function UO(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Wt(e)}async function HO(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Wt(e)}It.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;iC(rC.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};It.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;sl(x4.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};It.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?sl(Kd.bind(null,"manga",e)):r=="webReport"&&sl(Kd.bind(null,"web",e))};It.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=C4()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")mC({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")d0(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")UO();else if(i.type==="toggleEnableInputTranslation")HO();else if(i.type==="syncAppSetting")pC(i.data);else if(i.type==="translatePage")WO(i.data);else if(i.type==="getAsyncTranslationServiceList")a=wc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=P0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await GO(i.data,o)}catch(s){ul(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await VO(o,i.data)}catch(s){ul(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await l0(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await Rx();else if(i.type==="sharePage")Jf({detail:i.data},r);else if(i.type==="switchTranslationMode")T4(i.data);else if(i.type=="getAsyncAiAssistants")a=await R6();else if(i.type=="addAiAssistantAsync")a=await C0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await C0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await E4(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await w4(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Po("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await ob(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await N9());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await j9());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await sb(i.data));else if(i.type==="openPopup")Gd({...i.data,open:!0});else if(i.type==="closePopup")Gd({...i.data,open:!1});else if(i.type==="togglePopup")Gd({...i.data});else if(i.type==="getPageStatusAsync")a=Ye();else if(i.type==="restorePage")KO();else if(i.type==="getPageLanguageAsync")a=pt();else if(i.type==="showFloatBallGuide")IT();else if(i.type=="getAsyncDetectAndSetLanguage")a=await gC(i.data);else if(i.type=="setFloatBallActive")NT(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Fo(r,s,o,!0)}else dC(i.type);a!=null&&i.id&&ul(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};It.handleEbookLoaded=e=>{setTimeout(()=>{Yd()},10)};It.handleSecurityPolicyViolation=e=>{le.HAS_CSP_ERROR="1"};It.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Fe(n.name,[{name:n.name}],{...e})};function qO(){lC.forEach(e=>{e()}),lC=cC}function zO(e){if(te()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=lc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=De(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:qm,title:De(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:zm,title:De(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Um,title:De(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Hm,title:De(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Um?FO():i.id===Hm?BO():i.id===zm?_O():i.id===qm?OO():dC(i.id)},i.key)}}function mC(e){Kr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Sr,{detail:e});globalThis.document.dispatchEvent(t)}async function pC(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await We(Se(),t)}async function WO(e){let t=await pC(e);Gn(t)}function ul(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function GO({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Qt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function VO(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Qt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof j?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof j?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function KO(){Ye()!=="Original"&&_r()}var Yi={};async function A4(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Be({text:t,minLength:200,pageLangs:[Ct(),"en"]});return rr(n),n}async function xC(e){let t=0,n=0;_n("Translating");let r=pt(),a=t0(),i=[...document.querySelectorAll(".source-text")];if(ko(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");wt(c.node,"id",c.id+""),d&&(Do(d,c.id)?.remove(),d.appendChild(cu(e,c.id,!0)))}),await s(l),await st(0)}}catch(u){throw u}finally{t=0,n=0,_n("Translated")}async function s(u){await Qt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Do(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=Ze.sanitize(`${l.message}`),Yi[m]={ok:!1,sentence:d},SC(u,e,t,n,l)):c&&(g.innerHTML=Ze.sanitize(c.text),Yi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function vC(e){let t=0,n=0;_n("Translating"),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yi),a=[],i=[];for(let o of r){let s=Yi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yi[o],c.appendChild(cu(e,o)),i.push(s.sentence))}}}try{await Qt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Do(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=Ze.sanitize(`${o.message}`),Yi[l]={ok:!1,sentence:u},SC(i,e,t,n,o)):s&&(d.innerHTML=Ze.sanitize(s.text),Yi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,_n("Translated")}}function k4(){_n("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function SC(e,t,n,r,a){if(!(a instanceof j))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(fn,{detail:i}))}var Qd={};async function TC(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Be({text:t,pageLangs:["en"]});return rr(n),n}async function CC(e){_n("Translating"),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Qd),n=[];for(let r of t){let a=Qd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${zl}='${r}']`);o&&o.remove(),n.push(a)}}try{Mu(),await _0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{_n("Translated")}}function wC(e){Object.values(Qd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=Xo(e,t.targetNodes);ni(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),_n("Original")}async function EC(e){_n("Translating");let t=nu(),n=qr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Jo(l,e);let c=l.body;if(!c)continue;zr(l.documentElement,e.state.translationMode);let d=on(e);d.isModifyImage=!1;let m=[];await Ta({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await st(0)}o(a),_n("Translated");function o(u){document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=R0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:F0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await hf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),Qd[p.id]=p)}_0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}var ne=null,Jd={},vs,AC=!1;async function Yd(){_o.clearStrictTicks();let e=await We(Se(),{}),t=await On();if(k.debug("init page ctx",e),Av(e),e.rule.pageType=="subtitleBuilder"){A4();return}if(e.rule.pageType=="ebookBuilder"){TC();return}if(vs||(vs=e.state.translationTheme),e.rule.urlChangeDelay&&await st(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await oN(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let s=Qa(),u=document.createElement("meta");u.name=P+"-options-url",u.content=s;try{document.head?.appendChild?.(u)}catch(l){k.warn("inject options url failed",l)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(u=>{let l=document.createElement("meta");l.name=u,l.content=e.rule.globalMeta[u],document.head?.appendChild?.(l)}),e.rule.initialGlobalAttributes&&lx(document.body,e.rule.initialGlobalAttributes),dN(e),e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let s=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");s&&(s.value="helloworld",s.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),s.dispatchEvent(new Event("change")))}AC||(AC=!0,Ke()&&e.rule.useIframePostMessage&&await Y9());let n=e.sourceLanguage;n==="auto"?n=await kC():rr(n);let r=Ty(e,n);if(r&&(e=await We(Se(),{translationMode:r})),e.rule.isInjectMeta)try{let s=await Po(n,e.targetLanguage),u=document.createElement("meta");u.name=P+"-meta",u.content=Ts(JSON.stringify(s)),document.head?.appendChild?.(u)}catch(s){k.warn("inject meta failed",s)}let a=new URL(e.url);(a.searchParams.get("imt_refresh_rule")==="1"||a.searchParams.get("imt_refresh_rule")==="true")&&await d4(),await cN(e);let o=lN(e);if(!o&&!e.isTranslateExcludeUrl&&(k.debug(`detect page language: ${e.url} ${n}`),ja(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto"||J9(n,e.config.translationLanguagePattern)&&(o=!0,k.debug(`match language pattern ${n}, auto translate`))),e.rule.pageType=="ebookBuilder"&&(o=!1),e.rule.pageType!=="pdfReader"&&qs(t)&&Gh(e),o)ne.state.isAutoTranslate=!0,Gn(ne);else if(k.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(ja(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Jd[e.translationService]||(Jd[e.translationService]=!0,Ke()||$g(e).catch(s=>{k.warn("init translation engine error",s)})))}}async function r4(e){if(Ye()==="Original"){let t={};vs&&(t.translationTheme=vs),ne&&(t={...ne.state,...t});let n=await We(Se(),t);if(e?.trigger=="right_menu"&&Fi(n?.rule)){let r=Bi(n.rule);if(r){Bo(!0,r||Se());return}}await Gn({...ne,sourceProgram:"html"},e)}else(Ye()==="Translated"||Ye()==="Error")&&_r()}async function YO(){let e=Io();ne||(ne=await We(Se(),{})),e=="Original"?MS(ne):(RS(),mr("Original"))}function QO(){e9("enableEditTranslation",!ne?.config.enableEditTranslation);let e=Qc("enableEditTranslation");ne&&(ne.config.enableEditTranslation=e);let t=qu();t&&(t.ctx.config.enableEditTranslation=e),document.querySelectorAll(`font.notranslate.${Lt}`).forEach(n=>{e?n.setAttribute("contenteditable","true"):n.removeAttribute("contenteditable")})}async function JO(){if(ne=await We(Se(),{}),ne.rule.pageType=="ebookBuilder")return CC(ne);if(ne.rule.pageType=="subtitleBuilder")return vC(ne);Iv()}async function a4(e){if(Ye()==="Original"){ne=await We(Se(),{}),vs||(vs=ne.state.translationTheme);let t="mask";ne.state.translationTheme==="opacity"&&(t="opacity"),ne=await We(Se(),{translationTheme:t}),await Gn(ne,e)}else if(Ye()==="Translated"){let t="mask";ne?.state?.translationTheme==="opacity"&&(t="opacity");let n=xy().filter(i=>i.contentDocument?.body).map(i=>i.contentDocument.body),r=[ne.mainFrame,...n],a=ne?.state.translationTheme;for(let i of r){let o=xb(i,oo,!0);a==="mask"||a==="opacity"?o!=="none"?wt(i,oo,"none",!0):wt(i,oo,t,!0):o!=="mask"&&o!=="opacity"?wt(i,oo,t,!0):wt(i,oo,"none",!0)}}}async function kC(){let e=await We(Se(),{});return e.rule.pageType=="subtitleBuilder"?A4():Rv(e)}function ZO(e){Ye()==="Original"?xC(e):k4()}function XO(e){Ye()==="Original"?ud(e):ss()}async function _r(){fu(""),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"restorePage",payload:{}})}));let e=await We(Se(),{});if(e.rule.pageType=="subtitleBuilder"){k4();return}else e.rule.pageType=="ebookBuilder"&&wC(e);ss()}function $O(e){e.config.sameLangCheck&&!(e.rule.detectParagraphLanguage||e.state.isDetectParagraphLanguage)&&pt()==e.targetLanguage&&document.dispatchEvent(new CustomEvent(_l,{detail:{type:"sameLang"}}))}async function Gn(e,t){if(ba("initial"),$O(e),Ye()!=="Original"&&await _r(),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Jd[e.translationService]||(Jd[e.translationService]=!0,Ke()||$g(e).catch(r=>{k.warn("init translation engine error",r)})),e.specialAiAssistant=Fr(e,e.translationService,!0),uN(e,t),e.rule.pageType=="subtitleBuilder"){ZO(e),fu("yes");return}if(e.rule.pageType=="ebookBuilder"){EC(e),fu("yes");return}XO(e),fu("yes")}async function eN(e,t){let n=ne?.translationService;if(Ye()==="Original"||n!=e){ne=await We(Se(),{translationService:e});let r=De(ne.config.interfaceLanguage,`translationServices.${e}`);e.startsWith("custom-ai")&&(r=ne.config.translationServices[e].name);let a=De(ne.config.interfaceLanguage,"tempChangeTransToService",{service:r});fl({text:a}),await Gn(ne,t)}else{_r();let r=await Sn(),a={url:Se(),config:r,state:{}},i=await Tn(a);ne=await We(Se(),{translationService:i.translationService})}}async function tN(e){Ye()==="Original"?await D4(e):(Ye()==="Translated"||Ye()==="Error")&&(ne=await We(Se(),{}),ne.state.translationArea!=="main"?await D4(e):_r())}async function D4(e){ne=await We(Se(),{translationArea:"main"}),await Gn(ne,e)}async function DC(e){ne=await We(Se(),{translationArea:"body"}),await Gn(ne,e)}async function gC(e){let t=[Ct(),"en"],n=await Be({text:e,pageLangs:t});return rr(n),n}async function i4(e){let t=await We(Se(),{}),n=t.state.translationMode=="dual"?"translation":"dual";if(t=await We(Se(),{translationMode:n}),Ye()==="Original"){Gn(t,e);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(n)}async function T4(e){if(ne=await We(Se(),{translationMode:e}),Fe("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ne,sourceLanguage:"unknown"}),Ye()==="Original"){Gn(ne);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function nN(e){if(Ye()==="Original")await DC(e);else if(Ye()==="Translated"||Ye()==="Error"){let t={};ne&&ne.state&&(t=ne.state),ne=await We(Se(),t),ne.state.translationArea!=="body"?(ne.state.translationArea="body",ne=await We(Se(),ne.state),await Gn(ne,e)):_r()}}async function LC(e){ne=await We(Se(),{translationStartMode:"immediate"}),await Gn(ne,e)}async function rN(e){Ye()==="Original"?await LC(e):(Ye()==="Translated"||Ye()==="Error")&&_r()}async function PC(){let e=await We(Se(),{});if(!ze(e.url,e.config.inputStyleBlockUrls)){let n=ke().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;hn(document,n,ql)}e.rule.pageType&&e.rule.pageType!=="html"||e.config.enableInputTranslation&&Kh(e)}function C4(){return ne}async function We(e,t){let n=Object.keys(t);if(ne){let r={url:e,config:ne.config,state:{...ne.state,...t}};ne=await Tn(r)}else{let r=await Sn(),a=t;n.length===0&&(a=void 0),ne=await Tn({url:e,config:r,state:a})}return ne.state&&ne.state.translationService&&(ne.translationService=ne.state.translationService),ne.state&&ne.state.targetLanguage&&(ne.targetLanguage=ne.state.targetLanguage),ne}async function aN(){let e=await Mt()||{},t=e.generalRule||{},n=t["subtitleRule.add"]||{},r=!n.preTranslation;await Wt({...e,generalRule:{...t,"subtitleRule.add":{...n,preTranslation:r}}}),r?fl({text:De(ne.config.interfaceLanguage,"videoSubtitlePreTranslationOn")}):fl({text:De(ne.config.interfaceLanguage,"videoSubtitlePreTranslationOff")}),setTimeout(()=>{window.location.reload()},1e3)}async function qd(){let e=await Sn();Qc("enableEditTranslation")!=null&&(e.enableEditTranslation=Qc("enableEditTranslation"));let t;ne&&ne.state&&(t=ne.state);let n={url:Se(),config:e,state:t},r=await Tn(n);return r.state&&r.state.translationService&&(r.translationService=r.state.translationService),ne=r,Kf(ne),await iN(ne),r}async function iN(e){let t=await On();ll(e,window),qs(t)&&Gh(e),e.config.enableInputTranslation&&Kh(e)}function oN(e,t=3e3){return new Promise((n,r)=>{let a=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,i=setInterval(()=>{e.every(s=>document.querySelector(s)!==null)&&(clearInterval(i),a&&clearTimeout(a),n(null))},50)})}async function fC(e){let t=e.detail,n=Mt();ft(t)&&await vT(t.token,n,Wt),mt.set(dt,t);let r=await mt.get(Ym,!1);mt.set(Ym,!1),document.dispatchEvent(new CustomEvent(Y+"DocumentMessageUserResult",{detail:r?"close":"success"})),mu()}function hC(e){k.debug("update user info",e);let t=e.detail;mt.set(dt,t),mu()}async function bC(e){let t=await Mt();if(t.translationService)return;let n=e.config.translationService,r=await v4(e,n);if(e.translationService!==r){if(!r){Fe("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}],e);return}t.translationService=r,Wt(t),e.translationService=r,Fe("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}],e)}}async function yC(e,t){let n=t.detail;if(!e.rule.allowInnerInvoke)return;let r=n.translateService;if(!r)return;let a=n.provider,i=await Mt();i.translationService=r,a&&i?.translationServices?.[r]?.provider&&(i.translationServices[r].provider=a),i.translationServiceChangedbyUserAt=new Date().toISOString(),Wt(i)}async function v4(e,t,n=!0,r){let a=r||e.rule.detectionServiceOrder||["google","bing","transmart","yandex"];return a.sort((i,o)=>i===t?n?-1:1:o===t?n?1:-1:0),await ox(a,e)}async function sC(e){let t=await Mt();t.translationService=e,await Wt(t);let n=await We(Se(),{});n.translationService=e,await Gn(n)}var L4={interfaceLanguage:"",targetLanguage:"",translationService:"",aiAssistantIds:[],subtitleTranslateService:"",inputTranslationService:"",mouseHoverTranslationService:""};async function w4(e,t){let n=await Mt(),r=!1;return Object.keys(L4).forEach(a=>{let i=t[a];i!=null&&((a==="targetLanguage"||a==="interfaceLanguage")&&(i=$(i)),n[a]=i,r=!0)}),r&&(c4(n),await Wt(n),e=await qd()),E4(e)}function E4(e){let t=e.config,n={};return Object.keys(L4).forEach(r=>{t[r]!=null&&(n[r]=t[r])}),n}function sN(e){We(Se(),e),ul("syncContextState",e),e?.targetLanguage&&_i({targetLanguage:e.targetLanguage})}function uN(e,t){let n={};t&&t.trigger&&(n.trigger=t.trigger),Fe("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Fe("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()});let r=e.config.translationServices?.[e.translationService];r.assistantId&&Fe("assistant_translate_page",[{name:"assistant_translate_page",params:{...n,ai_assistant:r.assistantId,ai_assistant_use:e.specialAiAssistant?.id||"common"}}],{...e,sourceLanguage:pt()})}function lN(e){let t=new URL(e.url).searchParams;return!!e.config.autoTranslateParams?.find(r=>{let a=t.get(r)||"";if(r=="crosearch_translate"){let i=t.get("output_locale");i&&(ne.state.targetLanguage=$(i),ne.targetLanguage=$(i))}return["1","true"].includes(a)})||e.state.isAutoTranslate||e.isTranslateUrl}async function cN(e){let t=Il+"_set_";try{let n=[];new URL(location.href).searchParams.forEach((i,o)=>{o.startsWith(t)&&n.push([o,i])});let a={};for(let[i,o]of n){let s=i.replace(t,"");if(L4[s]==null)return;a[s]=o}if(!Object.keys(a).length)return;await w4(e,a)}catch(n){k.error(n)}}async function dN(e){let t=e.config.arxivRule;if(!t?.matches||!ze(e.url,t.matches))return;let r=document.querySelector(t.injectContainerSelector);if(!r)return;let o=new URL(e.url).pathname.split("/").pop();for(let s of t.detectOrders)try{await K({url:`${s}/`+o,responseType:"HEAD",method:"HEAD"});let u=document.createElement("li");u.innerHTML=`${De(e.config.interfaceLanguage,"viewWithImmersiveTranslate")}`,r.appendChild(u);break}catch{}}function mN(e,{text:t,trigger:n}){let r=document.activeElement;r&&(r.tagName!=="INPUT"&&r.tagName!=="TEXTAREA"&&!r.isContentEditable||$h(e,window,t,n))}function pN(e,{translation_service:t}){Fe("change_translate_service",[{name:"change_translate_service",params:{translation_service:t}}],e)}function gN(e,{key:t,events:n}){Fe(t,n,e)}C9({detectCurrentPageLanguage:kC,ensureSwitchTranslationMode:i4,restorePage:_r,retryFailedParagraphs:JO,switchTranslationMode:T4,toggleTranslateManga:YO,toggleTranslatePage:r4,toggleTranslateTheMainPage:tN,toggleTranslateTheWholePage:nN,toggleTranslationMask:a4,toggleEnableEditTranslation:QO,toggleVideoSubtitlePreTranslation:aN,translatePage:Gn,translatePageWithTranslationService:eN,translateTheMainPage:D4,translateTheWholePage:DC,translateToThePageEndImmediately:LC,toggleTranslateToThePageEndImmediately:rN,updateGlobalContext:qd,getPureGlobalContext:C4,getIsDulSubtitle:zx,updateContextState:sN,inputSelectedTextTranslate:mN,reportTranslateService:pN,popupEventReport:gN,updateFloatBallEnable:VT,translateSelectImage:eC});var fN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return x("div",{style:a,onClick:s=>{s?.target?.id===`${P}-modal-overlay`&&r()},id:`${P}-modal-overlay`,children:x("div",{style:i,children:t})})},MC=fN;function RC(e){let t=Ce(null),[n,r]=W(468),[a,i]=W(!1);if(J(()=>{let s=new URL(Zm(e.trigger,e.interfaceLang)),u=l=>{if(l.origin===s.origin)try{let c=l.data;if(!c)return;let d=JSON.parse(c);d.type==="imtClosePricing"?e.onClose():d.type==="imtPricingResize"?d.height&&r(d.height):d.type==="imtGetUserToken"&&t.current?.contentWindow?.postMessage(JSON.stringify({type:"imtUpdateToken",token:e.ctx.user?.token}),l.origin)}catch{}};return globalThis.addEventListener("message",u),()=>{globalThis.removeEventListener("message",u)}},[t,e.ctx]),J(()=>{e.visible||i(!1)},[e.visible]),!e.visible)return null;let o={padding:0,borderRadius:26,transform:"unset",left:"calc(50% - 370px)",top:`calc(50% - ${n/2}px)`,width:740,height:n,overflow:"hidden"};return globalThis.innerWidth<740&&(o={padding:0,borderRadius:26,transform:"unset",left:16,top:`calc(50% - ${n/2}px)`,width:"calc(100% - 32px)",height:n,overflow:"hidden"}),x(MC,{isOpen:e.visible,closeModal:e.onClose,contentStyles:o,children:[x("iframe",{ref:t,src:Zm(e.trigger,e.interfaceLang),style:{width:"100%",height:"100%"},onLoad:()=>{i(!0)}}),x(hN,{hidden:a})]})}function hN(e){return e.hidden?null:x("div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:x("div",{className:`${P}-loading-spinner`,style:"width: 30px !important; height: 30px !important;"})})}function bN(e){let{showPricingModal:t,trigger:n,setShowPricingModal:r}=NS(e.ctx);return x(Et,{children:[x(yN,{ctx:e.ctx}),x(RC,{ctx:e.ctx,visible:t,trigger:n,interfaceLang:e.ctx.config.interfaceLanguage,onClose:()=>{r(!1)}})]})}function yN({ctx:e}){let{hoveImage:t,hoveImageStyles:n,containerRef:r,activeRef:a,imageStatus:i,handleTranslate:o}=OS(e),{t:s}=oe(),{enable:u,handleCloseConfirm:l}=jS(e),c=he(()=>s(i==="translating"?"imageState.translating":i==="success"?"imageTools.resetImage":"imageTools.translateImage"),[t,i]);return u?x("div",{class:"imt-image-tools notranslate",ref:r,style:n,children:t&&x(Et,{children:[x(dn,{enableMobile:!0,text:c,tipStyle:{left:"unset",right:0,transform:"unset"},position:"top",children:x("div",{class:"imt-image-translate-button",onClick:()=>{o(t)},children:[x(Rt,{type:"logo",className:"logo",style:{width:14,height:14}}),x(Rt,{type:"translated",className:"translated-icon",hidden:i!=="success"})]})}),x(xN,{imgElement:t,setActive:d=>{a.current=d},onCloseConfirm:l})]})}):null}function xN(e){let{t}=oe(),[n,r]=W(!1),[a,i]=W({});J(()=>{let s=document.querySelector("#monica-content-root"),u=()=>{if(!e.imgElement)return i({});let l=e.imgElement.getBoundingClientRect(),c=s?56:16,d=l.right-c-360,m=l.top+l.height-100,p=globalThis.innerHeight-260;i({position:"fixed",left:d+"px",top:Math.min(m,p)+"px"})};return u(),globalThis.addEventListener("scroll",u),()=>{globalThis.removeEventListener("scroll",u)}},[e.imgElement]);let o=Qa()+"#manga";return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"close-button",onClick:()=>{e.setActive(!0),r(!0)},children:x(vN,{})}),x(Wd,{title:t("closeImageTools.title"),visible:n,settingUrl:o,onClose:()=>{e.setActive(!1),r(!1)},style:a,onCloseConfirm:e.onCloseConfirm})]})}function IC(e){if(!ys(e))return null;let n=P+"-image-tools";if(document.getElementById(n))return;let r=[le.IMMERSIVE_TRANSLATE_PICO_CSS,le.IMMERSIVE_TRANSLATE_COMMON_CSS,le.IMMERSIVE_TRANSLATE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_IMAGE_TOOLS_CSS].join(` -`);$o({id:n,parent:document.body,ctx:e,Component:bN,props:{ctx:e},style:r,isInsertMount:!0})}function vN(){return x("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_14556_6069)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.8"})}),x("defs",{children:x("clipPath",{id:"clip0_14556_6069",children:x("rect",{width:"14",height:"14",fill:"white"})})})]})}async function FC(e){if(!e){let n=await Sn();e=await Tn({config:n,url:Se()})}if(e.config.debug?k.setLevel("debug"):k.setLevel("info"),!e.isTranslateExcludeUrl){if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){if(e.rule.isInjectMeta){try{let n=await Po("auto",e.targetLanguage),r=document.createElement("meta");r.name=P+"-meta",r.content=Ts(JSON.stringify(n)),document.head?.appendChild?.(r)}catch(n){k.warn("inject meta failed",n)}if(e.rule.isInjectOptionsUrl){let n=Qa(),r=document.createElement("meta");r.name=P+"-options-url",r.content=n;try{document.head?.appendChild?.(r)}catch(a){k.warn("inject options url failed",a)}}if(e.rule.isInjectVersion){let n=Ht(),r=document.createElement("meta");r.name=P+"-version",r.content=n;try{document.head?.appendChild?.(r)}catch(a){k.warn("inject version failed",a)}}}}else await Yd();Ke()||await KT().catch(n=>{k.error(`init popup page error: ${n}`)}),Ke()||hT()}await PC(),IC(e)}var cl={capture:!0,once:!0,passive:!0},OC=()=>document.readyState==="interactive"||document.readyState==="complete",SN=e=>document.readyState===e,dl=(e,t)=>SN(e)||OC()?(t(e),!0):!1,TN=()=>new Promise(e=>{dl("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},cl)}),CN=()=>new Promise(e=>{dl("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},cl)}),wN=()=>new Promise(e=>{dl("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},cl)}),BC=()=>new Promise(e=>{dl("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},cl)}),_C=()=>new Promise(e=>{dl("load",e)||window.addEventListener("load",()=>{e("load")},cl)}),NC={};Object.defineProperties(NC,{state:{get:function(){return document.readyState}},loading:{get:function(){return TN()}},interactive:{get:function(){return CN()}},complete:{get:function(){return wN()}},window:{get:function(){return _C()}},load:{get:function(){return _C()}},domready:{get:function(){return BC()}},dom:{get:function(){return BC()}},ready:{get:function(){return OC()}}});var jC=NC;var UC={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function EN(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function AN(e){if(typeof e!="function")throw new Error(UC.NOT_FUNCTION)}var P4=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:r=!1,verbose:a=!1,backoffFactor:i=1,backoffMaxInterval:o,message:s=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=r,this._isWaiting=!1,this._isResolved=!1,this._verbose=a,this._userMessage=s,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=i,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),AN(t),this._executeFn=EN(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${UC.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=L+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Vd(s,e,t,r,a,i,o)},i.append(d)}var ta=null;async function $T(e,{srcUrl:t}){if(!ys(e))return;if(!await zs(e)){el("image_right_menu");return}if(!ta){k.error("rightMenu image ele not found",t,ta);return}if(ta.translationStatus!=="translating"){if(ta.hasTranslate){mi(ta);return}if(t!==ta.src)try{let r=new URL(t),a=new URL(ta.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,ta.src,r);return}Ea(e,ta,!0,"image_right_menu")}}function eC(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ta=e.target)})}var tC=0;function ol(e){let t=Date.now();if(t-tC<2e3||(tC=t,MO()))return;let n=`${L}-modal-root`,r=`${L}-modal`,a=document.getElementById(n),i=`${L}-modal-title`,o=`${L}-modal-body`,s=`${L}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,il)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${L}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=ke();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=L+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=L+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let b=document.createElement("div");b.className=o+" notranslate",m.appendChild(b);let h=document.createElement("div");h.className=s,m.appendChild(h),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,b,h,il)}setTimeout(()=>{RO()},100)}function MO(){let e=document.querySelector(`#${L}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${L}-modal`)?.style.display=="block":!1}function RO(){let e=document.querySelector(`#${L}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-modal`);t&&(t.style.display="block")}}function il(e,t=!1){let n=document.querySelector(`#${L}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${L}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function nC(e,t,n="sameLang",r,a,i,o){let s=De.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();Wt({...l,sameLangCheck:!1}),o(i,!0)})}var rC=0;async function aC(e){let t=Date.now();if(t-rC<2e3||(rC=t,IO()))return;let n=`${L}-toast-root`,r=`${L}-toast`,a=document.getElementById(n),i=`${L}-toast-msg`,o=`${L}-toast-content`,s=`${L}-toast-hidden`,u,l,c=()=>{l&&h4(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,h4);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${L}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),h=document.createElement("style"),f=ke();h.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(h),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),b.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=L+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},b.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,h4)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{FO()},100),d=setTimeout(c,2500)}function IO(){let e=document.querySelector(`#${L}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${L}-toast`)?.style.display=="flex":!1}function FO(){let e=document.querySelector(`#${L}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-toast`);t&&(t.style.display="flex")}}function h4(e,t=!1){let n=document.querySelector(`#${L}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${L}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function b4(e,t,n,r="retry",a,i,o,s,u){let l=De.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=Ze.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${L}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",iC({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(x1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Ql)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(C1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)},y4(e,e.config.translationService,!1,g).then(b=>{b?(m=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=Ze.sanitize(m),p.onclick=()=>{oC(b),u(p,!0)}):(m=l("goSettings"),p.innerHTML=Ze.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Wt(g),iC({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=L+"-btn",p.innerHTML+=Ze.sanitize(m),s.appendChild(p)}function iC(e){Vr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Sr,{detail:e});globalThis.document.dispatchEvent(t)}var sC=!1,It={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},lC=[()=>{jn.unbind()}],uC=[...lC],BO=Yn(async()=>{await Ka()},50),_O=Yn(async()=>{await l0()},50),OO=Yn(async()=>{await R9()},50),NO=Yn(async()=>{await M9()},50),cC=Yn(e=>{Jt({method:e,data:{trigger:"userscript_menu"}})},50),x4=!1,jO=Pn(()=>{let e=globalThis.getSelection()?.toString().trim();!x4&&e&&e.length>0?Bi({text:e}):Bi({})},50),UO=()=>{x4=!0,setTimeout(()=>{x4=!1},100)};It.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(sC)return;sC=!0,te()||w9(),n.addEventListener("securitypolicyviolation",It.handleSecurityPolicyViolation),document.addEventListener(Y+"DocumentMessageUser",gC),document.addEventListener(Y+"DocumentMessageUpdateUser",fC),document.addEventListener(Y+"ChangeSuccessService",hC.bind(null,t)),document.addEventListener(Y+"ChangeService",bC.bind(null,t)),document.addEventListener(Un,It.showErrorByEvent.bind(null,t)),document.addEventListener(Bl,It.showToastByEvent.bind(null,t)),document.addEventListener(xi,It.showModal.bind(null,t)),n.addEventListener(Y+"EbookLoaded",It.handleEbookLoaded),n.addEventListener(Q3,It.handleThirdPartyTell.bind(null,t)),n.addEventListener(J3,It.eventUpload.bind(null,t)),n.addEventListener(Nl,a=>{Ke()||Jf(a,t)}),n.addEventListener(X3,Rv),n.addEventListener("click",a=>{It.handleClick(a,t)}),document.addEventListener("selectionchange",jO),document.addEventListener("contextmenu",UO),eC(),Ke()&&e.addEventListener("message",It.handleGlobalMessage,!1),te()&&(Ke()||n.addEventListener(Sr,It.handlePopupInit)),Ke()||Ja.rootIframe(Vl).handleAsk("throttleRequest",y6)};function ul(e,t){zO(),It.SetupDomListenersForOnce(t,e),te()&&(Ke()||(Zf(e.config),WO(e.config))),Zn()&&aT(e,t),it()&&Zf(e.config)}It.handlePopupInit=e=>{KT()};It.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Il&&Vr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};It.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){il(n);return}let r=n.getAttribute(`data-${L}-event`);r&&Ie(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${L}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),dC({method:"retryFailedParagraphs"}),il(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${L}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}ol(b4.bind(null,t,o,i,s));return}}};async function HO(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Wt(e)}async function qO(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Wt(e)}It.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;aC(nC.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};It.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;ol(b4.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};It.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?ol(Vd.bind(null,"manga",e)):r=="webReport"&&ol(Vd.bind(null,"web",e))};It.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=S4()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")dC({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")c0(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")HO();else if(i.type==="toggleEnableInputTranslation")qO();else if(i.type==="syncAppSetting")mC(i.data);else if(i.type==="translatePage")GO(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Cc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=L0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await VO(i.data,o)}catch(s){sl(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await KO(o,i.data)}catch(s){sl(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await u0(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await Px();else if(i.type==="sharePage")Jf({detail:i.data},r);else if(i.type==="switchTranslationMode")v4(i.data);else if(i.type=="getAsyncAiAssistants")a=await P6();else if(i.type=="addAiAssistantAsync")a=await T0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await T0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await C4(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await T4(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Po("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await ab(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await _9());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await O9());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await ib(i.data));else if(i.type==="openPopup")Wd({...i.data,open:!0});else if(i.type==="closePopup")Wd({...i.data,open:!1});else if(i.type==="togglePopup")Wd({...i.data});else if(i.type==="getPageStatusAsync")a=Ye();else if(i.type==="restorePage")YO();else if(i.type==="getPageLanguageAsync")a=pt();else if(i.type==="showFloatBallGuide")RT();else if(i.type=="getAsyncDetectAndSetLanguage")a=await pC(i.data);else if(i.type=="setFloatBallActive")OT(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Fo(r,s,o,!0)}else cC(i.type);a!=null&&i.id&&sl(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};It.handleEbookLoaded=e=>{setTimeout(()=>{Kd()},10)};It.handleSecurityPolicyViolation=e=>{le.HAS_CSP_ERROR="1"};It.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ie(n.name,[{name:n.name}],{...e})};function zO(){uC.forEach(e=>{e()}),uC=lC}function WO(e){if(te()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=uc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=De(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Hm,title:De(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:qm,title:De(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:jm,title:De(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Um,title:De(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===jm?BO():i.id===Um?_O():i.id===qm?OO():i.id===Hm?NO():cC(i.id)},i.key)}}function dC(e){Vr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Sr,{detail:e});globalThis.document.dispatchEvent(t)}async function mC(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await He(ve(),t)}async function GO(e){let t=await mC(e);Gn(t)}function sl(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function VO({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Qt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function KO(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Qt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof j?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof j?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function YO(){Ye()!=="Original"&&Br()}var Yi={};async function w4(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ne({text:t,minLength:200,pageLangs:[Ct(),"en"]});return rr(n),n}async function yC(e){let t=0,n=0;_n("Translating");let r=pt(),a=e0(),i=[...document.querySelectorAll(".source-text")];if(ko(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");wt(c.node,"id",c.id+""),d&&(Do(d,c.id)?.remove(),d.appendChild(lu(e,c.id,!0)))}),await s(l),await ot(0)}}catch(u){throw u}finally{t=0,n=0,_n("Translated")}async function s(u){await Qt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Do(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=Ze.sanitize(`${l.message}`),Yi[m]={ok:!1,sentence:d},vC(u,e,t,n,l)):c&&(g.innerHTML=Ze.sanitize(c.text),Yi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function xC(e){let t=0,n=0;_n("Translating"),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yi),a=[],i=[];for(let o of r){let s=Yi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yi[o],c.appendChild(lu(e,o)),i.push(s.sentence))}}}try{await Qt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Do(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=Ze.sanitize(`${o.message}`),Yi[l]={ok:!1,sentence:u},vC(i,e,t,n,o)):s&&(d.innerHTML=Ze.sanitize(s.text),Yi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,_n("Translated")}}function E4(){_n("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function vC(e,t,n,r,a){if(!(a instanceof j))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(Un,{detail:i}))}var Yd={};async function SC(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ne({text:t,pageLangs:["en"]});return rr(n),n}async function TC(e){_n("Translating"),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Yd),n=[];for(let r of t){let a=Yd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${ql}='${r}']`);o&&o.remove(),n.push(a)}}try{Pu(),await B0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{_n("Translated")}}function CC(e){Object.values(Yd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=Xo(e,t.targetNodes);ti(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),_n("Original")}async function wC(e){_n("Translating");let t=tu(),n=Hr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Jo(l,e);let c=l.body;if(!c)continue;qr(l.documentElement,e.state.translationMode);let d=on(e);d.isModifyImage=!1;let m=[];await Sa({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await ot(0)}o(a),_n("Translated");function o(u){document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=M0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:I0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await hf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),Yd[p.id]=p)}B0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}var ne=null,Qd={},vs,EC=!1;async function Kd(){_o.clearStrictTicks();let e=await He(ve(),{}),t=await On();if(k.debug("init page ctx",e),wv(e),e.rule.pageType=="subtitleBuilder"){w4();return}if(e.rule.pageType=="ebookBuilder"){SC();return}if(vs||(vs=e.state.translationTheme),e.rule.urlChangeDelay&&await ot(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await sN(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let s=Ya(),u=document.createElement("meta");u.name=L+"-options-url",u.content=s;try{document.head?.appendChild?.(u)}catch(l){k.warn("inject options url failed",l)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(u=>{let l=document.createElement("meta");l.name=u,l.content=e.rule.globalMeta[u],document.head?.appendChild?.(l)}),e.rule.initialGlobalAttributes&&sx(document.body,e.rule.initialGlobalAttributes),mN(e),e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let s=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");s&&(s.value="helloworld",s.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),s.dispatchEvent(new Event("change")))}EC||(EC=!0,Ke()&&e.rule.useIframePostMessage&&await V9());let n=e.sourceLanguage;n==="auto"?n=await AC():rr(n);let r=vy(e,n);if(r&&(e=await He(ve(),{translationMode:r})),e.rule.isInjectMeta)try{let s=await Po(n,e.targetLanguage),u=document.createElement("meta");u.name=L+"-meta",u.content=Ts(JSON.stringify(s)),document.head?.appendChild?.(u)}catch(s){k.warn("inject meta failed",s)}let a=new URL(e.url);(a.searchParams.get("imt_refresh_rule")==="1"||a.searchParams.get("imt_refresh_rule")==="true")&&await l4(),await dN(e);let o=cN(e);if(!o&&!e.isTranslateExcludeUrl&&(k.debug(`detect page language: ${e.url} ${n}`),Na(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto"||Y9(n,e.config.translationLanguagePattern)&&(o=!0,k.debug(`match language pattern ${n}, auto translate`))),e.rule.pageType=="ebookBuilder"&&(o=!1),e.rule.pageType!=="pdfReader"&&Hs(t)&&Gh(e),o)ne.state.isAutoTranslate=!0,Gn(ne);else if(k.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Na(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Qd[e.translationService]||(Qd[e.translationService]=!0,Ke()||$g(e).catch(s=>{k.warn("init translation engine error",s)})))}}async function t4(e){if(Ye()==="Original"){let t={};vs&&(t.translationTheme=vs),ne&&(t={...ne.state,...t});let n=await He(ve(),t);if(e?.trigger=="right_menu"&&Ii(n?.rule)){let r=Fi(n.rule);if(r){Bo(!0,r||ve());return}}await Gn({...ne,sourceProgram:"html"},e)}else(Ye()==="Translated"||Ye()==="Error")&&Br()}async function QO(){let e=Io();ne||(ne=await He(ve(),{})),e=="Original"?LS(ne):(PS(),mr("Original"))}function JO(){Xy("enableEditTranslation",!ne?.config.enableEditTranslation);let e=Yc("enableEditTranslation");ne&&(ne.config.enableEditTranslation=e);let t=Hu();t&&(t.ctx.config.enableEditTranslation=e),document.querySelectorAll(`font.notranslate.${Lt}`).forEach(n=>{e?n.setAttribute("contenteditable","true"):n.removeAttribute("contenteditable")})}async function ZO(){if(ne=await He(ve(),{}),ne.rule.pageType=="ebookBuilder")return TC(ne);if(ne.rule.pageType=="subtitleBuilder")return xC(ne);Mv()}async function n4(e){if(Ye()==="Original"){ne=await He(ve(),{}),vs||(vs=ne.state.translationTheme);let t="mask";ne.state.translationTheme==="opacity"&&(t="opacity"),ne=await He(ve(),{translationTheme:t}),await Gn(ne,e)}else if(Ye()==="Translated"){let t="mask";ne?.state?.translationTheme==="opacity"&&(t="opacity");let n=by().filter(i=>i.contentDocument?.body).map(i=>i.contentDocument.body),r=[ne.mainFrame,...n],a=ne?.state.translationTheme;for(let i of r){let o=bb(i,oo,!0);a==="mask"||a==="opacity"?o!=="none"?wt(i,oo,"none",!0):wt(i,oo,t,!0):o!=="mask"&&o!=="opacity"?wt(i,oo,t,!0):wt(i,oo,"none",!0)}}}async function AC(){let e=await He(ve(),{});return e.rule.pageType=="subtitleBuilder"?w4():Pv(e)}function XO(e){Ye()==="Original"?yC(e):E4()}function $O(e){Ye()==="Original"?sd(e):ss()}async function Br(){gu(""),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"restorePage",payload:{}})}));let e=await He(ve(),{});if(e.rule.pageType=="subtitleBuilder"){E4();return}else e.rule.pageType=="ebookBuilder"&&CC(e);ss()}function eN(e){e.config.sameLangCheck&&!(e.rule.detectParagraphLanguage||e.state.isDetectParagraphLanguage)&&pt()==e.targetLanguage&&document.dispatchEvent(new CustomEvent(Bl,{detail:{type:"sameLang"}}))}async function Gn(e,t){if(fa("initial"),eN(e),Ye()!=="Original"&&await Br(),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Qd[e.translationService]||(Qd[e.translationService]=!0,Ke()||$g(e).catch(r=>{k.warn("init translation engine error",r)})),e.specialAiAssistant=ya(e,e.translationService,!0),lN(e,t),e.rule.pageType=="subtitleBuilder"){XO(e),gu("yes");return}if(e.rule.pageType=="ebookBuilder"){wC(e),gu("yes");return}$O(e),gu("yes")}async function tN(e,t){let n=ne?.translationService;if(Ye()==="Original"||n!=e){ne=await He(ve(),{translationService:e});let r=De(ne.config.interfaceLanguage,`translationServices.${e}`);e.startsWith("custom-ai")&&(r=ne.config.translationServices[e].name);let a=De(ne.config.interfaceLanguage,"tempChangeTransToService",{service:r});gl({text:a}),await Gn(ne,t)}else{Br();let r=await vn(),a={url:ve(),config:r,state:{}},i=await Sn(a);ne=await He(ve(),{translationService:i.translationService})}}async function nN(e){Ye()==="Original"?await A4(e):(Ye()==="Translated"||Ye()==="Error")&&(ne=await He(ve(),{}),ne.state.translationArea!=="main"?await A4(e):Br())}async function A4(e){ne=await He(ve(),{translationArea:"main"}),await Gn(ne,e)}async function kC(e){ne=await He(ve(),{translationArea:"body"}),await Gn(ne,e)}async function pC(e){let t=[Ct(),"en"],n=await Ne({text:e,pageLangs:t});return rr(n),n}async function r4(e){let t=await He(ve(),{}),n=t.state.translationMode=="dual"?"translation":"dual";if(t=await He(ve(),{translationMode:n}),Ye()==="Original"){Gn(t,e);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(n)}async function v4(e){if(ne=await He(ve(),{translationMode:e}),Ie("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ne,sourceLanguage:"unknown"}),Ye()==="Original"){Gn(ne);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function rN(e){if(Ye()==="Original")await kC(e);else if(Ye()==="Translated"||Ye()==="Error"){let t={};ne&&ne.state&&(t=ne.state),ne=await He(ve(),t),ne.state.translationArea!=="body"?(ne.state.translationArea="body",ne=await He(ve(),ne.state),await Gn(ne,e)):Br()}}async function DC(e){ne=await He(ve(),{translationStartMode:"immediate"}),await Gn(ne,e)}async function aN(e){Ye()==="Original"?await DC(e):(Ye()==="Translated"||Ye()==="Error")&&Br()}async function LC(){let e=await He(ve(),{});if(!We(e.url,e.config.inputStyleBlockUrls)){let n=ke().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;fn(document,n,Hl)}e.rule.pageType&&e.rule.pageType!=="html"||e.config.enableInputTranslation&&Kh(e)}function S4(){return ne}async function He(e,t){let n=Object.keys(t);if(ne){let r={url:e,config:ne.config,state:{...ne.state,...t}};ne=await Sn(r)}else{let r=await vn(),a=t;n.length===0&&(a=void 0),ne=await Sn({url:e,config:r,state:a})}return ne.state&&ne.state.translationService&&(ne.translationService=ne.state.translationService),ne.state&&ne.state.targetLanguage&&(ne.targetLanguage=ne.state.targetLanguage),ne}async function iN(){let e=await Mt()||{},t=e.generalRule||{},n=t["subtitleRule.add"]||{},r=!n.preTranslation;await Wt({...e,generalRule:{...t,"subtitleRule.add":{...n,preTranslation:r}}}),r?gl({text:De(ne.config.interfaceLanguage,"videoSubtitlePreTranslationOn")}):gl({text:De(ne.config.interfaceLanguage,"videoSubtitlePreTranslationOff")}),setTimeout(()=>{window.location.reload()},1e3)}async function Hd(){let e=await vn();Yc("enableEditTranslation")!=null&&(e.enableEditTranslation=Yc("enableEditTranslation"));let t;ne&&ne.state&&(t=ne.state);let n={url:ve(),config:e,state:t},r=await Sn(n);return r.state&&r.state.translationService&&(r.translationService=r.state.translationService),ne=r,Kf(ne),await oN(ne),r}async function oN(e){let t=await On();ul(e,window),Hs(t)&&Gh(e),e.config.enableInputTranslation&&Kh(e)}function sN(e,t=3e3){return new Promise((n,r)=>{let a=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,i=setInterval(()=>{e.every(s=>document.querySelector(s)!==null)&&(clearInterval(i),a&&clearTimeout(a),n(null))},50)})}async function gC(e){let t=e.detail,n=Mt();ft(t)&&await xT(t.token,n,Wt),dt.set(ct,t);let r=await dt.get(Ym,!1);dt.set(Ym,!1),document.dispatchEvent(new CustomEvent(Y+"DocumentMessageUserResult",{detail:r?"close":"success"})),du()}function fC(e){k.debug("update user info",e);let t=e.detail;dt.set(ct,t),du()}async function hC(e){let t=await Mt();if(t.translationService)return;let n=e.config.translationService,r=await y4(e,n);if(e.translationService!==r){if(!r){Ie("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}],e);return}t.translationService=r,Wt(t),e.translationService=r,Ie("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}],e)}}async function bC(e,t){let n=t.detail;if(!e.rule.allowInnerInvoke)return;let r=n.translateService;if(!r)return;let a=n.provider,i=await Mt();i.translationService=r,a&&i?.translationServices?.[r]?.provider&&(i.translationServices[r].provider=a),i.translationServiceChangedbyUserAt=new Date().toISOString(),Wt(i)}async function y4(e,t,n=!0,r){let a=r||e.rule.detectionServiceOrder||["google","bing","transmart","yandex"];return a.sort((i,o)=>i===t?n?-1:1:o===t?n?1:-1:0),await ax(a,e)}async function oC(e){let t=await Mt();t.translationService=e,await Wt(t);let n=await He(ve(),{});n.translationService=e,await Gn(n)}var k4={interfaceLanguage:"",targetLanguage:"",translationService:"",aiAssistantIds:[],subtitleTranslateService:"",inputTranslationService:"",mouseHoverTranslationService:""};async function T4(e,t){let n=await Mt(),r=!1;return Object.keys(k4).forEach(a=>{let i=t[a];i!=null&&((a==="targetLanguage"||a==="interfaceLanguage")&&(i=$(i)),n[a]=i,r=!0)}),r&&(u4(n),await Wt(n),e=await Hd()),C4(e)}function C4(e){let t=e.config,n={};return Object.keys(k4).forEach(r=>{t[r]!=null&&(n[r]=t[r])}),n}function uN(e){He(ve(),e),sl("syncContextState",e),e?.targetLanguage&&Bi({targetLanguage:e.targetLanguage})}function lN(e,t){let n={};t&&t.trigger&&(n.trigger=t.trigger),Ie("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Ie("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()});let r=e.config.translationServices?.[e.translationService];r.assistantId&&Ie("assistant_translate_page",[{name:"assistant_translate_page",params:{...n,ai_assistant:r.assistantId,ai_assistant_use:e.specialAiAssistant?.id||"common"}}],{...e,sourceLanguage:pt()})}function cN(e){let t=new URL(e.url).searchParams;return!!e.config.autoTranslateParams?.find(r=>{let a=t.get(r)||"";if(r=="crosearch_translate"){let i=t.get("output_locale");i&&(ne.state.targetLanguage=$(i),ne.targetLanguage=$(i))}return["1","true"].includes(a)})||e.state.isAutoTranslate||e.isTranslateUrl}async function dN(e){let t=Rl+"_set_";try{let n=[];new URL(location.href).searchParams.forEach((i,o)=>{o.startsWith(t)&&n.push([o,i])});let a={};for(let[i,o]of n){let s=i.replace(t,"");if(k4[s]==null)return;a[s]=o}if(!Object.keys(a).length)return;await T4(e,a)}catch(n){k.error(n)}}async function mN(e){let t=e.config.arxivRule;if(!t?.matches||!We(e.url,t.matches))return;let r=document.querySelector(t.injectContainerSelector);if(!r)return;let o=new URL(e.url).pathname.split("/").pop();for(let s of t.detectOrders)try{await K({url:`${s}/`+o,responseType:"HEAD",method:"HEAD"});let u=document.createElement("li");u.innerHTML=`${De(e.config.interfaceLanguage,"viewWithImmersiveTranslate")}`,r.appendChild(u);break}catch{}}function pN(e,{text:t,trigger:n}){let r=document.activeElement;r&&(r.tagName!=="INPUT"&&r.tagName!=="TEXTAREA"&&!r.isContentEditable||Zh(e,window,t,n))}function gN(e,{translation_service:t}){Ie("change_translate_service",[{name:"change_translate_service",params:{translation_service:t}}],e)}function fN(e,{key:t,events:n}){Ie(t,n,e)}S9({detectCurrentPageLanguage:AC,ensureSwitchTranslationMode:r4,restorePage:Br,retryFailedParagraphs:ZO,switchTranslationMode:v4,toggleTranslateManga:QO,toggleTranslatePage:t4,toggleTranslateTheMainPage:nN,toggleTranslateTheWholePage:rN,toggleTranslationMask:n4,toggleEnableEditTranslation:JO,toggleVideoSubtitlePreTranslation:iN,translatePage:Gn,translatePageWithTranslationService:tN,translateTheMainPage:A4,translateTheWholePage:kC,translateToThePageEndImmediately:DC,toggleTranslateToThePageEndImmediately:aN,updateGlobalContext:Hd,getPureGlobalContext:S4,getIsDulSubtitle:Hx,updateContextState:uN,inputSelectedTextTranslate:pN,reportTranslateService:gN,popupEventReport:fN,updateFloatBallEnable:GT,translateSelectImage:$T});var hN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return x("div",{style:a,onClick:s=>{s?.target?.id===`${L}-modal-overlay`&&r()},id:`${L}-modal-overlay`,children:x("div",{style:i,children:t})})},PC=hN;function MC(e){let t=Ce(null),[n,r]=W(468),[a,i]=W(!1);if(J(()=>{let s=new URL(Zm(e.trigger,e.interfaceLang)),u=l=>{if(l.origin===s.origin)try{let c=l.data;if(!c)return;let d=JSON.parse(c);d.type==="imtClosePricing"?e.onClose():d.type==="imtPricingResize"?d.height&&r(d.height):d.type==="imtGetUserToken"&&t.current?.contentWindow?.postMessage(JSON.stringify({type:"imtUpdateToken",token:e.ctx.user?.token}),l.origin)}catch{}};return globalThis.addEventListener("message",u),()=>{globalThis.removeEventListener("message",u)}},[t,e.ctx]),J(()=>{e.visible||i(!1)},[e.visible]),!e.visible)return null;let o={padding:0,borderRadius:26,transform:"unset",left:"calc(50% - 370px)",top:`calc(50% - ${n/2}px)`,width:740,height:n,overflow:"hidden"};return globalThis.innerWidth<740&&(o={padding:0,borderRadius:26,transform:"unset",left:16,top:`calc(50% - ${n/2}px)`,width:"calc(100% - 32px)",height:n,overflow:"hidden"}),x(PC,{isOpen:e.visible,closeModal:e.onClose,contentStyles:o,children:[x("iframe",{ref:t,src:Zm(e.trigger,e.interfaceLang),style:{width:"100%",height:"100%"},onLoad:()=>{i(!0)}}),x(bN,{hidden:a})]})}function bN(e){return e.hidden?null:x("div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:x("div",{className:`${L}-loading-spinner`,style:"width: 30px !important; height: 30px !important;"})})}function yN(e){let{showPricingModal:t,trigger:n,setShowPricingModal:r}=_S(e.ctx);return x(Et,{children:[x(xN,{ctx:e.ctx}),x(MC,{ctx:e.ctx,visible:t,trigger:n,interfaceLang:e.ctx.config.interfaceLanguage,onClose:()=>{r(!1)}})]})}function xN({ctx:e}){let{hoveImage:t,hoveImageStyles:n,containerRef:r,activeRef:a,imageStatus:i,handleTranslate:o}=BS(e),{t:s}=oe(),{enable:u,handleCloseConfirm:l}=OS(e),c=he(()=>s(i==="translating"?"imageState.translating":i==="success"?"imageTools.resetImage":"imageTools.translateImage"),[t,i]);return u?x("div",{class:"imt-image-tools notranslate",ref:r,style:n,children:t&&x(Et,{children:[x(dn,{enableMobile:!0,text:c,tipStyle:{left:"unset",right:0,transform:"unset"},position:"top",children:x("div",{class:"imt-image-translate-button",onClick:()=>{o(t)},children:[x(Rt,{type:"logo",className:"logo",style:{width:14,height:14}}),x(Rt,{type:"translated",className:"translated-icon",hidden:i!=="success"})]})}),x(vN,{imgElement:t,setActive:d=>{a.current=d},onCloseConfirm:l})]})}):null}function vN(e){let{t}=oe(),[n,r]=W(!1),[a,i]=W({});J(()=>{let s=document.querySelector("#monica-content-root"),u=()=>{if(!e.imgElement)return i({});let l=e.imgElement.getBoundingClientRect(),c=s?56:16,d=l.right-c-360,m=l.top+l.height-100,p=globalThis.innerHeight-260;i({position:"fixed",left:d+"px",top:Math.min(m,p)+"px"})};return u(),globalThis.addEventListener("scroll",u),()=>{globalThis.removeEventListener("scroll",u)}},[e.imgElement]);let o=Ya()+"#manga";return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"close-button",onClick:()=>{e.setActive(!0),r(!0)},children:x(SN,{})}),x(zd,{title:t("closeImageTools.title"),visible:n,settingUrl:o,onClose:()=>{e.setActive(!1),r(!1)},style:a,onCloseConfirm:e.onCloseConfirm})]})}function RC(e){if(!ys(e))return null;let n=L+"-image-tools";if(document.getElementById(n))return;let r=[le.IMMERSIVE_TRANSLATE_PICO_CSS,le.IMMERSIVE_TRANSLATE_COMMON_CSS,le.IMMERSIVE_TRANSLATE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_IMAGE_TOOLS_CSS].join(` +`);$o({id:n,parent:document.body,ctx:e,Component:yN,props:{ctx:e},style:r,isInsertMount:!0})}function SN(){return x("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_14556_6069)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.8"})}),x("defs",{children:x("clipPath",{id:"clip0_14556_6069",children:x("rect",{width:"14",height:"14",fill:"white"})})})]})}async function IC(e){if(!e){let n=await vn();e=await Sn({config:n,url:ve()})}if(e.config.debug?k.setLevel("debug"):k.setLevel("info"),!e.isTranslateExcludeUrl){if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){if(e.rule.isInjectMeta){try{let n=await Po("auto",e.targetLanguage),r=document.createElement("meta");r.name=L+"-meta",r.content=Ts(JSON.stringify(n)),document.head?.appendChild?.(r)}catch(n){k.warn("inject meta failed",n)}if(e.rule.isInjectOptionsUrl){let n=Ya(),r=document.createElement("meta");r.name=L+"-options-url",r.content=n;try{document.head?.appendChild?.(r)}catch(a){k.warn("inject options url failed",a)}}if(e.rule.isInjectVersion){let n=Ht(),r=document.createElement("meta");r.name=L+"-version",r.content=n;try{document.head?.appendChild?.(r)}catch(a){k.warn("inject version failed",a)}}}}else await Kd();Ke()||await VT().catch(n=>{k.error(`init popup page error: ${n}`)}),Ke()||fT()}await LC(),RC(e)}var ll={capture:!0,once:!0,passive:!0},_C=()=>document.readyState==="interactive"||document.readyState==="complete",TN=e=>document.readyState===e,cl=(e,t)=>TN(e)||_C()?(t(e),!0):!1,CN=()=>new Promise(e=>{cl("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},ll)}),wN=()=>new Promise(e=>{cl("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},ll)}),EN=()=>new Promise(e=>{cl("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},ll)}),FC=()=>new Promise(e=>{cl("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},ll)}),BC=()=>new Promise(e=>{cl("load",e)||window.addEventListener("load",()=>{e("load")},ll)}),OC={};Object.defineProperties(OC,{state:{get:function(){return document.readyState}},loading:{get:function(){return CN()}},interactive:{get:function(){return wN()}},complete:{get:function(){return EN()}},window:{get:function(){return BC()}},load:{get:function(){return BC()}},domready:{get:function(){return FC()}},dom:{get:function(){return FC()}},ready:{get:function(){return _C()}}});var NC=OC;var jC={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function AN(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function kN(e){if(typeof e!="function")throw new Error(jC.NOT_FUNCTION)}var D4=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:r=!1,verbose:a=!1,backoffFactor:i=1,backoffMaxInterval:o,message:s=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=r,this._isWaiting=!1,this._isResolved=!1,this._verbose=a,this._userMessage=s,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=i,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),kN(t),this._executeFn=AN(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${jC.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} ${this._lastError.message}`;let n=this.originalStacktraceError.stack;n&&(this._lastError.stack+=n.substring(n.indexOf(` -`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},HC=(e,t)=>new P4(t).execute(e);async function qC(e){try{let t=e.config.domReadyDetectTimeout;return await HC(()=>{let r=e.mainFrame.innerText||"";if(yo(r,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:t!==void 0?t:3e3}),!0}catch(t){if(Ke())throw t;return k.debug("check dom element ready failed:",t,e),!0}}function zC(){let e=document.querySelector(`meta[name=${P}-options]`);return!!(e&&e.getAttribute("content")==="true")}async function GC(){if(!document.getElementById(P+"-status")){k.error("Could not find status element");return}await WC("local"),await WC("sync"),DN();let t=document.getElementById(P+"-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function kN(e,t){let n;try{n=JSON.parse(e.detail)}catch(a){k.error("parse detail failed",a);return}let r=n.id||"default";try{let a=n.data||{},i=await t(a),o={id:r,ok:!0,data:i};document.dispatchEvent(new CustomEvent(Ol,{detail:JSON.stringify({...o,type:"answer"})}))}catch(a){let i={ok:!1,errorName:a.name,errorMessage:a.message,errorDetails:a.details||a.detail};document.dispatchEvent(new CustomEvent(Ol,{detail:JSON.stringify({...i,id:r,type:"answer"})}))}}function DN(){document.addEventListener(Bl,r=>{let a=r;if(k.debug("document message",a),a&&a.detail){let i;try{i=JSON.parse(a.detail)}catch(o){k.error("parse detail failed",o);return}i.type==="ask"?i.method==="request"&&kN(a,K):i.type==="tell"&&i.method==="updateCommands"&&d0(i.data)}});let e=document.getElementById(P+"-manifest");if(!e){k.error("Could not find manifest element");return}let t=re.runtime.getManifest();it()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById(`${P}-message`).addEventListener("change",r=>{try{let a=JSON.parse(r.target.value);a&&a.method==="removeStorageKey"&&a.data&&a.data.area&&a.data.keys&&re.storage[a.data.area].remove(a.data.keys)}catch(a){k.error("parse message error",a)}})}async function WC(e){let t=document.getElementById(P+"-status"),n=document.getElementById(`${P}-${e}-storage`);if(n){k.debug("init storage");let r=await re.storage[e].get(null);n.value=JSON.stringify(r),n.dispatchEvent(new Event("change")),n.addEventListener("change",a=>{try{let i=JSON.parse(a.target.value);re.storage[e].set(i)}catch(i){k.error("save to storage error",i)}}),n.addEventListener("refresh-"+e,async a=>{let i=await re.storage[e].get(null);n.value=JSON.stringify(i),k.debug("refresh ",e,"storage")})}else{k.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}function LN(){try{document.dispatchEvent(new Event($3))}catch{}}function VC(){yl()||LN()}var KC=["textarea","input","button","select","option","iframe","strong","form","body"];async function PN(){VC(),await T2();let e=await qt();e.excludeTranslationHtmlTags&&(KC=e.excludeTranslationHtmlTags),_i({}),Ze.addHook("beforeSanitizeElements",function(r,a,i){let o=(r.nodeName||"").toLowerCase();if(KC.includes(o)){let u=`<${o}>${r.textContent||""}`,l=document.createTextNode(u);return r.replaceWith(l),r}return r}),Ze.addHook("uponSanitizeElement",function(r,a){let i=r.nodeName||"";/\d+$/.test(i)&&(a.allowedTags[a.tagName]=!0),tu(r.tagName)&&(a.allowedTags[r.tagName.toLowerCase()]=!0)}),Ze.addHook("uponSanitizeAttribute",function(r,a){tu(r.tagName)&&(a.allowedAttributes[a.attrName.toLowerCase()]=!0)});let t=Se(),n=await Tn({config:e,url:t});Fe("init_page_daily",[{name:"init_page_daily"}],n),jC.domready.then(()=>{if(n.isTranslateExcludeUrl&&zC())k.debug("detect web options page"),ll(n,window),GC();else{if(!n.config.enabled)return;if(n.rule.isInjectVersion){let a=Ht(),i=document.createElement("meta");i.name=P+"-version",i.content=a;try{document.head?.appendChild?.(i)}catch(o){k.warn("inject version failed",o)}}if(ze(n.url,n.config.blockUrls))return;ll(n,window),qC(n).then(()=>{FC(n).catch(a=>{a&&k.debug("translate page error",a.name,a.message,a)})}).catch(a=>{k.debug("can not detect a valid body: ",a)})}}).catch(r=>{r&&k.debug("translate dom ready detect error",r)})}PN().catch(e=>{k.debug("init error",e)});})(); +`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},UC=(e,t)=>new D4(t).execute(e);async function HC(e){try{let t=e.config.domReadyDetectTimeout;return await UC(()=>{let r=e.mainFrame.innerText||"";if(yo(r,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:t!==void 0?t:3e3}),!0}catch(t){if(Ke())throw t;return k.debug("check dom element ready failed:",t,e),!0}}function qC(){let e=document.querySelector(`meta[name=${L}-options]`);return!!(e&&e.getAttribute("content")==="true")}async function WC(){if(!document.getElementById(L+"-status")){k.error("Could not find status element");return}await zC("local"),await zC("sync"),LN();let t=document.getElementById(L+"-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function DN(e,t){let n;try{n=JSON.parse(e.detail)}catch(a){k.error("parse detail failed",a);return}let r=n.id||"default";try{let a=n.data||{},i=await t(a),o={id:r,ok:!0,data:i};document.dispatchEvent(new CustomEvent(_l,{detail:JSON.stringify({...o,type:"answer"})}))}catch(a){let i={ok:!1,errorName:a.name,errorMessage:a.message,errorDetails:a.details||a.detail};document.dispatchEvent(new CustomEvent(_l,{detail:JSON.stringify({...i,id:r,type:"answer"})}))}}function LN(){document.addEventListener(Fl,r=>{let a=r;if(k.debug("document message",a),a&&a.detail){let i;try{i=JSON.parse(a.detail)}catch(o){k.error("parse detail failed",o);return}i.type==="ask"?i.method==="request"&&DN(a,K):i.type==="tell"&&i.method==="updateCommands"&&c0(i.data)}});let e=document.getElementById(L+"-manifest");if(!e){k.error("Could not find manifest element");return}let t=re.runtime.getManifest();it()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById(`${L}-message`).addEventListener("change",r=>{try{let a=JSON.parse(r.target.value);a&&a.method==="removeStorageKey"&&a.data&&a.data.area&&a.data.keys&&re.storage[a.data.area].remove(a.data.keys)}catch(a){k.error("parse message error",a)}})}async function zC(e){let t=document.getElementById(L+"-status"),n=document.getElementById(`${L}-${e}-storage`);if(n){k.debug("init storage");let r=await re.storage[e].get(null);n.value=JSON.stringify(r),n.dispatchEvent(new Event("change")),n.addEventListener("change",a=>{try{let i=JSON.parse(a.target.value);re.storage[e].set(i)}catch(i){k.error("save to storage error",i)}}),n.addEventListener("refresh-"+e,async a=>{let i=await re.storage[e].get(null);n.value=JSON.stringify(i),k.debug("refresh ",e,"storage")})}else{k.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}function PN(){try{document.dispatchEvent(new Event(Z3))}catch{}}function GC(){bl()||PN()}var VC=["textarea","input","button","select","option","iframe","strong","form","body"];async function MN(){GC(),await v2();let e=await qt();e.excludeTranslationHtmlTags&&(VC=e.excludeTranslationHtmlTags),Bi({}),Ze.addHook("beforeSanitizeElements",function(r,a,i){let o=(r.nodeName||"").toLowerCase();if(VC.includes(o)){let u=`<${o}>${r.textContent||""}`,l=document.createTextNode(u);return r.replaceWith(l),r}return r}),Ze.addHook("uponSanitizeElement",function(r,a){let i=r.nodeName||"";/\d+$/.test(i)&&(a.allowedTags[a.tagName]=!0),eu(r.tagName)&&(a.allowedTags[r.tagName.toLowerCase()]=!0)}),Ze.addHook("uponSanitizeAttribute",function(r,a){eu(r.tagName)&&(a.allowedAttributes[a.attrName.toLowerCase()]=!0)});let t=ve(),n=await Sn({config:e,url:t});Ie("init_page_daily",[{name:"init_page_daily"}],n),NC.domready.then(()=>{if(n.isTranslateExcludeUrl&&qC())k.debug("detect web options page"),ul(n,window),WC();else{if(!n.config.enabled)return;if(n.rule.isInjectVersion){let a=Ht(),i=document.createElement("meta");i.name=L+"-version",i.content=a;try{document.head?.appendChild?.(i)}catch(o){k.warn("inject version failed",o)}}if(We(n.url,n.config.blockUrls))return;ul(n,window),HC(n).then(()=>{IC(n).catch(a=>{a&&k.debug("translate page error",a.name,a.message,a)})}).catch(a=>{k.debug("can not detect a valid body: ",a)})}}).catch(r=>{r&&k.debug("translate dom ready detect error",r)})}MN().catch(e=>{k.debug("init error",e)});})(); /*! * Toastify js 1.12.0 * https://github.com/apvarun/toastify-js diff --git a/dist/firefox/content_start.js b/dist/firefox/content_start.js index b4cfd02..f8ae6af 100644 --- a/dist/firefox/content_start.js +++ b/dist/firefox/content_start.js @@ -1,4 +1,4 @@ -(()=>{var Js=Object.defineProperty;var Qs=(e,t)=>{for(var a in t)Js(e,a,{get:t[a],enumerable:!0})};var x={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var Js=Object.defineProperty;var Qs=(e,t)=>{for(var a in t)Js(e,a,{get:t[a],enumerable:!0})};var x={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5512,10 +5512,10 @@ To translate an image, right-click on any image and select 'Translate Image'. Ad ${u.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return n("errorReason",{message:s})}getProQuotaError(t,a){let n=it.bind(null,t.config.interfaceLanguage),r=t.user.subscription,{subscriptionType:i,isTrial:u}=r,o=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",s=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[n("proQuotaError.toggleAnotherService",{anotherService:o})];if(i=="onetime_7day")l.push(n("proQuotaError.onetime7day",{brandId:ce,href:Bu}));else{let d="";s=="AI"?d=Pu:d=Ru,u?l.push(n("proQuotaError.trail",{brandId:ce,href:dr})):l.push(n("proQuotaError.package",{brandId:ce,href:d,translationService:s})),Er(t.user,l,n)}let c=a+`${n("proQuotaError.solvedTitle")}

${l.map((d,p)=>`${p+1}. ${d}`).join("
")}`;return n("errorReason",{message:c})}};function Er(e,t,a){if(!e||!e?.subscription)return;let n=e?.subscription,{isTrial:r,openAITokenUsedCountResetTime:i,subscriptionTo:u}=n;!r&&(n.cancelAtPeriodEnd==="false"||ao(u)>i)&&t.push(a("proQuotaError.resetTime",{resetTime:to(i,"YYYY-MM-DD HH:mm:ss")}))}function no(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([a,n])=>{t.append(a,n)}),t}function ro(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([a,n])=>{if(Array.isArray(n))for(let r of n)t.append(a,r);else t.append(a,n)}),t.toString()}function io(e){let{mimeType:t,base64:a}=Cd(e),n=atob(a),r=[],i=512;for(let o=0;o0)try{t=await zn(uo.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(a){throw a&&a.name==="RetryError"&&a.cause?a.cause:a}else t=await uo(e);return t}async function uo(e){e.body;let{url:t,responseType:a,requestType:n,...r}=e;a||(a="json"),n||(n="json"),r={mode:"cors",...r},n=="formData"?r.body=no(e.body):n=="urlSearchParams"?r.body=ro(e.body):n=="blob"&&e.body&&(r.body=io(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let u=e.fetchPolyfill||fetch,o=3e4,s;if(e.timeout&&(o=e.timeout),i){let c=new AbortController,d=c.signal;s=setTimeout(()=>{c.abort()},o),r.signal=d}let l;try{l=await u(t,r)}catch(c){ve.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new bt("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{s&&clearTimeout(s)}if(l.ok&&l.status>=200&&l.status<400){if(a=="HEAD"){if(l.url!==t)throw new bt("fetchError","redirect url:"+l.url);return l.statusText}if(a==="json")return await l.json();if(a==="text")return await l.text();if(a==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),p=l.url;return p||(l.headers.get("X-Final-URL")?p=l.headers.get("X-Final-URL"):p=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:p}}else if(a==="base64"){let c=await l.blob(),d=new FileReader,p=new Promise((m,b)=>{d.onload=function(){let T=d.result;m(T)},d.onerror=function(){b(d.error)}});return d.readAsDataURL(c),p}else if(a==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let p of kd(l.body)){let m=new TextDecoder().decode(p);c+=m;let b;for(;(b=c.indexOf(` -`))>=0;){let T=c.slice(0,b).trim();if(c=c.slice(b+1),T.startsWith("event:")||T==="")continue;let S="";if(T.startsWith("data:")&&(S=T.slice(5).trim()),S==="[DONE]")break;let h;try{h=JSON.parse(S??"")}catch(P){ve.debug("json error",P);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(T){ve.error("parse response failed",T)}c&&ve.error("fail response",c);let d="";c&&(d=c.slice(0,500));let p=d,b=new URL(t).hostname.endsWith(`.${$e}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(p="bingAuth:"+d),b&&(d.includes("quota exceeded")&&(p="ProQuota:"+d),d.includes("translation quota reached")&&(p="NewProQuota:"+d)),new bt("fetchError",p).initNetWork(l.status)}}async function*kd(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var oo={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Fd="";function Ca(){return Fd||oo.version}function Sr(){return ae.runtime.getManifest().version}var Bd="";function Dr(){return Bd||globalThis.navigator.userAgent}function mn(){return Dr().includes("ImtFxiOS")}function Tr(){return Dr().includes("ImtFxAndroid")}function Cr(){let e=Dr();if(mn()||Tr()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var pn=function(){return pn=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Pd()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function ka(e){return e.then(void 0,function(){}),e}function Md(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function Id(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(p,m){u[p]=u[p]||[],u[p].push(m)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function jd(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function Pt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,p=0,m=0;m+=i+l,p+=m>>>16,m&=65535,p+=r+s,d+=p>>>16,p&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=p<<16|m}function ut(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,p=0,m=0;m+=i*l,p+=m>>>16,m&=65535,p+=r*l,d+=p>>>16,p&=65535,p+=i*s,d+=p>>>16,p&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=p<<16|m}function ta(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function Qe(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Ee(e,t),ut(e,Nd),t[1]=e[0]>>>1,Ee(e,t),ut(e,Od),t[1]=e[0]>>>1,Ee(e,t)}var gn=[2277735313,289559509],hn=[1291169091,658871167],mo=[0,5],qd=[0,1390208809],zd=[0,944331445];function Ud(e,t){var a=jd(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function Gd(e){var t;return pn({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`))>=0;){let T=c.slice(0,b).trim();if(c=c.slice(b+1),T.startsWith("event:")||T==="")continue;let S="";if(T.startsWith("data:")&&(S=T.slice(5).trim()),S==="[DONE]")break;let h;try{h=JSON.parse(S??"")}catch(P){ve.debug("json error",P);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(T){ve.error("parse response failed",T)}c&&ve.error("fail response",c);let d="";c&&(d=c.slice(0,500));let p=d,b=new URL(t).hostname.endsWith(`.${$e}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(p="bingAuth:"+d),b&&(d.includes("quota exceeded")&&(p="ProQuota:"+d),d.includes("translation quota reached")&&(p="NewProQuota:"+d)),new bt("fetchError",p).initNetWork(l.status)}}async function*kd(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var oo={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Fd="";function Ca(){return Fd||oo.version}function Sr(){return ae.runtime.getManifest().version}var Bd="";function Dr(){return Bd||globalThis.navigator.userAgent}function mn(){return Dr().includes("ImtFxiOS")}function Tr(){return Dr().includes("ImtFxAndroid")}function Cr(){let e=Dr();if(mn()||Tr()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var pn=function(){return pn=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Pd()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function ka(e){return e.then(void 0,function(){}),e}function Md(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function Id(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(p,m){u[p]=u[p]||[],u[p].push(m)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function jd(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function Pt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,p=0,m=0;m+=i+l,p+=m>>>16,m&=65535,p+=r+s,d+=p>>>16,p&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=p<<16|m}function ut(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,p=0,m=0;m+=i*l,p+=m>>>16,m&=65535,p+=r*l,d+=p>>>16,p&=65535,p+=i*s,d+=p>>>16,p&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=p<<16|m}function ta(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function Qe(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Ee(e,t),ut(e,Nd),t[1]=e[0]>>>1,Ee(e,t),ut(e,Od),t[1]=e[0]>>>1,Ee(e,t)}var gn=[2277735313,289559509],hn=[1291169091,658871167],mo=[0,5],qd=[0,1390208809],zd=[0,944331445];function Ud(e,t){var a=jd(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function Gd(e){var t;return pn({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` `)},e)}function Hd(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Wd(e){return typeof e!="function"}function Kd(e,t){var a=ka(new Promise(function(n){var r=Date.now();so(e.bind(null,t),function(){for(var i=[],u=0;u=4}function $d(){var e=window,t=navigator;return Xe(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Do()}function yn(){var e=window,t=navigator;return Xe(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function gt(){var e=window,t=navigator;return Xe(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Lr(){var e=window,t=e.HTMLElement,a=e.Document;return Xe(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),a&&"pointerLockElement"in a.prototype])>=4}function _a(){var e=window;return Hd(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function To(){var e,t,a=window;return Xe(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function Yd(){var e=window;return Xe([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Zd(){var e=window;return Xe(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Fa(){var e=window,t=navigator,a=e.CSS,n=e.HTMLButtonElement;return Xe([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,a.supports("font-size-adjust: ex-height 0.5"),a.supports("text-transform: full-width")])>=4}function Jd(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Xe(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function Qd(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Xd(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ir(){var e=yn(),t=To(),a=window,n=navigator,r="connection";return e?Xe([!("SharedWorker"in a),n[r]&&"ontypechange"in n[r],!("sinkId"in new window.Audio)])>=2:t?Xe(["onorientationchange"in a,"orientation"in a,/android/i.test(navigator.appVersion)])>=2:!1}function em(){return nm()?-4:tm()}function tm(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(am())return-1;var a=4500,n=5e3,r=new t(1,n,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var u=r.createDynamicsCompressor();u.threshold.value=-50,u.knee.value=40,u.ratio.value=12,u.attack.value=0,u.release.value=.25,i.connect(u),u.connect(r.destination),i.start(0);var o=rm(r),s=o[0],l=o[1],c=ka(s.then(function(d){return im(d.getChannelData(0).subarray(a))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function am(){return gt()&&!Lr()&&!Zd()}function nm(){return gt()&&Fa()&&_a()}function rm(e){var t=3,a=500,n=500,r=5e3,i=function(){},u=new Promise(function(o,s){var l=!1,c=0,d=0;e.oncomplete=function(b){return o(b.renderedBuffer)};var p=function(){setTimeout(function(){return s(po("timeout"))},Math.min(n,d+r-Date.now()))},m=function(){try{var b=e.startRendering();switch(So(b)&&ka(b),e.state){case"running":d=Date.now(),l&&p();break;case"suspended":document.hidden||c++,l&&c>=t?s(po("suspended")):setTimeout(m,a);break}}catch(T){s(T)}};m(),i=function(){l||(l=!0,d>0&&p())}});return[u,i]}function im(e){for(var t=0,a=0;a=0?"+":"").concat(n)}function Im(){var e=new Date().getFullYear();return Math.max(pt(new Date(e,0,1).getTimezoneOffset()),pt(new Date(e,6,1).getTimezoneOffset()))}function jm(){try{return!!window.sessionStorage}catch{return!0}}function Nm(){try{return!!window.localStorage}catch{return!0}}function Om(){if(!(Do()||$d()))try{return!!window.indexedDB}catch{return!0}}function qm(){return!!window.openDatabase}function zm(){return navigator.cpuClass}function Um(){var e=navigator.platform;return e==="MacIntel"&>()&&!Lr()?Jd()?"iPad":"iPhone":e}function Gm(){return navigator.vendor||""}function Hm(){for(var e=[],t=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),o.sort(),[2,o]}})})}function $m(){return gt()||Ir()}function Ym(e){var t;return dt(this,void 0,void 0,function(){var a,n,r,i,s,u,o,s;return mt(this,function(l){switch(l.label){case 0:for(a=document,n=a.createElement("div"),r=new Array(e.length),i={},ho(n),s=0;s')}function cp(){return navigator.pdfViewerEnabled}function dp(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function mp(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(pp())return-3;try{return e.canMakePayments()?1:0}catch(t){return gp(t)}}var pp=sm;function gp(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function hp(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var ko=-1,_o=-2,fp=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),bp=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),yp=["FRAGMENT_SHADER","VERTEX_SHADER"],xp=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Fo="WEBGL_debug_renderer_info",vp="WEBGL_polygon_mode";function wp(e){var t,a,n,r,i,u,o=e.cache,s=Bo(o);if(!s)return ko;if(!Ro(s))return _o;var l=Po()?null:s.getExtension(Fo);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function Ep(e){var t=e.cache,a=Bo(t);if(!a)return ko;if(!Ro(a))return _o;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Eo,"/npm-monitoring"),!0),e.send()}catch{}}function Op(e){var t;return e===void 0&&(e={}),dt(this,void 0,void 0,function(){var a,n,r;return mt(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Np(),a=e.delayFallback,n=e.debug,[4,Ip(a)];case 1:return i.sent(),r=kp({cache:{},debug:n}),[2,jp(r,n)]}})})}var jr={load:Op,hashComponents:Mo,componentsToDebugString:Mp};async function Nr(){let e=await rt("fakeUserId","");e||(e=await Sa("fakeUserId",""),e&&await Ne("fakeUserId",e));let t=new Date,a=await rt("installedAt","");return a||(a=await Sa("installedAt",""),a&&await Ne("installedAt",a)),e?a||(a=new Date(0).toISOString(),await Ne("installedAt",a)):(e=await Up(64),await Ne("fakeUserId",e)),a||(a=t.toISOString(),await Ne("installedAt",a)),{fakeUserId:e,installedAt:a}}var qp=10;async function Or(){let e=await rt("userTag","");if(e)return e;let{fakeUserId:t}=await Nr(),n=t.charCodeAt(0)%qp;return e=String.fromCharCode(n+"a".charCodeAt(0)),await Ne("userTag",e),e}function zp(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Gp(i,e)}catch{return zp(64)}}function Gp(e,t=32){let a="";for(let r=0;r{}),xn)}async function No(e,t){try{let a=Fe(),n=a.INSTALL_FROM==="firefox_store";if(Cr()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=Ce(),u=Ut(),o=a.PROD==="1",s=Ca(),l=new Date,{fakeUserId:c,installedAt:d}=await Nr(),p=await Or(),m=await qr(),b=await zr(),T=new Date(d),S=Ur(T),h=Ur(l),P=S===h,_=24*60*60*1e3,z=l.getTime()-T.getTime()<7*_,te=l.getTime()-T.getTime()<30*_,A=l.getTime()-T.getTime()<365*_,f=Lu(),y="";typeof navigator<"u"&&(y=window.navigator.userAgent);let v=Va.parse(y),R=e.map(O=>{let F=O.params||{};if(v.os&&(F.os_name=v.os.name||"unknown",F.os_version=v.os.version||"unknown",F.os_version_name=v.os.versionName||"unknown"),v.browser){F.browser_name=v.browser.name||"unknown",F.browser_version=v.browser.version||"unknown";let B=Cr();B&&(F.browser_name=B.name,F.browser_version=B.version)}if(v.platform&&(F.platform_type=v.platform.type||"unknown"),v.engine&&(F.engine_name=v.engine.name||"unknown",F.engine_version=v.engine.version||"unknown"),s&&(F.version=s),a.INSTALL_FROM&&(F.install_from=a.INSTALL_FROM),S){F.install_day=Lo(T);let B=jo(T);F.install_week=`${B.year}${B.week}`}return F.userscript=i.toString(),P?F.is_new_user_today="1":F.is_new_user_today="0",F.is_new_user_this_week=z?"1":"0",F.is_new_user_this_month=te?"1":"0",F.is_new_user_this_year=A?"1":"0",u?F.main_frame=0:F.main_frame=1,p&&(F.ab_tag=p),m&&(F.ab_group=m),F.campaign=b||"none",{...O,params:F}});f.forEach(async O=>{let F=await Oo({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&Wp(c,R)}catch{}}async function Hp(e){return await Gr().sendMessage("background:main",e)}function Oo(e){return Oa()?rn({method:"request",data:e}):Ce()||Na()?(e.fetchPolyfill=globalThis.GM_fetch,ln(e)):Hp({method:"fetch",data:e})}function Wp(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Io(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);Oo({url:Iu,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){ve.debug("report self service error",a)}}var vn={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[s]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(s)}}}function Jm(){for(var e=0,t=["rec2020","p3","srgb"];e')}function cp(){return navigator.pdfViewerEnabled}function dp(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function mp(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(pp())return-3;try{return e.canMakePayments()?1:0}catch(t){return gp(t)}}var pp=sm;function gp(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function hp(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var ko=-1,_o=-2,fp=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),bp=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),yp=["FRAGMENT_SHADER","VERTEX_SHADER"],xp=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Fo="WEBGL_debug_renderer_info",vp="WEBGL_polygon_mode";function wp(e){var t,a,n,r,i,u,o=e.cache,s=Bo(o);if(!s)return ko;if(!Ro(s))return _o;var l=Po()?null:s.getExtension(Fo);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function Ep(e){var t=e.cache,a=Bo(t);if(!a)return ko;if(!Ro(a))return _o;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Eo,"/npm-monitoring"),!0),e.send()}catch{}}function Op(e){var t;return e===void 0&&(e={}),dt(this,void 0,void 0,function(){var a,n,r;return mt(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Np(),a=e.delayFallback,n=e.debug,[4,Ip(a)];case 1:return i.sent(),r=kp({cache:{},debug:n}),[2,jp(r,n)]}})})}var jr={load:Op,hashComponents:Mo,componentsToDebugString:Mp};async function Nr(){let e=await rt("fakeUserId","");e||(e=await Sa("fakeUserId",""),e&&await Ne("fakeUserId",e));let t=new Date,a=await rt("installedAt","");return a||(a=await Sa("installedAt",""),a&&await Ne("installedAt",a)),e?a||(a=new Date(0).toISOString(),await Ne("installedAt",a)):(e=await Up(64),await Ne("fakeUserId",e)),a||(a=t.toISOString(),await Ne("installedAt",a)),{fakeUserId:e,installedAt:a}}var qp=10;async function Or(){let e=await rt("userTag","");if(e)return e;let{fakeUserId:t}=await Nr(),n=t.charCodeAt(0)%qp;return e=String.fromCharCode(n+"a".charCodeAt(0)),await Ne("userTag",e),e}function zp(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Gp(i,e)}catch{return zp(64)}}function Gp(e,t=32){let a="";for(let r=0;r{}),xn)}async function No(e,t){try{let a=Fe(),n=a.INSTALL_FROM==="firefox_store";if(Cr()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=Ce(),u=Ut(),o=a.PROD==="1",s=Ca(),l=new Date,{fakeUserId:c,installedAt:d}=await Nr(),p=await Or(),m=await qr(),b=await zr(),T=new Date(d),S=Ur(T),h=Ur(l),P=S===h,_=24*60*60*1e3,z=l.getTime()-T.getTime()<7*_,te=l.getTime()-T.getTime()<30*_,A=l.getTime()-T.getTime()<365*_,f=Lu(),y="";typeof navigator<"u"&&(y=window.navigator.userAgent);let v=Va.parse(y),R=e.map(O=>{let F=O.params||{};if(v.os&&(F.os_name=v.os.name||"unknown",F.os_version=v.os.version||"unknown",F.os_version_name=v.os.versionName||"unknown"),v.browser){F.browser_name=v.browser.name||"unknown",F.browser_version=v.browser.version||"unknown";let B=Cr();B&&(F.browser_name=B.name,F.browser_version=B.version)}if(v.platform&&(F.platform_type=v.platform.type||"unknown"),v.engine&&(F.engine_name=v.engine.name||"unknown",F.engine_version=v.engine.version||"unknown"),s&&(F.version=s),a.INSTALL_FROM&&(F.install_from=a.INSTALL_FROM),S){F.install_day=Lo(T);let B=jo(T);F.install_week=`${B.year}${B.week}`}return F.userscript=i.toString(),P?F.is_new_user_today="1":F.is_new_user_today="0",F.is_new_user_this_week=z?"1":"0",F.is_new_user_this_month=te?"1":"0",F.is_new_user_this_year=A?"1":"0",u?F.main_frame=0:F.main_frame=1,p&&(F.ab_tag=p),m&&(F.ab_group=m),F.campaign=b||"none",{...O,params:F}});f.forEach(async O=>{let F=await Oo({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&Wp(c,R)}catch{}}async function Hp(e){return await Gr().sendMessage("background:main",e)}function Oo(e){return Oa()?rn({method:"request",data:e}):Ce()||Na()?(e.fetchPolyfill=globalThis.GM_fetch,ln(e)):Hp({method:"fetch",data:e})}function Wp(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Io(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);Oo({url:Iu,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){ve.debug("report self service error",a)}}var vn={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5770,11 +5770,11 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var c6=Ce();function wn(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function qo(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ut())return globalThis.location.href;try{let t=globalThis.location.href,a=new URL(t);if(a.protocol==="about:"||a.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let n="";try{n=globalThis.parent.location.href}catch{}return n||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}var Wo,oe,Ko,Vp,Ba,zo,Vo,$o={},Yo=[],$p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Rt(e,t){for(var a in t)e[a]=t[a];return e}function Zo(e){var t=e.parentNode;t&&t.removeChild(e)}function Hr(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ko};return r==null&&oe.vnode!=null&&oe.vnode(i),i}function Kt(e){return e.children}function En(e,t){this.props=e,this.context=t}function ra(e,t){if(t==null)return e.__?ra(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Hr(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=a,m.__b=a.__b+1,(p=h[c])===null||p&&m.key==p.key&&m.type===p.type)h[c]=void 0;else for(d=0;dps.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(ps.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return ig(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let S=s.split("://");l=S[0],l==="*"&&S.length>1&&(l="*",s="https://"+S[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,hs),p;try{p=new URL(d)}catch{return ve.debug("invalid match pattern",d,"raw match value:",c),!1}let m=p.host,b=p.pathname;b==="/"&&(c.replace("://","").includes("/")||(b="/*"));let T=rg(l+":",gs(m),gs(b));return T?T.test(e):!1}});if(o)return o}return null}catch{return null}}function gs(e){return e.replaceAll(hs,"*")}function rg(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function xt(e,t){return Jr(e,t)!==null}function ig(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var ug=null;if(typeof trustedTypes<"u")try{ug=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var og=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(og=!0)});var K6=globalThis.document?.createElement("div");function Qr(){return Tr()?"imtAndroid":mn()?"imtIOS":Ce()?"userscript":Ct()?"safari":Ei()?"firefox":vi()?"chrome":"other"}var sg={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},_w={...sg};function Pa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Tn(e){return Array.isArray(e)?e:e?[e]:[]}function fs(e,t){let a=[...e];for(let n of t)n.startsWith("[+]")&&!a.includes(n.slice(3))?a.push(n.slice(3)):n.startsWith("[-]")?a=a.filter(r=>r!==n.slice(3)):a.includes(n)||a.push(n);return a}function Ra(e,t){let a={...e};return ws(a,t),lg(a,t),a}function vs(e,t,a){let n={...e};return vt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),vt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function lg(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;ws(e,r)}function vt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=bs(i);if(u=="rich"){if(!r)return n(i,e[i]);let[p,m,b,T]=bs(i);u=p+"."+m,o=b,s=T}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Tn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!ys(s))return;d=Xr(c,l)}else if(o=="remove_v"){if(!ys(s))return;d=xs(c,l)}else o==="add"?d=Xr(c,l):o=="remove"&&(d=xs(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Xr(c,l):d=l,n(u,d)})}function ws(e,t){return vt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Xr(e,t){let a;if(Array.isArray(e)){let n=Tn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function bs(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function ys(e){let t=Ca();return e&&Pa(t,e)}function xs(e,t){if(Array.isArray(e)){let a=Tn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var Es="userConfig",Ss="userPromptPool",As="userObjectPool";async function Ds(){let e=await Fs(Es)||{},t=await on(Ss)||{},a=await on(As)||{};return dg(e,t,a)}async function Ts(e){let{userConfig:t,promptPool:a,objectPool:n}=await cg(e);await _s(Es,t),await un(Ss,a),await un(As,n)}function cg(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return Cs(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),ks(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function dg(e,t,a){return Cs(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),ks(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function Cs(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function ks(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}function Bs(e,t){return Ps(e,a=>{let n=[];return n=a.split(/\s*==\s*/),n.length>1?t[n[0]]==n[1].trim():(n=a.split(/\s*!=\s*/),n.length>1?t[n[0]]!=n[1].trim():a=="true")})}function Ps(e,t){let a=!0;e=e.replace(/\((.+?)\)/g,(s,l)=>Ps(l,t)+"");let n=[],r=[],i,u=0,o=/ (&&|\|\|) /g;for(;(i=o.exec(e))!==null;)r.push(e.substring(u,i.index)),n.push(i[0]),u=i.index+i[0].length;if(n.length>0){r.length==n.length&&r.push(e.substring(u));for(let s=0;sArray.isArray(n[c]),getMergedValue:c=>n[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),vt({rule:e.generalRule,valueIsArray:c=>Array.isArray(n.generalRule[c]),getMergedValue:c=>n.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),bg(l),fg(a,s,l),l=await wg(l,s),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function mg(){if(J.PROD==="1")return{};let e={};if(J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(J.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:J.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(J.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:J.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(J.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&J.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:J.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:J.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(J.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:J.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(J.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=J.DEEPL_PROXY_ENDPOINT),J.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=J.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),J.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:J.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}J.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=J.IMMERSIVE_TRANSLATE_SERVICE);let t={};return J.DEBUG==="1"&&(t.debug=!0,t.cache=!1),J.MOCK==="1"&&(t.translationService="mock"),t}async function Ta(){let e=await ae.storage.local.get(xa);if(e[xa]){let t=e[xa],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await wr(i),i}else return{}}async function wr(e){await ae.storage.local.set({[xa]:e})}async function Ms(){return J.DEBUG==="1"?void 0:(await ae.storage.local.get(lr))[lr]}async function Ls(){let e=await Ms(),a={...Ar(),...vn,buildinConfigUpdatedAt:J.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let n=new Date(e.buildinConfigUpdatedAt),r=new Date(a.buildinConfigUpdatedAt);n>r&&(a=e)}return a}function cn(){return Ds()}function dn(e){return Ts(e)}async function _s(e,t){await ae.storage.sync.set({[e]:t})}async function Fs(e){return(await ae.storage.sync.get(e))[e]}async function un(e,t){await ae.storage.local.set({[e]:t})}async function on(e){return(await ae.storage.local.get(e))[e]}var pg=async()=>{let e=["zh-CN"];try{e=await ae.i18n.getAcceptLanguages()}catch(n){ve.warn("get browser language error:",n)}let a=e.map(n=>an(n)).find(n=>Xu.find(r=>r===n));return a||"en"},Ar=()=>{let e={...vn,buildinConfigUpdatedAt:J.BUILD_TIME};return{...e,targetLanguage:Bt,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function gg(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function hg(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Bt;let a=await rt("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=Rs(l,n[o]))}),vt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=Rs(l,a[o]))}),vt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}async function bg(e){try{let t=await rt("installedAt",""),a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){ve.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Rs(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}async function yg(e,t,a){let n=e.interfaceLanguage==="en",r=e.targetLanguage==="en",i=a&&a.translationLanguagePattern&&a.translationLanguagePattern.matches&&a.translationLanguagePattern.matches.length===0,u=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!n&&!r&&!i&&u?a.translationLanguagePattern||(a.translationLanguagePattern={matches:["en"],excludeMatches:[]}):a.translationLanguagePattern={matches:[],excludeMatches:[]};let o=a&&a.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(o=!1);let s=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;s===void 0&&(l.length>0?s=!0:s=!1,e.isChangedAlwaysTranslatedUrls=s,t.isChangedAlwaysTranslatedUrls=s,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,p=await rt("installedAt",""),m=Number(await Sa("translage_page_daily",0)),b=Number(await rt(nt,0)),T;b>0&&(Date.now()-b0&&(Date.now()-mn&&(e=t)}return e}function vg(e,t){let a=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let n=e.tempTranslationUrlMatches.filter(r=>new Date(r.expiredAt)>a);if(n.length>0){let r=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(r)?r:[r],u=Array.from(new Set(i.concat(n.map(o=>o.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:u}}}}async function wg(e,t){let a=await Eg(),n=Object.keys(e),r=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of n){let u=i;if(u==="generalRule")typeof t[u]=="object"&&(e[u]=Ra(e[u],t[u]));else if(u==="translationServices")Is(t,e);else if(typeof t[u]!="string"&&typeof t[u]!="boolean"&&typeof t[u]!="number"&&r.includes(u))t[u]&&(e[u]=Object.assign(e[u],t[u])),u==="shortcuts"&&(Ce()||Ct()?e[u]={...e[u],...a}:e[u]={...a});else if(u==="rules"){if(Array.isArray(t[u])){let o=e.rules||[],s={};for(let c of o)c.id&&(s[c.id]=c);let l=t[u].map(c=>c.id&&s[c.id]?vs(e.generalRule,s[c.id],c):c);e[u]=[...l,...e[u]]}if(J.PROD==="0"&&J.DEV_RULES){let o=JSON.parse(J.DEV_RULES);e[u]=[...o,...e[u]]}}else t[u]!==void 0&&(e[u]=t[u])}return e}async function Eg(){let e={};if(!Ce()&&ae.commands&&ae.commands.getAll){let t=await ae.commands.getAll();for(let a of t)a.name&&a.shortcut&&(e[a.name]=a.shortcut)}return e}function js(e,t,a){let n=t;return a.advanceMergeConfig&&a.advanceMergeConfig.forEach(({condition:r,advanceConfig:i})=>{if(!r||!i||!Bs(r,e))return;let{generalRule:o,translationServices:s,...l}=i;vt({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),s&&Is(i,e),o&&(n=Ra(n,o))}),n}var ia="input is invalid type",ei=typeof window=="object",Mt=ei?window:{};Mt.JS_SHA256_NO_WINDOW&&(ei=!1);var Sg=!ei&&typeof self=="object",Ag=!Mt.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;Ag?Mt=global:Sg&&(Mt=self);var B2=!Mt.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,P2=typeof define=="function"&&define.amd,Ma=!Mt.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",N="0123456789abcdef".split(""),Dg=[-2147483648,8388608,32768,128],ht=[24,16,8,0],Cn=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],kn=["hex","array","digest","arrayBuffer"],Ie=[];(Mt.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Ma&&(Mt.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ns=function(e,t){return function(a){return new je(t,!0).update(a)[e]()}},qs=function(e){var t=Ns("hex",e);t.create=function(){return new je(e)},t.update=function(r){return t.create().update(r)};for(var a=0;a>2]|=e[r]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|n&63)<=57344?(o[i>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<=64?(this.block=o[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};je.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=Dg[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};je.prototype.hash=function(){var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=this.blocks,l,c,d,p,m,b,T,S,h,P,_;for(l=16;l<64;++l)m=s[l-15],c=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=s[l-2],d=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,s[l]=s[l-16]+c+s[l-7]+d<<0;for(_=t&a,l=0;l<64;l+=4)this.first?(this.is224?(S=300032,m=s[0]-1413257819,o=m-150054599<<0,n=m+24177077<<0):(S=704751109,m=s[0]-210244248,o=m-1521486534<<0,n=m+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),S=e&t,p=S^e&a^_,T=r&i^~r&u,m=o+d+T+Cn[l]+s[l],b=c+p,o=n+m<<0,n=m+b<<0),c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),h=n&e,p=h^n&t^S,T=o&r^~o&i,m=u+d+T+Cn[l+1]+s[l+1],b=c+p,u=a+m<<0,a=m+b<<0,c=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),d=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),P=a&n,p=P^a&e^h,T=u&o^~u&r,m=i+d+T+Cn[l+2]+s[l+2],b=c+p,i=t+m<<0,t=m+b<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),_=t&a,p=_^t&n^P,T=i&u^~i&o,m=r+d+T+Cn[l+3]+s[l+3],b=c+p,r=e+m<<0,e=m+b<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+a<<0,this.h3=this.h3+n<<0,this.h4=this.h4+r<<0,this.h5=this.h5+i<<0,this.h6=this.h6+u<<0,this.h7=this.h7+o<<0};je.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=N[e>>28&15]+N[e>>24&15]+N[e>>20&15]+N[e>>16&15]+N[e>>12&15]+N[e>>8&15]+N[e>>4&15]+N[e&15]+N[t>>28&15]+N[t>>24&15]+N[t>>20&15]+N[t>>16&15]+N[t>>12&15]+N[t>>8&15]+N[t>>4&15]+N[t&15]+N[a>>28&15]+N[a>>24&15]+N[a>>20&15]+N[a>>16&15]+N[a>>12&15]+N[a>>8&15]+N[a>>4&15]+N[a&15]+N[n>>28&15]+N[n>>24&15]+N[n>>20&15]+N[n>>16&15]+N[n>>12&15]+N[n>>8&15]+N[n>>4&15]+N[n&15]+N[r>>28&15]+N[r>>24&15]+N[r>>20&15]+N[r>>16&15]+N[r>>12&15]+N[r>>8&15]+N[r>>4&15]+N[r&15]+N[i>>28&15]+N[i>>24&15]+N[i>>20&15]+N[i>>16&15]+N[i>>12&15]+N[i>>8&15]+N[i>>4&15]+N[i&15]+N[u>>28&15]+N[u>>24&15]+N[u>>20&15]+N[u>>16&15]+N[u>>12&15]+N[u>>8&15]+N[u>>4&15]+N[u&15];return this.is224||(s+=N[o>>28&15]+N[o>>24&15]+N[o>>20&15]+N[o>>16&15]+N[o>>12&15]+N[o>>8&15]+N[o>>4&15]+N[o&15]),s};je.prototype.toString=je.prototype.hex;je.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,a>>24&255,a>>16&255,a>>8&255,a&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(o>>24&255,o>>16&255,o>>8&255,o&255),s};je.prototype.array=je.prototype.digest;je.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function _n(e,t,a){var n,r=typeof e;if(r==="string"){var i=[],u=e.length,o=0,s;for(n=0;n>6,i[o++]=128|s&63):s<55296||s>=57344?(i[o++]=224|s>>12,i[o++]=128|s>>6&63,i[o++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++n)&1023),i[o++]=240|s>>18,i[o++]=128|s>>12&63,i[o++]=128|s>>6&63,i[o++]=128|s&63);e=i}else if(r==="object"){if(e===null)throw new Error(ia);if(Ma&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Ma||!ArrayBuffer.isView(e)))throw new Error(ia)}else throw new Error(ia);e.length>64&&(e=new je(t,!0).update(e).array());var l=[],c=[];for(n=0;n<64;++n){var d=e[n]||0;l[n]=92^d,c[n]=54^d}je.call(this,t,a),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=a}_n.prototype=new je;_n.prototype.finalize=function(){if(je.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();je.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),je.prototype.finalize.call(this)}};var ua=qs();ua.sha256=ua;ua.sha224=qs(!0);ua.sha256.hmac=zs();ua.sha224.hmac=zs(!0);var Us=ua;var Tg=Us.sha256;function ti(e){return Promise.resolve(Tg(e))}var Cg=Kr(null);async function _g(e,t,a){a=a||await vr();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&Gs(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&Gs(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await cn();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Yu(a),await dn(i)}catch{return!1}return r}async function Fg(e,t){(await Promise.allSettled(e.map(n=>Ht({url:`${x.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&_g("add",r,t)}})}async function Bg(e,t,a=!0){e||(e=await Wt()),t||(t=await vr());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await Mg();i=await Rg(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&Fg(u,t)}var E1=pa(Bg,1500);function Gs(e){return Pa(Sr(),e.extensionVersion)}function Pg(e,t){return t?!Pa(e.version,t):!1}function Rg(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{Pg(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function Mg(){return(await Ht({url:`${x.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function ai(e){let{url:t,config:a,state:n}=e,r=new URL(t),i="auto",{translationParagraphLanguagePattern:u,translationService:o,translationServices:s,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:p,sourceLanguageUrlPattern:m,immediateTranslationPattern:b}=a,T=p||"zh-CN",S=oa(t,u),h=oa(t,b),P=o,_=Object.keys(s);for(let D of _){let K=s[D];if(oa(t,K)){P=D;break}}let z=l,te=Object.keys(c);for(let D of te){let K=c[D];if(K&&oa(t,K)){z=D;break}}let A=oa(t,d),f=Hs(t,d);f||(f=xt(t,Cu)),f||(f=xt(t,a.blockUrls));let y=Hs(t,a.inputTranslationUrlPattern);y||(y=xt(t,a.inputTranslationBlockUrls));let v=xt(t,a.mutationBlockUrls),R=Object.keys(m),O={};for(let D of R){let K=m[D];if(K&&K.matches)for(let be of K.matches)O[be]=D}let F=Object.keys(O),B=Jr(t,F);B&&(i=O[B]??"auto",O[B]&&O[B]!=="auto"&&hr(O[B]));let Z=r.hostname,V=await ti(Z),fe=r.pathname+r.search+r.hash,we=await ti(fe),ne=`https://${V}.com/${we}`,re=await Ta(),Re=await Ls(),se=a.translationStartMode,E=Ig(re,a);re.aiAssistants=jg(E,a),se==="dynamic"&&h&&(se="immediate");let C=P;a.inputTranslationService&&a.inputTranslationService!=="inherit"&&(C=a.inputTranslationService);let L=P;a.mouseHoverTranslationService&&a.mouseHoverTranslationService!=="inherit"&&(L=a.mouseHoverTranslationService);let ee=P;a.subtitleTranslateService&&a.subtitleTranslateService!=="inherit"&&(ee=a.subtitleTranslateService);let W=await qt.get(Dt,null),de=!1;W&&(de=zt(W)),a.platform=Qr();let q={targetLanguage:T,config:a,translationService:P,inputTranslationService:C,mouseHoverTranslationService:L,subtitleTranslateService:ee,isTranslateUrl:A,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:f,isMutationTranslationExcludeUrl:v,isInputTranslationExcludeUrl:y,rule:a.generalRule,url:t,encryptedUrl:ne,state:n?Object.assign({translationMode:a.translationMode,translationArea:a.translationArea,translationStartMode:se,immediateTranslationTextCount:a.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:S,cache:a.cache,translationTheme:z,isTranslateDirectlyOnHover:!1},n):{translationMode:a.translationMode,translationArea:a.translationArea,translationStartMode:se,immediateTranslationTextCount:a.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:S,cache:a.cache,translationTheme:z,isTranslateDirectlyOnHover:!1},localConfig:re};W&&(q.user=W,de?q.isPro=!0:q.isPro=!1),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(D=>!q.config.generalRule.bodyTranslateTags.includes(D)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(D=>D!==".btn"));let G=a.translationServices[q.translationService]||{};G.immediateTranslationTextCount!==void 0&&Lg(G.immediateTranslationTextCount)&&G.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=G.immediateTranslationTextCount),q.translationService==="deepl"&&(G?.authKey?.startsWith("immersive_")||G?.provider==="pro"&&q.user?.token)&&G.immediateTranslationTextCountForImmersiveDeepl!==void 0&&G.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=G.immediateTranslationTextCountForImmersiveDeepl),G&&G.translationDebounce&&typeof G.translationDebounce=="number"&&(q.state.translationDebounce=G.translationDebounce);let U=Re.immediateTranslationTextCount;a.immediateTranslationTextCount!==U&&(q.state.immediateTranslationTextCount=a.immediateTranslationTextCount);let H=a.rules,Y;globalThis.PDFViewerApplication?Y=H.find(D=>D.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Y=H.find(D=>D.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Y=H.find(D=>D.pageType=="ebookBuilder"):Y=H.find(D=>oa(t,D)),Y&&Y.pageType==="ebookBuilder"&&(q.state.translationStartMode="immediate");let ue=a.generalRule;if(Y&&(q.rule=Ra(ue,Y),q.rule=js(a,q.rule,Y)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(D=>!q.rule.bodyTranslateTags.includes(D)&&!q.rule.forceTranslateTags.includes(D))),q.rule.mainFrameSelector){let D=document.querySelector(q.rule.mainFrameSelector);D&&(q.mainFrame=D)}return q}function oa(e,t){if(!t)return!1;let{matches:a,excludeMatches:n,selectorMatches:r,excludeSelectorMatches:i}=t;return n&&n.length>0&&xt(e,n)?!1:a&&a.length>0&&xt(e,a)?!0:i&&i.length>0&&wn(i)?!1:!!(r&&r.length>0&&wn(r))}function Hs(e,t){if(!t)return!1;let{excludeMatches:a,excludeSelectorMatches:n}=t;return!!(a&&a.length>0&&xt(e,a)||n&&n.length>0&&wn(n))}function Lg(e){return typeof e=="number"}function Ig(e,t){let a=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(r=>{let i=a.findIndex(u=>u.id===r.id);i!==-1?a[i]=r:a.push(r)}),a}function jg(e,t){try{let a=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(n=>{let r=fs(n.matches||[],a[n.id]?.matches||[]);return{...n,matches:r}})}catch(a){return ve.error(a),e}}var sa="imt-subtitle-inject",Fn=class{from;to;constructor(t,a){this.from=t,this.to=a}sendMessages(t){globalThis.postMessage({type:sa,to:this.to,from:this.from,action:t.action,data:t.data,id:t.id||new Date().getTime(),isAsync:!1})}getRandomId(){return(new Date().getTime()+Math.random())*Math.random()}sendAsyncMessages({action:t,data:a}){return new Promise(n=>{let r=this.getRandomId();globalThis.postMessage({type:sa,to:this.to,from:this.from,action:t,data:a,id:r,isAsync:!0});let i=({data:u})=>{sa===u.type&&u.id===r&&u.to===this.from&&(n(u.data),globalThis.removeEventListener("message",i))};globalThis.addEventListener("message",i)})}handleMessageOnce(t){return new Promise(a=>{let n=({data:r})=>{sa===r.type&&r.action===t&&r.to===this.from&&(a(r.data),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)})}handleMessage(t,a){let n=({data:r})=>{sa===r.type&&r.action===t&&r.to===this.from&&a(r)};return globalThis.addEventListener("message",n),()=>{globalThis.removeEventListener("message",n)}}handleMessages(t){let a=({data:n})=>{sa===n.type&&n.to===this.from&&t(n)};return globalThis.addEventListener("message",a),()=>{globalThis.removeEventListener("message",a)}}},Bn=new Fn("content-script","inject"),Ng=new Fn("inject","content-script"),Ws={get(e,t,a){return t in e?(...n)=>{let r=e[t];return typeof r=="function"?r.apply(e,n):Reflect.get(e,t,a)}:n=>e.sendAsyncMessages({action:t,data:n})}},W1=new Proxy(Ng,Ws),K1=new Proxy(Bn,Ws);async function Og(){try{let e=await Gg(qo(),{});if(e.isTranslateExcludeUrl)return;let t=e.rule.subtitleRule;t&&t.type&&!t.disabled&&t.isInject&&zg(e);let a=e.rule.imageRule;a?.enable&&a.type&&qg(e),Ug(e)}catch{}}function qg(e){if(Ce()){let a=Fe().IMMERSIVE_TRANSLATE_IMAGE_INJECT,n=document.createElement("script");n.id="imt-image-inject",n.textContent=a,document.head?.appendChild(n)}else ae.storage.sync.get("open").then(()=>{let t=ae.runtime.getURL("image/inject.js");if(document.querySelector(`script[src='${t}']`))return;let n=document.createElement("script");n.src=t,n.id="imt-image-inject",document.head?.appendChild(n)})}function zg(e){if(Ce()){let a=Fe().IMMERSIVE_TRANSLATE_VIDEO_SUBTITLE_INJECT,n=document.createElement("script");n.id="imt-subtitles-inject",n.textContent=a,document.head?.appendChild(n)}else ae.storage.sync.get("open").then(()=>{let t=ae.runtime.getURL("video-subtitle/inject.js");if(document.querySelector(`script[src='${t}']`))return;let n=document.createElement("script");n.src=t,n.id="imt-subtitles-inject",document.head?.appendChild(n)})}function Ug(e){Bn.handleMessages(({id:t,action:a})=>{if(a==="getConfig"){let n=e.rule.subtitleRule;Bn.sendMessages({id:t,data:n})}})}Og();var la=null;async function Gg(e,t){let a=Object.keys(t);if(la){let n={url:e,config:la.config,state:{...la.state,...t}};la=await ai(n)}else{let n=await Hg(),r=t;a.length===0&&(r=void 0),la=await ai({url:e,config:n,state:r})}return la}function Hg(){return Ce()?Wt():Wg({method:"getConfig"})}async function Wg(e){return await Gr().sendMessage("background:main",e)}})(); +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var c6=Ce();function wn(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function qo(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ut())return globalThis.location.href;try{let t=globalThis.location.href,a=new URL(t);if(a.protocol==="about:"||a.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let n="";try{n=globalThis.parent.location.href}catch{}return n||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}var Wo,oe,Ko,Vp,Ba,zo,Vo,$o={},Yo=[],$p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Rt(e,t){for(var a in t)e[a]=t[a];return e}function Zo(e){var t=e.parentNode;t&&t.removeChild(e)}function Hr(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ko};return r==null&&oe.vnode!=null&&oe.vnode(i),i}function Kt(e){return e.children}function En(e,t){this.props=e,this.context=t}function ra(e,t){if(t==null)return e.__?ra(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Hr(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=a,m.__b=a.__b+1,(p=h[c])===null||p&&m.key==p.key&&m.type===p.type)h[c]=void 0;else for(d=0;dps.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(ps.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return ig(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let S=s.split("://");l=S[0],l==="*"&&S.length>1&&(l="*",s="https://"+S[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,hs),p;try{p=new URL(d)}catch{return ve.debug("invalid match pattern",d,"raw match value:",c),!1}let m=p.host,b=p.pathname;b==="/"&&(c.replace("://","").includes("/")||(b="/*"));let T=rg(l+":",gs(m),gs(b));return T?T.test(e):!1}});if(o)return o}return null}catch{return null}}function gs(e){return e.replaceAll(hs,"*")}function rg(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function xt(e,t){return Jr(e,t)!==null}function ig(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var ug=null;if(typeof trustedTypes<"u")try{ug=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var og=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(og=!0)});var K6=globalThis.document?.createElement("div");function Qr(){return Tr()?"imtAndroid":mn()?"imtIOS":Ce()?"userscript":Ct()?"safari":Ei()?"firefox":vi()?"chrome":"other"}var sg={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},_w={...sg};function Pa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Tn(e){return Array.isArray(e)?e:e?[e]:[]}function fs(e,t){let a=[...e];for(let n of t)n.startsWith("[+]")&&!a.includes(n.slice(3))?a.push(n.slice(3)):n.startsWith("[-]")?a=a.filter(r=>r!==n.slice(3)):a.includes(n)||a.push(n);return a}function Ra(e,t){let a={...e};return ws(a,t),lg(a,t),a}function vs(e,t,a){let n={...e};return vt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),vt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function lg(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;ws(e,r)}function vt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=bs(i);if(u=="rich"){if(!r)return n(i,e[i]);let[p,m,b,T]=bs(i);u=p+"."+m,o=b,s=T}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Tn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!ys(s))return;d=Xr(c,l)}else if(o=="remove_v"){if(!ys(s))return;d=xs(c,l)}else o==="add"?d=Xr(c,l):o=="remove"&&(d=xs(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Xr(c,l):d=l,n(u,d)})}function ws(e,t){return vt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Xr(e,t){let a;if(Array.isArray(e)){let n=Tn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function bs(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function ys(e){let t=Ca();return e&&Pa(t,e)}function xs(e,t){if(Array.isArray(e)){let a=Tn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var Es="userConfig",Ss="userPromptPool",As="userObjectPool";async function Ds(){let e=await Fs(Es)||{},t=await on(Ss)||{},a=await on(As)||{};return dg(e,t,a)}async function Ts(e){let{userConfig:t,promptPool:a,objectPool:n}=await cg(e);await _s(Es,t),await un(Ss,a),await un(As,n)}function cg(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return Cs(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),ks(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function dg(e,t,a){return Cs(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),ks(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function Cs(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function ks(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}function Bs(e,t){return Ps(e,a=>{let n=[];return n=a.split(/\s*==\s*/),n.length>1?t[n[0]]==n[1].trim():(n=a.split(/\s*!=\s*/),n.length>1?t[n[0]]!=n[1].trim():a=="true")})}function Ps(e,t){let a=!0;e=e.replace(/\((.+?)\)/g,(s,l)=>Ps(l,t)+"");let n=[],r=[],i,u=0,o=/ (&&|\|\|) /g;for(;(i=o.exec(e))!==null;)r.push(e.substring(u,i.index)),n.push(i[0]),u=i.index+i[0].length;if(n.length>0){r.length==n.length&&r.push(e.substring(u));for(let s=0;sArray.isArray(n[c]),getMergedValue:c=>n[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),vt({rule:e.generalRule,valueIsArray:c=>Array.isArray(n.generalRule[c]),getMergedValue:c=>n.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await bg(l),fg(a,s,l),l=await wg(l,s),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function mg(){if(J.PROD==="1")return{};let e={};if(J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:J.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:J.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(J.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:J.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(J.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:J.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:J.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(J.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&J.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:J.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:J.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(J.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:J.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(J.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=J.DEEPL_PROXY_ENDPOINT),J.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=J.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),J.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:J.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}J.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=J.IMMERSIVE_TRANSLATE_SERVICE);let t={};return J.DEBUG==="1"&&(t.debug=!0,t.cache=!1),J.MOCK==="1"&&(t.translationService="mock"),t}async function Ta(){let e=await ae.storage.local.get(xa);if(e[xa]){let t=e[xa],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await wr(i),i}else return{}}async function wr(e){await ae.storage.local.set({[xa]:e})}async function Ms(){return J.DEBUG==="1"?void 0:(await ae.storage.local.get(lr))[lr]}async function Ls(){let e=await Ms(),a={...Ar(),...vn,buildinConfigUpdatedAt:J.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let n=new Date(e.buildinConfigUpdatedAt),r=new Date(a.buildinConfigUpdatedAt);n>r&&(a=e)}return a}function cn(){return Ds()}function dn(e){return Ts(e)}async function _s(e,t){await ae.storage.sync.set({[e]:t})}async function Fs(e){return(await ae.storage.sync.get(e))[e]}async function un(e,t){await ae.storage.local.set({[e]:t})}async function on(e){return(await ae.storage.local.get(e))[e]}var pg=async()=>{let e=["zh-CN"];try{e=await ae.i18n.getAcceptLanguages()}catch(n){ve.warn("get browser language error:",n)}let a=e.map(n=>an(n)).find(n=>Xu.find(r=>r===n));return a||"en"},Ar=()=>{let e={...vn,buildinConfigUpdatedAt:J.BUILD_TIME};return{...e,targetLanguage:Bt,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function gg(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function hg(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Bt;let a=await rt("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=Rs(l,n[o]))}),vt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=Rs(l,a[o]))}),vt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}async function bg(e){try{let t=await rt("installedAt",""),a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){ve.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Rs(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}async function yg(e,t,a){let n=e.interfaceLanguage==="en",r=e.targetLanguage==="en",i=a&&a.translationLanguagePattern&&a.translationLanguagePattern.matches&&a.translationLanguagePattern.matches.length===0,u=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!n&&!r&&!i&&u?a.translationLanguagePattern||(a.translationLanguagePattern={matches:["en"],excludeMatches:[]}):a.translationLanguagePattern={matches:[],excludeMatches:[]};let o=a&&a.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(o=!1);let s=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;s===void 0&&(l.length>0?s=!0:s=!1,e.isChangedAlwaysTranslatedUrls=s,t.isChangedAlwaysTranslatedUrls=s,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,p=await rt("installedAt",""),m=Number(await Sa("translage_page_daily",0)),b=Number(await rt(nt,0)),T;b>0&&(Date.now()-b0&&(Date.now()-mn&&(e=t)}return e}function vg(e,t){let a=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let n=e.tempTranslationUrlMatches.filter(r=>new Date(r.expiredAt)>a);if(n.length>0){let r=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(r)?r:[r],u=Array.from(new Set(i.concat(n.map(o=>o.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:u}}}}async function wg(e,t){let a=await Eg(),n=Object.keys(e),r=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of n){let u=i;if(u==="generalRule")typeof t[u]=="object"&&(e[u]=Ra(e[u],t[u]));else if(u==="translationServices")Is(t,e);else if(typeof t[u]!="string"&&typeof t[u]!="boolean"&&typeof t[u]!="number"&&r.includes(u))t[u]&&(e[u]=Object.assign(e[u],t[u])),u==="shortcuts"&&(Ce()||Ct()?e[u]={...e[u],...a}:e[u]={...a});else if(u==="rules"){if(Array.isArray(t[u])){let o=e.rules||[],s={};for(let c of o)c.id&&(s[c.id]=c);let l=t[u].map(c=>c.id&&s[c.id]?vs(e.generalRule,s[c.id],c):c);e[u]=[...l,...e[u]]}if(J.PROD==="0"&&J.DEV_RULES){let o=JSON.parse(J.DEV_RULES);e[u]=[...o,...e[u]]}}else t[u]!==void 0&&(e[u]=t[u])}return e}async function Eg(){let e={};if(!Ce()&&ae.commands&&ae.commands.getAll){let t=await ae.commands.getAll();for(let a of t)a.name&&a.shortcut&&(e[a.name]=a.shortcut)}return e}function js(e,t,a){let n=t;return a.advanceMergeConfig&&a.advanceMergeConfig.forEach(({condition:r,advanceConfig:i})=>{if(!r||!i||!Bs(r,e))return;let{generalRule:o,translationServices:s,...l}=i;vt({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),s&&Is(i,e),o&&(n=Ra(n,o))}),n}var ia="input is invalid type",ei=typeof window=="object",Mt=ei?window:{};Mt.JS_SHA256_NO_WINDOW&&(ei=!1);var Sg=!ei&&typeof self=="object",Ag=!Mt.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;Ag?Mt=global:Sg&&(Mt=self);var B2=!Mt.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,P2=typeof define=="function"&&define.amd,Ma=!Mt.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",N="0123456789abcdef".split(""),Dg=[-2147483648,8388608,32768,128],ht=[24,16,8,0],Cn=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],kn=["hex","array","digest","arrayBuffer"],Ie=[];(Mt.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Ma&&(Mt.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ns=function(e,t){return function(a){return new je(t,!0).update(a)[e]()}},qs=function(e){var t=Ns("hex",e);t.create=function(){return new je(e)},t.update=function(r){return t.create().update(r)};for(var a=0;a>2]|=e[r]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|n&63)<=57344?(o[i>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|n&63)<=64?(this.block=o[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};je.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=Dg[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};je.prototype.hash=function(){var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=this.blocks,l,c,d,p,m,b,T,S,h,P,_;for(l=16;l<64;++l)m=s[l-15],c=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=s[l-2],d=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,s[l]=s[l-16]+c+s[l-7]+d<<0;for(_=t&a,l=0;l<64;l+=4)this.first?(this.is224?(S=300032,m=s[0]-1413257819,o=m-150054599<<0,n=m+24177077<<0):(S=704751109,m=s[0]-210244248,o=m-1521486534<<0,n=m+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),S=e&t,p=S^e&a^_,T=r&i^~r&u,m=o+d+T+Cn[l]+s[l],b=c+p,o=n+m<<0,n=m+b<<0),c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),h=n&e,p=h^n&t^S,T=o&r^~o&i,m=u+d+T+Cn[l+1]+s[l+1],b=c+p,u=a+m<<0,a=m+b<<0,c=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),d=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),P=a&n,p=P^a&e^h,T=u&o^~u&r,m=i+d+T+Cn[l+2]+s[l+2],b=c+p,i=t+m<<0,t=m+b<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),_=t&a,p=_^t&n^P,T=i&u^~i&o,m=r+d+T+Cn[l+3]+s[l+3],b=c+p,r=e+m<<0,e=m+b<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+a<<0,this.h3=this.h3+n<<0,this.h4=this.h4+r<<0,this.h5=this.h5+i<<0,this.h6=this.h6+u<<0,this.h7=this.h7+o<<0};je.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=N[e>>28&15]+N[e>>24&15]+N[e>>20&15]+N[e>>16&15]+N[e>>12&15]+N[e>>8&15]+N[e>>4&15]+N[e&15]+N[t>>28&15]+N[t>>24&15]+N[t>>20&15]+N[t>>16&15]+N[t>>12&15]+N[t>>8&15]+N[t>>4&15]+N[t&15]+N[a>>28&15]+N[a>>24&15]+N[a>>20&15]+N[a>>16&15]+N[a>>12&15]+N[a>>8&15]+N[a>>4&15]+N[a&15]+N[n>>28&15]+N[n>>24&15]+N[n>>20&15]+N[n>>16&15]+N[n>>12&15]+N[n>>8&15]+N[n>>4&15]+N[n&15]+N[r>>28&15]+N[r>>24&15]+N[r>>20&15]+N[r>>16&15]+N[r>>12&15]+N[r>>8&15]+N[r>>4&15]+N[r&15]+N[i>>28&15]+N[i>>24&15]+N[i>>20&15]+N[i>>16&15]+N[i>>12&15]+N[i>>8&15]+N[i>>4&15]+N[i&15]+N[u>>28&15]+N[u>>24&15]+N[u>>20&15]+N[u>>16&15]+N[u>>12&15]+N[u>>8&15]+N[u>>4&15]+N[u&15];return this.is224||(s+=N[o>>28&15]+N[o>>24&15]+N[o>>20&15]+N[o>>16&15]+N[o>>12&15]+N[o>>8&15]+N[o>>4&15]+N[o&15]),s};je.prototype.toString=je.prototype.hex;je.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,a=this.h2,n=this.h3,r=this.h4,i=this.h5,u=this.h6,o=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,a>>24&255,a>>16&255,a>>8&255,a&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(o>>24&255,o>>16&255,o>>8&255,o&255),s};je.prototype.array=je.prototype.digest;je.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function _n(e,t,a){var n,r=typeof e;if(r==="string"){var i=[],u=e.length,o=0,s;for(n=0;n>6,i[o++]=128|s&63):s<55296||s>=57344?(i[o++]=224|s>>12,i[o++]=128|s>>6&63,i[o++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++n)&1023),i[o++]=240|s>>18,i[o++]=128|s>>12&63,i[o++]=128|s>>6&63,i[o++]=128|s&63);e=i}else if(r==="object"){if(e===null)throw new Error(ia);if(Ma&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Ma||!ArrayBuffer.isView(e)))throw new Error(ia)}else throw new Error(ia);e.length>64&&(e=new je(t,!0).update(e).array());var l=[],c=[];for(n=0;n<64;++n){var d=e[n]||0;l[n]=92^d,c[n]=54^d}je.call(this,t,a),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=a}_n.prototype=new je;_n.prototype.finalize=function(){if(je.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();je.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),je.prototype.finalize.call(this)}};var ua=qs();ua.sha256=ua;ua.sha224=qs(!0);ua.sha256.hmac=zs();ua.sha224.hmac=zs(!0);var Us=ua;var Tg=Us.sha256;function ti(e){return Promise.resolve(Tg(e))}var Cg=Kr(null);async function _g(e,t,a){a=a||await vr();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&Gs(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&Gs(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await cn();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Yu(a),await dn(i)}catch{return!1}return r}async function Fg(e,t){(await Promise.allSettled(e.map(n=>Ht({url:`${x.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&_g("add",r,t)}})}async function Bg(e,t,a=!0){e||(e=await Wt()),t||(t=await vr());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await Mg();i=await Rg(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&Fg(u,t)}var E1=pa(Bg,1500);function Gs(e){return Pa(Sr(),e.extensionVersion)}function Pg(e,t){return t?!Pa(e.version,t):!1}function Rg(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{Pg(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function Mg(){return(await Ht({url:`${x.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function ai(e){let{url:t,config:a,state:n}=e,r=new URL(t),i="auto",{translationParagraphLanguagePattern:u,translationService:o,translationServices:s,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:p,sourceLanguageUrlPattern:m,immediateTranslationPattern:b}=a,T=p||"zh-CN",S=oa(t,u),h=oa(t,b),P=o,_=Object.keys(s);for(let D of _){let K=s[D];if(oa(t,K)){P=D;break}}let z=l,te=Object.keys(c);for(let D of te){let K=c[D];if(K&&oa(t,K)){z=D;break}}let A=oa(t,d),f=Hs(t,d);f||(f=xt(t,Cu)),f||(f=xt(t,a.blockUrls));let y=Hs(t,a.inputTranslationUrlPattern);y||(y=xt(t,a.inputTranslationBlockUrls));let v=xt(t,a.mutationBlockUrls),R=Object.keys(m),O={};for(let D of R){let K=m[D];if(K&&K.matches)for(let be of K.matches)O[be]=D}let F=Object.keys(O),B=Jr(t,F);B&&(i=O[B]??"auto",O[B]&&O[B]!=="auto"&&hr(O[B]));let Z=r.hostname,V=await ti(Z),fe=r.pathname+r.search+r.hash,we=await ti(fe),ne=`https://${V}.com/${we}`,re=await Ta(),Re=await Ls(),se=a.translationStartMode,E=Ig(re,a);re.aiAssistants=jg(E,a),se==="dynamic"&&h&&(se="immediate");let C=P;a.inputTranslationService&&a.inputTranslationService!=="inherit"&&(C=a.inputTranslationService);let L=P;a.mouseHoverTranslationService&&a.mouseHoverTranslationService!=="inherit"&&(L=a.mouseHoverTranslationService);let ee=P;a.subtitleTranslateService&&a.subtitleTranslateService!=="inherit"&&(ee=a.subtitleTranslateService);let W=await qt.get(Dt,null),de=!1;W&&(de=zt(W)),a.platform=Qr();let q={targetLanguage:T,config:a,translationService:P,inputTranslationService:C,mouseHoverTranslationService:L,subtitleTranslateService:ee,isTranslateUrl:A,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:f,isMutationTranslationExcludeUrl:v,isInputTranslationExcludeUrl:y,rule:a.generalRule,url:t,encryptedUrl:ne,state:n?Object.assign({translationMode:a.translationMode,translationArea:a.translationArea,translationStartMode:se,immediateTranslationTextCount:a.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:S,cache:a.cache,translationTheme:z,isTranslateDirectlyOnHover:!1},n):{translationMode:a.translationMode,translationArea:a.translationArea,translationStartMode:se,immediateTranslationTextCount:a.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:S,cache:a.cache,translationTheme:z,isTranslateDirectlyOnHover:!1},localConfig:re};W&&(q.user=W,de?q.isPro=!0:q.isPro=!1),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(D=>!q.config.generalRule.bodyTranslateTags.includes(D)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(D=>D!==".btn"));let G=a.translationServices[q.translationService]||{};G.immediateTranslationTextCount!==void 0&&Lg(G.immediateTranslationTextCount)&&G.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=G.immediateTranslationTextCount),q.translationService==="deepl"&&(G?.authKey?.startsWith("immersive_")||G?.provider==="pro"&&q.user?.token)&&G.immediateTranslationTextCountForImmersiveDeepl!==void 0&&G.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=G.immediateTranslationTextCountForImmersiveDeepl),G&&G.translationDebounce&&typeof G.translationDebounce=="number"&&(q.state.translationDebounce=G.translationDebounce);let U=Re.immediateTranslationTextCount;a.immediateTranslationTextCount!==U&&(q.state.immediateTranslationTextCount=a.immediateTranslationTextCount);let H=a.rules,Y;globalThis.PDFViewerApplication?Y=H.find(D=>D.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Y=H.find(D=>D.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Y=H.find(D=>D.pageType=="ebookBuilder"):Y=H.find(D=>oa(t,D)),Y&&Y.pageType==="ebookBuilder"&&(q.state.translationStartMode="immediate");let ue=a.generalRule;if(Y&&(q.rule=Ra(ue,Y),q.rule=js(a,q.rule,Y)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(D=>!q.rule.bodyTranslateTags.includes(D)&&!q.rule.forceTranslateTags.includes(D))),q.rule.mainFrameSelector){let D=document.querySelector(q.rule.mainFrameSelector);D&&(q.mainFrame=D)}return q}function oa(e,t){if(!t)return!1;let{matches:a,excludeMatches:n,selectorMatches:r,excludeSelectorMatches:i}=t;return n&&n.length>0&&xt(e,n)?!1:a&&a.length>0&&xt(e,a)?!0:i&&i.length>0&&wn(i)?!1:!!(r&&r.length>0&&wn(r))}function Hs(e,t){if(!t)return!1;let{excludeMatches:a,excludeSelectorMatches:n}=t;return!!(a&&a.length>0&&xt(e,a)||n&&n.length>0&&wn(n))}function Lg(e){return typeof e=="number"}function Ig(e,t){let a=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(r=>{let i=a.findIndex(u=>u.id===r.id);i!==-1?a[i]=r:a.push(r)}),a}function jg(e,t){try{let a=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(n=>{let r=fs(n.matches||[],a[n.id]?.matches||[]);return{...n,matches:r}})}catch(a){return ve.error(a),e}}var sa="imt-subtitle-inject",Fn=class{from;to;constructor(t,a){this.from=t,this.to=a}sendMessages(t){globalThis.postMessage({type:sa,to:this.to,from:this.from,action:t.action,data:t.data,id:t.id||new Date().getTime(),isAsync:!1})}getRandomId(){return(new Date().getTime()+Math.random())*Math.random()}sendAsyncMessages({action:t,data:a}){return new Promise(n=>{let r=this.getRandomId();globalThis.postMessage({type:sa,to:this.to,from:this.from,action:t,data:a,id:r,isAsync:!0});let i=({data:u})=>{sa===u.type&&u.id===r&&u.to===this.from&&(n(u.data),globalThis.removeEventListener("message",i))};globalThis.addEventListener("message",i)})}handleMessageOnce(t){return new Promise(a=>{let n=({data:r})=>{sa===r.type&&r.action===t&&r.to===this.from&&(a(r.data),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)})}handleMessage(t,a){let n=({data:r})=>{sa===r.type&&r.action===t&&r.to===this.from&&a(r)};return globalThis.addEventListener("message",n),()=>{globalThis.removeEventListener("message",n)}}handleMessages(t){let a=({data:n})=>{sa===n.type&&n.to===this.from&&t(n)};return globalThis.addEventListener("message",a),()=>{globalThis.removeEventListener("message",a)}}},Bn=new Fn("content-script","inject"),Ng=new Fn("inject","content-script"),Ws={get(e,t,a){return t in e?(...n)=>{let r=e[t];return typeof r=="function"?r.apply(e,n):Reflect.get(e,t,a)}:n=>e.sendAsyncMessages({action:t,data:n})}},W1=new Proxy(Ng,Ws),K1=new Proxy(Bn,Ws);async function Og(){try{let e=await Gg(qo(),{});if(e.isTranslateExcludeUrl)return;let t=e.rule.subtitleRule;t&&t.type&&!t.disabled&&t.isInject&&zg(e);let a=e.rule.imageRule;a?.enable&&a.type&&qg(e),Ug(e)}catch{}}function qg(e){if(Ce()){let a=Fe().IMMERSIVE_TRANSLATE_IMAGE_INJECT,n=document.createElement("script");n.id="imt-image-inject",n.textContent=a,document.head?.appendChild(n)}else ae.storage.sync.get("open").then(()=>{let t=ae.runtime.getURL("image/inject.js");if(document.querySelector(`script[src='${t}']`))return;let n=document.createElement("script");n.src=t,n.id="imt-image-inject",document.head?.appendChild(n)})}function zg(e){if(Ce()){let a=Fe().IMMERSIVE_TRANSLATE_VIDEO_SUBTITLE_INJECT,n=document.createElement("script");n.id="imt-subtitles-inject",n.textContent=a,document.head?.appendChild(n)}else ae.storage.sync.get("open").then(()=>{let t=ae.runtime.getURL("video-subtitle/inject.js");if(document.querySelector(`script[src='${t}']`))return;let n=document.createElement("script");n.src=t,n.id="imt-subtitles-inject",document.head?.appendChild(n)})}function Ug(e){Bn.handleMessages(({id:t,action:a})=>{if(a==="getConfig"){let n=e.rule.subtitleRule;Bn.sendMessages({id:t,data:n})}})}Og();var la=null;async function Gg(e,t){let a=Object.keys(t);if(la){let n={url:e,config:la.config,state:{...la.state,...t}};la=await ai(n)}else{let n=await Hg(),r=t;a.length===0&&(r=void 0),la=await ai({url:e,config:n,state:r})}return la}function Hg(){return Ce()?Wt():Wg({method:"getConfig"})}async function Wg(e){return await Gr().sendMessage("background:main",e)}})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/firefox/locales.json b/dist/firefox/locales.json index db008ce..6ccdebf 100644 --- a/dist/firefox/locales.json +++ b/dist/firefox/locales.json @@ -2501,7 +2501,7 @@ "browserShortcutsSucks": "사용자 지정 바로가기의 형식은:입니다(자동 인식되지 않으므로 직접 입력하세요).", "enableLineBreakDescription": "이 기능을 켜면 긴 단락의 각 문장 끝에 줄 바꿈이 삽입되어 문장을 더 쉽게 읽을 수 있습니다.", "browser.shortBrandName": "Immersive Translate", - "browser.brandName": "몰입형 번역 - 웹 및 PDF 번역", + "browser.brandName": "몰입형 번역 - 웹 사이트 번역 확장 프로그램 | PDF 번역 | 무료", "browser.brandDescription": "[몰입형 번역] 무료 (원문/번역문) 이중 언어 대조 웹사이트 번역 확장 프로그램으로 PDF 번역(조판 유지), 비디오 이중 언어 자막 번역(YouTube, Netflix 등), EPUB 전자책 번역을 지원합니다.", "browser.toggleTranslatePage": "{targetLanguage}로 번역하세요", "browser.toggleTranslateTheWholePage": "페이지의 모든 영역 번역/원문 텍스트 표시", diff --git a/dist/firefox/manifest.json b/dist/firefox/manifest.json index 3ca48ad..7c7ea9a 100644 --- a/dist/firefox/manifest.json +++ b/dist/firefox/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "__MSG_brandName__", "description": "__MSG_brandDescription__", - "version": "1.12.5", + "version": "1.12.6", "default_locale": "en", "background": { "scripts": [ diff --git a/dist/firefox/options.js b/dist/firefox/options.js index b3e9639..fc94c99 100644 --- a/dist/firefox/options.js +++ b/dist/firefox/options.js @@ -1,4 +1,4 @@ -(()=>{var bE=Object.defineProperty;var yE=(e,t)=>{for(var n in t)bE(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var hE=Object.defineProperty;var bE=(e,t)=>{for(var n in t)hE(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,54 +5447,54 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var CE=Object.create,Gg=Object.defineProperty,xE=Object.getOwnPropertyDescriptor,A2=Object.getOwnPropertyNames,SE=Object.getPrototypeOf,TE=Object.prototype.hasOwnProperty,wE=(e,t)=>function(){return t||(0,e[A2(e)[0]])((t={exports:{}}).exports,t),t.exports},EE=(e,t)=>{for(var n in t)Gg(e,n,{get:t[n],enumerable:!0})},Wg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of A2(t))!TE.call(e,a)&&a!==n&&Gg(e,a,{get:()=>t[a],enumerable:!(r=xE(t,a))||r.enumerable});return e},AE=(e,t,n)=>(Wg(e,t,"default"),n&&Wg(n,t,"default")),k2=(e,t,n)=>(n=e!=null?CE(SE(e)):{},Wg(t||!e||!e.__esModule?Gg(n,"default",{value:e,enumerable:!0}):n,e)),D2=wE({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(T,A=void 0){super(A),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let u=S=>S&&typeof S=="object"&&typeof S.then=="function",l=(S,T)=>(...A)=>{i.runtime.lastError?S.reject(new Error(i.runtime.lastError.message)):T.singleCallbackArg||A.length<=1&&T.singleCallbackArg!==!1?S.resolve(A[0]):S.resolve(A)},c=S=>S==1?"argument":"arguments",m=(S,T)=>function(D,...M){if(M.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${S}(), got ${M.length}`);return new Promise((I,P)=>{if(T.fallbackToNoCallback)try{D[S](...M,l({resolve:I,reject:P},T))}catch{D[S](...M),T.fallbackToNoCallback=!1,T.noCallback=!0,I()}else T.noCallback?(D[S](...M),I()):D[S](...M,l({resolve:I,reject:P},T))})},g=(S,T,A)=>new Proxy(T,{apply(D,M,I){return A.call(M,S,...I)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),f=(S,T={},A={})=>{let D=Object.create(null),M={has(P,R){return R in S||R in D},get(P,R,L){if(R in D)return D[R];if(!(R in S))return;let _=S[R];if(typeof _=="function")if(typeof T[R]=="function")_=g(S,S[R],T[R]);else if(p(A,R)){let U=m(R,A[R]);_=g(S,S[R],U)}else _=_.bind(S);else if(typeof _=="object"&&_!==null&&(p(T,R)||p(A,R)))_=f(_,T[R],A[R]);else if(p(A,"*"))_=f(_,T[R],A["*"]);else return Object.defineProperty(D,R,{configurable:!0,enumerable:!0,get(){return S[R]},set(U){S[R]=U}}),_;return D[R]=_,_},set(P,R,L,_){return R in D?D[R]=L:S[R]=L,!0},defineProperty(P,R,L){return Reflect.defineProperty(D,R,L)},deleteProperty(P,R){return Reflect.deleteProperty(D,R)}},I=Object.create(S);return new Proxy(I,M)},h=S=>({addListener(T,A,...D){T.addListener(S.get(A),...D)},hasListener(T,A){return T.hasListener(S.get(A))},removeListener(T,A){T.removeListener(S.get(A))}}),y=new s(S=>typeof S!="function"?S:function(A){let D=f(A,{},{getContent:{minArgs:0,maxArgs:0}});S(D)}),b=new s(S=>typeof S!="function"?S:function(A,D,M){let I=!1,P,R=new Promise(z=>{P=function(Y){I=!0,z(Y)}}),L;try{L=S(A,D,P)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!I)return!1;let U=z=>{z.then(Y=>{M(Y)},Y=>{let ee;Y&&(Y instanceof Error||typeof Y.message=="string")?ee=Y.message:ee="An unexpected error occurred",M({__mozWebExtensionPolyfillReject__:!0,message:ee})}).catch(Y=>{})};return U(_?L:R),!0}),v=({reject:S,resolve:T},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?T():S(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?S(new Error(A.message)):T(A)},C=(S,T,A,...D)=>{if(D.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${S}(), got ${D.length}`);return new Promise((M,I)=>{let P=v.bind(null,{resolve:M,reject:I});D.push(P),A.sendMessage(...D)})},x={devtools:{network:{onRequestFinished:h(y)}},runtime:{onMessage:h(b),onMessageExternal:h(b),sendMessage:C.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:C.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},f(i,x,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),L2={};EE(L2,{default:()=>qc});var kE=k2(D2());AE(L2,k2(D2()));var{default:E2,...DE}=kE,qc=E2!==void 0?E2:DE;globalThis.immersiveTranslateBrowserAPI=qc;var Kc,Ue,F2,LE,Ru,M2,B2,Vc={},_2=[],ME=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vi(e,t){for(var n in t)e[n]=t[n];return e}function O2(e){var t=e.parentNode;t&&t.removeChild(e)}function mo(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Kc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return zc(e,o,r,a,null)}function zc(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++F2};return a==null&&Ue.vnode!=null&&Ue.vnode(i),i}function le(e){return e.children}function co(e,t){this.props=e,this.context=t}function ts(e,t){if(t==null)return e.__?ts(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?zc(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=b[c])===null||g&&p.key==g.key&&p.type===g.type)b[c]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Yc}),n.__[e]}function N(e){return Iu=1,FE($2,e)}function FE(e,t,n){var r=Fu(rs++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):$2(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Gt,!Gt.u)){Gt.u=!0;var a=Gt.shouldComponentUpdate;Gt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,m!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function q(e,t){var n=Fu(rs++,3);!Ue.__s&&Zg(n.__H,t)&&(n.__=e,n.i=t,Gt.__H.__h.push(n))}function Bu(e,t){var n=Fu(rs++,4);!Ue.__s&&Zg(n.__H,t)&&(n.__=e,n.i=t,Gt.__h.push(n))}function Ce(e){return Iu=5,ne(function(){return{current:e}},[])}function ne(e,t){var n=Fu(rs++,7);return Zg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ue(e,t){return Iu=8,ne(function(){return e},t)}function Se(e){var t=Gt.context[e.__c],n=Fu(rs++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Gt)),t.props.value):e.__}function BE(){for(var e;e=X2.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qc),e.__H.__h.forEach(Jg),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){typeof e.type!="function"||e.o||e.type===le?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Gt=null,G2&&G2(e)},Ue.__r=function(e){K2&&K2(e),rs=0;var t=(Gt=e.__c).__H;t&&(Qg===Gt?(t.__h=[],Gt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Yc,n.__N=n.i=void 0})):(t.__h.forEach(Qc),t.__h.forEach(Jg),t.__h=[])),Qg=Gt},Ue.diffed=function(e){Y2&&Y2(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(X2.push(t)!==1&&W2===Ue.requestAnimationFrame||((W2=Ue.requestAnimationFrame)||_E)(BE)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Yc&&(n.__=n.__V),n.i=void 0,n.__V=Yc})),Qg=Gt=null},Ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Qc),n.__h=n.__h.filter(function(r){return!r.__||Jg(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Ue.__e(r,n.__v)}}),Q2&&Q2(e,t)},Ue.unmount=function(e){J2&&J2(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Qc(r)}catch(a){t=a}}),n.__H=void 0,t&&Ue.__e(t,n.__v))};var Z2=typeof requestAnimationFrame=="function";function _E(e){var t,n=function(){clearTimeout(r),Z2&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Z2&&(t=requestAnimationFrame(n))}function Qc(e){var t=Gt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Gt=t}function Jg(e){var t=Gt;e.__c=e.__(),Gt=t}function Zg(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function $2(e,t){return typeof t=="function"?t(e):t}var _u;function lp(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function lb(e,t=","){return e.map(lp).join(t)}var cp=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function as(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Zc(e,t="@media "){return t+wt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function wt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function eb(e){return e}function Nu(){}var on={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function cb(e){return e.match(/[-=:;]/g)?.length||0}function rp(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(cb(e),15)<<18}var OE=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function dp({n:e,i:t,v:n=[]},r,a,i){e&&(e=lp({n:e,i:t,v:n})),i=[...wt(i)];for(let s of n){let u=r.theme("screens",s);for(let l of wt(u&&Zc(u)||r.v(s))){var o;i.push(l),a|=u?67108864|rp(l):s=="dark"?1073741824:l[0]=="@"?rp(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~OE.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var mp=new Map;function ap(e){if(e.d){let t=[],n=Xg(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Xg(r,i=>Xg(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):$g(i,o)}return $g(o,i)})):r,"&"),r=>$g(r,e.n?"."+cp(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Xg(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function $g(e,t){return e.replace(/&/g,t)}var tb=new Intl.Collator("en",{numeric:!0});function db(e,t){for(var n=0,r=e.length;n>1;0>=mb(e[a],t)?n=a+1:r=a}return r}function mb(e,t){let n=e.p&on.o;return n==(t.p&on.o)&&(n==on.b||n==on.o)?0:e.p-t.p||e.o-t.o||tb.compare(nb(e.n),nb(t.n))||tb.compare(rb(e.n),rb(t.n))}function nb(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function rb(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ep(e,t){return Math.round(parseInt(e,16)*t)}function Ja(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ep(e.substr(1,i),o),ep(e.substr(1+i,i),o),ep(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function gp(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},m){let g=[],p="",f=0,h=0;for(let v in o||{}){var y,b;let C=o[v];if(v[0]=="@"){if(!C)continue;if(v[1]=="a"){g.push(...hp(s,u,Ou(""+C),m,u,l,c,!0));continue}if(v[1]=="l"){for(let x of wt(C))g.push(...i(x,{n:s,p:(y=on[v[7]],u&~on.o|y),r:v[7]=="d"?[]:l,i:c},m));continue}if(v[1]=="i"){g.push(...wt(C).map(x=>({p:-1,o:0,r:[],d:v+" "+x})));continue}if(v[1]=="k"){g.push({p:on.d,o:0,r:[v],d:i(C,{p:on.d},m).map(ap).join("")});continue}if(v[1]=="f"){g.push(...wt(C).map(x=>({p:on.d,o:0,r:[v],d:i(x,{p:on.d},m).map(ap).join("")})));continue}}if(typeof C!="object"||Array.isArray(C))v=="label"&&C?s=C+as(JSON.stringify([u,c,o])):(C||C===0)&&(v=v.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),h+=1,f=Math.max(f,(b=v)[0]=="-"?0:cb(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+wt(C).map(x=>m.s(v,pp(""+x,m.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let x=u;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(w,S)=>{let T=m.theme("screens",S);return T?(x|=67108864,Zc(T,"")):w}),x|=rp(v)),g.push(...i(C,{n:s,p:x,r:[...l,v],i:c},m))}else g.push(...i(C,{p:u,r:[...l,v]},m))}return g.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(f||15,15),r:l,d:p}),g.sort(mb)}(e,dp(t,n,r,a),n)}function pp(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?Ja(s):""+wt(s).filter(u=>Object(u)!==u)})}function fp(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Jc(e,t,n=on.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,m,g){u={...u,i:u.i||g};let p=function(f,h){let y=mp.get(f.n);return y?y(f,h):h.r(f.n,f.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:m,p:c}=dp(u,l,c,m),fp(Jc(Ou(p),l,c,m,u.i),u.n)):Array.isArray(p)?p.map(f=>{var h,y;return{o:0,...f,r:[...wt(m),...wt(f.r)],p:(h=c,y=f.p??c,h&~on.o|y)}}):gp(p,u,l,c,m):[{c:lp(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(db(i,s),0,s);return i}function hp(e,t,n,r,a,i,o,s){return fp((s?n.flatMap(u=>Jc([u],r,a,i,o)):Jc(n,r,a,i,o)).map(u=>u.p&on.o&&(u.n||t==on.b)?{...u,p:u.p&~on.o|t,o:0}:u),e)}function NE(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=dp(i,o,t);return n&&hp(s,t,n,o,u,l,c,r)},mp.set(e,a),e}function tp(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(UE),i:a}))}}function UE(e,t,n){return n.indexOf(e)==t}var ab=new Map;function Ou(e){let t=ab.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&tp(n,r)),a=s+1};for(;s1?m.slice(0,-1)+as(JSON.stringify([m,g])):m+"("+lb(g)+")",on.a,g,/@$/.test(m))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),ab.set(e,t=r[0])}return t}function gb(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function pb(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?gb(e,t,n=>np(n).trim()):t.filter(Boolean).reduce((n,r)=>n+np(r),e?np(e):"")}function np(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=pb(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var GV=fb("@"),KV=fb("~");function fb(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return lb(Ou(n+e+"("+pb(r,a)+")"))}}function ip(e,t){return Array.isArray(e)?ib(gb(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?ib(e):[e]}var jE=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function ib(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=jE.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function hb(e,...t){var n;let r=ip(e,t),a=(r.find(i=>i.label)?.label||"css")+as(JSON.stringify(r));return n=(i,o)=>fp(r.flatMap(s=>gp(s,i,o,on.o)),a),mp.set(a,n),a}var YV=new Proxy(function(e,t){return ob("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return ob(t,n,r)}}});function ob(e,t,n){return{toString(){return hb({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function oe(e,t,n){return[e,op(t,n)]}function op(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):sp(n,1)}):n=>e||{[n[1]]:sp(n,2)}}function sp(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function se(e,t,n,r){return[e,HE(t,n,r)]}function HE(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=bb(e||a[1]),s=i.theme(o,a.$$)??xa(a.$$,o,i);if(s!=null)return a._=sp(a,0,s),r(a,i,o)}}function gn(e,t={},n){return[e,qE(t,n)]}function qE(e={},t){return(n,r)=>{let{section:a=bb(n[0]).replace("-","")+"Color"}=e,[i,o]=zE(n.$$);if(!i)return;let s=r.theme(a,i)||xa(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:m}=e,g=r.theme(l,o||"DEFAULT")||o&&xa(o,l,r),p=t||(({_:h})=>{let y=Uu(c,h);return m?{[m]:y}:y});n._={value:Ja(s,{opacityVariable:u||void 0,opacityValue:g||void 0}),color:h=>Ja(s,h),opacityVariable:u||void 0,opacityValue:g||void 0};let f=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:Ja(h,{opacityVariable:u||void 0,opacityValue:g||"1"}),color:y=>Ja(h,y),opacityVariable:u||void 0,opacityValue:g||void 0},f={"&":f,[r.v("dark")]:p(n,r)})}return f}}function zE(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Uu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function xa(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=is(pp(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function bb(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function is(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>is(n)+r+is(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var QV=Symbol();function ju({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:wt(t.variants),rules:wt(t.rules),ignorelist:wt(t.ignorelist),hash:void 0,stringify:(r,a)=>r+":"+a,finalize:[]};for(let r of wt([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&wt(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:a,darkMode:i=n.darkMode,darkColor:o=n.darkColor,theme:s,variants:u,rules:l,ignorelist:c,hash:m=n.hash,stringify:g=n.stringify,finalize:p}=typeof r=="function"?r(n):r;n={preflight:n.preflight!==!1&&a!==!1&&[...n.preflight,...wt(a)],darkMode:i,darkColor:o,theme:{...n.theme,...s,extend:{...n.theme.extend,...s?.extend}},variants:[...n.variants,...wt(u)],rules:[...n.rules,...wt(l)],ignorelist:[...n.ignorelist,...wt(c)],hash:m,stringify:g,finalize:[...n.finalize,...wt(p)]}}return n}function sb(e,t,n,r,a,i){for(let o of t){let s=n.get(o);s||n.set(o,s=r(o));let u=s(e,a,i);if(u)return u}}function VE(e){var t;return up(e[0],typeof(t=e[1])=="function"?t:()=>t)}function WE(e){var t,n;return Array.isArray(e)?up(e[0],op(e[1],e[2])):up(e,op(t,n))}function up(e,t){return yb(e,(n,r,a,i)=>{let o=r.exec(n);if(o)return o.$$=n.slice(o[0].length),o.dark=i,t(o,a)})}function yb(e,t){let n=wt(e).map(GE);return(r,a,i)=>{for(let o of n){let s=t(r,o,a,i);if(s)return s}}}function GE(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function KE(e,t){let n=ju(e),r=function({theme:u,darkMode:l,darkColor:c=Nu,variants:m,rules:g,hash:p,stringify:f,ignorelist:h,finalize:y}){let b=new Map,v=new Map,C=new Map,x=new Map,w=yb(h,(A,D)=>D.test(A));m.push(["dark",Array.isArray(l)||l=="class"?`${wt(l)[1]||".dark"} &`:typeof l=="string"&&l!="media"?l:"@media (prefers-color-scheme:dark)"]);let S=typeof p=="function"?A=>p(A,as):p?as:eb;S!==eb&&y.push(A=>({...A,n:A.n&&S(A.n),d:A.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,M)=>"--"+S(M).replace("#",""))}));let T={theme:function({extend:A={},...D}){let M={},I={get colors(){return P("colors")},theme:P,negative(){return{}},breakpoints(L){let _={};for(let U in L)typeof L[U]=="string"&&(_["screen-"+U]=L[U]);return _}};return P;function P(L,_,U,z){if(L){if({1:L,2:z}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let xe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,W,te=W)=>xe.push(te)),L=xe.shift(),U=_,_=xe.join("-")}let ee=M[L]||Object.assign(Object.assign(M[L]={},R(D,L)),R(A,L));if(_==null)return ee;_||="DEFAULT";let Re=ee[_]??_.split("-").reduce((xe,H)=>xe?.[H],ee)??U;return z?Ja(Re,{opacityValue:pp(z,P)}):Re}let Y={};for(let ee of[...Object.keys(D),...Object.keys(A)])Y[ee]=P(ee);return Y}function R(L,_){let U=L[_];return typeof U=="function"&&(U=U(I)),U&&/color|fill|stroke/i.test(_)?function z(Y,ee=[]){let Re={};for(let xe in Y){let H=Y[xe],W=[...ee,xe];Re[W.join("-")]=H,xe=="DEFAULT"&&(W=ee,Re[ee.join("-")]=H),typeof H=="object"&&Object.assign(Re,z(H,W))}return Re}(U):U}}(u),e:cp,h:S,s(A,D){return f(A,D,T)},d(A,D,M){return c(A,D,T,M)},v(A){return b.has(A)||b.set(A,sb(A,m,v,VE,T)||"&:"+A),b.get(A)},r(A,D){let M=JSON.stringify([A,D]);return C.has(M)||C.set(M,!w(A,T)&&sb(A,g,x,WE,T,D)),C.get(M)},f(A){return y.reduce((D,M)=>M(D,T),A)}};return T}(n),a=new Map,i=[],o=new Set;t.resume(u=>a.set(u,u),(u,l)=>{t.insert(u,i.length,l),i.push(l),o.add(u)});function s(u){let l=r.f(u),c=ap(l);if(c&&!o.has(c)){o.add(c);let m=db(i,u);t.insert(c,m,u),i.splice(m,0,u)}return l.n}return Object.defineProperties(function(u){if(!a.size)for(let c of wt(n.preflight))typeof c=="function"&&(c=c(r)),c&&(typeof c=="string"?hp("",on.b,Ou(c),r,on.b,[],!1,!0):gp(c,{},r,on.b)).forEach(s);u=""+u;let l=a.get(u);if(!l){let c=new Set;for(let m of Jc(Ou(u),r))c.add(m.c).add(s(m));l=[...c].filter(Boolean).join(" "),a.set(u,l).set(l,l)}return l},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let u=t.snapshot(),l=new Set(o),c=new Map(a),m=[...i];return()=>{u(),o=l,a=c,i=m}},clear(){t.clear(),o=new Set,a=new Map,i=[]},destroy(){this.clear(),t.destroy()}}))}function YE(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function QE(e){let t=new MutationObserver(n);return{observe(a){t.observe(a,{attributeFilter:["class"],subtree:!0,childList:!0}),r(a),n([{target:a,type:""}])},disconnect(){t.disconnect()}};function n(a){for(let{type:i,target:o}of a)if(i[0]=="a")r(o);else for(let s of o.querySelectorAll("[class]"))r(s);t.takeRecords()}function r(a){let i,o=a.getAttribute?.("class");o&&YE(o,i=e(o))&&a.setAttribute("class",i)}}function JE(e=bp,t=typeof document<"u"&&document.documentElement){if(t){let n=QE(e);n.observe(t);let{destroy:r}=e;e.destroy=()=>{n.disconnect(),r.call(e)}}return e}function vb(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function ZE(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:vb(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,r=>r.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,r){try{t.insertRule(n,r)}catch{t.insertRule(":root{}",r)}},resume:Nu}}function XE(e){let t=e&&typeof e!="string"?e:vb(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,r=>r.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,r){t.insertBefore(document.createTextNode(n),t.childNodes[r]||null)},resume:Nu}}function $E(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,a){t.splice(r,0,e?`/*!${a.p.toString(36)},${(2*a.o).toString(36)}${a.n?","+a.n:""}*/${n}`:n)},resume:Nu}}function Cb(e,t){let n=typeof document>"u"?$E(!t):e?XE():ZE();return t||(n.resume=tA),n}function eA(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):wt(e)).join("")}function tA(e,t){let n=eA(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var a;let i;if(r.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;a=r.exec(n),i&&t(n.slice(i.index+i[0].length,a?.index),{p:parseInt(i[1],36),o:parseInt(i[2],36)/2,n:i[3]}),i=a;);}}var bp=new Proxy(Nu,{apply(e,t,n){return _u(n[0])},get(e,t){let n=_u[t];return typeof n=="function"?function(){return n.apply(_u,arguments)}:n}});function xb(e={},t=Cb,n){return _u?.destroy(),_u=JE(KE(e,typeof t=="function"?t():t),n)}function yp(e,t=!0){let n=ju(e);return xb({...n,hash:n.hash??t},()=>Cb(!t))}var JV=function e(t){return new Proxy(function(n,...r){return ub(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return ub(t,r,a,i)}}})}();function ub(e,t,n,r){return{toString(){let a=ip(n,r),i=cp(t+as(JSON.stringify([t,a])));return(typeof e=="function"?e:bp)(hb({[`@keyframes ${i}`]:ip(n,r)})),i}}}var nA=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Sb(e){return nA.get(e)}function Tb(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function wb(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var rA=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Xc(){return({stringify:e})=>({stringify(t,n,r){let a="",i=Sb(t);i&&(a+=e(i,n,r)+";");let o=Tb(t),s=wb(t,n);for(let u of rA)o&u[1]&&(a+=e(u[0]+t,n,r)+";"),s&u[1]&&(a+=e(t,u[0]+n,r)+";");return a+e(t,n,r)}})}var Cp={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...br(4,"rem",4,.5,.5),...br(12,"rem",4,5),14:"3.5rem",...br(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:ot("blur"),backdropBrightness:ot("brightness"),backdropContrast:ot("contrast"),backdropGrayscale:ot("grayscale"),backdropHueRotate:ot("hueRotate"),backdropInvert:ot("invert"),backdropOpacity:ot("opacity"),backdropSaturate:ot("saturate"),backdropSepia:ot("sepia"),backgroundColor:ot("colors"),backgroundImage:{none:"none"},backgroundOpacity:ot("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...br(200,"",100,0,50),...br(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:ot("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:ot("spacing"),borderWidth:{DEFAULT:"1px",...Lr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:ot("colors"),caretColor:ot("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...br(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:ot("borderColor"),divideOpacity:ot("borderOpacity"),divideWidth:ot("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Hu(2,6),...Hu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:ot("spacing"),gradientColorStops:ot("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Hu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Hu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...br(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...br(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:ot("spacing"),placeholderColor:ot("colors"),placeholderOpacity:ot("opacity"),outlineColor:ot("colors"),outlineOffset:Lr(8,"px"),outlineWidth:Lr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:ot("colors"),ringOffsetWidth:Lr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...Lr(8,"px")},rotate:{...Lr(2,"deg"),...Lr(12,"deg",3),...Lr(180,"deg",45)},saturate:br(200,"",100,0,50),scale:{...br(150,"",100,0,50),...br(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:ot("spacing"),scrollPadding:ot("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...Lr(2,"deg"),...Lr(12,"deg",3)},space:ot("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:br(2),textColor:ot("colors"),textDecorationColor:ot("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...Lr(8,"px")},textUnderlineOffset:{auto:"auto",...Lr(8,"px")},textIndent:ot("spacing"),textOpacity:ot("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:ot("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Hu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...br(50,"",1,0,10),auto:"auto"}};function Hu(e,t){let n={};do for(var r=1;rt(e)}var aA={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Cp.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Cp.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},iA=[oe("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:xa(`[${t}]`,"",n)}}})),oe("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),se("aspect-","aspectRatio"),oe("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[Zc(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),se("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),oe("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),oe("box-(border|content)","boxSizing",({1:e})=>e+"-box"),oe("hidden",{display:"none"}),oe("table-(auto|fixed)","tableLayout"),oe(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",oe("isolate","isolation"),oe("object-(contain|cover|fill|none|scale-down)","objectFit"),se("object-","objectPosition"),oe("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",$c),oe("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),oe("(static|fixed|absolute|relative|sticky)","position"),se("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),se("-?(top|bottom|left|right)(?:$|-)","inset"),oe("(visible|collapse)","visibility"),oe("invisible",{visibility:"hidden"}),se("-?z-","zIndex"),oe("flex-((row|col)(-reverse)?)","flexDirection",Eb),oe("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),se("(flex-(?:grow|shrink))(?:$|-)"),se("(flex)-"),se("grow(?:$|-)","flexGrow"),se("shrink(?:$|-)","flexShrink"),se("basis-","flexBasis"),se("-?(order)-"),"-?(order)-(\\d+)",se("grid-cols-","gridTemplateColumns"),oe("grid-cols-(\\d+)","gridTemplateColumns",Lb),se("col-","gridColumn"),oe("col-(span)-(\\d+)","gridColumn",Db),se("col-start-","gridColumnStart"),oe("col-start-(auto|\\d+)","gridColumnStart"),se("col-end-","gridColumnEnd"),oe("col-end-(auto|\\d+)","gridColumnEnd"),se("grid-rows-","gridTemplateRows"),oe("grid-rows-(\\d+)","gridTemplateRows",Lb),se("row-","gridRow"),oe("row-(span)-(\\d+)","gridRow",Db),se("row-start-","gridRowStart"),oe("row-start-(auto|\\d+)","gridRowStart"),se("row-end-","gridRowEnd"),oe("row-end-(auto|\\d+)","gridRowEnd"),oe("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>$c(Eb(e))),oe("grid-flow-(dense)","gridAutoFlow"),se("auto-cols-","gridAutoColumns"),se("auto-rows-","gridAutoRows"),se("gap-x(?:$|-)","gap","columnGap"),se("gap-y(?:$|-)","gap","rowGap"),se("gap(?:$|-)","gap"),"(justify-(?:items|self))-",oe("justify-","justifyContent",Ab),oe("(content|items|self)-",e=>({["align-"+e[1]]:Ab(e)})),oe("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),se("p([xytrbl])?(?:$|-)","padding",os("padding")),se("-?m([xytrbl])?(?:$|-)","margin",os("margin")),se("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),oe("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),se("w-","width"),se("min-w-","minWidth"),se("max-w-","maxWidth"),se("h-","height"),se("min-h-","minHeight"),se("max-h-","maxHeight"),se("font-","fontWeight"),se("font-","fontFamily",({_:e})=>typeof(e=wt(e))[1]=="string"?{fontFamily:Hr(e)}:{fontFamily:Hr(e[0]),...e[1]}),oe("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),oe("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),oe("italic","fontStyle"),oe("not-italic",{fontStyle:"normal"}),oe("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ci({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),se("tracking-","letterSpacing"),se("leading-","lineHeight"),oe("list-(inside|outside)","listStylePosition"),se("list-","listStyleType"),oe("list-","listStyleType"),se("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),gn("placeholder-",{property:"color",selector:"&::placeholder"}),oe("text-(left|center|right|justify|start|end)","textAlign"),oe("text-(ellipsis|clip)","textOverflow"),se("text-opacity-","textOpacity","--tw-text-opacity"),gn("text-",{property:"color"}),se("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),se("indent-","textIndent"),oe("(overline|underline|line-through)","textDecorationLine"),oe("no-underline",{textDecorationLine:"none"}),se("underline-offset-","textUnderlineOffset"),gn("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),se("decoration-","textDecorationThickness"),oe("decoration-","textDecorationStyle"),oe("(uppercase|lowercase|capitalize)","textTransform"),oe("normal-case",{textTransform:"none"}),oe("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),oe("align-","verticalAlign"),oe("whitespace-","whiteSpace"),oe("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),oe("break-words",{overflowWrap:"break-word"}),oe("break-all",{wordBreak:"break-all"}),oe("break-keep",{wordBreak:"keep-all"}),gn("caret-",{opacityVariable:!1,opacitySection:"opacity"}),gn("accent-",{opacityVariable:!1,opacitySection:"opacity"}),oe("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${go(e," ")},var(--tw-gradient-stops))`),gn("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),gn("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),gn("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),oe("bg-(fixed|local|scroll)","backgroundAttachment"),oe("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),oe(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),oe("bg-blend-","backgroundBlendMode"),oe("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),se("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),gn("bg-",{section:"backgroundColor"}),se("bg-","backgroundImage"),se("bg-","backgroundPosition"),oe("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",$c),se("bg-","backgroundSize"),se("rounded(?:$|-)","borderRadius"),se("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${go(n[0])}-radius`]:t,[`border-${go(n[1])}-radius`]:t}}),oe("border-(collapse|separate)","borderCollapse"),se("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),oe("border-(solid|dashed|dotted|double|none)","borderStyle"),se("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...Ci({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),gn("border-([xytrbl])-",{section:"borderColor"},os("border","Color")),gn("border-"),se("border-([xytrbl])(?:$|-)","borderWidth",os("border","Width")),se("border(?:$|-)","borderWidth"),se("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),oe("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),oe("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),se("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${go(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${go(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),gn("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),se("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),gn("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),se("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),oe("ring-inset",{"--tw-ring-inset":"inset"}),gn("ring-",{property:"--tw-ring-color"}),se("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...Ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Ja(t("ringOffsetColor","","#fff")),"--tw-ring-color":Ja(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),gn("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),se("shadow(?:$|-)","boxShadow",({_:e})=>({...Ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Hr(e),"--tw-shadow-colored":Hr(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),se("(opacity)-"),oe("mix-blend-","mixBlendMode"),...kb(),...kb("backdrop-"),se("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Hr(e),transitionTimingFunction:e._=="none"?void 0:Hr(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Hr(t("transitionDuration",""))})),se("duration(?:$|-)","transitionDuration","transitionDuration",Hr),se("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Hr),se("delay(?:$|-)","transitionDelay","transitionDelay",Hr),se("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Hr(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",oe("transform",xp),oe("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Mb(e=="gpu")})),se("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...xp()})),se("-?(rotate)-","rotate",vp),se("-?(translate-[xy])-","translate",vp),se("-?(skew-[xy])-","skew",vp),oe("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",$c),"(appearance)-",se("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",se("(cursor)-"),"(cursor)-",oe("snap-(none)","scroll-snap-type"),oe("snap-(x|y|both)",({1:e})=>({...Ci({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),oe("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),oe("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),oe("snap-(normal|always)","scroll-snap-stop"),oe("scroll-(auto|smooth)","scroll-behavior"),se("scroll-p([xytrbl])?(?:$|-)","padding",os("scroll-padding")),se("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",os("scroll-margin")),oe("touch-(auto|none|manipulation)","touch-action"),oe("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...Ci({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),oe("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),oe("outline",{outlineStyle:"solid"}),oe("outline-(dashed|dotted|double)","outlineStyle"),se("-?(outline-offset)-"),gn("outline-",{opacityVariable:!1,opacitySection:"opacity"}),se("outline-","outlineWidth"),"(pointer-events)-",se("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],oe("select-(none|text|all|auto)","userSelect"),gn("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),gn("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),se("stroke-","strokeWidth"),oe("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),oe("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function $c(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Eb(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function go(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Hr(e){return e&&""+(e._||e)}function Ab({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function os(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Uu(e+"-"+go(a[0])+t,r),...Uu(e+"-"+go(a[1])+t,r)}:Uu(e+t,r)}}function kb(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...Ci(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,oe(`${e}filter`,n),...t.map(r=>se(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:wt(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function vp({1:e,_:t}){return{["--tw-"+e]:t,...xp()}}function xp(){return{...Ci({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Mb()}),transform:"var(--tw-transform)"}}function Mb(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Db({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Lb({1:e}){return`repeat(${e},minmax(0,1fr))`}function Ci(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var oA=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||xa(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:a=t},{e:i,h:o,v:s})=>{let u=is(r)||(n[0]=="["?n:s(n.slice(1)));return`${(u.includes("&")?u:"&"+u).replace(/&/g,`:merge(.${i(o(e+a))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||xa(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||xa(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=xa(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&is(e).replace(/[}]+$/,"").split("{")]];function sA({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:aA,theme:{...Cp,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:oA,rules:iA,finalize(n){return n.n&&n.d&&n.r.some(r=>/^&::(before|after)$/.test(r))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var uA={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},lA={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},cA={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},dA={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},mA={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},gA={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},pA={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},fA={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},hA={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},bA={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yA={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},vA={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},CA={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},xA={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},SA={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},TA={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},wA={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},EA={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},AA={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},kA={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},DA={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},LA={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},MA={__proto__:null,slate:uA,gray:lA,zinc:cA,neutral:dA,stone:mA,red:gA,orange:pA,amber:fA,yellow:hA,lime:bA,green:yA,emerald:vA,teal:CA,cyan:xA,sky:SA,blue:TA,indigo:wA,violet:EA,purple:AA,fuchsia:kA,pink:DA,rose:LA};function e0({disablePreflight:e}={}){return sA({colors:MA,disablePreflight:e})}var t0=globalThis||(typeof window<"u"?window:self),PA=Object.create,Tp=Object.defineProperty,RA=Object.getOwnPropertyDescriptor,IA=Object.getOwnPropertyNames,FA=Object.getPrototypeOf,BA=Object.prototype.hasOwnProperty,_A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),OA=(e,t)=>{for(var n in t)Tp(e,n,{get:t[n],enumerable:!0})},Sp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of IA(t))!BA.call(e,a)&&a!==n&&Tp(e,a,{get:()=>t[a],enumerable:!(r=RA(t,a))||r.enumerable});return e},NA=(e,t,n)=>(Sp(e,t,"default"),n&&Sp(n,t,"default")),Rb=(e,t,n)=>(n=e!=null?PA(FA(e)):{},Sp(t||!e||!e.__esModule?Tp(n,"default",{value:e,enumerable:!0}):n,e)),Ib=_A((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,m){var g=new XMLHttpRequest;g.open("GET",l),g.responseType="blob",g.onload=function(){u(g.response,c,m)},g.onerror=function(){},g.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof t0=="object"&&t0.global===t0?t0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,m){var g=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,m):i(p,p.target="_blank")):(p.href=g.createObjectURL(l),setTimeout(function(){g.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,m){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,m),c);else if(a(l))r(l,c,m);else{var g=document.createElement("a");g.href=l,g.target="_blank",setTimeout(function(){i(g)})}}:function(l,c,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,m);var p=l.type==="application/octet-stream",f=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&f||s)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var C=y.result;C=h?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=C:location=C,g=null},y.readAsDataURL(l)}else{var b=o.URL||o.webkitURL,v=b.createObjectURL(l);g?g.location=v:location.href=v,g=null,setTimeout(function(){b.revokeObjectURL(v)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),Fb={};OA(Fb,{default:()=>po});var UA=Rb(Ib());NA(Fb,Rb(Ib()));var{default:Pb,...jA}=UA,po=Pb!==void 0?Pb:jA;function Jb(e){return typeof e>"u"||e===null}function HA(e){return typeof e=="object"&&e!==null}function qA(e){return Array.isArray(e)?e:Jb(e)?[]:[e]}function zA(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;nfunction(){return t||(0,e[w2(e)[0]])((t={exports:{}}).exports,t),t.exports},wE=(e,t)=>{for(var n in t)Wg(e,n,{get:t[n],enumerable:!0})},Vg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of w2(t))!TE.call(e,a)&&a!==n&&Wg(e,a,{get:()=>t[a],enumerable:!(r=CE(t,a))||r.enumerable});return e},EE=(e,t,n)=>(Vg(e,t,"default"),n&&Vg(n,t,"default")),E2=(e,t,n)=>(n=e!=null?vE(xE(e)):{},Vg(t||!e||!e.__esModule?Wg(n,"default",{value:e,enumerable:!0}):n,e)),A2=SE({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(S,A=void 0){super(A),this.createItem=S}get(S){return this.has(S)||this.set(S,this.createItem(S)),super.get(S)}}let u=T=>T&&typeof T=="object"&&typeof T.then=="function",l=(T,S)=>(...A)=>{i.runtime.lastError?T.reject(new Error(i.runtime.lastError.message)):S.singleCallbackArg||A.length<=1&&S.singleCallbackArg!==!1?T.resolve(A[0]):T.resolve(A)},c=T=>T==1?"argument":"arguments",m=(T,S)=>function(D,...M){if(M.lengthS.maxArgs)throw new Error(`Expected at most ${S.maxArgs} ${c(S.maxArgs)} for ${T}(), got ${M.length}`);return new Promise((I,P)=>{if(S.fallbackToNoCallback)try{D[T](...M,l({resolve:I,reject:P},S))}catch{D[T](...M),S.fallbackToNoCallback=!1,S.noCallback=!0,I()}else S.noCallback?(D[T](...M),I()):D[T](...M,l({resolve:I,reject:P},S))})},g=(T,S,A)=>new Proxy(S,{apply(D,M,I){return A.call(M,T,...I)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),f=(T,S={},A={})=>{let D=Object.create(null),M={has(P,R){return R in T||R in D},get(P,R,L){if(R in D)return D[R];if(!(R in T))return;let _=T[R];if(typeof _=="function")if(typeof S[R]=="function")_=g(T,T[R],S[R]);else if(p(A,R)){let U=m(R,A[R]);_=g(T,T[R],U)}else _=_.bind(T);else if(typeof _=="object"&&_!==null&&(p(S,R)||p(A,R)))_=f(_,S[R],A[R]);else if(p(A,"*"))_=f(_,S[R],A["*"]);else return Object.defineProperty(D,R,{configurable:!0,enumerable:!0,get(){return T[R]},set(U){T[R]=U}}),_;return D[R]=_,_},set(P,R,L,_){return R in D?D[R]=L:T[R]=L,!0},defineProperty(P,R,L){return Reflect.defineProperty(D,R,L)},deleteProperty(P,R){return Reflect.deleteProperty(D,R)}},I=Object.create(T);return new Proxy(I,M)},b=T=>({addListener(S,A,...D){S.addListener(T.get(A),...D)},hasListener(S,A){return S.hasListener(T.get(A))},removeListener(S,A){S.removeListener(T.get(A))}}),y=new s(T=>typeof T!="function"?T:function(A){let D=f(A,{},{getContent:{minArgs:0,maxArgs:0}});T(D)}),h=new s(T=>typeof T!="function"?T:function(A,D,M){let I=!1,P,R=new Promise(z=>{P=function(Y){I=!0,z(Y)}}),L;try{L=T(A,D,P)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!I)return!1;let U=z=>{z.then(Y=>{M(Y)},Y=>{let ee;Y&&(Y instanceof Error||typeof Y.message=="string")?ee=Y.message:ee="An unexpected error occurred",M({__mozWebExtensionPolyfillReject__:!0,message:ee})}).catch(Y=>{})};return U(_?L:R),!0}),v=({reject:T,resolve:S},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?S():T(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?T(new Error(A.message)):S(A)},C=(T,S,A,...D)=>{if(D.lengthS.maxArgs)throw new Error(`Expected at most ${S.maxArgs} ${c(S.maxArgs)} for ${T}(), got ${D.length}`);return new Promise((M,I)=>{let P=v.bind(null,{resolve:M,reject:I});D.push(P),A.sendMessage(...D)})},x={devtools:{network:{onRequestFinished:b(y)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:C.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:C.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},f(i,x,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),k2={};wE(k2,{default:()=>Hc});var AE=E2(A2());EE(k2,E2(A2()));var{default:S2,...kE}=AE,Hc=S2!==void 0?S2:kE;globalThis.immersiveTranslateBrowserAPI=Hc;var Gc,Ue,R2,DE,Ru,D2,I2,zc={},F2=[],LE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vi(e,t){for(var n in t)e[n]=t[n];return e}function B2(e){var t=e.parentNode;t&&t.removeChild(e)}function mo(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Gc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return qc(e,o,r,a,null)}function qc(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++R2};return a==null&&Ue.vnode!=null&&Ue.vnode(i),i}function le(e){return e.children}function co(e,t){this.props=e,this.context=t}function ts(e,t){if(t==null)return e.__?ts(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?qc(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=h[c])===null||g&&p.key==g.key&&p.type===g.type)h[c]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Kc}),n.__[e]}function N(e){return Iu=1,IE(Z2,e)}function IE(e,t,n){var r=Fu(rs++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Z2(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Gt,!Gt.u)){Gt.u=!0;var a=Gt.shouldComponentUpdate;Gt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,m!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function q(e,t){var n=Fu(rs++,3);!Ue.__s&&Jg(n.__H,t)&&(n.__=e,n.i=t,Gt.__H.__h.push(n))}function Bu(e,t){var n=Fu(rs++,4);!Ue.__s&&Jg(n.__H,t)&&(n.__=e,n.i=t,Gt.__h.push(n))}function Ce(e){return Iu=5,ne(function(){return{current:e}},[])}function ne(e,t){var n=Fu(rs++,7);return Jg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ue(e,t){return Iu=8,ne(function(){return e},t)}function Te(e){var t=Gt.context[e.__c],n=Fu(rs++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Gt)),t.props.value):e.__}function FE(){for(var e;e=J2.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Yc),e.__H.__h.forEach(Qg),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){typeof e.type!="function"||e.o||e.type===le?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Gt=null,V2&&V2(e)},Ue.__r=function(e){W2&&W2(e),rs=0;var t=(Gt=e.__c).__H;t&&(Yg===Gt?(t.__h=[],Gt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Kc,n.__N=n.i=void 0})):(t.__h.forEach(Yc),t.__h.forEach(Qg),t.__h=[])),Yg=Gt},Ue.diffed=function(e){G2&&G2(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(J2.push(t)!==1&&z2===Ue.requestAnimationFrame||((z2=Ue.requestAnimationFrame)||BE)(FE)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Kc&&(n.__=n.__V),n.i=void 0,n.__V=Kc})),Yg=Gt=null},Ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Yc),n.__h=n.__h.filter(function(r){return!r.__||Qg(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Ue.__e(r,n.__v)}}),K2&&K2(e,t)},Ue.unmount=function(e){Y2&&Y2(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Yc(r)}catch(a){t=a}}),n.__H=void 0,t&&Ue.__e(t,n.__v))};var Q2=typeof requestAnimationFrame=="function";function BE(e){var t,n=function(){clearTimeout(r),Q2&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Q2&&(t=requestAnimationFrame(n))}function Yc(e){var t=Gt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Gt=t}function Qg(e){var t=Gt;e.__c=e.__(),Gt=t}function Jg(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Z2(e,t){return typeof t=="function"?t(e):t}var _u;function up(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function sb(e,t=","){return e.map(up).join(t)}var lp=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function as(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Jc(e,t="@media "){return t+wt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function wt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function X2(e){return e}function Nu(){}var on={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function ub(e){return e.match(/[-=:;]/g)?.length||0}function np(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(ub(e),15)<<18}var _E=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function cp({n:e,i:t,v:n=[]},r,a,i){e&&(e=up({n:e,i:t,v:n})),i=[...wt(i)];for(let s of n){let u=r.theme("screens",s);for(let l of wt(u&&Jc(u)||r.v(s))){var o;i.push(l),a|=u?67108864|np(l):s=="dark"?1073741824:l[0]=="@"?np(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~_E.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var dp=new Map;function rp(e){if(e.d){let t=[],n=Zg(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Zg(r,i=>Zg(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):Xg(i,o)}return Xg(o,i)})):r,"&"),r=>Xg(r,e.n?"."+lp(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Zg(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function Xg(e,t){return e.replace(/&/g,t)}var $2=new Intl.Collator("en",{numeric:!0});function lb(e,t){for(var n=0,r=e.length;n>1;0>=cb(e[a],t)?n=a+1:r=a}return r}function cb(e,t){let n=e.p&on.o;return n==(t.p&on.o)&&(n==on.b||n==on.o)?0:e.p-t.p||e.o-t.o||$2.compare(eb(e.n),eb(t.n))||$2.compare(tb(e.n),tb(t.n))}function eb(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function tb(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function $g(e,t){return Math.round(parseInt(e,16)*t)}function Qa(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[$g(e.substr(1,i),o),$g(e.substr(1+i,i),o),$g(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function mp(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},m){let g=[],p="",f=0,b=0;for(let v in o||{}){var y,h;let C=o[v];if(v[0]=="@"){if(!C)continue;if(v[1]=="a"){g.push(...fp(s,u,Ou(""+C),m,u,l,c,!0));continue}if(v[1]=="l"){for(let x of wt(C))g.push(...i(x,{n:s,p:(y=on[v[7]],u&~on.o|y),r:v[7]=="d"?[]:l,i:c},m));continue}if(v[1]=="i"){g.push(...wt(C).map(x=>({p:-1,o:0,r:[],d:v+" "+x})));continue}if(v[1]=="k"){g.push({p:on.d,o:0,r:[v],d:i(C,{p:on.d},m).map(rp).join("")});continue}if(v[1]=="f"){g.push(...wt(C).map(x=>({p:on.d,o:0,r:[v],d:i(x,{p:on.d},m).map(rp).join("")})));continue}}if(typeof C!="object"||Array.isArray(C))v=="label"&&C?s=C+as(JSON.stringify([u,c,o])):(C||C===0)&&(v=v.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),b+=1,f=Math.max(f,(h=v)[0]=="-"?0:ub(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+wt(C).map(x=>m.s(v,gp(""+x,m.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let x=u;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(w,T)=>{let S=m.theme("screens",T);return S?(x|=67108864,Jc(S,"")):w}),x|=np(v)),g.push(...i(C,{n:s,p:x,r:[...l,v],i:c},m))}else g.push(...i(C,{p:u,r:[...l,v]},m))}return g.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(f||15,15),r:l,d:p}),g.sort(cb)}(e,cp(t,n,r,a),n)}function gp(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?Qa(s):""+wt(s).filter(u=>Object(u)!==u)})}function pp(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Qc(e,t,n=on.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,m,g){u={...u,i:u.i||g};let p=function(f,b){let y=dp.get(f.n);return y?y(f,b):b.r(f.n,f.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:m,p:c}=cp(u,l,c,m),pp(Qc(Ou(p),l,c,m,u.i),u.n)):Array.isArray(p)?p.map(f=>{var b,y;return{o:0,...f,r:[...wt(m),...wt(f.r)],p:(b=c,y=f.p??c,b&~on.o|y)}}):mp(p,u,l,c,m):[{c:up(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(lb(i,s),0,s);return i}function fp(e,t,n,r,a,i,o,s){return pp((s?n.flatMap(u=>Qc([u],r,a,i,o)):Qc(n,r,a,i,o)).map(u=>u.p&on.o&&(u.n||t==on.b)?{...u,p:u.p&~on.o|t,o:0}:u),e)}function OE(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=cp(i,o,t);return n&&fp(s,t,n,o,u,l,c,r)},dp.set(e,a),e}function ep(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(NE),i:a}))}}function NE(e,t,n){return n.indexOf(e)==t}var nb=new Map;function Ou(e){let t=nb.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&ep(n,r)),a=s+1};for(;s1?m.slice(0,-1)+as(JSON.stringify([m,g])):m+"("+sb(g)+")",on.a,g,/@$/.test(m))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),nb.set(e,t=r[0])}return t}function db(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function mb(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?db(e,t,n=>tp(n).trim()):t.filter(Boolean).reduce((n,r)=>n+tp(r),e?tp(e):"")}function tp(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=mb(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var KV=gb("@"),YV=gb("~");function gb(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return sb(Ou(n+e+"("+mb(r,a)+")"))}}function ap(e,t){return Array.isArray(e)?rb(db(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?rb(e):[e]}var UE=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function rb(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=UE.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function pb(e,...t){var n;let r=ap(e,t),a=(r.find(i=>i.label)?.label||"css")+as(JSON.stringify(r));return n=(i,o)=>pp(r.flatMap(s=>mp(s,i,o,on.o)),a),dp.set(a,n),a}var QV=new Proxy(function(e,t){return ab("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return ab(t,n,r)}}});function ab(e,t,n){return{toString(){return pb({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function oe(e,t,n){return[e,ip(t,n)]}function ip(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):op(n,1)}):n=>e||{[n[1]]:op(n,2)}}function op(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function se(e,t,n,r){return[e,jE(t,n,r)]}function jE(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=fb(e||a[1]),s=i.theme(o,a.$$)??Ca(a.$$,o,i);if(s!=null)return a._=op(a,0,s),r(a,i,o)}}function gn(e,t={},n){return[e,HE(t,n)]}function HE(e={},t){return(n,r)=>{let{section:a=fb(n[0]).replace("-","")+"Color"}=e,[i,o]=qE(n.$$);if(!i)return;let s=r.theme(a,i)||Ca(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:m}=e,g=r.theme(l,o||"DEFAULT")||o&&Ca(o,l,r),p=t||(({_:b})=>{let y=Uu(c,b);return m?{[m]:y}:y});n._={value:Qa(s,{opacityVariable:u||void 0,opacityValue:g||void 0}),color:b=>Qa(s,b),opacityVariable:u||void 0,opacityValue:g||void 0};let f=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:Qa(b,{opacityVariable:u||void 0,opacityValue:g||"1"}),color:y=>Qa(b,y),opacityVariable:u||void 0,opacityValue:g||void 0},f={"&":f,[r.v("dark")]:p(n,r)})}return f}}function qE(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Uu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ca(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=is(gp(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function fb(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function is(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>is(n)+r+is(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var JV=Symbol();function ju({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:wt(t.variants),rules:wt(t.rules),ignorelist:wt(t.ignorelist),hash:void 0,stringify:(r,a)=>r+":"+a,finalize:[]};for(let r of wt([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&wt(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:a,darkMode:i=n.darkMode,darkColor:o=n.darkColor,theme:s,variants:u,rules:l,ignorelist:c,hash:m=n.hash,stringify:g=n.stringify,finalize:p}=typeof r=="function"?r(n):r;n={preflight:n.preflight!==!1&&a!==!1&&[...n.preflight,...wt(a)],darkMode:i,darkColor:o,theme:{...n.theme,...s,extend:{...n.theme.extend,...s?.extend}},variants:[...n.variants,...wt(u)],rules:[...n.rules,...wt(l)],ignorelist:[...n.ignorelist,...wt(c)],hash:m,stringify:g,finalize:[...n.finalize,...wt(p)]}}return n}function ib(e,t,n,r,a,i){for(let o of t){let s=n.get(o);s||n.set(o,s=r(o));let u=s(e,a,i);if(u)return u}}function zE(e){var t;return sp(e[0],typeof(t=e[1])=="function"?t:()=>t)}function VE(e){var t,n;return Array.isArray(e)?sp(e[0],ip(e[1],e[2])):sp(e,ip(t,n))}function sp(e,t){return hb(e,(n,r,a,i)=>{let o=r.exec(n);if(o)return o.$$=n.slice(o[0].length),o.dark=i,t(o,a)})}function hb(e,t){let n=wt(e).map(WE);return(r,a,i)=>{for(let o of n){let s=t(r,o,a,i);if(s)return s}}}function WE(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function GE(e,t){let n=ju(e),r=function({theme:u,darkMode:l,darkColor:c=Nu,variants:m,rules:g,hash:p,stringify:f,ignorelist:b,finalize:y}){let h=new Map,v=new Map,C=new Map,x=new Map,w=hb(b,(A,D)=>D.test(A));m.push(["dark",Array.isArray(l)||l=="class"?`${wt(l)[1]||".dark"} &`:typeof l=="string"&&l!="media"?l:"@media (prefers-color-scheme:dark)"]);let T=typeof p=="function"?A=>p(A,as):p?as:X2;T!==X2&&y.push(A=>({...A,n:A.n&&T(A.n),d:A.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,M)=>"--"+T(M).replace("#",""))}));let S={theme:function({extend:A={},...D}){let M={},I={get colors(){return P("colors")},theme:P,negative(){return{}},breakpoints(L){let _={};for(let U in L)typeof L[U]=="string"&&(_["screen-"+U]=L[U]);return _}};return P;function P(L,_,U,z){if(L){if({1:L,2:z}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let xe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,W,te=W)=>xe.push(te)),L=xe.shift(),U=_,_=xe.join("-")}let ee=M[L]||Object.assign(Object.assign(M[L]={},R(D,L)),R(A,L));if(_==null)return ee;_||="DEFAULT";let Re=ee[_]??_.split("-").reduce((xe,H)=>xe?.[H],ee)??U;return z?Qa(Re,{opacityValue:gp(z,P)}):Re}let Y={};for(let ee of[...Object.keys(D),...Object.keys(A)])Y[ee]=P(ee);return Y}function R(L,_){let U=L[_];return typeof U=="function"&&(U=U(I)),U&&/color|fill|stroke/i.test(_)?function z(Y,ee=[]){let Re={};for(let xe in Y){let H=Y[xe],W=[...ee,xe];Re[W.join("-")]=H,xe=="DEFAULT"&&(W=ee,Re[ee.join("-")]=H),typeof H=="object"&&Object.assign(Re,z(H,W))}return Re}(U):U}}(u),e:lp,h:T,s(A,D){return f(A,D,S)},d(A,D,M){return c(A,D,S,M)},v(A){return h.has(A)||h.set(A,ib(A,m,v,zE,S)||"&:"+A),h.get(A)},r(A,D){let M=JSON.stringify([A,D]);return C.has(M)||C.set(M,!w(A,S)&&ib(A,g,x,VE,S,D)),C.get(M)},f(A){return y.reduce((D,M)=>M(D,S),A)}};return S}(n),a=new Map,i=[],o=new Set;t.resume(u=>a.set(u,u),(u,l)=>{t.insert(u,i.length,l),i.push(l),o.add(u)});function s(u){let l=r.f(u),c=rp(l);if(c&&!o.has(c)){o.add(c);let m=lb(i,u);t.insert(c,m,u),i.splice(m,0,u)}return l.n}return Object.defineProperties(function(u){if(!a.size)for(let c of wt(n.preflight))typeof c=="function"&&(c=c(r)),c&&(typeof c=="string"?fp("",on.b,Ou(c),r,on.b,[],!1,!0):mp(c,{},r,on.b)).forEach(s);u=""+u;let l=a.get(u);if(!l){let c=new Set;for(let m of Qc(Ou(u),r))c.add(m.c).add(s(m));l=[...c].filter(Boolean).join(" "),a.set(u,l).set(l,l)}return l},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let u=t.snapshot(),l=new Set(o),c=new Map(a),m=[...i];return()=>{u(),o=l,a=c,i=m}},clear(){t.clear(),o=new Set,a=new Map,i=[]},destroy(){this.clear(),t.destroy()}}))}function KE(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function YE(e){let t=new MutationObserver(n);return{observe(a){t.observe(a,{attributeFilter:["class"],subtree:!0,childList:!0}),r(a),n([{target:a,type:""}])},disconnect(){t.disconnect()}};function n(a){for(let{type:i,target:o}of a)if(i[0]=="a")r(o);else for(let s of o.querySelectorAll("[class]"))r(s);t.takeRecords()}function r(a){let i,o=a.getAttribute?.("class");o&&KE(o,i=e(o))&&a.setAttribute("class",i)}}function QE(e=hp,t=typeof document<"u"&&document.documentElement){if(t){let n=YE(e);n.observe(t);let{destroy:r}=e;e.destroy=()=>{n.disconnect(),r.call(e)}}return e}function bb(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function JE(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:bb(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,r=>r.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,r){try{t.insertRule(n,r)}catch{t.insertRule(":root{}",r)}},resume:Nu}}function ZE(e){let t=e&&typeof e!="string"?e:bb(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,r=>r.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,r){t.insertBefore(document.createTextNode(n),t.childNodes[r]||null)},resume:Nu}}function XE(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,a){t.splice(r,0,e?`/*!${a.p.toString(36)},${(2*a.o).toString(36)}${a.n?","+a.n:""}*/${n}`:n)},resume:Nu}}function yb(e,t){let n=typeof document>"u"?XE(!t):e?ZE():JE();return t||(n.resume=eA),n}function $E(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):wt(e)).join("")}function eA(e,t){let n=$E(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var a;let i;if(r.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;a=r.exec(n),i&&t(n.slice(i.index+i[0].length,a?.index),{p:parseInt(i[1],36),o:parseInt(i[2],36)/2,n:i[3]}),i=a;);}}var hp=new Proxy(Nu,{apply(e,t,n){return _u(n[0])},get(e,t){let n=_u[t];return typeof n=="function"?function(){return n.apply(_u,arguments)}:n}});function vb(e={},t=yb,n){return _u?.destroy(),_u=QE(GE(e,typeof t=="function"?t():t),n)}function bp(e,t=!0){let n=ju(e);return vb({...n,hash:n.hash??t},()=>yb(!t))}var ZV=function e(t){return new Proxy(function(n,...r){return ob(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return ob(t,r,a,i)}}})}();function ob(e,t,n,r){return{toString(){let a=ap(n,r),i=lp(t+as(JSON.stringify([t,a])));return(typeof e=="function"?e:hp)(pb({[`@keyframes ${i}`]:ap(n,r)})),i}}}var tA=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Cb(e){return tA.get(e)}function xb(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function Tb(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var nA=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Zc(){return({stringify:e})=>({stringify(t,n,r){let a="",i=Cb(t);i&&(a+=e(i,n,r)+";");let o=xb(t),s=Tb(t,n);for(let u of nA)o&u[1]&&(a+=e(u[0]+t,n,r)+";"),s&u[1]&&(a+=e(t,u[0]+n,r)+";");return a+e(t,n,r)}})}var vp={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...hr(4,"rem",4,.5,.5),...hr(12,"rem",4,5),14:"3.5rem",...hr(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:ot("blur"),backdropBrightness:ot("brightness"),backdropContrast:ot("contrast"),backdropGrayscale:ot("grayscale"),backdropHueRotate:ot("hueRotate"),backdropInvert:ot("invert"),backdropOpacity:ot("opacity"),backdropSaturate:ot("saturate"),backdropSepia:ot("sepia"),backgroundColor:ot("colors"),backgroundImage:{none:"none"},backgroundOpacity:ot("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...hr(200,"",100,0,50),...hr(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:ot("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:ot("spacing"),borderWidth:{DEFAULT:"1px",...Dr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:ot("colors"),caretColor:ot("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...hr(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:ot("borderColor"),divideOpacity:ot("borderOpacity"),divideWidth:ot("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Hu(2,6),...Hu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:ot("spacing"),gradientColorStops:ot("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Hu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Hu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...hr(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...hr(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:ot("spacing"),placeholderColor:ot("colors"),placeholderOpacity:ot("opacity"),outlineColor:ot("colors"),outlineOffset:Dr(8,"px"),outlineWidth:Dr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:ot("colors"),ringOffsetWidth:Dr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...Dr(8,"px")},rotate:{...Dr(2,"deg"),...Dr(12,"deg",3),...Dr(180,"deg",45)},saturate:hr(200,"",100,0,50),scale:{...hr(150,"",100,0,50),...hr(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:ot("spacing"),scrollPadding:ot("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...Dr(2,"deg"),...Dr(12,"deg",3)},space:ot("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:hr(2),textColor:ot("colors"),textDecorationColor:ot("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...Dr(8,"px")},textUnderlineOffset:{auto:"auto",...Dr(8,"px")},textIndent:ot("spacing"),textOpacity:ot("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:ot("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Hu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...hr(50,"",1,0,10),auto:"auto"}};function Hu(e,t){let n={};do for(var r=1;rt(e)}var rA={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${vp.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${vp.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},aA=[oe("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ca(`[${t}]`,"",n)}}})),oe("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),se("aspect-","aspectRatio"),oe("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[Jc(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),se("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),oe("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),oe("box-(border|content)","boxSizing",({1:e})=>e+"-box"),oe("hidden",{display:"none"}),oe("table-(auto|fixed)","tableLayout"),oe(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",oe("isolate","isolation"),oe("object-(contain|cover|fill|none|scale-down)","objectFit"),se("object-","objectPosition"),oe("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Xc),oe("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),oe("(static|fixed|absolute|relative|sticky)","position"),se("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),se("-?(top|bottom|left|right)(?:$|-)","inset"),oe("(visible|collapse)","visibility"),oe("invisible",{visibility:"hidden"}),se("-?z-","zIndex"),oe("flex-((row|col)(-reverse)?)","flexDirection",Sb),oe("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),se("(flex-(?:grow|shrink))(?:$|-)"),se("(flex)-"),se("grow(?:$|-)","flexGrow"),se("shrink(?:$|-)","flexShrink"),se("basis-","flexBasis"),se("-?(order)-"),"-?(order)-(\\d+)",se("grid-cols-","gridTemplateColumns"),oe("grid-cols-(\\d+)","gridTemplateColumns",kb),se("col-","gridColumn"),oe("col-(span)-(\\d+)","gridColumn",Ab),se("col-start-","gridColumnStart"),oe("col-start-(auto|\\d+)","gridColumnStart"),se("col-end-","gridColumnEnd"),oe("col-end-(auto|\\d+)","gridColumnEnd"),se("grid-rows-","gridTemplateRows"),oe("grid-rows-(\\d+)","gridTemplateRows",kb),se("row-","gridRow"),oe("row-(span)-(\\d+)","gridRow",Ab),se("row-start-","gridRowStart"),oe("row-start-(auto|\\d+)","gridRowStart"),se("row-end-","gridRowEnd"),oe("row-end-(auto|\\d+)","gridRowEnd"),oe("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Xc(Sb(e))),oe("grid-flow-(dense)","gridAutoFlow"),se("auto-cols-","gridAutoColumns"),se("auto-rows-","gridAutoRows"),se("gap-x(?:$|-)","gap","columnGap"),se("gap-y(?:$|-)","gap","rowGap"),se("gap(?:$|-)","gap"),"(justify-(?:items|self))-",oe("justify-","justifyContent",wb),oe("(content|items|self)-",e=>({["align-"+e[1]]:wb(e)})),oe("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),se("p([xytrbl])?(?:$|-)","padding",os("padding")),se("-?m([xytrbl])?(?:$|-)","margin",os("margin")),se("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),oe("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),se("w-","width"),se("min-w-","minWidth"),se("max-w-","maxWidth"),se("h-","height"),se("min-h-","minHeight"),se("max-h-","maxHeight"),se("font-","fontWeight"),se("font-","fontFamily",({_:e})=>typeof(e=wt(e))[1]=="string"?{fontFamily:jr(e)}:{fontFamily:jr(e[0]),...e[1]}),oe("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),oe("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),oe("italic","fontStyle"),oe("not-italic",{fontStyle:"normal"}),oe("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ci({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),se("tracking-","letterSpacing"),se("leading-","lineHeight"),oe("list-(inside|outside)","listStylePosition"),se("list-","listStyleType"),oe("list-","listStyleType"),se("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),gn("placeholder-",{property:"color",selector:"&::placeholder"}),oe("text-(left|center|right|justify|start|end)","textAlign"),oe("text-(ellipsis|clip)","textOverflow"),se("text-opacity-","textOpacity","--tw-text-opacity"),gn("text-",{property:"color"}),se("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),se("indent-","textIndent"),oe("(overline|underline|line-through)","textDecorationLine"),oe("no-underline",{textDecorationLine:"none"}),se("underline-offset-","textUnderlineOffset"),gn("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),se("decoration-","textDecorationThickness"),oe("decoration-","textDecorationStyle"),oe("(uppercase|lowercase|capitalize)","textTransform"),oe("normal-case",{textTransform:"none"}),oe("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),oe("align-","verticalAlign"),oe("whitespace-","whiteSpace"),oe("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),oe("break-words",{overflowWrap:"break-word"}),oe("break-all",{wordBreak:"break-all"}),oe("break-keep",{wordBreak:"keep-all"}),gn("caret-",{opacityVariable:!1,opacitySection:"opacity"}),gn("accent-",{opacityVariable:!1,opacitySection:"opacity"}),oe("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${go(e," ")},var(--tw-gradient-stops))`),gn("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),gn("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),gn("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),oe("bg-(fixed|local|scroll)","backgroundAttachment"),oe("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),oe(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),oe("bg-blend-","backgroundBlendMode"),oe("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),se("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),gn("bg-",{section:"backgroundColor"}),se("bg-","backgroundImage"),se("bg-","backgroundPosition"),oe("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Xc),se("bg-","backgroundSize"),se("rounded(?:$|-)","borderRadius"),se("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${go(n[0])}-radius`]:t,[`border-${go(n[1])}-radius`]:t}}),oe("border-(collapse|separate)","borderCollapse"),se("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),oe("border-(solid|dashed|dotted|double|none)","borderStyle"),se("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...Ci({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),gn("border-([xytrbl])-",{section:"borderColor"},os("border","Color")),gn("border-"),se("border-([xytrbl])(?:$|-)","borderWidth",os("border","Width")),se("border(?:$|-)","borderWidth"),se("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),oe("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),oe("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),se("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${go(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${go(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),gn("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),se("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),gn("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),se("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),oe("ring-inset",{"--tw-ring-inset":"inset"}),gn("ring-",{property:"--tw-ring-color"}),se("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...Ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Qa(t("ringOffsetColor","","#fff")),"--tw-ring-color":Qa(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),gn("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),se("shadow(?:$|-)","boxShadow",({_:e})=>({...Ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":jr(e),"--tw-shadow-colored":jr(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),se("(opacity)-"),oe("mix-blend-","mixBlendMode"),...Eb(),...Eb("backdrop-"),se("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:jr(e),transitionTimingFunction:e._=="none"?void 0:jr(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:jr(t("transitionDuration",""))})),se("duration(?:$|-)","transitionDuration","transitionDuration",jr),se("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",jr),se("delay(?:$|-)","transitionDelay","transitionDelay",jr),se("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=jr(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",oe("transform",Cp),oe("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Db(e=="gpu")})),se("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Cp()})),se("-?(rotate)-","rotate",yp),se("-?(translate-[xy])-","translate",yp),se("-?(skew-[xy])-","skew",yp),oe("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Xc),"(appearance)-",se("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",se("(cursor)-"),"(cursor)-",oe("snap-(none)","scroll-snap-type"),oe("snap-(x|y|both)",({1:e})=>({...Ci({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),oe("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),oe("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),oe("snap-(normal|always)","scroll-snap-stop"),oe("scroll-(auto|smooth)","scroll-behavior"),se("scroll-p([xytrbl])?(?:$|-)","padding",os("scroll-padding")),se("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",os("scroll-margin")),oe("touch-(auto|none|manipulation)","touch-action"),oe("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...Ci({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),oe("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),oe("outline",{outlineStyle:"solid"}),oe("outline-(dashed|dotted|double)","outlineStyle"),se("-?(outline-offset)-"),gn("outline-",{opacityVariable:!1,opacitySection:"opacity"}),se("outline-","outlineWidth"),"(pointer-events)-",se("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],oe("select-(none|text|all|auto)","userSelect"),gn("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),gn("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),se("stroke-","strokeWidth"),oe("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),oe("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Xc(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Sb(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function go(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function jr(e){return e&&""+(e._||e)}function wb({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function os(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Uu(e+"-"+go(a[0])+t,r),...Uu(e+"-"+go(a[1])+t,r)}:Uu(e+t,r)}}function Eb(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...Ci(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,oe(`${e}filter`,n),...t.map(r=>se(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:wt(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function yp({1:e,_:t}){return{["--tw-"+e]:t,...Cp()}}function Cp(){return{...Ci({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Db()}),transform:"var(--tw-transform)"}}function Db(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Ab({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function kb({1:e}){return`repeat(${e},minmax(0,1fr))`}function Ci(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var iA=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Ca(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:a=t},{e:i,h:o,v:s})=>{let u=is(r)||(n[0]=="["?n:s(n.slice(1)));return`${(u.includes("&")?u:"&"+u).replace(/&/g,`:merge(.${i(o(e+a))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Ca(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Ca(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Ca(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&is(e).replace(/[}]+$/,"").split("{")]];function oA({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:rA,theme:{...vp,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:iA,rules:aA,finalize(n){return n.n&&n.d&&n.r.some(r=>/^&::(before|after)$/.test(r))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var sA={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},uA={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},lA={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},cA={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},dA={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},mA={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gA={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},pA={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},fA={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},hA={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},bA={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},yA={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},vA={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},CA={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},xA={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},TA={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},SA={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},wA={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},EA={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},AA={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},kA={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},DA={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},LA={__proto__:null,slate:sA,gray:uA,zinc:lA,neutral:cA,stone:dA,red:mA,orange:gA,amber:pA,yellow:fA,lime:hA,green:bA,emerald:yA,teal:vA,cyan:CA,sky:xA,blue:TA,indigo:SA,violet:wA,purple:EA,fuchsia:AA,pink:kA,rose:DA};function $c({disablePreflight:e}={}){return oA({colors:LA,disablePreflight:e})}var e0=globalThis||(typeof window<"u"?window:self),MA=Object.create,Tp=Object.defineProperty,PA=Object.getOwnPropertyDescriptor,RA=Object.getOwnPropertyNames,IA=Object.getPrototypeOf,FA=Object.prototype.hasOwnProperty,BA=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_A=(e,t)=>{for(var n in t)Tp(e,n,{get:t[n],enumerable:!0})},xp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of RA(t))!FA.call(e,a)&&a!==n&&Tp(e,a,{get:()=>t[a],enumerable:!(r=PA(t,a))||r.enumerable});return e},OA=(e,t,n)=>(xp(e,t,"default"),n&&xp(n,t,"default")),Mb=(e,t,n)=>(n=e!=null?MA(IA(e)):{},xp(t||!e||!e.__esModule?Tp(n,"default",{value:e,enumerable:!0}):n,e)),Pb=BA((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,m){var g=new XMLHttpRequest;g.open("GET",l),g.responseType="blob",g.onload=function(){u(g.response,c,m)},g.onerror=function(){},g.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof e0=="object"&&e0.global===e0?e0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,m){var g=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,m):i(p,p.target="_blank")):(p.href=g.createObjectURL(l),setTimeout(function(){g.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,m){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,m),c);else if(a(l))r(l,c,m);else{var g=document.createElement("a");g.href=l,g.target="_blank",setTimeout(function(){i(g)})}}:function(l,c,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,m);var p=l.type==="application/octet-stream",f=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&f||s)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var C=y.result;C=b?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=C:location=C,g=null},y.readAsDataURL(l)}else{var h=o.URL||o.webkitURL,v=h.createObjectURL(l);g?g.location=v:location.href=v,g=null,setTimeout(function(){h.revokeObjectURL(v)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),Rb={};_A(Rb,{default:()=>po});var NA=Mb(Pb());OA(Rb,Mb(Pb()));var{default:Lb,...UA}=NA,po=Lb!==void 0?Lb:UA;function Yb(e){return typeof e>"u"||e===null}function jA(e){return typeof e=="object"&&e!==null}function HA(e){return Array.isArray(e)?e:Yb(e)?[]:[e]}function qA(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Ep(e,t){return pn.repeat(" ",t-e.length)+e}function XA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,m=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=wp(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),m),s=pn.repeat(" ",t.indent)+Ep((e.line-u+1).toString(),c)+" | "+l.str+` -`+s;for(l=wp(e.buffer,r[o],a[o],e.position,m),s+=pn.repeat(" ",t.indent)+Ep((e.line+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),r+" "+n):r}function zu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Qb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}zu.prototype=Object.create(Error.prototype);zu.prototype.constructor=zu;zu.prototype.toString=function(e){return this.name+": "+Qb(this,e)};var Kn=zu;function Sp(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function wp(e,t){return pn.repeat(" ",t-e.length)+e}function ZA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,m=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=Sp(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),m),s=pn.repeat(" ",t.indent)+wp((e.line-u+1).toString(),c)+" | "+l.str+` +`+s;for(l=Sp(e.buffer,r[o],a[o],e.position,m),s+=pn.repeat(" ",t.indent)+wp((e.line+1).toString(),c)+" | "+l.str+` `,s+=pn.repeat("-",t.indent+c+3+l.pos)+`^ -`,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=wp(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),m),s+=pn.repeat(" ",t.indent)+Ep((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var $A=XA,ek=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],tk=["scalar","sequence","mapping"];function nk(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function rk(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(ek.indexOf(n)===-1)throw new Yn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=nk(t.styleAliases||null),tk.indexOf(this.kind)===-1)throw new Yn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Dn=rk;function Bb(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function ak(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),bk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function yk(e){return!(e===null||!bk.test(e)||e[e.length-1]==="_")}function vk(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Ck=/^[-+]?[0-9]+e/;function xk(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pn.isNegativeZero(e))return"-0.0";return n=e.toString(10),Ck.test(n)?n.replace("e",".e"):n}function Sk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||pn.isNegativeZero(e))}var o9=new Dn("tag:yaml.org,2002:float",{kind:"scalar",resolve:yk,construct:vk,predicate:Sk,represent:xk,defaultStyle:"lowercase"}),s9=n9.extend({implicit:[r9,a9,i9,o9]}),u9=s9,l9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),c9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Tk(e){return e===null?!1:l9.exec(e)!==null||c9.exec(e)!==null}function wk(e){var t,n,r,a,i,o,s,u=0,l=null,c,m,g;if(t=l9.exec(e),t===null&&(t=c9.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],m=+(t[11]||0),l=(c*60+m)*6e4,t[9]==="-"&&(l=-l)),g=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&g.setTime(g.getTime()-l),g}function Ek(e){return e.toISOString()}var d9=new Dn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Tk,construct:wk,instanceOf:Date,represent:Ek});function Ak(e){return e==="<<"||e===null}var m9=new Dn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ak}),Rp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function kk(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Rp;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function Dk(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Rp,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function Lk(e){var t="",n=0,r,a,i=e.length,o=Rp;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Mk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var g9=new Dn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:kk,construct:Dk,predicate:Mk,represent:Lk}),Pk=Object.prototype.hasOwnProperty,Rk=Object.prototype.toString;function Ik(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var x9=new Array(256),S9=new Array(256);for(fo=0;fo<256;fo++)x9[fo]=Nb(fo)?1:0,S9[fo]=Nb(fo);var fo;function Qk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ip,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function T9(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=$A(n),new Yn(t,n)}function Ae(e,t){throw T9(e,t)}function a0(e,t){e.onWarning&&e.onWarning.call(null,T9(e,t))}var Ub={YAML:function(e,t,n){var r,a,i;e.version!==null&&Ae(e,"duplication of %YAML directive"),n.length!==1&&Ae(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&Ae(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&Ae(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&a0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&Ae(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],v9.test(r)||Ae(e,"ill-formed tag handle (first argument) of the TAG directive"),Si.call(e.tagMap,r)&&Ae(e,'there is a previously declared suffix for "'+r+'" tag handle'),C9.test(a)||Ae(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Ae(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function xi(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=pn.repeat(` -`,t-1))}function Jk(e,t,n){var r,a,i,o,s,u,l,c,m=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),or(p)||us(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),or(a)||n&&us(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),or(a)||n&&us(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),or(r))break}else{if(e.position===e.lineStart&&s0(e)||n&&us(p))break;if(Sa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,sn(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(xi(e,i,o,!1),Bp(e,e.line-u),i=o=e.position,s=!1),ho(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return xi(e,i,o,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function Zk(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(xi(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else Sa(n)?(xi(e,r,a,!0),Bp(e,sn(e,!1,t)),r=a=e.position):e.position===e.lineStart&&s0(e)?Ae(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Ae(e,"unexpected end of the stream within a single quoted scalar")}function Xk(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return xi(e,n,e.position,!0),e.position++,!0;if(s===92){if(xi(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Sa(s))sn(e,!1,t);else if(s<256&&x9[s])e.result+=S9[s],e.position++;else if((o=Gk(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=Wk(s))>=0?i=(i<<4)+o:Ae(e,"expected hexadecimal character");e.result+=Yk(i),e.position++}else Ae(e,"unknown escape sequence");n=r=e.position}else Sa(s)?(xi(e,n,r,!0),Bp(e,sn(e,!1,t)),n=r=e.position):e.position===e.lineStart&&s0(e)?Ae(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Ae(e,"unexpected end of the stream within a double quoted scalar")}function $k(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,m,g,p,f=Object.create(null),h,y,b,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,p=!1,s=[];else if(v===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(sn(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?v===44&&Ae(e,"expected the node content, but found ','"):Ae(e,"missed comma between flow collection entries"),y=h=b=null,m=g=!1,v===63&&(l=e.input.charCodeAt(e.position+1),or(l)&&(m=g=!0,e.position++,sn(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,cs(e,t,n0,!1,!0),y=e.tag,h=e.result,sn(e,!0,t),v=e.input.charCodeAt(e.position),(g||e.line===r)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),sn(e,!0,t),cs(e,t,n0,!1,!0),b=e.result),p?ls(e,s,f,y,h,b,r,a,i):m?s.push(ls(e,null,f,y,h,b,r,a,i)):s.push(h),sn(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}Ae(e,"unexpected end of the stream within a flow collection")}function eD(e,t){var n,r,a=Ap,i=!1,o=!1,s=t,u=0,l=!1,c,m;if(m=e.input.charCodeAt(e.position),m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)Ap===a?a=m===43?_b:Hk:Ae(e,"repeat of a chomping mode identifier");else if((c=Kk(m))>=0)c===0?Ae(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Ae(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(ho(m)){do m=e.input.charCodeAt(++e.position);while(ho(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!Sa(m)&&m!==0)}for(;m!==0;){for(Fp(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),Sa(m)){u++;continue}if(e.lineIndent=a.length);u++)l=Sp(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),m),s+=pn.repeat(" ",t.indent)+wp((e.line+u+1).toString(),c)+" | "+l.str+` +`;return s.replace(/\n$/,"")}var XA=ZA,$A=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ek=["scalar","sequence","mapping"];function tk(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function nk(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if($A.indexOf(n)===-1)throw new Kn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=tk(t.styleAliases||null),ek.indexOf(this.kind)===-1)throw new Kn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Dn=nk;function Ib(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function rk(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),hk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function bk(e){return!(e===null||!hk.test(e)||e[e.length-1]==="_")}function yk(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var vk=/^[-+]?[0-9]+e/;function Ck(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pn.isNegativeZero(e))return"-0.0";return n=e.toString(10),vk.test(n)?n.replace("e",".e"):n}function xk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||pn.isNegativeZero(e))}var a9=new Dn("tag:yaml.org,2002:float",{kind:"scalar",resolve:bk,construct:yk,predicate:xk,represent:Ck,defaultStyle:"lowercase"}),i9=e9.extend({implicit:[t9,n9,r9,a9]}),o9=i9,s9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),u9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Tk(e){return e===null?!1:s9.exec(e)!==null||u9.exec(e)!==null}function Sk(e){var t,n,r,a,i,o,s,u=0,l=null,c,m,g;if(t=s9.exec(e),t===null&&(t=u9.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],m=+(t[11]||0),l=(c*60+m)*6e4,t[9]==="-"&&(l=-l)),g=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&g.setTime(g.getTime()-l),g}function wk(e){return e.toISOString()}var l9=new Dn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Tk,construct:Sk,instanceOf:Date,represent:wk});function Ek(e){return e==="<<"||e===null}var c9=new Dn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ek}),Pp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function Ak(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Pp;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function kk(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Pp,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function Dk(e){var t="",n=0,r,a,i=e.length,o=Pp;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Lk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var d9=new Dn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ak,construct:kk,predicate:Lk,represent:Dk}),Mk=Object.prototype.hasOwnProperty,Pk=Object.prototype.toString;function Rk(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var v9=new Array(256),C9=new Array(256);for(fo=0;fo<256;fo++)v9[fo]=_b(fo)?1:0,C9[fo]=_b(fo);var fo;function Yk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Rp,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function x9(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=XA(n),new Kn(t,n)}function Ae(e,t){throw x9(e,t)}function r0(e,t){e.onWarning&&e.onWarning.call(null,x9(e,t))}var Ob={YAML:function(e,t,n){var r,a,i;e.version!==null&&Ae(e,"duplication of %YAML directive"),n.length!==1&&Ae(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&Ae(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&Ae(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&r0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&Ae(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],b9.test(r)||Ae(e,"ill-formed tag handle (first argument) of the TAG directive"),Ti.call(e.tagMap,r)&&Ae(e,'there is a previously declared suffix for "'+r+'" tag handle'),y9.test(a)||Ae(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Ae(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function xi(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=pn.repeat(` +`,t-1))}function Qk(e,t,n){var r,a,i,o,s,u,l,c,m=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),or(p)||us(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),or(a)||n&&us(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),or(a)||n&&us(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),or(r))break}else{if(e.position===e.lineStart&&o0(e)||n&&us(p))break;if(xa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,sn(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(xi(e,i,o,!1),Fp(e,e.line-u),i=o=e.position,s=!1),ho(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return xi(e,i,o,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function Jk(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(xi(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else xa(n)?(xi(e,r,a,!0),Fp(e,sn(e,!1,t)),r=a=e.position):e.position===e.lineStart&&o0(e)?Ae(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Ae(e,"unexpected end of the stream within a single quoted scalar")}function Zk(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return xi(e,n,e.position,!0),e.position++,!0;if(s===92){if(xi(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),xa(s))sn(e,!1,t);else if(s<256&&v9[s])e.result+=C9[s],e.position++;else if((o=Wk(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=Vk(s))>=0?i=(i<<4)+o:Ae(e,"expected hexadecimal character");e.result+=Kk(i),e.position++}else Ae(e,"unknown escape sequence");n=r=e.position}else xa(s)?(xi(e,n,r,!0),Fp(e,sn(e,!1,t)),n=r=e.position):e.position===e.lineStart&&o0(e)?Ae(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Ae(e,"unexpected end of the stream within a double quoted scalar")}function Xk(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,m,g,p,f=Object.create(null),b,y,h,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,p=!1,s=[];else if(v===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(sn(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?v===44&&Ae(e,"expected the node content, but found ','"):Ae(e,"missed comma between flow collection entries"),y=b=h=null,m=g=!1,v===63&&(l=e.input.charCodeAt(e.position+1),or(l)&&(m=g=!0,e.position++,sn(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,cs(e,t,t0,!1,!0),y=e.tag,b=e.result,sn(e,!0,t),v=e.input.charCodeAt(e.position),(g||e.line===r)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),sn(e,!0,t),cs(e,t,t0,!1,!0),h=e.result),p?ls(e,s,f,y,b,h,r,a,i):m?s.push(ls(e,null,f,y,b,h,r,a,i)):s.push(b),sn(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}Ae(e,"unexpected end of the stream within a flow collection")}function $k(e,t){var n,r,a=Ep,i=!1,o=!1,s=t,u=0,l=!1,c,m;if(m=e.input.charCodeAt(e.position),m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)Ep===a?a=m===43?Fb:jk:Ae(e,"repeat of a chomping mode identifier");else if((c=Gk(m))>=0)c===0?Ae(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Ae(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(ho(m)){do m=e.input.charCodeAt(++e.position);while(ho(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!xa(m)&&m!==0)}for(;m!==0;){for(Ip(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),xa(m)){u++;continue}if(e.lineIndentt)&&u!==0)Ae(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(y&&(o=e.line,s=e.lineStart,u=e.position),cs(e,t,r0,!0,a)&&(y?f=e.result:h=e.result),y||(ls(e,m,g,p,f,h,o,s,u),p=f=h=null),sn(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&v!==0)Ae(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),m=0,g=e.implicitTypes.length;m"),e.result!==null&&f.kind!==e.kind&&Ae(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ae(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function iD(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(sn(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&Ae(e,"directive name must not be less than one character in length");o!==0;){for(;ho(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Sa(o));break}if(Sa(o))break;for(n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Fp(e),Si.call(Ub,r)?Ub[r](e,r,a):a0(e,'unknown document directive "'+r+'"')}if(sn(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,sn(e,!0,-1)):i&&Ae(e,"directives end mark is expected"),cs(e,e.lineIndent-1,r0,!1,!0),sn(e,!0,-1),e.checkLineBreaks&&zk.test(e.input.slice(t,e.position))&&a0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&s0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,sn(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=w9(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)Ae(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(y&&(o=e.line,s=e.lineStart,u=e.position),cs(e,t,n0,!0,a)&&(y?f=e.result:b=e.result),y||(ls(e,m,g,p,f,b,o,s,u),p=f=b=null),sn(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&v!==0)Ae(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),m=0,g=e.implicitTypes.length;m"),e.result!==null&&f.kind!==e.kind&&Ae(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ae(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function aD(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(sn(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&Ae(e,"directive name must not be less than one character in length");o!==0;){for(;ho(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!xa(o));break}if(xa(o))break;for(n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Ip(e),Ti.call(Ob,r)?Ob[r](e,r,a):r0(e,'unknown document directive "'+r+'"')}if(sn(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,sn(e,!0,-1)):i&&Ae(e,"directives end mark is expected"),cs(e,e.lineIndent-1,n0,!1,!0),sn(e,!0,-1),e.checkLineBreaks&&qk.test(e.input.slice(t,e.position))&&r0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&o0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,sn(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=T9(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function I9(e){var t=/^\n* /;return t.test(e)}var F9=1,Mp=2,B9=3,_9=4,ss=5;function BD(e,t,n,r,a,i,o,s){var u,l=0,c=null,m=!1,g=!1,p=r!==-1,f=-1,h=ID(qu(e,0))&&FD(qu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=qu(e,u),!Gu(l))return ss;h=h&&Vb(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=qu(e,u),l===Vu)m=!0,p&&(g=g||u-f-1>r&&e[f+1]!==" ",f=u);else if(!Gu(l))return ss;h=h&&Vb(l,c,s),c=l}g=g||p&&u-f-1>r&&e[f+1]!==" "}return!m&&!g?h&&!o&&!a(e)?F9:i===Wu?ss:Mp:n>9&&I9(e)?ss:o?i===Wu?ss:Mp:g?_9:B9}function _D(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Wu?'""':"''";if(!e.noCompatMode&&(AD.indexOf(t)!==-1||kD.test(t)))return e.quotingType===Wu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return RD(e,l)}switch(BD(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case F9:return t;case Mp:return"'"+t.replace(/'/g,"''")+"'";case B9:return"|"+Wb(t,e.indent)+Gb(qb(t,i));case _9:return">"+Wb(t,e.indent)+Gb(qb(OD(t,o),i));case ss:return'"'+ND(t)+'"';default:throw new Yn("impossible error: invalid scalar style")}}()}function Wb(e,t){var n=I9(e)?String(t):"",r=e[e.length-1]===` +`&&(i+=n),i+=o;return i}function Dp(e,t){return` +`+pn.repeat(" ",e.indent*t)}function PD(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function P9(e){var t=/^\n* /;return t.test(e)}var R9=1,Lp=2,I9=3,F9=4,ss=5;function FD(e,t,n,r,a,i,o,s){var u,l=0,c=null,m=!1,g=!1,p=r!==-1,f=-1,b=RD(qu(e,0))&&ID(qu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=qu(e,u),!Gu(l))return ss;b=b&&qb(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=qu(e,u),l===Vu)m=!0,p&&(g=g||u-f-1>r&&e[f+1]!==" ",f=u);else if(!Gu(l))return ss;b=b&&qb(l,c,s),c=l}g=g||p&&u-f-1>r&&e[f+1]!==" "}return!m&&!g?b&&!o&&!a(e)?R9:i===Wu?ss:Lp:n>9&&P9(e)?ss:o?i===Wu?ss:Lp:g?F9:I9}function BD(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Wu?'""':"''";if(!e.noCompatMode&&(ED.indexOf(t)!==-1||AD.test(t)))return e.quotingType===Wu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return PD(e,l)}switch(FD(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case R9:return t;case Lp:return"'"+t.replace(/'/g,"''")+"'";case I9:return"|"+zb(t,e.indent)+Vb(jb(t,i));case F9:return">"+zb(t,e.indent)+Vb(jb(_D(t,o),i));case ss:return'"'+OD(t)+'"';default:throw new Kn("impossible error: invalid scalar style")}}()}function zb(e,t){var n=P9(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function Gb(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function OD(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,Kb(e.slice(0,l),t)}(),a=e[0]===` +`}function Vb(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function _D(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,Wb(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+Kb(u,t),a=i}return r}function Kb(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+Wb(u,t),a=i}return r}function Wb(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function ND(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=qu(e,a),r=Fn[n],!r&&Gu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||LD(n);return t}function UD(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Za(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function Yb(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Za(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Lp(e,t)),e.dump&&Vu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function jD(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Za(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function HD(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,m,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Yn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,m&&(e.dump&&Vu===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,m&&(g+=Lp(e,t)),Za(e,t+1,c,!0,m)&&(e.dump&&Vu===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=i,e.dump=a||"{}"}function Qb(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Za(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Qb(e,n,!1)||Qb(e,n,!0);var s=A9.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",m,g;if(c&&(m=e.duplicates.indexOf(n),g=m!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(c&&g&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(HD(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(jD(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Yb(e,t-1,e.dump,a):Yb(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(UD(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&_D(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Yn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function qD(e,t){var n=[],r=[],a,i;for(Pp(e,n,r),a=0,i=r.length;a{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Np=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function u0(e,t){let n=ds(),r=setTimeout(()=>n.reject(new Np),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function tt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var O9=class{#e=0;#t=[];#n=[];#r=ds();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tIL,bgBlue:()=>OL,bgBrightBlack:()=>HL,bgBrightBlue:()=>WL,bgBrightCyan:()=>KL,bgBrightGreen:()=>zL,bgBrightMagenta:()=>GL,bgBrightRed:()=>qL,bgBrightWhite:()=>YL,bgBrightYellow:()=>VL,bgCyan:()=>UL,bgGreen:()=>BL,bgMagenta:()=>NL,bgRed:()=>FL,bgRgb24:()=>XL,bgRgb8:()=>JL,bgWhite:()=>jL,bgYellow:()=>_L,black:()=>bL,blue:()=>xL,bold:()=>cL,brightBlack:()=>j9,brightBlue:()=>LL,brightCyan:()=>PL,brightGreen:()=>kL,brightMagenta:()=>ML,brightRed:()=>AL,brightWhite:()=>RL,brightYellow:()=>DL,cyan:()=>TL,dim:()=>dL,getColorEnabled:()=>uL,gray:()=>EL,green:()=>vL,hidden:()=>fL,inverse:()=>pL,italic:()=>mL,magenta:()=>SL,red:()=>yL,reset:()=>lL,rgb24:()=>ZL,rgb8:()=>QL,setColorEnabled:()=>sL,strikethrough:()=>hL,stripColor:()=>eM,underline:()=>gL,white:()=>wL,yellow:()=>CL});var{Deno:N9}=globalThis,U9=typeof N9?.noColor=="boolean"?N9.noColor:!0,Up=!U9;function sL(e){U9||(Up=e)}function uL(){return Up}function Be(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function _e(e,t){return Up?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function lL(e){return _e(e,Be([0],0))}function cL(e){return _e(e,Be([1],22))}function dL(e){return _e(e,Be([2],22))}function mL(e){return _e(e,Be([3],23))}function gL(e){return _e(e,Be([4],24))}function pL(e){return _e(e,Be([7],27))}function fL(e){return _e(e,Be([8],28))}function hL(e){return _e(e,Be([9],29))}function bL(e){return _e(e,Be([30],39))}function yL(e){return _e(e,Be([31],39))}function vL(e){return _e(e,Be([32],39))}function CL(e){return _e(e,Be([33],39))}function xL(e){return _e(e,Be([34],39))}function SL(e){return _e(e,Be([35],39))}function TL(e){return _e(e,Be([36],39))}function wL(e){return _e(e,Be([37],39))}function EL(e){return j9(e)}function j9(e){return _e(e,Be([90],39))}function AL(e){return _e(e,Be([91],39))}function kL(e){return _e(e,Be([92],39))}function DL(e){return _e(e,Be([93],39))}function LL(e){return _e(e,Be([94],39))}function ML(e){return _e(e,Be([95],39))}function PL(e){return _e(e,Be([96],39))}function RL(e){return _e(e,Be([97],39))}function IL(e){return _e(e,Be([40],49))}function FL(e){return _e(e,Be([41],49))}function BL(e){return _e(e,Be([42],49))}function _L(e){return _e(e,Be([43],49))}function OL(e){return _e(e,Be([44],49))}function NL(e){return _e(e,Be([45],49))}function UL(e){return _e(e,Be([46],49))}function jL(e){return _e(e,Be([47],49))}function HL(e){return _e(e,Be([100],49))}function qL(e){return _e(e,Be([101],49))}function zL(e){return _e(e,Be([102],49))}function VL(e){return _e(e,Be([103],49))}function WL(e){return _e(e,Be([104],49))}function GL(e){return _e(e,Be([105],49))}function KL(e){return _e(e,Be([106],49))}function YL(e){return _e(e,Be([107],49))}function Ti(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function QL(e,t){return _e(e,Be([38,5,Ti(t)],39))}function JL(e,t){return _e(e,Be([48,5,Ti(t)],49))}function ZL(e,t){return typeof t=="number"?_e(e,Be([38,2,t>>16&255,t>>8&255,t&255],39)):_e(e,Be([38,2,Ti(t.r),Ti(t.g),Ti(t.b)],39))}function XL(e,t){return typeof t=="number"?_e(e,Be([48,2,t>>16&255,t>>8&255,t&255],49)):_e(e,Be([48,2,Ti(t.r),Ti(t.g),Ti(t.b)],49))}var $L=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function eM(e){return e.replace($L,"")}var jp=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},tM={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Hp(e,t){let n={...tM,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new jp(a,n.maxAttempts)}var Xa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function qp(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=Xa[(t[r-2]&3)<<4|t[r-1]>>4],n+=Xa[(t[r-1]&15)<<2|t[r]>>6],n+=Xa[t[r]&63];return r===a+1&&(n+=Xa[t[r-2]>>2],n+=Xa[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=Xa[t[r-2]>>2],n+=Xa[(t[r-2]&3)<<4|t[r-1]>>4],n+=Xa[(t[r-1]&15)<<2],n+="="),n}var nM=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,rM=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,aM=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,zp={Space_Separator:nM,ID_Start:rM,ID_Continue:aM},$t={isSpaceSeparator(e){return typeof e=="string"&&zp.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||zp.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||zp.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Wp,Qn,ei,c0,wi,qr,vn,Yp,Qu,iM=function(e,t){Wp=String(e),Qn="start",ei=[],c0=0,wi=1,qr=0,vn=void 0,Yp=void 0,Qu=void 0;do vn=oM(),lM[Qn]();while(vn.type!=="eof");return typeof t=="function"?Gp({"":Qu},"",t):Qu};function Gp(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ti();if(!$t.isHexDigit(n))throw Ft(G());e+=G()}return String.fromCodePoint(parseInt(e,16))}var lM={start(){if(vn.type==="eof")throw yo();Vp()},beforePropertyName(){switch(vn.type){case"identifier":case"string":Yp=vn.value,Qn="afterPropertyName";return;case"punctuator":l0();return;case"eof":throw yo()}},afterPropertyName(){if(vn.type==="eof")throw yo();Qn="beforePropertyValue"},beforePropertyValue(){if(vn.type==="eof")throw yo();Vp()},beforeArrayValue(){if(vn.type==="eof")throw yo();if(vn.type==="punctuator"&&vn.value==="]"){l0();return}Vp()},afterPropertyValue(){if(vn.type==="eof")throw yo();switch(vn.value){case",":Qn="beforePropertyName";return;case"}":l0()}},afterArrayValue(){if(vn.type==="eof")throw yo();switch(vn.value){case",":Qn="beforeArrayValue";return;case"]":l0()}},end(){}};function Vp(){let e;switch(vn.type){case"punctuator":switch(vn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=vn.value;break}if(Qu===void 0)Qu=e;else{let t=ei[ei.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Yp,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ei.push(e),Array.isArray(e)?Qn="beforeArrayValue":Qn="beforePropertyName";else{let t=ei[ei.length-1];t==null?Qn="end":Array.isArray(t)?Qn="afterArrayValue":Qn="afterPropertyValue"}}function l0(){ei.pop();let e=ei[ei.length-1];e==null?Qn="end":Array.isArray(e)?Qn="afterArrayValue":Qn="afterPropertyValue"}function Ft(e){return Qp(e===void 0?`JSON5: invalid end of input at ${wi}:${qr}`:`JSON5: invalid character '${cM(e)}' at ${wi}:${qr}`)}function yo(){return Qp(`JSON5: invalid end of input at ${wi}:${qr}`)}function H9(){return qr-=5,Qp(`JSON5: invalid identifier character at ${wi}:${qr}`)}function cM(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Qp(e){let t=new SyntaxError(e);return t.lineNumber=wi,t.columnNumber=qr,t}var dM=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let f of t){let h;typeof f=="string"?h=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(h=String(f)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(f,h){let y=h[f];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(f):typeof y.toJSON=="function"&&(y=y.toJSON(f))),o&&(y=o.call(h,f,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return c(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?p(y):m(y)}function c(f){let h={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},b="";for(let C=0;Ch[C]=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let h=a;a=a+s;let y=i||Object.keys(f),b=[];for(let C of y){let x=l(C,f);if(x!==void 0){let w=g(C)+":";s!==""&&(w+=" "),w+=x,b.push(w)}}let v;if(b.length===0)v="{}";else{let C;if(s==="")C=b.join(","),v="{"+C+"}";else{let x=`, -`+a;C=b.join(x),v=`{ +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function OD(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=qu(e,a),r=Fn[n],!r&&Gu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||DD(n);return t}function ND(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Ja(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function Gb(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Ja(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Dp(e,t)),e.dump&&Vu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function UD(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ja(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function jD(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,m,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Kn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,m&&(e.dump&&Vu===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,m&&(g+=Dp(e,t)),Ja(e,t+1,c,!0,m)&&(e.dump&&Vu===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=i,e.dump=a||"{}"}function Kb(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ja(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Kb(e,n,!1)||Kb(e,n,!0);var s=w9.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",m,g;if(c&&(m=e.duplicates.indexOf(n),g=m!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(c&&g&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(jD(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(UD(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Gb(e,t-1,e.dump,a):Gb(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(ND(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&BD(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Kn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function HD(e,t){var n=[],r=[],a,i;for(Mp(e,n,r),a=0,i=r.length;a{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Op=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function s0(e,t){let n=ds(),r=setTimeout(()=>n.reject(new Op),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function tt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var B9=class{#e=0;#t=[];#n=[];#r=ds();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tRL,bgBlue:()=>_L,bgBrightBlack:()=>jL,bgBrightBlue:()=>VL,bgBrightCyan:()=>GL,bgBrightGreen:()=>qL,bgBrightMagenta:()=>WL,bgBrightRed:()=>HL,bgBrightWhite:()=>KL,bgBrightYellow:()=>zL,bgCyan:()=>NL,bgGreen:()=>FL,bgMagenta:()=>OL,bgRed:()=>IL,bgRgb24:()=>ZL,bgRgb8:()=>QL,bgWhite:()=>UL,bgYellow:()=>BL,black:()=>hL,blue:()=>CL,bold:()=>lL,brightBlack:()=>N9,brightBlue:()=>DL,brightCyan:()=>ML,brightGreen:()=>AL,brightMagenta:()=>LL,brightRed:()=>EL,brightWhite:()=>PL,brightYellow:()=>kL,cyan:()=>TL,dim:()=>cL,getColorEnabled:()=>sL,gray:()=>wL,green:()=>yL,hidden:()=>pL,inverse:()=>gL,italic:()=>dL,magenta:()=>xL,red:()=>bL,reset:()=>uL,rgb24:()=>JL,rgb8:()=>YL,setColorEnabled:()=>oL,strikethrough:()=>fL,stripColor:()=>$L,underline:()=>mL,white:()=>SL,yellow:()=>vL});var{Deno:_9}=globalThis,O9=typeof _9?.noColor=="boolean"?_9.noColor:!0,Np=!O9;function oL(e){O9||(Np=e)}function sL(){return Np}function _e(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Oe(e,t){return Np?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function uL(e){return Oe(e,_e([0],0))}function lL(e){return Oe(e,_e([1],22))}function cL(e){return Oe(e,_e([2],22))}function dL(e){return Oe(e,_e([3],23))}function mL(e){return Oe(e,_e([4],24))}function gL(e){return Oe(e,_e([7],27))}function pL(e){return Oe(e,_e([8],28))}function fL(e){return Oe(e,_e([9],29))}function hL(e){return Oe(e,_e([30],39))}function bL(e){return Oe(e,_e([31],39))}function yL(e){return Oe(e,_e([32],39))}function vL(e){return Oe(e,_e([33],39))}function CL(e){return Oe(e,_e([34],39))}function xL(e){return Oe(e,_e([35],39))}function TL(e){return Oe(e,_e([36],39))}function SL(e){return Oe(e,_e([37],39))}function wL(e){return N9(e)}function N9(e){return Oe(e,_e([90],39))}function EL(e){return Oe(e,_e([91],39))}function AL(e){return Oe(e,_e([92],39))}function kL(e){return Oe(e,_e([93],39))}function DL(e){return Oe(e,_e([94],39))}function LL(e){return Oe(e,_e([95],39))}function ML(e){return Oe(e,_e([96],39))}function PL(e){return Oe(e,_e([97],39))}function RL(e){return Oe(e,_e([40],49))}function IL(e){return Oe(e,_e([41],49))}function FL(e){return Oe(e,_e([42],49))}function BL(e){return Oe(e,_e([43],49))}function _L(e){return Oe(e,_e([44],49))}function OL(e){return Oe(e,_e([45],49))}function NL(e){return Oe(e,_e([46],49))}function UL(e){return Oe(e,_e([47],49))}function jL(e){return Oe(e,_e([100],49))}function HL(e){return Oe(e,_e([101],49))}function qL(e){return Oe(e,_e([102],49))}function zL(e){return Oe(e,_e([103],49))}function VL(e){return Oe(e,_e([104],49))}function WL(e){return Oe(e,_e([105],49))}function GL(e){return Oe(e,_e([106],49))}function KL(e){return Oe(e,_e([107],49))}function Si(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function YL(e,t){return Oe(e,_e([38,5,Si(t)],39))}function QL(e,t){return Oe(e,_e([48,5,Si(t)],49))}function JL(e,t){return typeof t=="number"?Oe(e,_e([38,2,t>>16&255,t>>8&255,t&255],39)):Oe(e,_e([38,2,Si(t.r),Si(t.g),Si(t.b)],39))}function ZL(e,t){return typeof t=="number"?Oe(e,_e([48,2,t>>16&255,t>>8&255,t&255],49)):Oe(e,_e([48,2,Si(t.r),Si(t.g),Si(t.b)],49))}var XL=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function $L(e){return e.replace(XL,"")}var Up=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},eM={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function jp(e,t){let n={...eM,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Up(a,n.maxAttempts)}var Za=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Hp(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=Za[(t[r-2]&3)<<4|t[r-1]>>4],n+=Za[(t[r-1]&15)<<2|t[r]>>6],n+=Za[t[r]&63];return r===a+1&&(n+=Za[t[r-2]>>2],n+=Za[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=Za[t[r-2]>>2],n+=Za[(t[r-2]&3)<<4|t[r-1]>>4],n+=Za[(t[r-1]&15)<<2],n+="="),n}var tM=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,nM=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,rM=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,qp={Space_Separator:tM,ID_Start:nM,ID_Continue:rM},$t={isSpaceSeparator(e){return typeof e=="string"&&qp.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||qp.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||qp.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Vp,Yn,$a,l0,wi,Hr,vn,Kp,Qu,aM=function(e,t){Vp=String(e),Yn="start",$a=[],l0=0,wi=1,Hr=0,vn=void 0,Kp=void 0,Qu=void 0;do vn=iM(),uM[Yn]();while(vn.type!=="eof");return typeof t=="function"?Wp({"":Qu},"",t):Qu};function Wp(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ei();if(!$t.isHexDigit(n))throw Ft(G());e+=G()}return String.fromCodePoint(parseInt(e,16))}var uM={start(){if(vn.type==="eof")throw yo();zp()},beforePropertyName(){switch(vn.type){case"identifier":case"string":Kp=vn.value,Yn="afterPropertyName";return;case"punctuator":u0();return;case"eof":throw yo()}},afterPropertyName(){if(vn.type==="eof")throw yo();Yn="beforePropertyValue"},beforePropertyValue(){if(vn.type==="eof")throw yo();zp()},beforeArrayValue(){if(vn.type==="eof")throw yo();if(vn.type==="punctuator"&&vn.value==="]"){u0();return}zp()},afterPropertyValue(){if(vn.type==="eof")throw yo();switch(vn.value){case",":Yn="beforePropertyName";return;case"}":u0()}},afterArrayValue(){if(vn.type==="eof")throw yo();switch(vn.value){case",":Yn="beforeArrayValue";return;case"]":u0()}},end(){}};function zp(){let e;switch(vn.type){case"punctuator":switch(vn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=vn.value;break}if(Qu===void 0)Qu=e;else{let t=$a[$a.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Kp,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")$a.push(e),Array.isArray(e)?Yn="beforeArrayValue":Yn="beforePropertyName";else{let t=$a[$a.length-1];t==null?Yn="end":Array.isArray(t)?Yn="afterArrayValue":Yn="afterPropertyValue"}}function u0(){$a.pop();let e=$a[$a.length-1];e==null?Yn="end":Array.isArray(e)?Yn="afterArrayValue":Yn="afterPropertyValue"}function Ft(e){return Yp(e===void 0?`JSON5: invalid end of input at ${wi}:${Hr}`:`JSON5: invalid character '${lM(e)}' at ${wi}:${Hr}`)}function yo(){return Yp(`JSON5: invalid end of input at ${wi}:${Hr}`)}function U9(){return Hr-=5,Yp(`JSON5: invalid identifier character at ${wi}:${Hr}`)}function lM(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Yp(e){let t=new SyntaxError(e);return t.lineNumber=wi,t.columnNumber=Hr,t}var cM=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let f of t){let b;typeof f=="string"?b=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(b=String(f)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(f,b){let y=b[f];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(f):typeof y.toJSON=="function"&&(y=y.toJSON(f))),o&&(y=o.call(b,f,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return c(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?p(y):m(y)}function c(f){let b={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},h="";for(let C=0;Cb[C]=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=i||Object.keys(f),h=[];for(let C of y){let x=l(C,f);if(x!==void 0){let w=g(C)+":";s!==""&&(w+=" "),w+=x,h.push(w)}}let v;if(h.length===0)v="{}";else{let C;if(s==="")C=h.join(","),v="{"+C+"}";else{let x=`, +`+a;C=h.join(x),v=`{ `+a+C+`, -`+h+"}"}}return r.pop(),a=h,v}function g(f){if(f.length===0)return c(f,!0);let h=String.fromCodePoint(f.codePointAt(0));if(!$t.isIdStartChar(h))return c(f,!0);for(let y=h.length;y=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let h=a;a=a+s;let y=[];for(let v=0;v=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=[];for(let v=0;v()=>(t||e((t={exports:{}}).exports,t),t.exports),SM=(e,t)=>{for(var n in t)Zp(e,n,{get:t[n],enumerable:!0})},Jp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yM(t))!CM.call(e,a)&&a!==n&&Zp(e,a,{get:()=>t[a],enumerable:!(r=bM(t,a))||r.enumerable});return e},TM=(e,t,n)=>(Jp(e,t,"default"),n&&Jp(n,t,"default")),W9=(e,t,n)=>(n=e!=null?hM(vM(e)):{},Jp(t||!e||!e.__esModule?Zp(n,"default",{value:e,enumerable:!0}):n,e)),G9=xM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof m0=="object"&&m0&&m0.Object===Object&&m0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,h=Math.max,y=Math.min,b=function(){return g.Date.now()};function v(A,D,M){var I,P,R,L,_,U,z=0,Y=!1,ee=!1,Re=!0;if(typeof A!="function")throw new TypeError(n);D=T(D)||0,x(M)&&(Y=!!M.leading,ee="maxWait"in M,R=ee?h(T(M.maxWait)||0,D):R,Re="trailing"in M?!!M.trailing:Re);function xe(he){var pe=I,ke=P;return I=P=void 0,z=he,L=A.apply(ke,pe),L}function H(he){return z=he,_=setTimeout(Me,D),Y?xe(he):L}function W(he){var pe=he-U,ke=he-z,Ve=D-pe;return ee?y(Ve,R-ke):Ve}function te(he){var pe=he-U,ke=he-z;return U===void 0||pe>=D||pe<0||ee&&ke>=R}function Me(){var he=b();if(te(he))return ve(he);_=setTimeout(Me,W(he))}function ve(he){return _=void 0,Re&&I?xe(he):(I=P=void 0,L)}function $e(){_!==void 0&&clearTimeout(_),z=0,I=U=P=_=void 0}function Z(){return _===void 0?L:ve(b())}function ce(){var he=b(),pe=te(he);if(I=arguments,P=this,U=he,pe){if(_===void 0)return H(U);if(ee)return _=setTimeout(Me,D),xe(U)}return _===void 0&&(_=setTimeout(Me,D)),L}return ce.cancel=$e,ce.flush=Z,ce}function C(A,D,M){var I=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return x(M)&&(I="leading"in M?!!M.leading:I,P="trailing"in M?!!M.trailing:P),v(A,D,{leading:I,maxWait:D,trailing:P})}function x(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function w(A){return!!A&&typeof A=="object"}function S(A){return typeof A=="symbol"||w(A)&&f.call(A)==a}function T(A){if(typeof A=="number")return A;if(S(A))return r;if(x(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=x(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=C}),K9={};SM(K9,{default:()=>yr});var wM=W9(G9());TM(K9,W9(G9()));var{default:V9,...EM}=wM,yr=V9!==void 0?V9:EM;var g0=globalThis||(typeof window<"u"?window:self),AM=Object.create,$p=Object.defineProperty,kM=Object.getOwnPropertyDescriptor,DM=Object.getOwnPropertyNames,LM=Object.getPrototypeOf,MM=Object.prototype.hasOwnProperty,PM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),RM=(e,t)=>{for(var n in t)$p(e,n,{get:t[n],enumerable:!0})},Xp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of DM(t))!MM.call(e,a)&&a!==n&&$p(e,a,{get:()=>t[a],enumerable:!(r=kM(t,a))||r.enumerable});return e},IM=(e,t,n)=>(Xp(e,t,"default"),n&&Xp(n,t,"default")),Q9=(e,t,n)=>(n=e!=null?AM(LM(e)):{},Xp(t||!e||!e.__esModule?$p(n,"default",{value:e,enumerable:!0}):n,e)),J9=PM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof g0=="object"&&g0&&g0.Object===Object&&g0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,h=Math.max,y=Math.min,b=function(){return g.Date.now()};function v(T,A,D){var M,I,P,R,L,_,U=0,z=!1,Y=!1,ee=!0;if(typeof T!="function")throw new TypeError(n);A=S(A)||0,C(D)&&(z=!!D.leading,Y="maxWait"in D,P=Y?h(S(D.maxWait)||0,A):P,ee="trailing"in D?!!D.trailing:ee);function Re(ce){var he=M,pe=I;return M=I=void 0,U=ce,R=T.apply(pe,he),R}function xe(ce){return U=ce,L=setTimeout(te,A),z?Re(ce):R}function H(ce){var he=ce-_,pe=ce-U,ke=A-he;return Y?y(ke,P-pe):ke}function W(ce){var he=ce-_,pe=ce-U;return _===void 0||he>=A||he<0||Y&&pe>=P}function te(){var ce=b();if(W(ce))return Me(ce);L=setTimeout(te,H(ce))}function Me(ce){return L=void 0,ee&&M?Re(ce):(M=I=void 0,R)}function ve(){L!==void 0&&clearTimeout(L),U=0,M=_=I=L=void 0}function $e(){return L===void 0?R:Me(b())}function Z(){var ce=b(),he=W(ce);if(M=arguments,I=this,_=ce,he){if(L===void 0)return xe(_);if(Y)return L=setTimeout(te,A),Re(_)}return L===void 0&&(L=setTimeout(te,A)),R}return Z.cancel=ve,Z.flush=$e,Z}function C(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function x(T){return!!T&&typeof T=="object"}function w(T){return typeof T=="symbol"||x(T)&&f.call(T)==a}function S(T){if(typeof T=="number")return T;if(w(T))return r;if(C(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=C(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(i,"");var D=s.test(T);return D||u.test(T)?l(T.slice(2),D?2:8):o.test(T)?r:+T}t.exports=v}),Z9={};RM(Z9,{default:()=>Bn});var FM=Q9(J9());IM(Z9,Q9(J9()));var{default:Y9,...BM}=FM,Bn=Y9!==void 0?Y9:BM;var _M=Object.create,tf=Object.defineProperty,OM=Object.getOwnPropertyDescriptor,NM=Object.getOwnPropertyNames,UM=Object.getPrototypeOf,jM=Object.prototype.hasOwnProperty,HM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qM=(e,t)=>{for(var n in t)tf(e,n,{get:t[n],enumerable:!0})},ef=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of NM(t))!jM.call(e,a)&&a!==n&&tf(e,a,{get:()=>t[a],enumerable:!(r=OM(t,a))||r.enumerable});return e},zM=(e,t,n)=>(ef(e,t,"default"),n&&ef(n,t,"default")),$9=(e,t,n)=>(n=e!=null?_M(UM(e)):{},ef(t||!e||!e.__esModule?tf(n,"default",{value:e,enumerable:!0}):n,e)),e6=HM((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,m){l(r)==="object"&&l(i)==="object"?i.exports=m():(s=[],o=m,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function m(p){if(g[p])return g[p].exports;var f=g[p]={i:p,l:!1,exports:{}};return c[p].call(f.exports,f,f.exports,m),f.l=!0,f.exports}var g={};return m.m=c,m.c=g,m.i=function(p){return p},m.d=function(p,f,h){m.o(p,f)||Object.defineProperty(p,f,{configurable:!1,enumerable:!0,get:h})},m.n=function(p){var f=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(f,"a",f),f},m.o=function(p,f){return Object.prototype.hasOwnProperty.call(p,f)},m.p="",m(m.s=0)}([function(c,m,g){function p(H,W){var te={};for(var Me in H)W.indexOf(Me)>=0||Object.prototype.hasOwnProperty.call(H,Me)&&(te[Me]=H[Me]);return te}Object.defineProperty(m,"__esModule",{value:!0});var f=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":l(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":l(H)},h=Object.assign||function(H){for(var W=1;W'+Me+"
",ke.onclick=function(){return P(Ve,pe)},ke.listener=function(J){(D(J)||M(J))&&_()},I(ke,pe),$e&&$e<1&&($e=1),!ce&&$e&&x($e).then(function(){return P(Ve,pe)})},z=m.force=function(H,W){var te=H.type,Me=te===void 0?5:te,ve=H.text,$e=H.buttonText,Z=$e===void 0?"OK":$e,ce=H.callback,he=H.position,pe=he===void 0?b.positions.force||pe.top:he;w(),_();var ke=document.createElement("div"),Ve=S();ke.id=Ve;var J=document.createElement("div");J.classList.add(b.classes.textbox),J.classList.add(b.classes.backgroundInfo),J.innerHTML='
'+ve+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(T[Me]),Ee.innerHTML=Z,Ee.onclick=function(){P(Ve,pe),L(),ce?ce():W&&W()},ke.appendChild(J),ke.appendChild(Ee),ke.listener=function(Ct){D(Ct)&&Ee.click()},I(ke,pe),R()},Y=m.confirm=function(H,W,te){var Me=H.text,ve=H.submitText,$e=ve===void 0?"Yes":ve,Z=H.cancelText,ce=Z===void 0?"Cancel":Z,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,Ve=ke===void 0?b.positions.confirm||Ve.top:ke;w(),_();var J=document.createElement("div"),Ee=S();J.id=Ee;var Ct=document.createElement("div");Ct.classList.add(b.classes.textbox),Ct.classList.add(b.classes.backgroundInfo),Ct.innerHTML='
'+Me+"
";var ut=document.createElement("div");ut.classList.add(b.classes.button),ut.classList.add(b.classes.elementHalf),ut.classList.add(b.classes.backgroundSuccess),ut.innerHTML=$e,ut.onclick=function(){P(Ee,Ve),L(),he?he():W&&W()};var De=document.createElement("div");De.classList.add(b.classes.button),De.classList.add(b.classes.elementHalf),De.classList.add(b.classes.backgroundError),De.innerHTML=ce,De.onclick=function(){P(Ee,Ve),L(),pe?pe():te&&te()},J.appendChild(Ct),J.appendChild(ut),J.appendChild(De),J.listener=function(Nt){D(Nt)?ut.click():M(Nt)&&De.click()},I(J,Ve),R(J,Ve)},ee=function(H,W,te){var Me=H.text,ve=H.submitText,$e=ve===void 0?"Submit":ve,Z=H.cancelText,ce=Z===void 0?"Cancel":Z,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,Ve=ke===void 0?b.positions.input||Ve.top:ke,J=p(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var Ee=document.createElement("div"),Ct=S();Ee.id=Ct;var ut=document.createElement("div");ut.classList.add(b.classes.textbox),ut.classList.add(b.classes.backgroundInfo),ut.innerHTML='
'+Me+"
";var De=document.createElement("input");De.classList.add(b.classes.inputField),De.setAttribute("autocapitalize",J.autocapitalize||"none"),De.setAttribute("autocomplete",J.autocomplete||"off"),De.setAttribute("autocorrect",J.autocorrect||"off"),De.setAttribute("autofocus",J.autofocus||"true"),De.setAttribute("inputmode",J.inputmode||"verbatim"),De.setAttribute("max",J.max||""),De.setAttribute("maxlength",J.maxlength||""),De.setAttribute("min",J.min||""),De.setAttribute("minlength",J.minlength||""),De.setAttribute("placeholder",J.placeholder||""),De.setAttribute("spellcheck",J.spellcheck||"default"),De.setAttribute("step",J.step||"any"),De.setAttribute("type",J.type||"text"),De.value=J.value||"",J.allowed&&(De.oninput=function(){var Wt=void 0;if(Array.isArray(J.allowed)){for(var Xt="",Wn=J.allowed,Dr=0;Dr'+te+"
",pe.appendChild(Ve),Z.forEach(function(Ee,Ct){var ut=Ee.type,De=ut===void 0?1:ut,Nt=Ee.text,dn=Ee.handler,Wt=document.createElement("div");Wt.classList.add(T[De]),Wt.classList.add(b.classes.button),Wt.classList.add(b.classes.selectChoice);var Xt=Z[Ct+1];Xt&&!Xt.type&&(Xt.type=1),Xt&&Xt.type===De&&Wt.classList.add(b.classes.selectChoiceRepeated),Wt.innerHTML=Nt,Wt.onclick=function(){P(ke,he),L(),dn()},pe.appendChild(Wt)});var J=document.createElement("div");J.classList.add(b.classes.backgroundNeutral),J.classList.add(b.classes.button),J.innerHTML=ve,J.onclick=function(){P(ke,he),L(),$e?$e():W&&W()},pe.appendChild(J),pe.listener=function(Ee){M(Ee)&&J.click()},I(pe,he),R(pe,he)},xe=m.date=function(H,W,te){var Me=H.value,ve=Me===void 0?new Date:Me,$e=H.submitText,Z=$e===void 0?"OK":$e,ce=H.cancelText,he=ce===void 0?"Cancel":ce,pe=H.submitCallback,ke=H.cancelCallback,Ve=H.position,J=Ve===void 0?b.positions.date||J.top:Ve;w(),_();var Ee="▾",Ct=document.createElement("div"),ut=document.createElement("div"),De=document.createElement("div"),Nt=function(Ut){Ct.innerHTML=b.dateMonths[Ut.getMonth()],ut.innerHTML=Ut.getDate(),De.innerHTML=Ut.getFullYear()},dn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+1,0).getDate(),hr=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(hr)>xt&&(hr=xt.toString()),Ut.target.textContent=hr,Number(hr)<1&&(hr="1"),ve.setDate(Number(hr))},Wt=function(Ut){var xt=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ut.target.textContent=xt,ve.setFullYear(Number(xt))},Xt=function(Ut){Nt(ve)},Wn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+Ut+1,0).getDate();ve.getDate()>xt&&ve.setDate(xt),ve.setMonth(ve.getMonth()+Ut),Nt(ve)},Dr=function(Ut){ve.setDate(ve.getDate()+Ut),Nt(ve)},Pu=function(Ut){var xt=ve.getFullYear()+Ut;xt<0?ve.setFullYear(0):ve.setFullYear(ve.getFullYear()+Ut),Nt(ve)},va=document.createElement("div"),uo=S();va.id=uo;var Xo=document.createElement("div");Xo.classList.add(b.classes.backgroundInfo);var Rn=document.createElement("div");Rn.classList.add(b.classes.dateSelectorInner);var jr=document.createElement("div");jr.classList.add(b.classes.button),jr.classList.add(b.classes.elementThird),jr.classList.add(b.classes.dateSelectorUp),jr.innerHTML=Ee;var In=document.createElement("div");In.classList.add(b.classes.button),In.classList.add(b.classes.elementThird),In.classList.add(b.classes.dateSelectorUp),In.innerHTML=Ee;var fr=document.createElement("div");fr.classList.add(b.classes.button),fr.classList.add(b.classes.elementThird),fr.classList.add(b.classes.dateSelectorUp),fr.innerHTML=Ee,Ct.classList.add(b.classes.element),Ct.classList.add(b.classes.elementThird),Ct.innerHTML=b.dateMonths[ve.getMonth()],ut.classList.add(b.classes.element),ut.classList.add(b.classes.elementThird),ut.setAttribute("contentEditable",!0),ut.addEventListener("input",dn),ut.addEventListener("blur",Xt),ut.innerHTML=ve.getDate(),De.classList.add(b.classes.element),De.classList.add(b.classes.elementThird),De.setAttribute("contentEditable",!0),De.addEventListener("input",Wt),De.addEventListener("blur",Xt),De.innerHTML=ve.getFullYear();var Ga=document.createElement("div");Ga.classList.add(b.classes.button),Ga.classList.add(b.classes.elementThird),Ga.innerHTML=Ee;var Ka=document.createElement("div");Ka.classList.add(b.classes.button),Ka.classList.add(b.classes.elementThird),Ka.innerHTML=Ee;var lo=document.createElement("div");lo.classList.add(b.classes.button),lo.classList.add(b.classes.elementThird),lo.innerHTML=Ee,jr.onclick=function(){return Wn(1)},In.onclick=function(){return Dr(1)},fr.onclick=function(){return Pu(1)},Ga.onclick=function(){return Wn(-1)},Ka.onclick=function(){return Dr(-1)},lo.onclick=function(){return Pu(-1)};var Gn=document.createElement("div");Gn.classList.add(b.classes.button),Gn.classList.add(b.classes.elementHalf),Gn.classList.add(b.classes.backgroundSuccess),Gn.innerHTML=Z,Gn.onclick=function(){P(uo,J),L(),pe?pe(ve):W&&W(ve)};var Ya=document.createElement("div");Ya.classList.add(b.classes.button),Ya.classList.add(b.classes.elementHalf),Ya.classList.add(b.classes.backgroundError),Ya.innerHTML=he,Ya.onclick=function(){P(uo,J),L(),ke?ke(ve):te&&te(ve)},Rn.appendChild(jr),Rn.appendChild(In),Rn.appendChild(fr),Rn.appendChild(Ct),Rn.appendChild(ut),Rn.appendChild(De),Rn.appendChild(Ga),Rn.appendChild(Ka),Rn.appendChild(lo),Xo.appendChild(Rn),va.appendChild(Xo),va.appendChild(Gn),va.appendChild(Ya),va.listener=function(Ut){D(Ut)?Gn.click():M(Ut)&&Ya.click()},I(va,J),R(va,J)};m.default={alert:U,force:z,confirm:Y,input:ee,select:Re,date:xe,setOptions:v,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),t6={};qM(t6,{default:()=>p0});var VM=$9(e6());zM(t6,$9(e6()));var{default:X9,...WM}=VM,p0=X9!==void 0?X9:WM;var f0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ju(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function nf(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function n6(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ims[e.toLowerCase()]||Vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),KM=e=>Object.keys(ms).find(t=>ms[t]===e),YM=e=>Object.keys(Vr).find(t=>Vr[t]===e);function u6(e){o6=e||"all"}function Zu(){return o6||"all"}function QM(){return Et.slice(0)}function JM(){return Et.map(e=>KM(e)||YM(e)||String.fromCharCode(e))}function ZM(){let e=[];return Object.keys(jt).forEach(t=>{jt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Xu(o))})})}),e}function XM(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function $M(e){return typeof e=="string"&&(e=Xu(e)),Et.indexOf(e)!==-1}function eP(e,t){let n,r;e||(e=Zu());for(let a in jt)if(Object.prototype.hasOwnProperty.call(jt,a))for(n=jt[a],r=0;r=0&&Et.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Et.splice(0,Et.length),(t===93||t===224)&&(t=91),t in Cn){Cn[t]=!1;for(let r in Vr)Vr[r]===t&&(ni[r]=!1)}}function l6(e,...t){if(typeof e>"u")Object.keys(jt).forEach(n=>delete jt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&af(n)});else if(typeof e=="object")e.key&&af(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),af({key:e,scope:n,method:r,splitKey:"+"})}}var af=({key:e,scope:t,method:n,splitKey:r="+"})=>{rf(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Xu(u);if(!jt[l])return;t||(t=Zu());let c=s>1?nf(Vr,o):[];jt[l]=jt[l].filter(m=>!((n?m.method===n:!0)&&m.scope===t&&n6(m.mods,c)))})};function a6(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in Cn)Object.prototype.hasOwnProperty.call(Cn,i)&&(!Cn[i]&&t.mods.indexOf(+i)>-1||Cn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!Cn[16]&&!Cn[18]&&!Cn[17]&&!Cn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Et),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function i6(e,t){let n=jt["*"],r=e.keyCode||e.which||e.charCode;if(!ni.filter.call(this,e))return;if((r===93||r===224)&&(r=91),Et.indexOf(r)===-1&&r!==229&&Et.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=h0[i];e[i]&&Et.indexOf(o)===-1?Et.push(o):!e[i]&&Et.indexOf(o)>-1?Et.splice(Et.indexOf(o),1):i==="metaKey"&&e[i]&&Et.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Et=Et.slice(Et.indexOf(o))))}),r in Cn){Cn[r]=!0;for(let i in Vr)Vr[i]===r&&(ni[i]=!0);if(!n)return}for(let i in Cn)Object.prototype.hasOwnProperty.call(Cn,i)&&(Cn[i]=e[h0[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Et.indexOf(17)===-1&&Et.push(17),Et.indexOf(18)===-1&&Et.push(18),Cn[17]=!0,Cn[18]=!0);let a=Zu();if(n)for(let i=0;i-1}function ni(e,t,n){Et=[];let r=rf(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",m=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&l6(e,i);s1&&(a=nf(Vr,e)),e=e[e.length-1],e=e==="*"?"*":Xu(e),e in jt||(jt[e]=[]),jt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!nP(o)&&window&&(s6.push(o),Ju(o,"keydown",p=>{i6(p,o)},m),r6||(r6=!0,Ju(window,"focus",()=>{Et=[]},m),Ju(window,"click",()=>{Et=[]},!1)),Ju(o,"keyup",p=>{i6(p,o),tP(p)},m))}function rP(e,t="all"){Object.keys(jt).forEach(n=>{jt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var of={getPressedKeyString:JM,setScope:u6,getScope:Zu,deleteScope:eP,getPressedKeyCodes:QM,getAllKeyCodes:ZM,isPressed:$M,filter:XM,trigger:rP,unbind:l6,keyMap:ms,modifier:Vr,modifierMap:h0};for(let e in of)Object.prototype.hasOwnProperty.call(of,e)&&(ni[e]=of[e]);if(typeof window<"u"){let e=window.hotkeys;ni.noConflict=t=>(t&&window.hotkeys===ni&&(window.hotkeys=e),ni),window.hotkeys=ni}var Kt=ni;var aP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},d6={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},en={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Jn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ei={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=K.getVersionPrecision(e),a=K.getVersionPrecision(t),i=Math.max(r,a),o=0,s=K.map([e,t],u=>{let l=i-K.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return K.map(c.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return aP[e]}static getBrowserTypeByAlias(e){return d6[e]||""}},At=/version\/(\d+(\.?_?\d+)+)/i,iP=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(r,e),version:K.getSecondMatch(r,e)}}}],oP=iP,sP=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Jn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Jn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:Jn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Jn.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),r={name:Jn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Jn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),r={name:Jn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Jn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:Jn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Jn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Jn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Jn.Linux}}},{test:[/CrOS/],describe(){return{name:Jn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Jn.PlayStation4,version:t}}}],uP=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:en.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:en.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:en.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:en.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:en.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:en.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:en.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:en.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:en.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:en.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:en.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:en.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:en.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:en.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:en.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:en.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:en.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:en.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:en.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:en.tv}}}],lP=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ei.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ei.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ei.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ei.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ei.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ei.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ei.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],cP=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(oP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(sP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(uP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(lP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=K.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=K.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=K.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=K.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(K.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},c6=cP,dP=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new c6(e,t)}static parse(e){return new c6(e).getResult()}static get BROWSER_MAP(){return d6}static get ENGINE_MAP(){return Ei}static get OS_MAP(){return Jn}static get PLATFORMS_MAP(){return en}},gs=dP;var{entries:v6,setPrototypeOf:m6,isFrozen:mP,getPrototypeOf:gP,getOwnPropertyDescriptor:pP}=Object,{freeze:Zn,seal:Gr,create:fP}=Object,{apply:mf,construct:gf}=typeof Reflect<"u"&&Reflect;mf||(mf=function(e,t,n){return e.apply(t,n)});Zn||(Zn=function(e){return e});Gr||(Gr=function(e){return e});gf||(gf=function(e,t){return new e(...t)});var hP=Pr(Array.prototype.forEach),g6=Pr(Array.prototype.pop),$u=Pr(Array.prototype.push),v0=Pr(String.prototype.toLowerCase),sf=Pr(String.prototype.toString),bP=Pr(String.prototype.match),Wr=Pr(String.prototype.replace),yP=Pr(String.prototype.indexOf),vP=Pr(String.prototype.trim),vr=Pr(RegExp.prototype.test),el=CP(TypeError);function Pr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),EP=Gr(/\${[\w\W]*}/gm),AP=Gr(/^data-[\-\w.\u00B7-\uFFFF]/),kP=Gr(/^aria-[\-\w]+$/),C6=Gr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DP=Gr(/^(?:\w+script|data):/i),LP=Gr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x6=Gr(/^html$/i),y6=Object.freeze({__proto__:null,MUSTACHE_EXPR:TP,ERB_EXPR:wP,TMPLIT_EXPR:EP,DATA_ATTR:AP,ARIA_ATTR:kP,IS_ALLOWED_URI:C6,IS_SCRIPT_OR_DATA:DP,ATTR_WHITESPACE:LP,DOCTYPE_NAME:x6}),MP=()=>typeof window>"u"?null:window,PP=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function S6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MP(),t=B=>S6(B);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:p}=e,f=u.prototype,h=b0(f,"cloneNode"),y=b0(f,"nextSibling"),b=b0(f,"childNodes"),v=b0(f,"parentNode");if(typeof o=="function"){let B=a.createElement("template");B.content&&B.content.ownerDocument&&(a=B.content.ownerDocument)}let C,x="",{implementation:w,createNodeIterator:S,createDocumentFragment:T,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof v6=="function"&&typeof v=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:P,TMPLIT_EXPR:R,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:z}=y6,{IS_ALLOWED_URI:Y}=y6,ee=null,Re=Ke({},[...p6,...uf,...lf,...cf,...f6]),xe=null,H=Ke({},[...h6,...df,...b6,...y0]),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,Me=null,ve=!0,$e=!0,Z=!1,ce=!0,he=!1,pe=!1,ke=!1,Ve=!1,J=!1,Ee=!1,Ct=!1,ut=!0,De=!1,Nt="user-content-",dn=!0,Wt=!1,Xt={},Wn=null,Dr=Ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Pu=null,va=Ke({},["audio","video","img","source","image","track"]),uo=null,Xo=Ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",jr="http://www.w3.org/2000/svg",In="http://www.w3.org/1999/xhtml",fr=In,Ga=!1,Ka=null,lo=Ke({},[Rn,jr,In],sf),Gn,Ya=["application/xhtml+xml","text/html"],Ut="text/html",xt,hr=null,mE=a.createElement("form"),f2=function(B){return B instanceof RegExp||B instanceof Function},qg=function(B){if(!(hr&&hr===B)){if((!B||typeof B!="object")&&(B={}),B=ps(B),Gn=Ya.indexOf(B.PARSER_MEDIA_TYPE)===-1?Gn=Ut:Gn=B.PARSER_MEDIA_TYPE,xt=Gn==="application/xhtml+xml"?sf:v0,ee="ALLOWED_TAGS"in B?Ke({},B.ALLOWED_TAGS,xt):Re,xe="ALLOWED_ATTR"in B?Ke({},B.ALLOWED_ATTR,xt):H,Ka="ALLOWED_NAMESPACES"in B?Ke({},B.ALLOWED_NAMESPACES,sf):lo,uo="ADD_URI_SAFE_ATTR"in B?Ke(ps(Xo),B.ADD_URI_SAFE_ATTR,xt):Xo,Pu="ADD_DATA_URI_TAGS"in B?Ke(ps(va),B.ADD_DATA_URI_TAGS,xt):va,Wn="FORBID_CONTENTS"in B?Ke({},B.FORBID_CONTENTS,xt):Dr,te="FORBID_TAGS"in B?Ke({},B.FORBID_TAGS,xt):{},Me="FORBID_ATTR"in B?Ke({},B.FORBID_ATTR,xt):{},Xt="USE_PROFILES"in B?B.USE_PROFILES:!1,ve=B.ALLOW_ARIA_ATTR!==!1,$e=B.ALLOW_DATA_ATTR!==!1,Z=B.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=B.SAFE_FOR_TEMPLATES||!1,pe=B.WHOLE_DOCUMENT||!1,J=B.RETURN_DOM||!1,Ee=B.RETURN_DOM_FRAGMENT||!1,Ct=B.RETURN_TRUSTED_TYPE||!1,Ve=B.FORCE_BODY||!1,ut=B.SANITIZE_DOM!==!1,De=B.SANITIZE_NAMED_PROPS||!1,dn=B.KEEP_CONTENT!==!1,Wt=B.IN_PLACE||!1,Y=B.ALLOWED_URI_REGEXP||C6,fr=B.NAMESPACE||In,W=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&f2(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&f2(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&($e=!1),Ee&&(J=!0),Xt&&(ee=Ke({},[...f6]),xe=[],Xt.html===!0&&(Ke(ee,p6),Ke(xe,h6)),Xt.svg===!0&&(Ke(ee,uf),Ke(xe,df),Ke(xe,y0)),Xt.svgFilters===!0&&(Ke(ee,lf),Ke(xe,df),Ke(xe,y0)),Xt.mathMl===!0&&(Ke(ee,cf),Ke(xe,b6),Ke(xe,y0))),B.ADD_TAGS&&(ee===Re&&(ee=ps(ee)),Ke(ee,B.ADD_TAGS,xt)),B.ADD_ATTR&&(xe===H&&(xe=ps(xe)),Ke(xe,B.ADD_ATTR,xt)),B.ADD_URI_SAFE_ATTR&&Ke(uo,B.ADD_URI_SAFE_ATTR,xt),B.FORBID_CONTENTS&&(Wn===Dr&&(Wn=ps(Wn)),Ke(Wn,B.FORBID_CONTENTS,xt)),dn&&(ee["#text"]=!0),pe&&Ke(ee,["html","head","body"]),ee.table&&(Ke(ee,["tbody"]),delete te.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=B.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else C===void 0&&(C=PP(p,r)),C!==null&&typeof x=="string"&&(x=C.createHTML(""));Zn&&Zn(B),hr=B}},h2=Ke({},["mi","mo","mn","ms","mtext"]),b2=Ke({},["foreignobject","desc","title","annotation-xml"]),gE=Ke({},["title","style","font","a","script"]),jc=Ke({},uf);Ke(jc,lf),Ke(jc,xP);let zg=Ke({},cf);Ke(zg,SP);let pE=function(B){let ge=v(B);(!ge||!ge.tagName)&&(ge={namespaceURI:fr,tagName:"template"});let ie=v0(B.tagName),gt=v0(ge.tagName);return Ka[B.namespaceURI]?B.namespaceURI===jr?ge.namespaceURI===In?ie==="svg":ge.namespaceURI===Rn?ie==="svg"&&(gt==="annotation-xml"||h2[gt]):!!jc[ie]:B.namespaceURI===Rn?ge.namespaceURI===In?ie==="math":ge.namespaceURI===jr?ie==="math"&&b2[gt]:!!zg[ie]:B.namespaceURI===In?ge.namespaceURI===jr&&!b2[gt]||ge.namespaceURI===Rn&&!h2[gt]?!1:!zg[ie]&&(gE[ie]||!jc[ie]):!!(Gn==="application/xhtml+xml"&&Ka[B.namespaceURI]):!1},$o=function(B){$u(t.removed,{element:B});try{B.parentNode.removeChild(B)}catch{B.remove()}},Vg=function(B,ge){try{$u(t.removed,{attribute:ge.getAttributeNode(B),from:ge})}catch{$u(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(B),B==="is"&&!xe[B])if(J||Ee)try{$o(ge)}catch{}else try{ge.setAttribute(B,"")}catch{}},y2=function(B){let ge,ie;if(Ve)B=""+B;else{let Kn=bP(B,/^[\r\n\t ]+/);ie=Kn&&Kn[0]}Gn==="application/xhtml+xml"&&fr===In&&(B=''+B+"");let gt=C?C.createHTML(B):B;if(fr===In)try{ge=new g().parseFromString(gt,Gn)}catch{}if(!ge||!ge.documentElement){ge=w.createDocument(fr,"template",null);try{ge.documentElement.innerHTML=Ga?x:gt}catch{}}let mn=ge.body||ge.documentElement;return B&&ie&&mn.insertBefore(a.createTextNode(ie),mn.childNodes[0]||null),fr===In?A.call(ge,pe?"html":"body")[0]:pe?ge.documentElement:mn},v2=function(B){return S.call(B.ownerDocument||B,B,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},fE=function(B){return B instanceof m&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},Hc=function(B){return typeof s=="object"?B instanceof s:B&&typeof B=="object"&&typeof B.nodeType=="number"&&typeof B.nodeName=="string"},Qa=function(B,ge,ie){M[B]&&hP(M[B],gt=>{gt.call(t,ge,ie,hr)})},C2=function(B){let ge;if(Qa("beforeSanitizeElements",B,null),fE(B))return $o(B),!0;let ie=xt(B.nodeName);if(Qa("uponSanitizeElement",B,{tagName:ie,allowedTags:ee}),B.hasChildNodes()&&!Hc(B.firstElementChild)&&(!Hc(B.content)||!Hc(B.content.firstElementChild))&&vr(/<[/\w]/g,B.innerHTML)&&vr(/<[/\w]/g,B.textContent))return $o(B),!0;if(!ee[ie]||te[ie]){if(!te[ie]&&S2(ie)&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie)))return!1;if(dn&&!Wn[ie]){let gt=v(B)||B.parentNode,mn=b(B)||B.childNodes;if(mn&>){let Kn=mn.length;for(let ir=Kn-1;ir>=0;--ir)gt.insertBefore(h(mn[ir],!0),y(B))}}return $o(B),!0}return B instanceof u&&!pE(B)||(ie==="noscript"||ie==="noembed")&&vr(/<\/no(script|embed)/i,B.innerHTML)?($o(B),!0):(he&&B.nodeType===3&&(ge=B.textContent,ge=Wr(ge,I," "),ge=Wr(ge,P," "),ge=Wr(ge,R," "),B.textContent!==ge&&($u(t.removed,{element:B.cloneNode()}),B.textContent=ge)),Qa("afterSanitizeElements",B,null),!1)},x2=function(B,ge,ie){if(ut&&(ge==="id"||ge==="name")&&(ie in a||ie in mE))return!1;if(!($e&&!Me[ge]&&vr(L,ge))&&!(ve&&vr(_,ge))){if(!xe[ge]||Me[ge]){if(!(S2(B)&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,B)||W.tagNameCheck instanceof Function&&W.tagNameCheck(B))&&(W.attributeNameCheck instanceof RegExp&&vr(W.attributeNameCheck,ge)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(ge))||ge==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie))))return!1}else if(!uo[ge]&&!vr(Y,Wr(ie,z,""))&&!((ge==="src"||ge==="xlink:href"||ge==="href")&&B!=="script"&&yP(ie,"data:")===0&&Pu[B])&&!(Z&&!vr(U,Wr(ie,z,"")))&&ie)return!1}return!0},S2=function(B){return B.indexOf("-")>0},T2=function(B){let ge,ie,gt,mn;Qa("beforeSanitizeAttributes",B,null);let{attributes:Kn}=B;if(!Kn)return;let ir={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(mn=Kn.length;mn--;){ge=Kn[mn];let{name:yn,namespaceURI:es}=ge;if(ie=yn==="value"?ge.value:vP(ge.value),gt=xt(yn),ir.attrName=gt,ir.attrValue=ie,ir.keepAttr=!0,ir.forceKeepAttr=void 0,Qa("uponSanitizeAttribute",B,ir),ie=ir.attrValue,ir.forceKeepAttr||(Vg(yn,B),!ir.keepAttr))continue;if(!ce&&vr(/\/>/i,ie)){Vg(yn,B);continue}he&&(ie=Wr(ie,I," "),ie=Wr(ie,P," "),ie=Wr(ie,R," "));let w2=xt(B.nodeName);if(x2(w2,gt,ie)){if(De&&(gt==="id"||gt==="name")&&(Vg(yn,B),ie=Nt+ie),C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!es)switch(p.getAttributeType(w2,gt)){case"TrustedHTML":{ie=C.createHTML(ie);break}case"TrustedScriptURL":{ie=C.createScriptURL(ie);break}}try{es?B.setAttributeNS(es,yn,ie):B.setAttribute(yn,ie),g6(t.removed)}catch{}}}Qa("afterSanitizeAttributes",B,null)},hE=function B(ge){let ie,gt=v2(ge);for(Qa("beforeSanitizeShadowDOM",ge,null);ie=gt.nextNode();)Qa("uponSanitizeShadowNode",ie,null),!C2(ie)&&(ie.content instanceof i&&B(ie.content),T2(ie));Qa("afterSanitizeShadowDOM",ge,null)};return t.sanitize=function(B){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie,gt,mn,Kn;if(Ga=!B,Ga&&(B=""),typeof B!="string"&&!Hc(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw el("dirty is not a string, aborting")}else throw el("toString is not a function");if(!t.isSupported)return B;if(ke||qg(ge),t.removed=[],typeof B=="string"&&(Wt=!1),Wt){if(B.nodeName){let es=xt(B.nodeName);if(!ee[es]||te[es])throw el("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof s)ie=y2(""),gt=ie.ownerDocument.importNode(B,!0),gt.nodeType===1&>.nodeName==="BODY"||gt.nodeName==="HTML"?ie=gt:ie.appendChild(gt);else{if(!J&&!he&&!pe&&B.indexOf("<")===-1)return C&&Ct?C.createHTML(B):B;if(ie=y2(B),!ie)return J?null:Ct?x:""}ie&&Ve&&$o(ie.firstChild);let ir=v2(Wt?B:ie);for(;mn=ir.nextNode();)C2(mn)||(mn.content instanceof i&&hE(mn.content),T2(mn));if(Wt)return B;if(J){if(Ee)for(Kn=T.call(ie.ownerDocument);ie.firstChild;)Kn.appendChild(ie.firstChild);else Kn=ie;return(xe.shadowroot||xe.shadowrootmod)&&(Kn=D.call(n,Kn,!0)),Kn}let yn=pe?ie.outerHTML:ie.innerHTML;return pe&&ee["!doctype"]&&ie.ownerDocument&&ie.ownerDocument.doctype&&ie.ownerDocument.doctype.name&&vr(x6,ie.ownerDocument.doctype.name)&&(yn=" -`+yn),he&&(yn=Wr(yn,I," "),yn=Wr(yn,P," "),yn=Wr(yn,R," ")),C&&Ct?C.createHTML(yn):yn},t.setConfig=function(B){qg(B),ke=!0},t.clearConfig=function(){hr=null,ke=!1},t.isValidAttribute=function(B,ge,ie){hr||qg({});let gt=xt(B),mn=xt(ge);return x2(gt,mn,ie)},t.addHook=function(B,ge){typeof ge=="function"&&(M[B]=M[B]||[],$u(M[B],ge))},t.removeHook=function(B){if(M[B])return g6(M[B])},t.removeHooks=function(B){M[B]&&(M[B]=[])},t.removeAllHooks=function(){M={}},t}var lt=S6();var RP=Object.create,ff=Object.defineProperty,IP=Object.getOwnPropertyDescriptor,FP=Object.getOwnPropertyNames,BP=Object.getPrototypeOf,_P=Object.prototype.hasOwnProperty,hf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),OP=(e,t)=>{for(var n in t)ff(e,n,{get:t[n],enumerable:!0})},pf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of FP(t))!_P.call(e,a)&&a!==n&&ff(e,a,{get:()=>t[a],enumerable:!(r=IP(t,a))||r.enumerable});return e},NP=(e,t,n)=>(pf(e,t,"default"),n&&pf(n,t,"default")),w6=(e,t,n)=>(n=e!=null?RP(BP(e)):{},pf(t||!e||!e.__esModule?ff(n,"default",{value:e,enumerable:!0}):n,e)),UP=hf((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var m=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(m,l)}else{for(var g=this._doc.createElement("span");l.firstChild;)g.appendChild(l.firstChild);l.parentNode.replaceChild(g,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),m=l.getAttribute("poster"),g=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),m&&l.setAttribute("poster",o(m)),g){var p=g.replace(this.REGEXPS.srcsetUrl,function(f,h,y,b){return o(h)+(y||"")+b});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var m=r.getElementsByTagName("h1");m.length===1&&(a=this._getInnerText(m[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var g=s(a);return g<=4&&(!o||g!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ve=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ve&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ve=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var m=null,g=l.firstChild;g;){var p=g.nextSibling;if(this._isPhrasingContent(g))m!==null?m.appendChild(g):this._isWhitespace(g)||(m=a.createElement("p"),l.replaceChild(m,g),m.appendChild(g));else if(m!==null){for(;m.lastChild&&this._isWhitespace(m.lastChild);)m.removeChild(m.lastChild);m=null}g=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var f=l.children[0];l.parentNode.replaceChild(f,l),l=f,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(J){if(!(!J.parentNode||typeof J.parentNode.tagName>"u")){var Ee=this._getInnerText(J);if(!(Ee.length<25)){var Ct=this._getNodeAncestors(J,5);if(Ct.length!==0){var ut=0;ut+=1,ut+=Ee.split(",").length,ut+=Math.min(Math.floor(Ee.length/100),3),this._forEachNode(Ct,function(De,Nt){if(!(!De.tagName||!De.parentNode||typeof De.parentNode.tagName>"u")){if(typeof De.readability>"u"&&(this._initializeNode(De),h.push(De)),Nt===0)var dn=1;else Nt===1?dn=2:dn=Nt*3;De.readability.contentScore+=ut/dn}})}}}});for(var y=[],b=0,v=h.length;bS.readability.contentScore){y.splice(w,0,C),y.length>this._nbTopCandidates&&y.pop();break}}}var T=y[0]||null,A=!1,D;if(T===null||T.tagName==="BODY"){for(T=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),T.appendChild(r.firstChild);r.appendChild(T),this._initializeNode(T)}else if(T){for(var M=[],I=1;I=.75&&M.push(this._getNodeAncestors(y[I]));var P=3;if(M.length>=P)for(D=T.parentNode;D.tagName!=="BODY";){for(var R=0,L=0;L=P){T=D;break}D=D.parentNode}T.readability||this._initializeNode(T),D=T.parentNode;for(var _=T.readability.contentScore,U=_/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var z=D.readability.contentScore;if(z_){T=D;break}_=D.readability.contentScore,D=D.parentNode}for(D=T.parentNode;D.tagName!="BODY"&&D.children.length==1;)T=D,D=T.parentNode;T.readability||this._initializeNode(T)}var Y=a.createElement("DIV");i&&(Y.id="readability-content");var ee=Math.max(10,T.readability.contentScore*.2);D=T.parentNode;for(var Re=D.children,xe=0,H=Re.length;xe=ee)te=!0;else if(W.nodeName==="P"){var ve=this._getLinkDensity(W),$e=this._getInnerText(W),Z=$e.length;(Z>80&&ve<.25||Z<80&&Z>0&&ve===0&&$e.search(/\.( |$)/)!==-1)&&(te=!0)}}te&&(this.log("Appending node:",W),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(W.nodeName)===-1&&(this.log("Altering sibling:",W,"to div."),W=this._setNodeTag(W,"DIV")),Y.appendChild(W),Re=D.children,xe-=1,H-=1)}if(this._debug&&this.log("Article content pre-prep: "+Y.innerHTML),this._prepArticle(Y),this._debug&&this.log("Article content post-prep: "+Y.innerHTML),A)T.id="readability-page-1",T.className="page";else{var ce=a.createElement("DIV");for(ce.id="readability-page-1",ce.className="page";Y.firstChild;)ce.appendChild(Y.firstChild);Y.appendChild(ce)}this._debug&&this.log("Article content after paging: "+Y.innerHTML);var he=!0,pe=this._getInnerText(Y,!0).length;if(pe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(g){return(g["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,m=this._textSimilarity(u.headline,l)>.75;m&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(g){return g&&typeof g.name=="string"}).map(function(g){return g.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(g){this.log(g.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),m=l.getAttribute("property"),g=l.getAttribute("content");if(g){var p=null,f=null;m&&(p=m.match(s),p&&(f=p[0].toLowerCase().replace(/\s/g,""),i[f]=g.trim())),!p&&c&&u.test(c)&&(f=c,g&&(f=f.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[f]=g.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var m=["col","colgroup","tfoot","thead","th"],g=function(f){return!!o.getElementsByTagName(f)[0]};if(m.some(g)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var m=0;if(c+m<0)return!0;if(this._getCharCount(i,",")<10){for(var g=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,f=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,y=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),b=0,v=this._getAllNodesWithTag(i,["object","embed","iframe"]),C=0;C1&&g/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&f>g||h>Math.floor(g/3)||!s&&y<.9&&S<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||b===1&&S<75||b>1;if(s&&T){for(var A=0;A1)return T;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return T}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),jP=hf((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(g){c.add(g.parentNode)}),u=Array.from(c)}var m=0;return[].some.call(u,function(g){if(!o.visibilityChecker(g))return!1;var p=g.className+" "+g.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||g.matches("li p"))return!1;var f=g.textContent.trim().length;return fo.minScore)})}typeof t=="object"&&(t.exports=a)}),E6=hf((e,t)=>{var n=UP(),r=jP();t.exports={Readability:n,isProbablyReaderable:r}}),A6={};OP(A6,{Readability:()=>C0,default:()=>L6,isProbablyReaderable:()=>D6});var k6=w6(E6());NP(A6,w6(E6()));var{Readability:C0,isProbablyReaderable:D6}=k6,{default:T6,...HP}=k6,L6=T6!==void 0?T6:HP;var bf=p0.alert;function Te(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var we=Te();function X(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):we.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Ta(){return we.PROD==="1"}function yf(){return we.PROD_API==="1"}function M6(){return we.HAS_CSP_ERROR=="1"}function He(){if(we.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function fs(){return we.IMMERSIVE_TRANSLATE_SAFARI==="1"}function x0(){return typeof Deno<"u"}var XK=Te().PROD==="1",hs=Te().PROD!=="1";function S0(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function tl(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}function vf(){return we.IMMERSIVE_TRANSLATE_JSSDK==="1"}var re="immersiveTranslate",vo="Immersive Translate",F="immersive-translate",k0="imt",Co="immersivetranslate",P6="pdf/index.html";var et="immersivetranslate.com",qP=`https://config.${et}/`,nY=`https://app.${et}/`,Q=Ta()||yf()?`https://${et}/`:`https://test.${et}/`,bs=`https://dash.${et}/`,ct=Ta()||yf()?`https://api2.${et}/`:`https://test-api2.${et}/`,nl=`https://github.com/${F}/${F}/`,xn=`https://s.${et}/`,rY=`https://onboarding.${et}/`,R6=re+"DeeplGlobalState",Cf=re+"BingGlobalState",xf=re+"YandexGlobalState",Sf=re+"BaiduQianfanGlobalConfigStorageKey",I6=re+"SiliconCloudGlobalConfigStorageKey",F6=re+"ZhipuGlobalConfigStorageKey",D0="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",Ai=re+"GoogleAccessToken",rl=re+"AuthFlow",L0=F+"-config-latest.json",Tf=re+"AuthState",M0=re+"IframeMessage",aY=re+"WaitForRateLimit",B6=re+"DocumentMessageAsk",tn=re+"DocumentMessageTellThirdParty",_n=re+"showError",xo=re+"showModal",P0=re+"showToast",_6=re+"DocumentMessageThirdPartyTell",O6=re+"DocumentMessageEventUpload",iY=re+"DocumentMessageTypeStopJsSDK",zP=re+"DocumentMessageHandler",R0=re+"DocumentSetFloatBallActive",I0=`${re}Share`,F0=`${re}ShowFloatBallGuide`,ys=re+"DocumentMessageTempEnableSubtitleChanged",al=`${re}ToggleMouseHoverTranslateDirectly`,N6=`${re}ReqDraft`,U6=`${re}ResDraft`,VP=`${re}Container`,j6=`${re}SpecifiedContainer`,B0="buildinConfig",vs="localConfig",il="openOptionsPage",ol="translateMangaMenuId",wf="openAboutPage",H6="translateLocalPdfFile",sl="openEbookViewer",ul="openEbookBuilder";var So=`${re}PageTranslatedStatus`,ll=`${re}MangaTranslatedStatus`,oY=`${re}PageUrlChanged`,Kr=`${re}ReceiveCommand`,q6=re+"LastUseMouseHoverTime",cl=re+"LastUseInputTime",Rr=re+"LastUseManualTranslatePageTime",sY=`${re}PopupReceiveMessage`,To=re+"DocumentMessageEventTogglePopup",ki=`${qP}default_config.json`,uY=`${re}Mark`,Cr=`${re}Root`,z6=`${re}Walked`,lY=`data-${F}-walked`,V6=`${re}Paragraph`,W6=`data-${F}-paragraph`,Cs=`data-${F}-translation-element-mark`,G6=`${re}TranslationElementMark`,cY=`${re}TranslatedMark`,Ef=`${F}-input-injected-css`,K6=`${re}LoadingId`,Af=`data-${F}-loading-id`,Y6=`${re}ErrorId`,_0=`data-${F}-error-id`,WP=`${re}AtomicBlockMark`,Q6=`${re}ExcludeMark`,dY=`data-${F}-exclude-mark`,GP=`${re}StayOriginalMark`,mY=`${re}PreWhitespaceMark`,O0=`${re}InlineMark`,J6=`${re}BlockMark`,gY=`${re}Left`,pY=`${re}Right`,fY=`${re}Width`,hY=`${re}Height`,bY=`${re}Top`,yY=`${re}FontSize`,Z6="lastRunTime";var vY=`${re}GlobalStyleMark`,xs=["@","#"],N0=" --- ",X6=` -`,Yt=`${F}-target-wrapper`,CY=`${F}-pdf-target-container`,U0=`${F}-target-inner`,xY=`${F}-source-wrapper`,kf=`${F}-target-translation-block-wrapper`,SY=`${F}-root-translation-theme`,Ss=`${re}RootTranslationTheme`,$6=`${F}-target-translation-vertical-block-wrapper`,TY=`${F}-target-translation-pdf-block-wrapper`,ey=`${F}-target-translation-pre-whitespace`,Df=`${F}-target-translation-inline-wrapper`,Lf=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],dl={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var j0=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],ty=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",bs,bs+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Di="zh-CN",ml=Q+"docs/communities/",ny=nl+"issues/1809",ry=nl+"issues/1179",H0={type:re+"ChildFrameToRootFrameIdentifier"},Mf=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],ri=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],ay=["ctrl","alt","shift","cmd","command","option","control"],q0=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],z0=Ta()?bs+"#general":"http://localhost:8000/dist/userscript/options/#general",gl="user_from_plugin",pt="user_info",Ts=Q+"accounts/login?from=plugin",Pf=bs+"#general",iy=Q+"accounts/login?from=plugin&return_url="+encodeURIComponent(Pf),oy=Ts+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",sy=Ts+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Li=Q+"profile/",pl=Q+"auth/pricing/",Ln=Q+"pricing/",KP=Q+"download/",YP=Q+"topup?type=open_ai&",QP=Q+"topup?type=deepl&",uy=Q+"topup?type=comics&",wY=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",ly=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",cy=KP+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",EY=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",V0=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Rf=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",AY=Li+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",dy=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",my=YP+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",gy=QP+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",py=Q+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",fy=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",If=Li+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Ff=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Bf=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",fl=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",hy=pl+"?utm_source=extension&utm_medium=extension&utm_campaign=",hl=Q+"docs/usage/",_f=Q+"docs/communities/",bl=Te().TRANSLATE_FILE_URL,by=bl+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",yy=bl+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",vy=`${bl}download-subtitle/`,Cy=`${bl}pdf-pro/`,yl=`${bl}text/`,ai=["deepl","openai","gemini","claude"],xy="G-BHWL0KMJB8",Sy="7pr-olTJR6GKAjIW48UD0Q",T0="G-MKMD9LWFTR",w0="sitc4WmvShWYwfU0dANM3Q",E0="G-V5H2F5MJFJ",A0="UBjpGOLISEaY5LVXNj3WvQ",Ty="G-0LPWNREXBB",wy="JVF4YeOaTVyDV27CTLhPtQ";function Ey(){return vf()?[{measurementId:xy,apiSecret:Sy}]:Ta?[{measurementId:T0,apiSecret:w0},{measurementId:E0,apiSecret:A0}]:[{measurementId:T0,apiSecret:w0},{measurementId:E0,apiSecret:A0}]}function vl(){return vf()?[`https://www.google-analytics.com/mp/collect?measurement_id=${xy}&api_secret=${Sy}`]:Ta?[`https://www.google-analytics.com/mp/collect?measurement_id=${T0}&api_secret=${w0}`,`https://www.google-analytics.com/mp/collect?measurement_id=${E0}&api_secret=${A0}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${T0}&api_secret=${w0}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${E0}&api_secret=${A0}`]}var Cl=`https://analytics.${et}/collect`,kY=`${Q}activities/components/image-pro`;var Ay="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",ky="0VmM83i2D1ICuYBf",W0=`[${k0}-ctx-divider]`,G0=`${k0}_context_preview`,Dy=`\u{1F44B} \u563F\uFF0C\u4F60\u53D1\u73B0\u4E86\u5F69\u86CB\uFF01 +`+b+"]"}return r.pop(),a=b,h}},dM={parse:aM,stringify:cM},mM=dM,c0=mM;var H9=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function gM(e,t){return!!(e===t||H9(e)&&H9(t))}function pM(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),xM=(e,t)=>{for(var n in t)Jp(e,n,{get:t[n],enumerable:!0})},Qp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of bM(t))!vM.call(e,a)&&a!==n&&Jp(e,a,{get:()=>t[a],enumerable:!(r=hM(t,a))||r.enumerable});return e},TM=(e,t,n)=>(Qp(e,t,"default"),n&&Qp(n,t,"default")),z9=(e,t,n)=>(n=e!=null?fM(yM(e)):{},Qp(t||!e||!e.__esModule?Jp(n,"default",{value:e,enumerable:!0}):n,e)),V9=CM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof d0=="object"&&d0&&d0.Object===Object&&d0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(A,D,M){var I,P,R,L,_,U,z=0,Y=!1,ee=!1,Re=!0;if(typeof A!="function")throw new TypeError(n);D=S(D)||0,x(M)&&(Y=!!M.leading,ee="maxWait"in M,R=ee?b(S(M.maxWait)||0,D):R,Re="trailing"in M?!!M.trailing:Re);function xe(he){var pe=I,ke=P;return I=P=void 0,z=he,L=A.apply(ke,pe),L}function H(he){return z=he,_=setTimeout(Me,D),Y?xe(he):L}function W(he){var pe=he-U,ke=he-z,ze=D-pe;return ee?y(ze,R-ke):ze}function te(he){var pe=he-U,ke=he-z;return U===void 0||pe>=D||pe<0||ee&&ke>=R}function Me(){var he=h();if(te(he))return ve(he);_=setTimeout(Me,W(he))}function ve(he){return _=void 0,Re&&I?xe(he):(I=P=void 0,L)}function $e(){_!==void 0&&clearTimeout(_),z=0,I=U=P=_=void 0}function Z(){return _===void 0?L:ve(h())}function ce(){var he=h(),pe=te(he);if(I=arguments,P=this,U=he,pe){if(_===void 0)return H(U);if(ee)return _=setTimeout(Me,D),xe(U)}return _===void 0&&(_=setTimeout(Me,D)),L}return ce.cancel=$e,ce.flush=Z,ce}function C(A,D,M){var I=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return x(M)&&(I="leading"in M?!!M.leading:I,P="trailing"in M?!!M.trailing:P),v(A,D,{leading:I,maxWait:D,trailing:P})}function x(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function w(A){return!!A&&typeof A=="object"}function T(A){return typeof A=="symbol"||w(A)&&f.call(A)==a}function S(A){if(typeof A=="number")return A;if(T(A))return r;if(x(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=x(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=C}),W9={};xM(W9,{default:()=>br});var SM=z9(V9());TM(W9,z9(V9()));var{default:q9,...wM}=SM,br=q9!==void 0?q9:wM;var m0=globalThis||(typeof window<"u"?window:self),EM=Object.create,Xp=Object.defineProperty,AM=Object.getOwnPropertyDescriptor,kM=Object.getOwnPropertyNames,DM=Object.getPrototypeOf,LM=Object.prototype.hasOwnProperty,MM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),PM=(e,t)=>{for(var n in t)Xp(e,n,{get:t[n],enumerable:!0})},Zp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kM(t))!LM.call(e,a)&&a!==n&&Xp(e,a,{get:()=>t[a],enumerable:!(r=AM(t,a))||r.enumerable});return e},RM=(e,t,n)=>(Zp(e,t,"default"),n&&Zp(n,t,"default")),K9=(e,t,n)=>(n=e!=null?EM(DM(e)):{},Zp(t||!e||!e.__esModule?Xp(n,"default",{value:e,enumerable:!0}):n,e)),Y9=MM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof m0=="object"&&m0&&m0.Object===Object&&m0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(S,A,D){var M,I,P,R,L,_,U=0,z=!1,Y=!1,ee=!0;if(typeof S!="function")throw new TypeError(n);A=T(A)||0,C(D)&&(z=!!D.leading,Y="maxWait"in D,P=Y?b(T(D.maxWait)||0,A):P,ee="trailing"in D?!!D.trailing:ee);function Re(ce){var he=M,pe=I;return M=I=void 0,U=ce,R=S.apply(pe,he),R}function xe(ce){return U=ce,L=setTimeout(te,A),z?Re(ce):R}function H(ce){var he=ce-_,pe=ce-U,ke=A-he;return Y?y(ke,P-pe):ke}function W(ce){var he=ce-_,pe=ce-U;return _===void 0||he>=A||he<0||Y&&pe>=P}function te(){var ce=h();if(W(ce))return Me(ce);L=setTimeout(te,H(ce))}function Me(ce){return L=void 0,ee&&M?Re(ce):(M=I=void 0,R)}function ve(){L!==void 0&&clearTimeout(L),U=0,M=_=I=L=void 0}function $e(){return L===void 0?R:Me(h())}function Z(){var ce=h(),he=W(ce);if(M=arguments,I=this,_=ce,he){if(L===void 0)return xe(_);if(Y)return L=setTimeout(te,A),Re(_)}return L===void 0&&(L=setTimeout(te,A)),R}return Z.cancel=ve,Z.flush=$e,Z}function C(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function x(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||x(S)&&f.call(S)==a}function T(S){if(typeof S=="number")return S;if(w(S))return r;if(C(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=C(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(i,"");var D=s.test(S);return D||u.test(S)?l(S.slice(2),D?2:8):o.test(S)?r:+S}t.exports=v}),Q9={};PM(Q9,{default:()=>Bn});var IM=K9(Y9());RM(Q9,K9(Y9()));var{default:G9,...FM}=IM,Bn=G9!==void 0?G9:FM;var BM=Object.create,ef=Object.defineProperty,_M=Object.getOwnPropertyDescriptor,OM=Object.getOwnPropertyNames,NM=Object.getPrototypeOf,UM=Object.prototype.hasOwnProperty,jM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),HM=(e,t)=>{for(var n in t)ef(e,n,{get:t[n],enumerable:!0})},$p=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of OM(t))!UM.call(e,a)&&a!==n&&ef(e,a,{get:()=>t[a],enumerable:!(r=_M(t,a))||r.enumerable});return e},qM=(e,t,n)=>($p(e,t,"default"),n&&$p(n,t,"default")),Z9=(e,t,n)=>(n=e!=null?BM(NM(e)):{},$p(t||!e||!e.__esModule?ef(n,"default",{value:e,enumerable:!0}):n,e)),X9=jM((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,m){l(r)==="object"&&l(i)==="object"?i.exports=m():(s=[],o=m,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function m(p){if(g[p])return g[p].exports;var f=g[p]={i:p,l:!1,exports:{}};return c[p].call(f.exports,f,f.exports,m),f.l=!0,f.exports}var g={};return m.m=c,m.c=g,m.i=function(p){return p},m.d=function(p,f,b){m.o(p,f)||Object.defineProperty(p,f,{configurable:!1,enumerable:!0,get:b})},m.n=function(p){var f=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(f,"a",f),f},m.o=function(p,f){return Object.prototype.hasOwnProperty.call(p,f)},m.p="",m(m.s=0)}([function(c,m,g){function p(H,W){var te={};for(var Me in H)W.indexOf(Me)>=0||Object.prototype.hasOwnProperty.call(H,Me)&&(te[Me]=H[Me]);return te}Object.defineProperty(m,"__esModule",{value:!0});var f=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":l(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":l(H)},b=Object.assign||function(H){for(var W=1;W'+Me+"",ke.onclick=function(){return P(ze,pe)},ke.listener=function(J){(D(J)||M(J))&&_()},I(ke,pe),$e&&$e<1&&($e=1),!ce&&$e&&x($e).then(function(){return P(ze,pe)})},z=m.force=function(H,W){var te=H.type,Me=te===void 0?5:te,ve=H.text,$e=H.buttonText,Z=$e===void 0?"OK":$e,ce=H.callback,he=H.position,pe=he===void 0?h.positions.force||pe.top:he;w(),_();var ke=document.createElement("div"),ze=T();ke.id=ze;var J=document.createElement("div");J.classList.add(h.classes.textbox),J.classList.add(h.classes.backgroundInfo),J.innerHTML='
'+ve+"
";var Ee=document.createElement("div");Ee.classList.add(h.classes.button),Ee.classList.add(S[Me]),Ee.innerHTML=Z,Ee.onclick=function(){P(ze,pe),L(),ce?ce():W&&W()},ke.appendChild(J),ke.appendChild(Ee),ke.listener=function(Ct){D(Ct)&&Ee.click()},I(ke,pe),R()},Y=m.confirm=function(H,W,te){var Me=H.text,ve=H.submitText,$e=ve===void 0?"Yes":ve,Z=H.cancelText,ce=Z===void 0?"Cancel":Z,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,ze=ke===void 0?h.positions.confirm||ze.top:ke;w(),_();var J=document.createElement("div"),Ee=T();J.id=Ee;var Ct=document.createElement("div");Ct.classList.add(h.classes.textbox),Ct.classList.add(h.classes.backgroundInfo),Ct.innerHTML='
'+Me+"
";var ut=document.createElement("div");ut.classList.add(h.classes.button),ut.classList.add(h.classes.elementHalf),ut.classList.add(h.classes.backgroundSuccess),ut.innerHTML=$e,ut.onclick=function(){P(Ee,ze),L(),he?he():W&&W()};var De=document.createElement("div");De.classList.add(h.classes.button),De.classList.add(h.classes.elementHalf),De.classList.add(h.classes.backgroundError),De.innerHTML=ce,De.onclick=function(){P(Ee,ze),L(),pe?pe():te&&te()},J.appendChild(Ct),J.appendChild(ut),J.appendChild(De),J.listener=function(Nt){D(Nt)?ut.click():M(Nt)&&De.click()},I(J,ze),R(J,ze)},ee=function(H,W,te){var Me=H.text,ve=H.submitText,$e=ve===void 0?"Submit":ve,Z=H.cancelText,ce=Z===void 0?"Cancel":Z,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,ze=ke===void 0?h.positions.input||ze.top:ke,J=p(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var Ee=document.createElement("div"),Ct=T();Ee.id=Ct;var ut=document.createElement("div");ut.classList.add(h.classes.textbox),ut.classList.add(h.classes.backgroundInfo),ut.innerHTML='
'+Me+"
";var De=document.createElement("input");De.classList.add(h.classes.inputField),De.setAttribute("autocapitalize",J.autocapitalize||"none"),De.setAttribute("autocomplete",J.autocomplete||"off"),De.setAttribute("autocorrect",J.autocorrect||"off"),De.setAttribute("autofocus",J.autofocus||"true"),De.setAttribute("inputmode",J.inputmode||"verbatim"),De.setAttribute("max",J.max||""),De.setAttribute("maxlength",J.maxlength||""),De.setAttribute("min",J.min||""),De.setAttribute("minlength",J.minlength||""),De.setAttribute("placeholder",J.placeholder||""),De.setAttribute("spellcheck",J.spellcheck||"default"),De.setAttribute("step",J.step||"any"),De.setAttribute("type",J.type||"text"),De.value=J.value||"",J.allowed&&(De.oninput=function(){var Wt=void 0;if(Array.isArray(J.allowed)){for(var Xt="",Vn=J.allowed,kr=0;kr'+te+"",pe.appendChild(ze),Z.forEach(function(Ee,Ct){var ut=Ee.type,De=ut===void 0?1:ut,Nt=Ee.text,dn=Ee.handler,Wt=document.createElement("div");Wt.classList.add(S[De]),Wt.classList.add(h.classes.button),Wt.classList.add(h.classes.selectChoice);var Xt=Z[Ct+1];Xt&&!Xt.type&&(Xt.type=1),Xt&&Xt.type===De&&Wt.classList.add(h.classes.selectChoiceRepeated),Wt.innerHTML=Nt,Wt.onclick=function(){P(ke,he),L(),dn()},pe.appendChild(Wt)});var J=document.createElement("div");J.classList.add(h.classes.backgroundNeutral),J.classList.add(h.classes.button),J.innerHTML=ve,J.onclick=function(){P(ke,he),L(),$e?$e():W&&W()},pe.appendChild(J),pe.listener=function(Ee){M(Ee)&&J.click()},I(pe,he),R(pe,he)},xe=m.date=function(H,W,te){var Me=H.value,ve=Me===void 0?new Date:Me,$e=H.submitText,Z=$e===void 0?"OK":$e,ce=H.cancelText,he=ce===void 0?"Cancel":ce,pe=H.submitCallback,ke=H.cancelCallback,ze=H.position,J=ze===void 0?h.positions.date||J.top:ze;w(),_();var Ee="▾",Ct=document.createElement("div"),ut=document.createElement("div"),De=document.createElement("div"),Nt=function(Ut){Ct.innerHTML=h.dateMonths[Ut.getMonth()],ut.innerHTML=Ut.getDate(),De.innerHTML=Ut.getFullYear()},dn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+1,0).getDate(),fr=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(fr)>xt&&(fr=xt.toString()),Ut.target.textContent=fr,Number(fr)<1&&(fr="1"),ve.setDate(Number(fr))},Wt=function(Ut){var xt=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ut.target.textContent=xt,ve.setFullYear(Number(xt))},Xt=function(Ut){Nt(ve)},Vn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+Ut+1,0).getDate();ve.getDate()>xt&&ve.setDate(xt),ve.setMonth(ve.getMonth()+Ut),Nt(ve)},kr=function(Ut){ve.setDate(ve.getDate()+Ut),Nt(ve)},Pu=function(Ut){var xt=ve.getFullYear()+Ut;xt<0?ve.setFullYear(0):ve.setFullYear(ve.getFullYear()+Ut),Nt(ve)},ya=document.createElement("div"),uo=T();ya.id=uo;var Xo=document.createElement("div");Xo.classList.add(h.classes.backgroundInfo);var Rn=document.createElement("div");Rn.classList.add(h.classes.dateSelectorInner);var Ur=document.createElement("div");Ur.classList.add(h.classes.button),Ur.classList.add(h.classes.elementThird),Ur.classList.add(h.classes.dateSelectorUp),Ur.innerHTML=Ee;var In=document.createElement("div");In.classList.add(h.classes.button),In.classList.add(h.classes.elementThird),In.classList.add(h.classes.dateSelectorUp),In.innerHTML=Ee;var pr=document.createElement("div");pr.classList.add(h.classes.button),pr.classList.add(h.classes.elementThird),pr.classList.add(h.classes.dateSelectorUp),pr.innerHTML=Ee,Ct.classList.add(h.classes.element),Ct.classList.add(h.classes.elementThird),Ct.innerHTML=h.dateMonths[ve.getMonth()],ut.classList.add(h.classes.element),ut.classList.add(h.classes.elementThird),ut.setAttribute("contentEditable",!0),ut.addEventListener("input",dn),ut.addEventListener("blur",Xt),ut.innerHTML=ve.getDate(),De.classList.add(h.classes.element),De.classList.add(h.classes.elementThird),De.setAttribute("contentEditable",!0),De.addEventListener("input",Wt),De.addEventListener("blur",Xt),De.innerHTML=ve.getFullYear();var Wa=document.createElement("div");Wa.classList.add(h.classes.button),Wa.classList.add(h.classes.elementThird),Wa.innerHTML=Ee;var Ga=document.createElement("div");Ga.classList.add(h.classes.button),Ga.classList.add(h.classes.elementThird),Ga.innerHTML=Ee;var lo=document.createElement("div");lo.classList.add(h.classes.button),lo.classList.add(h.classes.elementThird),lo.innerHTML=Ee,Ur.onclick=function(){return Vn(1)},In.onclick=function(){return kr(1)},pr.onclick=function(){return Pu(1)},Wa.onclick=function(){return Vn(-1)},Ga.onclick=function(){return kr(-1)},lo.onclick=function(){return Pu(-1)};var Wn=document.createElement("div");Wn.classList.add(h.classes.button),Wn.classList.add(h.classes.elementHalf),Wn.classList.add(h.classes.backgroundSuccess),Wn.innerHTML=Z,Wn.onclick=function(){P(uo,J),L(),pe?pe(ve):W&&W(ve)};var Ka=document.createElement("div");Ka.classList.add(h.classes.button),Ka.classList.add(h.classes.elementHalf),Ka.classList.add(h.classes.backgroundError),Ka.innerHTML=he,Ka.onclick=function(){P(uo,J),L(),ke?ke(ve):te&&te(ve)},Rn.appendChild(Ur),Rn.appendChild(In),Rn.appendChild(pr),Rn.appendChild(Ct),Rn.appendChild(ut),Rn.appendChild(De),Rn.appendChild(Wa),Rn.appendChild(Ga),Rn.appendChild(lo),Xo.appendChild(Rn),ya.appendChild(Xo),ya.appendChild(Wn),ya.appendChild(Ka),ya.listener=function(Ut){D(Ut)?Wn.click():M(Ut)&&Ka.click()},I(ya,J),R(ya,J)};m.default={alert:U,force:z,confirm:Y,input:ee,select:Re,date:xe,setOptions:v,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),$9={};HM($9,{default:()=>g0});var zM=Z9(X9());qM($9,Z9(X9()));var{default:J9,...VM}=zM,g0=J9!==void 0?J9:VM;var p0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ju(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function tf(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function e6(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ims[e.toLowerCase()]||zr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),WM=e=>Object.keys(ms).find(t=>ms[t]===e),KM=e=>Object.keys(zr).find(t=>zr[t]===e);function o6(e){a6=e||"all"}function Zu(){return a6||"all"}function YM(){return Et.slice(0)}function QM(){return Et.map(e=>WM(e)||KM(e)||String.fromCharCode(e))}function JM(){let e=[];return Object.keys(jt).forEach(t=>{jt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Xu(o))})})}),e}function ZM(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function XM(e){return typeof e=="string"&&(e=Xu(e)),Et.indexOf(e)!==-1}function $M(e,t){let n,r;e||(e=Zu());for(let a in jt)if(Object.prototype.hasOwnProperty.call(jt,a))for(n=jt[a],r=0;r=0&&Et.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Et.splice(0,Et.length),(t===93||t===224)&&(t=91),t in Cn){Cn[t]=!1;for(let r in zr)zr[r]===t&&(ti[r]=!1)}}function s6(e,...t){if(typeof e>"u")Object.keys(jt).forEach(n=>delete jt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&rf(n)});else if(typeof e=="object")e.key&&rf(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),rf({key:e,scope:n,method:r,splitKey:"+"})}}var rf=({key:e,scope:t,method:n,splitKey:r="+"})=>{nf(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Xu(u);if(!jt[l])return;t||(t=Zu());let c=s>1?tf(zr,o):[];jt[l]=jt[l].filter(m=>!((n?m.method===n:!0)&&m.scope===t&&e6(m.mods,c)))})};function n6(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in Cn)Object.prototype.hasOwnProperty.call(Cn,i)&&(!Cn[i]&&t.mods.indexOf(+i)>-1||Cn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!Cn[16]&&!Cn[18]&&!Cn[17]&&!Cn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Et),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function r6(e,t){let n=jt["*"],r=e.keyCode||e.which||e.charCode;if(!ti.filter.call(this,e))return;if((r===93||r===224)&&(r=91),Et.indexOf(r)===-1&&r!==229&&Et.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=f0[i];e[i]&&Et.indexOf(o)===-1?Et.push(o):!e[i]&&Et.indexOf(o)>-1?Et.splice(Et.indexOf(o),1):i==="metaKey"&&e[i]&&Et.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Et=Et.slice(Et.indexOf(o))))}),r in Cn){Cn[r]=!0;for(let i in zr)zr[i]===r&&(ti[i]=!0);if(!n)return}for(let i in Cn)Object.prototype.hasOwnProperty.call(Cn,i)&&(Cn[i]=e[f0[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Et.indexOf(17)===-1&&Et.push(17),Et.indexOf(18)===-1&&Et.push(18),Cn[17]=!0,Cn[18]=!0);let a=Zu();if(n)for(let i=0;i-1}function ti(e,t,n){Et=[];let r=nf(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",m=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&s6(e,i);s1&&(a=tf(zr,e)),e=e[e.length-1],e=e==="*"?"*":Xu(e),e in jt||(jt[e]=[]),jt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!tP(o)&&window&&(i6.push(o),Ju(o,"keydown",p=>{r6(p,o)},m),t6||(t6=!0,Ju(window,"focus",()=>{Et=[]},m),Ju(window,"click",()=>{Et=[]},!1)),Ju(o,"keyup",p=>{r6(p,o),eP(p)},m))}function nP(e,t="all"){Object.keys(jt).forEach(n=>{jt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var af={getPressedKeyString:QM,setScope:o6,getScope:Zu,deleteScope:$M,getPressedKeyCodes:YM,getAllKeyCodes:JM,isPressed:XM,filter:ZM,trigger:nP,unbind:s6,keyMap:ms,modifier:zr,modifierMap:f0};for(let e in af)Object.prototype.hasOwnProperty.call(af,e)&&(ti[e]=af[e]);if(typeof window<"u"){let e=window.hotkeys;ti.noConflict=t=>(t&&window.hotkeys===ti&&(window.hotkeys=e),ti),window.hotkeys=ti}var Kt=ti;var rP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},l6={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},en={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Qn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ei={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=K.getVersionPrecision(e),a=K.getVersionPrecision(t),i=Math.max(r,a),o=0,s=K.map([e,t],u=>{let l=i-K.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return K.map(c.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return rP[e]}static getBrowserTypeByAlias(e){return l6[e]||""}},At=/version\/(\d+(\.?_?\d+)+)/i,aP=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(At,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(r,e),version:K.getSecondMatch(r,e)}}}],iP=aP,oP=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Qn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Qn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:Qn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Qn.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),r={name:Qn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Qn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),r={name:Qn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Qn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:Qn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Qn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Qn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Qn.Linux}}},{test:[/CrOS/],describe(){return{name:Qn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Qn.PlayStation4,version:t}}}],sP=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:en.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:en.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:en.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:en.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:en.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:en.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:en.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:en.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:en.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:en.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:en.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:en.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:en.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:en.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:en.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:en.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:en.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:en.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:en.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:en.tv}}}],uP=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ei.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ei.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ei.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ei.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ei.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ei.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ei.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],lP=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(iP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(oP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(sP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(uP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=K.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=K.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=K.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=K.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(K.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},u6=lP,cP=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new u6(e,t)}static parse(e){return new u6(e).getResult()}static get BROWSER_MAP(){return l6}static get ENGINE_MAP(){return Ei}static get OS_MAP(){return Qn}static get PLATFORMS_MAP(){return en}},gs=cP;var{entries:b6,setPrototypeOf:c6,isFrozen:dP,getPrototypeOf:mP,getOwnPropertyDescriptor:gP}=Object,{freeze:Jn,seal:Wr,create:pP}=Object,{apply:df,construct:mf}=typeof Reflect<"u"&&Reflect;df||(df=function(e,t,n){return e.apply(t,n)});Jn||(Jn=function(e){return e});Wr||(Wr=function(e){return e});mf||(mf=function(e,t){return new e(...t)});var fP=Mr(Array.prototype.forEach),d6=Mr(Array.prototype.pop),$u=Mr(Array.prototype.push),y0=Mr(String.prototype.toLowerCase),of=Mr(String.prototype.toString),hP=Mr(String.prototype.match),Vr=Mr(String.prototype.replace),bP=Mr(String.prototype.indexOf),yP=Mr(String.prototype.trim),yr=Mr(RegExp.prototype.test),el=vP(TypeError);function Mr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),wP=Wr(/\${[\w\W]*}/gm),EP=Wr(/^data-[\-\w.\u00B7-\uFFFF]/),AP=Wr(/^aria-[\-\w]+$/),y6=Wr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kP=Wr(/^(?:\w+script|data):/i),DP=Wr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),v6=Wr(/^html$/i),h6=Object.freeze({__proto__:null,MUSTACHE_EXPR:TP,ERB_EXPR:SP,TMPLIT_EXPR:wP,DATA_ATTR:EP,ARIA_ATTR:AP,IS_ALLOWED_URI:y6,IS_SCRIPT_OR_DATA:kP,ATTR_WHITESPACE:DP,DOCTYPE_NAME:v6}),LP=()=>typeof window>"u"?null:window,MP=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function C6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LP(),t=B=>C6(B);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:p}=e,f=u.prototype,b=h0(f,"cloneNode"),y=h0(f,"nextSibling"),h=h0(f,"childNodes"),v=h0(f,"parentNode");if(typeof o=="function"){let B=a.createElement("template");B.content&&B.content.ownerDocument&&(a=B.content.ownerDocument)}let C,x="",{implementation:w,createNodeIterator:T,createDocumentFragment:S,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof b6=="function"&&typeof v=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:P,TMPLIT_EXPR:R,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:z}=h6,{IS_ALLOWED_URI:Y}=h6,ee=null,Re=Ge({},[...m6,...sf,...uf,...lf,...g6]),xe=null,H=Ge({},[...p6,...cf,...f6,...b0]),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,Me=null,ve=!0,$e=!0,Z=!1,ce=!0,he=!1,pe=!1,ke=!1,ze=!1,J=!1,Ee=!1,Ct=!1,ut=!0,De=!1,Nt="user-content-",dn=!0,Wt=!1,Xt={},Vn=null,kr=Ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Pu=null,ya=Ge({},["audio","video","img","source","image","track"]),uo=null,Xo=Ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",Ur="http://www.w3.org/2000/svg",In="http://www.w3.org/1999/xhtml",pr=In,Wa=!1,Ga=null,lo=Ge({},[Rn,Ur,In],of),Wn,Ka=["application/xhtml+xml","text/html"],Ut="text/html",xt,fr=null,dE=a.createElement("form"),g2=function(B){return B instanceof RegExp||B instanceof Function},Hg=function(B){if(!(fr&&fr===B)){if((!B||typeof B!="object")&&(B={}),B=ps(B),Wn=Ka.indexOf(B.PARSER_MEDIA_TYPE)===-1?Wn=Ut:Wn=B.PARSER_MEDIA_TYPE,xt=Wn==="application/xhtml+xml"?of:y0,ee="ALLOWED_TAGS"in B?Ge({},B.ALLOWED_TAGS,xt):Re,xe="ALLOWED_ATTR"in B?Ge({},B.ALLOWED_ATTR,xt):H,Ga="ALLOWED_NAMESPACES"in B?Ge({},B.ALLOWED_NAMESPACES,of):lo,uo="ADD_URI_SAFE_ATTR"in B?Ge(ps(Xo),B.ADD_URI_SAFE_ATTR,xt):Xo,Pu="ADD_DATA_URI_TAGS"in B?Ge(ps(ya),B.ADD_DATA_URI_TAGS,xt):ya,Vn="FORBID_CONTENTS"in B?Ge({},B.FORBID_CONTENTS,xt):kr,te="FORBID_TAGS"in B?Ge({},B.FORBID_TAGS,xt):{},Me="FORBID_ATTR"in B?Ge({},B.FORBID_ATTR,xt):{},Xt="USE_PROFILES"in B?B.USE_PROFILES:!1,ve=B.ALLOW_ARIA_ATTR!==!1,$e=B.ALLOW_DATA_ATTR!==!1,Z=B.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=B.SAFE_FOR_TEMPLATES||!1,pe=B.WHOLE_DOCUMENT||!1,J=B.RETURN_DOM||!1,Ee=B.RETURN_DOM_FRAGMENT||!1,Ct=B.RETURN_TRUSTED_TYPE||!1,ze=B.FORCE_BODY||!1,ut=B.SANITIZE_DOM!==!1,De=B.SANITIZE_NAMED_PROPS||!1,dn=B.KEEP_CONTENT!==!1,Wt=B.IN_PLACE||!1,Y=B.ALLOWED_URI_REGEXP||y6,pr=B.NAMESPACE||In,W=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&g2(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&g2(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&($e=!1),Ee&&(J=!0),Xt&&(ee=Ge({},[...g6]),xe=[],Xt.html===!0&&(Ge(ee,m6),Ge(xe,p6)),Xt.svg===!0&&(Ge(ee,sf),Ge(xe,cf),Ge(xe,b0)),Xt.svgFilters===!0&&(Ge(ee,uf),Ge(xe,cf),Ge(xe,b0)),Xt.mathMl===!0&&(Ge(ee,lf),Ge(xe,f6),Ge(xe,b0))),B.ADD_TAGS&&(ee===Re&&(ee=ps(ee)),Ge(ee,B.ADD_TAGS,xt)),B.ADD_ATTR&&(xe===H&&(xe=ps(xe)),Ge(xe,B.ADD_ATTR,xt)),B.ADD_URI_SAFE_ATTR&&Ge(uo,B.ADD_URI_SAFE_ATTR,xt),B.FORBID_CONTENTS&&(Vn===kr&&(Vn=ps(Vn)),Ge(Vn,B.FORBID_CONTENTS,xt)),dn&&(ee["#text"]=!0),pe&&Ge(ee,["html","head","body"]),ee.table&&(Ge(ee,["tbody"]),delete te.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw el('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=B.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else C===void 0&&(C=MP(p,r)),C!==null&&typeof x=="string"&&(x=C.createHTML(""));Jn&&Jn(B),fr=B}},p2=Ge({},["mi","mo","mn","ms","mtext"]),f2=Ge({},["foreignobject","desc","title","annotation-xml"]),mE=Ge({},["title","style","font","a","script"]),Uc=Ge({},sf);Ge(Uc,uf),Ge(Uc,CP);let qg=Ge({},lf);Ge(qg,xP);let gE=function(B){let ge=v(B);(!ge||!ge.tagName)&&(ge={namespaceURI:pr,tagName:"template"});let ie=y0(B.tagName),gt=y0(ge.tagName);return Ga[B.namespaceURI]?B.namespaceURI===Ur?ge.namespaceURI===In?ie==="svg":ge.namespaceURI===Rn?ie==="svg"&&(gt==="annotation-xml"||p2[gt]):!!Uc[ie]:B.namespaceURI===Rn?ge.namespaceURI===In?ie==="math":ge.namespaceURI===Ur?ie==="math"&&f2[gt]:!!qg[ie]:B.namespaceURI===In?ge.namespaceURI===Ur&&!f2[gt]||ge.namespaceURI===Rn&&!p2[gt]?!1:!qg[ie]&&(mE[ie]||!Uc[ie]):!!(Wn==="application/xhtml+xml"&&Ga[B.namespaceURI]):!1},$o=function(B){$u(t.removed,{element:B});try{B.parentNode.removeChild(B)}catch{B.remove()}},zg=function(B,ge){try{$u(t.removed,{attribute:ge.getAttributeNode(B),from:ge})}catch{$u(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(B),B==="is"&&!xe[B])if(J||Ee)try{$o(ge)}catch{}else try{ge.setAttribute(B,"")}catch{}},h2=function(B){let ge,ie;if(ze)B=""+B;else{let Gn=hP(B,/^[\r\n\t ]+/);ie=Gn&&Gn[0]}Wn==="application/xhtml+xml"&&pr===In&&(B=''+B+"");let gt=C?C.createHTML(B):B;if(pr===In)try{ge=new g().parseFromString(gt,Wn)}catch{}if(!ge||!ge.documentElement){ge=w.createDocument(pr,"template",null);try{ge.documentElement.innerHTML=Wa?x:gt}catch{}}let mn=ge.body||ge.documentElement;return B&&ie&&mn.insertBefore(a.createTextNode(ie),mn.childNodes[0]||null),pr===In?A.call(ge,pe?"html":"body")[0]:pe?ge.documentElement:mn},b2=function(B){return T.call(B.ownerDocument||B,B,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},pE=function(B){return B instanceof m&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},jc=function(B){return typeof s=="object"?B instanceof s:B&&typeof B=="object"&&typeof B.nodeType=="number"&&typeof B.nodeName=="string"},Ya=function(B,ge,ie){M[B]&&fP(M[B],gt=>{gt.call(t,ge,ie,fr)})},y2=function(B){let ge;if(Ya("beforeSanitizeElements",B,null),pE(B))return $o(B),!0;let ie=xt(B.nodeName);if(Ya("uponSanitizeElement",B,{tagName:ie,allowedTags:ee}),B.hasChildNodes()&&!jc(B.firstElementChild)&&(!jc(B.content)||!jc(B.content.firstElementChild))&&yr(/<[/\w]/g,B.innerHTML)&&yr(/<[/\w]/g,B.textContent))return $o(B),!0;if(!ee[ie]||te[ie]){if(!te[ie]&&C2(ie)&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie)))return!1;if(dn&&!Vn[ie]){let gt=v(B)||B.parentNode,mn=h(B)||B.childNodes;if(mn&>){let Gn=mn.length;for(let ir=Gn-1;ir>=0;--ir)gt.insertBefore(b(mn[ir],!0),y(B))}}return $o(B),!0}return B instanceof u&&!gE(B)||(ie==="noscript"||ie==="noembed")&&yr(/<\/no(script|embed)/i,B.innerHTML)?($o(B),!0):(he&&B.nodeType===3&&(ge=B.textContent,ge=Vr(ge,I," "),ge=Vr(ge,P," "),ge=Vr(ge,R," "),B.textContent!==ge&&($u(t.removed,{element:B.cloneNode()}),B.textContent=ge)),Ya("afterSanitizeElements",B,null),!1)},v2=function(B,ge,ie){if(ut&&(ge==="id"||ge==="name")&&(ie in a||ie in dE))return!1;if(!($e&&!Me[ge]&&yr(L,ge))&&!(ve&&yr(_,ge))){if(!xe[ge]||Me[ge]){if(!(C2(B)&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,B)||W.tagNameCheck instanceof Function&&W.tagNameCheck(B))&&(W.attributeNameCheck instanceof RegExp&&yr(W.attributeNameCheck,ge)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(ge))||ge==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie))))return!1}else if(!uo[ge]&&!yr(Y,Vr(ie,z,""))&&!((ge==="src"||ge==="xlink:href"||ge==="href")&&B!=="script"&&bP(ie,"data:")===0&&Pu[B])&&!(Z&&!yr(U,Vr(ie,z,"")))&&ie)return!1}return!0},C2=function(B){return B.indexOf("-")>0},x2=function(B){let ge,ie,gt,mn;Ya("beforeSanitizeAttributes",B,null);let{attributes:Gn}=B;if(!Gn)return;let ir={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(mn=Gn.length;mn--;){ge=Gn[mn];let{name:yn,namespaceURI:es}=ge;if(ie=yn==="value"?ge.value:yP(ge.value),gt=xt(yn),ir.attrName=gt,ir.attrValue=ie,ir.keepAttr=!0,ir.forceKeepAttr=void 0,Ya("uponSanitizeAttribute",B,ir),ie=ir.attrValue,ir.forceKeepAttr||(zg(yn,B),!ir.keepAttr))continue;if(!ce&&yr(/\/>/i,ie)){zg(yn,B);continue}he&&(ie=Vr(ie,I," "),ie=Vr(ie,P," "),ie=Vr(ie,R," "));let T2=xt(B.nodeName);if(v2(T2,gt,ie)){if(De&&(gt==="id"||gt==="name")&&(zg(yn,B),ie=Nt+ie),C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!es)switch(p.getAttributeType(T2,gt)){case"TrustedHTML":{ie=C.createHTML(ie);break}case"TrustedScriptURL":{ie=C.createScriptURL(ie);break}}try{es?B.setAttributeNS(es,yn,ie):B.setAttribute(yn,ie),d6(t.removed)}catch{}}}Ya("afterSanitizeAttributes",B,null)},fE=function B(ge){let ie,gt=b2(ge);for(Ya("beforeSanitizeShadowDOM",ge,null);ie=gt.nextNode();)Ya("uponSanitizeShadowNode",ie,null),!y2(ie)&&(ie.content instanceof i&&B(ie.content),x2(ie));Ya("afterSanitizeShadowDOM",ge,null)};return t.sanitize=function(B){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie,gt,mn,Gn;if(Wa=!B,Wa&&(B=""),typeof B!="string"&&!jc(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw el("dirty is not a string, aborting")}else throw el("toString is not a function");if(!t.isSupported)return B;if(ke||Hg(ge),t.removed=[],typeof B=="string"&&(Wt=!1),Wt){if(B.nodeName){let es=xt(B.nodeName);if(!ee[es]||te[es])throw el("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof s)ie=h2(""),gt=ie.ownerDocument.importNode(B,!0),gt.nodeType===1&>.nodeName==="BODY"||gt.nodeName==="HTML"?ie=gt:ie.appendChild(gt);else{if(!J&&!he&&!pe&&B.indexOf("<")===-1)return C&&Ct?C.createHTML(B):B;if(ie=h2(B),!ie)return J?null:Ct?x:""}ie&&ze&&$o(ie.firstChild);let ir=b2(Wt?B:ie);for(;mn=ir.nextNode();)y2(mn)||(mn.content instanceof i&&fE(mn.content),x2(mn));if(Wt)return B;if(J){if(Ee)for(Gn=S.call(ie.ownerDocument);ie.firstChild;)Gn.appendChild(ie.firstChild);else Gn=ie;return(xe.shadowroot||xe.shadowrootmod)&&(Gn=D.call(n,Gn,!0)),Gn}let yn=pe?ie.outerHTML:ie.innerHTML;return pe&&ee["!doctype"]&&ie.ownerDocument&&ie.ownerDocument.doctype&&ie.ownerDocument.doctype.name&&yr(v6,ie.ownerDocument.doctype.name)&&(yn=" +`+yn),he&&(yn=Vr(yn,I," "),yn=Vr(yn,P," "),yn=Vr(yn,R," ")),C&&Ct?C.createHTML(yn):yn},t.setConfig=function(B){Hg(B),ke=!0},t.clearConfig=function(){fr=null,ke=!1},t.isValidAttribute=function(B,ge,ie){fr||Hg({});let gt=xt(B),mn=xt(ge);return v2(gt,mn,ie)},t.addHook=function(B,ge){typeof ge=="function"&&(M[B]=M[B]||[],$u(M[B],ge))},t.removeHook=function(B){if(M[B])return d6(M[B])},t.removeHooks=function(B){M[B]&&(M[B]=[])},t.removeAllHooks=function(){M={}},t}var lt=C6();var PP=Object.create,pf=Object.defineProperty,RP=Object.getOwnPropertyDescriptor,IP=Object.getOwnPropertyNames,FP=Object.getPrototypeOf,BP=Object.prototype.hasOwnProperty,ff=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_P=(e,t)=>{for(var n in t)pf(e,n,{get:t[n],enumerable:!0})},gf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of IP(t))!BP.call(e,a)&&a!==n&&pf(e,a,{get:()=>t[a],enumerable:!(r=RP(t,a))||r.enumerable});return e},OP=(e,t,n)=>(gf(e,t,"default"),n&&gf(n,t,"default")),T6=(e,t,n)=>(n=e!=null?PP(FP(e)):{},gf(t||!e||!e.__esModule?pf(n,"default",{value:e,enumerable:!0}):n,e)),NP=ff((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var m=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(m,l)}else{for(var g=this._doc.createElement("span");l.firstChild;)g.appendChild(l.firstChild);l.parentNode.replaceChild(g,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),m=l.getAttribute("poster"),g=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),m&&l.setAttribute("poster",o(m)),g){var p=g.replace(this.REGEXPS.srcsetUrl,function(f,b,y,h){return o(b)+(y||"")+h});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var m=r.getElementsByTagName("h1");m.length===1&&(a=this._getInnerText(m[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var g=s(a);return g<=4&&(!o||g!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let ze=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(ze&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),ze=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var m=null,g=l.firstChild;g;){var p=g.nextSibling;if(this._isPhrasingContent(g))m!==null?m.appendChild(g):this._isWhitespace(g)||(m=a.createElement("p"),l.replaceChild(m,g),m.appendChild(g));else if(m!==null){for(;m.lastChild&&this._isWhitespace(m.lastChild);)m.removeChild(m.lastChild);m=null}g=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var f=l.children[0];l.parentNode.replaceChild(f,l),l=f,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(J){if(!(!J.parentNode||typeof J.parentNode.tagName>"u")){var Ee=this._getInnerText(J);if(!(Ee.length<25)){var Ct=this._getNodeAncestors(J,5);if(Ct.length!==0){var ut=0;ut+=1,ut+=Ee.split(",").length,ut+=Math.min(Math.floor(Ee.length/100),3),this._forEachNode(Ct,function(De,Nt){if(!(!De.tagName||!De.parentNode||typeof De.parentNode.tagName>"u")){if(typeof De.readability>"u"&&(this._initializeNode(De),b.push(De)),Nt===0)var dn=1;else Nt===1?dn=2:dn=Nt*3;De.readability.contentScore+=ut/dn}})}}}});for(var y=[],h=0,v=b.length;hT.readability.contentScore){y.splice(w,0,C),y.length>this._nbTopCandidates&&y.pop();break}}}var S=y[0]||null,A=!1,D;if(S===null||S.tagName==="BODY"){for(S=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),S.appendChild(r.firstChild);r.appendChild(S),this._initializeNode(S)}else if(S){for(var M=[],I=1;I=.75&&M.push(this._getNodeAncestors(y[I]));var P=3;if(M.length>=P)for(D=S.parentNode;D.tagName!=="BODY";){for(var R=0,L=0;L=P){S=D;break}D=D.parentNode}S.readability||this._initializeNode(S),D=S.parentNode;for(var _=S.readability.contentScore,U=_/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var z=D.readability.contentScore;if(z_){S=D;break}_=D.readability.contentScore,D=D.parentNode}for(D=S.parentNode;D.tagName!="BODY"&&D.children.length==1;)S=D,D=S.parentNode;S.readability||this._initializeNode(S)}var Y=a.createElement("DIV");i&&(Y.id="readability-content");var ee=Math.max(10,S.readability.contentScore*.2);D=S.parentNode;for(var Re=D.children,xe=0,H=Re.length;xe=ee)te=!0;else if(W.nodeName==="P"){var ve=this._getLinkDensity(W),$e=this._getInnerText(W),Z=$e.length;(Z>80&&ve<.25||Z<80&&Z>0&&ve===0&&$e.search(/\.( |$)/)!==-1)&&(te=!0)}}te&&(this.log("Appending node:",W),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(W.nodeName)===-1&&(this.log("Altering sibling:",W,"to div."),W=this._setNodeTag(W,"DIV")),Y.appendChild(W),Re=D.children,xe-=1,H-=1)}if(this._debug&&this.log("Article content pre-prep: "+Y.innerHTML),this._prepArticle(Y),this._debug&&this.log("Article content post-prep: "+Y.innerHTML),A)S.id="readability-page-1",S.className="page";else{var ce=a.createElement("DIV");for(ce.id="readability-page-1",ce.className="page";Y.firstChild;)ce.appendChild(Y.firstChild);Y.appendChild(ce)}this._debug&&this.log("Article content after paging: "+Y.innerHTML);var he=!0,pe=this._getInnerText(Y,!0).length;if(pe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(g){return(g["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,m=this._textSimilarity(u.headline,l)>.75;m&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(g){return g&&typeof g.name=="string"}).map(function(g){return g.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(g){this.log(g.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),m=l.getAttribute("property"),g=l.getAttribute("content");if(g){var p=null,f=null;m&&(p=m.match(s),p&&(f=p[0].toLowerCase().replace(/\s/g,""),i[f]=g.trim())),!p&&c&&u.test(c)&&(f=c,g&&(f=f.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[f]=g.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var m=["col","colgroup","tfoot","thead","th"],g=function(f){return!!o.getElementsByTagName(f)[0]};if(m.some(g)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var m=0;if(c+m<0)return!0;if(this._getCharCount(i,",")<10){for(var g=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,f=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,y=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),h=0,v=this._getAllNodesWithTag(i,["object","embed","iframe"]),C=0;C1&&g/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&f>g||b>Math.floor(g/3)||!s&&y<.9&&T<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||h===1&&T<75||h>1;if(s&&S){for(var A=0;A1)return S;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return S}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),UP=ff((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(g){c.add(g.parentNode)}),u=Array.from(c)}var m=0;return[].some.call(u,function(g){if(!o.visibilityChecker(g))return!1;var p=g.className+" "+g.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||g.matches("li p"))return!1;var f=g.textContent.trim().length;return fo.minScore)})}typeof t=="object"&&(t.exports=a)}),S6=ff((e,t)=>{var n=NP(),r=UP();t.exports={Readability:n,isProbablyReaderable:r}}),w6={};_P(w6,{Readability:()=>v0,default:()=>k6,isProbablyReaderable:()=>A6});var E6=T6(S6());OP(w6,T6(S6()));var{Readability:v0,isProbablyReaderable:A6}=E6,{default:x6,...jP}=E6,k6=x6!==void 0?x6:jP;var hf=g0.alert;function Se(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var we=Se();function X(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):we.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Ta(){return we.PROD==="1"}function bf(){return we.PROD_API==="1"}function D6(){return we.HAS_CSP_ERROR=="1"}function He(){if(we.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function fs(){return we.IMMERSIVE_TRANSLATE_SAFARI==="1"}function C0(){return typeof Deno<"u"}var $K=Se().PROD==="1",hs=Se().PROD!=="1";function x0(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function tl(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}function yf(){return we.IMMERSIVE_TRANSLATE_JSSDK==="1"}var re="immersiveTranslate",vo="Immersive Translate",F="immersive-translate",A0="imt",Co="immersivetranslate",L6="pdf/index.html";var et="immersivetranslate.com",HP=`https://config.${et}/`,rY=`https://app.${et}/`,Q=Ta()||bf()?`https://${et}/`:`https://test.${et}/`,bs=`https://dash.${et}/`,ct=Ta()||bf()?`https://api2.${et}/`:`https://test-api2.${et}/`,nl=`https://github.com/${F}/${F}/`,xn=`https://s.${et}/`,aY=`https://onboarding.${et}/`,M6=re+"DeeplGlobalState",vf=re+"BingGlobalState",Cf=re+"YandexGlobalState",xf=re+"BaiduQianfanGlobalConfigStorageKey",P6=re+"SiliconCloudGlobalConfigStorageKey",R6=re+"ZhipuGlobalConfigStorageKey",k0="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",Ai=re+"GoogleAccessToken",rl=re+"AuthFlow",D0=F+"-config-latest.json",Tf=re+"AuthState",L0=re+"IframeMessage",iY=re+"WaitForRateLimit",I6=re+"DocumentMessageAsk",tn=re+"DocumentMessageTellThirdParty",sr=re+"showError",xo=re+"showModal",M0=re+"showToast",F6=re+"DocumentMessageThirdPartyTell",B6=re+"DocumentMessageEventUpload",oY=re+"DocumentMessageTypeStopJsSDK",qP=re+"DocumentMessageHandler",P0=re+"DocumentSetFloatBallActive",R0=`${re}Share`,I0=`${re}ShowFloatBallGuide`,ys=re+"DocumentMessageTempEnableSubtitleChanged",al=`${re}ToggleMouseHoverTranslateDirectly`,_6=`${re}ReqDraft`,O6=`${re}ResDraft`,zP=`${re}Container`,N6=`${re}SpecifiedContainer`,F0="buildinConfig",vs="localConfig",il="openOptionsPage",ol="translateMangaMenuId",Sf="openAboutPage",U6="translateLocalPdfFile",sl="openEbookViewer",ul="openEbookBuilder";var To=`${re}PageTranslatedStatus`,ll=`${re}MangaTranslatedStatus`,sY=`${re}PageUrlChanged`,Gr=`${re}ReceiveCommand`,j6=re+"LastUseMouseHoverTime",wf=re+"LastUseInputTime",Pr=re+"LastUseManualTranslatePageTime",uY=`${re}PopupReceiveMessage`,So=re+"DocumentMessageEventTogglePopup",ki=`${HP}default_config.json`,lY=`${re}Mark`,vr=`${re}Root`,H6=`${re}Walked`,cY=`data-${F}-walked`,q6=`${re}Paragraph`,z6=`data-${F}-paragraph`,Cs=`data-${F}-translation-element-mark`,V6=`${re}TranslationElementMark`,dY=`${re}TranslatedMark`,Ef=`${F}-input-injected-css`,W6=`${re}LoadingId`,Af=`data-${F}-loading-id`,G6=`${re}ErrorId`,B0=`data-${F}-error-id`,VP=`${re}AtomicBlockMark`,K6=`${re}ExcludeMark`,mY=`data-${F}-exclude-mark`,WP=`${re}StayOriginalMark`,gY=`${re}PreWhitespaceMark`,_0=`${re}InlineMark`,Y6=`${re}BlockMark`,pY=`${re}Left`,fY=`${re}Right`,hY=`${re}Width`,bY=`${re}Height`,yY=`${re}Top`,vY=`${re}FontSize`,Q6="lastRunTime";var CY=`${re}GlobalStyleMark`,xs=["@","#"],O0=" --- ",J6=` +`,Yt=`${F}-target-wrapper`,xY=`${F}-pdf-target-container`,N0=`${F}-target-inner`,TY=`${F}-source-wrapper`,kf=`${F}-target-translation-block-wrapper`,SY=`${F}-root-translation-theme`,Ts=`${re}RootTranslationTheme`,Z6=`${F}-target-translation-vertical-block-wrapper`,wY=`${F}-target-translation-pdf-block-wrapper`,X6=`${F}-target-translation-pre-whitespace`,Df=`${F}-target-translation-inline-wrapper`,Lf=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],cl={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var U0=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],$6=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",bs,bs+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Di="zh-CN",dl=Q+"docs/communities/",ey=nl+"issues/1809",ty=nl+"issues/1179",j0={type:re+"ChildFrameToRootFrameIdentifier"},Mf=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],ni=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],ny=["ctrl","alt","shift","cmd","command","option","control"],H0=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],q0=Ta()?bs+"#general":"http://localhost:8000/dist/userscript/options/#general",ml="user_from_plugin",pt="user_info",Ss=Q+"accounts/login?from=plugin",Pf=bs+"#general",ry=Q+"accounts/login?from=plugin&return_url="+encodeURIComponent(Pf),ay=Ss+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",iy=Ss+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Li=Q+"profile/",gl=Q+"auth/pricing/",Ln=Q+"pricing/",GP=Q+"download/",KP=Q+"topup?type=open_ai&",YP=Q+"topup?type=deepl&",oy=Q+"topup?type=comics&",EY=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",sy=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",uy=GP+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",AY=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",z0=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Rf=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",kY=Li+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",ly=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",cy=KP+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",dy=YP+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",my=Q+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",gy=Ln+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",If=Li+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Ff=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Bf=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",pl=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",py=gl+"?utm_source=extension&utm_medium=extension&utm_campaign=",fl=Q+"docs/usage/",_f=Q+"docs/communities/",hl=Se().TRANSLATE_FILE_URL,fy=hl+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",hy=hl+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",by=`${hl}download-subtitle/`,yy=`${hl}pdf-pro/`,bl=`${hl}text/`,ri=["deepl","openai","gemini","claude"],vy="G-BHWL0KMJB8",Cy="7pr-olTJR6GKAjIW48UD0Q",T0="G-MKMD9LWFTR",S0="sitc4WmvShWYwfU0dANM3Q",w0="G-V5H2F5MJFJ",E0="UBjpGOLISEaY5LVXNj3WvQ",xy="G-0LPWNREXBB",Ty="JVF4YeOaTVyDV27CTLhPtQ";function Sy(){return yf()?[{measurementId:vy,apiSecret:Cy}]:Ta?[{measurementId:T0,apiSecret:S0},{measurementId:w0,apiSecret:E0}]:[{measurementId:T0,apiSecret:S0},{measurementId:w0,apiSecret:E0}]}function yl(){return yf()?[`https://www.google-analytics.com/mp/collect?measurement_id=${vy}&api_secret=${Cy}`]:Ta?[`https://www.google-analytics.com/mp/collect?measurement_id=${T0}&api_secret=${S0}`,`https://www.google-analytics.com/mp/collect?measurement_id=${w0}&api_secret=${E0}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${T0}&api_secret=${S0}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${w0}&api_secret=${E0}`]}var vl=`https://analytics.${et}/collect`,DY=`${Q}activities/components/image-pro`;var wy="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",Ey="0VmM83i2D1ICuYBf",V0=`[${A0}-ctx-divider]`,W0=`${A0}_context_preview`,Ay=`\u{1F44B} \u563F\uFF0C\u4F60\u53D1\u73B0\u4E86\u5F69\u86CB\uFF01 \u65E2\u7136\u88AB\u4F60\u53D1\u73B0\u4E86\uFF0C\u4E0D\u5982\u770B\u770B\u6211\u4EEC\u7684\u804C\u4F4D\uFF1F \u5173\u4E8E\u6211\u4EEC: @@ -5509,27 +5509,27 @@ select.text-gray-6 { \u6B22\u8FCE\u52A0\u5165\u6211\u4EEC\uFF01 \u{1F4EE} \u6295\u9012\u7B80\u5386: hr@immersivetranslate.com - \u{1FAE1} \u4E86\u89E3\u66F4\u591A: https://immersivetranslate.com/zh-Hans/docs/joinUs/`;var ws=console,Of=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=Mr.green;r>1e4?a=Mr.red:r>1e3&&(a=Mr.yellow),ws.debug(Mr.dim(vo+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},xl=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&ws.log(Mr.dim(vo+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&ws.log(Mr.green(vo+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&ws.warn(Mr.yellow(vo+" WARN:"),...t)}error(...t){this.#e<=3&&ws.error(Mr.red(vo+" ERROR:"),...t)}fatal(...t){this.#e<=4&&ws.error(Mr.red(vo+" FATAL:"),...t)}timing(){return this.level===0?new Of:{reset:()=>{},stop:()=>{}}}},k=new xl;function St(){try{let e=[Te().EBOOK_BUILDER_URL,Te().EBOOK_VIEWER_URL,Te().SUBTITLE_BUILDER_URL,Te().HTML_VIEWER_URL,Te().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+et];Ta()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var sr=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Nf={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},Ly={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Uf={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},jf={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function ae(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sr.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":sr[a]}else return"auto";else return sr[r]}function Ht(){return ae(document?.documentElement?.lang||"en")}var Hf=/iPhone/i,My=/iPod/i,Py=/iPad/i,Ry=/\biOS-universal(?:.+)Mac\b/i,qf=/\bAndroid(?:.+)Mobile\b/i,Iy=/Android/i,Es=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,K0=/Silk/i,ii=/Windows Phone/i,Fy=/\bWindows(?:.+)ARM\b/i,By=/BlackBerry/i,_y=/BB10/i,Oy=/Opera Mini/i,Ny=/\b(CriOS|Chrome)(?:.+)Mobile/i,Uy=/Mobile(?:.+)Firefox\b/i,jy=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function JP(e){return t=>t.test(e)}function qe(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=JP(n),i={apple:{phone:a(Hf)&&!a(ii),ipod:a(My),tablet:!a(Hf)&&(a(Py)||jy(t))&&!a(ii),universal:a(Ry),device:(a(Hf)||a(My)||a(Py)||a(Ry)||jy(t))&&!a(ii)},amazon:{phone:a(Es),tablet:!a(Es)&&a(K0),device:a(Es)||a(K0)},android:{phone:!a(ii)&&a(Es)||!a(ii)&&a(qf),tablet:!a(ii)&&!a(Es)&&!a(qf)&&(a(K0)||a(Iy)),device:!a(ii)&&(a(Es)||a(K0)||a(qf)||a(Iy))||a(/\bokhttp\b/i)},windows:{phone:a(ii),tablet:a(Fy),device:a(ii)||a(Fy)},other:{blackberry:a(By),blackberry10:a(_y),opera:a(Oy),firefox:a(Uy),chrome:a(Ny),device:a(By)||a(_y)||a(Oy)||a(Uy)||a(Ny)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var zf="DENO",Y0="CHROME",Q0="FIREFOX";function Hy(e){let t=Y0;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Q0:/deno/i.test(n)&&(t=zf)}catch{}return e===Y0&&t===Y0||e===Q0&&t===Q0||e===zf&&t===zf}function J0(){return Hy(Y0)}function qy(){return typeof Deno<"u"}function Xn(){return Te().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:Hy(Q0)}function xr(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function zy(){return!!globalThis.matchMedia("(pointer:fine)").matches}function Yr(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var Vy={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Wy={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Vy,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:Vy,query:()=>{},sendMessage:()=>{}}};var j;qy()?j=Wy:j=globalThis.immersiveTranslateBrowserAPI;var wo=re+"CacheKey_";function Eo(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function ZP(){let e=j.storage.local.refresh;e&&e()}function Vf(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wo)).filter(r=>r!==wo+pt);if(n.length>0)return j.storage.local.remove(n)}}var nt={get:Eo,set:Ao,getExpired:Vf,setExpired:Wf,remove:Gf,clear:Kf,refresh:ZP};function kt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Gy(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function Ky(e){if(e){let t=new Date(e.createTime),n=XP(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function XP(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function As(e){if(e?.isPro)return!0;let t=await nt.get(pt,null);return kt(t)}var Yy=re+"SyncStoreKey_";function Pt(e,t){let n=Yy+e;return j.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function Qe(e,t){let n=Yy+e;return j.storage.sync.set({[n]:t})}var Qy=re+"StoreKey_";function ko(e,t){let n=Qy+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Jy(e,t){let n=Qy+e;return j.storage.local.set({[n]:t})}var SQ=Xy(2),Zy=Xy(3);function Xy(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var $P=/\s+/g,eR=/[\t\n\v\f\r ]+/g;function $y(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?tR:nR;return String(e).replace(t.style==="html"?eR:$P,t.trim?rR(n):n)}function tR(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function nR(){return" "}function rR(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var e5={}.hasOwnProperty;function aR(e){return e==null?"":$y(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function iR(e){return Zy(" "+aR(e)+" ")}function oR(e){let t=iR(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function gR(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function pR(e,t,n,r){t=hR(t,n,r);let a=[],i;if(t)for(i in t)Z0.call(t,i)&&a.push([i,fR(e,t[i])]);return a.length===0?Qf():a.sort(bR)}function fR(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of kR){let u=s[1],l=s[0],c=e.match(u),m=c?c.length:0;o[l]=m,m>n&&(n=m,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?u5(e)?"zh-TW":"zh-CN":t:"auto"}var c5=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Jf=new Map(c5),DR=new Map(c5.map(([e,t])=>[t,e]));function d5(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>DR.get(s));!t&&t!==0&&(t=25);let a=$0(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Jf.keys()]},o=r5(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(m=="eng"&&g<.95)break;return Jf.get(m)}}let[s,u]=o[0],l=Jf.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}function Mi(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function LR(e,t){return e<>>32-t}function td(e,t,n,r,a,i){return Mi(LR(Mi(Mi(t,e),Mi(r,i)),a),n)}function On(e,t,n,r,a,i,o){return td(t&n|~t&r,e,t,a,i,o)}function Nn(e,t,n,r,a,i,o){return td(t&r|n&~r,e,t,a,i,o)}function Un(e,t,n,r,a,i,o){return td(t^n^r,e,t,a,i,o)}function jn(e,t,n,r,a,i,o){return td(n^(t|~r),e,t,a,i,o)}function ed(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Zf(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=ed(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=ed(a.concat(Zf(t)),512+t.length*8),m5(ed(i.concat(o),512+128))}function g5(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Xf(e){return unescape(encodeURIComponent(e))}function p5(e){return MR(Xf(e))}function RR(e){return g5(p5(e))}function f5(e,t){return PR(Xf(e),Xf(t))}function IR(e,t){return g5(f5(e,t))}function Sr(e,t,n){return t?n?f5(t,e):IR(t,e):n?p5(e):RR(e)}var nd=["caiyun","cai"],h5=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],ks={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: + \u{1FAE1} \u4E86\u89E3\u66F4\u591A: https://immersivetranslate.com/zh-Hans/docs/joinUs/`;var ws=console,Of=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=Lr.green;r>1e4?a=Lr.red:r>1e3&&(a=Lr.yellow),ws.debug(Lr.dim(vo+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Cl=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&ws.log(Lr.dim(vo+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&ws.log(Lr.green(vo+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&ws.warn(Lr.yellow(vo+" WARN:"),...t)}error(...t){this.#e<=3&&ws.error(Lr.red(vo+" ERROR:"),...t)}fatal(...t){this.#e<=4&&ws.error(Lr.red(vo+" FATAL:"),...t)}timing(){return this.level===0?new Of:{reset:()=>{},stop:()=>{}}}},k=new Cl;function Tt(){try{let e=[Se().EBOOK_BUILDER_URL,Se().EBOOK_VIEWER_URL,Se().SUBTITLE_BUILDER_URL,Se().HTML_VIEWER_URL,Se().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+et];Ta()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var ur=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Nf={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},ky={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Uf={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},jf={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function ae(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=ur.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":ur[a]}else return"auto";else return ur[r]}function Ht(){return ae(document?.documentElement?.lang||"en")}var Hf=/iPhone/i,Dy=/iPod/i,Ly=/iPad/i,My=/\biOS-universal(?:.+)Mac\b/i,qf=/\bAndroid(?:.+)Mobile\b/i,Py=/Android/i,Es=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,G0=/Silk/i,ai=/Windows Phone/i,Ry=/\bWindows(?:.+)ARM\b/i,Iy=/BlackBerry/i,Fy=/BB10/i,By=/Opera Mini/i,_y=/\b(CriOS|Chrome)(?:.+)Mobile/i,Oy=/Mobile(?:.+)Firefox\b/i,Ny=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function QP(e){return t=>t.test(e)}function qe(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=QP(n),i={apple:{phone:a(Hf)&&!a(ai),ipod:a(Dy),tablet:!a(Hf)&&(a(Ly)||Ny(t))&&!a(ai),universal:a(My),device:(a(Hf)||a(Dy)||a(Ly)||a(My)||Ny(t))&&!a(ai)},amazon:{phone:a(Es),tablet:!a(Es)&&a(G0),device:a(Es)||a(G0)},android:{phone:!a(ai)&&a(Es)||!a(ai)&&a(qf),tablet:!a(ai)&&!a(Es)&&!a(qf)&&(a(G0)||a(Py)),device:!a(ai)&&(a(Es)||a(G0)||a(qf)||a(Py))||a(/\bokhttp\b/i)},windows:{phone:a(ai),tablet:a(Ry),device:a(ai)||a(Ry)},other:{blackberry:a(Iy),blackberry10:a(Fy),opera:a(By),firefox:a(Oy),chrome:a(_y),device:a(Iy)||a(Fy)||a(By)||a(Oy)||a(_y)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var zf="DENO",K0="CHROME",Y0="FIREFOX";function Uy(e){let t=K0;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Y0:/deno/i.test(n)&&(t=zf)}catch{}return e===K0&&t===K0||e===Y0&&t===Y0||e===zf&&t===zf}function Q0(){return Uy(K0)}function jy(){return typeof Deno<"u"}function Zn(){return Se().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:Uy(Y0)}function Cr(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Hy(){return!!globalThis.matchMedia("(pointer:fine)").matches}function Kr(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var qy={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},zy={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:qy,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:qy,query:()=>{},sendMessage:()=>{}}};var j;jy()?j=zy:j=globalThis.immersiveTranslateBrowserAPI;var wo=re+"CacheKey_";function Eo(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function JP(){let e=j.storage.local.refresh;e&&e()}function Vf(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wo)).filter(r=>r!==wo+pt);if(n.length>0)return j.storage.local.remove(n)}}var nt={get:Eo,set:Ao,getExpired:Vf,setExpired:Wf,remove:Gf,clear:Kf,refresh:JP};function kt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Vy(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function Wy(e){if(e){let t=new Date(e.createTime),n=ZP(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function ZP(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function As(e){if(e?.isPro)return!0;let t=await nt.get(pt,null);return kt(t)}var Gy=re+"SyncStoreKey_";function Pt(e,t){let n=Gy+e;return j.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function rt(e,t){let n=Gy+e;return j.storage.sync.set({[n]:t})}var Ky=re+"StoreKey_";function ko(e,t){let n=Ky+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Yy(e,t){let n=Ky+e;return j.storage.local.set({[n]:t})}var SQ=Jy(2),Qy=Jy(3);function Jy(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var XP=/\s+/g,$P=/[\t\n\v\f\r ]+/g;function Zy(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?eR:tR;return String(e).replace(t.style==="html"?$P:XP,t.trim?nR(n):n)}function eR(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function tR(){return" "}function nR(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var Xy={}.hasOwnProperty;function rR(e){return e==null?"":Zy(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function aR(e){return Qy(" "+rR(e)+" ")}function iR(e){let t=aR(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function mR(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function gR(e,t,n,r){t=fR(t,n,r);let a=[],i;if(t)for(i in t)J0.call(t,i)&&a.push([i,pR(e,t[i])]);return a.length===0?Qf():a.sort(hR)}function pR(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of AR){let u=s[1],l=s[0],c=e.match(u),m=c?c.length:0;o[l]=m,m>n&&(n=m,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?o5(e)?"zh-TW":"zh-CN":t:"auto"}var u5=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Jf=new Map(u5),kR=new Map(u5.map(([e,t])=>[t,e]));function l5(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>kR.get(s));!t&&t!==0&&(t=25);let a=X0(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Jf.keys()]},o=t5(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(m=="eng"&&g<.95)break;return Jf.get(m)}}let[s,u]=o[0],l=Jf.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}function Mi(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function DR(e,t){return e<>>32-t}function ed(e,t,n,r,a,i){return Mi(DR(Mi(Mi(t,e),Mi(r,i)),a),n)}function _n(e,t,n,r,a,i,o){return ed(t&n|~t&r,e,t,a,i,o)}function On(e,t,n,r,a,i,o){return ed(t&r|n&~r,e,t,a,i,o)}function Nn(e,t,n,r,a,i,o){return ed(t^n^r,e,t,a,i,o)}function Un(e,t,n,r,a,i,o){return ed(n^(t|~r),e,t,a,i,o)}function $0(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Zf(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=$0(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=$0(a.concat(Zf(t)),512+t.length*8),c5($0(i.concat(o),512+128))}function d5(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Xf(e){return unescape(encodeURIComponent(e))}function m5(e){return LR(Xf(e))}function PR(e){return d5(m5(e))}function g5(e,t){return MR(Xf(e),Xf(t))}function RR(e,t){return d5(g5(e,t))}function xr(e,t,n){return t?n?g5(t,e):RR(t,e):n?m5(e):PR(e)}var td=["caiyun","cai"],p5=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],ks={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Qr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:Q+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Yr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:Q+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:Q+"docs/services/deepL/",link1:"https://www.deepl.com/zh/whydeepl",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_deepl",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:Q+"docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password",sensitive:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!1}]},openai:{ai:!0,name:"Open AI",homepage:"https://openai.com/api/",docUrl:Q+"docs/services/openai/",link1:"https://readit.plus/a/GKQas/understanding-chatgpt",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_openai",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:Q+"docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo-1106",providers:["custom"],options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom"],label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{providers:["custom","pro"],label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4-1106-preview",value:"gpt-4-1106-preview"},{providers:["custom"],label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{providers:["custom"],label:"gpt-4o",value:"gpt-4o"},{providers:["custom"],label:"gpt-4o-mini",value:"gpt-4o-mini"},{providers:["custom"],label:"gpt-4-turbo",value:"gpt-4-turbo"},{providers:["custom"],label:"gpt-4",value:"gpt-4"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",default:10,providers:["custom"]},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/openai/",optional:!0,providers:["custom"]},{name:"enableAIContext",labelKey:"field.enableAIContext",descriptionKey:"description.enableAIContext",required:!1,type:"boolean",default:!1,optional:!1},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},gemini:{ai:!0,name:"Gemini",homepage:"https://ai.google.dev/aistudio/",docUrl:Q+"docs/services/gemini/",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_gemini",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"geminiCustomDescription",descriptionLink1:"https://ai.google.dev/aistudio/",descriptionLink2:Q+"docs/services/gemini/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",providers:["custom"],options:[{label:"gemini-1.5-pro-latest",value:"gemini-1.5-pro-latest"},{label:"gemini-1.5-flash",value:"gemini-1.5-flash"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/gemini/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},claude:{ai:!0,name:"Claude",homepage:"https://www.anthropic.com/",docUrl:Q+"docs/services/claude/",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_claude",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"claudeCustomDescription",descriptionLink1:"https://www.anthropic.com/",descriptionLink2:Q+"docs/services/claude/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"claude-3-haiku-20240307",providers:["custom"],options:[{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-5-sonnet-20240620",value:"claude-3-5-sonnet-20240620"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"claude-2.1",value:"claude-2.1"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",providers:["custom"],descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:10,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.anthropic.com/v1/messages",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/claude/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},siliconcloud:{ai:!0,name:"siliconcloud",homepage:"https://cloud.siliconflow.cn/",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],default:"Qwen/Qwen2.5-7B-Instruct",options:[{label:"Qwen/Qwen2.5-7B-Instruct",value:"Qwen/Qwen2.5-7B-Instruct"},{label:"meta-llama/Meta-Llama-3.1-8B-Instruct",value:"meta-llama/Meta-Llama-3.1-8B-Instruct"},{label:"THUDM/glm-4-9b-chat",value:"THUDM/glm-4-9b-chat"},{label:"google/gemma-2-9b-it",value:"google/gemma-2-9b-it"},{label:"01-ai/Yi-1.5-9B-Chat-16K",value:"01-ai/Yi-1.5-9B-Chat-16K"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"APIKEY",descriptionKey:"description.siliconcloudCustomAPIKey",descriptionLink1:"https://siliconflow.cn/",providers:["custom"],required:!1,type:"password",sensitive:!0,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0,default:5},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},yandex:{name:"Yandex",homepage:"https://translate.yandex.com/"},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},lingyiwanwu:{ai:!0,name:"lingyiwanwu",homepage:"https://platform.lingyiwanwu.com/docs",docUrl:Q+"docs/services/lingyiwanwu/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"yi-large",value:"yi-large"},{label:"yi-large-turbo",value:"yi-large-turbo"},{label:"yi-large-rag",value:"yi-large-rag"},{label:"yi-medium",value:"yi-medium"},{label:"yi-medium-200k",value:"yi-medium-200k"},{label:"yi-spark",value:"yi-spark"},{label:"yi-vision",value:"yi-vision"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:Q+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:Q+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:Q+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:Q+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:Q+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:Q+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:Q+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:Q+"docs/services/custom/",docUrl:Q+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:xs,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:Q+"docs/services/openL/",beta:!0,allProps:[...h5,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:h5},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:Q+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:Q+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":ks,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:Q+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:Q+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:Q+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:Q+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:Q+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:Q+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:Q+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:Q+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:Q+"docs/services/custom/",docUrl:Q+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:xs,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:Q+"docs/services/openL/",beta:!0,allProps:[...p5,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:p5},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:Q+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:Q+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":ks,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:Q+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},"aliyun-bailian":{ai:!0,name:"aliyun-bailian",homepage:"https://bailian.console.aliyun.com/",docUrl:Q+"docs/services/aliyun-bailian/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"qwen-long",options:[{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-long",value:"qwen-long"},{label:"qwen-max",value:"qwen-max"},{label:"qwen1.5-7b-chat",value:"qwen1.5-7b-chat"},{label:"qwen1.5-14b-chat",value:"qwen1.5-14b-chat"},{label:"qwen1.5-32b-chat",value:"qwen1.5-32b-chat"},{label:"qwen1.5-72b-chat",value:"qwen1.5-72b-chat"},{label:"qwen1.5-110b-chat",value:"qwen1.5-110b-chat"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:Q+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:Q+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function FR(e,t,n=!1){let r=[];for(let u=0;u=0&&u=0&&lc.length&&(c.length=f.length,c.previous=[g,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function b5(e,t,n=!1){let r=FR(e,t,n),a=[],i=0,o=0,s=0;for(;i=1024&&ru+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function BR(e,t){let n=[],r=[];for(let a=0;a0?h=0&&u=0&&lc.length&&(c.length=f.length,c.previous=[g,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function f5(e,t,n=!1){let r=IR(e,t,n),a=[],i=0,o=0,s=0;for(;i=1024&&ru+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function FR(e,t){let n=[],r=[];for(let a=0;a0?bt){let v=[];$f(y,t,v);for(let C=0;C0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&$f(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:b.i18n?.[r]?.name||b.name,value:b.id}))?.filter(b=>b.label&&b.value)||[];if(y.length>0){let b=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];y.length>1&&b.push({label:"aiAssistant.auto",value:"auto"});let v={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:_R([...b,...y,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(v),o.props=[v]}}let f=[],h=[];if(l||m==="pro"&&(c=!1),p.length>0){p.forEach(b=>{g.length>0&&b.providers&&b.providers.length>0&&!b.providers.includes(m)||(b.optional?h.push(b):f.push(b))});let y=h.concat(f).filter(b=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(b.name,s.model,b.required)));if(y.length>0){for(let b of y)if(!s[b.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:m,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:f}}var Ds=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=kt(u),c=Object.keys(Qr);t!=="translationService"&&c.unshift("inherit");let m=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...m].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&He()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let f=Qr[p];e.config.translationServices[p]?.type=="custom-ai"&&(f=ks);let h=e4(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||g(f,p)?h:null}).filter(p=>!!p);function g(p,f){let h=!!p.canary,y=!!p.alpha,b=!!p.beta;return f===e[t]||h&&o||y&&(a||o)||b&&(i||a||o)?!0:!y&&!b&&!h}};function Ls(e,t,n){return Ds(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:t4(r.config,n))}function t4(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Ms(e,t,n="en",r){return Ds(e,t,n).find(o=>o.id===r)}function wl(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function v5(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function rd(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=ai.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function _R(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function OR(e,t){let n=b5(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function ad(e,t){return e?`
-
${OR(t,e)}
-
${t}
`:t}function Ps(e){let t=location.search.includes(G0);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var Rs=[],fJ=1e3*3600*24;async function El(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function id(e){let t=`${F}-${e.service}@${e.from}->${e.to}`;return await UR(t,{...e,createAt:new Date().getTime()})}async function od(e){let t=Sr(e.originalText),n=`${F}-${e.service}@${e.from}->${e.to}`;return await NR(n,t)}async function NR(e,t){let n=await El(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function UR(e,t){let n=await El(e);return(await n4()).includes(e)||await jR(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function jR(e){let t="cache_list",n=await El(F+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Rs.push(e)},a.onerror=i=>{n.close()}}async function n4(){if(Rs&&Rs.length>0)return Rs;let e=await El(F+"-cacheList","cache_list");return Rs=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Rs}async function sd(){try{let e=[];(await n4()).forEach(r=>{e.push(HR(r))});let n=await Promise.all(e);return Tl(n.reduce((r,a)=>r+a,0))}catch{return Tl(0)}}async function HR(e){let t=await El(e),r=[...t.objectStoreNames].reduce((o,s)=>{let u=qR(t,s);return o.push(u),o},[]),a=await Promise.all(r);return t.close(),a.reduce((o,s)=>o+s,0)}async function qR(e,t){return await new Promise((n,r)=>{try{if(e==null)return r();let a=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=o=>{try{let s=i.result;if(s){let u=s.value,l=JSON.stringify(u);a+=l.length,s.continue()}else n(a)}catch(s){r(s)}},i.onerror=o=>r("error in "+t+": "+o)}catch(a){r(a)}})}async function C5(){try{let t=(await n4()).map(r=>zR(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function zR(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var ud="Original";function st(){return ud}function $n(e){ud=e,S5(ud);let t=new CustomEvent(tn,{detail:JSON.stringify({type:"updatePageStatus",payload:ud})});document.dispatchEvent(t)}var x5="Original";function Is(){return x5}function Ir(e,t){if(t)return;x5=e;let n=new CustomEvent(ll,{detail:e});document.dispatchEvent(n)}var w5="auto",ld="auto",T5="auto";function E5(e){w5=e}function Tr(e){ld=e}function Lt(){return ld!=="auto"?ld:T5!=="auto"?T5:w5}function cd(){return ld}var Al=new Map,wa=class{fromType;logger;constructor(t,n=!1){this.logger=new xl,n&&this.logger.setLevel("debug"),this.fromType=t,Al.has(t)||(Al.set(t,new Map),j.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let m=a4(s),{type:g,name:p}=m;if(g!==t)return!1;let f=a4(o),y=Al.get(g).get(p);if(!y)return this.logger.debug(`no message handler for ${g}:${s}, but it's ok`),!1;let{messageHandler:b,sync:v}=y,C={type:t,name:f.name,id:u,url:l,active:c};if(v){try{let x=b(r.payload,C);i({ok:!0,data:x})}catch(x){i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.details,errorStatus:x.status})}return!1}else return b(r.payload,C).then(x=>{i({ok:!0,data:x})}).catch(x=>{i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.message,errorStatus:x.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Al.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new r4(`${i}:${t}`,this.logger);return Al.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},r4=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=a4(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await j.runtime.sendMessage(o);return A5(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await j.tabs.sendMessage(i,o);return A5(o,s,this.logger)}}};function A5(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new V(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new V("noResponse","Unknown error")}function a4(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Do(e){return e?.id?.endsWith("pdfWebPage")||!1}function Lo(e){try{if(!e||!Do(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function i4(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function dd(e){return o4(JSON.stringify(e))}async function o4(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var Fr,u4=0,md=!1,kl="initial",l4=!1,k5="",D5,L5,c4=!1,s4=new Map;async function Fs(e,t,n,r){if(c4=!1,L5=e.sourceProgram,D5=e.specialAiAssistant,r!=null&&l4&&Fr||Fr&&k5==n&&!n.trim())return;kl="initial",Fr=void 0,l4=r||!1;let a=e.rule.bodyRule;if(md=!1,!n||!a||!e.isPro||(u4=(a.contextTimeout||0)/100,u4<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(md=i.enableAIContext||!1,!!md&&e.user?.token)){kl="requesting";try{let o=await o4(n);if(s4.has(o)){Fr=s4.get(o);return}let s=await $({url:ct+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});k5=n,Fr={theme:s.theme,termsRaw:s.terms,terms:VR(s.terms)},s4.set(o,Fr)}catch{}finally{kl="finished"}k.debug("requestTermsByContext contextTerms",Fr)}}function M5(){l4||(kl="initial",Fr=void 0)}function P5(){c4=!0}function gd(){return D5?null:{contextTerms:Fr,used:c4,sourceProgram:L5}}async function R5(){if(!(!md||kl=="initial")){for(let e=0;ee.includes(n)):[]}function VR(e){let t=[];return e.split(` -`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var We={},Ea=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return We.getIsDulSubtitle();if(n==="getPageStatus")return st();n==="updateContextState"&&await We.updateContextState(r);let a=await We.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await We.translateTheWholePage(r),Qe(Rr,i);else if(n==="translateTheMainPage")await We.translateTheMainPage(r),Qe(Rr,i);else if(n==="translateToThePageEndImmediately")await We.translateToThePageEndImmediately(r),Qe(Rr,i);else if(n==="toggleTranslateManga")await We.toggleTranslateManga(),Qe(Rr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Do(a?.rule)){let s=Lo(a.rule);Bs(!0,s||o);return}await We.toggleTranslatePage(r),Qe(Rr,i)}else if(n==="toggleTranslateTheWholePage")await We.toggleTranslateTheWholePage(r),Qe(Rr,i);else if(n==="toggleTranslateTheMainPage")await We.toggleTranslateTheMainPage(r),Qe(Rr,i);else if(n==="toggleOnlyTransation")await We.ensureSwitchTranslationMode(r),Qe(Rr,i);else if(n=="toggleEnableEditTranslation")We.toggleEnableEditTranslation();else if(n==="translatePage")await We.translatePage(a,r),Qe(Rr,i);else if(n==="toggleTranslationMask")await We.toggleTranslationMask(r);else if(n==="restorePage")We.restorePage();else if(n==="retryFailedParagraphs")We.retryFailedParagraphs();else if(n=="change_translate_service")We.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await We.switchTranslationMode(r.mode),await We.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")We.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(I0,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await We.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(al,{detail:r}));else if(n==="translateWithOpenAI")await We.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await We.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await We.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await We.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await We.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await We.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await We.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await We.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await We.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")St()||await We.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!St())return JSON.stringify(a);await tt(5e3)}else if(n==="inputSelectedTextTranslate")await We.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return We.popupEventReport(a,r);if(n==="updateFloatBallEnable")return We.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(xo,{detail:{type:"webReport"}})):n===ol&&await We.translateSelectImage(a,r)}};function F5(e){Object.assign(We,e)}function B5(e){Object.assign(We,e)}function _5(e){Object.assign(We,e)}var WR=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return st();if(n==="getCurrentPageLanguage"){let a=Lt();return We.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Tr(r),Lt();if(n==="getContextString"){let a=We.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=We.getPureGlobalContext();return Lo(a?.rule)}else if(n=="getAIContextInfo")return gd()}},pd,fd;function O5(){let e=hd();St()||GR(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function hd(){return pd||(pd=new wa("content_script",!1).getConnection("main",Ea),pd)}function GR(){return fd||(fd=new wa("content_script",!1).getConnection("main_sync",WR,{sync:!0}),fd)}var KR=new Map;function bd(e){let t=YR(64),n=new CustomEvent(B6,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{KR.set(t,(i,o)=>{i?a(i):r(o)})})}function YR(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await $({url:yd,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function QR(e,t){return Math.floor(Math.random()*(t-e+1))+e}var JR=30,m4="RATE_LIMITER_TICKS",Ri=class e{static strictTicks={};static clearStrictTicks(){Jr(m4,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mo(m4)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Jr(m4,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=QR(4,JR);await tt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function Tt(e){return await hd().sendMessage("background:main",e)}function $(e){return S0()?bd({method:"request",data:e}):X()||x0()?(e.fetchPolyfill=globalThis.GM_fetch,Or(e)):Tt({method:"fetch",data:e})}function N5(e){return X()?Promise.resolve():Tt({method:"reportOptionsPageView",data:e})}function Br(){return X()?Je():Tt({method:"getConfig"})}function un(e){return X()?ur(e):Tt({method:"setUserConfig",data:e})}function Qt(){return X()?ln():Tt({method:"getUserConfig"})}function Mn(){return X()?Rt():Tt({method:"getLocalConfig"})}function _r(e){return X()?Dt(e):Tt({method:"setLocalConfig",data:e})}function U5(e){return X()?$5(e):Tt({method:"setBuildinConfig",data:e})}async function ze(e){if(e.text){let n=$0(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(X()||He()){if(e.translateService&&!nd.includes(e.translateService))return Promise.resolve("auto");let r=d5(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await Tt({method:"detectLanguage",data:e});return Promise.resolve(t)}function j5(){return Tt({method:"detectTabLanguage"})}async function vd(e){let t=await ze({text:e,pageLangs:["en"]});try{if(X()||He()){let n=e.substring(0,200);t=await oi.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function S5(e){let t=new CustomEvent(So,{detail:e});if(document.dispatchEvent(t),X())return;hd().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function H5(e){return X()?od(e):Tt({method:"queryParagraphCache",data:e})}async function q5(e){if(X()){await id(e);return}return Tt({method:"setParagraphCache",data:e})}async function z5(){if(X())return Promise.resolve();await Tt({method:"mockRequest"})}function Aa(e=!1,t=""){return document.querySelector(`meta[name=${F}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):X()?(j.runtime.openOptionsPage(e,t),Promise.resolve()):Tt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Cd(e=""){return X()||He()?Te().OPTIONS_URL:j.runtime.getURL("options.html")}function V5(e=""){return j&&j.runtime&&j.runtime.getURL?j.runtime.getURL("options.html"):""}function xd(e=!1){return X()?(j.extra.openAboutPage(e),Promise.resolve()):Tt({method:"openAboutPage"})}function ka(e){return X()?(j.extra.openInTab(e),Promise.resolve()):Tt({method:"openInTab",data:e})}function W5(e=!1){return X()?(j.extra.openEbookViewerPage(e),Promise.resolve()):Tt({method:"openEbookViewerPage"})}function G5(e=!1){return X()?(j.extra.openEbookBuilderPage(e),Promise.resolve()):Tt({method:"openEbookBuilderPage"})}function K5(e){He()}function Bs(e=!1,t){return X()?(j.extra.openPdfViewerPage(e),Promise.resolve()):Tt({method:"openPdfViewerPage",data:{url:t}})}function Y5(e=!1){return X()?(j.extra.openSubtitleBuilderPage(e),Promise.resolve()):Tt({method:"openSubtitleBuilderPage"})}function Dl(e){return X()?Promise.resolve():Tt({method:"setBadge",data:{text:e}})}function Q5(){return X()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Tt({method:"autoSyncLatestConfig"})}function Sd(e,t=!1){return X()?j.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function J5(e,t){return X()||we.MOCK==="1"?Ri.getDelay(e,t):Tt({method:"getDelay",data:{key:e,options:t}})}async function Z5(){return X()?!1:Tt({method:"getIsSupportIsOnToolbar"})}async function X5(){return X()?!1:Tt({method:"getIsOnToolbar"})}async function g4(){if(!X())return Tt({method:"updateVideoSubtitleStatus"})}function Ll({targetLanguage:e,text:t}){X()||Tt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ml(){X()||Tt({method:"updateImageMenu"})}var ev={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(y.length>t){let v=[];$f(y,t,v);for(let C=0;C0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&$f(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:h.i18n?.[r]?.name||h.name,value:h.id}))?.filter(h=>h.label&&h.value)||[];if(y.length>0){let h=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];y.length>1&&h.push({label:"aiAssistant.auto",value:"auto"});let v={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:BR([...h,...y,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(v),o.props=[v]}}let f=[],b=[];if(l||m==="pro"&&(c=!1),p.length>0){p.forEach(h=>{g.length>0&&h.providers&&h.providers.length>0&&!h.providers.includes(m)||(h.optional?b.push(h):f.push(h))});let y=b.concat(f).filter(h=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(h.name,s.model,h.required)));if(y.length>0){for(let h of y)if(!s[h.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:m,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:f}}var Ds=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=kt(u),c=Object.keys(Yr);t!=="translationService"&&c.unshift("inherit");let m=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...m].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&He()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let f=Yr[p];e.config.translationServices[p]?.type=="custom-ai"&&(f=ks);let b=e4(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||g(f,p)?b:null}).filter(p=>!!p);function g(p,f){let b=!!p.canary,y=!!p.alpha,h=!!p.beta;return f===e[t]||b&&o||y&&(a||o)||h&&(i||a||o)?!0:!y&&!h&&!b}};function Ls(e,t,n){return Ds(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:t4(r.config,n))}function t4(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Ms(e,t,n="en",r){return Ds(e,t,n).find(o=>o.id===r)}function Sl(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function b5(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function nd(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=ri.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function BR(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function _R(e,t){let n=f5(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function rd(e,t){return e?`
+
${_R(t,e)}
+
${t}
`:t}function Ps(e){let t=location.search.includes(W0);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var Rs=[],hJ=1e3*3600*24;async function wl(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function ad(e){let t=`${F}-${e.service}@${e.from}->${e.to}`;return await NR(t,{...e,createAt:new Date().getTime()})}async function id(e){let t=xr(e.originalText),n=`${F}-${e.service}@${e.from}->${e.to}`;return await OR(n,t)}async function OR(e,t){let n=await wl(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function NR(e,t){let n=await wl(e);return(await n4()).includes(e)||await UR(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function UR(e){let t="cache_list",n=await wl(F+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Rs.push(e)},a.onerror=i=>{n.close()}}async function n4(){if(Rs&&Rs.length>0)return Rs;let e=await wl(F+"-cacheList","cache_list");return Rs=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Rs}async function od(){try{let e=[];(await n4()).forEach(r=>{e.push(jR(r))});let n=await Promise.all(e);return Tl(n.reduce((r,a)=>r+a,0))}catch{return Tl(0)}}async function jR(e){let t=await wl(e),r=[...t.objectStoreNames].reduce((o,s)=>{let u=HR(t,s);return o.push(u),o},[]),a=await Promise.all(r);return t.close(),a.reduce((o,s)=>o+s,0)}async function HR(e,t){return await new Promise((n,r)=>{try{if(e==null)return r();let a=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=o=>{try{let s=i.result;if(s){let u=s.value,l=JSON.stringify(u);a+=l.length,s.continue()}else n(a)}catch(s){r(s)}},i.onerror=o=>r("error in "+t+": "+o)}catch(a){r(a)}})}async function y5(){try{let t=(await n4()).map(r=>qR(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function qR(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var sd="Original";function st(){return sd}function Xn(e){sd=e,C5(sd);let t=new CustomEvent(tn,{detail:JSON.stringify({type:"updatePageStatus",payload:sd})});document.dispatchEvent(t)}var v5="Original";function Is(){return v5}function Rr(e,t){if(t)return;v5=e;let n=new CustomEvent(ll,{detail:e});document.dispatchEvent(n)}var T5="auto",ud="auto",x5="auto";function S5(e){T5=e}function Tr(e){ud=e}function Lt(){return ud!=="auto"?ud:x5!=="auto"?x5:T5}function ld(){return ud}var El=new Map,Sa=class{fromType;logger;constructor(t,n=!1){this.logger=new Cl,n&&this.logger.setLevel("debug"),this.fromType=t,El.has(t)||(El.set(t,new Map),j.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let m=a4(s),{type:g,name:p}=m;if(g!==t)return!1;let f=a4(o),y=El.get(g).get(p);if(!y)return this.logger.debug(`no message handler for ${g}:${s}, but it's ok`),!1;let{messageHandler:h,sync:v}=y,C={type:t,name:f.name,id:u,url:l,active:c};if(v){try{let x=h(r.payload,C);i({ok:!0,data:x})}catch(x){i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.details,errorStatus:x.status})}return!1}else return h(r.payload,C).then(x=>{i({ok:!0,data:x})}).catch(x=>{i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.message,errorStatus:x.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=El.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new r4(`${i}:${t}`,this.logger);return El.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},r4=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=a4(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await j.runtime.sendMessage(o);return w5(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await j.tabs.sendMessage(i,o);return w5(o,s,this.logger)}}};function w5(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new V(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new V("noResponse","Unknown error")}function a4(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Do(e){return e?.id?.endsWith("pdfWebPage")||!1}function Lo(e){try{if(!e||!Do(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function i4(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function cd(e){return o4(JSON.stringify(e))}async function o4(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var Ir,u4=0,dd=!1,Al="initial",l4=!1,E5="",A5,k5,c4=!1,s4=new Map;async function Fs(e,t,n,r){if(c4=!1,k5=e.sourceProgram,A5=e.specialAiAssistant,r!=null&&l4&&Ir||Ir&&E5==n&&!n.trim())return;Al="initial",Ir=void 0,l4=r||!1;let a=e.rule.bodyRule;if(dd=!1,!n||!a||!e.isPro||(u4=(a.contextTimeout||0)/100,u4<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(dd=i.enableAIContext||!1,!!dd&&e.user?.token)){Al="requesting";try{let o=await o4(n);if(s4.has(o)){Ir=s4.get(o);return}let s=await $({url:ct+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});E5=n,Ir={theme:s.theme,termsRaw:s.terms,terms:zR(s.terms)},s4.set(o,Ir)}catch{}finally{Al="finished"}k.debug("requestTermsByContext contextTerms",Ir)}}function D5(){l4||(Al="initial",Ir=void 0)}function L5(){c4=!0}function md(){return A5?null:{contextTerms:Ir,used:c4,sourceProgram:k5}}async function M5(){if(!(!dd||Al=="initial")){for(let e=0;ee.includes(n)):[]}function zR(e){let t=[];return e.split(` +`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Ve={},wa=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Ve.getIsDulSubtitle();if(n==="getPageStatus")return st();n==="updateContextState"&&await Ve.updateContextState(r);let a=await Ve.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Ve.translateTheWholePage(r),rt(Pr,i);else if(n==="translateTheMainPage")await Ve.translateTheMainPage(r),rt(Pr,i);else if(n==="translateToThePageEndImmediately")await Ve.translateToThePageEndImmediately(r),rt(Pr,i);else if(n==="toggleTranslateManga")await Ve.toggleTranslateManga(),rt(Pr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Do(a?.rule)){let s=Lo(a.rule);Bs(!0,s||o);return}await Ve.toggleTranslatePage(r),rt(Pr,i)}else if(n==="toggleTranslateTheWholePage")await Ve.toggleTranslateTheWholePage(r),rt(Pr,i);else if(n==="toggleTranslateTheMainPage")await Ve.toggleTranslateTheMainPage(r),rt(Pr,i);else if(n==="toggleOnlyTransation")await Ve.ensureSwitchTranslationMode(r),rt(Pr,i);else if(n=="toggleEnableEditTranslation")Ve.toggleEnableEditTranslation();else if(n==="translatePage")await Ve.translatePage(a,r),rt(Pr,i);else if(n==="toggleTranslationMask")await Ve.toggleTranslationMask(r);else if(n==="restorePage")Ve.restorePage();else if(n==="retryFailedParagraphs")Ve.retryFailedParagraphs();else if(n=="change_translate_service")Ve.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Ve.switchTranslationMode(r.mode),await Ve.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Ve.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(R0,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Ve.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(al,{detail:r}));else if(n==="translateWithOpenAI")await Ve.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Ve.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Ve.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Ve.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Ve.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Ve.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Ve.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Ve.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Ve.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Tt()||await Ve.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Tt())return JSON.stringify(a);await tt(5e3)}else if(n==="inputSelectedTextTranslate")await Ve.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Ve.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Ve.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(xo,{detail:{type:"webReport"}})):n===ol&&await Ve.translateSelectImage(a,r)}};function R5(e){Object.assign(Ve,e)}function I5(e){Object.assign(Ve,e)}function F5(e){Object.assign(Ve,e)}var VR=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return st();if(n==="getCurrentPageLanguage"){let a=Lt();return Ve.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Tr(r),Lt();if(n==="getContextString"){let a=Ve.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Ve.getPureGlobalContext();return Lo(a?.rule)}else if(n=="getAIContextInfo")return md()}},gd,pd;function B5(){let e=fd();Tt()||WR(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function fd(){return gd||(gd=new Sa("content_script",!1).getConnection("main",wa),gd)}function WR(){return pd||(pd=new Sa("content_script",!1).getConnection("main_sync",VR,{sync:!0}),pd)}var GR=new Map;function hd(e){let t=KR(64),n=new CustomEvent(I6,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{GR.set(t,(i,o)=>{i?a(i):r(o)})})}function KR(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await $({url:bd,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function YR(e,t){return Math.floor(Math.random()*(t-e+1))+e}var QR=30,m4="RATE_LIMITER_TICKS",Ri=class e{static strictTicks={};static clearStrictTicks(){Qr(m4,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mo(m4)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Qr(m4,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=YR(4,QR);await tt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function St(e){return await fd().sendMessage("background:main",e)}function $(e){return x0()?hd({method:"request",data:e}):X()||C0()?(e.fetchPolyfill=globalThis.GM_fetch,_r(e)):St({method:"fetch",data:e})}function _5(e){return X()?Promise.resolve():St({method:"reportOptionsPageView",data:e})}function Fr(){return X()?Qe():St({method:"getConfig"})}function un(e){return X()?lr(e):St({method:"setUserConfig",data:e})}function Qt(){return X()?ln():St({method:"getUserConfig"})}function Mn(){return X()?Rt():St({method:"getLocalConfig"})}function Br(e){return X()?Dt(e):St({method:"setLocalConfig",data:e})}function O5(e){return X()?Z5(e):St({method:"setBuildinConfig",data:e})}async function Ke(e){if(e.text){let n=X0(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(X()||He()){if(e.translateService&&!td.includes(e.translateService))return Promise.resolve("auto");let r=l5(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await St({method:"detectLanguage",data:e});return Promise.resolve(t)}function N5(){return St({method:"detectTabLanguage"})}async function yd(e){let t=await Ke({text:e,pageLangs:["en"]});try{if(X()||He()){let n=e.substring(0,200);t=await ii.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function C5(e){let t=new CustomEvent(To,{detail:e});if(document.dispatchEvent(t),X())return;fd().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function U5(e){return X()?id(e):St({method:"queryParagraphCache",data:e})}async function j5(e){if(X()){await ad(e);return}return St({method:"setParagraphCache",data:e})}async function H5(){if(X())return Promise.resolve();await St({method:"mockRequest"})}function Ea(e=!1,t=""){return document.querySelector(`meta[name=${F}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):X()?(j.runtime.openOptionsPage(e,t),Promise.resolve()):St({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function vd(e=""){return X()||He()?Se().OPTIONS_URL:j.runtime.getURL("options.html")}function q5(e=""){return j&&j.runtime&&j.runtime.getURL?j.runtime.getURL("options.html"):""}function Cd(e=!1){return X()?(j.extra.openAboutPage(e),Promise.resolve()):St({method:"openAboutPage"})}function Aa(e){return X()?(j.extra.openInTab(e),Promise.resolve()):St({method:"openInTab",data:e})}function z5(e=!1){return X()?(j.extra.openEbookViewerPage(e),Promise.resolve()):St({method:"openEbookViewerPage"})}function V5(e=!1){return X()?(j.extra.openEbookBuilderPage(e),Promise.resolve()):St({method:"openEbookBuilderPage"})}function W5(e){He()}function Bs(e=!1,t){return X()?(j.extra.openPdfViewerPage(e),Promise.resolve()):St({method:"openPdfViewerPage",data:{url:t}})}function G5(e=!1){return X()?(j.extra.openSubtitleBuilderPage(e),Promise.resolve()):St({method:"openSubtitleBuilderPage"})}function kl(e){return X()?Promise.resolve():St({method:"setBadge",data:{text:e}})}function K5(){return X()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):St({method:"autoSyncLatestConfig"})}function xd(e,t=!1){return X()?j.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function Y5(e,t){return X()||we.MOCK==="1"?Ri.getDelay(e,t):St({method:"getDelay",data:{key:e,options:t}})}async function Q5(){return X()?!1:St({method:"getIsSupportIsOnToolbar"})}async function J5(){return X()?!1:St({method:"getIsOnToolbar"})}async function g4(){if(!X())return St({method:"updateVideoSubtitleStatus"})}function Dl({targetLanguage:e,text:t}){X()||St({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ll(){X()||St({method:"updateImageMenu"})}var X5={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5541,7 +5541,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var tv={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var $5={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5555,7 +5555,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var nv={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var ev={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5568,20 +5568,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var eI=[{code:"zh-CN",messages:ev},{code:"zh-TW",messages:tv},{code:"en",messages:nv}],Td=X()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ii={};for(let e of eI)Ii[e.code]=e.messages;function tI(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=rI(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:F+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let m=n.substring(u+s.length,c),g=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${m}`,`<${l} ${g}>${m}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function rv(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function nI(e,t,n,r){if(!Ii.hasOwnProperty(t)&&!Ii.hasOwnProperty(n))return e;let a=rv(Ii,t,e);return a===e&&t!==n&&(a=rv(Ii,n,e)),tI(a,r)}function rI(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return nI(t,e,"en",n)}function av(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function iv(e){return new Date(e).getTime()}var V=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return ai.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:z0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:z0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var $R=[{code:"zh-CN",messages:X5},{code:"zh-TW",messages:$5},{code:"en",messages:ev}],Td=X()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ii={};for(let e of $R)Ii[e.code]=e.messages;function eI(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=nI(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:F+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let m=n.substring(u+s.length,c),g=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${m}`,`<${l} ${g}>${m}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function tv(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function tI(e,t,n,r){if(!Ii.hasOwnProperty(t)&&!Ii.hasOwnProperty(n))return e;let a=tv(Ii,t,e);return a===e&&t!==n&&(a=tv(Ii,n,e)),eI(a,r)}function nI(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return tI(t,e,"en",n)}function nv(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function rv(e){return new Date(e).getTime()}var V=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return ri.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:q0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:q0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:z0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(ai.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:F,href:uy})];p4(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:q0,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(ri.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:F,href:oy})];p4(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=py,i?o.push(r("proQuotaError.trail",{brandId:F,href:If})):o.push(r("proQuotaError.newPackage",{brandId:F,href:s})),p4(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=my,i?o.push(r("proQuotaError.trail",{brandId:F,href:If})):o.push(r("proQuotaError.newPackage",{brandId:F,href:s})),p4(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:F,href:V0}));else{let m="";u=="AI"?m=my:m=gy,o?l.push(r("proQuotaError.trail",{brandId:F,href:If})):l.push(r("proQuotaError.package",{brandId:F,href:m,translationService:u})),p4(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:F,href:z0}));else{let m="";u=="AI"?m=cy:m=dy,o?l.push(r("proQuotaError.trail",{brandId:F,href:If})):l.push(r("proQuotaError.package",{brandId:F,href:m,translationService:u})),p4(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((m,g)=>`${g+1}. ${m}`).join("
")}`;return r("errorReason",{message:c})}};function p4(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||iv(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:av(i,"YYYY-MM-DD HH:mm:ss")}))}function wd(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function ov(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function sv(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function Ed(e){let{mimeType:t,base64:n}=aI(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await Hp(uv.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await uv(e);return t}async function uv(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=wd(e.body):r=="urlSearchParams"?a.body=ov(e.body):r=="blob"&&e.body&&(a.body=Ed(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,m=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=m}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let m=c.message||"Unknown Error";throw new V("fetchError",m).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new V("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),m=Object.fromEntries([...l.headers.entries()]),g=l.url;return g||(l.headers.get("X-Final-URL")?g=l.headers.get("X-Final-URL"):g=t),{body:c,headers:m,status:l.status,statusText:l.statusText,url:g}}else if(n==="base64"){let c=await l.blob(),m=new FileReader,g=new Promise((p,f)=>{m.onload=function(){let h=m.result;p(h)},m.onerror=function(){f(m.error)}});return m.readAsDataURL(c),g}else if(n==="stream"){let c="",m;if(l.body&&l.body instanceof ReadableStream)for await(let g of iI(l.body)){let p=new TextDecoder().decode(g);c+=p;let f;for(;(f=c.indexOf(` -`))>=0;){let h=c.slice(0,f).trim();if(c=c.slice(f+1),h.startsWith("event:")||h==="")continue;let y="";if(h.startsWith("data:")&&(y=h.slice(5).trim()),y==="[DONE]")break;let b;try{b=JSON.parse(y??"")}catch(v){k.debug("json error",v);continue}m=b}}return m}}else{let c;try{c=await l.text()}catch(h){k.error("parse response failed",h)}c&&k.error("fail response",c);let m="";c&&(m=c.slice(0,500));let g=m,f=new URL(t).hostname.endsWith(`.${et}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(g="bingAuth:"+m),f&&(m.includes("quota exceeded")&&(g="ProQuota:"+m),m.includes("translation quota reached")&&(g="NewProQuota:"+m)),new V("fetchError",g).initNetWork(l.status)}}async function*iI(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var oI="";function _s(){return oI||globalThis.navigator.userAgent}function Pl(){return _s().includes("ImtFxiOS")}function lv(){let t=_s().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function f4(){return _s().includes("ImtFxAndroid")}function cv(){let e=_s();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function dv(){let t=_s().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Fi(){let e=_s();if(Pl()||f4()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Ad=function(){return Ad=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,sI()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Rl(e){return e.then(void 0,function(){}),e}function lI(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function dI(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(g,p){o[g]=o[g]||[],o[g].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(m)u(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function mI(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Bi(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i+l,g+=p>>>16,p&=65535,g+=a+u,m+=g>>>16,g&=65535,m+=r+s,c+=m>>>16,m&=65535,c+=n+o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Nr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i*l,g+=p>>>16,p&=65535,g+=a*l,m+=g>>>16,g&=65535,g+=i*u,m+=g>>>16,g&=65535,m+=r*l,c+=m>>>16,m&=65535,m+=a*u,c+=m>>>16,m&=65535,m+=i*s,c+=m>>>16,m&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Os(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function wr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];_t(e,t),Nr(e,gI),t[1]=e[0]>>>1,_t(e,t),Nr(e,pI),t[1]=e[0]>>>1,_t(e,t)}var kd=[2277735313,289559509],Dd=[1291169091,658871167],fv=[0,5],fI=[0,1390208809],hI=[0,944331445];function bI(e,t){var n=mI(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function yI(e){var t;return Ad({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function vI(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function CI(e){return typeof e!="function"}function xI(e,t){var n=Rl(new Promise(function(r){var a=Date.now();mv(e.bind(null,t),function(){for(var i=[],o=0;o=4}function TI(){var e=window,t=navigator;return Er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Dv()}function Pd(){var e=window,t=navigator;return Er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function ea(){var e=window,t=navigator;return Er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function T4(){var e=window,t=e.HTMLElement,n=e.Document;return Er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Il(){var e=window;return vI(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Lv(){var e,t,n=window;return Er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function wI(){var e=window;return Er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function EI(){var e=window;return Er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Fl(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return Er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function AI(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function kI(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function DI(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function w4(){var e=Pd(),t=Lv(),n=window,r=navigator,a="connection";return e?Er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?Er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function LI(){return RI()?-4:MI()}function MI(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(PI())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=II(a),u=s[0],l=s[1],c=Rl(u.then(function(m){return FI(m.getChannelData(0).subarray(n))},function(m){if(m.name==="timeout"||m.name==="suspended")return-3;throw m}));return function(){return l(),c}}function PI(){return ea()&&!T4()&&!EI()}function RI(){return ea()&&Fl()&&Il()}function II(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,m=0;e.oncomplete=function(f){return s(f.renderedBuffer)};var g=function(){setTimeout(function(){return u(hv("timeout"))},Math.min(r,m+a-Date.now()))},p=function(){try{var f=e.startRendering();switch(Av(f)&&Rl(f),e.state){case"running":m=Date.now(),l&&g();break;case"suspended":document.hidden||c++,l&&c>=t?u(hv("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,m>0&&g())}});return[o,i]}function FI(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function dF(){var e=new Date().getFullYear();return Math.max($r(new Date(e,0,1).getTimezoneOffset()),$r(new Date(e,6,1).getTimezoneOffset()))}function mF(){try{return!!window.sessionStorage}catch{return!0}}function gF(){try{return!!window.localStorage}catch{return!0}}function pF(){if(!(Dv()||TI()))try{return!!window.indexedDB}catch{return!0}}function fF(){return!!window.openDatabase}function hF(){return navigator.cpuClass}function bF(){var e=navigator.platform;return e==="MacIntel"&&ea()&&!T4()?AI()?"iPad":"iPhone":e}function yF(){return navigator.vendor||""}function vF(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tm.length*.6}),s.sort(),[2,s]}})})}function TF(){return ea()||w4()}function wF(e){var t;return Zr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Xr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},yv(r),u=0;u`${g+1}. ${m}`).join("
")}`;return r("errorReason",{message:c})}};function p4(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||rv(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:nv(i,"YYYY-MM-DD HH:mm:ss")}))}function Sd(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function av(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function iv(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function wd(e){let{mimeType:t,base64:n}=rI(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await jp(ov.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await ov(e);return t}async function ov(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Sd(e.body):r=="urlSearchParams"?a.body=av(e.body):r=="blob"&&e.body&&(a.body=wd(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,m=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=m}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let m=c.message||"Unknown Error";throw new V("fetchError",m).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new V("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),m=Object.fromEntries([...l.headers.entries()]),g=l.url;return g||(l.headers.get("X-Final-URL")?g=l.headers.get("X-Final-URL"):g=t),{body:c,headers:m,status:l.status,statusText:l.statusText,url:g}}else if(n==="base64"){let c=await l.blob(),m=new FileReader,g=new Promise((p,f)=>{m.onload=function(){let b=m.result;p(b)},m.onerror=function(){f(m.error)}});return m.readAsDataURL(c),g}else if(n==="stream"){let c="",m;if(l.body&&l.body instanceof ReadableStream)for await(let g of aI(l.body)){let p=new TextDecoder().decode(g);c+=p;let f;for(;(f=c.indexOf(` +`))>=0;){let b=c.slice(0,f).trim();if(c=c.slice(f+1),b.startsWith("event:")||b==="")continue;let y="";if(b.startsWith("data:")&&(y=b.slice(5).trim()),y==="[DONE]")break;let h;try{h=JSON.parse(y??"")}catch(v){k.debug("json error",v);continue}m=h}}return m}}else{let c;try{c=await l.text()}catch(b){k.error("parse response failed",b)}c&&k.error("fail response",c);let m="";c&&(m=c.slice(0,500));let g=m,f=new URL(t).hostname.endsWith(`.${et}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(g="bingAuth:"+m),f&&(m.includes("quota exceeded")&&(g="ProQuota:"+m),m.includes("translation quota reached")&&(g="NewProQuota:"+m)),new V("fetchError",g).initNetWork(l.status)}}async function*aI(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var iI="";function _s(){return iI||globalThis.navigator.userAgent}function Ml(){return _s().includes("ImtFxiOS")}function sv(){let t=_s().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function f4(){return _s().includes("ImtFxAndroid")}function uv(){let e=_s();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function lv(){let t=_s().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Fi(){let e=_s();if(Ml()||f4()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Ed=function(){return Ed=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,oI()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Pl(e){return e.then(void 0,function(){}),e}function uI(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function cI(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(g,p){o[g]=o[g]||[],o[g].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(m)u(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function dI(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Bi(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i+l,g+=p>>>16,p&=65535,g+=a+u,m+=g>>>16,g&=65535,m+=r+s,c+=m>>>16,m&=65535,c+=n+o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Or(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i*l,g+=p>>>16,p&=65535,g+=a*l,m+=g>>>16,g&=65535,g+=i*u,m+=g>>>16,g&=65535,m+=r*l,c+=m>>>16,m&=65535,m+=a*u,c+=m>>>16,m&=65535,m+=i*s,c+=m>>>16,m&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Os(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function Sr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];_t(e,t),Or(e,mI),t[1]=e[0]>>>1,_t(e,t),Or(e,gI),t[1]=e[0]>>>1,_t(e,t)}var Ad=[2277735313,289559509],kd=[1291169091,658871167],gv=[0,5],pI=[0,1390208809],fI=[0,944331445];function hI(e,t){var n=dI(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function bI(e){var t;return Ed({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function yI(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function vI(e){return typeof e!="function"}function CI(e,t){var n=Pl(new Promise(function(r){var a=Date.now();cv(e.bind(null,t),function(){for(var i=[],o=0;o=4}function TI(){var e=window,t=navigator;return wr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Av()}function Md(){var e=window,t=navigator;return wr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function $r(){var e=window,t=navigator;return wr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function S4(){var e=window,t=e.HTMLElement,n=e.Document;return wr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Rl(){var e=window;return yI(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function kv(){var e,t,n=window;return wr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function SI(){var e=window;return wr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function wI(){var e=window;return wr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Il(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return wr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function EI(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return wr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function AI(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function kI(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function w4(){var e=Md(),t=kv(),n=window,r=navigator,a="connection";return e?wr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?wr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function DI(){return PI()?-4:LI()}function LI(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(MI())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=RI(a),u=s[0],l=s[1],c=Pl(u.then(function(m){return II(m.getChannelData(0).subarray(n))},function(m){if(m.name==="timeout"||m.name==="suspended")return-3;throw m}));return function(){return l(),c}}function MI(){return $r()&&!S4()&&!wI()}function PI(){return $r()&&Il()&&Rl()}function RI(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,m=0;e.oncomplete=function(f){return s(f.renderedBuffer)};var g=function(){setTimeout(function(){return u(pv("timeout"))},Math.min(r,m+a-Date.now()))},p=function(){try{var f=e.startRendering();switch(wv(f)&&Pl(f),e.state){case"running":m=Date.now(),l&&g();break;case"suspended":document.hidden||c++,l&&c>=t?u(pv("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,m>0&&g())}});return[o,i]}function II(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function cF(){var e=new Date().getFullYear();return Math.max(Xr(new Date(e,0,1).getTimezoneOffset()),Xr(new Date(e,6,1).getTimezoneOffset()))}function dF(){try{return!!window.sessionStorage}catch{return!0}}function mF(){try{return!!window.localStorage}catch{return!0}}function gF(){if(!(Av()||TI()))try{return!!window.indexedDB}catch{return!0}}function pF(){return!!window.openDatabase}function fF(){return navigator.cpuClass}function hF(){var e=navigator.platform;return e==="MacIntel"&&$r()&&!S4()?EI()?"iPad":"iPhone":e}function bF(){return navigator.vendor||""}function yF(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tm.length*.6}),s.sort(),[2,s]}})})}function TF(){return $r()||w4()}function SF(e){var t;return Jr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Zr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},hv(r),u=0;u')}function UF(){return navigator.pdfViewerEnabled}function jF(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function HF(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(qF())return-3;try{return e.canMakePayments()?1:0}catch(t){return zF(t)}}var qF=OI;function zF(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function VF(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Pv=-1,Rv=-2,WF=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),GF=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),KF=["FRAGMENT_SHADER","VERTEX_SHADER"],YF=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Iv="WEBGL_debug_renderer_info",QF="WEBGL_polygon_mode";function JF(e){var t,n,r,a,i,o,s=e.cache,u=Fv(s);if(!u)return Pv;if(!_v(u))return Rv;var l=Bv()?null:u.getExtension(Iv);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function ZF(e){var t=e.cache,n=Fv(t);if(!n)return Pv;if(!_v(n))return Rv;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,m=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Ev,"/npm-monitoring"),!0),e.send()}catch{}}function pB(e){var t;return e===void 0&&(e={}),Zr(this,void 0,void 0,function(){var n,r,a;return Xr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&gB(),n=e.delayFallback,r=e.debug,[4,dB(n)];case 1:return i.sent(),a=rB({cache:{},debug:r}),[2,mB(a,r)]}})})}var E4={load:pB,hashComponents:Ov,componentsToDebugString:lB};async function _i(){let e=await Pt("fakeUserId","");e||(e=await ko("fakeUserId",""),e&&await Qe("fakeUserId",e));let t=new Date,n=await Pt("installedAt","");return n||(n=await ko("installedAt",""),n&&await Qe("installedAt",n)),e?n||(n=new Date(0).toISOString(),await Qe("installedAt",n)):(e=await hB(64),await Qe("fakeUserId",e)),n||(n=t.toISOString(),await Qe("installedAt",n)),{fakeUserId:e,installedAt:n}}var fB=10;async function js(){let e=await Pt("userTag","");if(e)return e;let{fakeUserId:t}=await _i(),r=t.charCodeAt(0)%fB;return e=String.fromCharCode(r+"a".charCodeAt(0)),await Qe("userTag",e),e}function Bl(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):bB(i,e)}catch{return Bl(64)}}function bB(e,t=32){let n="";for(let a=0;a{}),Bd)}async function jv(e,t){try{let n=Te(),r=n.INSTALL_FROM==="firefox_store";if(Fi()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=X(),o=St(),s=n.PROD==="1",u=Hn(),l=new Date,{fakeUserId:c,installedAt:m}=await _i(),g=await js(),p=await Hs(),f=await qs(),h=new Date(m),y=Oi(h),b=Oi(l),v=y===b,C=24*60*60*1e3,x=l.getTime()-h.getTime()<7*C,w=l.getTime()-h.getTime()<30*C,S=l.getTime()-h.getTime()<365*C,T=vl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=gs.parse(A),M=e.map(I=>{let P=I.params||{};if(D.os&&(P.os_name=D.os.name||"unknown",P.os_version=D.os.version||"unknown",P.os_version_name=D.os.versionName||"unknown"),D.browser){P.browser_name=D.browser.name||"unknown",P.browser_version=D.browser.version||"unknown";let R=Fi();R&&(P.browser_name=R.name,P.browser_version=R.version)}if(D.platform&&(P.platform_type=D.platform.type||"unknown"),D.engine&&(P.engine_name=D.engine.name||"unknown",P.engine_version=D.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),y){P.install_day=Rd(h);let R=Fd(h);P.install_week=`${R.year}${R.week}`}return P.userscript=i.toString(),v?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=x?"1":"0",P.is_new_user_this_month=w?"1":"0",P.is_new_user_this_year=S?"1":"0",o?P.main_frame=0:P.main_frame=1,g&&(P.ab_tag=g),p&&(P.ab_group=p),P.campaign=f||"none",{...I,params:P}});T.forEach(async I=>{let P=await _l({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&CB(c,M)}catch{}}async function vB(e){return await yB().sendMessage("background:main",e)}function _l(e){return S0()?bd({method:"request",data:e}):X()||x0()?(e.fetchPolyfill=globalThis.GM_fetch,Or(e)):vB({method:"fetch",data:e})}function CB(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Id(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);_l({url:Cl,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var _d={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function EF(){for(var e=0,t=["rec2020","p3","srgb"];e')}function NF(){return navigator.pdfViewerEnabled}function UF(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function jF(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(HF())return-3;try{return e.canMakePayments()?1:0}catch(t){return qF(t)}}var HF=_I;function qF(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function zF(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Lv=-1,Mv=-2,VF=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),WF=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),GF=["FRAGMENT_SHADER","VERTEX_SHADER"],KF=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Pv="WEBGL_debug_renderer_info",YF="WEBGL_polygon_mode";function QF(e){var t,n,r,a,i,o,s=e.cache,u=Rv(s);if(!u)return Lv;if(!Fv(u))return Mv;var l=Iv()?null:u.getExtension(Pv);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function JF(e){var t=e.cache,n=Rv(t);if(!n)return Lv;if(!Fv(n))return Mv;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,m=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Sv,"/npm-monitoring"),!0),e.send()}catch{}}function gB(e){var t;return e===void 0&&(e={}),Jr(this,void 0,void 0,function(){var n,r,a;return Zr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&mB(),n=e.delayFallback,r=e.debug,[4,cB(n)];case 1:return i.sent(),a=nB({cache:{},debug:r}),[2,dB(a,r)]}})})}var E4={load:gB,hashComponents:Bv,componentsToDebugString:uB};async function _i(){let e=await Pt("fakeUserId","");e||(e=await ko("fakeUserId",""),e&&await rt("fakeUserId",e));let t=new Date,n=await Pt("installedAt","");return n||(n=await ko("installedAt",""),n&&await rt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await rt("installedAt",n)):(e=await fB(64),await rt("fakeUserId",e)),n||(n=t.toISOString(),await rt("installedAt",n)),{fakeUserId:e,installedAt:n}}var pB=10;async function js(){let e=await Pt("userTag","");if(e)return e;let{fakeUserId:t}=await _i(),r=t.charCodeAt(0)%pB;return e=String.fromCharCode(r+"a".charCodeAt(0)),await rt("userTag",e),e}function Fl(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):hB(i,e)}catch{return Fl(64)}}function hB(e,t=32){let n="";for(let a=0;a{}),Fd)}async function Nv(e,t){try{let n=Se(),r=n.INSTALL_FROM==="firefox_store";if(Fi()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=X(),o=Tt(),s=n.PROD==="1",u=jn(),l=new Date,{fakeUserId:c,installedAt:m}=await _i(),g=await js(),p=await Hs(),f=await qs(),b=new Date(m),y=Oi(b),h=Oi(l),v=y===h,C=24*60*60*1e3,x=l.getTime()-b.getTime()<7*C,w=l.getTime()-b.getTime()<30*C,T=l.getTime()-b.getTime()<365*C,S=yl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=gs.parse(A),M=e.map(I=>{let P=I.params||{};if(D.os&&(P.os_name=D.os.name||"unknown",P.os_version=D.os.version||"unknown",P.os_version_name=D.os.versionName||"unknown"),D.browser){P.browser_name=D.browser.name||"unknown",P.browser_version=D.browser.version||"unknown";let R=Fi();R&&(P.browser_name=R.name,P.browser_version=R.version)}if(D.platform&&(P.platform_type=D.platform.type||"unknown"),D.engine&&(P.engine_name=D.engine.name||"unknown",P.engine_version=D.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),y){P.install_day=Pd(b);let R=Id(b);P.install_week=`${R.year}${R.week}`}return P.userscript=i.toString(),v?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=x?"1":"0",P.is_new_user_this_month=w?"1":"0",P.is_new_user_this_year=T?"1":"0",o?P.main_frame=0:P.main_frame=1,g&&(P.ab_tag=g),p&&(P.ab_group=p),P.campaign=f||"none",{...I,params:P}});S.forEach(async I=>{let P=await Bl({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&vB(c,M)}catch{}}async function yB(e){return await bB().sendMessage("background:main",e)}function Bl(e){return x0()?hd({method:"request",data:e}):X()||C0()?(e.fetchPolyfill=globalThis.GM_fetch,_r(e)):yB({method:"fetch",data:e})}function vB(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Rd(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Bl({url:vl,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var Bd={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5836,19 +5836,19 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function tr(e){if(e.beta)return!1;if(He()&&e.spVersion)return Da(nr(),e.spVersion);if(cv()&&e.gspVersion){let t=dv();if(t)return Da(t,e.gspVersion)}if(Pl()&&e.ispVersion){let t=lv();if(t)return Da(t,e.ispVersion)}return!1}function Da(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Ol(e){e.message?.indexOf("token invalid")>=0&&(nt.remove(pt),Ml())}async function lr(e){let n=(await Je())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),SB(a.toString())}function SB(e){try{He()?ka(e):globalThis.open(e)}catch{globalThis.open(e)}}function Hv(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function qv(e){return kt(e)}function Od(e){return e?e.map(n=>{let r=TB(n),a={url:r?.url||"",name:r?.siteName||""};if(!r?.browserNames)return a;let i=La();return r.browserNames.split(",").includes(i)?a:null}).filter(n=>!!n):[]}function TB(e){let t=/^(https?:\/\/[^[]+)(\[[^\]]+\])(\[[^\]]+\])?$/,n=e.match(t);if(n&&n.length>0){let r=n[1],a=n[2]?.replace("[","")?.replace("]",""),i=n[3]?.replace("[","")?.replace("]","");return{url:r,siteName:a,browserNames:i}}else return null}function Nd(e){return Array.isArray(e)?e:e?[e]:[]}function qn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Jt(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ud(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Nl(e,t){let n={...e};return Kv(n,t),wB(n,t),n}function Gv(e,t,n){let r={...e};return ta({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),ta({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function wB(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;Kv(e,a)}function ta({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=zv(i);if(o=="rich"){if(!a)return r(i,e[i]);let[g,p,f,h]=zv(i);o=g+"."+p,s=f,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Nd(e[i]));let c=t(o);if(c==null){r(o,l);return}let m;if(s=="add_v"){if(!Vv(u))return;m=A4(c,l)}else if(s=="remove_v"){if(!Vv(u))return;m=Wv(c,l)}else s==="add"?m=A4(c,l):s=="remove"&&(m=Wv(c,l));if(m){r(o,m);return}Array.isArray(e[o])&&o.startsWith("additional")?m=A4(c,l):m=l,r(o,m)})}function Kv(e,t){return ta({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function A4(e,t){let n;if(Array.isArray(e)){let r=Nd(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function zv(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Vv(e){let t=Hn();return e&&Da(t,e)}function Wv(e,t){if(Array.isArray(e)){let n=Nd(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Yv="userConfig",jd="userPromptPool",Hd="userObjectPool";async function qd(){let e=await eC(Yv)||{},t=await Mo(jd)||{},n=await Mo(Hd)||{};return EB(e,t,n)}async function Qv(e){let{userConfig:t,promptPool:n,objectPool:r}=await k4(e);await $v(Yv,t),await Jr(jd,n),await Jr(Hd,r)}function k4(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Jv(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Zv(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function EB(e,t,n){return Jv(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Zv(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Jv(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Zv(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ni(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Xv(r);for(let o of i)delete a[o]}),n}function D4(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Xv(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Xv(e){let t=Qr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=ks.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function tC(e,t){return nC(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function nC(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>nC(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,m)=>{c!="generalRule"&&(l[c]=m)}}),ta({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,m)=>{l.generalRule[c]=m}}),MB(l),LB(n,u,l),l=await FB(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Po(){if(we.PROD==="1")return{};let e={};if(we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(we.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:we.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(we.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:we.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(we.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&we.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:we.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:we.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(we.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:we.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(we.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=we.DEEPL_PROXY_ENDPOINT),we.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=we.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),we.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:we.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}we.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=we.IMMERSIVE_TRANSLATE_SERVICE);let t={};return we.DEBUG==="1"&&(t.debug=!0,t.cache=!1),we.MOCK==="1"&&(t.translationService="mock"),t}async function Rt(){let e=await j.storage.local.get(vs);if(e[vs]){let t=e[vs],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Dt(i),i}else return{}}async function Dt(e){await j.storage.local.set({[vs]:e})}async function $5(e){await j.storage.local.set({[B0]:e})}async function aC(){return we.DEBUG==="1"?void 0:(await j.storage.local.get(B0))[B0]}async function Vs(){await j.storage.local.set({[vs]:{}})}async function Ws(){let e=await aC(),n={...Ul(),..._d,buildinConfigUpdatedAt:we.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function ln(){return qd()}function ur(e){return Qv(e)}async function $v(e,t){await j.storage.sync.set({[e]:t})}async function eC(e){return(await j.storage.sync.get(e))[e]}async function Jr(e,t){await j.storage.local.set({[e]:t})}async function Mo(e){return(await j.storage.local.get(e))[e]}var iC={};function zd(e){return iC[e]}function oC(e,t){iC[e]=t}var AB=async()=>{let e=["zh-CN"];try{e=await j.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>ae(r)).find(r=>Td.find(a=>a===r));return n||"en"},Ul=()=>{let e={..._d,buildinConfigUpdatedAt:we.BUILD_TIME};return{...e,targetLanguage:Di,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function kB(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function DB(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Di;let n=await Pt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=rC(l,r[s]))}),ta({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=rC(l,n[s]))}),ta({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function MB(e){try{let t=await Pt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function rC(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function PB(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let m=(e?.translationLanguagePattern?.matches?.length||0)>0,g=await Pt("installedAt",""),p=Number(await ko("translage_page_daily",0)),f=Number(await Pt(Rr,0)),h;f>0&&(Date.now()-f0&&(Date.now()-pr&&(e=t)}return e}function IB(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function FB(e,t){let n=await BB(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=Nl(e[o],t[o]));else if(o==="translationServices")sC(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(X()||He()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?Gv(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(we.PROD==="0"&&we.DEV_RULES){let s=JSON.parse(we.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function BB(){let e={};if(!X()&&j.commands&&j.commands.getAll){let t=await j.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function uC(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!tC(a,e))return;let{generalRule:s,translationServices:u,...l}=i;ta({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,m)=>{e[c]=m}}),u&&sC(i,e),s&&(r=Nl(r,s))}),r}var Vd={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var OB="";function Hn(){return OB||Vd.version}function nr(){return j.runtime.getManifest().version}function Ro(e){let t=Ul(),n=nr();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function L4(e){return e.replace(//g,">")}var lC=["*://*/*","*","*://*"],dC="immersive-translate-wildcard-placeholder.com";function M4(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>lC.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(lC.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,m=l.port===o;return l.port?c&&m:c}else return UB(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let y=u.split("://");l=y[0],l==="*"&&y.length>1&&(l="*",u="https://"+y[1])}else l="*",u="https://"+u;let m=u.replace(/\*/g,dC),g;try{g=new URL(m)}catch{return k.debug("invalid match pattern",m,"raw match value:",c),!1}let p=g.host,f=g.pathname;f==="/"&&(c.replace("://","").includes("/")||(f="/*"));let h=NB(l+":",cC(p),cC(f));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function cC(e){return e.replaceAll(dC,"*")}function NB(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function dt(e,t){return M4(e,t)!==null}function UB(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var mC=null;if(typeof trustedTypes<"u")try{mC=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var gC=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(gC=!0)});function Wd(){return gC}var cr=mC;function fC(e,t,n,r,a){if(!e)return"";for(let y of r||[])if(t?.querySelector(y))return"";let i=n[0],o=n[n.length-1];if(HB(t,o))return"";i=pC(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let y of n){let b=pC(t,y);if(c+=f(y),u&&b!=u){h(),u=b,l=f(y)||"";continue}u=b,l+=f(y)||""}h();let m=p(c),g=p(t.textContent||"");if(m==g&&t.innerText.split(` -`).filter(y=>!!y.trim()).length>1)return t.innerHTML||"";return s;function p(y){return y.replace(/\s+/g,"")}function f(y){return y instanceof HTMLElement?y.innerText:y?.textContent||""}function h(){let y=p(f(u)),b=p(l);if(y==b){let v=f(u).replace(/ */g,"");if(!c.startsWith(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function er(e){if(e.beta)return!1;if(He()&&e.spVersion)return ka(tr(),e.spVersion);if(uv()&&e.gspVersion){let t=lv();if(t)return ka(t,e.gspVersion)}if(Ml()&&e.ispVersion){let t=sv();if(t)return ka(t,e.ispVersion)}return!1}function ka(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function _l(e){e.message?.indexOf("token invalid")>=0&&(nt.remove(pt),Ll())}async function cr(e){let n=(await Qe())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),xB(a.toString())}function xB(e){try{He()?Aa(e):globalThis.open(e)}catch{globalThis.open(e)}}function Uv(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function jv(e){return kt(e)}function _d(e){return e?e.map(n=>{let r=TB(n),a={url:r?.url||"",name:r?.siteName||""};if(!r?.browserNames)return a;let i=Da();return r.browserNames.split(",").includes(i)?a:null}).filter(n=>!!n):[]}function TB(e){let t=/^(https?:\/\/[^[]+)(\[[^\]]+\])(\[[^\]]+\])?$/,n=e.match(t);if(n&&n.length>0){let r=n[1],a=n[2]?.replace("[","")?.replace("]",""),i=n[3]?.replace("[","")?.replace("]","");return{url:r,siteName:a,browserNames:i}}else return null}function Od(e){return Array.isArray(e)?e:e?[e]:[]}function Hn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Jt(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Nd(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Ol(e,t){let n={...e};return Wv(n,t),SB(n,t),n}function Vv(e,t,n){let r={...e};return ea({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),ea({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function SB(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;Wv(e,a)}function ea({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Hv(i);if(o=="rich"){if(!a)return r(i,e[i]);let[g,p,f,b]=Hv(i);o=g+"."+p,s=f,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Od(e[i]));let c=t(o);if(c==null){r(o,l);return}let m;if(s=="add_v"){if(!qv(u))return;m=A4(c,l)}else if(s=="remove_v"){if(!qv(u))return;m=zv(c,l)}else s==="add"?m=A4(c,l):s=="remove"&&(m=zv(c,l));if(m){r(o,m);return}Array.isArray(e[o])&&o.startsWith("additional")?m=A4(c,l):m=l,r(o,m)})}function Wv(e,t){return ea({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function A4(e,t){let n;if(Array.isArray(e)){let r=Od(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Hv(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function qv(e){let t=jn();return e&&ka(t,e)}function zv(e,t){if(Array.isArray(e)){let n=Od(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Gv="userConfig",Ud="userPromptPool",jd="userObjectPool";async function Hd(){let e=await Xv(Gv)||{},t=await Mo(Ud)||{},n=await Mo(jd)||{};return wB(e,t,n)}async function Kv(e){let{userConfig:t,promptPool:n,objectPool:r}=await k4(e);await Zv(Gv,t),await Qr(Ud,n),await Qr(jd,r)}function k4(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Yv(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Qv(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function wB(e,t,n){return Yv(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Qv(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Yv(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Qv(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ni(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Jv(r);for(let o of i)delete a[o]}),n}function D4(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Jv(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Jv(e){let t=Yr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=ks.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function $v(e,t){return eC(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function eC(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>eC(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,m)=>{c!="generalRule"&&(l[c]=m)}}),ea({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,m)=>{l.generalRule[c]=m}}),await LB(l),DB(n,u,l),l=await IB(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Po(){if(we.PROD==="1")return{};let e={};if(we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:we.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:we.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(we.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:we.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(we.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:we.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:we.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(we.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&we.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:we.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:we.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(we.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:we.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(we.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=we.DEEPL_PROXY_ENDPOINT),we.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=we.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),we.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:we.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}we.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=we.IMMERSIVE_TRANSLATE_SERVICE);let t={};return we.DEBUG==="1"&&(t.debug=!0,t.cache=!1),we.MOCK==="1"&&(t.translationService="mock"),t}async function Rt(){let e=await j.storage.local.get(vs);if(e[vs]){let t=e[vs],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Dt(i),i}else return{}}async function Dt(e){await j.storage.local.set({[vs]:e})}async function Z5(e){await j.storage.local.set({[F0]:e})}async function nC(){return we.DEBUG==="1"?void 0:(await j.storage.local.get(F0))[F0]}async function Vs(){await j.storage.local.set({[vs]:{}})}async function Ws(){let e=await nC(),n={...Nl(),...Bd,buildinConfigUpdatedAt:we.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function ln(){return Hd()}function lr(e){return Kv(e)}async function Zv(e,t){await j.storage.sync.set({[e]:t})}async function Xv(e){return(await j.storage.sync.get(e))[e]}async function Qr(e,t){await j.storage.local.set({[e]:t})}async function Mo(e){return(await j.storage.local.get(e))[e]}var rC={};function qd(e){return rC[e]}function aC(e,t){rC[e]=t}var EB=async()=>{let e=["zh-CN"];try{e=await j.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>ae(r)).find(r=>Td.find(a=>a===r));return n||"en"},Nl=()=>{let e={...Bd,buildinConfigUpdatedAt:we.BUILD_TIME};return{...e,targetLanguage:Di,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function AB(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function kB(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Di;let n=await Pt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=tC(l,r[s]))}),ea({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=tC(l,n[s]))}),ea({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function LB(e){try{let t=await Pt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function tC(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function MB(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let m=(e?.translationLanguagePattern?.matches?.length||0)>0,g=await Pt("installedAt",""),p=Number(await ko("translage_page_daily",0)),f=Number(await Pt(Pr,0)),b;f>0&&(Date.now()-f0&&(Date.now()-pr&&(e=t)}return e}function RB(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function IB(e,t){let n=await FB(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=Ol(e[o],t[o]));else if(o==="translationServices")iC(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(X()||He()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?Vv(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(we.PROD==="0"&&we.DEV_RULES){let s=JSON.parse(we.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function FB(){let e={};if(!X()&&j.commands&&j.commands.getAll){let t=await j.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function oC(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!$v(a,e))return;let{generalRule:s,translationServices:u,...l}=i;ea({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,m)=>{e[c]=m}}),u&&iC(i,e),s&&(r=Ol(r,s))}),r}var zd={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var _B="";function jn(){return _B||zd.version}function tr(){return j.runtime.getManifest().version}function Ro(e){let t=Nl(),n=tr();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function L4(e){return e.replace(//g,">")}var sC=["*://*/*","*","*://*"],lC="immersive-translate-wildcard-placeholder.com";function M4(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>sC.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(sC.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,m=l.port===o;return l.port?c&&m:c}else return NB(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let y=u.split("://");l=y[0],l==="*"&&y.length>1&&(l="*",u="https://"+y[1])}else l="*",u="https://"+u;let m=u.replace(/\*/g,lC),g;try{g=new URL(m)}catch{return k.debug("invalid match pattern",m,"raw match value:",c),!1}let p=g.host,f=g.pathname;f==="/"&&(c.replace("://","").includes("/")||(f="/*"));let b=OB(l+":",uC(p),uC(f));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function uC(e){return e.replaceAll(lC,"*")}function OB(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function dt(e,t){return M4(e,t)!==null}function NB(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var cC=null;if(typeof trustedTypes<"u")try{cC=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var dC=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(dC=!0)});function Vd(){return dC}var nr=cC;function gC(e,t,n,r,a){if(!e)return"";for(let y of r||[])if(t?.querySelector(y))return"";let i=n[0],o=n[n.length-1];if(jB(t,o))return"";i=mC(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let y of n){let h=mC(t,y);if(c+=f(y),u&&h!=u){b(),u=h,l=f(y)||"";continue}u=h,l+=f(y)||""}b();let m=p(c),g=p(t.textContent||"");if(m==g&&t.innerText.split(` +`).filter(y=>!!y.trim()).length>1)return t.innerHTML||"";return s;function p(y){return y.replace(/\s+/g,"")}function f(y){return y instanceof HTMLElement?y.innerText:y?.textContent||""}function b(){let y=p(f(u)),h=p(l);if(y==h){let v=f(u).replace(/ */g,"");if(!c.startsWith(` `)&&v?.startsWith(` `)||!c.endsWith(` `)&&v?.endsWith(` -`)){s+=l;return}s+=SC(u,a)}else s+=l}}function hC(e,t,n,r,a){if(!e||!t)return"";let i=SC(n,a)||"";return t.replace(i,r)}var P4=globalThis.document?.createElement("div");function jB(e){return P4?(P4.innerHTML=cr?.createHTML(e)||e,P4?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function bC(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||jB(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function yC(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(m,g,p,f)=>{if(t[f+1]=="/"){let y=o.findIndex(v=>v.tag==g);if(y==-1)return m;let b=o[y];return o=o.slice(y+1),n?``:``}else{let y=e[g];if(!y)return m;if(o.unshift(y),n)return`<${n}${g}>`;if(!y.attributes)return`<${y.tag}>`;let b=a||"";return`<${y.tag} ${r||"id"}=${b}${y.id}${b}>`}});l.replace(i,(m,g,p,f)=>{if(l[f+1]=="/"){let y=s[0],b=s[1],v=u[u.length-1];y?.tag==g?(y.end==f?(y.endTag=m,y.end=f+m.length,u.push(y)):y.end==v?.begin&&v.end==f&&(y.endTag=m,y.end=f+m.length,y.times++,u[u.length-1]=y),s.shift()):b?.tag==g&&b.end==y.begin&&b.end==f&&(b.endTag=m,b.end=f+m.length,u.push(b),s.shift(),s.shift())}else s.unshift({tag:g,startTag:m,begin:f,end:f+m.length,times:0});return m});let c=l.slice();return u.forEach(m=>{if(!m.times)return;let g=Object.keys(e).length,p="";e[g]={tag:n||m.tag,content:"",id:g},n?p=`<${n}${g}>`:p=`<${m.tag} ${r||"id"}=${g}>`,e[g].content=c.slice(m.begin,m.end),l=l.replace(e[g].content,p)}),l}function vC(e,t,n,r){let a="";return n?a=CC(e,t,n):a=xC(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function CC(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),m=e[c];return m?l=="/"?m.content?"":``:m.content?CC(e,m.content,n):m.attributes?`<${m.tag} ${m.attributes}>`:`<${m.tag}>`:i})}function xC(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return xC(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function SC(e,t){if(e instanceof HTMLElement){if(wC(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=CC(u,a)}else s+=l}}function pC(e,t,n,r,a){if(!e||!t)return"";let i=CC(n,a)||"";return t.replace(i,r)}var P4=globalThis.document?.createElement("div");function UB(e){return P4?(P4.innerHTML=nr?.createHTML(e)||e,P4?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function fC(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||UB(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function hC(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(m,g,p,f)=>{if(t[f+1]=="/"){let y=o.findIndex(v=>v.tag==g);if(y==-1)return m;let h=o[y];return o=o.slice(y+1),n?``:``}else{let y=e[g];if(!y)return m;if(o.unshift(y),n)return`<${n}${g}>`;if(!y.attributes)return`<${y.tag}>`;let h=a||"";return`<${y.tag} ${r||"id"}=${h}${y.id}${h}>`}});l.replace(i,(m,g,p,f)=>{if(l[f+1]=="/"){let y=s[0],h=s[1],v=u[u.length-1];y?.tag==g?(y.end==f?(y.endTag=m,y.end=f+m.length,u.push(y)):y.end==v?.begin&&v.end==f&&(y.endTag=m,y.end=f+m.length,y.times++,u[u.length-1]=y),s.shift()):h?.tag==g&&h.end==y.begin&&h.end==f&&(h.endTag=m,h.end=f+m.length,u.push(h),s.shift(),s.shift())}else s.unshift({tag:g,startTag:m,begin:f,end:f+m.length,times:0});return m});let c=l.slice();return u.forEach(m=>{if(!m.times)return;let g=Object.keys(e).length,p="";e[g]={tag:n||m.tag,content:"",id:g},n?p=`<${n}${g}>`:p=`<${m.tag} ${r||"id"}=${g}>`,e[g].content=c.slice(m.begin,m.end),l=l.replace(e[g].content,p)}),l}function bC(e,t,n,r){let a="";return n?a=yC(e,t,n):a=vC(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function yC(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),m=e[c];return m?l=="/"?m.content?"":``:m.content?yC(e,m.content,n):m.attributes?`<${m.tag} ${m.attributes}>`:`<${m.tag}>`:i})}function vC(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return vC(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function CC(e,t){if(e instanceof HTMLElement){if(TC(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` `)<0?r=lt.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=lt.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}else if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}else return e?.outerHTML;return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function HB(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function pC(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Gd(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function R4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),ta({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Gs(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function TC(e,t){let n=t||e.translationService;return Gs(e,n,e.config.translationServices)?R4(e.rule):e.rule}function jl(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var qB=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Ar(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Ma(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Ar(e,i))return!1;if(Ar(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Ar(e,o)),c;function m(){return n&&n.display?!!qB.includes(n.display):Ar(e,r)}}var qt=Ar;function Io(e){return!!e.shadowRoot}function Ui(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Hl(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Pa(e,t=!1){let n=xs;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Fo(e,t,n=!1){let r=e?.[t];return Pa(r,n)}function Ks(e,t){return Pi(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function I4(e){let{rule:t}=e,n=zB(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function zB(e){let t=e.config.loadingTheme;return`${F}-loading-${t}`}function ql(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Yt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,K6,t.toString());let i=I4(e);return a.append(n?" ...":lt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Ys(e,t){return e.querySelector(`[${Af}='${t}']`)}function AC(){document.querySelectorAll(`[${Af}]`).forEach(t=>{t.remove()})}function kC(){document.querySelectorAll(`.${Yt}-error`).forEach(t=>{t.remove()})}function DC(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{qi(n)&&t.push(n)}),t}function F4(e,t){return t?VB(e):WB(e)}function VB(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,h)=>{if(f=="id"&&u[h+2]=="=")return p;let y=l++;return t[`${y}`]=LC(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=L4(p),g.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function WB(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,h)=>f.tl&&!h.tl?1:!f.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,h,y)=>{if(h=="id"&&l[y+2]=="=")return f;let b=c++;return t[`${b}`]=LC(h,m),o.length>2?f.replace(h,`<${o[2]}${b}>`):f.replace(h,`${o[0]}${b}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let h=c++;return t[`${h}`]=L4(f),o.length>2?p.replace(f,`<${o[2]}${h}>`):p.replace(f,`${o[0]}${h}${o[1]}`)})})}catch(m){k.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function B4(e,t){return t?GB(e):KB(e)}function GB(e){let{text:t,variables:n}=e,r=jl(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function KB(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function LC(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Qs(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||GC(l)||qC(l)||WC(l)||zC(l)||VC(l)||QB(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:$d(i?.trim(),n,r)}function Bo(e){return e.nodeType===Node.ELEMENT_NODE}function MC(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function PC(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function na(){return await Pt("fakeUserId","")}async function YB(){return await Pt("installedAt","")}async function Qd(e,t){let r=Te().INSTALL_FROM,a=Hn(),i=await YB(),o=await na(),s=await Je(),u=!1,l=await nt.get(pt,null),c=!1;l&&kt(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await js(),g=await qs(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Hs();return f&&(p.abGroup=f),p}function ui(e,t){let[n,r]=N();return q(()=>{!e||!t||(async()=>{let a=await _4(e,t);r(a)})()},[e,t,r]),n}async function _4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!He()&&X()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Pt("installedAt","");new Date(o).getTime()s==n),a=N4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>dt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>dt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function N4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function IC(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function FC(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function BC(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Kd[e]=setTimeout(()=>{n("")},t)})}function OC(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Hi(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Jd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function La(){return f4()?"imtAndroid":Pl()?"imtIOS":X()?"userscript":He()?"safari":Xn()?"firefox":J0()?"chrome":"other"}function Ra(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Zd(e){return e?.getAttribute("imt-state")||""}function Ia(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Xd(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Ar(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function NC(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function UC(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function jC(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var JB={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Yd={...JB};function li(e){Yd[e]||(Yd[e]=Date.now())}var EC=!1;function HC(){if(EC)return;EC=!0;let e=Yd.initial,t={...Yd};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(re+"PerformanceData",JSON.stringify(t))}var em=!1,ZB=X();function KC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function XB(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&YC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(zi(i,O0)){if(a===!0)return!0;continue}if(zl(i.nodeName,t.inlineTags))return!0;if(!U4(i,t))return!1}}return!0}function j4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(zl(e.nodeName,n)||U4(e,t)){if(zi(e,J6)||zl(e.nodeName,["BR"]))return!1;if(zi(e,O0))return!0;if(U4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return XB(e,t)}else return zi(e,O0);return!1}function YC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&zi(e,Q6,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&zi(e,j6))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||zl(e.nodeName,i))}function $d(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!JC(r)&&r.length>=n}function QC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(JC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function JC(e){for(let t=0;t127)return!1;return!0}function qC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function zC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function VC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function WC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function GC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function zi(e,t,n=!1){return H4(e,t,"1",n)}function H4(e,t,n,r=!1){return em&&!r?e[Cr]?e[Cr]?.[t]===n:!1:e.dataset?.[t]===n}function Zs(e){return(e.innerText||e.textContent||"").trim()}function q4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function tm(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(em&&!r?(e[Cr]||(e[Cr]={}),e[Cr][t]||(e[Cr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function ZC(e,t,n=!1){if(em&&!n){if(!e[Cr]||!e[Cr][t])return;delete e[Cr][t]}else delete e.dataset[t]}function XC(e,t,n=!1){return em&&!n?!e[Cr]||!e[Cr][t]?void 0:e[Cr][t]:e.dataset[t]}function U4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!zl(e.nodeName,n)}function Fe(){if(!globalThis||!globalThis.location)return"https://example.com";if(!St())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function rr(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function qi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(ZB){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${F}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function zl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function $C(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function ex(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||YC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function tx(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function nx(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${F}-theme-${i}-${m}: ${g}; -`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:h}=$C(g);s+=`--${F}-theme-${i}-${m}-rgb: ${p}, ${f}, ${h}; +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function jB(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function mC(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Wd(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function R4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),ea({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Gs(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function xC(e,t){let n=t||e.translationService;return Gs(e,n,e.config.translationServices)?R4(e.rule):e.rule}function Ul(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var HB=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Er(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function La(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Er(e,i))return!1;if(Er(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Er(e,o)),c;function m(){return n&&n.display?!!HB.includes(n.display):Er(e,r)}}var qt=Er;function Io(e){return!!e.shadowRoot}function Ui(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function jl(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Ma(e,t=!1){let n=xs;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Fo(e,t,n=!1){let r=e?.[t];return Ma(r,n)}function Ks(e,t){return Pi(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function I4(e){let{rule:t}=e,n=qB(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function qB(e){let t=e.config.loadingTheme;return`${F}-loading-${t}`}function Hl(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Yt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,W6,t.toString());let i=I4(e);return a.append(n?" ...":lt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Ys(e,t){return e.querySelector(`[${Af}='${t}']`)}function wC(){document.querySelectorAll(`[${Af}]`).forEach(t=>{t.remove()})}function EC(){document.querySelectorAll(`.${Yt}-error`).forEach(t=>{t.remove()})}function AC(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{qi(n)&&t.push(n)}),t}function F4(e,t){return t?zB(e):VB(e)}function zB(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,b)=>{if(f=="id"&&u[b+2]=="=")return p;let y=l++;return t[`${y}`]=kC(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=L4(p),g.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function VB(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,b)=>f.tl&&!b.tl?1:!f.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,b,y)=>{if(b=="id"&&l[y+2]=="=")return f;let h=c++;return t[`${h}`]=kC(b,m),o.length>2?f.replace(b,`<${o[2]}${h}>`):f.replace(b,`${o[0]}${h}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let b=c++;return t[`${b}`]=L4(f),o.length>2?p.replace(f,`<${o[2]}${b}>`):p.replace(f,`${o[0]}${b}${o[1]}`)})})}catch(m){k.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function B4(e,t){return t?WB(e):GB(e)}function WB(e){let{text:t,variables:n}=e,r=Ul(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function GB(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function kC(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Qs(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||VC(l)||jC(l)||zC(l)||HC(l)||qC(l)||YB(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Xd(i?.trim(),n,r)}function Bo(e){return e.nodeType===Node.ELEMENT_NODE}function DC(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function LC(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ta(){return await Pt("fakeUserId","")}async function KB(){return await Pt("installedAt","")}async function Yd(e,t){let r=Se().INSTALL_FROM,a=jn(),i=await KB(),o=await ta(),s=await Qe(),u=!1,l=await nt.get(pt,null),c=!1;l&&kt(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await js(),g=await qs(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Hs();return f&&(p.abGroup=f),p}function si(e,t){let[n,r]=N();return q(()=>{!e||!t||(async()=>{let a=await _4(e,t);r(a)})()},[e,t,r]),n}async function _4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!He()&&X()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Pt("installedAt","");new Date(o).getTime()s==n),a=N4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>dt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>dt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function N4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function PC(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function RC(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function IC(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Gd[e]=setTimeout(()=>{n("")},t)})}function BC(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Hi(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Qd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Da(){return f4()?"imtAndroid":Ml()?"imtIOS":X()?"userscript":He()?"safari":Zn()?"firefox":Q0()?"chrome":"other"}function Pa(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Jd(e){return e?.getAttribute("imt-state")||""}function Ra(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Zd(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Er(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function _C(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function OC(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function NC(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var QB={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Kd={...QB};function ui(e){Kd[e]||(Kd[e]=Date.now())}var SC=!1;function UC(){if(SC)return;SC=!0;let e=Kd.initial,t={...Kd};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(re+"PerformanceData",JSON.stringify(t))}var $d=!1,JB=X();function WC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function ZB(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&GC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(zi(i,_0)){if(a===!0)return!0;continue}if(ql(i.nodeName,t.inlineTags))return!0;if(!U4(i,t))return!1}}return!0}function j4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(ql(e.nodeName,n)||U4(e,t)){if(zi(e,Y6)||ql(e.nodeName,["BR"]))return!1;if(zi(e,_0))return!0;if(U4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return ZB(e,t)}else return zi(e,_0);return!1}function GC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&zi(e,K6,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&zi(e,N6))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||ql(e.nodeName,i))}function Xd(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!YC(r)&&r.length>=n}function KC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(YC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function YC(e){for(let t=0;t127)return!1;return!0}function jC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function HC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function qC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function zC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function VC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function zi(e,t,n=!1){return H4(e,t,"1",n)}function H4(e,t,n,r=!1){return $d&&!r?e[vr]?e[vr]?.[t]===n:!1:e.dataset?.[t]===n}function Zs(e){return(e.innerText||e.textContent||"").trim()}function q4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function em(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||($d&&!r?(e[vr]||(e[vr]={}),e[vr][t]||(e[vr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function QC(e,t,n=!1){if($d&&!n){if(!e[vr]||!e[vr][t])return;delete e[vr][t]}else delete e.dataset[t]}function JC(e,t,n=!1){return $d&&!n?!e[vr]||!e[vr][t]?void 0:e[vr][t]:e.dataset[t]}function U4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!ql(e.nodeName,n)}function Ie(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Tt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function rr(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function qi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(JB){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${F}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function ql(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function ZC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function XC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||GC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function $C(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function ex(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${F}-theme-${i}-${m}: ${g}; +`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b}=ZC(g);s+=`--${F}-theme-${i}-${m}-rgb: ${p}, ${f}, ${b}; `}}}),r||(r="inherit"),e&&(s+=` .${F}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5861,45 +5861,45 @@ Translate the content to {{to}} Language: [imt-state="dual"] .${F}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?rr(e,l,F+"-user-custom-style"):a&&rr(e,"",F+"-user-custom-style")}function Vi(e,t){let r=Te().IMMERSIVE_TRANSLATE_INJECTED_CSS;rr(e,r,F+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Xs(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?rr(e,l,F+"-user-custom-style"):a&&rr(e,"",F+"-user-custom-style")}function Vi(e,t){let r=Se().IMMERSIVE_TRANSLATE_INJECTED_CSS;rr(e,r,F+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Xs(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&rr(e,s,F+"-dynamic-injected-css")}var $B=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--$B,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ue.vnode&&Ue.vnode(u),u}function z4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(le,{children:n["#services"]}):a.test(e)?d(le,{children:n["#ai"]}):d(le,{children:n[e]!=null?n[e]:t})}function _o(){let[e,t]=N(location.hash);return q(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var nm=()=>sr.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=Ly[e]||e,i=Nf[e]||e,o=Uf[e],s=jf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Wi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Uf,a="zh-CN"):n==="zh-TW"?(r=jf,a="zh-TW"):(r=Nf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function V4(e){let t=j.runtime.getURL(P6),n=new URL(t);return e&&(e.startsWith("http")||!Xn())&&n.searchParams.set("file",e),n.href}var Fa=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return k.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=L0){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return k.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw k.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function rx(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${D0}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function ax(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function rm(e,t,n,r,a,i,o){if(k.debug(`autoSyncStrategy accessToken: ${e}`),t===null){k.debug("autoSyncStrategy settings is null");return}let s=new Fa(e);try{let u=(await s.findByName(L0)).files;k.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(k.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)k.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())k.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),tl()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(Ai);if(t[Ai])return t[Ai]}static async removeAuthInfo(){return await j.storage.local.remove(Ai)}static setAuthInfo(t){return j.storage.local.set({[Ai]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(k.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await ix(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=rx(this._state,this._redirectUrl);return k.debug(this.CLASSNAME,"auth url: "+r),tl()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[rl]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(k.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let h=new URL(f.url||""),y=ax(f.url);h.pathname.startsWith("/auth-done")&&y?.access_token&&(k.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{k.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{k.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var t_="https://www.googleapis.com/oauth2/v3/tokeninfo",n_=D0,r_=Te().REDIRECT_URL;function ix(e){if(!e)throw"Authorization failure";let t=`${t_}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===n_?i(e):o("Token validation error")})})}return fetch(n).then(r)}function W4(e,t=!1){let n=r_;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Gi(e,n).auth(t)}function G4(e,t=!1){return W4(e,t).then(n=>n.access_token||null)}async function ox(){}var a_="https://www.google-analytics.com/mp/collect",i_=30,o_=100;async function s_(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>i_?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function sx(e){Ey().forEach(({measurementId:t,apiSecret:n})=>{ux({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function $s(e,t,n){return ux({measurement_id:Ty,api_secret:wy,page_title:e,page_location:t,time:n})}async function ux(e){try{let t=Te(),n=Fi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await _i(),i=`${a_}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await s_(),engagement_time_msec:e.time||o_,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){k.error(t)}}var Vl=new Map;function u_(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function K4(e){let t=await m_(),n=Date.now();if(t){if(Vl.has(e))return;let r=await j.tabs.get(e),a=u_(r.url);if(!a)return;Vl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}lx(e)}function lx(e){if(Vl.has(e)){let t=Vl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Vl.delete(e),c_(t.hostname,n)}}async function l_(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Wl().sendMessage(`content_script:main:${n}`,e)}function c_(e,t){$s(`${e}(video)`,e,t),d_(t)}var am="videoWatchTimeDay";async function d_(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(am,null);if(!a){await Qe(am,{day:r,time:e});return}if(a.day!==r){$s("day-video."+et,"day-video."+et,a.time),await Qe(am,{day:r,time:e});return}let i={day:r,time:a.time+e};await Qe(am,i)}catch(t){k.error(t)}}async function m_(){try{return await l_({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Gl=new Map;async function cx(e){let t=await Y4(),n=Date.now();if(t=="Translated"){if(Gl.has(e))return;let r=await j.tabs.get(e),a=g_(r.url);if(!a)return;Gl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}p_(e)}function g_(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function p_(e){if(Gl.has(e)){let t=Gl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Gl.delete(e),h_(t.hostname,n)}}async function f_(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Wl().sendMessage(`content_script:main:${n}`,e)}function h_(e,t){$s(e,e,t),b_(t)}async function Y4(){try{return await f_({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var im="readTimeDay";async function b_(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(im,null);if(!a){await Qe(im,{day:r,time:e});return}if(a.day!==r){$s("day."+et,"day."+et,a.time),await Qe(im,{day:r,time:e});return}let i={day:r,time:a.time+e};await Qe(im,i)}catch(t){k.error(t)}}var om,y_=async function(e,t){let{method:n,data:r}=e;if(k.debug("background received message",n,r||" "),n==="mock")await tt(150);else{if(n==="queryParagraphCache")return od(r);if(n==="setParagraphCache")return id(r);if(n==="calculateSize")return sd();if(n==="fetch")return Or(r);if(n==="getConfig")return Je();if(n==="getLocalConfig")return Rt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=Te().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=Te().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=Te().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=Te().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=V4(a);(He()||!a)&&(i=Te().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return Dt(r);if(n=="getUserConfig")return ln();if(n=="setUserConfig")return ur(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await dx(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return ae(o.languages[0].language);for(let s of o.languages){let u=ae(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return k.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await dx(j.tabs.detectLanguage(t.id),1500,"auto");return ae(a)}catch(a){return k.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await ox()}catch(a){k.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(eu({}),v_(a,i)),a&&cx(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Ri.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")sx(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&K4(a)}else n==="updateToggleTranslateContextMenu"?eu(r):n==="updateImageMenu"&&Oo()}}};function Wl(){return om||(om=new wa("background",!1).getConnection("main",y_),om)}function sm(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function v_(e,t){if(He())return;let n=await C_();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:sm("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:sm("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:sm("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:sm("icons",n)}))}async function C_(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function dx(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function x_(){return navigator.userAgent.indexOf("Mac")!==-1}var S_="";function gx(){return S_||globalThis.navigator.userAgent}function T_(){let e=gx();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var mx={Alt:"\u2325"};function Ba(e=""){return x_()?Object.keys(mx).reduce((t,n)=>t.replace(n,mx[n]),e):e}var w_="";function E_(){return w_||globalThis.location.hostname}function px(){try{let e=E_(),t=new URL(Pf);if(e===t.hostname||!T_())return!0;let n=/Version\/([\d\.]+)/,r=gx().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return k.error("Error checking if options supported",e),!0}}function ci(e,t){return X(t)?!1:fx(e.config,e.isPro)}function fx(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function hx(){if(X())return!1;let e=await Je(),t=await As();return fx(e,t)}function um(e){let t=La();return!(e?.platforms&&!e.platforms.includes(t))}function Q4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function bx(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function A_(){return J0()&&!He()}var Kl=A_()?["action"]:["browser_action","page_action"],yx="",k_=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Kl]},{id:ol,contexts:["image"]},{id:il,contexts:Kl},{id:sl,contexts:Kl},{id:ul,contexts:Kl},{id:H6,contexts:Kl}];async function Yl(e){e=e||await Je(),k.debug("update ContextMenu",e);for(let t of k_){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function eu({targetLanguage:e,text:t}){let n=await Je(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)yx=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await Y4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Ba(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),yx=""}j.contextMenus.update(r,{title:i,visible:a})}async function Oo(){try{let e=await hx();j.contextMenus.update(ol,{visible:e})}catch{}}function vx(e,t){let n=t;n||(n=Te().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${F}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function lm(e,t,n,r,a){let i=t.original||t,o=fC(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let b=0;b0&&i[b].textContent.length0&&(x=m[b-1].text),bf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function Cx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function xx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=Ps(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=jl(e.targetText):e.targetText=lt.sanitize(jl(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let f=0;f/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=ad(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=vC(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` -`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let m={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},g=Fo(t.config.translationServices,t.translationService);if(g.length>2){let p=g[2];return D_({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=Sx(m,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function J4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function D_(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),x=p[C-1]===" ",w=p[C+v.length]===" ",S=v.match(h);if(!S)return v;let T=S[1],A=Number(T);if(isNaN(A))return v;let D=o[Number(A)];if(D&&D.type==="element"){let M=lt.sanitize(D.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return x||(M=" "+M),w||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return x||(M=" "+M),w||(M=M+" "),M}else k.error("variable type not supported",D,v);return v}));let y=tu(l,n,r||[],s),b=nu(l);return X4({targetWrapperTag:a,innerClassList:b,classList:y,html:p,targetElementEffectAttributeName:Cs,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function X4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function Z4(e){let t=e[e.length-1];return t?t.text:""}function tu(e,t,n=[],r){let a=["notranslate"];return r&&a.push(ey),e&&(a.push(`${F}-target-translation-theme-${e}`),t?a.push(`${Df}-theme-${e}`):a.push(`${kf}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Df):a.push(kf),a}function nu(e){let t=["notranslate",U0];return e&&t.push(`${F}-target-translation-theme-${e}-inner`),t}function Sx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Fo(n.config.translationServices,n.translationService,!0),g="afterend",p=m[0],f=m[1],h=`${p}(\\d+)${f}`,y=new RegExp(h,"g"),b=u;o.length>0&&(b=b.replace(y,x=>{let w=b.indexOf(x),S=b[w-1]===" ",T=b[w+x.length]===" ",D=x.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(D);if(isNaN(M))return x;let I=o[M];if(I&&I.type==="element"){let P=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return S||(P=" "+P),T||(P=P+" "),P}else k.error("variable type not supported",I,x);return x}));let v=tu(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push($6);let C=nu(i);return X4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:b,targetElementEffectAttributeName:Cs,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function rt(e){bf({type:"success",text:e})}function bt(e){bf({type:"error",text:e})}var $4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function cm(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");q(()=>{$4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=ue(g=>{let p=typeof g=="function"?g(i):g;k.debug("new settings",p),$4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function dm(e,t,n){let r=[];return function(){let[i,o,s,u]=cm(e,t,n),l=ue(c=>{for(let m of r)m(c)},[]);return q(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function Tx(e,t){return dm(e,t,"local")}function wx(e,t){return dm(e,t,"sync")}var L_="userConfig",M_=null,P_=wx(L_,M_);function Oe(e){let[t,n,r,a]=P_(),[i,o]=N();q(()=>{(async function(){let u=await qd();o(u)})()},[t]);let s=ue(async u=>{let l=typeof u=="function"?u(i):u;l&&eh(l);let{userConfig:c,promptPool:m,objectPool:g}=await k4(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(m).length,m),k.debug("objectPool size",JSON.stringify(g).length,g),await Jr(jd,m),await Jr(Hd,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function eh(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Ie=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=y5(a,c,m)}catch(y){if(r)for(let b=0;by));let g=[],p=[],f=(y,b,v)=>{let C="";if(b.translatedTexts&&b.translatedTexts[0]&&(C=b.translatedTexts[0]),p[y]||(p[y]=b,p[y].translatedTexts=Array(b.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let S=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,b?.callback?.(S,null,b.sentence);return}p[y].translatedTexts[b.partIndex]=C;let x=p[y],w=0;for(let S=0;S{let w=b.from;if(b.fromByClient&&b.fromByClient!=="auto"&&(w=b.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:b.tempSentences.map(T=>T.text),forces:b.tempSentences.map(T=>T.force),xpaths:b.tempSentences.map(T=>T.xpath||""),from:w,to:b.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:b.tempSentences};{let S=X6;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(S=this.serviceConfig.translationTextSeparator);let T=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(T=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Pa(this.serviceConfig);if(b.tempSentences.forEach((U,z)=>{let Y=F4({text:U.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:b.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);U.force!==!0&&(Y&&Y.text&&Y.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:b.tempSentences,text:U,from:w,to:b.to})}let M="";T&&T.length>=2?M=A.map((U,z)=>{let{item:Y}=U;return z===A.length-1?Y.text:Y.text+T[0]+(z+1)+T[1]}).join(""):M=A.map(({item:U})=>U.text).join(S);let I=await this.translate({text:M,from:w,to:b.to,url:v,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:b.inArticleContext}),{text:P}=I,R=[];if(T&&T.length>=2){let U=`${T[0]}\\d+${T[1]}`;T&&T.length>=3&&(U=T[2]);let z=new RegExp(U,"g");R=P.split(z)}else R=P.split(S);let L=[];if(R.length>A.length){for(let U=0;UU.text);return D=Pa(this.serviceConfig,!0),L.forEach((U,z)=>{let Y=A[z],ee=Y.index,Re=Y.variables||{};Object.keys(Re).length>0&&(U=B4({text:U,delimiters:D,variables:Re},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ee]=U}),{sourceTempSentences:b.tempSentences,text:_,from:I.from,to:I.to}}};g.push(x().then(w=>{let{text:S,sourceTempSentences:T}=w;for(let A=0;A{if(w instanceof V&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let S=0;S{let b=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(b=y.translatedTexts.join("")),{...y.sentence,text:b}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Pa(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=F4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Pa(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=B4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Lt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var ru="input is invalid type",th=typeof window=="object",Ki=th?window:{};Ki.JS_SHA256_NO_WINDOW&&(th=!1);var R_=!th&&typeof self=="object",I_=!Ki.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;I_?Ki=global:R_&&(Ki=self);var Wae=!Ki.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Gae=typeof define=="function"&&define.amd,Ql=!Ki.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ye="0123456789abcdef".split(""),F_=[-2147483648,8388608,32768,128],ra=[24,16,8,0],mm=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],gm=["hex","array","digest","arrayBuffer"],Sn=[];(Ki.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Ql&&(Ki.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ex=function(e,t){return function(n){return new Tn(t,!0).update(n)[e]()}},kx=function(e){var t=Ex("hex",e);t.create=function(){return new Tn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Tn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=F_[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Tn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,h,y,b,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,h=a&i^~a&o,p=s+m+h+mm[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),b=r&e,g=b^r&t^y,h=s&a^~s&i,p=o+m+h+mm[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^b,h=o&s^~o&a,p=i+m+h+mm[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,h=i&o^~i&s,p=a+m+h+mm[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Tn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ye[e>>28&15]+ye[e>>24&15]+ye[e>>20&15]+ye[e>>16&15]+ye[e>>12&15]+ye[e>>8&15]+ye[e>>4&15]+ye[e&15]+ye[t>>28&15]+ye[t>>24&15]+ye[t>>20&15]+ye[t>>16&15]+ye[t>>12&15]+ye[t>>8&15]+ye[t>>4&15]+ye[t&15]+ye[n>>28&15]+ye[n>>24&15]+ye[n>>20&15]+ye[n>>16&15]+ye[n>>12&15]+ye[n>>8&15]+ye[n>>4&15]+ye[n&15]+ye[r>>28&15]+ye[r>>24&15]+ye[r>>20&15]+ye[r>>16&15]+ye[r>>12&15]+ye[r>>8&15]+ye[r>>4&15]+ye[r&15]+ye[a>>28&15]+ye[a>>24&15]+ye[a>>20&15]+ye[a>>16&15]+ye[a>>12&15]+ye[a>>8&15]+ye[a>>4&15]+ye[a&15]+ye[i>>28&15]+ye[i>>24&15]+ye[i>>20&15]+ye[i>>16&15]+ye[i>>12&15]+ye[i>>8&15]+ye[i>>4&15]+ye[i&15]+ye[o>>28&15]+ye[o>>24&15]+ye[o>>20&15]+ye[o>>16&15]+ye[o>>12&15]+ye[o>>8&15]+ye[o>>4&15]+ye[o&15];return this.is224||(u+=ye[s>>28&15]+ye[s>>24&15]+ye[s>>20&15]+ye[s>>16&15]+ye[s>>12&15]+ye[s>>8&15]+ye[s>>4&15]+ye[s&15]),u};Tn.prototype.toString=Tn.prototype.hex;Tn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Tn.prototype.array=Tn.prototype.digest;Tn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function pm(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(ru);if(Ql&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Ql||!ArrayBuffer.isView(e)))throw new Error(ru)}else throw new Error(ru);e.length>64&&(e=new Tn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Tn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}pm.prototype=new Tn;pm.prototype.finalize=function(){if(Tn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Tn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Tn.prototype.finalize.call(this)}};var au=kx();au.sha256=au;au.sha224=kx(!0);au.sha256.hmac=Dx();au.sha224.hmac=Dx(!0);var Lx=au;var Mx=Lx.sha256;function dr(e){return Promise.resolve(Mx(e))}function iu(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function kr(e,t){let n=Mx.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Px(e,t){let n=await kr(e,t);return iu(n)}async function fm(e,t){let n=B_(t),r=await kr(e,n);return iu(r)}function B_(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Rx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Jl=class e extends Ie{static langMap=new Map(Rx);maxTextGroupLength=50;static langMapReverse=new Map(Rx.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await dr(a)].join(` +`+t.rule.additionalInjectedCss)),s&&rr(e,s,F+"-dynamic-injected-css")}var XB=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--XB,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ue.vnode&&Ue.vnode(u),u}function z4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(le,{children:n["#services"]}):a.test(e)?d(le,{children:n["#ai"]}):d(le,{children:n[e]!=null?n[e]:t})}function _o(){let[e,t]=N(location.hash);return q(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var tm=()=>ur.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=ky[e]||e,i=Nf[e]||e,o=Uf[e],s=jf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Wi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Uf,a="zh-CN"):n==="zh-TW"?(r=jf,a="zh-TW"):(r=Nf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function V4(e){let t=j.runtime.getURL(L6),n=new URL(t);return e&&(e.startsWith("http")||!Zn())&&n.searchParams.set("file",e),n.href}var Ia=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return k.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=D0){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return k.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw k.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function tx(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${k0}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function nx(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function nm(e,t,n,r,a,i,o){if(k.debug(`autoSyncStrategy accessToken: ${e}`),t===null){k.debug("autoSyncStrategy settings is null");return}let s=new Ia(e);try{let u=(await s.findByName(D0)).files;k.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(k.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)k.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())k.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),tl()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(Ai);if(t[Ai])return t[Ai]}static async removeAuthInfo(){return await j.storage.local.remove(Ai)}static setAuthInfo(t){return j.storage.local.set({[Ai]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(k.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await rx(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=tx(this._state,this._redirectUrl);return k.debug(this.CLASSNAME,"auth url: "+r),tl()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[rl]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(k.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let b=new URL(f.url||""),y=nx(f.url);b.pathname.startsWith("/auth-done")&&y?.access_token&&(k.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{k.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{k.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var e_="https://www.googleapis.com/oauth2/v3/tokeninfo",t_=k0,n_=Se().REDIRECT_URL;function rx(e){if(!e)throw"Authorization failure";let t=`${e_}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===t_?i(e):o("Token validation error")})})}return fetch(n).then(r)}function W4(e,t=!1){let n=n_;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Gi(e,n).auth(t)}function G4(e,t=!1){return W4(e,t).then(n=>n.access_token||null)}async function ax(){}var r_="https://www.google-analytics.com/mp/collect",a_=30,i_=100;async function o_(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>a_?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function ix(e){Sy().forEach(({measurementId:t,apiSecret:n})=>{ox({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function $s(e,t,n){return ox({measurement_id:xy,api_secret:Ty,page_title:e,page_location:t,time:n})}async function ox(e){try{let t=Se(),n=Fi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await _i(),i=`${r_}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await o_(),engagement_time_msec:e.time||i_,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){k.error(t)}}var zl=new Map;function s_(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function K4(e){let t=await d_(),n=Date.now();if(t){if(zl.has(e))return;let r=await j.tabs.get(e),a=s_(r.url);if(!a)return;zl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}sx(e)}function sx(e){if(zl.has(e)){let t=zl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),zl.delete(e),l_(t.hostname,n)}}async function u_(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Vl().sendMessage(`content_script:main:${n}`,e)}function l_(e,t){$s(`${e}(video)`,e,t),c_(t)}var rm="videoWatchTimeDay";async function c_(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(rm,null);if(!a){await rt(rm,{day:r,time:e});return}if(a.day!==r){$s("day-video."+et,"day-video."+et,a.time),await rt(rm,{day:r,time:e});return}let i={day:r,time:a.time+e};await rt(rm,i)}catch(t){k.error(t)}}async function d_(){try{return await u_({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Wl=new Map;async function ux(e){let t=await Y4(),n=Date.now();if(t=="Translated"){if(Wl.has(e))return;let r=await j.tabs.get(e),a=m_(r.url);if(!a)return;Wl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}g_(e)}function m_(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function g_(e){if(Wl.has(e)){let t=Wl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Wl.delete(e),f_(t.hostname,n)}}async function p_(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Vl().sendMessage(`content_script:main:${n}`,e)}function f_(e,t){$s(e,e,t),h_(t)}async function Y4(){try{return await p_({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var am="readTimeDay";async function h_(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(am,null);if(!a){await rt(am,{day:r,time:e});return}if(a.day!==r){$s("day."+et,"day."+et,a.time),await rt(am,{day:r,time:e});return}let i={day:r,time:a.time+e};await rt(am,i)}catch(t){k.error(t)}}var im,b_=async function(e,t){let{method:n,data:r}=e;if(k.debug("background received message",n,r||" "),n==="mock")await tt(150);else{if(n==="queryParagraphCache")return id(r);if(n==="setParagraphCache")return ad(r);if(n==="calculateSize")return od();if(n==="fetch")return _r(r);if(n==="getConfig")return Qe();if(n==="getLocalConfig")return Rt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=Se().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=Se().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=Se().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=Se().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=V4(a);(He()||!a)&&(i=Se().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return Dt(r);if(n=="getUserConfig")return ln();if(n=="setUserConfig")return lr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await lx(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return ae(o.languages[0].language);for(let s of o.languages){let u=ae(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return k.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await lx(j.tabs.detectLanguage(t.id),1500,"auto");return ae(a)}catch(a){return k.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await ax()}catch(a){k.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(eu({}),y_(a,i)),a&&ux(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Ri.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")ix(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&K4(a)}else n==="updateToggleTranslateContextMenu"?eu(r):n==="updateImageMenu"&&Oo()}}};function Vl(){return im||(im=new Sa("background",!1).getConnection("main",b_),im)}function om(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function y_(e,t){if(He())return;let n=await v_();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:om("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:om("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:om("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:om("icons",n)}))}async function v_(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function lx(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function C_(){return navigator.userAgent.indexOf("Mac")!==-1}var x_="";function dx(){return x_||globalThis.navigator.userAgent}function T_(){let e=dx();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var cx={Alt:"\u2325"};function Fa(e=""){return C_()?Object.keys(cx).reduce((t,n)=>t.replace(n,cx[n]),e):e}var S_="";function w_(){return S_||globalThis.location.hostname}function mx(){try{let e=w_(),t=new URL(Pf);if(e===t.hostname||!T_())return!0;let n=/Version\/([\d\.]+)/,r=dx().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return k.error("Error checking if options supported",e),!0}}function li(e,t){return X(t)?!1:gx(e.config,e.isPro)}function gx(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function px(){if(X())return!1;let e=await Qe(),t=await As();return gx(e,t)}function sm(e){let t=Da();return!(e?.platforms&&!e.platforms.includes(t))}function Q4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function fx(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function E_(){return Q0()&&!He()}var Gl=E_()?["action"]:["browser_action","page_action"],hx="",A_=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Gl]},{id:ol,contexts:["image"]},{id:il,contexts:Gl},{id:sl,contexts:Gl},{id:ul,contexts:Gl},{id:U6,contexts:Gl}];async function Kl(e){e=e||await Qe(),k.debug("update ContextMenu",e);for(let t of A_){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function eu({targetLanguage:e,text:t}){let n=await Qe(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)hx=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await Y4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Fa(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),hx=""}j.contextMenus.update(r,{title:i,visible:a})}async function Oo(){try{let e=await px();j.contextMenus.update(ol,{visible:e})}catch{}}function bx(e,t){let n=t;n||(n=Se().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${F}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function um(e,t,n,r,a){let i=t.original||t,o=gC(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let h=0;h0&&i[h].textContent.length0&&(x=m[h-1].text),hf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function yx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function vx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=Ps(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=Ul(e.targetText):e.targetText=lt.sanitize(Ul(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let f=0;f/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=rd(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=bC(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` +`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let m={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},g=Fo(t.config.translationServices,t.translationService);if(g.length>2){let p=g[2];return k_({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=Cx(m,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function J4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function k_(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),x=p[C-1]===" ",w=p[C+v.length]===" ",T=v.match(b);if(!T)return v;let S=T[1],A=Number(S);if(isNaN(A))return v;let D=o[Number(A)];if(D&&D.type==="element"){let M=lt.sanitize(D.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return x||(M=" "+M),w||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return x||(M=" "+M),w||(M=M+" "),M}else k.error("variable type not supported",D,v);return v}));let y=tu(l,n,r||[],s),h=nu(l);return X4({targetWrapperTag:a,innerClassList:h,classList:y,html:p,targetElementEffectAttributeName:Cs,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function X4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function Z4(e){let t=e[e.length-1];return t?t.text:""}function tu(e,t,n=[],r){let a=["notranslate"];return r&&a.push(X6),e&&(a.push(`${F}-target-translation-theme-${e}`),t?a.push(`${Df}-theme-${e}`):a.push(`${kf}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Df):a.push(kf),a}function nu(e){let t=["notranslate",N0];return e&&t.push(`${F}-target-translation-theme-${e}-inner`),t}function Cx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Fo(n.config.translationServices,n.translationService,!0),g="afterend",p=m[0],f=m[1],b=`${p}(\\d+)${f}`,y=new RegExp(b,"g"),h=u;o.length>0&&(h=h.replace(y,x=>{let w=h.indexOf(x),T=h[w-1]===" ",S=h[w+x.length]===" ",D=x.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(D);if(isNaN(M))return x;let I=o[M];if(I&&I.type==="element"){let P=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return T||(P=" "+P),S||(P=P+" "),P}else k.error("variable type not supported",I,x);return x}));let v=tu(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(Z6);let C=nu(i);return X4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:h,targetElementEffectAttributeName:Cs,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function at(e){hf({type:"success",text:e})}function bt(e){hf({type:"error",text:e})}var $4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function lm(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");q(()=>{$4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=ue(g=>{let p=typeof g=="function"?g(i):g;k.debug("new settings",p),$4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function cm(e,t,n){let r=[];return function(){let[i,o,s,u]=lm(e,t,n),l=ue(c=>{for(let m of r)m(c)},[]);return q(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function xx(e,t){return cm(e,t,"local")}function Tx(e,t){return cm(e,t,"sync")}var D_="userConfig",L_=null,M_=Tx(D_,L_);function Ne(e){let[t,n,r,a]=M_(),[i,o]=N();q(()=>{(async function(){let u=await Hd();o(u)})()},[t]);let s=ue(async u=>{let l=typeof u=="function"?u(i):u;l&&eh(l);let{userConfig:c,promptPool:m,objectPool:g}=await k4(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(m).length,m),k.debug("objectPool size",JSON.stringify(g).length,g),await Qr(Ud,m),await Qr(jd,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function eh(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Fe=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=h5(a,c,m)}catch(y){if(r)for(let h=0;hy));let g=[],p=[],f=(y,h,v)=>{let C="";if(h.translatedTexts&&h.translatedTexts[0]&&(C=h.translatedTexts[0]),p[y]||(p[y]=h,p[y].translatedTexts=Array(h.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let T=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,h?.callback?.(T,null,h.sentence);return}p[y].translatedTexts[h.partIndex]=C;let x=p[y],w=0;for(let T=0;T{let w=h.from;if(h.fromByClient&&h.fromByClient!=="auto"&&(w=h.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:h.tempSentences.map(S=>S.text),forces:h.tempSentences.map(S=>S.force),xpaths:h.tempSentences.map(S=>S.xpath||""),from:w,to:h.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:h.tempSentences};{let T=J6;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(T=this.serviceConfig.translationTextSeparator);let S=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(S=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Ma(this.serviceConfig);if(h.tempSentences.forEach((U,z)=>{let Y=F4({text:U.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:h.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);U.force!==!0&&(Y&&Y.text&&Y.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:h.tempSentences,text:U,from:w,to:h.to})}let M="";S&&S.length>=2?M=A.map((U,z)=>{let{item:Y}=U;return z===A.length-1?Y.text:Y.text+S[0]+(z+1)+S[1]}).join(""):M=A.map(({item:U})=>U.text).join(T);let I=await this.translate({text:M,from:w,to:h.to,url:v,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:h.inArticleContext}),{text:P}=I,R=[];if(S&&S.length>=2){let U=`${S[0]}\\d+${S[1]}`;S&&S.length>=3&&(U=S[2]);let z=new RegExp(U,"g");R=P.split(z)}else R=P.split(T);let L=[];if(R.length>A.length){for(let U=0;UU.text);return D=Ma(this.serviceConfig,!0),L.forEach((U,z)=>{let Y=A[z],ee=Y.index,Re=Y.variables||{};Object.keys(Re).length>0&&(U=B4({text:U,delimiters:D,variables:Re},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ee]=U}),{sourceTempSentences:h.tempSentences,text:_,from:I.from,to:I.to}}};g.push(x().then(w=>{let{text:T,sourceTempSentences:S}=w;for(let A=0;A{if(w instanceof V&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let T=0;T{let h=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(h=y.translatedTexts.join("")),{...y.sentence,text:h}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Ma(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=F4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Ma(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=B4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ke({text:t,minLength:18,pageLangs:[Lt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var ru="input is invalid type",th=typeof window=="object",Ki=th?window:{};Ki.JS_SHA256_NO_WINDOW&&(th=!1);var P_=!th&&typeof self=="object",R_=!Ki.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;R_?Ki=global:P_&&(Ki=self);var Gae=!Ki.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Kae=typeof define=="function"&&define.amd,Yl=!Ki.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ye="0123456789abcdef".split(""),I_=[-2147483648,8388608,32768,128],na=[24,16,8,0],dm=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],mm=["hex","array","digest","arrayBuffer"],Tn=[];(Ki.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Yl&&(Ki.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Sx=function(e,t){return function(n){return new Sn(t,!0).update(n)[e]()}},Ex=function(e){var t=Sx("hex",e);t.create=function(){return new Sn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Sn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=I_[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Sn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,b,y,h,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,b=a&i^~a&o,p=s+m+b+dm[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),h=r&e,g=h^r&t^y,b=s&a^~s&i,p=o+m+b+dm[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^h,b=o&s^~o&a,p=i+m+b+dm[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,b=i&o^~i&s,p=a+m+b+dm[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Sn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ye[e>>28&15]+ye[e>>24&15]+ye[e>>20&15]+ye[e>>16&15]+ye[e>>12&15]+ye[e>>8&15]+ye[e>>4&15]+ye[e&15]+ye[t>>28&15]+ye[t>>24&15]+ye[t>>20&15]+ye[t>>16&15]+ye[t>>12&15]+ye[t>>8&15]+ye[t>>4&15]+ye[t&15]+ye[n>>28&15]+ye[n>>24&15]+ye[n>>20&15]+ye[n>>16&15]+ye[n>>12&15]+ye[n>>8&15]+ye[n>>4&15]+ye[n&15]+ye[r>>28&15]+ye[r>>24&15]+ye[r>>20&15]+ye[r>>16&15]+ye[r>>12&15]+ye[r>>8&15]+ye[r>>4&15]+ye[r&15]+ye[a>>28&15]+ye[a>>24&15]+ye[a>>20&15]+ye[a>>16&15]+ye[a>>12&15]+ye[a>>8&15]+ye[a>>4&15]+ye[a&15]+ye[i>>28&15]+ye[i>>24&15]+ye[i>>20&15]+ye[i>>16&15]+ye[i>>12&15]+ye[i>>8&15]+ye[i>>4&15]+ye[i&15]+ye[o>>28&15]+ye[o>>24&15]+ye[o>>20&15]+ye[o>>16&15]+ye[o>>12&15]+ye[o>>8&15]+ye[o>>4&15]+ye[o&15];return this.is224||(u+=ye[s>>28&15]+ye[s>>24&15]+ye[s>>20&15]+ye[s>>16&15]+ye[s>>12&15]+ye[s>>8&15]+ye[s>>4&15]+ye[s&15]),u};Sn.prototype.toString=Sn.prototype.hex;Sn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Sn.prototype.array=Sn.prototype.digest;Sn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function gm(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(ru);if(Yl&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Yl||!ArrayBuffer.isView(e)))throw new Error(ru)}else throw new Error(ru);e.length>64&&(e=new Sn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Sn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}gm.prototype=new Sn;gm.prototype.finalize=function(){if(Sn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sn.prototype.finalize.call(this)}};var au=Ex();au.sha256=au;au.sha224=Ex(!0);au.sha256.hmac=Ax();au.sha224.hmac=Ax(!0);var kx=au;var Dx=kx.sha256;function dr(e){return Promise.resolve(Dx(e))}function iu(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Ar(e,t){let n=Dx.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Lx(e,t){let n=await Ar(e,t);return iu(n)}async function pm(e,t){let n=F_(t),r=await Ar(e,n);return iu(r)}function F_(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Mx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Ql=class e extends Fe{static langMap=new Map(Mx);maxTextGroupLength=50;static langMapReverse=new Map(Mx.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await dr(a)].join(` `),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await dr(c)].join(` -`),p=await Px(m,`TC3${n}`),f=await fm(i,p),h=await fm("tc3_request",f),y=await fm(g,h),b=await $({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new V(b.Response.Error.Message);return b}};var Ix=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],__={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Zl=class e extends Ie{static langMap=new Map(Ix);static langMapReverse=new Map(Ix.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await $({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:__,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var Fx=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Xl=class e extends Ie{static langMap=new Map(Fx);static langMapReverse=new Map(Fx.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await $({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function O_(e,t){return t?e+(t-e%t):e}function N_(e,t){return e.split(t).length-1}function nh(e){let t=Date.now(),n=1;for(let r of e)n+=N_(r,"i");return O_(t,n)}function U_(e,t){return Math.floor(Math.random()*(t-e+1))+e}function rh(){return U_(1e6,1e8)}var ah="https://www2.deepl.com/jsonrpc",ih="auto",Bx=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function j_(e=Bx){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function oh(e){return j_()[e.toLowerCase()]}var H_={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function q_(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function z_(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function V_(e,t,n,r,a,i,o){let s=rh(),u=z_(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=nh(t);let c=await $({retry:2,method:"POST",url:e,body:q_(u),headers:H_}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function _x(e,t,n,r=ih,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:V_(e,t,oh(n),oh(r)??"auto",a,i,o):{text:[],from:r,to:n}}var Ox=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ou=class e extends Ie{static langMap=new Map(Ox);static langMapReverse=new Map(Ox.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=ah;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Bt(ah,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await _x(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var $l=class e extends Ie{static langMap=new Map(d4);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=oi.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Te(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=Nx());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await $({url:yd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Te(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=Nx()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await $({url:yd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new V(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return oi.detectLanguageRemotelyByTransmart(t)}};function Nx(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function sh(){return Math.random()>=.001}var su=class extends Ie{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!sh())throw new V("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await z5(),!sh())throw new V("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var jx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],uh=new Map(jx),Ux=new Map(jx.map(([e,t])=>[t,e])),lh=class e extends Ie{static langMap=uh;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new V("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await $({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:uh.get(r)||"auto",target_lang:uh.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:Ux.get(o.source_lang),to:Ux.get(o.target_lang)}}else throw new V(i.msg)}},hm=lh;var ch="https://{s}bing.com",Wx=ch+"/translator",W_=ch+"/ttranslatev3",G_=ch+"/tspellcheckv3",bm="bingGlobalConfig",Gx=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Hx=new Map(Gx),qx=new Map(Gx.map(([e,t])=>[t,e])),zx=1e3,aa,uu;function dh(e,t){return e.replace("{s}",t?t+".":"")}async function K_(){if(!aa){let n=await j.storage.local.get(bm);return n&&(aa=n[bm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=aa;return Date.now()-e>t}async function Vx(){let e,t,n,r,a,i,o,s,u,l;try{let c=dh(Wx,e),m=await $({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return aa={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[bm]:aa}),aa}function Y_(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=aa;return dh(e?G_:W_,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+aa.count++:"")}function Q_(e,t,n,r){let{token:a,key:i}=aa,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function Kx(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>zx)throw new Error(`The supported maximum length of text is ${zx}. Please shorten the text.`);uu||(uu=Vx()),await uu,await K_()&&(uu=Vx(),await uu),t=t||"auto",n=n||"zh-CN",t=Hx.get(t)||t,n=Hx.get(n)||n;let a=Y_(!1),i=Q_(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:dh(Wx,aa.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await $({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(aa=null,uu=null,await j.storage.local.remove(bm),c.ShowCaptcha)throw new Error(` +`),p=await Lx(m,`TC3${n}`),f=await pm(i,p),b=await pm("tc3_request",f),y=await pm(g,b),h=await $({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new V(h.Response.Error.Message);return h}};var Px=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],B_={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Jl=class e extends Fe{static langMap=new Map(Px);static langMapReverse=new Map(Px.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await $({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:B_,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var Rx=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Zl=class e extends Fe{static langMap=new Map(Rx);static langMapReverse=new Map(Rx.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await $({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function __(e,t){return t?e+(t-e%t):e}function O_(e,t){return e.split(t).length-1}function nh(e){let t=Date.now(),n=1;for(let r of e)n+=O_(r,"i");return __(t,n)}function N_(e,t){return Math.floor(Math.random()*(t-e+1))+e}function rh(){return N_(1e6,1e8)}var ah="https://www2.deepl.com/jsonrpc",ih="auto",Ix=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function U_(e=Ix){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function oh(e){return U_()[e.toLowerCase()]}var j_={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function H_(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function q_(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function z_(e,t,n,r,a,i,o){let s=rh(),u=q_(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=nh(t);let c=await $({retry:2,method:"POST",url:e,body:H_(u),headers:j_}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function Fx(e,t,n,r=ih,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:z_(e,t,oh(n),oh(r)??"auto",a,i,o):{text:[],from:r,to:n}}var Bx=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ou=class e extends Fe{static langMap=new Map(Bx);static langMapReverse=new Map(Bx.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=ah;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Bt(ah,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await Fx(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var Xl=class e extends Fe{static langMap=new Map(d4);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ii.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Se(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=_x());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await $({url:bd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Se(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=_x()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await $({url:bd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new V(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ii.detectLanguageRemotelyByTransmart(t)}};function _x(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function sh(){return Math.random()>=.001}var su=class extends Fe{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!sh())throw new V("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await H5(),!sh())throw new V("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var Nx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],uh=new Map(Nx),Ox=new Map(Nx.map(([e,t])=>[t,e])),lh=class e extends Fe{static langMap=uh;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new V("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await $({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:uh.get(r)||"auto",target_lang:uh.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:Ox.get(o.source_lang),to:Ox.get(o.target_lang)}}else throw new V(i.msg)}},fm=lh;var ch="https://{s}bing.com",zx=ch+"/translator",V_=ch+"/ttranslatev3",W_=ch+"/tspellcheckv3",hm="bingGlobalConfig",Vx=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Ux=new Map(Vx),jx=new Map(Vx.map(([e,t])=>[t,e])),Hx=1e3,ra,uu;function dh(e,t){return e.replace("{s}",t?t+".":"")}async function G_(){if(!ra){let n=await j.storage.local.get(hm);return n&&(ra=n[hm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=ra;return Date.now()-e>t}async function qx(){let e,t,n,r,a,i,o,s,u,l;try{let c=dh(zx,e),m=await $({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return ra={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[hm]:ra}),ra}function K_(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=ra;return dh(e?W_:V_,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+ra.count++:"")}function Y_(e,t,n,r){let{token:a,key:i}=ra,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function Wx(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Hx)throw new Error(`The supported maximum length of text is ${Hx}. Please shorten the text.`);uu||(uu=qx()),await uu,await G_()&&(uu=qx(),await uu),t=t||"auto",n=n||"zh-CN",t=Ux.get(t)||t,n=Ux.get(n)||n;let a=K_(!1),i=Y_(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:dh(zx,ra.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await $({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(ra=null,uu=null,await j.storage.local.remove(hm),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:qx.get(g.language),to:qx.get(m.to)}}function Yi(e){return e!=null}function Jx(e,t,n){return`${e.type}#${t}#${n}`}function Zx(e,t,n,r,a){return{body:a,id:r,type:Jx(e,t,n)}}function J_(e,t,n,r){return{id:n,response:r,type:Jx(e,"ask",t)}}function Xx(e,t,n,r){if(Yi(r)){let a=r.type;if(Yi(a)&&Yi(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function Z_(e,t,n){if(Yi(n)){let r=n.type;if(Yi(r)&&Yi(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function X_(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function $_(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;Z_(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function eO(e,t,n,r){let a=i=>{let o=i.data;Xx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function Yx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Xx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(J_(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function tO(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(Zx(t,"tell",n,i,r),a)}async function Qx(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await $_(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(Zx(n,"ask",r,s,a),i),u}var Qi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;Yx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Yi(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Qx(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(eO(this.thisWindow,this.protocol,t,n))}tell(t,n){tO(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Yx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Qx(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){X_(this.listeners)}};var $x;async function e8(){if(St()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qi.iframe(H0,"*",{targetWindow:t});$x=n,await Qi.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function t8(){return $x}var ym=new Map;async function mh(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Sr(e.body)),ym.has(t))return ym.get(t);let n=$(e);ym.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{ym.delete(t)},3e3)}}async function n8(e){return mh(e)}async function _a(e){if(St()){let n=t8();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return mh(e)}else return mh(e)}function r8(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function Cm(e){await Gf(e)}async function Oa(e,t){let n=await Vf(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return vm(e,t)}return vm(e,t)}async function vm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Wf(e,n,i-1e3),n}var nO=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],gh=new Map(nO),ia=class extends Ie{static langMap=gh;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await Cm(Cf)}async translate(t){let{text:n,from:r,to:a}=t;return n?await Kx(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Oa(Cf,async()=>{let t=await _a({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return r8(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=gh.get(n)||"auto",o=gh.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await $({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var rO=["chinese","english","japanese","korean","french","spanish","deutsch"],Na={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},xm=e=>Na.chinese.test(e),aO=e=>Na.english.test(e),iO=e=>Na.japanese.test(e),oO=e=>Na.korean.test(e),sO=e=>Na.french.test(e),uO=e=>Na.deutsch.test(e),lO=e=>Na.spanish.test(e),fse={chinese:zr(xm),english:zr(aO),japanese:zr(iO),korean:zr(oO),french:zr(sO),spanish:zr(lO),deutsch:zr(uO)},a8=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,hse=new RegExp(`^(\\d|\\s|${a8.source})+$`),cO=new RegExp(`${Na.chinese.source}|${Na.japanese.source}|${Na.korean.source}`),bse=zr(e=>(e.replace(new RegExp(a8,"g")," ").replace(new RegExp(cO,"g")," x ").match(/\S+/g)||"").length),yse=[...rO,"others","matchAll"];var o8=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ec=new Map(o8),dO=new Map(o8.map(([e,t])=>[t,e])),ph=class extends Ie{static langMap=ec;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ct;immersiveTranslateDeeplProApiUrl=ct+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Bt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Bt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Bt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Bt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Bt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:ec.get(n)||"",target_lang:ec.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:ec.get(n)||"auto",target_lang:ec.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let h,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?h=await $({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await $({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await $({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>fh(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},g=await new ia({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&dO.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!Ta()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},lu=ph;function fh(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&xm(t[0])&&i8(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&xm(t[t.length-1])&&i8(t,"\u300A")==1?t+"\u300B":mO(e,t)}function mO(e,t){let n=e?.richIdName;return!n||!jC(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function i8(e,t){return e.split(t).length-1}var gO=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],hh=new Map(gO),bh=class extends Ie{static langMap=hh;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:hh.get(r)||r,to:hh.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await $(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new V(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},s8=bh;var pO=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],yh=new Map(pO),vh=class extends Ie{static langMap=yh;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:yh.get(a)||a};r!=="auto"&&(i.from=yh.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await $(c);if(m.length===0)throw new V("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},u8=vh;var fO=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],cu=new Map(fO),Ch=class extends Ie{static langMap=cu;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:jx.get(g.language),to:jx.get(m.to)}}function Yi(e){return e!=null}function Yx(e,t,n){return`${e.type}#${t}#${n}`}function Qx(e,t,n,r,a){return{body:a,id:r,type:Yx(e,t,n)}}function Q_(e,t,n,r){return{id:n,response:r,type:Yx(e,"ask",t)}}function Jx(e,t,n,r){if(Yi(r)){let a=r.type;if(Yi(a)&&Yi(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function J_(e,t,n){if(Yi(n)){let r=n.type;if(Yi(r)&&Yi(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function Z_(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function X_(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;J_(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function $_(e,t,n,r){let a=i=>{let o=i.data;Jx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function Gx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Jx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(Q_(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function eO(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(Qx(t,"tell",n,i,r),a)}async function Kx(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await X_(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(Qx(n,"ask",r,s,a),i),u}var Qi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;Gx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Yi(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Kx(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push($_(this.thisWindow,this.protocol,t,n))}tell(t,n){eO(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Gx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Kx(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){Z_(this.listeners)}};var Zx;async function Xx(){if(Tt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qi.iframe(j0,"*",{targetWindow:t});Zx=n,await Qi.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function $x(){return Zx}var bm=new Map;async function mh(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=xr(e.body)),bm.has(t))return bm.get(t);let n=$(e);bm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{bm.delete(t)},3e3)}}async function e8(e){return mh(e)}async function Ba(e){if(Tt()){let n=$x();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return mh(e)}else return mh(e)}function t8(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function vm(e){await Gf(e)}async function _a(e,t){let n=await Vf(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return ym(e,t)}return ym(e,t)}async function ym(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Wf(e,n,i-1e3),n}var tO=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],gh=new Map(tO),aa=class extends Fe{static langMap=gh;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await vm(vf)}async translate(t){let{text:n,from:r,to:a}=t;return n?await Wx(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await _a(vf,async()=>{let t=await Ba({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return t8(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=gh.get(n)||"auto",o=gh.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await $({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var nO=["chinese","english","japanese","korean","french","spanish","deutsch"],Oa={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},Cm=e=>Oa.chinese.test(e),rO=e=>Oa.english.test(e),aO=e=>Oa.japanese.test(e),iO=e=>Oa.korean.test(e),oO=e=>Oa.french.test(e),sO=e=>Oa.deutsch.test(e),uO=e=>Oa.spanish.test(e),hse={chinese:qr(Cm),english:qr(rO),japanese:qr(aO),korean:qr(iO),french:qr(oO),spanish:qr(uO),deutsch:qr(sO)},n8=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,bse=new RegExp(`^(\\d|\\s|${n8.source})+$`),lO=new RegExp(`${Oa.chinese.source}|${Oa.japanese.source}|${Oa.korean.source}`),yse=qr(e=>(e.replace(new RegExp(n8,"g")," ").replace(new RegExp(lO,"g")," x ").match(/\S+/g)||"").length),vse=[...nO,"others","matchAll"];var a8=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],$l=new Map(a8),cO=new Map(a8.map(([e,t])=>[t,e])),ph=class extends Fe{static langMap=$l;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ct;immersiveTranslateDeeplProApiUrl=ct+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Bt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Bt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Bt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Bt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Bt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:$l.get(n)||"",target_lang:$l.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:$l.get(n)||"auto",target_lang:$l.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let b,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?b=await $({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await $({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await $({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>fh(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},g=await new aa({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&cO.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!Ta()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},lu=ph;function fh(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&Cm(t[0])&&r8(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&Cm(t[t.length-1])&&r8(t,"\u300A")==1?t+"\u300B":dO(e,t)}function dO(e,t){let n=e?.richIdName;return!n||!NC(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function r8(e,t){return e.split(t).length-1}var mO=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],hh=new Map(mO),bh=class extends Fe{static langMap=hh;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:hh.get(r)||r,to:hh.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await $(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new V(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},i8=bh;var gO=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],yh=new Map(gO),vh=class extends Fe{static langMap=yh;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:yh.get(a)||a};r!=="auto"&&(i.from=yh.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await $(c);if(m.length===0)throw new V("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},o8=vh;var pO=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],cu=new Map(pO),Ch=class extends Fe{static langMap=cu;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!cu.get(r)?(i=(await $({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||cu.get(r)||r,target:cu.get(a)||a})):u.body=JSON.stringify({text:s,source:cu.get(r),target:cu.get(a)||a});let l=await $(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},l8=Ch;var hO={lang:"en"};function xh(e){let t=Object.assign({},hO,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var Sh=ns(null),Ji=e=>{let{t,setLang:n,lang:r}=xh({lang:e.lang});return d(Sh.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return Se(Sh)}function c8(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function oa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=bO(e,a)),i||(i=tc(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function bO(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Th({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function tc(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Th(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>dt(a,s.matches)&&!dt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function du(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function No(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&di(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&di(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await _r(n),await ur(i)}catch{return!1}return a}async function nc(){return(await Mn()).aiAssistants||[]}async function yO(e,t){(await Promise.allSettled(e.map(r=>$({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&No("add",a,t)}})}async function wh(e,t,n=!0){e||(e=await Je()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await Eh();i=await CO(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&yO(o,t)}var sa=Bn(wh,1500);function di(e){return Da(nr(),e.extensionVersion)}function vO(e,t){return t?!Da(e.version,t):!1}function CO(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{vO(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function Eh(){return(await $({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function Ah(e){return await $({url:`${E.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function Sm(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=ue(async()=>{try{let s=await nc();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=ue(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await Ah(s);if(di(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await No(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return q(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var xO=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function m8(e,t,n,r,a){let i={...t},o=Th(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,du({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=c8(i,i.langOverrides,n),o||xO.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await R5();i.contextTerms=s}return i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,h=g||"zh-CN",y=mu(t,o),b=mu(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(mu(t,Ee)){v=J;break}}let x=l,w=Object.keys(c);for(let J of w){let Ee=c[J];if(Ee&&mu(t,Ee)){x=J;break}}let S=mu(t,m),T=d8(t,m);T||(T=dt(t,ty)),T||(T=dt(t,n.blockUrls));let A=d8(t,n.inputTranslationUrlPattern);A||(A=dt(t,n.inputTranslationBlockUrls));let D=dt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let Ct of Ee.matches)I[Ct]=J}let P=Object.keys(I),R=M4(t,P);R&&(i=I[R]??"auto",I[R]&&I[R]!=="auto"&&Tr(I[R]));let L=a.hostname,_=await dr(L),U=a.pathname+a.search+a.hash,z=await dr(U),Y=`https://${_}.com/${z}`,ee=await Rt(),Re=await Ws(),xe=n.translationStartMode,H=TO(ee,n);ee.aiAssistants=wO(H,n),xe==="dynamic"&&b&&(xe="immediate");let W=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(W=n.inputTranslationService);let te=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(te=n.mouseHoverTranslationService);let Me=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Me=n.subtitleTranslateService);let ve=await nt.get(pt,null),$e=!1;ve&&($e=kt(ve)),n.platform=La();let Z={targetLanguage:h,config:n,translationService:v,inputTranslationService:W,mouseHoverTranslationService:te,subtitleTranslateService:Me,isTranslateUrl:S,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:T,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:Y,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},localConfig:ee};ve&&(Z.user=ve,$e?Z.isPro=!0:Z.isPro=!1),Z.state.translationArea==="body"&&(Z.config.generalRule.excludeTags=Z.config.generalRule.excludeTags.filter(J=>!Z.config.generalRule.bodyTranslateTags.includes(J)),Z.config.generalRule.additionalExcludeSelectors=Z.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let ce=n.translationServices[Z.translationService]||{};ce.immediateTranslationTextCount!==void 0&&SO(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(Z.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),Z.translationService==="deepl"&&(ce?.authKey?.startsWith("immersive_")||ce?.provider==="pro"&&Z.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(Z.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(Z.state.translationDebounce=ce.translationDebounce);let he=Re.immediateTranslationTextCount;n.immediateTranslationTextCount!==he&&(Z.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,ke;globalThis.PDFViewerApplication?ke=pe.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?ke=pe.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?ke=pe.find(J=>J.pageType=="ebookBuilder"):ke=pe.find(J=>mu(t,J)),ke&&ke.pageType==="ebookBuilder"&&(Z.state.translationStartMode="immediate");let Ve=n.generalRule;if(ke&&(Z.rule=Nl(Ve,ke),Z.rule=uC(n,Z.rule,ke)),Z.rule.selectors.length>0&&(Z.rule.paragraphMinTextCount=2,Z.rule.paragraphMinWordCount=1),Z.state.translationArea==="body"&&Z.rule.excludeTags&&(Z.rule.excludeTags=Z.rule.excludeTags.filter(J=>!Z.rule.bodyTranslateTags.includes(J)&&!Z.rule.forceTranslateTags.includes(J))),Z.rule.mainFrameSelector){let J=document.querySelector(Z.rule.mainFrameSelector);J&&(Z.mainFrame=J)}return Z}function mu(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&dt(e,r)?!1:n&&n.length>0&&dt(e,n)?!0:i&&i.length>0&&tm(i)?!1:!!(a&&a.length>0&&tm(a))}function d8(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&dt(e,n)||r&&r.length>0&&tm(r))}function SO(e){return typeof e=="number"}function TO(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function wO(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Ud(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function g8(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!cu.get(r)?(i=(await $({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||cu.get(r)||r,target:cu.get(a)||a})):u.body=JSON.stringify({text:s,source:cu.get(r),target:cu.get(a)||a});let l=await $(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},s8=Ch;var fO={lang:"en"};function xh(e){let t=Object.assign({},fO,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var Th=ns(null),Ji=e=>{let{t,setLang:n,lang:r}=xh({lang:e.lang});return d(Th.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return Te(Th)}function u8(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function di(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=hO(e,a)),i||(i=ec(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function hO(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Sh({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function ec(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Sh(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>dt(a,s.matches)&&!dt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function du(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function No(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&ci(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&ci(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Br(n),await lr(i)}catch{return!1}return a}async function tc(){return(await Mn()).aiAssistants||[]}async function bO(e,t){(await Promise.allSettled(e.map(r=>$({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&No("add",a,t)}})}async function wh(e,t,n=!0){e||(e=await Qe()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await Eh();i=await vO(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&bO(o,t)}var ia=Bn(wh,1500);function ci(e){return ka(tr(),e.extensionVersion)}function yO(e,t){return t?!ka(e.version,t):!1}function vO(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{yO(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function Eh(){return(await $({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function Ah(e){return await $({url:`${E.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function xm(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=ue(async()=>{try{let s=await tc();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=ue(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await Ah(s);if(ci(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await No(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return q(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var CO=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function c8(e,t,n,r,a){let i={...t},o=Sh(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,du({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=u8(i,i.langOverrides,n),o||CO.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await M5();i.contextTerms=s}return i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,b=g||"zh-CN",y=mu(t,o),h=mu(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(mu(t,Ee)){v=J;break}}let x=l,w=Object.keys(c);for(let J of w){let Ee=c[J];if(Ee&&mu(t,Ee)){x=J;break}}let T=mu(t,m),S=l8(t,m);S||(S=dt(t,$6)),S||(S=dt(t,n.blockUrls));let A=l8(t,n.inputTranslationUrlPattern);A||(A=dt(t,n.inputTranslationBlockUrls));let D=dt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let Ct of Ee.matches)I[Ct]=J}let P=Object.keys(I),R=M4(t,P);R&&(i=I[R]??"auto",I[R]&&I[R]!=="auto"&&Tr(I[R]));let L=a.hostname,_=await dr(L),U=a.pathname+a.search+a.hash,z=await dr(U),Y=`https://${_}.com/${z}`,ee=await Rt(),Re=await Ws(),xe=n.translationStartMode,H=TO(ee,n);ee.aiAssistants=SO(H,n),xe==="dynamic"&&h&&(xe="immediate");let W=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(W=n.inputTranslationService);let te=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(te=n.mouseHoverTranslationService);let Me=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Me=n.subtitleTranslateService);let ve=await nt.get(pt,null),$e=!1;ve&&($e=kt(ve)),n.platform=Da();let Z={targetLanguage:b,config:n,translationService:v,inputTranslationService:W,mouseHoverTranslationService:te,subtitleTranslateService:Me,isTranslateUrl:T,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:S,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:Y,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},localConfig:ee};ve&&(Z.user=ve,$e?Z.isPro=!0:Z.isPro=!1),Z.state.translationArea==="body"&&(Z.config.generalRule.excludeTags=Z.config.generalRule.excludeTags.filter(J=>!Z.config.generalRule.bodyTranslateTags.includes(J)),Z.config.generalRule.additionalExcludeSelectors=Z.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let ce=n.translationServices[Z.translationService]||{};ce.immediateTranslationTextCount!==void 0&&xO(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(Z.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),Z.translationService==="deepl"&&(ce?.authKey?.startsWith("immersive_")||ce?.provider==="pro"&&Z.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(Z.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(Z.state.translationDebounce=ce.translationDebounce);let he=Re.immediateTranslationTextCount;n.immediateTranslationTextCount!==he&&(Z.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,ke;globalThis.PDFViewerApplication?ke=pe.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?ke=pe.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?ke=pe.find(J=>J.pageType=="ebookBuilder"):ke=pe.find(J=>mu(t,J)),ke&&ke.pageType==="ebookBuilder"&&(Z.state.translationStartMode="immediate");let ze=n.generalRule;if(ke&&(Z.rule=Ol(ze,ke),Z.rule=oC(n,Z.rule,ke)),Z.rule.selectors.length>0&&(Z.rule.paragraphMinTextCount=2,Z.rule.paragraphMinWordCount=1),Z.state.translationArea==="body"&&Z.rule.excludeTags&&(Z.rule.excludeTags=Z.rule.excludeTags.filter(J=>!Z.rule.bodyTranslateTags.includes(J)&&!Z.rule.forceTranslateTags.includes(J))),Z.rule.mainFrameSelector){let J=document.querySelector(Z.rule.mainFrameSelector);J&&(Z.mainFrame=J)}return Z}function mu(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&dt(e,r)?!1:n&&n.length>0&&dt(e,n)?!0:i&&i.length>0&&em(i)?!1:!!(a&&a.length>0&&em(a))}function l8(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&dt(e,n)||r&&r.length>0&&em(r))}function xO(e){return typeof e=="number"}function TO(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function SO(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Nd(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function d8(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` -`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var kh=class extends Ie{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` +`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var kh=class extends Fe{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=Ps()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?ad(l,s):`${s}${W0}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,m=u.get(i)||i,g=this.serviceConfig.env||{};g={...g};let p=s?.sourceProgram,f=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),f&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let y="",b="",v=l.includes("{{json}}"),C=l.includes("{{yaml}}");if(Gd(r)&&this.isRichTranslate?g.content_type="html":g.html_only="",v){let M=[],I=g.imt_json_item||"";f&&(I=g.imt_subtitle_json_item||I);for(let P=0;PP==="from"?c:P==="to"?m+" Language":P==="text"?r:P=="json"?y:P=="yaml"?b:g[P]===""?"":g[P]||I).replace(/{{(.+?)}}/g,(I,P)=>g[P]||I)}}async rawRequest(t){return await $(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=Ps()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?rd(l,s):`${s}${V0}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,m=u.get(i)||i,g=this.serviceConfig.env||{};g={...g};let p=s?.sourceProgram,f=["subtitle","videoSubtitle"].includes(p),b=[r];s?.rawTextArrayLength&&(b=r.split(this.translationTextSeparator)),b.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),f&&this.subtitlePrompt&&b.length>1&&(l=this.subtitlePrompt);let y="",h="",v=l.includes("{{json}}"),C=l.includes("{{yaml}}");if(Wd(r)&&this.isRichTranslate?g.content_type="html":g.html_only="",v){let M=[],I=g.imt_json_item||"";f&&(I=g.imt_subtitle_json_item||I);for(let P=0;PP==="from"?c:P==="to"?m+" Language":P==="text"?r:P=="json"?y:P=="yaml"?h:g[P]===""?"":g[P]||I).replace(/{{(.+?)}}/g,(I,P)=>g[P]||I)}}async rawRequest(t){return await $(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;a`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;s`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` [theme]`,n.imt_theme,` -\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Sr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Zi=kh;function EO(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var AO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],p8=new Map(AO),Dh=class extends Zi{static langMap=p8;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ct+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Bt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Bt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return p8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Sr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!lu.langMap.has(n.to)||!lu.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new lu(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},f8=Dh;function Pn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function kO(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Le(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Xi(e,t){return e<>>32-t}function Ua(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function gu(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function h8(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function pu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ja(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var b8={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Pn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,h="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return Ua(a(g,r),t)},this.b64=function(g){return Ha(a(g),n)},this.any=function(g,p){return ja(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return Ua(i(g,p),t)},this.b64_hmac=function(g,p){return Ha(i(g,p),n)},this.any_hmac=function(g,p,f){return ja(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Pn(g):g,h8(o(pu(g),g.length*8))}function i(g,p){var f,h,y,b,v;for(g=r?Pn(g):g,p=r?Pn(p):p,f=pu(g),f.length>16&&(f=o(f,g.length*8)),h=Array(16),y=Array(16),v=0;v<16;v+=1)h[v]=f[v]^909522486,y[v]=f[v]^1549556828;return b=o(h.concat(pu(p)),512+p.length*8),h8(o(y.concat(b),512+128))}function o(g,p){var f,h,y,b,v,C=1732584193,x=-271733879,w=-1732584194,S=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return h=o(g.concat(mi(c)),512+c.length*8),gu(o(p.concat(h),512+160))}function o(l,c){var m,g,p,f,h,y,b,v,C=Array(80),x=1732584193,w=-271733879,S=-1732584194,T=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(A=C(A,x.length*8));T<16;T+=1)D[T]=A[T]^909522486,M[T]=A[T]^1549556828;return S=C(D.concat(mi(w)),512+w.length*8),gu(C(M.concat(S),512+256))}function s(x,w){return x>>>w|x<<32-w}function u(x,w){return x>>>w}function l(x,w,S){return x&w^~x&S}function c(x,w,S){return x&w^x&S^w&S}function m(x){return s(x,2)^s(x,13)^s(x,22)}function g(x){return s(x,6)^s(x,11)^s(x,25)}function p(x){return s(x,7)^s(x,18)^u(x,3)}function f(x){return s(x,17)^s(x,19)^u(x,10)}function h(x){return s(x,28)^s(x,34)^s(x,39)}function y(x){return s(x,14)^s(x,18)^s(x,41)}function b(x){return s(x,1)^s(x,8)^u(x,7)}function v(x){return s(x,19)^s(x,61)^u(x,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(x,w){var S=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=new Array(64),A,D,M,I,P,R,L,_,U,z,Y,ee;for(x[w>>5]|=128<<24-w%32,x[(w+64>>9<<4)+15]=w,U=0;U32&&(x=s(x,y.length*8));C<32;C+=1)w[C]=x[C]^909522486,S[C]=x[C]^1549556828;return v=s(w.concat(mi(b)),1024+b.length*8),gu(s(S.concat(v),1024+512))}function s(y,b){var v,C,x,w=new Array(80),S=new Array(16),T=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),I=new u(0,0),P=new u(0,0),R=new u(0,0),L=new u(0,0),_=new u(0,0),U=new u(0,0),z=new u(0,0),Y=new u(0,0),ee=new u(0,0),Re=new u(0,0),xe=new u(0,0),H=new u(0,0),W=new u(0,0),te=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)w[C]=new u(0,0);for(y[b>>5]|=128<<24-(b&31),y[(b+128>>10<<5)+31]=b,x=y.length,C=0;C>>v|b.h<<32-v,y.h=b.h>>>v|b.l<<32-v}function m(y,b,v){y.l=b.h>>>v|b.l<<32-v,y.h=b.l>>>v|b.h<<32-v}function g(y,b,v){y.l=b.l>>>v|b.h<<32-v,y.h=b.h>>>v}function p(y,b,v){var C=(b.l&65535)+(v.l&65535),x=(b.l>>>16)+(v.l>>>16)+(C>>>16),w=(b.h&65535)+(v.h&65535)+(x>>>16),S=(b.h>>>16)+(v.h>>>16)+(w>>>16);y.l=C&65535|x<<16,y.h=w&65535|S<<16}function f(y,b,v,C,x){var w=(b.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535),S=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(w>>>16),T=(b.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(S>>>16),A=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(T>>>16);y.l=w&65535|S<<16,y.h=T&65535|A<<16}function h(y,b,v,C,x,w){var S=(b.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535)+(w.l&65535),T=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(w.l>>>16)+(S>>>16),A=(b.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(w.h&65535)+(T>>>16),D=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(w.h>>>16)+(A>>>16);y.l=S&65535|T<<16,y.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Ua(u(h,r))},this.b64=function(h){return Ha(u(h,r),n)},this.any=function(h,y){return ja(u(h,r),y)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,y){return Ua(l(h,y))},this.b64_hmac=function(h,y){return Ha(l(h,y),n)},this.any_hmac=function(h,y,b){return ja(l(h,y),b)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?Pn(h):h,c(m(pu(h),h.length*8))}function l(h,y){h=r?Pn(h):h,y=r?Pn(y):y;var b,v,C=pu(h),x=Array(16),w=Array(16);for(C.length>16&&(C=m(C,h.length*8)),b=0;b<16;b+=1)x[b]=C[b]^909522486,w[b]=C[b]^1549556828;return v=m(x.concat(pu(y)),512+y.length*8),c(m(w.concat(v),512+160))}function c(h){var y,b="",v=h.length*32;for(y=0;y>5]>>>y%32&255);return b}function m(h,y){var b,v,C,x,w=1732584193,S=4023233417,T=2562383102,A=271733878,D=3285377520,M,I,P,R,L,_,U,z,Y,ee;for(h[y>>5]|=128<>>9<<4)+14]=y,x=h.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new b8.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(h=>{let b=Object.keys(h).sort().map(v=>`${this.encode(v)}=${this.encode(h[v])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await $({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var DO=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],nn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Lh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Mh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Lh(t);if(r)return Array.isArray(n)?`${r}=${n.map(Lh).sort().join(`&${r}=`)}`:`${r}=${Lh(n)}`}).filter(t=>t).join("&"),fu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${nn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[nn.tokenHeader]=t.sessionToken),a[nn.dateHeader]=r,a[nn.notSignBody]="",a[nn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[nn.algorithmKey]=nn.algorithm,a[nn.signHeadersKey]="",a[nn.signQueriesKey]=void 0,a[nn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[nn.signQueriesKey]=Object.keys(a).sort().join(";"),a[nn.signatureKey]=s,Mh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[nn.dateHeader]=n,t.sessionToken&&(this.request.headers[nn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[nn.contentSha256Header]=await dr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return iu(await kr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(nn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Zi=kh;function wO(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var EO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],m8=new Map(EO),Dh=class extends Zi{static langMap=m8;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ct+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Bt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Bt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return m8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!lu.langMap.has(n.to)||!lu.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new lu(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},g8=Dh;function Pn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function AO(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Le(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Xi(e,t){return e<>>32-t}function Na(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function gu(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function p8(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function pu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Ua(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var f8={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Pn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,b="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return Na(a(g,r),t)},this.b64=function(g){return ja(a(g),n)},this.any=function(g,p){return Ua(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return Na(i(g,p),t)},this.b64_hmac=function(g,p){return ja(i(g,p),n)},this.any_hmac=function(g,p,f){return Ua(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Pn(g):g,p8(o(pu(g),g.length*8))}function i(g,p){var f,b,y,h,v;for(g=r?Pn(g):g,p=r?Pn(p):p,f=pu(g),f.length>16&&(f=o(f,g.length*8)),b=Array(16),y=Array(16),v=0;v<16;v+=1)b[v]=f[v]^909522486,y[v]=f[v]^1549556828;return h=o(b.concat(pu(p)),512+p.length*8),p8(o(y.concat(h),512+128))}function o(g,p){var f,b,y,h,v,C=1732584193,x=-271733879,w=-1732584194,T=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return b=o(g.concat(mi(c)),512+c.length*8),gu(o(p.concat(b),512+160))}function o(l,c){var m,g,p,f,b,y,h,v,C=Array(80),x=1732584193,w=-271733879,T=-1732584194,S=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(A=C(A,x.length*8));S<16;S+=1)D[S]=A[S]^909522486,M[S]=A[S]^1549556828;return T=C(D.concat(mi(w)),512+w.length*8),gu(C(M.concat(T),512+256))}function s(x,w){return x>>>w|x<<32-w}function u(x,w){return x>>>w}function l(x,w,T){return x&w^~x&T}function c(x,w,T){return x&w^x&T^w&T}function m(x){return s(x,2)^s(x,13)^s(x,22)}function g(x){return s(x,6)^s(x,11)^s(x,25)}function p(x){return s(x,7)^s(x,18)^u(x,3)}function f(x){return s(x,17)^s(x,19)^u(x,10)}function b(x){return s(x,28)^s(x,34)^s(x,39)}function y(x){return s(x,14)^s(x,18)^s(x,41)}function h(x){return s(x,1)^s(x,8)^u(x,7)}function v(x){return s(x,19)^s(x,61)^u(x,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(x,w){var T=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],S=new Array(64),A,D,M,I,P,R,L,_,U,z,Y,ee;for(x[w>>5]|=128<<24-w%32,x[(w+64>>9<<4)+15]=w,U=0;U32&&(x=s(x,y.length*8));C<32;C+=1)w[C]=x[C]^909522486,T[C]=x[C]^1549556828;return v=s(w.concat(mi(h)),1024+h.length*8),gu(s(T.concat(v),1024+512))}function s(y,h){var v,C,x,w=new Array(80),T=new Array(16),S=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),I=new u(0,0),P=new u(0,0),R=new u(0,0),L=new u(0,0),_=new u(0,0),U=new u(0,0),z=new u(0,0),Y=new u(0,0),ee=new u(0,0),Re=new u(0,0),xe=new u(0,0),H=new u(0,0),W=new u(0,0),te=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)w[C]=new u(0,0);for(y[h>>5]|=128<<24-(h&31),y[(h+128>>10<<5)+31]=h,x=y.length,C=0;C>>v|h.h<<32-v,y.h=h.h>>>v|h.l<<32-v}function m(y,h,v){y.l=h.h>>>v|h.l<<32-v,y.h=h.l>>>v|h.h<<32-v}function g(y,h,v){y.l=h.l>>>v|h.h<<32-v,y.h=h.h>>>v}function p(y,h,v){var C=(h.l&65535)+(v.l&65535),x=(h.l>>>16)+(v.l>>>16)+(C>>>16),w=(h.h&65535)+(v.h&65535)+(x>>>16),T=(h.h>>>16)+(v.h>>>16)+(w>>>16);y.l=C&65535|x<<16,y.h=w&65535|T<<16}function f(y,h,v,C,x){var w=(h.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535),T=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(w>>>16),S=(h.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(T>>>16),A=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(S>>>16);y.l=w&65535|T<<16,y.h=S&65535|A<<16}function b(y,h,v,C,x,w){var T=(h.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535)+(w.l&65535),S=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(w.l>>>16)+(T>>>16),A=(h.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(w.h&65535)+(S>>>16),D=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(w.h>>>16)+(A>>>16);y.l=T&65535|S<<16,y.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return Na(u(b,r))},this.b64=function(b){return ja(u(b,r),n)},this.any=function(b,y){return Ua(u(b,r),y)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,y){return Na(l(b,y))},this.b64_hmac=function(b,y){return ja(l(b,y),n)},this.any_hmac=function(b,y,h){return Ua(l(b,y),h)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?Pn(b):b,c(m(pu(b),b.length*8))}function l(b,y){b=r?Pn(b):b,y=r?Pn(y):y;var h,v,C=pu(b),x=Array(16),w=Array(16);for(C.length>16&&(C=m(C,b.length*8)),h=0;h<16;h+=1)x[h]=C[h]^909522486,w[h]=C[h]^1549556828;return v=m(x.concat(pu(y)),512+y.length*8),c(m(w.concat(v),512+160))}function c(b){var y,h="",v=b.length*32;for(y=0;y>5]>>>y%32&255);return h}function m(b,y){var h,v,C,x,w=1732584193,T=4023233417,S=2562383102,A=271733878,D=3285377520,M,I,P,R,L,_,U,z,Y,ee;for(b[y>>5]|=128<>>9<<4)+14]=y,x=b.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new f8.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(v=>`${this.encode(v)}=${this.encode(b[v])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await $({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var kO=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],nn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Lh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Mh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Lh(t);if(r)return Array.isArray(n)?`${r}=${n.map(Lh).sort().join(`&${r}=`)}`:`${r}=${Lh(n)}`}).filter(t=>t).join("&"),fu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${nn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[nn.tokenHeader]=t.sessionToken),a[nn.dateHeader]=r,a[nn.notSignBody]="",a[nn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[nn.algorithmKey]=nn.algorithm,a[nn.signHeadersKey]="",a[nn.signQueriesKey]=void 0,a[nn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[nn.signQueriesKey]=Object.keys(a).sort().join(";"),a[nn.signatureKey]=s,Mh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[nn.dateHeader]=n,t.sessionToken&&(this.request.headers[nn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[nn.contentSha256Header]=await dr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return iu(await Ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(nn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=Mh(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new V(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await dr(t)}async hexEncodedBodyHash(){return this.request.headers[nn.contentSha256Header]?this.request.headers[nn.contentSha256Header]:this.request.body?await this.hexEncodedHash(Mh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return DO.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await kr(n,`${nn.kDatePrefix}${t.secretKey}`),o=await kr(r,i),s=await kr(a,o);return kr(nn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,nn.v4Identifier].join("/")}};var v8=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ph=new Map(v8),LO=new Map(v8.map(([e,t])=>[t,e])),Rh=class extends Ie{static langMap=Ph;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new fu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await $({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Ph.get(r),o={TargetLanguage:Ph.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new fu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await $({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=LO.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},C8=Rh;var x8=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ih=new Map(x8),MO=new Map(x8.map(([e,t])=>[t,e])),ac=class extends Ie{static langMap=Ih;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ih.get(r)||"detect",o=Ih.get(a)||a,u=await $({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=MO.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var PO=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Fh=new Map(PO),ic=class extends Ie{static langMap=Fh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Fh.get(r)||r,target_lang:Fh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await $({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:fh(this.serviceConfig,u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var S8=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Bh=new Map(S8),RO=new Map(S8.map(([e,t])=>[t,e])),_h=class extends Ie{static langMap=Bh;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Sr(a+o+n+i);this.domain&&(l=Sr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Bh.get(s)||"auto",to:Bh.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await $({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,h=p.map(({dst:b})=>b);return{from:RO.get(f)||f,to:u,text:h.join(` -`)}}},T8=_h;var Uo=class extends Ie{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await _l(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await _l(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),h=o[p];return f==="random"?IO(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return oi.detectLanguageRemotelyByTransmart(t)}};function IO(e){let t=Math.floor(Math.random()*e.length);return e[t]}var w8=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Oh=class extends Uo{static langMap=new Map(w8);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:w8,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},E8=Oh;var FO=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Tm=new Map(FO),Nh=class extends Ie{static langMap=Tm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!Tm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await $({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Tm.get(r)||"auto"}2${Tm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},A8=Nh;var k8=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Uh=new Map(k8),BO=new Map(k8.map(([e,t])=>[t,e]));function _O(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var jh=class extends Ie{static langMap=Uh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=OO(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+_O(n)+i+o+this.appSecret,u=await dr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Uh.get(r)||"auto",to:Uh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await $({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,h]=p.split("2");return{text:g.translation.join(` -`),from:BO.get(f),to:a}}};function OO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var qh=class extends Ie{static langMap=Hh;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Hh.get(r)||"auto",to:Hh.get(a)||a},o=new URLSearchParams(i),s=await $({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},M8=qh;var oc=class extends Uo{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||xs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var zh=class extends Zi{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Bt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},wm=zh;var P8=F+"-gemini-fake-user-key",NO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],R8=new Map(NO),Vh=class extends wm{static langMap=R8;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ct+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return R8}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Eo(P8,""),this.fakeId||(this.fakeId=UO(10),await Ao(P8,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function UO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await _a({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Gh.get(r)+"-"}${Gh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await $({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var qO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],_8=new Map(qO),uc=class extends Zi{static langMap=_8;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Oa(Sf+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await _a({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return _8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(vm(Sf+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var zO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],O8=new Map(zO),mr=class extends Zi{static langMap=O8;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return O8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var Em=class extends mr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await kr(t,"TC3"+this.secret_key),a=await kr(this.service,r),i=await kr("tc3_request",a),o=await kr(n,i);return iu(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await dr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await dr(t)}async hexEncodedBodyHash(){return this.request.headers[nn.contentSha256Header]?this.request.headers[nn.contentSha256Header]:this.request.body?await this.hexEncodedHash(Mh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return kO.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Ar(n,`${nn.kDatePrefix}${t.secretKey}`),o=await Ar(r,i),s=await Ar(a,o);return Ar(nn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,nn.v4Identifier].join("/")}};var b8=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ph=new Map(b8),DO=new Map(b8.map(([e,t])=>[t,e])),Rh=class extends Fe{static langMap=Ph;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new fu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await $({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Ph.get(r),o={TargetLanguage:Ph.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new fu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await $({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=DO.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},y8=Rh;var v8=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ih=new Map(v8),LO=new Map(v8.map(([e,t])=>[t,e])),rc=class extends Fe{static langMap=Ih;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ih.get(r)||"detect",o=Ih.get(a)||a,u=await $({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=LO.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var MO=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Fh=new Map(MO),ac=class extends Fe{static langMap=Fh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Fh.get(r)||r,target_lang:Fh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await $({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:fh(this.serviceConfig,u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var C8=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Bh=new Map(C8),PO=new Map(C8.map(([e,t])=>[t,e])),_h=class extends Fe{static langMap=Bh;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=xr(a+o+n+i);this.domain&&(l=xr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Bh.get(s)||"auto",to:Bh.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await $({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,b=p.map(({dst:h})=>h);return{from:PO.get(f)||f,to:u,text:b.join(` +`)}}},x8=_h;var Uo=class extends Fe{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Bl(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Bl(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),b=o[p];return f==="random"?RO(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ii.detectLanguageRemotelyByTransmart(t)}};function RO(e){let t=Math.floor(Math.random()*e.length);return e[t]}var T8=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Oh=class extends Uo{static langMap=new Map(T8);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:T8,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},S8=Oh;var IO=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Tm=new Map(IO),Nh=class extends Fe{static langMap=Tm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!Tm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await $({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Tm.get(r)||"auto"}2${Tm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},w8=Nh;var E8=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Uh=new Map(E8),FO=new Map(E8.map(([e,t])=>[t,e]));function BO(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var jh=class extends Fe{static langMap=Uh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=_O(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+BO(n)+i+o+this.appSecret,u=await dr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Uh.get(r)||"auto",to:Uh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await $({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,b]=p.split("2");return{text:g.translation.join(` +`),from:FO.get(f),to:a}}};function _O(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var qh=class extends Fe{static langMap=Hh;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Hh.get(r)||"auto",to:Hh.get(a)||a},o=new URLSearchParams(i),s=await $({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},D8=qh;var ic=class extends Uo{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||xs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var zh=class extends Zi{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Bt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},Sm=zh;var L8=F+"-gemini-fake-user-key",OO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],M8=new Map(OO),Vh=class extends Sm{static langMap=M8;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ct+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return M8}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Eo(L8,""),this.fakeId||(this.fakeId=NO(10),await Ao(L8,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function NO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ba({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Gh.get(r)+"-"}${Gh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await $({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var HO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],F8=new Map(HO),sc=class extends Zi{static langMap=F8;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await _a(xf+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ba({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return F8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(ym(xf+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var qO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],B8=new Map(qO),mr=class extends Zi{static langMap=B8;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Bt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return B8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var wm=class extends mr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Ar(t,"TC3"+this.secret_key),a=await Ar(this.service,r),i=await Ar("tc3_request",a),o=await Ar(n,i);return iu(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await dr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` `+i}}async getCanonicalRequest(t){let n=await dr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 @@ -5910,47 +5910,47 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var Am=class extends mr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await na()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Oa(I6,async()=>{let t=await _a({responseType:"json",url:`${ct}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Kh=["glm-4-flash"],km=class extends mr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Kh.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!Kh.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await na()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Oa(F6,async()=>{let t=await _a({responseType:"json",url:`${ct}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ia.langMap.has(n.to)||!ia.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ia(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Kh.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var ua={mock:su,mock2:su,custom:oc,google:Xl,transmart:$l,deepl:lu,volc:C8,volcAlpha:ac,bing:ia,tencent:Jl,tenAlpha:Zl,baidu:T8,caiyun:E8,cai:A8,openl:hm,youdao:D8,you:M8,d:ou,dpro:ou,deeplx:ic,niu:s8,azure:u8,openai:f8,gemini:I8,claude:B8,papago:l8,aliyun:rc,yandex:sc,qianfan:uc,"custom-ai":mr,deepseek:mr,"aliyun-bailian":mr,doubao:mr,hunyuan:Em,siliconcloud:Am,lingyiwanwu:mr,zhipu:km};globalThis.TranslationServicesClass=ua;var $i={};Object.keys(Qr).forEach(e=>{$i[e]={...Qr[e],class:ua[e]}});function eo(e,t){let n=sr;if($i[e]&&$i[e].class&&$i[e].class.langMap&&$i[e].class.langMap.size>0){let r=$i[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return sr}async function gr(e,t,n){if(!e.text)return e;let r=null,a=await fn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function N8(e,t){for(let n of e)try{return await gr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Yh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=kt(e.user);await new $i[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function VO(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function fn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),sa(a,t.localConfig,!1),m=await m8(g,m,{sourceLanguage:VO(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(f&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=WO(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let y=[],b={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,x=kt(t.user),w;try{w=new $i[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:x,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){y.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=A instanceof V?new V(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(I,null,M)}}return{sentences:[]}}if(o.cache&&!Ps(a))for(let A of e.sentences){C++;let D=l;l==="openl"&&(D=l+"-"+m.codename||hm.DEFAULT_CODENAME);let M=w.getCacheKeyPrefix();M&&(D=M+"-"+D);let I=null;try{I=await u0(H5({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(P){k.warn("query cache DB error, but it's ok",P)}if(I){let P={...A,text:I.translatedText};b.sentences[C]=P,n&&n(null,P,A)}else y.push(A)}else y.push(...e.sentences);let S=y.length;if(v-S>0&&k.debug(`use ${v-S} sentences from cache`),!y.length)return b;let T=await w.multipleTranslate({sentences:y},m,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||hm.DEFAULT_CODENAME);let P=w.getCacheKeyPrefix();P&&(I=P+"-"+I),o.cache&&u0(q5({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:Sr(M.text),service:I}),3e3).catch(R=>{k.warn("set cache DB error",R)})}});for(let A of T?.sentences||[]){let D=b.sentences.findIndex(M=>!M);if(D===-1)throw new V("translateFailed","can not match the result");b.sentences[D]=A}return b}function WO(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function be(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function la(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Qh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function jo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let h=0;he.service&&e.service in ua?ua[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,ua]),p=ne(()=>e.service&&e.service in ua?ua[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,ua]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(le,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let h=f.target.value,y=Array.isArray(r)?h.split(","):h;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(le,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Jh(e){let{t}=O(),n=Ce(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===F+"-overlay"&&r(o)};return d("dialog",{id:F+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function Dm(e,t){return t.some(n=>n.label===e)}function U8(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);Dm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);Dm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());Dm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:Dm(r,n)||n.push({label:r,value:r})}),n}var GO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),h=Ce(null),y=Ce(null),b=()=>{u||!l&&(qe().any||xr())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||xr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{h.current&&(clearTimeout(h.current),m?.()),f(!1)},x=ne(()=>{let T={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(T.maxWidth="200px",o&&(T.width=o+"px"),T.whiteSpace="normal"),c?.width&&(T.width=c.width),c?.maxWidth&&(T.maxWidth=c.maxWidth),c?.whiteSpace&&(T.whiteSpace=c.whiteSpace),T},[i,o,c]),w=ne(()=>{let T={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...T,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...T,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...T,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...T,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),S=T=>Wd()?d("div",{style:x,role:"tooltip",children:T}):d("div",{style:x,role:"tooltip",dangerouslySetInnerHTML:{__html:T}});return d("div",{class:a,onMouseEnter:b,onMouseLeave:C,onTouchStart:()=>{l&&b()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:w,children:S(e)})]})},yt=GO;function lc(e){let{disableTipText:t}=e;return e.disabled&&t?d(yt,{text:t,enableMobile:!0,tipStyle:{left:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(j8,{...e})}):d(j8,{...e})}function j8(e){return d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})}function ca(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,disableTipText:h}=e;p=p??(m.default||"");let y={},b={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(b=u.translationServices[e.service]),b.env){let C=Object.keys(b.env);for(let x=0;xQO(t,m,b),[m,b]);if(e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),q(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[Zh(t,m),"\uFF1A"]}),d(Qh,{maxWidth:200,disabled:f,items:m.options.map(C=>({label:`${C.label?t(C.label):C.value}`,value:C.value,selected:p===C.value,onSelected:()=>{if(C.action=="jumpOptions"){let x=C.args||[];Aa(...x);return}g(C.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let C=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[Zh(t,m),"\uFF1A"]}),d(Qh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let w=x.label===x.value?x.value:x.label;return{label:t(w),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Jh,{visible:o,value:b.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(w=>{let S=w.translationServices?.[e.service||""];return S?(S.customModels=x,{...w}):w}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=C.includes(p);a&&!x&&g(C[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(jo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(jo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(jo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let C=p,x="";C||(C="#FFFFFF",x="#FFFFFF");let{hex:w,opacity:S}=YO(C);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:T=>{g(T.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:w,style:{opacity:S},disabled:f,onInput:T=>{g(T.target.value)}})]})})}else return m.type=="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d(lc,{id:m.name,checked:p,disableTipText:h,disabled:f,onChange:C=>g(C)}),Zh(t,m),KO(t,m,y)]})}):null}}function Zh(e,t){if(typeof t.labelKey=="object")return t.labelKey;let n=t.name;return t.label&&(n=t.label),t.labelKey&&(n=e(t.labelKey)),n}function KO(e,t,n){return t.descriptionKey?typeof t.descriptionKey=="object"?d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},children:t.descriptionKey}):d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},dangerouslySetInnerHTML:{__html:e(t.descriptionKey,n)}}):null}function YO(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function QO(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=U8(i,n.customModels||[]),[...i,a]}function H8(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function cc(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d(H8,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function da(e){let{t}=O(),n=Ce(null),{toggleModal:r}=e,a=i=>{i?.target?.id===F+"-overlay"&&r(i)};return d("dialog",{id:F+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function qa(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(le,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function Ho(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);q(()=>{Kt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(da,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(qa,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ma(){let e=["bingGlobalConfig","baiduGlobalConfig",R6,Ai];for(let t of e)await j.storage.local.remove(t);X()||await C5(),await Kf()}function q8(){return X()?Promise.resolve("0 B"):sd()}var Lm='',z8=` +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var Em=class extends mr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ta()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await _a(P6,async()=>{let t=await Ba({responseType:"json",url:`${ct}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Kh=["glm-4-flash"],Am=class extends mr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Kh.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!Kh.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ta()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await _a(R6,async()=>{let t=await Ba({responseType:"json",url:`${ct}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!aa.langMap.has(n.to)||!aa.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new aa(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Kh.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:su,mock2:su,custom:ic,google:Zl,transmart:Xl,deepl:lu,volc:y8,volcAlpha:rc,bing:aa,tencent:Ql,tenAlpha:Jl,baidu:x8,caiyun:S8,cai:w8,openl:fm,youdao:A8,you:D8,d:ou,dpro:ou,deeplx:ac,niu:i8,azure:o8,openai:g8,gemini:P8,claude:I8,papago:s8,aliyun:nc,yandex:oc,qianfan:sc,"custom-ai":mr,deepseek:mr,"aliyun-bailian":mr,doubao:mr,hunyuan:wm,siliconcloud:Em,lingyiwanwu:mr,zhipu:Am};globalThis.TranslationServicesClass=oa;var $i={};Object.keys(Yr).forEach(e=>{$i[e]={...Yr[e],class:oa[e]}});function eo(e,t){let n=ur;if($i[e]&&$i[e].class&&$i[e].class.langMap&&$i[e].class.langMap.size>0){let r=$i[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return ur}async function sa(e,t,n){if(!e.text)return e;let r=null,a=await fn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function _8(e,t){for(let n of e)try{return await sa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Yh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=kt(e.user);await new $i[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function zO(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function fn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=await c8(g,m,{sourceLanguage:zO(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(f&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=VO(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let y=[],h={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,x=kt(t.user),w;try{w=new $i[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:x,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){y.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=A instanceof V?new V(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(I,null,M)}}return{sentences:[]}}if(o.cache&&!Ps(a))for(let A of e.sentences){C++;let D=l;l==="openl"&&(D=l+"-"+m.codename||fm.DEFAULT_CODENAME);let M=w.getCacheKeyPrefix();M&&(D=M+"-"+D);let I=null;try{I=await s0(U5({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(P){k.warn("query cache DB error, but it's ok",P)}if(I){let P={...A,text:I.translatedText};h.sentences[C]=P,n&&n(null,P,A)}else y.push(A)}else y.push(...e.sentences);let T=y.length;if(v-T>0&&k.debug(`use ${v-T} sentences from cache`),!y.length)return h;let S=await w.multipleTranslate({sentences:y},m,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||fm.DEFAULT_CODENAME);let P=w.getCacheKeyPrefix();P&&(I=P+"-"+I),o.cache&&s0(j5({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:xr(M.text),service:I}),3e3).catch(R=>{k.warn("set cache DB error",R)})}});for(let A of S?.sentences||[]){let D=h.sentences.findIndex(M=>!M);if(D===-1)throw new V("translateFailed","can not match the result");h.sentences[D]=A}return h}function VO(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function be(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function ua(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Qh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function jo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let b=0;be.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=ne(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(le,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let b=f.target.value,y=Array.isArray(r)?b.split(","):b;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(le,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Jh(e){let{t}=O(),n=Ce(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===F+"-overlay"&&r(o)};return d("dialog",{id:F+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function km(e,t){return t.some(n=>n.label===e)}function O8(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);km(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);km(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());km(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:km(r,n)||n.push({label:r,value:r})}),n}var WO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),b=Ce(null),y=Ce(null),h=()=>{u||!l&&(qe().any||Cr())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||Cr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{b.current&&(clearTimeout(b.current),m?.()),f(!1)},x=ne(()=>{let S={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(S.maxWidth="200px",o&&(S.width=o+"px"),S.whiteSpace="normal"),c?.width&&(S.width=c.width),c?.maxWidth&&(S.maxWidth=c.maxWidth),c?.whiteSpace&&(S.whiteSpace=c.whiteSpace),S},[i,o,c]),w=ne(()=>{let S={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...S,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...S,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...S,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...S,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),T=S=>Vd()?d("div",{style:x,role:"tooltip",children:S}):d("div",{style:x,role:"tooltip",dangerouslySetInnerHTML:{__html:S}});return d("div",{class:a,onMouseEnter:h,onMouseLeave:C,onTouchStart:()=>{l&&h()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:w,children:T(e)})]})},yt=WO;function uc(e){let{disableTipText:t}=e;return e.disabled&&t?d(yt,{text:t,enableMobile:!0,tipStyle:{left:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(N8,{...e})}):d(N8,{...e})}function N8(e){return d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})}function la(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,disableTipText:b}=e;p=p??(m.default||"");let y={},h={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(h=u.translationServices[e.service]),h.env){let C=Object.keys(h.env);for(let x=0;xYO(t,m,h),[m,h]);if(e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),q(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[Zh(t,m),"\uFF1A"]}),d(Qh,{maxWidth:200,disabled:f,items:m.options.map(C=>({label:`${C.label?t(C.label):C.value}`,value:C.value,selected:p===C.value,onSelected:()=>{if(C.action=="jumpOptions"){let x=C.args||[];Ea(...x);return}g(C.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let C=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[Zh(t,m),"\uFF1A"]}),d(Qh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let w=x.label===x.value?x.value:x.label;return{label:t(w),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Jh,{visible:o,value:h.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(w=>{let T=w.translationServices?.[e.service||""];return T?(T.customModels=x,{...w}):w}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=C.includes(p);a&&!x&&g(C[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(jo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(jo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(jo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let C=p,x="";C||(C="#FFFFFF",x="#FFFFFF");let{hex:w,opacity:T}=KO(C);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:S=>{g(S.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:w,style:{opacity:T},disabled:f,onInput:S=>{g(S.target.value)}})]})})}else return m.type=="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d(uc,{id:m.name,checked:p,disableTipText:b,disabled:f,onChange:C=>g(C)}),Zh(t,m),GO(t,m,y)]})}):null}}function Zh(e,t){if(typeof t.labelKey=="object")return t.labelKey;let n=t.name;return t.label&&(n=t.label),t.labelKey&&(n=e(t.labelKey)),n}function GO(e,t,n){return t.descriptionKey?typeof t.descriptionKey=="object"?d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},children:t.descriptionKey}):d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},dangerouslySetInnerHTML:{__html:e(t.descriptionKey,n)}}):null}function KO(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function YO(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=O8(i,n.customModels||[]),[...i,a]}function U8(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function lc(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d(U8,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function ca(e){let{t}=O(),n=Ce(null),{toggleModal:r}=e,a=i=>{i?.target?.id===F+"-overlay"&&r(i)};return d("dialog",{id:F+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ha(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(le,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function Ho(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);q(()=>{Kt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(ca,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ha,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function da(){let e=["bingGlobalConfig","baiduGlobalConfig",M6,Ai];for(let t of e)await j.storage.local.remove(t);X()||await y5(),await Kf()}function j8(){return X()?Promise.resolve("0 B"):od()}var Dm='',H8=` -`,gi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var V8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=",W8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",G8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",K8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function JO(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Fa(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Xh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Oe(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[h,y]=N({});q(()=>{n&&v().then(()=>g(!1))},[n]);let b=T=>{T?.target?.id===F+"-overlay"&&t()};function v(){return new Fa(n).listAll().then(A=>{c(A)}).catch(A=>r())}function C(T){if(T.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let A=F+"-config-"+zs()+".json";new Fa(n).uploadConfig(i,A).catch(D=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function x(T,A,D){T.preventDefault(),y({[D]:!0}),new Fa(n).getConfig(A).then(M=>{o(()=>({...M})),rt(a("importSuccess"))}).catch(M=>{k.error(M),bt(a("importFail"))}).finally(()=>y({}))}function w(T,A){new Fa(n).getConfig(T).then(D=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(D,null,2))),M.setAttribute("download",A),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(D=>{k.error("download google config file failed",D),bt(a("downloadFail")+": "+D.message)})}function S(T){T.preventDefault(),o({...i,autoSync:!1}),Gi.revoke(n).then(()=>t())}return d("dialog",{id:F+"-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:T=>{T.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((T,A)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:D=>{D.preventDefault(),w(T.id,T.name)},class:"block truncate w-40 sm:w-auto",children:T.name.replace(F+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(T.modifiedTime).toLocaleString(),",\xA0",Tl(parseInt(T.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":h[A],disabled:h[A],onClick:D=>x(D,T.id,A),children:a("import_hint")}),d(JO,{accessToken:n,id:T.id,listAllFiles:v})]})]},"file"+A))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:S,disabled:m,children:a("revokeAuth")})]})]})})}function za(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=ns([]);function ft(e){let[t,n]=N(null);return q(()=>{Je().then(r=>{n(r),k.debug("current config",r)})},[]),q(()=>{Je().then(r=>{n(r)})},[e]),t}function cn(e){let[t,n]=N(null);return q(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function Y8(){let[e,t]=N(!1),n=nr();return q(()=>{X(!0)&&(!n||n=="0.0.0"||za(n,"0.9.0")||t(!0))},[n]),[e,t]}function ga(){let[e,t]=N(null);return q(()=>{Rt().then(r=>{t(r)})},[]),[e,r=>{t(r),Dt(r)}]}function Mm(e){let[t,n]=N(null);return q(()=>{nt.get(pt,null).then(r=>{n(r?kt(r):!1)}).catch(r=>{n(!1)})},[]),q(()=>{n(kt(e))},[e]),t}var at=class extends co{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(k.error("ErrorBoundary",this.error,this.info),d(ZO,{error:this.error,info:this.info})):this.props.children}};function ZO({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var Q8=k;function XO(){let[e,t]=N(null);return q(()=>{Je().then(n=>{t(n)})},[]),e}function e1(){let[e,t,n,r,a]=Oe(),i=XO();Ze(e,t);let{t:o,setLang:s}=O(),[u,l]=ga();if(!i)return null;return d(at,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!fs()&&d(g,{}),d(p,{config:i})]})});function c(){let f=b=>{b.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Po(),updatedAt:new Date().toISOString()}),Vs().catch(v=>{Q8.error("clean local config error",v)}),ma().catch(v=>{Q8.error("clean cache error",v)}),rt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},h=b=>{t(()=>({...b}))},y=b=>{b.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let x=C.target,w=new FileReader;w.onload=function(){try{let S=JSON.parse(w.result);h(S),rt(o("successImportConfig"))}catch(S){bt(`Invalid JSON ${S.message}`)}},w.readAsText(x.files[0])},v.click(),document.body.removeChild(v)};return d(le,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[eN,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{if(b.preventDefault(),fs()){let v=Te();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});po.saveAs(v,F+"-config-"+zs()+".txt")}},role:"button",children:[tN,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(!1),[x,w]=N("");q(()=>{if(tl()&&n){let R=localStorage.getItem(rl);if(localStorage.removeItem(rl),R){let L=globalThis.localStorage.getItem(Tf);k.debug("import_export","rawAuthInfoStr",L);let _={},U={},z="";if(L){globalThis.localStorage.removeItem(Tf);try{_=JSON.parse(L),U=_.state||{},z=_.access_token||""}catch(Y){k.error("parse state error",Y)}}if(z&&U&&(Gi.setAuthInfo({access_token:z}),k.debug("import_export","Google OAuth:",_),_)){let Y=_.state;k.debug("state",Y),Y?.mode==="auto"?(b(!0),I(z)):(C(!0),D(z))}}}},[n]);function S(){b(!0),G4({source:globalThis.location.href,mode:"auto"},!0).then(R=>{k.debug("import_export","Google OAuth:"+R),R!==null&&I(R)}).catch(R=>{R&&R.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(R)})}function T(){C(!0),h(!1),G4({source:globalThis.location.href,mode:"manual"},!0).then(R=>{k.debug("import_export","Google OAuth:"+R),R!==null&&D(R)}).catch(R=>{R&&R.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(R)})}function A(){w(""),S()}function D(R){w(R),C(!1),h(!0)}function M(R){b(!1),C(!1),h(!1),t({...e,autoSync:!1}),k.error("import_export","Google OAuth error:"+R),bt(o("authFail"))}function I(R){b(!0),k.debug("sync latest with drive",R,e),w(R),rm(R,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?rt(o("successSyncConfig")):rt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{b(!1)})}function P(R){t({...e,autoSync:R.checked}),R.checked&&S()}return d(le,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:R=>{R.preventDefault(),S()},"aria-busy":y,href:"#",role:"button",children:[y?d(le,{}):J8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:R=>{R.preventDefault(),T()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Xh,{onClose:()=>h(!1),authExpire:A,accessToken:x}):null]})}function p({config:f}){let h=X8(),[y,b]=N(!1),[v,C]=N(""),[x,w]=N(""),{t:S}=O();if(!h||!h.token)return null;let T=kt(h);async function A(){confirm(S("proRightOpenPro"))?window.open(fy):k.debug("\u53D6\u6D88\u4F1A\u5458")}async function D(){if(!T){A();return}try{if(y)return;b(!0),w("");let L=await Pm(h?.token,e,a),_="";switch(L){case"upload":{_=S("successSyncConfigToAccount");break}case"override":{_=S("successSyncConfigInAccount");break}default:_=S("syncConfigNoUpdate")}C(_)}catch(L){C(""),w(L.message)}finally{b(!1)}}let M=ue(L=>{if(!T){A();return}l({...u,proAutoSync:L})},[]),I=ue(L=>{if(!T){A();return}t(_=>({..._,proSyncAPIKey:L}))},[]),P=u?.proAutoSync!=!1,R=e?.proSyncAPIKey!=!1;return T||(P=!1,R=!1),d(le,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:S("syncToAccount")}),d("h6",{class:"!text-sm",children:S("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!P)},checked:P}),S("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!R)},checked:R}),S("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),D()},"aria-busy":y,href:"#",role:"button",children:[J8," ",S("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&!v&&u?.accountLastSyncedAt&&T),children:S("lastSyncedAt",{date:PC(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:He()||T,children:d("span",{dangerouslySetInnerHTML:{__html:S("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!x,children:x})]})}}var $O=Bn(Pm,1e3);async function Pm(e,t,n){try{if(t===null)return"noupdate";let r=await Rt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ni(t.proSyncAPIKey,t);return await $h(e,c),await Dt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await $8(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Hv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ni(t.proSyncAPIKey,t);return await $h(e,u),await Dt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||qv(n)&&$O(n.token,e,t)},[e,n])}function X8(){let[e,t]=N(null);return q(()=>{nt.get(pt,null).then(n=>{t(n)})},[t]),e}function $8(e){return(location.href?.indexOf("popup.html")>0?Or:$)({responseType:"json",url:ct+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function $h(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Or:$)({responseType:"json",url:ct+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var J8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),eN=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),tN=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var nN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${F}-modal-overlay`&&r()},id:`${F}-modal-overlay`,children:d("div",{style:i,children:t})})},eS=nN;var t1="Arial",dc=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===t1.toLowerCase()?!0:tS(t1,t).join("")!==tS(e,t).join("")}catch{return!1}};function tS(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+t1,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function n1(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||tr(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function nS(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",r1(t),"AES-GCM",!0,["encrypt","decrypt"]),a=r1(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:r1(n)},r,a);return rN(i)}catch{return Promise.reject("Encryption failed")}}function rN(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=R.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let U=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),U.enableAIContext&&(L.ai_assistant="ai_context"),U&&(U.provider&&(L.translation_service_provider=U.provider),n.translationService==="openai"&&U.provider==="custom"&&(U.apiUrl?U.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),U.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=Rd(v);let U=Fd(v);L.install_week=`${U.year}${U.week}`}if(n.user){let U=Ky(n.user);U&&Object.keys(U).forEach(z=>{L[z]=U[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=T?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let U=n.url;try{let z=new URL(U);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),y&&(L.ab_group=y),L.campaign=b||"none",{...R,params:L}});if(i)return;M.forEach(async R=>{let L=await $({responseType:"text",url:R,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&aN(p,P),n.config.enablePerformanceReport&&sN(n,P)}catch(r){k.debug("report error",r)}}function aN(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};rS(r);let a=Date.now()+(Math.random()*100).toFixed(0);$({url:Cl,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var iN=Date.now(),oN=["translate_page","translate_video_subtitle"];function sN(e,t){try{t.forEach(async n=>{if(!oN.includes(n.name)||e.config.performanceBlockUrls?.some(l=>dt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};rS(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-iN},s=await nS(JSON.stringify(o),Ay,ky);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);$({url:Cl,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function rS(e){return e?.install_day&&(e.install_day=Id(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function a1(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function aS(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}function iS(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_20007_2576)",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),d("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),d("defs",{children:d("clipPath",{id:"clip0_20007_2576",children:d("rect",{width:"16",height:"16",fill:"white"})})})]})}function Rm(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function to({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=He(),[m,g]=N(!1),[p,f]=N(""),[h,y]=N(""),[b,v,C,x,w]=Se(me),S=Mm(i),T=P=>{v(R=>{let L={...R,[n]:P};return n==="translationService"&&(Ne("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${P}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},A=ne(()=>{if(!t)return[];t.user=i??t.user;let P=Ls(t,n,l);return o?.length&&(P=P.filter(R=>o.find(L=>L==R.id))),P},[t,i,n,l,o]),D=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:P}=e,R=t[n],L=P?.[R],_=tc(L,t.localConfig.aiAssistants||[]);if(_&&L){let U=du(_);return{...L,...U,aiAssistant:_}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let P=t[n];return Ms(t,n,l,P)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(le,{children:[d("div",{class:"nav",children:[d(be,{title:r||u("service"),description:a||u("select translation service")}),d(uN,{selectService:T,translationServiceItems:A,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!S,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(lN,{verifiedErrorMessage:p}),d(cN,{ctx:t,curServiceConfig:D,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:h,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(o1,{config:e,curServiceItem:M,setSettings:v,isProUser:!!S,t:u}),d(s1,{curServiceItem:M,t:u}),d(u1,{curServiceItem:M,t:u}),d(i1,{currentTranslationServiceItem:M,t:u}),l1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!S,t:u}),c1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!S,t:u})]})]})}function i1({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function uN({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:rd(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function lN({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function cN({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await tt(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await gr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){k.debug("e.status",c.status),k.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){k.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function o1({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(n1,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function s1({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function u1({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function l1({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(le,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l,hidden:c,descriptionKey:m,disableTipText:g}=sS(a,e,t,n,o,i);return d("div",{class:"mt-2",hidden:c,children:[d(ca,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:{...o,descriptionKey:m},value:u,disabled:l,onSetSettings:r,disableTipText:g,onChange:p=>{r(f=>{let h=f.translationServices||{},y=h[n.id]||{};return uS(e,y,o.name,p),{...f,translationServices:{...h,[n.id]:{...y,[o.name]:p}}}})},onFinish:()=>{rt(i("saved"))}},o.name+n.id),d(dN,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function c1({isProUser:e,config:t,curServiceConfig:n,curServiceItem:r,setSettings:a,t:i,forceExpand:o}){if(!n||!t||!r?.optionalProps?.length||!a)return null;let s=r?.id.startsWith("custom-ai"),u=d(le,{children:[d("div",{children:r.optionalProps.map((l,c)=>{let{value:m,disabled:g,hidden:p,descriptionKey:f}=sS(e,t,n,r,l,i);return n?.aiAssistant&&!n?.aiAssistant?.enableRichTranslate&&l.name=="enableRichTranslate"?null:d("div",{class:"mt-2",hidden:p,children:d(ca,{config:t,service:r?.id,disabled:g,field:{...l,descriptionKey:f},value:m,onSetSettings:a,onChange:h=>{a(y=>{let b=y.translationServices||{},v=b[r.id]||{};return uS(t,v,l.name,h),{...y,translationServices:{...b,[r.id]:{...v,[l.name]:h}}}})},onFinish:()=>{rt(i("saved"))}},l.name+r.id+n.assistantId+n.fallbackAssistantId)},"service-item-optional-prop-"+l.name+c)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:l=>{l.preventDefault(),window.confirm(i("confirmResetToDefaultSettings"))&&a(m=>{let g=m.translationServices||{};setTimeout(()=>window.location.reload(),50);let p=g[r.id]||{};if(s){let f=["type","name","extends","apiUrl","APIKEY"];Object.keys(p).forEach(h=>{f.includes(h)||delete p[h]})}else p={};return{...m,translationServices:{...g,[r.id]:p}}})},children:i("resetToDefaultSettings")})]});return o?u:d(le,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[i("moreOptions"),"\xA0\u{1F449}"]}),u]})})}function dN({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=ue(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ca,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{rt(a("saved"))}})}function oS(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function sS(e,t,n,r,a,i){let o="",s=a.descriptionKey,u=!1;if(!a)return{value:"",hidden:u,disabled:!1};let l=!1;n.aiAssistant&&["systemPrompt","prompt","multiplePrompt","subtitlePrompt","enableRichTranslate","maxTextGroupLengthPerRequestForSubtitle","maxTextGroupLengthPerRequest","maxTextLengthPerRequest"].includes(a.name)&&(l=!0);let c=n[a.name];return a.name=="enableRichTranslate"&&(t.translationMode=="dual"?c=n.dualEnableRichTranslate??n.enableRichTranslate:t.translationMode=="translation"&&(c=n.translationEnableRichTranslate??n.enableRichTranslate)),a.descriptionKey=="description.enableRichTranslate"&&t.translationMode=="dual"&&n.dualEnableRichTranslate!=null&&n.extends=="ai"&&(a.descriptionKey="description.aiDualEnableRichTranslate"),a.descriptionKey=="description.aiDualEnableRichTranslate"&&t.translationMode=="translation"&&(a.descriptionKey="description.enableRichTranslate"),a.name==="apiUrl"&&r?.id==="openai"&&n?.APIKEY?.startsWith("immersiveopenai_")&&(l=!0,c=`https://openai-api.${et}/v1/chat/completions`),a.name=="placeholderDelimiters"&&(a.default=n.placeholderDelimiters||a.default),a.name=="enableAIContext"&&n.aiAssistant&&(l=!0,o=i("enableAIContext.aiAssistantDisableTips")),a.name=="enableAIContext"&&(a.descriptionLink1=fl,e||(l=!0,c=!1,o=i("onlyProUseProTooltip",{1:hy+"enableAIContext"}))),a.name=="enableAIContext"&&!Da(nr(),"1.12.1")&&(u=!0),a.name=="enableAIContext"&&(s=d(le,{children:[d("span",{dangerouslySetInnerHTML:{__html:i(a.descriptionKey||"",{1:a.descriptionLink1})}}),d(yt,{containerStyle:{display:"inline-flex"},text:i("description.enableAIContextTip"),tipStyle:{width:200},multiple:!0,enableMobile:!0,children:d(Rm,{})})]})),{value:c,hidden:u,disabled:l,descriptionKey:s,disableTipText:o}}function uS(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function lS(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function cS(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function dS(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function mS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function gS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function pS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function fS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var bS=nm();function Im(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=cn(o);Ze(t,n);let[u,l]=Y8(),[c,m]=N(null);return q(()=>()=>{Kt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[d(mN,{}),d(TN,{config:o,user:c,setUser:m}),d(yN,{config:o}),d(to,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(gN,{config:o}),d(RN,{config:o}),d(vN,{config:o}),d(CN,{config:o}),d(xN,{config:o}),d(SN,{config:o}),d(pN,{config:o,ctx:s}),d(bN,{setSettings:n,config:o}),d(eS,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${F}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function mN(){let[e,t,n,r,a]=Se(me),i=ft(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Yl({...i,isShowContextMenu:!0}),a({...Po(),updatedAt:new Date().toISOString()}),Vs().catch(c=>{k.error("clean local config error",c)}),ma().catch(c=>{k.error("clean cache error",c)}),rt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ma().then(()=>{rt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(mS,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(gS,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function gN({config:e}){let[t,n,r,a,i]=Se(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(be,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),X(!0)||setTimeout(()=>{Yl()},200)},children:Wi(Td,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function pN({config:e,ctx:t}){let{t:n}=O(),r=Oe(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>DN(l),[l]),f=ue(Bn((v,C)=>{a&&i(x=>{let w=x.translationThemePatterns||{};return{...x,translationTheme:C,translationThemePatterns:{...w,[C]:v}}})},400),[i]),h=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return q(()=>{m&&(Xs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(le,{children:[d(hN,{translationTheme:l,onChange:v=>{let C=v.target;h(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),b(),d(MN,{config:e}),d(fN,{translationThemes:Lf,selectedTheme:l,selectDisplay:h})]})})]});function y(){return d(le,{children:d("font",{class:tu(l,!1,[],!1).join(" "),children:d("font",{class:nu(l).join(" "),children:n("sampleTargetText")})})})}function b(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let x=m||{},w=`theme-${l}-${v.name}`,S=vx(w)||v.default||void 0,T=x[v.name]||S;return d(ca,{config:e,field:v,value:T,onSetSettings:i,onChange:A=>{g(D=>(Xs(document,l,{...D,[v.name]:A},a.selectTranslationFont),{...D,[v.name]:A}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function fN({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:tu(a,!1,[],!1).join(" "),children:d("font",{class:nu(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function hN({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(be,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:Lf.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function bN({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(h=>{let y=h.translationThemePatterns||{},b=y[p]||{},v=b.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=qn(g,C),{...h,translationThemePatterns:{...y,[p]:{...b,matches:C}}}})},c=(g,p)=>{e(f=>{let h=f.translationThemePatterns||{},y=h[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...h,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(da,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(qa,{urls:LN(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function yN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O();if(!e)return null;let s=l=>{eu({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=eo(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Wi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),{handleTranslationLanguagePatternSelected:s}=yS(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(cc,{title:t("always languages"),description:t("always translate the following languages"),languages:bS,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function CN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),{handleTranslationLanguagePatternSelected:s}=yS(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(cc,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:bS,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function xN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];if(g==="edit"){if(!b[c])return p;b[c]=l}return b=qn(l,b),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Rt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],h=f.filter(b=>b.match!==p),y=!1;h.length!==f.length&&(y=!0),y&&Dt({...m,tempTranslationUrlMatches:[...h]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(h=>{f=Jt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function SN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];return g==="edit"&&(v[c]=l),b=Jt(l,h),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(h=>{f=Jt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function yS(e){return{handleTranslationLanguagePatternSelected:ue((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var d1=0,g1;async function vS(e){if(d1>60*10)return null;d1++,nt.refresh(),await tt(300);let t=await nt.get(pt,null);k.debug("loopCheckUser",d1,t),t?(clearTimeout(g1),e(t)):g1=setTimeout(vS.bind(null,e),1500)}function hS(e){let{user:t,lang:n}=e,r=He(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=kN(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):Gy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function TN({config:e,user:t,setUser:n}){let{t:r}=O(),a=He(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=Se(me),m=e.interfaceLanguage;q(()=>(nt.get(pt,null).then(h=>{h&&(n(h),wN(h.token).then(y=>{let b=y.data;b.token=h.token,nt.set(pt,b),n(b),Oo()}).catch(y=>{Ol(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(g1)}),[]);let g=ue(h=>{h&&h.preventDefault&&h.preventDefault(),t?.token&&EN(t.token).finally(async()=>{await nt.remove(pt),await tt(200),await nt.refresh(),n(null),Oo()})},[t]),p=ue(async h=>{px()&&(h&&h.preventDefault&&h.preventDefault(),AN(Ts),await nt.set(gl,!0),vS(y=>{Pm(y.token,o,s),n(y),p1?.close(),window.location.reload()}))},[n]),f=t?.avatar||V8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?tr(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(hS,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Ln}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:gi})]}),d("div",{class:"",children:d("a",{href:`${Li}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:gi})]}),d(hS,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Li,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):tr(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:iy,onClick:p,children:r(a?"loginForSafari":"login")})]})}function wN(e){return $({responseType:"json",url:ct+"v1/user",method:"get",headers:{token:e}})}function EN(e){return $({responseType:"json",url:ct+"v1/user/logout",method:"delete",headers:{token:e}})}var p1=null;function AN(e){let r=screen.width/2-230,a=screen.height/2-640/2;return p1=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),p1}function kN(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function DN(e){let t=[];return dl[e]&&(t=t.concat(dl[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function LN(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var m1="";function MN({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(PN,{config:e,isOpen:n})]})}function PN({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);q(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(h=>dc(h,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(h=>h===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=Se(me),g=p=>{p!==m1&&!dc(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let h=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&h&&f.translationThemePatterns&&f.translationThemePatterns[h]&&(y=f.translationThemePatterns[h]),Xs(document,h,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(m1))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let h=n(`font.${p}`);h.startsWith("font.")&&(h=p);let y=p=="none"?m1:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:h},"locale"+f)})})]})}function RN({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function rn(e){return we.ASSETS_BASE_URL+e}var Fm=!1;function f1(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=cn(o);Ze(t,n);let{t:u,lang:l}=O(),c=s&&Ds(s,"translationService",l)||[],m=_o(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),h=Ms(s,"translationService",l,f);return d(BN,{service:f,currentTranslationServiceItem:h,ctx:s})},[m,c]);!Fm&&m==="#services"&&(Fm=!0),q(()=>()=>Fm=!1,[]),q(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Bl(8)}`;if(s?.config.translationServices[f]){p();return}await n(h=>{let y=h.translationServices||{},b=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${b+2}`,{...h,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(yl,"_blank"),children:d(aS,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(yl,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(IN,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function IN({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=Se(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!ai.find(I=>I==e.id),[e]),m=ue(I=>{i(P=>{let R=P.translationServices?.[e.id]||{};return{...P,translationServices:{...P.translationServices,[e.id]:{...R,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},h=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=He(),b=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,b,e.id,e.ok]),x=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!S||i(P=>{Ne("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${P.translationService}_${e.id}`}}],t);let R={...P,translationService:e.id};return R.translationServiceChangedbyUserAt=new Date().toISOString(),R}))},w=t.translationService===e.id,S=w||t4(l,r),T=n("translationServices."+e.id),A=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:F+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:F+"-link"}}),D=e.id;return v&&(T=`${e.name||""} (${n("translationServices.custom-ai")})`,A="",D="custom-ai"),d("div",{class:"service-container","data-selected":w?"true":"false","data-configed":S,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:rn(`images/${D}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:T})]}),d(yt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:S,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:A}}),h&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:x,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),S&&(I=!0),I}}function FN(e,t){let[n,r]=N(!1),[a]=Se(me),[i,o]=N("");return[ue(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await gr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function BN({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=ft(a),{t:c}=O(),m=Mm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,x=t?.id||"",w=C?.[x],S=tc(w,n.localConfig.aiAssistants||[]);if(S&&w){let T=du(S);return{...w,...T,aiAssistant:S}}return w?{...w}:{}}return null},[l,n,t,e]),[p,f,h]=FN(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,b=g?.type,v=c("translationServices."+e)+" "+c("setting");if(b){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(le,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!Fm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&h==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),h&&h!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:h}})}),y&&d("article",{children:[d(o1,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(s1,{curServiceItem:t,t:c}),d(u1,{curServiceItem:t,t:c}),d(i1,{currentTranslationServiceItem:t,t:c}),l1({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),c1({isProUser:!!m,config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(oS,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function pa(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var _N=xn+"assets/uploads/default-oade4Y.png";function xS({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=ue(()=>m(_N),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:h}=Sm(),y=Oe(),[b,v]=y;Ze(b,v);let C=ft(b);q(()=>{Ah(e).then(w=>{a(w),m(w.avatar),o({name:w.i18n[t]?.name||w.name,description:w.i18n[t]?.description||w.description,details:w.i18n[t]?.details||w.details}),u(lt.sanitize(w.i18n[t]?.details||w.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let x=p?.some(w=>w.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:w=>{if(w.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(yt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:di(r),children:d(h1,{assistantID:e,enable:di(r),handleInstall:f,operateLoading:h,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),x&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(b1,{aiAssistant:r,isInstall:x}),C&&d(le,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(le,{children:ON.map((w,S)=>d("div",{className:"mt-2",children:d(ca,{service:"ai",config:C,field:w,value:r[w.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},S)},"custom-assistants-prop-"+S))})]})]})}function h1({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=Ce(null);return q(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(fS,{}):d(pS,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${F}-loading-spinner`})]})]})})}function b1({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=Se(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Ud(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...h],b=u[p];if(e.matches?.find(C=>C===b))y=CS(e.matches||[],h,[b]),y.push(g);else{let C=y.findIndex(x=>x.endsWith(b));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,h)=>{if(h==="edit")return l(g,p);a(y=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...b],C=e.matches?.find(w=>w===g),x=b.find(w=>w.endsWith(g));if(C&&x){if(!x.startsWith("[-]"))return;v=v.filter(w=>w!==x)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=CS(e.matches||[],h,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(Ho,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function CS(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var ON=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function SS(e){let t=Oe(),[n,r]=t;Ze(n,r);let a=ft(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=UN({id:e.assistantID,userConfig:n,setSettings:r}),l=ue(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(le,{children:NN.map((c,m)=>d("div",{class:"mt-2",children:d(ca,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{rt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(b1,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var NN=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function UN({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=ue(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=ue(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var Bm=!1,jN=xn+"assets/uploads/default-oade4Y.png";function y1(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=qN(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let x=v.priority||1e3,w=C.priority||1e3;return x-w})),[o,e]);q(()=>{(async()=>{try{r(!0);let v=await Eh(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Ze(c,m);let g=ft(c),p=cn(g),f=p?.config.interfaceLanguage||"zh-CN",h=_o(),{t:y}=O();q(()=>{wh(void 0,void 0,!0)},[]),!Bm&&h==="#ai"&&(Bm=!0),q(()=>()=>Bm=!1,[]);let b=ne(()=>{if(!h.startsWith("#ai/"))return null;let v=h.slice(4);return v.startsWith("custom")?d(SS,{assistantID:v}):d(xS,{assistantID:v,lang:f,hasAssistantsRoute:Bm})},[h,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(at,{children:d(me.Provider,{value:l,children:[h==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(pa,{image:rn("images/assistant_intro.png"),nightImage:rn("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${F}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(HN,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${F}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),b]})})}function HN({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=ue(()=>i(jN),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=Sm();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(yt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:di(e),children:d(h1,{assistantID:e.id,enable:di(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function qN(){let e=Ce(!1),{t}=O(),[n,r]=Oe();Ze(n,r);let a=n?.customAiAssistants||[];return q(()=>{!n||e.current||(async()=>{try{let s=(await nc()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),No("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return k.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Bl(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var ar={};q0.forEach(e=>{e.labelKey&&(ar[e.key]=e.labelKey)});function v1(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let[o,s]=N(null),{t:u}=O();if(q(()=>{Je().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(zN,{config:l}),d(VN,{config:l,ctx:o}),d(WN,{config:l}),d(to,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(GN,{config:l}),d(KN,{config:l}),d(QN,{config:l}),d(YN,{config:l})]})})}function zN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O();return e?d(le,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${xn}videos/input-translation-demo-202307044.mp4`:`${xn}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function VN({config:e,ctx:t}){let[n,r,a,i,o]=Se(me),{t:s}=O(),u=c=>{r(m=>({...m,inputTargetLanguage:c}))};if(!e)return null;let l=eo(t.inputTranslationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:s("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?s("inputTargetLanguageDescriptionForNoneKey"):s("inputTargetLanguageDescription",{startingKey:ar[e.inputStartingTriggerKey]?s(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),u(c.target.value)},children:Wi(l,12,e.interfaceLanguage).filter(c=>c!=="auto").map((c,m)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Ot(c,e.interfaceLanguage)},"language"+m))})]})}function WN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function GN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(be,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:q0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function KN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:q0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function YN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O(),[s,u]=N(!1),l=b=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(b,v,C,x)=>{l(C),n(w=>{let S=w.inputTranslationUrlPattern,T=[],A=[];S&&S.matches&&S.excludeMatches&&(T=S.matches,A=S.excludeMatches);let D=[...T],M=[...A];return x==="edit"&&(C==="matches"?D[v]=b:M[v]=b),C==="matches"?(D=qn(b,D),M=Jt(b,A)):(D=Jt(b,T),M=qn(b,M)),{...w,inputTranslationUrlPattern:{...w.inputTranslationUrlPattern,matches:D,excludeMatches:M}}})},h=(b,v)=>{n(C=>{let x=C.inputTranslationUrlPattern,w=[];v==="matches"?x&&x.matches&&(w=x.matches):x&&x.excludeMatches&&(w=x.excludeMatches);let S=[...w];return b.forEach(T=>{S=Jt(T,S)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:S}}})},y=(b,v,C)=>{l(v),p(b),m(C)};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(da,{toggleModal:b=>{b.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(qa,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:h,onEditUrl:y})]}):null}function QN({config:e}){let[t,n,r,a,i]=Se(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(be,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function C1(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return q(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(tU,{}),d(eU,{}),d(JN,{}),d(ZN,{}),d(XN,{}),d($N,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function JN(){let[e,t,n,r,a]=Se(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),rt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),rt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ +`,gi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var q8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=",z8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",V8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",W8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function QO(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Ia(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Xh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Ne(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[b,y]=N({});q(()=>{n&&v().then(()=>g(!1))},[n]);let h=S=>{S?.target?.id===F+"-overlay"&&t()};function v(){return new Ia(n).listAll().then(A=>{c(A)}).catch(A=>r())}function C(S){if(S.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let A=F+"-config-"+zs()+".json";new Ia(n).uploadConfig(i,A).catch(D=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function x(S,A,D){S.preventDefault(),y({[D]:!0}),new Ia(n).getConfig(A).then(M=>{o(()=>({...M})),at(a("importSuccess"))}).catch(M=>{k.error(M),bt(a("importFail"))}).finally(()=>y({}))}function w(S,A){new Ia(n).getConfig(S).then(D=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(D,null,2))),M.setAttribute("download",A),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(D=>{k.error("download google config file failed",D),bt(a("downloadFail")+": "+D.message)})}function T(S){S.preventDefault(),o({...i,autoSync:!1}),Gi.revoke(n).then(()=>t())}return d("dialog",{id:F+"-overlay",onClick:h,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:S=>{S.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((S,A)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:D=>{D.preventDefault(),w(S.id,S.name)},class:"block truncate w-40 sm:w-auto",children:S.name.replace(F+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(S.modifiedTime).toLocaleString(),",\xA0",Tl(parseInt(S.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":b[A],disabled:b[A],onClick:D=>x(D,S.id,A),children:a("import_hint")}),d(QO,{accessToken:n,id:S.id,listAllFiles:v})]})]},"file"+A))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:T,disabled:m,children:a("revokeAuth")})]})]})})}function qa(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=ns([]);function ft(e){let[t,n]=N(null);return q(()=>{Qe().then(r=>{n(r),k.debug("current config",r)})},[]),q(()=>{Qe().then(r=>{n(r)})},[e]),t}function cn(e){let[t,n]=N(null);return q(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function G8(){let[e,t]=N(!1),n=tr();return q(()=>{X(!0)&&(!n||n=="0.0.0"||qa(n,"0.9.0")||t(!0))},[n]),[e,t]}function ma(){let[e,t]=N(null);return q(()=>{Rt().then(r=>{t(r)})},[]),[e,r=>{t(r),Dt(r)}]}function Lm(e){let[t,n]=N(null);return q(()=>{nt.get(pt,null).then(r=>{n(r?kt(r):!1)}).catch(r=>{n(!1)})},[]),q(()=>{n(kt(e))},[e]),t}var it=class extends co{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(k.error("ErrorBoundary",this.error,this.info),d(JO,{error:this.error,info:this.info})):this.props.children}};function JO({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var K8=k;function ZO(){let[e,t]=N(null);return q(()=>{Qe().then(n=>{t(n)})},[]),e}function e1(){let[e,t,n,r,a]=Ne(),i=ZO();Je(e,t);let{t:o,setLang:s}=O(),[u,l]=ma();if(!i)return null;return d(it,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!fs()&&d(g,{}),d(p,{config:i})]})});function c(){let f=h=>{h.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Po(),updatedAt:new Date().toISOString()}),Vs().catch(v=>{K8.error("clean local config error",v)}),da().catch(v=>{K8.error("clean cache error",v)}),at(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},b=h=>{t(()=>({...h}))},y=h=>{h.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let x=C.target,w=new FileReader;w.onload=function(){try{let T=JSON.parse(w.result);b(T),at(o("successImportConfig"))}catch(T){bt(`Invalid JSON ${T.message}`)}},w.readAsText(x.files[0])},v.click(),document.body.removeChild(v)};return d(le,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[$O,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:h=>{if(h.preventDefault(),fs()){let v=Se();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});po.saveAs(v,F+"-config-"+zs()+".txt")}},role:"button",children:[eN,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(!1),[x,w]=N("");q(()=>{if(tl()&&n){let R=localStorage.getItem(rl);if(localStorage.removeItem(rl),R){let L=globalThis.localStorage.getItem(Tf);k.debug("import_export","rawAuthInfoStr",L);let _={},U={},z="";if(L){globalThis.localStorage.removeItem(Tf);try{_=JSON.parse(L),U=_.state||{},z=_.access_token||""}catch(Y){k.error("parse state error",Y)}}if(z&&U&&(Gi.setAuthInfo({access_token:z}),k.debug("import_export","Google OAuth:",_),_)){let Y=_.state;k.debug("state",Y),Y?.mode==="auto"?(h(!0),I(z)):(C(!0),D(z))}}}},[n]);function T(){h(!0),G4({source:globalThis.location.href,mode:"auto"},!0).then(R=>{k.debug("import_export","Google OAuth:"+R),R!==null&&I(R)}).catch(R=>{R&&R.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(R)})}function S(){C(!0),b(!1),G4({source:globalThis.location.href,mode:"manual"},!0).then(R=>{k.debug("import_export","Google OAuth:"+R),R!==null&&D(R)}).catch(R=>{R&&R.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(R)})}function A(){w(""),T()}function D(R){w(R),C(!1),b(!0)}function M(R){h(!1),C(!1),b(!1),t({...e,autoSync:!1}),k.error("import_export","Google OAuth error:"+R),bt(o("authFail"))}function I(R){h(!0),k.debug("sync latest with drive",R,e),w(R),nm(R,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?at(o("successSyncConfig")):at(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{h(!1)})}function P(R){t({...e,autoSync:R.checked}),R.checked&&T()}return d(le,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:R=>{R.preventDefault(),T()},"aria-busy":y,href:"#",role:"button",children:[y?d(le,{}):Y8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:R=>{R.preventDefault(),S()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Xh,{onClose:()=>b(!1),authExpire:A,accessToken:x}):null]})}function p({config:f}){let b=J8(),[y,h]=N(!1),[v,C]=N(""),[x,w]=N(""),{t:T}=O();if(!b||!b.token)return null;let S=kt(b);async function A(){confirm(T("proRightOpenPro"))?window.open(gy):k.debug("\u53D6\u6D88\u4F1A\u5458")}async function D(){if(!S){A();return}try{if(y)return;h(!0),w("");let L=await Mm(b?.token,e,a),_="";switch(L){case"upload":{_=T("successSyncConfigToAccount");break}case"override":{_=T("successSyncConfigInAccount");break}default:_=T("syncConfigNoUpdate")}C(_)}catch(L){C(""),w(L.message)}finally{h(!1)}}let M=ue(L=>{if(!S){A();return}l({...u,proAutoSync:L})},[]),I=ue(L=>{if(!S){A();return}t(_=>({..._,proSyncAPIKey:L}))},[]),P=u?.proAutoSync!=!1,R=e?.proSyncAPIKey!=!1;return S||(P=!1,R=!1),d(le,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!P)},checked:P}),T("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!R)},checked:R}),T("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),D()},"aria-busy":y,href:"#",role:"button",children:[Y8," ",T("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&!v&&u?.accountLastSyncedAt&&S),children:T("lastSyncedAt",{date:LC(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:He()||S,children:d("span",{dangerouslySetInnerHTML:{__html:T("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!x,children:x})]})}}var XO=Bn(Mm,1e3);async function Mm(e,t,n){try{if(t===null)return"noupdate";let r=await Rt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ni(t.proSyncAPIKey,t);return await $h(e,c),await Dt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await Z8(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Uv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ni(t.proSyncAPIKey,t);return await $h(e,u),await Dt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||jv(n)&&XO(n.token,e,t)},[e,n])}function J8(){let[e,t]=N(null);return q(()=>{nt.get(pt,null).then(n=>{t(n)})},[t]),e}function Z8(e){return(location.href?.indexOf("popup.html")>0?_r:$)({responseType:"json",url:ct+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function $h(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?_r:$)({responseType:"json",url:ct+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var Y8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),$O=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),eN=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var tN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${F}-modal-overlay`&&r()},id:`${F}-modal-overlay`,children:d("div",{style:i,children:t})})},X8=tN;var t1="Arial",cc=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===t1.toLowerCase()?!0:$8(t1,t).join("")!==$8(e,t).join("")}catch{return!1}};function $8(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+t1,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function n1(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function eT(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",r1(t),"AES-GCM",!0,["encrypt","decrypt"]),a=r1(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:r1(n)},r,a);return nN(i)}catch{return Promise.reject("Encryption failed")}}function nN(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=R.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let U=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),U.enableAIContext&&(L.ai_assistant="ai_context"),U&&(U.provider&&(L.translation_service_provider=U.provider),n.translationService==="openai"&&U.provider==="custom"&&(U.apiUrl?U.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),U.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=Pd(v);let U=Id(v);L.install_week=`${U.year}${U.week}`}if(n.user){let U=Wy(n.user);U&&Object.keys(U).forEach(z=>{L[z]=U[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=S?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let U=n.url;try{let z=new URL(U);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),y&&(L.ab_group=y),L.campaign=h||"none",{...R,params:L}});if(i)return;M.forEach(async R=>{let L=await $({responseType:"text",url:R,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&rN(p,P),n.config.enablePerformanceReport&&oN(n,P)}catch(r){k.debug("report error",r)}}function rN(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};tT(r);let a=Date.now()+(Math.random()*100).toFixed(0);$({url:vl,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var aN=Date.now(),iN=["translate_page","translate_video_subtitle"];function oN(e,t){try{t.forEach(async n=>{if(!iN.includes(n.name)||e.config.performanceBlockUrls?.some(l=>dt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};tT(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-aN},s=await eT(JSON.stringify(o),wy,Ey);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);$({url:vl,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function tT(e){return e?.install_day&&(e.install_day=Rd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function a1(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function nT(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}function rT(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_20007_2576)",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),d("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),d("defs",{children:d("clipPath",{id:"clip0_20007_2576",children:d("rect",{width:"16",height:"16",fill:"white"})})})]})}function Pm(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function to({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=He(),[m,g]=N(!1),[p,f]=N(""),[b,y]=N(""),[h,v,C,x,w]=Te(me),T=Lm(i),S=P=>{v(R=>{let L={...R,[n]:P};return n==="translationService"&&(Be("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${P}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},A=ne(()=>{if(!t)return[];t.user=i??t.user;let P=Ls(t,n,l);return o?.length&&(P=P.filter(R=>o.find(L=>L==R.id))),P},[t,i,n,l,o]),D=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:P}=e,R=t[n],L=P?.[R],_=ec(L,t.localConfig.aiAssistants||[]);if(_&&L){let U=du(_);return{...L,...U,aiAssistant:_}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let P=t[n];return Ms(t,n,l,P)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(le,{children:[d("div",{class:"nav",children:[d(be,{title:r||u("service"),description:a||u("select translation service")}),d(sN,{selectService:S,translationServiceItems:A,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!T,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(uN,{verifiedErrorMessage:p}),d(lN,{ctx:t,curServiceConfig:D,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:b,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(o1,{config:e,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),d(s1,{curServiceItem:M,t:u}),d(u1,{curServiceItem:M,t:u}),d(i1,{currentTranslationServiceItem:M,t:u}),l1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),c1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!T,t:u})]})]})}function i1({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function sN({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:nd(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function uN({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function lN({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await tt(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await sa({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){k.debug("e.status",c.status),k.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){k.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function o1({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(n1,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function s1({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function u1({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function l1({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(le,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l,hidden:c,descriptionKey:m,disableTipText:g}=iT(a,e,t,n,o,i);return d("div",{class:"mt-2",hidden:c,children:[d(la,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:{...o,descriptionKey:m},value:u,disabled:l,onSetSettings:r,disableTipText:g,onChange:p=>{r(f=>{let b=f.translationServices||{},y=b[n.id]||{};return oT(e,y,o.name,p),{...f,translationServices:{...b,[n.id]:{...y,[o.name]:p}}}})},onFinish:()=>{at(i("saved"))}},o.name+n.id),d(cN,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function c1({isProUser:e,config:t,curServiceConfig:n,curServiceItem:r,setSettings:a,t:i,forceExpand:o}){if(!n||!t||!r?.optionalProps?.length||!a)return null;let s=r?.id.startsWith("custom-ai"),u=d(le,{children:[d("div",{children:r.optionalProps.map((l,c)=>{let{value:m,disabled:g,hidden:p,descriptionKey:f}=iT(e,t,n,r,l,i);return n?.aiAssistant&&!n?.aiAssistant?.enableRichTranslate&&l.name=="enableRichTranslate"?null:d("div",{class:"mt-2",hidden:p,children:d(la,{config:t,service:r?.id,disabled:g,field:{...l,descriptionKey:f},value:m,onSetSettings:a,onChange:b=>{a(y=>{let h=y.translationServices||{},v=h[r.id]||{};return oT(t,v,l.name,b),{...y,translationServices:{...h,[r.id]:{...v,[l.name]:b}}}})},onFinish:()=>{at(i("saved"))}},l.name+r.id+n.assistantId+n.fallbackAssistantId)},"service-item-optional-prop-"+l.name+c)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:l=>{l.preventDefault(),window.confirm(i("confirmResetToDefaultSettings"))&&a(m=>{let g=m.translationServices||{};setTimeout(()=>window.location.reload(),50);let p=g[r.id]||{};if(s){let f=["type","name","extends","apiUrl","APIKEY"];Object.keys(p).forEach(b=>{f.includes(b)||delete p[b]})}else p={};return{...m,translationServices:{...g,[r.id]:p}}})},children:i("resetToDefaultSettings")})]});return o?u:d(le,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[i("moreOptions"),"\xA0\u{1F449}"]}),u]})})}function cN({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=ue(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(la,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{at(a("saved"))}})}function aT(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function iT(e,t,n,r,a,i){let o="",s=a.descriptionKey,u=!1;if(!a)return{value:"",hidden:u,disabled:!1};let l=!1;n.aiAssistant&&["systemPrompt","prompt","multiplePrompt","subtitlePrompt","enableRichTranslate","maxTextGroupLengthPerRequestForSubtitle","maxTextGroupLengthPerRequest","maxTextLengthPerRequest"].includes(a.name)&&(l=!0);let c=n[a.name];return a.name=="enableRichTranslate"&&(t.translationMode=="dual"?c=n.dualEnableRichTranslate??n.enableRichTranslate:t.translationMode=="translation"&&(c=n.translationEnableRichTranslate??n.enableRichTranslate)),a.descriptionKey=="description.enableRichTranslate"&&t.translationMode=="dual"&&n.dualEnableRichTranslate!=null&&n.extends=="ai"&&(a.descriptionKey="description.aiDualEnableRichTranslate"),a.descriptionKey=="description.aiDualEnableRichTranslate"&&t.translationMode=="translation"&&(a.descriptionKey="description.enableRichTranslate"),a.name==="apiUrl"&&r?.id==="openai"&&n?.APIKEY?.startsWith("immersiveopenai_")&&(l=!0,c=`https://openai-api.${et}/v1/chat/completions`),a.name=="placeholderDelimiters"&&(a.default=n.placeholderDelimiters||a.default),a.name=="enableAIContext"&&n.aiAssistant&&(l=!0,o=i("enableAIContext.aiAssistantDisableTips")),a.name=="enableAIContext"&&(a.descriptionLink1=pl,e||(l=!0,c=!1,o=i("onlyProUseProTooltip",{1:py+"enableAIContext"}))),a.name=="enableAIContext"&&!ka(tr(),"1.12.1")&&(u=!0),a.name=="enableAIContext"&&(s=d(le,{children:[d("span",{dangerouslySetInnerHTML:{__html:i(a.descriptionKey||"",{1:a.descriptionLink1})}}),d(yt,{containerStyle:{display:"inline-flex"},text:i("description.enableAIContextTip"),tipStyle:{width:200},multiple:!0,enableMobile:!0,children:d(Pm,{})})]})),{value:c,hidden:u,disabled:l,descriptionKey:s,disableTipText:o}}function oT(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function sT(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function uT(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function lT(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function cT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function dT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function mT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function gT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var fT=tm();function Rm(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=cn(o);Je(t,n);let[u,l]=G8(),[c,m]=N(null);return q(()=>()=>{Kt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[d(dN,{}),d(TN,{config:o,user:c,setUser:m}),d(bN,{config:o}),d(to,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(mN,{config:o}),d(PN,{config:o}),d(yN,{config:o}),d(vN,{config:o}),d(CN,{config:o}),d(xN,{config:o}),d(gN,{config:o,ctx:s}),d(hN,{setSettings:n,config:o}),d(X8,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${F}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function dN(){let[e,t,n,r,a]=Te(me),i=ft(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Kl({...i,isShowContextMenu:!0}),a({...Po(),updatedAt:new Date().toISOString()}),Vs().catch(c=>{k.error("clean local config error",c)}),da().catch(c=>{k.error("clean cache error",c)}),at(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),da().then(()=>{at(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(cT,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(dT,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function mN({config:e}){let[t,n,r,a,i]=Te(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(be,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),X(!0)||setTimeout(()=>{Kl()},200)},children:Wi(Td,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function gN({config:e,ctx:t}){let{t:n}=O(),r=Ne(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>kN(l),[l]),f=ue(Bn((v,C)=>{a&&i(x=>{let w=x.translationThemePatterns||{};return{...x,translationTheme:C,translationThemePatterns:{...w,[C]:v}}})},400),[i]),b=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return q(()=>{m&&(Xs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(le,{children:[d(fN,{translationTheme:l,onChange:v=>{let C=v.target;b(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),h(),d(LN,{config:e}),d(pN,{translationThemes:Lf,selectedTheme:l,selectDisplay:b})]})})]});function y(){return d(le,{children:d("font",{class:tu(l,!1,[],!1).join(" "),children:d("font",{class:nu(l).join(" "),children:n("sampleTargetText")})})})}function h(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let x=m||{},w=`theme-${l}-${v.name}`,T=bx(w)||v.default||void 0,S=x[v.name]||T;return d(la,{config:e,field:v,value:S,onSetSettings:i,onChange:A=>{g(D=>(Xs(document,l,{...D,[v.name]:A},a.selectTranslationFont),{...D,[v.name]:A}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function pN({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:tu(a,!1,[],!1).join(" "),children:d("font",{class:nu(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function fN({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(be,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:Lf.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function hN({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(b=>{let y=b.translationThemePatterns||{},h=y[p]||{},v=h.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=Hn(g,C),{...b,translationThemePatterns:{...y,[p]:{...h,matches:C}}}})},c=(g,p)=>{e(f=>{let b=f.translationThemePatterns||{},y=b[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...b,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(ca,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ha,{urls:DN(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function bN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=l=>{eu({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=eo(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Wi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function yN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=hT(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(lc,{title:t("always languages"),description:t("always translate the following languages"),languages:fT,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=hT(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(lc,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:fT,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function CN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];if(g==="edit"){if(!h[c])return p;h[c]=l}return h=Hn(l,h),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Rt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],b=f.filter(h=>h.match!==p),y=!1;b.length!==f.length&&(y=!0),y&&Dt({...m,tempTranslationUrlMatches:[...b]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function xN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];return g==="edit"&&(v[c]=l),h=Jt(l,b),v=Hn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function hT(e){return{handleTranslationLanguagePatternSelected:ue((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=Hn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var d1=0,g1;async function bT(e){if(d1>60*10)return null;d1++,nt.refresh(),await tt(300);let t=await nt.get(pt,null);k.debug("loopCheckUser",d1,t),t?(clearTimeout(g1),e(t)):g1=setTimeout(bT.bind(null,e),1500)}function pT(e){let{user:t,lang:n}=e,r=He(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=AN(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`
${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):Vy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function TN({config:e,user:t,setUser:n}){let{t:r}=O(),a=He(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=Te(me),m=e.interfaceLanguage;q(()=>(nt.get(pt,null).then(b=>{b&&(n(b),SN(b.token).then(y=>{let h=y.data;h.token=b.token,nt.set(pt,h),n(h),Oo()}).catch(y=>{_l(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(g1)}),[]);let g=ue(b=>{b&&b.preventDefault&&b.preventDefault(),t?.token&&wN(t.token).finally(async()=>{await nt.remove(pt),await tt(200),await nt.refresh(),n(null),Oo()})},[t]),p=ue(async b=>{mx()&&(b&&b.preventDefault&&b.preventDefault(),EN(Ss),await nt.set(ml,!0),bT(y=>{Mm(y.token,o,s),n(y),p1?.close(),window.location.reload()}))},[n]),f=t?.avatar||q8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(pT,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Ln}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:gi})]}),d("div",{class:"",children:d("a",{href:`${Li}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:gi})]}),d(pT,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Li,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:ry,onClick:p,children:r(a?"loginForSafari":"login")})]})}function SN(e){return $({responseType:"json",url:ct+"v1/user",method:"get",headers:{token:e}})}function wN(e){return $({responseType:"json",url:ct+"v1/user/logout",method:"delete",headers:{token:e}})}var p1=null;function EN(e){let r=screen.width/2-230,a=screen.height/2-640/2;return p1=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),p1}function AN(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function kN(e){let t=[];return cl[e]&&(t=t.concat(cl[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function DN(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var m1="";function LN({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(MN,{config:e,isOpen:n})]})}function MN({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);q(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(b=>cc(b,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(b=>b===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=Te(me),g=p=>{p!==m1&&!cc(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let b=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&b&&f.translationThemePatterns&&f.translationThemePatterns[b]&&(y=f.translationThemePatterns[b]),Xs(document,b,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(m1))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let b=n(`font.${p}`);b.startsWith("font.")&&(b=p);let y=p=="none"?m1:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:b},"locale"+f)})})]})}function PN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function rn(e){return we.ASSETS_BASE_URL+e}var Im=!1;function f1(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=cn(o);Je(t,n);let{t:u,lang:l}=O(),c=s&&Ds(s,"translationService",l)||[],m=_o(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),b=Ms(s,"translationService",l,f);return d(FN,{service:f,currentTranslationServiceItem:b,ctx:s})},[m,c]);!Im&&m==="#services"&&(Im=!0),q(()=>()=>Im=!1,[]),q(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Fl(8)}`;if(s?.config.translationServices[f]){p();return}await n(b=>{let y=b.translationServices||{},h=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${h+2}`,{...b,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(bl,"_blank"),children:d(nT,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(bl,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(RN,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function RN({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=Te(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!ri.find(I=>I==e.id),[e]),m=ue(I=>{i(P=>{let R=P.translationServices?.[e.id]||{};return{...P,translationServices:{...P.translationServices,[e.id]:{...R,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},b=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=He(),h=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,h,e.id,e.ok]),x=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!T||i(P=>{Be("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${P.translationService}_${e.id}`}}],t);let R={...P,translationService:e.id};return R.translationServiceChangedbyUserAt=new Date().toISOString(),R}))},w=t.translationService===e.id,T=w||t4(l,r),S=n("translationServices."+e.id),A=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:F+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:F+"-link"}}),D=e.id;return v&&(S=`${e.name||""} (${n("translationServices.custom-ai")})`,A="",D="custom-ai"),d("div",{class:"service-container","data-selected":w?"true":"false","data-configed":T,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:rn(`images/${D}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:S})]}),d(yt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:T,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:A}}),b&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:x,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),T&&(I=!0),I}}function IN(e,t){let[n,r]=N(!1),[a]=Te(me),[i,o]=N("");return[ue(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await sa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function FN({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Ne(),[a,i,o,s,u]=r,l=ft(a),{t:c}=O(),m=Lm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,x=t?.id||"",w=C?.[x],T=ec(w,n.localConfig.aiAssistants||[]);if(T&&w){let S=du(T);return{...w,...S,aiAssistant:T}}return w?{...w}:{}}return null},[l,n,t,e]),[p,f,b]=IN(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,h=g?.type,v=c("translationServices."+e)+" "+c("setting");if(h){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(le,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!Im){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&b==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),b&&b!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:b}})}),y&&d("article",{children:[d(o1,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(s1,{curServiceItem:t,t:c}),d(u1,{curServiceItem:t,t:c}),d(i1,{currentTranslationServiceItem:t,t:c}),l1({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),c1({isProUser:!!m,config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(aT,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ga(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var BN=xn+"assets/uploads/default-oade4Y.png";function vT({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=ue(()=>m(BN),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:b}=xm(),y=Ne(),[h,v]=y;Je(h,v);let C=ft(h);q(()=>{Ah(e).then(w=>{a(w),m(w.avatar),o({name:w.i18n[t]?.name||w.name,description:w.i18n[t]?.description||w.description,details:w.i18n[t]?.details||w.details}),u(lt.sanitize(w.i18n[t]?.details||w.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let x=p?.some(w=>w.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:w=>{if(w.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(yt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:ci(r),children:d(h1,{assistantID:e,enable:ci(r),handleInstall:f,operateLoading:b,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),x&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(b1,{aiAssistant:r,isInstall:x}),C&&d(le,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(le,{children:_N.map((w,T)=>d("div",{className:"mt-2",children:d(la,{service:"ai",config:C,field:w,value:r[w.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},T)},"custom-assistants-prop-"+T))})]})]})}function h1({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=Ce(null);return q(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(gT,{}):d(mT,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${F}-loading-spinner`})]})]})})}function b1({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Nd(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...b],h=u[p];if(e.matches?.find(C=>C===h))y=yT(e.matches||[],b,[h]),y.push(g);else{let C=y.findIndex(x=>x.endsWith(h));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,b)=>{if(b==="edit")return l(g,p);a(y=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...h],C=e.matches?.find(w=>w===g),x=h.find(w=>w.endsWith(g));if(C&&x){if(!x.startsWith("[-]"))return;v=v.filter(w=>w!==x)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=yT(e.matches||[],b,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(Ho,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function yT(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var _N=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function CT(e){let t=Ne(),[n,r]=t;Je(n,r);let a=ft(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=NN({id:e.assistantID,userConfig:n,setSettings:r}),l=ue(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(le,{children:ON.map((c,m)=>d("div",{class:"mt-2",children:d(la,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{at(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(b1,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var ON=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function NN({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=ue(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=ue(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var Fm=!1,UN=xn+"assets/uploads/default-oade4Y.png";function y1(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=HN(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let x=v.priority||1e3,w=C.priority||1e3;return x-w})),[o,e]);q(()=>{(async()=>{try{r(!0);let v=await Eh(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Ne(),[c,m]=l;Je(c,m);let g=ft(c),p=cn(g),f=p?.config.interfaceLanguage||"zh-CN",b=_o(),{t:y}=O();q(()=>{wh(void 0,void 0,!0)},[]),!Fm&&b==="#ai"&&(Fm=!0),q(()=>()=>Fm=!1,[]);let h=ne(()=>{if(!b.startsWith("#ai/"))return null;let v=b.slice(4);return v.startsWith("custom")?d(CT,{assistantID:v}):d(vT,{assistantID:v,lang:f,hasAssistantsRoute:Fm})},[b,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(it,{children:d(me.Provider,{value:l,children:[b==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ga,{image:rn("images/assistant_intro.png"),nightImage:rn("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${F}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(jN,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${F}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),h]})})}function jN({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=ue(()=>i(UN),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=xm();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(yt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:ci(e),children:d(h1,{assistantID:e.id,enable:ci(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function HN(){let e=Ce(!1),{t}=O(),[n,r]=Ne();Je(n,r);let a=n?.customAiAssistants||[];return q(()=>{!n||e.current||(async()=>{try{let s=(await tc()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),No("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return k.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Fl(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var ar={};H0.forEach(e=>{e.labelKey&&(ar[e.key]=e.labelKey)});function v1(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let[o,s]=N(null),{t:u}=O();if(q(()=>{Qe().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(qN,{config:l}),d(zN,{config:l,ctx:o}),d(VN,{config:l}),d(to,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(WN,{config:l}),d(GN,{config:l}),d(YN,{config:l}),d(KN,{config:l})]})})}function qN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d(le,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${xn}videos/input-translation-demo-202307044.mp4`:`${xn}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function zN({config:e,ctx:t}){let[n,r,a,i,o]=Te(me),{t:s}=O(),u=c=>{r(m=>({...m,inputTargetLanguage:c}))};if(!e)return null;let l=eo(t.inputTranslationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:s("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?s("inputTargetLanguageDescriptionForNoneKey"):s("inputTargetLanguageDescription",{startingKey:ar[e.inputStartingTriggerKey]?s(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),u(c.target.value)},children:Wi(l,12,e.interfaceLanguage).filter(c=>c!=="auto").map((c,m)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Ot(c,e.interfaceLanguage)},"language"+m))})]})}function VN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function WN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(be,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:H0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function GN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:H0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function KN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),[s,u]=N(!1),l=h=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(h,v,C,x)=>{l(C),n(w=>{let T=w.inputTranslationUrlPattern,S=[],A=[];T&&T.matches&&T.excludeMatches&&(S=T.matches,A=T.excludeMatches);let D=[...S],M=[...A];return x==="edit"&&(C==="matches"?D[v]=h:M[v]=h),C==="matches"?(D=Hn(h,D),M=Jt(h,A)):(D=Jt(h,S),M=Hn(h,M)),{...w,inputTranslationUrlPattern:{...w.inputTranslationUrlPattern,matches:D,excludeMatches:M}}})},b=(h,v)=>{n(C=>{let x=C.inputTranslationUrlPattern,w=[];v==="matches"?x&&x.matches&&(w=x.matches):x&&x.excludeMatches&&(w=x.excludeMatches);let T=[...w];return h.forEach(S=>{T=Jt(S,T)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:T}}})},y=(h,v,C)=>{l(v),p(h),m(C)};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:h=>{h.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(ca,{toggleModal:h=>{h.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ha,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:b,onEditUrl:y})]}):null}function YN({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(be,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function C1(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return q(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(eU,{}),d($N,{}),d(QN,{}),d(JN,{}),d(ZN,{}),d(XN,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function QN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),at(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),at(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] - }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function ZN(){let[e,t,n,r,a]=Se(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),rt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),rt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function XN(){let[e,t,n,r,a]=Se(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Po()),Vs().catch(l=>{k.error("clean local config error",l)}),ma().catch(l=>{k.error("clean cache error",l)}),rt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),rt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function $N(){let[e,t,n,r,a]=Se(me),i=ft(e),o=cn(i),{t:s}=O(),[u,l]=N("");return q(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=Ku.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Mn();if(!g){p.customAiAssistants=[];let x=p.aiAssistants||[];p.aiAssistants=x.filter(w=>!w.custom),_r(p),rt(s("saved"));return}let f=Ku.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],b=p.customAiAssistants||[],v=y.findIndex(x=>x.id===f.id);v<0?y.push(f):y[v]=f;let C=b.findIndex(x=>x.id===f.id);C<0?b.push(f):b[C]=f,p.customAiAssistants=b,p.aiAssistants=y,_r(p),rt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function eU(){let[e,t,n,r,a]=Se(me),i=ft(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Oo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:ml})}})]})}function tU(){let[e,t,n,r,a]=Se(me),i=ft(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var nU="buildinConfig",rU={},_m=Tx(nU,rU);function TS(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var aU=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},iU=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},oU=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},sU=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},uU=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},lU=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:nl+"releases",children:e})]})},cU=({config:e})=>{let t=Ro(e),{t:n}=O();return t.includes("Preview")?d("p",{class:"text-sm",children:n("theLocalExtensionUpdatePreview")}):d("p",{class:"text-sm",children:n("theLocalExtensionIsUpToUpdate")})},dU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function x1(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=_m(),[c,m]=N(null),[g,p]=N(""),[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(null),[x,w]=N(null),[S,T,A,D]=Oe();Ze(S,T);let[M,I]=N(!1),[P,R]=N(!1),L=nr(),_=xn+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",U=xn+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",z=xn+"assets/uploads/full-intro-en-NlkG5c.mp4",Y={"zh-CN":{poster:xn+"static/official-static/assets/price/video-poster-zh-Hans.png",src:_},"zh-TW":{poster:xn+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:U},en:{poster:xn+"static/official-static/assets/price/video-poster-en.png",src:z}},ee=Y.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?ee=Y["zh-TW"]:r.startsWith("zh")&&(ee=Y["zh-CN"]);let Re=!0;He()&&v&&(Re=v.generalRule.showSponsorOnSafari);let xe=async()=>{p("");let Z=o;if(o===null)try{let ce=await Or({url:ki});ce?(s(ce),Z=ce,h(!0)):(p(n("unknownError")),m(null))}catch(ce){m(null),p(ce.message);return}Z!==null?(l(Z),m(!1),t(Z.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};q(()=>{Je().then(Z=>{R(Z.interfaceLanguage!=="zh-TW");let ce=Z.buildinConfigUpdatedAt;C(Z);let he=new Date(ce);t(ce),Or({url:ki}).then(pe=>{let ke=pe.minVersion,Ve=L;s(pe);let J=pe.releaseVersion||pe.resaleVersion;if(J&&(za(Ve,J)?w(!0):w(!1)),za(Ve,ke)){let Ee=pe.buildinConfigUpdatedAt;new Date(Ee)>he?(m(!0),xe()):m(!1)}else b(!0),m(null)}).catch(pe=>{m(null),p(pe.message)})}),q8().then(Z=>{i(Z)})},[]),q(()=>{Je().then(Z=>{C(Z),sa(Z)})},[S,e]);let H=Z=>{T(ce=>{let he=!ce.alpha;return he?rt(n("enableAlphaSuccess")):rt(n("disableAlphaSuccess")),{...ce,alpha:he}})},W=Z=>{Z.preventDefault(),Z.stopPropagation(),I(!0),ma().then(()=>{I(!1),rt(n("cleanSuccess")),i("0 B")}).catch(ce=>{I(!1),bt(ce.message)})},te=Z=>{T(ce=>({...ce,cache:Z}))},Me=Z=>{T(ce=>({...ce,enabled:Z}))},ve="aboutIntro";Re||(ve="aboutIntroWithoutSponsor");let $e=new Date().getFullYear();return v?d(at,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:TS(7)(H),class:`text-lg ${F}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${F}-no-select`,onClick:Z=>{Z.preventDefault(),lr(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:Ro(v)}),x===!1&&d(lU,{latestVersion:o?.releaseVersion}),x===!0&&d(cU,{config:v}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Me(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{te(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!X(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:W,children:n("cleanCache")})]}),g?d(dU,{handleSyncing:xe,message:g,date:e||""}):y?d(uU,{minVersion:o.minVersion}):c===null?d(oU,{}):c===!0?d(sU,{}):f?d(iU,{date:e}):d(aU,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+Co,5:`https://${Co}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${Co}_tw`,10:"https://x.com/immersivetrans"})}}),P&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:xn+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:xn+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:nl+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ml,onClick:Z=>{Z.preventDefault(),lr(ml)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:Z=>{Z.preventDefault(),lr(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:Z=>{Z.preventDefault(),lr(Q)},children:n("projectHomepage")})}),Re&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:ee.poster,src:ee.src,style:"border-radius: 38px;"})})]})]}),P&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${Co}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",$e," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var mU=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(gU,{...e})]})};function gU(e){let{onAddTag:t,tags:n}=e,r=Ce(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(le,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var wS=mU;var pU=nm();function S1(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=cn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Ze(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=h=>l(`${p}.translation.${h}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(at,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(hU,{config:o,ctx:s}),d(bU,{config:o}),d(fU,{config:o,setSettings:n}),d(yU,{ctx:s}),d(vU,{ctx:s}),d(CU,{config:o}),d(SU,{config:o}),d(xU,{config:o}),d(TU,{config:o}),d(RU,{config:o}),d(wU,{config:o}),d(PU,{config:o}),d(MU,{}),d(EU,{config:o}),d(AU,{config:o}),d(kU,{config:o}),d(DU,{config:o,ctx:s,...m(u,"translationModeLang")}),d(LU,{config:o,...m(u,"translationModeUrl")})]})})})}function fU(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=ue(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(le,{children:[d("div",{class:"nav",children:d(be,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(wS,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function hU({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=Se(me);return d("div",{class:"nav",children:[d(be,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function bU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function yU({ctx:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function vU({ctx:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(be,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function CU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function xU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function SU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return X(!0)?null:d("div",{class:"nav",children:[d(be,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Yl({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function TU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function wU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function EU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function AU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me),[s]=_m();return s.generalRule?d("div",{class:"nav",children:[d(be,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function kU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function DU({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=Se(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:N4(e),[t,e,n]),p=(f,h)=>{s(y=>{let b=y.translationModeLanguagePattern,v=b?.[n]||[],C=b?.[m]||[],x=[...v];f?x=Array.from(new Set([...x,h])):x=x.filter(A=>A!==h);let w=C.filter(A=>A!==h),S={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:x,[m]:w}},T=IC(e,h);return T&&(S.translationLanguagePairs=T),S})};return d(cc,{title:r,description:a,languages:pU,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function LU({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=Se(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,h,y,b)=>{o(v=>{let C=v.translationModeUrlPattern,x=C?.[t]||[],w=C?.[c]||[],S=[...x];b==="edit"?S[h]=f:S=Array.from(new Set([...S,f]));let T=w.filter(A=>A!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:S,[c]:T}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(Ho,{title:n,description:r,urls:g,onDeleteUrl:(f,h)=>{o(y=>{let b=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[h]:b}}})},onSubmitAddUrl:m,type:t})}function MU(){let[e,t]=ga(),{t:n}=O();return zy()?null:d("div",{class:"nav",children:[d(be,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function PU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return d("div",{class:"nav",children:[d(be,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function RU({config:e}){let{t}=O(),[n,r,a,i,o]=Se(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(be,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function T1(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),s=cn(o),{t:u}=O();return s?d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${Co}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}var hu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Om=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function Nm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Um(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var ES=[];function jm(e,t){let[n,r]=N(ES);return q(()=>{if(n.length||!e.length)return;let i=e.filter(o=>dc(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),ES=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function w1(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var bu=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],Hm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function E1(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let{t:o}=O(),s=ft(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=Od(s.supportedVideoSubtitleSites),c=`
-
${o("feedbackOrMore")} + }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function JN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),at(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),at(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function ZN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Po()),Vs().catch(l=>{k.error("clean local config error",l)}),da().catch(l=>{k.error("clean cache error",l)}),at(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),at(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function XN(){let[e,t,n,r,a]=Te(me),i=ft(e),o=cn(i),{t:s}=O(),[u,l]=N("");return q(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=Ku.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Mn();if(!g){p.customAiAssistants=[];let x=p.aiAssistants||[];p.aiAssistants=x.filter(w=>!w.custom),Br(p),at(s("saved"));return}let f=Ku.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],h=p.customAiAssistants||[],v=y.findIndex(x=>x.id===f.id);v<0?y.push(f):y[v]=f;let C=h.findIndex(x=>x.id===f.id);C<0?h.push(f):h[C]=f,p.customAiAssistants=h,p.aiAssistants=y,Br(p),at(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function $N(){let[e,t,n,r,a]=Te(me),i=ft(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Oo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:dl})}})]})}function eU(){let[e,t,n,r,a]=Te(me),i=ft(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var tU="buildinConfig",nU={},Bm=xx(tU,nU);function xT(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var rU=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},aU=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},iU=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},oU=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},sU=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},uU=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:nl+"releases",children:e})]})},lU=({config:e})=>{let t=Ro(e),{t:n}=O();return t.includes("Preview")?d("p",{class:"text-sm",children:n("theLocalExtensionUpdatePreview")}):d("p",{class:"text-sm",children:n("theLocalExtensionIsUpToUpdate")})},cU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function x1(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=Bm(),[c,m]=N(null),[g,p]=N(""),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[x,w]=N(null),[T,S,A,D]=Ne();Je(T,S);let[M,I]=N(!1),[P,R]=N(!1),L=tr(),_=xn+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",U=xn+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",z=xn+"assets/uploads/full-intro-en-NlkG5c.mp4",Y={"zh-CN":{poster:xn+"static/official-static/assets/price/video-poster-zh-Hans.png",src:_},"zh-TW":{poster:xn+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:U},en:{poster:xn+"static/official-static/assets/price/video-poster-en.png",src:z}},ee=Y.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?ee=Y["zh-TW"]:r.startsWith("zh")&&(ee=Y["zh-CN"]);let Re=!0;He()&&v&&(Re=v.generalRule.showSponsorOnSafari);let xe=async()=>{p("");let Z=o;if(o===null)try{let ce=await _r({url:ki});ce?(s(ce),Z=ce,b(!0)):(p(n("unknownError")),m(null))}catch(ce){m(null),p(ce.message);return}Z!==null?(l(Z),m(!1),t(Z.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};q(()=>{Qe().then(Z=>{R(Z.interfaceLanguage!=="zh-TW");let ce=Z.buildinConfigUpdatedAt;C(Z);let he=new Date(ce);t(ce),_r({url:ki}).then(pe=>{let ke=pe.minVersion,ze=L;s(pe);let J=pe.releaseVersion||pe.resaleVersion;if(J&&(qa(ze,J)?w(!0):w(!1)),qa(ze,ke)){let Ee=pe.buildinConfigUpdatedAt;new Date(Ee)>he?(m(!0),xe()):m(!1)}else h(!0),m(null)}).catch(pe=>{m(null),p(pe.message)})}),j8().then(Z=>{i(Z)})},[]),q(()=>{Qe().then(Z=>{C(Z),ia(Z)})},[T,e]);let H=Z=>{S(ce=>{let he=!ce.alpha;return he?at(n("enableAlphaSuccess")):at(n("disableAlphaSuccess")),{...ce,alpha:he}})},W=Z=>{Z.preventDefault(),Z.stopPropagation(),I(!0),da().then(()=>{I(!1),at(n("cleanSuccess")),i("0 B")}).catch(ce=>{I(!1),bt(ce.message)})},te=Z=>{S(ce=>({...ce,cache:Z}))},Me=Z=>{S(ce=>({...ce,enabled:Z}))},ve="aboutIntro";Re||(ve="aboutIntroWithoutSponsor");let $e=new Date().getFullYear();return v?d(it,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:xT(7)(H),class:`text-lg ${F}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${F}-no-select`,onClick:Z=>{Z.preventDefault(),cr(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:Ro(v)}),x===!1&&d(uU,{latestVersion:o?.releaseVersion}),x===!0&&d(lU,{config:v}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Me(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{te(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!X(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:W,children:n("cleanCache")})]}),g?d(cU,{handleSyncing:xe,message:g,date:e||""}):y?d(sU,{minVersion:o.minVersion}):c===null?d(iU,{}):c===!0?d(oU,{}):f?d(aU,{date:e}):d(rU,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+Co,5:`https://${Co}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${Co}_tw`,10:"https://x.com/immersivetrans"})}}),P&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:xn+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:xn+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:nl+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:dl,onClick:Z=>{Z.preventDefault(),cr(dl)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:Z=>{Z.preventDefault(),cr(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:Z=>{Z.preventDefault(),cr(Q)},children:n("projectHomepage")})}),Re&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:ee.poster,src:ee.src,style:"border-radius: 38px;"})})]})]}),P&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${Co}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",$e," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var dU=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(mU,{...e})]})};function mU(e){let{onAddTag:t,tags:n}=e,r=Ce(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(le,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var TT=dU;var gU=tm();function T1(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=cn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Je(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=b=>l(`${p}.translation.${b}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(it,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(fU,{config:o,ctx:s}),d(hU,{config:o}),d(pU,{config:o,setSettings:n}),d(bU,{ctx:s}),d(yU,{ctx:s}),d(vU,{config:o}),d(xU,{config:o}),d(CU,{config:o}),d(TU,{config:o}),d(PU,{config:o}),d(SU,{config:o}),d(MU,{config:o}),d(LU,{}),d(wU,{config:o}),d(EU,{config:o}),d(AU,{config:o}),d(kU,{config:o,ctx:s,...m(u,"translationModeLang")}),d(DU,{config:o,...m(u,"translationModeUrl")})]})})})}function pU(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=ue(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(le,{children:[d("div",{class:"nav",children:d(be,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(TT,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function fU({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me);return d("div",{class:"nav",children:[d(be,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function hU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function bU({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function yU({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(be,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function vU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function CU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function xU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return X(!0)?null:d("div",{class:"nav",children:[d(be,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Kl({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function TU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function SU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function wU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function EU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),[s]=Bm();return s.generalRule?d("div",{class:"nav",children:[d(be,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function AU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function kU({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=Te(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:N4(e),[t,e,n]),p=(f,b)=>{s(y=>{let h=y.translationModeLanguagePattern,v=h?.[n]||[],C=h?.[m]||[],x=[...v];f?x=Array.from(new Set([...x,b])):x=x.filter(A=>A!==b);let w=C.filter(A=>A!==b),T={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:x,[m]:w}},S=PC(e,b);return S&&(T.translationLanguagePairs=S),T})};return d(lc,{title:r,description:a,languages:gU,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function DU({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=Te(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,b,y,h)=>{o(v=>{let C=v.translationModeUrlPattern,x=C?.[t]||[],w=C?.[c]||[],T=[...x];h==="edit"?T[b]=f:T=Array.from(new Set([...T,f]));let S=w.filter(A=>A!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:T,[c]:S}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(Ho,{title:n,description:r,urls:g,onDeleteUrl:(f,b)=>{o(y=>{let h=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[b]:h}}})},onSubmitAddUrl:m,type:t})}function LU(){let[e,t]=ma(),{t:n}=O();return Hy()?null:d("div",{class:"nav",children:[d(be,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function MU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(be,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function PU({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(be,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function S1(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),s=cn(o),{t:u}=O();return s?d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${Co}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}var hu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],_m=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function Om(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Nm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var ST=[];function Um(e,t){let[n,r]=N(ST);return q(()=>{if(n.length||!e.length)return;let i=e.filter(o=>cc(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),ST=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function w1(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var bu=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],jm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function E1(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let{t:o}=O(),s=ft(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=_d(s.supportedVideoSubtitleSites),c=``,m=[...l.map((g,p)=>` ${g.name} ${p!==l.length-1?", ":""} - `),c].join("");return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(pa,{image:rn("images/dual_subtitle_intro.png"),nightImage:rn("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(FU,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(to,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(IU,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(BU,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function IU(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function FU(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(le,{children:[d("div",{class:"youtube-header",children:[d(NU,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(be,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(lc,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:fl})}),d(lc,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("onlyProUseProTooltip",{1:fl}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function BU(e){let{t}=O(),[n,r]=N(!1),a=OU(e.subtitleRule,t,n),i=ue(async()=>{let s=(await Ws())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return Hm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(le,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(be,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(_U,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function _U(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(be,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var OU=(e,t,n)=>{let r=Um(t),a=jm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:hu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:hu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:bu,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:bu,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Om,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:Nm(t),selectKey:e.textShadowType}]};function NU(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var AS=ju({presets:[Xc(),e0()]});var UU=1e5;var kS=Date.now();async function pi(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=jU(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:m,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,h=null;async function y(S){let{container:T,onFrame:A,onIgnoreElement:D,id:M,isLongHtml:I}=S,P=document.createTreeWalker(T,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let U=L(_);return U==NodeFilter.FILTER_ACCEPT?It.mark(_,M,g):YU(_,U,n)&&v(),U}),R=T;if(L(R)===NodeFilter.FILTER_REJECT)return;for(It.mark(R,M,g);R;){if(a?.interruptEffectDOM)return;let _=Date.now()-kS;if(_>50&&(k.debug("taskTime",_,T),kS=Date.now(),await tt(0)),s&&s.length>0){let{currentNode:U,isMatchedSelection:z}=b(P,R,s);if(U)R=U;else break;if(!z)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let U=R;if(U.nodeName==="IFRAME"){A&&A(U),v(),A1(p,!0),R=P.nextNode();continue}U.nodeType===Node.ELEMENT_NODE&&(o&&k1(U,o),c&&L1(U,c));let z=Ma(U,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},U.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&U.childNodes.length==1&&U.childNodes[0].nodeType===Node.TEXT_NODE&&U.innerText?.length==1&&U?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),qt(U,i)&&!z){C(U);let Re=null;for(;!(Re=P.nextSibling())&&P.parentNode(););R=Re;continue}let Y=Io(U);if(!DS(p,U)||z){v(U);let Re=z?U:U.parentElement;Re&&Re.childNodes.length>0&&x(p,Re,Re.immersiveTranslateComputedStyle||null)}Y&&U.shadowRoot?.mode==="open"&&(z?A?.(U.shadowRoot):y({...S,container:U.shadowRoot})),U.nodeType===Node.ELEMENT_NODE&&qt(U,n.likePreSelectors)&&u&&(I||VU(U,n.advanceTransformPreTagNewLine))}else if(R.nodeType===Node.TEXT_NODE)C(R);else throw new Error("should not be here");R=P.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bo(_)){if(c){let ee=Object.keys(c);if(ee.length>0&&qt(_,ee))for(let xe of ee){let H=c[xe];if(_.matches(xe)){let W=c[xe],te=Object.keys(W);for(let Me of te){let ve=W[Me];_.getAttribute(Me)!==ve&&(ve===null?_.removeAttribute(Me):_.setAttribute(Me,ve))}break}}}if(!S.force&&It.isMarked(_,M)||MC(_,M)||qm(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!qi(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ee=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ee,D1(ee))return D&&D(_),NodeFilter.FILTER_REJECT;let Re=Ma(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ee||null);if(_.isBlock=Re,qt(_,i)&&Re)return NodeFilter.FILTER_REJECT}let U=_.getBoundingClientRect(),{width:z,height:Y}=U;return _.nodeName==="IMG"&&(z>48&&Y>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&Y>0&&m!==!1&&(_.setAttribute("width",z),_.setAttribute("height",Y))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||Y>0&&Y<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let U=_.textContent?.trim();if(!U)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:Y,height:ee}=z.getBoundingClientRect();if(Y>0&&Y<4||ee>0&&ee<4)return NodeFilter.FILTER_REJECT}return l>0&&U.length>=l&&WU(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await y(e)}catch(S){k.error(S)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&v();function b(S,T,A){let D=T.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(T))if(f=!1,T&&T.nodeType===Node.ELEMENT_NODE)if(mc(T,A))f=!0,h=T,v(),x(p,h,D);else return f=!1,T=S.nextNode(),{currentNode:T,isMatchedSelection:f};else return f=!1,T=S.nextNode(),{currentNode:T,isMatchedSelection:f}}else if(T&&T.nodeType===Node.ELEMENT_NODE)if(mc(T,A))f=!0,h=T,v(),x(p,h,D);else return f=!1,T=S.nextNode(),{currentNode:T,isMatchedSelection:f};else return f=!1,T=S.nextNode(),{currentNode:T,isMatchedSelection:f};return{currentNode:T,isMatchedSelection:!0}}function v(S){let T=p.flatNodes.length-1;if(n.skipTrailTextRegex&&T>0)for(let D=T;D>=0;D--){let I=p.flatNodes[D]?.textContent?.trim()||"";if(!I||new RegExp(n.skipTrailTextRegex).test(I)){p.flatNodes.splice(D,1);continue}break}if(S&&S.nodeName==="BR"){if(S.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=QU(S,n);let D=[...p.flatNodes],M=p.flatNodes.filter(I=>S.parentNode?.contains(I));M.length>0&&D.length!=M.length&&(p.flatNodes=M,p.flatNodes.original=D)}let A=zU(p,r,n);A&&t&&t(A),A1(p)}function C(S){if(!DS(p,S)){v(),A1(p);let T=S.parentNode;T&&x(p,T,T.computedStyle)}p.flatNodes.push(S)}function x(S,T,A){S.commonAncestorContainer=T;let D=w(A);S.isPreWhitespace=D}function w(S){return S&&S.whiteSpace&&S.whiteSpace.startsWith("pre")||S&&S.whiteSpace==="break-spaces"||!1}}function DS(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Io(t));let r=qU(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function jU(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function HU(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function k1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function qU(e){return e&&e._currentStacks?e._currentStacks.some(t=>Io(t)):!1}function zU(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Xd(r,a,n);o||(o=a);let s=[];for(let p of r){let f=HU(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>UU){k.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:OC(o)}}else return null}function A1(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function D1(e){return e.display==="none"}var It={_marked_key:z6,isMarked(e,t){return H4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Io(e)))return ZC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)It.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Io(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Io(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function VU(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let m=document.createElement("br");m.setAttribute("data-imt","1");let g=document.createTextNode(c);l.parentNode.insertBefore(m,l.nextSibling),l.parentNode.insertBefore(g,m.nextSibling),l=g,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=cr?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function WU(e,t,n){let r=e.textContent||"",a=BC(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=KC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function MS(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let h=c[f];if(f==="translate"&&h==="no"){let b=p.innerText||p.textContent||"";if(!b.trim()||KU(p,a,i,o)||!QC(b,n,r))continue}p.getAttribute(f)!==h&&(h===null?p.removeAttribute(f):p.setAttribute(f,h))}})}}function L1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function qm(e,t){return GU(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function GU(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Jd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function mc(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function KU(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&qm(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if($d(o,t,n))return!0}}return!1}function YU(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ma(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function QU(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ma(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function PS(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new C0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=ZU(u.content,t),n&&$U(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:NC(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function RS(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function JU(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` -`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=JU(o,20),u=XU(o),l=null;for(let c of u){let m=document.body.querySelectorAll(c);if(m.length&&(m.forEach(g=>{let p=g.textContent?.trim().length||0,f=l?.textContent?.trim().length||0;p>f&&(s?g.innerText?.includes(s)&&(l=g):l=g)}),l)){i.push(l);break}}}),!!i.length)return Xd(i,document.body,t)}function XU(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function $U(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function IS(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(N0)||M1(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var gc="";async function M1(e){let t=document.title;if(!t||t.includes(N0))return;gc!==t&&(gc=t);let n=await ze({text:t,pageLangs:[Lt(),"en"]});if(!Ks(e,n))try{let r=await gr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=gc,document.title=r.text+N0+gc)}catch(r){throw r}}function FS(e){e.rule.isTranslateTitle&&(document.title=gc)}function yu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function zm(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?O4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + `),c].join("");return d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ga,{image:rn("images/dual_subtitle_intro.png"),nightImage:rn("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(IU,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(to,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(RU,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(FU,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function RU(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function IU(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(le,{children:[d("div",{class:"youtube-header",children:[d(OU,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(be,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(uc,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:pl})}),d(uc,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("onlyProUseProTooltip",{1:pl}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function FU(e){let{t}=O(),[n,r]=N(!1),a=_U(e.subtitleRule,t,n),i=ue(async()=>{let s=(await Ws())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return jm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(le,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(be,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(BU,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function BU(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(be,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var _U=(e,t,n)=>{let r=Nm(t),a=Um(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:hu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:hu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:bu,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:bu,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:_m,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:Om(t),selectKey:e.textShadowType}]};function OU(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var wT=ju({presets:[Zc(),$c()]});var NU=1e5;var ET=Date.now();async function pi(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=UU(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:m,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,b=null;async function y(T){let{container:S,onFrame:A,onIgnoreElement:D,id:M,isLongHtml:I}=T,P=document.createTreeWalker(S,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let U=L(_);return U==NodeFilter.FILTER_ACCEPT?It.mark(_,M,g):KU(_,U,n)&&v(),U}),R=S;if(L(R)===NodeFilter.FILTER_REJECT)return;for(It.mark(R,M,g);R;){if(a?.interruptEffectDOM)return;let _=Date.now()-ET;if(_>50&&(k.debug("taskTime",_,S),ET=Date.now(),await tt(0)),s&&s.length>0){let{currentNode:U,isMatchedSelection:z}=h(P,R,s);if(U)R=U;else break;if(!z)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let U=R;if(U.nodeName==="IFRAME"){A&&A(U),v(),A1(p,!0),R=P.nextNode();continue}U.nodeType===Node.ELEMENT_NODE&&(o&&k1(U,o),c&&L1(U,c));let z=La(U,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},U.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&U.childNodes.length==1&&U.childNodes[0].nodeType===Node.TEXT_NODE&&U.innerText?.length==1&&U?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),qt(U,i)&&!z){C(U);let Re=null;for(;!(Re=P.nextSibling())&&P.parentNode(););R=Re;continue}let Y=Io(U);if(!AT(p,U)||z){v(U);let Re=z?U:U.parentElement;Re&&Re.childNodes.length>0&&x(p,Re,Re.immersiveTranslateComputedStyle||null)}Y&&U.shadowRoot?.mode==="open"&&(z?A?.(U.shadowRoot):y({...T,container:U.shadowRoot})),U.nodeType===Node.ELEMENT_NODE&&qt(U,n.likePreSelectors)&&u&&(I||zU(U,n.advanceTransformPreTagNewLine))}else if(R.nodeType===Node.TEXT_NODE)C(R);else throw new Error("should not be here");R=P.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bo(_)){if(c){let ee=Object.keys(c);if(ee.length>0&&qt(_,ee))for(let xe of ee){let H=c[xe];if(_.matches(xe)){let W=c[xe],te=Object.keys(W);for(let Me of te){let ve=W[Me];_.getAttribute(Me)!==ve&&(ve===null?_.removeAttribute(Me):_.setAttribute(Me,ve))}break}}}if(!T.force&&It.isMarked(_,M)||DC(_,M)||Hm(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!qi(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ee=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ee,D1(ee))return D&&D(_),NodeFilter.FILTER_REJECT;let Re=La(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ee||null);if(_.isBlock=Re,qt(_,i)&&Re)return NodeFilter.FILTER_REJECT}let U=_.getBoundingClientRect(),{width:z,height:Y}=U;return _.nodeName==="IMG"&&(z>48&&Y>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&Y>0&&m!==!1&&(_.setAttribute("width",z),_.setAttribute("height",Y))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||Y>0&&Y<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let U=_.textContent?.trim();if(!U)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:Y,height:ee}=z.getBoundingClientRect();if(Y>0&&Y<4||ee>0&&ee<4)return NodeFilter.FILTER_REJECT}return l>0&&U.length>=l&&VU(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await y(e)}catch(T){k.error(T)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&v();function h(T,S,A){let D=S.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(S))if(f=!1,S&&S.nodeType===Node.ELEMENT_NODE)if(dc(S,A))f=!0,b=S,v(),x(p,b,D);else return f=!1,S=T.nextNode(),{currentNode:S,isMatchedSelection:f};else return f=!1,S=T.nextNode(),{currentNode:S,isMatchedSelection:f}}else if(S&&S.nodeType===Node.ELEMENT_NODE)if(dc(S,A))f=!0,b=S,v(),x(p,b,D);else return f=!1,S=T.nextNode(),{currentNode:S,isMatchedSelection:f};else return f=!1,S=T.nextNode(),{currentNode:S,isMatchedSelection:f};return{currentNode:S,isMatchedSelection:!0}}function v(T){let S=p.flatNodes.length-1;if(n.skipTrailTextRegex&&S>0)for(let D=S;D>=0;D--){let I=p.flatNodes[D]?.textContent?.trim()||"";if(!I||new RegExp(n.skipTrailTextRegex).test(I)){p.flatNodes.splice(D,1);continue}break}if(T&&T.nodeName==="BR"){if(T.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=YU(T,n);let D=[...p.flatNodes],M=p.flatNodes.filter(I=>T.parentNode?.contains(I));M.length>0&&D.length!=M.length&&(p.flatNodes=M,p.flatNodes.original=D)}let A=qU(p,r,n);A&&t&&t(A),A1(p)}function C(T){if(!AT(p,T)){v(),A1(p);let S=T.parentNode;S&&x(p,S,S.computedStyle)}p.flatNodes.push(T)}function x(T,S,A){T.commonAncestorContainer=S;let D=w(A);T.isPreWhitespace=D}function w(T){return T&&T.whiteSpace&&T.whiteSpace.startsWith("pre")||T&&T.whiteSpace==="break-spaces"||!1}}function AT(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Io(t));let r=HU(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function UU(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function jU(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function k1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function HU(e){return e&&e._currentStacks?e._currentStacks.some(t=>Io(t)):!1}function qU(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Zd(r,a,n);o||(o=a);let s=[];for(let p of r){let f=jU(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>NU){k.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:BC(o)}}else return null}function A1(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function D1(e){return e.display==="none"}var It={_marked_key:H6,isMarked(e,t){return H4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Io(e)))return QC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)It.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Io(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Io(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function zU(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let m=document.createElement("br");m.setAttribute("data-imt","1");let g=document.createTextNode(c);l.parentNode.insertBefore(m,l.nextSibling),l.parentNode.insertBefore(g,m.nextSibling),l=g,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=nr?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function VU(e,t,n){let r=e.textContent||"",a=IC(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=WC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function DT(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let b=c[f];if(f==="translate"&&b==="no"){let h=p.innerText||p.textContent||"";if(!h.trim()||GU(p,a,i,o)||!KC(h,n,r))continue}p.getAttribute(f)!==b&&(b===null?p.removeAttribute(f):p.setAttribute(f,b))}})}}function L1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Hm(e,t){return WU(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function WU(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Qd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function dc(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function GU(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Hm(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Xd(o,t,n))return!0}}return!1}function KU(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&La(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function YU(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&La(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function LT(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new v0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=JU(u.content,t),n&&XU(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:_C(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function MT(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function QU(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` +`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=QU(o,20),u=ZU(o),l=null;for(let c of u){let m=document.body.querySelectorAll(c);if(m.length&&(m.forEach(g=>{let p=g.textContent?.trim().length||0,f=l?.textContent?.trim().length||0;p>f&&(s?g.innerText?.includes(s)&&(l=g):l=g)}),l)){i.push(l);break}}}),!!i.length)return Zd(i,document.body,t)}function ZU(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function XU(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function PT(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(O0)||M1(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var mc="";async function M1(e){let t=document.title;if(!t||t.includes(O0))return;mc!==t&&(mc=t);let n=await Ke({text:t,pageLangs:[Lt(),"en"]});if(!Ks(e,n))try{let r=await sa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=mc,document.title=r.text+O0+mc)}catch(r){throw r}}function RT(e){e.rule.isTranslateTitle&&(document.title=mc)}function yu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function qm(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?O4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function BS(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?O4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function IT(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?O4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${F}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function Vm(e){let t=TC(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function En(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=R4(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var ej={sanitize:e=>e};async function F1(e,t){if(e.interruptEffectDOM)return;li("consumeContainer");let n=En(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:zo.bind(null,e),onFrame:r=>{P1(e,r,!0)},onIgnoreElement:r=>{It.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),hs&&zt(t,"consumeContainer",e.id)}function P1(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!qi(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Ef}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Ra(t.contentWindow?.document.documentElement,e.translateState),ro(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ro(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ro(e,t,n=!0){li("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=En(t.ctx),o=0;if(l(t,e,n))return;if(Bo(e)&&u(e)){It.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Bo(m)&&(a&&k1(m,a),i&&L1(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,It.clearMark(c),t.immediateTranslateCapacity>=0){await F1(t,c);let m=Date.now()-r;m>100&&(k.debug("batchTaskTime",m,c),r=Date.now(),await tt(0))}else hs&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return P1(t,c.shadowRoot,n),!1;if(m==="iframe")return P1(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return mc(c,g.selectors);if(t.ctx.rule.enableSkipBuildContainer||g.containerSelectors&&mc(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){RS(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&It.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=En(c.ctx);return!!(qm(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function pc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!It.isSkipMarkEle(a)&&!It.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&qo(t.rootNodes),r=="original"&&n=="translation"){let s=vu(e,t.rootNodes);if(R1(s))return;no(e,s,a,t.targetNodes||[]),qo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=vu(e,t.targetNodes,s);no(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=vu(e,t.rootNodes);if(R1(s))return;no(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=vu(e,t.targetNodes);no(e,s,a,t.rootNodes||[]),qo(t.targetNodes)}r=="dual"&&n=="original"&&qo(t.targetNodes),O1(t)}catch(s){k.error(s)}li("inserted"),HC()}}function R1(e){return!e||!Bo(e)?!1:e.classList.contains(Yt)}function vu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function qo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function no(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var tj=yr(Wm,300);async function zo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;li("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||nj(t.rootNodes)||t.stepState>=2)return;t.stepState=2,hs&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Fo(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=lm(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:Vm(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await _1(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Pa(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(k.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),rj(e,t.text),B1(e,t,r)):(hs&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function nj(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bo(t)&&t.classList.contains(Yt):!1}function rj(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function B1(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;li("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),hs&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,V6,"1",!0),n=="hover"){Wm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";tj.call(e,e.ctx,a)}async function Wm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await Gm(o,{...e,translationService:this.translationService},this.translateState,t)})}async function Gm(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=ql(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;no(t,u,i.commonAncestorContainer,[s]),O1(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await fn(a,t,(i,o,s)=>{let u=s.id,l=aj(e,u.toString());l&&ij.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function aj(e,t){return e.find(n=>n.id===t)}function ij(e,t,n,r,a,i){li("translated");let o=!1,s=r;Ys(s.commonAncestorContainer,n.id)?.remove(),O1(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Yt),g.setAttribute(Cs,"1");let p=xx(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),yu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=ej.sanitize(p);g.innerHTML=cr?.createHTML(f)||f,c.targetNodes=[g],pc(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,Y6,g.toString()),p.classList.add("notranslate",Yt,Yt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(R1(f)||no(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=oj(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${F}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function zm(e){let t=xC(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function En(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=R4(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var $U={sanitize:e=>e};async function F1(e,t){if(e.interruptEffectDOM)return;ui("consumeContainer");let n=En(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:zo.bind(null,e),onFrame:r=>{P1(e,r,!0)},onIgnoreElement:r=>{It.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),hs&&zt(t,"consumeContainer",e.id)}function P1(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!qi(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Ef}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Pa(t.contentWindow?.document.documentElement,e.translateState),ro(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ro(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ro(e,t,n=!0){ui("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=En(t.ctx),o=0;if(l(t,e,n))return;if(Bo(e)&&u(e)){It.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Bo(m)&&(a&&k1(m,a),i&&L1(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(It.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,It.clearMark(c),t.immediateTranslateCapacity>=0){await F1(t,c);let m=Date.now()-r;m>100&&(k.debug("batchTaskTime",m,c),r=Date.now(),await tt(0))}else hs&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return P1(t,c.shadowRoot,n),!1;if(m==="iframe")return P1(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return dc(c,g.selectors);if(t.ctx.rule.enableSkipBuildContainer||g.containerSelectors&&dc(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){MT(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&It.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=En(c.ctx);return!!(Hm(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function gc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!It.isSkipMarkEle(a)&&!It.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&qo(t.rootNodes),r=="original"&&n=="translation"){let s=vu(e,t.rootNodes);if(R1(s))return;no(e,s,a,t.targetNodes||[]),qo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=vu(e,t.targetNodes,s);no(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=vu(e,t.rootNodes);if(R1(s))return;no(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=vu(e,t.targetNodes);no(e,s,a,t.rootNodes||[]),qo(t.targetNodes)}r=="dual"&&n=="original"&&qo(t.targetNodes),O1(t)}catch(s){k.error(s)}ui("inserted"),UC()}}function R1(e){return!e||!Bo(e)?!1:e.classList.contains(Yt)}function vu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function qo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function no(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var ej=br(Vm,300);async function zo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;ui("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||tj(t.rootNodes)||t.stepState>=2)return;t.stepState=2,hs&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Fo(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=um(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:zm(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await _1(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Ma(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(k.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),nj(e,t.text),B1(e,t,r)):(hs&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function tj(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bo(t)&&t.classList.contains(Yt):!1}function nj(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function B1(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;ui("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),hs&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,q6,"1",!0),n=="hover"){Vm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";ej.call(e,e.ctx,a)}async function Vm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await Wm(o,{...e,translationService:this.translationService},this.translateState,t)})}async function Wm(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=Hl(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;no(t,u,i.commonAncestorContainer,[s]),O1(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await fn(a,t,(i,o,s)=>{let u=s.id,l=rj(e,u.toString());l&&aj.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function rj(e,t){return e.find(n=>n.id===t)}function aj(e,t,n,r,a,i){ui("translated");let o=!1,s=r;Ys(s.commonAncestorContainer,n.id)?.remove(),O1(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Yt),g.setAttribute(Cs,"1");let p=vx(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),yu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=$U.sanitize(p);g.innerHTML=nr?.createHTML(f)||f,c.targetNodes=[g],gc(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,G6,g.toString()),p.classList.add("notranslate",Yt,Yt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(R1(f)||no(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=ij(a,c).replaceAll(` `,"").replaceAll('"',"""),y=c.message.replaceAll(` -`,"").replaceAll('"',"""),b=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),x=Pe(a.config.interfaceLanguage,"error.reason"),w=`<${m.targetWrapperTag} class="${F}-error notranslate"> +`,"").replaceAll('"',"""),h=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),x=Pe(a.config.interfaceLanguage,"error.reason"),w=`<${m.targetWrapperTag} class="${F}-error notranslate"> <${m.targetWrapperTag} class="${F}-error-wrapper"> - + ${C}    - + ${x} - `;p.innerHTML=cr?.createHTML(w)||w}}}var _S="";async function _1(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=_S.slice(0,e.rule?.detectTextBufferLength)+" "+o),_S=s;let u=await ze({text:s,minLength:15,pageLangs:[Lt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Qs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Qs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=cd();r.isDetectParagraphLanguage&&(g="auto");let p=Lt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!nd.includes(e.translationService)&&(X()||He())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let h=g!=="auto"?g:f;return Pi(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>Pi(h,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function fc(){I1=0}var I1=0;function oj(e,t){I1+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),I1!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(_n,{detail:r}))}return n}function O1(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,sj(t,`[${W6}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function sj(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function OS(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Zs(document.body),pageLangs:t})),e}var uj=[];function NS(e){uj.push(e)}var N1;function US(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=En(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{hc(e,i,t,r)}),N1=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Ar(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||j1(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&hc(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Ma(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Js(r,u.parentElement);c&&(It.clearToParentMark(u,c),hc(e,c,t,r));continue}hc(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{It.isMarked(o,e.id)||hc(e,o,t,r)})}),N1.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function hc(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&U1(t),pi({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{zo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function jS(){N1?.disconnect()}var lj=` + `;p.innerHTML=nr?.createHTML(w)||w}}}var FT="";async function _1(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=FT.slice(0,e.rule?.detectTextBufferLength)+" "+o),FT=s;let u=await Ke({text:s,minLength:15,pageLangs:[Lt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Qs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Qs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=ld();r.isDetectParagraphLanguage&&(g="auto");let p=Lt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!td.includes(e.translationService)&&(X()||He())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let b=g!=="auto"?g:f;return Pi(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>Pi(b,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function pc(){I1=0}var I1=0;function ij(e,t){I1+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),I1!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(sr,{detail:r}))}return n}function O1(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,oj(t,`[${z6}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function oj(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function BT(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ke({text:Zs(document.body),pageLangs:t})),e}var sj=[];function _T(e){sj.push(e)}var N1;function OT(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=En(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{fc(e,i,t,r)}),N1=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Er(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||j1(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&fc(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!La(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Js(r,u.parentElement);c&&(It.clearToParentMark(u,c),fc(e,c,t,r));continue}fc(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{It.isMarked(o,e.id)||fc(e,o,t,r)})}),N1.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function fc(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&U1(t),pi({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{zo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function NT(){N1?.disconnect()}var uj=` .toastify { padding: 12px 20px; color: #ffffff; @@ -6033,10 +6033,10 @@ x-tc-action:`+this.action.toLowerCase()+` max-width: fit-content; } } -`,H1="immersive-translate-toastify-shadow-root",q1=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(H1)){let t=document.getElementById(H1);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=H1,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=lj,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Km(e){e=e||{},new q1({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function HS(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function hn(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{k.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:M0,payload:e},"*")});let n=new CustomEvent(Kr,{detail:e});globalThis.document.dispatchEvent(n)}function z1(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Kt(o,s=>{s.preventDefault();let u=r[i];hn({method:u,data:{trigger:"shortcut"}})})}}var cj="imt-fb";function bn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${cj}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function qS(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Ym="DROP_DOWN_DEFAULT_VALUE";function V1(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return d("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Ym,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Ym){s.current.value=Ym,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Ym,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var dj=({date:e})=>{let{t}=O(),[n,r]=N(!1);return q(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},mj=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},gj=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},pj=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function W1(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(null),[x,w]=N(null),S=Hn(),T=async()=>{m("");let A=o;if(o===null)try{let D=await n({url:ki});D?(s(D),A=D,p(!0)):(m(i("unknownError")),l(null))}catch(D){l(null),m(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return q(()=>{we.DEBUG||Je().then(A=>{let D=A.buildinConfigUpdatedAt;C(A);let M=new Date(D);if(a(D),S==="0.0.0"){b(!0);return}n({url:ki}).then(I=>{let P=I,R=P.minVersion,L=S;s(P);let _=P.latestVersion;if(_&&(za(L,_)?w(!0):w(!1)),za(L,R)){let U=P.buildinConfigUpdatedAt;new Date(U)>M?(l(!0),T()):l(!1)}else h(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),q(()=>{Je().then(A=>{C(A),sa(A)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(gj,{}):c?t===!1?null:d(pj,{handleSyncing:T,message:c,date:r||""}):f?t===!1?null:d(mj,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(dj,{date:r}):null}):null}var zS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var VS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),WS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),GS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),KS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var YS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),QS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),JS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),ZS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function Cu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function XS(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return tr(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Li,`${e.type}_user_info`);return}e.onOpenUrl(Ts,`${e.type}_user_info`)},children:[d("img",{src:n?G8:W8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(fj,{...e})]})}function fj(e){let{t}=O(),n=ne(()=>Cu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Li,`${e.type}_pro_logo`)},children:d("img",{src:gi})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Ln)},children:[d(bn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ln,`${e.type}_user_upgrade`)},children:[QS,d("span",{children:t("popup.upgrade")})]})}function $S({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=eo(t.config.translationService,t.config.targetLanguage),s=sr;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(hj,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:K8,style:{maxWidth:"unset"},class:"mx-2"}),d(bj,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function hj(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function bj(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var eT=220;function tT(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=Ce(null),[o,s]=N(eT),[u,l]=N(0);return Bu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,h=20,y=30,b=5,v=g.clientHeight-h*2,C=t.length*y+b*3,x=f+m.height;if(C>g.clientHeight-x){let w=Math.min(v,C);l(g.clientHeight-f-w-h)}else l(0);s(Math.max(eT,v))}},[i.current,r,t]),q(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(nT,{item:n,isDefault:!0}),ZS]}),d(yj,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function yj(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return q(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(nT,{item:o,onClick:e.onClick},o.value))})}function nT(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:gi}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var vj={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/1BMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubq6urf39/m5ubn5+fl5eXm5ubn5+fk5OTm5ubn5+fm5ubm5ubo6Oj///8AAADm5ubu7u78/Pzw8PD9/f0YGBj29vb19fXp6en5+fns7OyXl5fq6uoGBgYbGxvo6OiKiopmZmYODg4SEhIKCgr7+/vi4uLFxcWDg4NSUlJHR0fBwcG4uLihoaE+Pj45OTkjIyPy8vLf39/X19fR0dG8vLyysrKurq6SkpKPj492dnZhYWFaWlpDQ0M1NTUvLy8WFhb4+Pjc3NzExMTDw8N+fn5vb29qampOTk7Jycm1tbUyMjInJyepqammpqZk08NKAAAAFHRSTlMAIN/vkHC/MBDPQJ+vYGCgn4BQbzeD8L0AAAUOSURBVGjezVrpWptAFA1rQrZWO1wIAkljU5MYNXGpWu1i3Vtr1/d/lpKZa0MqzJAw+PX8UAe+8XDvucvATCkrKquGXrdUDSJoqmnqRrVSkgnFqKmQALXeLMthqOqMoNMK/LbrkQie2/aDVocR1ap5GSorFkRwfJckoO074ZSnqeSgKOtTCVptwkGb8tSWpVHMqZOQgQffWZamok+NcEkmuMvRvNAiCqpydhq1ubCnOmjFIjSmspAZoU8Whh+CZmRWg+MpoTF6NldZAAFZEgGAqmTgUCF0ydJwwwwsZQ26HskBtwtaWcjRIjnhIEtBHIgWl0VBDgksCkdz5MgLJ119FbpEErpgJfdNHWNXBrwwOStfALhEGlwAI1H0gEhEkCS+CQ6RCgfMfzkaM0HkyWI8il6fSIYP2nyEPUdnSUVnPsKUWGRJjTClUEOwvJgFGoLwAMqLGOI7FLhGCtgoEJuiL2CIO15j2KXD12wwFk6bBVhDbMhk3WY4o23zmA3XJ+IAW0GSDDny0Ub0w+lw85KNPormtcHCdwMIhYqs2Q/4TS98YINXh6KZANWssp/af7FPLxwN2Oh7VulVEK7cP81I1kf0yg4bfRL7S6WLB7G3Rlf2DNv00jsm/WAk9pciji1UYIYfHs2UN2z0QVjxaS2uC2PLO7DjOKEXN1AiX9i8alSSTcLHW0ySMfu1wS4i5VthPkaiVKCXMUnGu5gq7OF/okRiUSpRlnREz4Lu33Me/mClBVPFFSb9askQLugmNsUgIHfsr3OWKujEXWGmGCVduEhBic8I+YZ0R/FU2fBEyuslUxRcrb5NMYlKFobZa5YqKFFX1OrrJVOU7y9jvseEOaBTfCwtL8U1UhX1kgub4iuJcDNkpeXzXKqIY1gDvk+PbYZvNC3P46myhbdGgh6slQAIFxipF0Hcd2u0xB9iSH8RJYqIJLic+0e9V2x4Skdf2ODSy0kywRB6qB5nbHzPujBKdJKT5A4f9vPW1u1t9AO9N7ihgXOPQSEgEQgPV3YytumsXxjewBdeEMJ7dgoOaCB08Rn2BCFscSv92E7DVrwvn3u8ZDT5PWs0TOPA1dB3ViWHI15ZMfkFcttOxYA+/PVPrGbcAskt9df7djpO44/xw+eW+lVO0zrBVdD2yzgO4quh4z42fk7TqnLbL2behZsUcX2Yq2bc9suJ4S7WkPfzlw/7qEO8ml0Bd3X3LFX5dzbDEZnHDhroUZcPUaJU3esRiQEOP0n2/02CXSS/iVPupC7umhGJkiZKd4jeejQP3XgXt3c9pQuHUOYtuN+z2cPHs7+yO2/oPG+mXJokEfSUTLlfo0iIm1t259Xcu91Oirdq+BLUS77PkGCm22K3rvGdlSHFW7i9YqG/CoAfeYthBZO+AHSgiSQVLTkfZX74QOnlA2VHlKGHCVeIIQgTTSnOkOI/RSF0DLDCDMEA82VzBI8+cxsQStbeDaH55J9si//4PHNYr+DP6Lgh4EkURE/e+rNkbm2o6Zs0jizRVeVpt5uefuMMWZxitwCRpZsrkr1uxPE/bMtSll6eDWZLyIFZCc5SxngOgJ71yIyhQRgUt+mPUMzFjXE7eHwhOxrqYjReC9CMRaA8g+w0bgtQjeVofDFFuwN8T4lpQqfNZZgaoel5TkcpDZXyBJuJXvIdiGCtVHIfvXqWcPRqc3b0Sq+WpKDcqCcfIqsZSkkmKlVDN82H43BWXTdWMzvpD+hXjcrTZ7SLAAAAAElFTkSuQmCC",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,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",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABlVBMVEUAAADn5+fm5ubm5ubm5ubm5ubf39/k5OTq6urn5+fl5eXm5ubn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojl5eXk5OT///8AYv//UC4A0mPm5ub8/Pzv7++/2P/19fXx8fH/7uvs7Ozp6en+/f3n5+f5+fn39/f9//8/iP/W5f//bE//08r7/v36+vol2Xro6OgF02YOa//u/PXb+ekM1Gv/d13/Xj/q8//f7P9zqv8XcP8HZv/q+/L/9PL/6ufM9uDG9d2z8tGZ7sH/w7eF6rVj5KBO4JNA3oow24EY13L/h2//VTT/UjD1+f/x9/9XmP8nev8fdf/2/fry/ffw8PDu7u7/18+n8Mr/zcJo5aNc45v/qZg33IX/l4Mg2HcQ1W3/aUv/WDfT5P/H3f+y0P+oyv+gxf+MuP9koP9JkP/1/fn/+vnj+u7/8e7W+Oe89Nau8c6f78WO67p86K9H34/Z6P+Fs/9po/9fnf83hP8ufv//5uH/492S7LyM67n/vbD/uax256v/qpr/oI3/fWP/blJ0WKayAAAAF3RSTlMAIN/vcL8QkDBAn4+gz69gYM+AUG+wMJ1qvdUAAAVLSURBVGje7Zrnd9JgFMYhgzCkUw1wE4NhBKtAW7Va69ZWq9bV7aht3XvvPf9uX1JDCnlXCHj84POt5/ScH/c+9x259w3xKtIvJbp6BRGQREGWE1IsEmqnwlJcAIyErp5oewixhA0omFnDqmh5FSmvFS0jaxZsUDwWlBDpS9YAuqGpGFUMPVfj9IQDIKIJERGyRZWios2Jt4oJywBgIgJL1lyrmEiiFoSmcknTW8JsFAGytsv8GKHHd6ZMNwpujBz2FUbOUn3LyIEo+XBjlpApdjAJvlT1QsFQW5RRACHMwRAgp6ktS8txUKIimHk1gDQTxCiTMasGlI4oDEZWDawslRJ2GMEpYYrns2pbpJPdF8BU2yQTevHnZsKt3cDK5/CrciMUuBj3Z7gquQAS1nSedV56Vq0eK/GsfZz5MugqW0cmM0iTh7nMl5sZ3TyGPLw0lLE1dHknjy1Sc/WykzXzYnemruXnTIwFYmOFbWAn6+m1TIOqR9l1nGgIBEBjmHEy49GJx4wKAwj7COThxO4MRkOXDjC2F5k7kNLzoQxBp46Vad4XIMoZyEKTGT6syYLCFcjjJjMw1uwiu+IWWDfMqQTtRCuDqaHxGXKB9dV3X8L9pzze5DfZGgKkCMk1RgxyeL+PVjG5OTI9/QSTwauEnaYAMartR05lmjX5pGTjF7z4yQNU6wUg3NwPTGQatOzWa/lbYyKXP5VJ+RJqjM0oWyQdvrrO3omG3WrX5XWMCfKiLEDYri2dtmNV3UIl/YKXu6g7voQgXdj9tx79/c+1xFQXSrgDrObataNl+uEVty2pqF5teTvgJubkeJmwjF68HJ92/pj/uRW7HpEpERhUcZDU8L6zqg8dWppKb8WbEkGrxMRDUqmLt0vcjO+r6TQeYkJ/SIIsAYL0fgsf4vgKQhAgWeS8AgYRgnR+lI34MIIARIgBSkgGiwZJDV9nhrGapkEs2IQgRRoExcKCjKSpkAokUQVrdMg2FmQ7CeLWsAj5zkLyIIYA1M5CVID/EF+Qv2L83ynhJFQ6CymCjM4sq7MQC0EUMDoLMUBxtvqgEPpW3w8mHXKBcXI92EOHmBAjH7+O9jP2+h11Bvn4tWuYBkndO0djHNxOh1RAsG+pBh2SeneDEsdKmg4xYBOCSKDTIShjb/YSriinXQIBokOP/Qk0yIAgDd85i8nUj6k0E5KDqHPhZkFQkd1Um/QFlRUd4l64QwpupdxIeXRvQF2neXS0c0B0iNuQGC5fpdtjXszdep1tPX3Gg1hZxGYrFrKVxF5Y9u7b76GM/cnZ11UP4swV/MYlhNbUR+jYjZ73UIbtMvuY9mjpEeHD1BkSRETSJ/aWC82UAWeRN2hkntX4cK3HWHNnmA3Zc9w5XHG2O9oMg86/saxxIa4ZD/g6ODKtHzywjQKZOn2I9ikX529F3bpIgows8reiQgq9JVx6PdYMcc1gB+IWGH30M3rXAzmzdJDeT/W0uSXIMSYar7a5EMcMxiSlx3/LtoSsqUN+LfK1bP03n8/tG1uD7LnC3XxuTtgguzM8ah8rjw7ytdExUjy2BBptKfjRX7Kdow2BPKTR2z2k6fy4qfODMypF7+AI0KWYWhBE3kSMf2Esa1MGgwyYe+kMd1WCrrWUKh1A4X0yI4mQayEYyx76cyss+w9GM53nC9zqFvxh8llww+APZgPwY7RsgewGGzNnsRFFE+iZYmNyepFKqAUhKtEgj666BZtjVLBZMnREgN6+SOCnVxvcp1dF5+lVxX16pcRCbVG0uwv/iCwuhUPtVCQmKbLsPIdLdilSP3eSfgOwPhJrcdcnSQAAAABJRU5ErkJggg==","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function Qm(e){let t=vj[e];return t}function rT(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=Tj(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(aT,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(Cj,{...e,currentTranslationService:a})]}):null}function aT(e){let{t}=O(),n=ne(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=oa(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(tT,{className:"translate-service",items:n}):d(la,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function Cj({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=Sj(e,o),l=xj(e,o),c=ue((g,p)=>{t(f=>{let h=f.translationServices||{},y=h[u.id]||{};return{...f,translationServices:{...h,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[g.name],onSelected:y=>{if(h.action=="jumpOptions"){let b=h.args||[];r(...b);return}c(g.name,h.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(le,{children:m.map(({label:g,items:p},f)=>d(aT,{label:g,items:p,ctx:e},"field-"+f))})}function xj(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function Sj(e,t){let{lang:n}=O();return ne(()=>{let a=Ms(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Qr,e4,e,n,t])}function Tj({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Ls(t,"translationService",c):[],[t,c]),g=ue(f=>{let h=m.find(y=>y.id===f.value);if(h.ok){if(u({translationService:h.id}),n(y=>(a(y.translationService||"",h.id),{...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=tr(t.config),y=m.filter(b=>t.config.showUnconfiguredTranslationServiceInPopup===!1?b.ok:!0).map(b=>{let v=rd(b,e,f,l,!0),C=Qm(b.id);b.id.startsWith("custom-ai")&&(C=Qm("custom-ai")),b.id.startsWith("mock")&&(C="");let x=ai.includes(b.id)&&!b.ok&&!f;return{label:v,value:b.id,selected:b.selected,img:C,onSelected:g,isShowProOrCustom:x,isShowGoSetting:!b.ok&&!x}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Qm("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function iT(e){let t;try{t=new URL(e)}catch{return!1}let n=V5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(wj(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function wj(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function oT(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function sT(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=Ej(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=ue(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(la,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function Ej({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&iT(e)){c=oT(e);let{matches:b,excludeMatches:v}=f;m=!!b.find(C=>dt(e,C)),g=!!v.find(C=>dt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:b}=t.config,{matches:v}=b;v.includes(n)?p=!0:p=!1}let h=ue(()=>{let b=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(w=>w.match!==b),x=!1;C.length!==v.length&&(x=!0),x&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=ue((b,v)=>{if(b==="default"){s(w=>{let S={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:G1(e,S.matches),excludeMatches:G1(e,S.excludeMatches)}}}),h();return}let C=b,x=C==="matches"?"excludeMatches":"matches";l&&s(w=>{let S={...w.translationUrlPattern};return S[x]=G1(e,S[x]),S[C]=qn(v,S[C]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...S}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function G1(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!dt(e,n)):t):[]}function uT(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=Aj(e);return Yr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(la,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),d("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||ri[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(kj,{...e})}function Aj({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>ri.filter(s=>!(s==="Off"||ri.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ba(s)}),l=ri.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function kj(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(bc).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(la,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function lT(e){let{isAlwaysTranslateLang:t}=Dj({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function Dj({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function dT({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=Te(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:zS,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:YS,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(yl,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:JS,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(Cy,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(yt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(cT,{...s})}):d(cT,{...s}))})}function cT(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var Lj=["bing","transmart","google","yandex"];function gT(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:gi,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Ln,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Ln,`${e.type}_trial_pro_service`)}})]}):null}var mT="popup_trial_pro_show_count";function pT(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=Ce(!1);q(()=>{Eo(mT,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!Lj.includes(m)},[t,n,r,i]);return q(()=>{!u||i==null||s.current||(s.current=!0,Ao(mT,i+1))},[u,i,s,a]),{showTrialPro:u}}function K1(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=N(""),[c,m]=N(null),[g,p]=N(null);q(()=>{nt.get(pt,null).then(v=>{v?(m(v),p(kt(v))):p(!1)}).catch(v=>{p(!1)})},[]);let f=!0,h=He();n&&h&&(f=n.generalRule.showSponsorOnSafari);let y=tr(n),{showTrialPro:b}=pT({ctx:a,isHidden:y,isProUser:!!g,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[y&&!g?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(XS,{isLogin:!!c,isProUser:!!g,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(_j,{openSharePage:r})]}),d($S,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(rT,{isProUser:!!g,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:b}),d(gT,{showTrialPro:b,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(Rj,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(Fj,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d(Oj,{aiContextInfo:s,curUrl:a.url}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(W1,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(sT,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(uT,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(lT,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(Pj,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(Mj,{ctx:a})]}),d(dT,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:y})]}),d(Ij,{...e,isProUser:!!g,isShowPricing:f,setMessage:l})]})}function Mj({ctx:e}){if(e.rule.imageRule?.type!="manga"||!um(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function Pj(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&Mf.includes(i.type||""),[n,Mf,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Wd()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function Rj(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(yt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?WS:GS})})}function Ij(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ue(v=>{i&&(o(C=>ji({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ui(i,s.rawUserConfig),m=Te(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[VS,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(Bj,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(V1,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(Ln),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?h():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(Ln,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(hl,g):v.value==="cleanCache"?ma().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&b(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function h(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function b(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function Fj({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Do(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Xn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):X()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(xr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Ba(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function Bj({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=Hn();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${F}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),lr(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[Ro(e.config),e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function _j(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),KS]})}function Oj({aiContextInfo:e,curUrl:t}){let{t:n}=O();if(!e?.visible)return null;let r=ne(()=>{let a=new URL(t);return a.searchParams.append(G0,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return d("div",{class:"flex flex-row mt-3 items-center",children:[iS(),d("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&d(yt,{text:n("contextDiffPreview",{1:r}),children:Rm()})]})}var Lye=1e3*3600*24;async function fT(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[Z6]:t.toISOString()}),await Y1(),X()||await Q5()}catch(t){k.error("run cron task failed",t)}}async function Y1(){try{let e=await Br(),t=await $({url:ki});sa(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;za(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ea({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}function Jm(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});Ze(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,h]=N(null),[y,b]=N({visible:!1,preview:!1}),v=Ce(!1);q(()=>{!f||v.current||(v.current=!0,Ne("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,v]);let C=_=>{r(_.detail)};q(()=>(document.addEventListener(So,C,!1),Br().then(_=>{l(_);let U=Lt();p(U);let z=st();r(z),fT(_.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",S)}),[]),q(()=>{Br().then(_=>{l(_)})},[a]),q(()=>{c&&u&&Zm().then(_=>{h(_)})},[c,u]),q(()=>{let _=gd();b({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let x=ue((_,U)=>{T("change_translate_service",!1,{translation_service:`${_}_${U}`})()},[]);if(!u||!f)return null;return d(K1,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},aiContextInfo:y,request:$,onClose:A,onToggleEnabled:D,onChangeService:x,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{I(Lo(f.rule)||c)},openAboutPage:R,openSharePage:T("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:_r,onSetBuildinConfig:U5,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:M,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function w(_){p(_);let U=qS(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:U})),Tr(_)}function S(){m(globalThis.location.href)}function T(_,U,z={}){let Y={trigger:"page_popup",...z};return()=>{hn({method:_,data:Y}),U&&t()}}function A(){t()}function D(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function M(_,U){let z=_;U&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${U}`),Sd(z,!0),setTimeout(()=>{A()},50)}function I(_){_&&(Bs(!1,_),setTimeout(()=>{A()},50))}function P(_=!0,U=""){Aa(_,U),setTimeout(()=>{t()},50)}function R(){xd(),setTimeout(()=>{t()},50)}function L(){Y5(),setTimeout(()=>{t()},50)}}function xT(){let[e,t]=N("Original");return q(()=>{let n=st();t(n);let r=a=>{t(a.detail)};return document.addEventListener(So,r),()=>{document.removeEventListener(So,r)}},[]),{pageStatus:e}}function ST(){let[e,t]=N("Original");return q(()=>{let n=Is();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ll,r),()=>{document.removeEventListener(ll,r)}},[]),{mangaStatus:e}}var hT=6,Nj={position:"right",top:335};function TT({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=N(!1),l=Ce(!1);l.current=s;let c=Ce(null),m=Ce(!1),g=Ce(n.floatBallConfig||Nj),p=Ce(0),f=Ce(0),h=Ce(0),y=Ce(!1),b=Ce(0),v=Ce(0),C=Ce(0),x=Ce(0),w=Ce(!1),S=ue(T=>{if(!a)if(clearTimeout(c.current),T)u(T);else{let A=qe().any||xr();c.current=setTimeout(()=>{u(T),y.current=!1},A?3e3:0)}},[u,c,y,a]);return q(()=>{a||u(!1)},[a]),q(()=>{if(i.current&&g.current){let T=Q1(g.current.top);g.current.top=T,i.current.style.top=`${T}px`,i.current.style.display="flex"}},[t,i]),q(()=>{if(!o.current||!i.current)return;let T=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,b.current=Date.now(),h.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),S(!0),C.current=L.clientX,x.current=L.clientY,w.current=!1,(qe().any||xr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{bT({startX:p.current,startY:f.current,endX:C.current,endY:x.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",I),document.addEventListener("mouseup",D),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},A=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,x.current=L.clientY,w.current))return;let _=L.clientY-f.current+h.current,U=Q1(_);i.current.style.top=`${U}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),R(),m.current=!1,clearTimeout(c.current),y.current||S(!1),w.current)return;bT({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let U=Q1(L.clientY-30);g.current.top=U;let z=await Mn();_r({...z,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),T(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},P=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},R=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",T),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",T),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,S,e]),q(()=>{if(qe().any)return;let T=D=>{D.target===i.current&&!y.current||!l.current&&vT(D)&&c.current||(y.current=!0,S(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&vT(D)&&c.current)){if(m.current){y.current=!1;return}D.target===i.current&&!y.current||S(!1)}};return i.current?.addEventListener("mouseover",T),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",T),i.current?.removeEventListener("mouseout",A)}},[i,m,S,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:S}}function bT({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>hT||i>hT}function wT(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function ET(){let[e,t]=N(!1);return q(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var yT="hasShownFloatingBallGuide",Uj="2024-01-06";function AT(e,t){let[n,r]=N(!1),a=ue(()=>{Qe(yT,new Date().toISOString()),r(!0)},[r]);q(()=>{if(!e.config.enableShowFloatingBallGuide||Lt()==e.targetLanguage)return;let o=dt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Pt(yT,""),u=await Pt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(F0,o),()=>{document.removeEventListener(F0,o)}},[]);let i=ue(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function kT(){document.dispatchEvent(new CustomEvent(F0))}function DT(e,t){let n=Ce(0),[r,a]=N(!0),[i,o]=N(!1),s=Oe(),[u,l]=s,{t:c}=O(),m=ue(()=>{e?.config.floatBallTooltipRule&&(qe().any||xr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);q(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=ue(async()=>{if(!e)return;n.current=n.current+1,m();let h=await ln();l(y=>{let b={...h};return qe().any?b.h5FloatBallMainBtnTooltipShownCount=n.current:b.pcFloatBallMainBtnTooltipShownCount=n.current,b})},[l,m,n,e]),p=ne(()=>qe().any||!r||xr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||xr())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${Ba(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function Q1(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var J1=0;function vT(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(J1=Date.now(),!0):Date.now()-J1<100}function LT(e,t){q(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(To,n),()=>{globalThis.document.addEventListener(To,n)}},[e,t])}function MT(e,t){let n=Ce(e);n.current=e,q(()=>{!n.current||!t||Ne("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var CT="imt-float-ball-active";function PT(e){q(()=>{let t=!!document.querySelector(`meta[name='${CT}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(CT)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(R0,n),()=>{document.removeEventListener(R0,n)}},[])}function RT(e){document.dispatchEvent(new CustomEvent(R0,{detail:{active:e}}))}function jj({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return q(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(le,{children:[e&&d("div",{className:`${F}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${F}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${F}-sheet-content`,children:n})})]})}var Xm=jj;var Vo="imt-fb";function FT(e){if(globalThis.innerWidth<=385)return d(Xm,{isOpen:e.visible,onClose:e.onClose,children:d(IT,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${F}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${F}-popup-overlay`,class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(IT,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function IT(e){let{t}=O(),[n,r]=N("UntilNext"),a=Cd()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Vo}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Vo}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(bn,{type:"modal-close"})})]}),d("div",{class:`${Vo}-close-radio-content mt-3`,children:o.map(s=>d(Hj,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{ka(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Vo}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Vo}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function Hj(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=qj(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Vo}-radio-sel`:`${Vo}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function qj(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var Wo="imt-fb";function BT(e){let{t}=O(),n=a=>{a?.target?.id===F+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${Wo}-guide-container`,style:r,children:[d("img",{class:`${Wo}-guide-bg ${e.fixedPosition}`,src:zj}),d("div",{class:`${Wo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${Wo}-guide-img`,src:rn("images/float_ball_intro.png")}),d("div",{class:`${Wo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` -${t("floatBall.longPress")}`:""]}),d("div",{class:`${Wo}-primary-btn ${Wo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var zj="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var _T="imt-manga";function OT({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===F+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ue(()=>{if(t(),!a.isPro){if(a.user)return window.open(ly);window.open(sy)}},[a,t]);return e?d("div",{onClick:o,id:F+"-popup-overlay",class:`${F}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${_T}-guide-bg ${r}`,src:`${xn}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${_T}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(bn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var fi="imt-fb";function Z1(e){let{t}=O(),n=Oe(),[r,a,i,o]=n;Ze(r,a);let s=ft(r),u=e.ctx,{isFullScreen:l}=ET(),[c,m]=N(!1),g=Ce(c);g.current=c;let[p,f]=N(!0),{pageStatus:h}=xT(),y=ui(u,r),b=ue(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&hn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,hn,m]),v=ue(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:x,active:w,ballRef:S,floatBallConfigRef:T,setActive:A}=TT({handleBallClick:b,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),D=y?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:P}=AT(e.ctx,y),{closeTransform:R,logoContainerTransform:L,settingTransform:_,mangaTransform:U}=wT(y,w||I);MT(u,w);let{tooltipDelay:z,disableTooltip:Y,tooltipText:ee,handleShowTooltip:Re}=DT(u,h);LT(m,g),PT(A);let H=globalThis.innerWidth<=385;return C?d(le,{children:d("div",{class:`${fi}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||I||c?"all":"none"},ref:x,children:[d(Vj,{ctx:u,setVisible:f,closeTransform:R,setActive:A,getModalStyle:()=>NT(T.current.top,300,D)}),d(yt,{enableMobile:!0,text:ee,position:M,delay:z,onShow:Re,disable:Y,children:d("div",{class:`${fi}-btn ${D} btn-animate `,ref:S,style:{transform:L,opacity:w||I?1:.5},children:d("div",{children:[d(bn,{type:"logo"}),d(bn,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),d(Kj,{ctx:u,mangaTransform:U,floatBallConfigRef:T,fixedPosition:D,hidden:I}),d("div",{style:{marginTop:"12px",transform:_},class:`${fi}-more-buttons btn-animate`,children:[d(yt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{Sd(yy,!0)},children:d(bn,{type:"file"})})}),d(yt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${fi}-more-button`,onClick:()=>{A(!0),m(!0)},children:d(bn,{type:"setting"})})}),d(Qj,{ctx:u,tooltipPosition:M,rule:y,active:w})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:_},class:`${fi}-more-buttons btn-animate`,children:d(yt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xo,{detail:{type:"webReport"}}))}})})}),d(X1,{onClose:()=>{A(!1),m(!1)},isSheet:H,visible:c,getModalStyle:()=>NT(T.current.top,500,D)}),d(BT,{visible:I,top:T.current.top,fixedPosition:D,onClose:()=>{P(),A(!1)}})]})}):null}function Vj(e){let{t}=O(),[n,r]=N(!1),a=Oe(),[i,o,s,u]=a,l=ui(e.ctx,i),c=ue(g=>{e.ctx&&o(p=>ji({...p},g))},[e.ctx,o]),m=ue(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(le,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(bn,{type:"close"})}),d(FT,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function X1(e){let t=n=>{n?.target?.id===F+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Xm,{isOpen:e.visible,onClose:e.onClose,children:d(Jm,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.getModalStyle(),children:d(Jm,{onClose:e.onClose})})}):null}function Wj(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var NT=(e,t,n)=>{let a=Wj().height,i={position:"fixed"},o=0;return M6()&&(e=Gj.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},Gj={position:"right",right:0,top:335};function Kj({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=ST(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();q(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Dt(p))})},[c,s]);let g=ue(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await nt.get(pt,null);if(kt(f)){e.user=f,e.isPro=!0,hn({method:"toggleTranslateManga"});return}s(!0);return}hn({method:"toggleTranslateManga"})},[]);return!um(l)||r||!l?.enable?null:d(le,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(bn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(bn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(bn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(yt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xo,{detail:{type:"mangaReport"}}))}})})]}),d(OT,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var Yj="float_ball_upgrade_show_count";function Qj(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=tr(n.config),s=Ce(!1),[u,l]=N(null),c=ne(()=>Cu(n.config),[n]),m=p=>Cu(p)?.upgradeShowCountCacheKey||Yj;q(()=>{Eo(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=Cu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return q(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ao(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(yt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Rf,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${fi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(bn,{type:"upgrade"})})})}):d(yt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(Rf,"_blank")},children:d(bn,{type:"upgrade"})})})}async function UT(){try{let e=await Je(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=F+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});Jj(a,e,n),document.documentElement.appendChild(r)}catch{}}function Jj(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Te(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Zj(e,[i]),e.appendChild(r),Ca(d(Ji,{lang:t.interfaceLanguage,children:d(Xj,{ctx:n})}),r)}function Zj(e,t){for(let n of t){if(X()&&!Xn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function Xj(e){let[t,n]=N(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");q(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(To,u),()=>{globalThis.document.addEventListener(To,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(X1,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function $m(e){document.dispatchEvent(new CustomEvent(To,{detail:e||{}}))}function $j(e,t){for(let n of t){if(X()&&!Xn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function $1(){let e=await Br(),t=await ln(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await _4(r,t),i=dt(r.url,a?.blockUrls),o=await Rt();if(!a?.enable||i)return UT();let s=document.createElement("div");s.id=F+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return eH(u,e,o,r),document.documentElement.appendChild(s),s}function jT(){let e=document.getElementById(F+"-popup");e&&e.remove(),$1()}function eH(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Te(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);$j(e,[o]),e.appendChild(a),Ca(d(Ji,{lang:t.interfaceLanguage,children:d(Z1,{localConfig:n,ctx:r})}),a)}var HT=!1;async function qT(){HT||(HT=!0,$1().catch(e=>{k.error("init popup error",e)}))}var yc=null;function vc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");yc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function e3(){let e=globalThis.location.href;if(!(!yc||yc.url!==e||!yc.subtitleItems.length))return yc}async function zT(){let e=e3();if(!e)return;let t=await Rt();t.downloadSubtitle=e,await Dt(t),ka(vy)}async function VT(){let e=await Rt();if(e.downloadSubtitle)return e.downloadSubtitle}async function WT(e,t){let n,r;if(t){let a=zm(e);n=new Blob([a],{type:"text/html"}),r=await Qt(),r=Ni(!1,r)}return{siteUrl:location.href,pluginVersion:Hn(),isMobile:qe().any,platform:La(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function GT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await na();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ct}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var t3={};function ao(e){let t=eg(e)||{};t3[e.sourceUrl+"_"+e.to]={...t,...e}}function eg(e){return t3[e.sourceUrl+"_"+e.to]}async function KT(e,t){let n=location.href,r=Object.values(t3).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:La(),images:[],version:Hn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=zm(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Qt();a.userConfig=Ni(!1,o)}return a}async function YT(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await na();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ct}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var Cc={width:94,height:80};function QT(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?QT(e.parentElement,t+1):e}function xu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=QT(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Cc.width+"px",c.style.height=Cc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Cc.width)/2+"px",c.style.top=l.top-u.top+(l.height-Cc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Cc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`,H1="immersive-translate-toastify-shadow-root",q1=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(H1)){let t=document.getElementById(H1);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=H1,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=uj,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Gm(e){e=e||{},new q1({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function UT(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function hn(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{k.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:L0,payload:e},"*")});let n=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(n)}function z1(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Kt(o,s=>{s.preventDefault();let u=r[i];hn({method:u,data:{trigger:"shortcut"}})})}}var lj="imt-fb";function bn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${lj}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function jT(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Km="DROP_DOWN_DEFAULT_VALUE";function V1(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return d("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Km,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Km){s.current.value=Km,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Km,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var cj=({date:e})=>{let{t}=O(),[n,r]=N(!1);return q(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},dj=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},mj=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},gj=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function W1(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[x,w]=N(null),T=jn(),S=async()=>{m("");let A=o;if(o===null)try{let D=await n({url:ki});D?(s(D),A=D,p(!0)):(m(i("unknownError")),l(null))}catch(D){l(null),m(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return q(()=>{we.DEBUG||Qe().then(A=>{let D=A.buildinConfigUpdatedAt;C(A);let M=new Date(D);if(a(D),T==="0.0.0"){h(!0);return}n({url:ki}).then(I=>{let P=I,R=P.minVersion,L=T;s(P);let _=P.latestVersion;if(_&&(qa(L,_)?w(!0):w(!1)),qa(L,R)){let U=P.buildinConfigUpdatedAt;new Date(U)>M?(l(!0),S()):l(!1)}else b(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),q(()=>{Qe().then(A=>{C(A),ia(A)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(mj,{}):c?t===!1?null:d(gj,{handleSyncing:S,message:c,date:r||""}):f?t===!1?null:d(dj,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(cj,{date:r}):null}):null}var HT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var qT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),zT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),VT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),WT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var GT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),KT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),YT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),QT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function Cu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function JT(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Li,`${e.type}_user_info`);return}e.onOpenUrl(Ss,`${e.type}_user_info`)},children:[d("img",{src:n?V8:z8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(pj,{...e})]})}function pj(e){let{t}=O(),n=ne(()=>Cu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Li,`${e.type}_pro_logo`)},children:d("img",{src:gi})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Ln)},children:[d(bn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ln,`${e.type}_user_upgrade`)},children:[KT,d("span",{children:t("popup.upgrade")})]})}function ZT({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=eo(t.config.translationService,t.config.targetLanguage),s=ur;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(fj,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:W8,style:{maxWidth:"unset"},class:"mx-2"}),d(hj,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function fj(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function hj(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var XT=220;function $T(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=Ce(null),[o,s]=N(XT),[u,l]=N(0);return Bu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,b=20,y=30,h=5,v=g.clientHeight-b*2,C=t.length*y+h*3,x=f+m.height;if(C>g.clientHeight-x){let w=Math.min(v,C);l(g.clientHeight-f-w-b)}else l(0);s(Math.max(XT,v))}},[i.current,r,t]),q(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(eS,{item:n,isDefault:!0}),QT]}),d(bj,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function bj(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return q(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(eS,{item:o,onClick:e.onClick},o.value))})}function eS(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:gi}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var yj={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC+lBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubq6urf39/n5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////L5P/m5ub8/Pz9/v7v7+9FMi1HMy7+289GNjJBLyr71co9Kib82M3x8fFFNDD508n6+vrs7OxDMCxPOjRJNC8/LCgdHh/39/fp6en20cbsxbk+LSv3/P/09fX/3NHyzMHux7tKOzc6KyojIyX1z8Tpv7MZGBk6KiYaGx3/39X/3tPwyr7S6P7L4vvju7A8KCP/49n2zcHqwrdHOTdNODJMNzErLC1QLynmvbFKNjA+MC84JiP/4dfes6fXsKdXQz0pKCogISMuIR/vwrZcRT9RPDYsGRXk8f/80sf50MTzyb1TRkRPQj9MPzxVPzn91crftqrotqnjsqQ2KCYhGxvM5P/iq5xya2trY2RcU1JTSUlBNDMrHhvd7f/N5f/+2M2xtbnqvK7kt6vXoZCJhodGKibM4PXbsqjbr6OYm53XqZvKh3d5dXYyLS0zJSPo9P/K1eT0xrqnqq3wt6zXraGdnqHLoZXTmYiCfX+Wd3FjWVd/XFVMRUZgSUSES0JaPjclJihAJyI3IBwUCwrw+P/g7//W6v7L2ero6OjW0tXAxsyusbPduK7tsKegpKfSraLKqqHcqZmVlZfinY/AmY/Lmo65j4fNloVbTkxsTkcvMTPs9f/E2vK+1e3g3+DJx8m6vcH7yb+erb30vLKDi5mRkJPPkoDAiXziinrDfWy4d2hgX2FMTlJ3RjxGMCwsJCTH3/i4y+K9zNu1xdimtcjIt7ftqp/SpZnqoZJ5f4mphn2mf3W2f3KJdG9naGxVW2CKaF+gZViNXVOIUkhqSEAdEhHM3u/8zsXJvcL2v7bSsquylZGLio2dhoLFkIHHf22ucWNDREZBPT9eNzFVNzHb3NzG0NytvtHawr+Zp7jDoZyxiH1wb3Okc2nWeWhzWlV7UUk3ODulrbmVn6yLenyAbWqXcGZtPzfo8vvx1c4VzO1GAAAAE3RSTlMAIN/vkHC/nzAQQK/PYGDPgFBvO1+5egAADF5JREFUaN7NmndYU1cYxgXCtrWWXEISQ8AQCCuMpJAYIRIMUzayBCzIEhBwALJHFZEhWBDqAhREREDrHrWuuq171tZWW0f33u3z9Ls3UKt3hGGf9v1Xbn6+3/udcc+544Yr/YnaNMMJmloISEtTR4embaA/7nlKQ1tXEyGQpuGLes+HYEBTAfjmTrYWxgwjEMPYwtbJnK8C6RqMlaD/0ngEZGJrbEQgC1sTO5TzosYYEHo0NAJzCyMKWWAc3dFiNHTQIgFBnWxNRovRp6EmoErDkfHoMC9rAQJLedgYyGbEleLjXKjH6GiMyIadrdGIZWuHaGmPIA0TikpRm6ENr1QTEMTJaJRygmQ0hsHQROyo06A2YzcMip4WwodSjYHCR7T01DJMjMYoE6CoYZhTPc8wR3bs2KFuFjCnpGhQMhjru+d5Bzo4OARmLd6hjqJBnjlFrSx2ZgBAJReud7ctZcXI09dE+KSPIeXZDoEgFAGSyTJ21dWtJ/1zPjKBeN2kUfTuzqxsb+/Jlqg4HAyTOq+v8XAb2QMMO+JR+TKCkD1i3J6VlTXJkiUI8A0IYDEtOdYuqcBxCPQmNWOMINpEoZOP80WZmbMnA8EK5BsgYDE51kGpLtbgycG7hCQcJ6LwdUhDd9xVl5EwWeDrY2UVDRQfXwHL0lpWmcrBLAWWm5OFr/Ms4wWyQBirT3aXv8IU+AIiOjoRZOUjYHJklTJLzJLM5Rsnsli0cd1LbPuNads3Lk6ANHysABEWFRWWaBUAv80N4jKxdGSpgR/9QTzzI1pPd5guSbFem+uxaHnfZBZarOiwqJUrw6wEltbWXC5XxhGwjnFQWurDz+cziPuY9pQRks6aRaefrMrwZmFOEqNWRiUGWAIBk09UmC+Tw+HKUl3KPdY4EneYhlojjPl0ukd7SdZkDIIyrJjWXJmn5ypQgW9iFGYLujnrJH0aEcUc0VFrZDUdNVL+ymQmQKzCgGHJ9fT0LHh041JNkvDCYyihDwusODT+RCekMBBET42RWcCARFZ4MwHiExYV5sPhAuLotzVSnrtbsFtnP0sgEFhyuC6Nyz2AwiCyQqM28hodtKRq8exJqJNoSAAYqx5d3zLDnh08fXqwm7t9/bFjx9AGy+4uhL+dT5DKkwZ7gciI4wIUsmtjZsIkyMQ3ERieXP+jl0qFPDdgoBC2Wc9jjjX0Wmrme3TQLAZBg700CCEaI4xpdFDhov19KERgFWbFkXn637xULTZ1BwQKcWabmYY2AQSsnKSjwsdigYxXMQwQO8JAQJ+1l89+BSAB0dGQuf/rb5d62bPdpg8ZMePZVzdxudYOLiV0VGsIlgjEgDR2VbHmti1f8aoKIuAG+b/+yZYZIjPnYFUiqBF7iaj6MZfr4HDFA6NsI41eE8Gv2TBCQIW7FvcleAPE18c6aNXv1+8XC+3NnN2CgwcZPICIewo8ZYFZ2+kg6DB8vTSxzQNBtRznYs+sbc+AakF3+bK4LaiREKHEjO3u7jboAxhysfS3oCAH71N0TLMI6qVB0lur6apINq5AIUxWACcopmWVf1P/tYsdZmxnd5UPiVwsFgq9iqKCXLJP00msmGBzsSFiS5gIqG3/PDQSJovFjYnxv9Vwo+FW060aoGA+REUXr127UKNQXPCUZe+hq/QGfvHSJY5kGx2Tx666vgQMYinzP3r94LkkqbT6Yo+pGRvzkdTfdKv/VtPK3tCoJ5D5+PEIoegj63DVWkMHoaMkIwtyBwjH89HNT+6XJkm9xHKRvakZmrlI0XsuJCmk9OuGi/WywCHIAgY+FH0YJXzcQITYUb1XlTkbIEwm07rg9xs3b1z7uniGECA8UzNgiIXSGSCFoqinxhoyIasXH5k4Thu/aXyDPggpgVGCQbgF/i05x9NuRzQUeckl9qZQLLHQCwghIUkKRVJnU8KJIchq/EjRht2WE/Fohw7ejw1F2Gt5FuS4Hg5vTTtesaJaiNaLJxJKFdXXmJUu3/cqOkL7Mz2GINPwydNgl2JLGAloyUdoc02yZHI8j/5w9WpFmmt4xfJ6qRyFyL0UPZNzbqd90xhY3xm6EhYUslBsEUOA4Jpr2hBk8RCk4PVvv2n8qOJ2WlDJ/iQRzwwg0urMwOOtrY1VFfVdof1t9L/lSDBHauLXEsgd02cqCBMgNy/9Mu92a2uL/673FTwYKKZy6Vd15SWtraltv4oVoQ3FX/xdr20EPayFPOuPQf+HE28M4n/z7YO/wKD3z1j/J4wS92BTkfju4lVprbdnt92VK7q+zvNaP/TUa7g1WGscguDG+z8g6DABCEzyZWWXbjTUf8FzhonLbTpPIhGdOdYSU1B3Ri7sCIXWFhbSSaYvBKGCrIXgMYglQA5sPn92w97dsWx3mB2DJRJerLLmh0cNX23xknZU53nFi9eODvLefhWEhUJq0zcs2/vB7tiF7m7OC53FStPY3R8sO3t+c3qyoihkhlg0Wkhh9wrV/HgMIPkpKOPOHJjpTeOUUjkG2XD27Ia8pNA8abzIy4McQhV8YckghOV/9JP85Milu+/ELmQ7s+NT0ouFvNg7S/cu27AhOa+oKM9LTBk8UQsvoKvksfEwBhEIHh+9vjUlMl4ZF2uK9q9SLBbxeHFKoCQnh4SWpuR1LKFTtfB40sEIkEzVNiJA8MP1g6W5wnilPUDc2HPuxPF49kpRfGRuXkjoh2d2LplLNRh1xhmSTSugKhXE1yeo6eLBmhCpWCSxXwpBnD9/fq9SJId5GBiXr9D/qbn4aUWHfIIEtWeoINFBEZe/2lKaBzOwRLJs81tvfffdd5ulsPIqwIfnvicEkgmSfKoHLVJBfKJlEZX37p6DISeyt5dvfguEMWYkAaPl9FOQ+URT/USCRWvB0xCrRG5ERMS9LzphPEh4psrk9M3pkWIx6uNeS0zQm08IxIuWAdXyq4KwWFZhlhERORGZZzpCZsgHF1+JXJoU2vV9TMwzkLmEyy9RD2+jq9RWnoW+nPiEMSsjQNmX7xYphBKUAoyiznpODgrZjqsWfneniziRbYkKT+3PTAjkcHw4R7IaH2YHZn+7tTQEghHJvZI6L0TngGJiUt+hqhbkbggQbdLNHWa/8NTP7x5u3E73eOfNEyd6D31cVltaXFx8rj4MzB2vTK3MqVSVi3xz9yJANCAUYitPNPSf7SkrK/v40KGPD/WeOv3lz/v2vQvah0JI5hSQHaJHteHGy+P+gdoDB1BML+7fqDfcMBzNCa3gteR+bX5+fu2BsrKDHoSQbQSHH7qDL0HrCF+C8Hp/a/6m9PRNgDm4ltCIEUG1DDAI0RwJr3ME1aqp3ZSSkpwCmK3vEzDmOuKPPqBaKr1EdGLnSGRkU0pybm5ucsqm/C14K5A6TnzoLZX0tYhfsZ/WqTPAyJVGggCTv2X5iWdymU998IFFTx3L9n0NtenJ0sil8SAUk7418eGVfV9+fmJowK9hGJHGrnqjWwd/QdHHHnuONPen5wJCGRcXJ1HGL43MTfktLW3KFFe/h1c/x0J3pDQC0iG0wlg9OBS/PBJuMyXnnBiW39g5c+aYxsYplfGRvcDANHAaY5AboT6KWo0i9lxtngo/lbZyKRAWokIxccoLaWlTQVOmTvnxTWBQG1Glwic5VNtzdcBmCsjGpvkybyFbJXDDU35vM9PGZiqmjQwjtUawBrMlpJgccQXG1Kk2M11dKy6bstnOIDZ4ies4bgMMFBO+nJDhhDvm1kbsGIQU/uKpgADGzHBXv74uDMOew4vrTLCZOdPVBnRkB9lNyovDP7L99DD8Evxg+EC4X0XCrx92dXX13OsLB2szoV4PFhmRHtmO6PB555Vm1+ZmvwE/VOHHKyr8wl1dm2cC5AFUagSHz1CwddBhZG5KHriG+6kg4T92l/u5go+Bup2AoDpGx4uGxkKuHe1XjgyEN4OHByUbB3483L3egvJqi0Z89Tce18f4U+udi6qq2j81UXcLyUc0KS9p1Avvl/qShvq6iVrU101qL87GztD7r68AMQrfeCwIBh8Y/4drWYyybiwXzBOAMQyhV+WjMsNAr8qH+8mMNlz6O/27l/4gDZ2RmzHmj+zzBdALmiPDwNUz3oZ6M7rI8DHGgKBOgxpjqx5hwUeoK6UeY2diQUlATWjR9Mby0RVkg3KcCEHG8IEPaMJL+mP+9EqX+tMrmsG45yK9FwyJPyLT1YYknqP0DbRpOjpDn8ONN6RpTxx2kf4CQkVKOWmP6LoAAAAASUVORK5CYII=",youdao:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC+lBMVEUAAADn5+fm5ubm5ubn5+fm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubl5eXn5+f////m5ub//v79/v37Axz9/f38/Pz//f/+//39Ahvv7+/7Ax79Ahn9/////fz///79/fv+/f/9Ah39Ah7x8fH6Ah3///z8Axv6+vn9Ah/9//z++/zs7Oz//f7p6en6Ax/9+/78ARv7Ahr7Axj8/vv6BBn9/f///v34BCH4BB34Axf8/v32BB739/f09PTudID1BR/4Axv7AyD9Ahf6/fz++fzwCSHyBCDwBh79//7nNUr8AyL2BBv6Axv/ARv7/v/7+/v++/nsUmXzBR3/+/7+9/v/9/n++ff50NTtUmHqMkbxByT0ByLuBx36Ahf/+/v/9/v8+Pn+/fj96e3wpK7qPFLtDibwDCX+ASH+//r+7/H+7e/72dr1x8nxr7bpZXTuWWrpS17pO07qHTbuHDPuFS/tByP6AyH3Axz8///+6uvo6Oj95uf73eD3zdL3w8jxn63wl6P0jpztfozqbnvrBiH/AR329vb19fX89PP3vsPxu8PyrLfwo6jxjJfui5Xse4nodIDucIDqYnDtXW3sQlXvESjpDCD/Ahn89fb+8/b/9fX97/P84OT+4uPzxM73x832w8r0sbzxs7nvrLPyp7Hulp7ukJvwanzvZXboXGvsVGnpVmTxUGPsSVrpM0vmN0ruLUPpGjDxESvoECf/8vH86eb55eX54eL72d721dvyxcv2v8n0qrLymKfpj5nwh5Psg43vcHvpY3roT2PrRl3oS1fvNUvmMkbqLELwITrmIznxJDjqFCn1Difw8PD84uj0t7/0pa7qn6Xxjp7viZzygpPuhJLyfI3gW23qUF3nRVXvPVHsJkHoKUDlHTTpFTHpDyv57O/yvbvunabjhpLogJHxdoLoZnjqaXTfVWPpJzrpGSzfFCj+6fDtrbz0j6PpmKLll6HbfI3peIXjWWXcSVnrSFTTNUTaHTMbzx6uAAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz1CAf4rUb2sAAAw9SURBVGjezZoFVFtXGMeLS+nWbXmWl8dLQvLSECPEldCRBB1QoFCg6HDv0EK76upuq8vq3m6VbXV3m7u7u5+zm3RdSvJGoeT07J9DAgnwe9/3/+5373v3Deitgh/wHxg22NcPAvLzDQgY6B8aPMCb8vEP9IVo5Bt2f5B3CKEDbwKihgyNFTMxBhDGFMcOHRJ1ExQY2l9C8EODIKDwGUwGjcQzwqMdnPt9+oEIGuiwYIiY0YPETk7g3WJ8AhxJAoQ7KTb8bjHBAx1BMBm9EvPuMP5+AOF0udcY4E2fMxXljKJvmACfPoURHcvos2ZEQ37+fXDjBVem+hjMwN6lajAEDWXcpYYCZ3x6wfCFopmMuxYzuheUID8oCqSqH5QoyC/ojowXGP1UOKDcgTGE0W8N6ZHi42R4heLTg+cgV95Q+H+77wtFMbykKGgw/bw50FG7XhIWTT8q/SEIMLwlJgT505o+lOFFDaUzPwAK9yLCaX6AO+M+lyHes8Xfo3pnMLysWMive4UFgmR5XVHdK8zHrbK8VmE+3g2Evr0E3CmQiAgGDr44HEaP4jAi8Aicw8IZkR7eQ1DQHQKR4pxIA45zekZwODgOG/j8FD5fThNKyJ0ckcboYWmdgdMjJKVOmqEHh8NFEAT2cMVVYPfROxJRxxUfyoyXwz1BcCw+oWIWjucwP14pi6ApsAf/7b6x3f4OpMD5ysImfrd746qMCIcigcALMAD/9ygcv/T9pN1/bcKQjGefqZp8GGPg4HHbUYmhQTcZoVC0m5Mc3AD+pYGbt1OtKf4FY0mlrFvCWRw+4x9FSllw6VtxRtPn3EjtqCQi7s/V0jqugXN7qUBQKK3tLFwfz8zJyZFhs6tLSpZvQGAQwS2IYYxSeSsUvSweU75mRE3nE7D6veqSotcTcpRcGSaP8LTeFxJ3h7AyTj4J1Ny8L20Y1bH4zMPd9Vkpwyl4wte7du26qEAtB5qf3JNoXmF7d8/w4cNH/sSLvD1fvs7Fg1u2GHxu5lJJqs1m05So2cNKhDoUSHRTBEFoqko5OAs4wq9MTiUlpE1BCq06k1XFFqVrzGqNcEqGA+LKlw9dbUnlCe+xSSqVVGvYw1BVOtsh8AyIQHb2HpkeU2IpKfLXLKlUZ2dqpwLVidJFQp2GrVar7cLJGZxuHd/Ri8Pc+y8Lzn3rwoULe5epNOqOZx55+hGHngYvDoGfP5eN+LkRQxDtpN3DRw536u0bonR030indh8Fprk0Ewp0WpLZHWLA+UyZLCu/Y7qu8ETZiNwRIx599NF/nsBzWULmxurrpw9hMbzy0vLSUi43S3bkul23bAKTy+Um5JRqkdshTIcpwdDj7oMYlrKQDPFODYG2NpQ1rM0/NmfOsfWNY1eX86RSmI9pxz9D2ozvj8pCYsCDm/XsuMbtqDV9aUUeC5S9XB4DarybKcEDQmnXQfHKlxJRVdrIJa1tNcVJcUlJcYn7C5pPNa1WKpXcz5YTEgFZvagBS1g3akrLN9drsnVsdmLb0sWbx+XBsMegf2CAP+2iEVnbqgOVpCNtpKlLqBAqFEKSNHYWFrz2sZ5bsbUNVanSkk/mvtUeh9rtGp26RC1B1YTA2LEo1x0yBDgfQrtI4S1MA6UloVAjiCKxuDgpOclIigS16R82gtGvfHFXnI4qeK7hWztbRdjN5uw0axqhTpdIiHO5sEPdli0hYJVCd+J2+EPCjrLRmoLmKZ9unNjUNHvLth1VBygbdWUsR4ogvFUL2js28NaOFpQk71syZWvllknzz7xzINUmOStzh8RCYQAidgOM0WO551Aw7kSa1x+VpaRwcH4MAmaLnEnFtUTVGilr1isvarOe+kGpn5DMVu2bFV/OQ1gsLU+8Q1GbOoXLcIM4eqSvx1ySYoh/OYlg2wnCOgmT8zmO6QLnAm3Ntul+y0NY84rbJskyMEy/MZtNXpv/6hNObXtin7A2dbLBBXHVsB+EuUEw7fNXrSaCWLEiaQ4ikykrNlS+sb35XMv5a7bU2sXl3LxWs6hwwUp9SswJK6oym80oSZKoTicUCiTGTQx3CAb5DYAgdz/0q3aaFOZrNzQrCo9UbNlesDzboqBAZyHQ1Fpyfrl2w7R0galmG49leJOysdEui8lisRiNJp2JJJPWc9whYKB4QuD4BaMluo6Xl6Hsot0dcdR0ihQISBFokaTCZqzMzDo0tZpM7Wwbz0/YjooUZzfPnTsKaO7cEzdQSfY6vHeQCR+Rgrj5E4ol4NhBHbN1xur3qs7tXLJkmVBSNJur1ZYdr0GNxgVYbgtFFFVmAeOdyk9EBcvqGb2BwGW/dwoke1e+lE2xUau1sK35ZNO4shwZgozdL2QnNxoMOC/zLBicbzPrC6avMO597OxjTn3ZolCrvsnFYE+Ip/FYfkvx/kbep106tvHDr2avUWp5Wl4WN5I7/iNCUz2WJ8Vl2EtJCvJSwrj26StIldqRTgGpEKICgmhVYrCn8TQlrJz1ymZexhtWO7r0RR6ijBGPr5zyxZuvbppUmGr+IC8GNEl9fqEJvZSbf1CkVhSOnjZt9Ohp4MmiEaHNGIOuhAe5d3oGIo+XxyunptsVX/Cwcu3YMweLrGaRNTlZoTAXiOtYHHzMscI40x/MOcvVxMXZTwEdPdq04ejwEoLa7gkRg7VqmEdbiWRlSOsShqvsSdt4GaXPvZNmQtO6bBJy+jCV+sbCCWU8TP9qZyo5VVaZjIouHltbX5ZQtrJ+7ewqkLhTPJbnGUQATYPkcBCDdNW7BLtoLgLzFnahZktiIjh0IUoQbOvylo2r885L0Ljj2gVpqABNPHCtoLX14pWORNROWeZpIz3P60JoW30Eg1VxmT19WRMiXfN0uiZx8cT8ifN2XBFSlFCgsmZXvVktQdueL1+UrBYQJEUQwwQoJSFR1LL8E8yQgsMc91b/AO2kldK4nyDaG3Hp8x+YS9oPYwgil+1BBSpLiYqi2JTKaDmj5B6qXHL5QFEcWEGAmaSo+urehZ/M0utTpHy8+6QV6px+PcWZWK0TvT8Wh9cUmM1pX65RxsTkVQntlh8XXbUQgmGUSrH0+LgsWdas8U3zTj28ePHrkzflN+RlyXKPPB9Tx4pwn35pahhozPFks2bpapijnJKWrjFdfmN9Rf37qKY4P7NickGXnVILTUntIxc0NWTGYxgWg+ByBEuoWD///PVFSgSOZLiv7gKhmZ4Q7dY0tmaXjJ+CP/eMWUTVdia3v1ujQmvGRfCx+pffmWYyCRU2SVfy/tadpydv2bx5y+TTj1W11RglgvcaELj7kigMQPzpThyQX9N01qk8DjIGG9+SKFLVOro5oWpf5RgG8SMmLvk20UhKJNMJVGiNy84uzu4SCtJVEqFAkDhHjuDdFnf3A4gPnSncJ1G26ZQM5+r1yLOVbx+0SGoFJEldSnCuY3E467lRO64UCUFVD6MogQBFKUqikBCmmstfHcG6eRINBdEsuJ2SfX3wo+/m5fC5ON/AZYrHz9tx6WByHHpB6axwPgMsuGQNE7e1fDA6ToGKUCEo36LRV/fMX18v0yK4uyVAITQjBR63bt26PJghh2FwgorwmMyVh+ecWPhKprMlgHHAQiIjYX7p2Ambtp5eNHXq1IUn5+Y/m8DjYXIkovvFj0AnJNSVL0+YAxIZiSBwCpyDS+Pl/45Xx4kX+BzTI4gUYdXxtFotz3PCAtkKdUJAjxT/B8IluRwZE6PlxcBuMnARhA8WGSB/BsT1tqtxgWw59SAU1SOEDwTL4TFcA4LBt7/npPP1MALkOA5PSBSorZsK9oOY9BA3IYjre5rP3CCuCx8u670vl+03z+gex7wO8LiCE+AKxcuB3OtLUcAVV4F5PxBXgcV6mzHT4zK3PxTtZe/BTsr99+qS7b2/+AwS9ri3L6PTKATY4kVDQui3/gZ5c2vD9783acK9t0lzD7eb7v3GmYsS7uUtQHpKVL8qGYsCjP/DtqyT8nh/NpgHezLoRyUUflfBYOEQFBLch03/mX1nxPZh0x/IJ6DvwTCj+nb7AtB9vn3DYEMgVxi9DyYQ6j2GCRAuN/qO6cWsLI6CXJm6O0x0uLhHgiMIv5Cg/tx0BbxxcGZm0mZpRjgENPjB4H7fehVIc+tVpuvWq5DQAV5R0H1h9DeRBfoDJ7yo4FD/kICAW7fDDQoL8X+g10n6GxP0vB1JiZBqAAAAAElFTkSuQmCC",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/FBMVEUAAADn5+fm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fl5eXm5ubm5ubm5ubn5+fk5OTl5eXm5ubn5+fm5ubm5ubo6Oj///8EK0jm5ub8/Pzv7+/19fXx8fIoSWPp6enHz9bk6Ov5+frn5+f39/fs7Ozu8fMVOVQJL0v6+/sOM0/r6+twhpcjRV/o6Ojd4+dheow/XXPp7fDK0tmvvMWOoK2Jm6k8WnEZPVjZ3+O9yM+1wMmerbiaqraEl6Y0VGsqS2QgQ1zV2+DBy9K5xM1sgpRnf5BbdYhXcIREYXcvT2jn6+3Q2N2ntb+hsLuVprJ+kqFPan5LZ3w2VW1JZXqjhMOgAAAAFnRSTlMAIN/vcL8wEJBAn4+vz2Bgz6CfgFBvyuvMXgAABPdJREFUaN7Fmudy2kAQgFGjY5zYuVtJhAASzWDcwL3g3hK3vP+7RJKx1yS600qQ5BuPf2jG/thyhTulqGSW9UJxUdXAQ1MNo6DnMql5ouh5FUJQi+X0fAy5QiBouBXbqZsm8zDNumNX3EYgyudmNWSWSr7Ask0WQt22qr6nrMygSBc0z1CpMwn1wJNPqlEMAHDRIMSxkmoyBT8Ik5Ewk2m+aACooGnUcuxMuaggawwlVhhVh8XGroKmx6iGhWHEDKZAS9UiNGyWELsBqkJwqFA1WWLMKsGS1mAFHUksK6ClIx0WmxELLSJHhc1MRWpR0DGrRZHU3GJzwRJXX4UVNidWYDF83SyQevd+/47WyYXQuQQa0Y69E87504BgaYAeWvTIcT74yQPaF2b02A8rvhFZ9OZjl7/R/0EovvG7YyGyIFt+ppDnQXRZ9D+6V56s05/8d3pNucUBbbrDPsuT1exhppD+odziTneYAiBL1uEOD+f4XpowAIUayOY6F9OrSacXgxbIxgWXsvMgHSxpQiDOqMWj+HomCSUbHcjeMadwVROFgg22IAiktsaJdEcdUYMtvc++Tqijz+msCXbKUHp15KDKwnjiH2ldr63LLIIx04CcrOzNNv/AzYY/s0i64EZeehXqocODf2DsOTzOJT0mypfqO9KCbH3jHxhNHh6TJZgvBXtLLjmfPLyMLbGCubgIdrTk++ThUWyJDfmgJJ1ICXbofj+mxPSLkoFVFinBfLHO0Q5NgkXJeKPEpUh2hnfm4OnSnz8G17EkLiyndKhESpDug+Pn7CSGpOJVPgs2RYL/bM/P2bDbGm4dHFMktjccDXDoEpxza8HE2yNIHCh6kjpNgrSO3j/XtkyCc6QKJlmC/3Efxw1KxD2sJZDguDmnSLQUAEsgeWavDKMlDCCJpOv9DF5H5svfkqyfrXu/mliSeUpwq/2tzfl4tHWwzWmSmIXvBhvgXVwhSYUnt/DjaXPreH3XH8IXbY6QWrgEHYpk//1vDmLOwnUwvDXLYTHWk02sA1HigEGcIPcmD0fTmSJOkMSp/m27i0tJrKl+GRctyZboYPLwVig5ES9aOfHy25z6nK8tuMWFbMuWX3EPT+1Kr/3d3VlLLBkx2e7uk6jym1NFHl/1nttix4ktrHvRk+jCb0Cnt5zKZU38db4cfAVaFQ7W4Q5J8bLHhFQhjRvucDbW2pGK1pB5yErikZWepN1H5Kx91ZQffuQDSc7Ll4TOQUviuN1kUqowuV4pYb5ifstuHTI5jp+tgCVwmZxvL+GSXRaBC+WJJIMLl5DDfpgEG1d68IGlj6DWiyvBsgekYdVkkZxuCyTEExyDdh78MCZKMBDyURRiX3bJEgwEq+IyErvbZAkGgg3mMBrfx0SJ/ccxt06/NWn22hSJWYVy/CNbZPeGILHAEB0+U3PWR0n04TOi42AhcPeIkuhjdCQb7zJrcONJJAXJhl/9lWJebfzoCyUroM7rkqZuSy5p/s910/wvzv7FFeD/v8z869eyaFmd5YJ5ER0ysrNclWepr8zoGlQTBOPgpT8FxYgfjOni6wtEFtR4GrMCGAYZ5ROgJlrRwGok0DiEKcwFzFQyTdWqSw1+EFoWx18CzYIaeOxOaJZsyzPA4lJm5levPoW8etXBV6+yudRcSC8Uw18iy+tKap5kcnrWMN5ehysVs/oyOUm/AJAdz9mDSbxUAAAAAElFTkSuQmCC",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function Ym(e){let t=yj[e];return t}function tS(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=Tj(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(nS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(vj,{...e,currentTranslationService:a})]}):null}function nS(e){let{t}=O(),n=ne(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=di(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d($T,{className:"translate-service",items:n}):d(ua,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function vj({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=xj(e,o),l=Cj(e,o),c=ue((g,p)=>{t(f=>{let b=f.translationServices||{},y=b[u.id]||{};return{...f,translationServices:{...b,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[g.name],onSelected:y=>{if(b.action=="jumpOptions"){let h=b.args||[];r(...h);return}c(g.name,b.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(le,{children:m.map(({label:g,items:p},f)=>d(nS,{label:g,items:p,ctx:e},"field-"+f))})}function Cj(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function xj(e,t){let{lang:n}=O();return ne(()=>{let a=Ms(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Yr,e4,e,n,t])}function Tj({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Ls(t,"translationService",c):[],[t,c]),g=ue(f=>{let b=m.find(y=>y.id===f.value);if(b.ok){if(u({translationService:b.id}),n(y=>(a(y.translationService||"",b.id),{...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=er(t.config),y=m.filter(h=>t.config.showUnconfiguredTranslationServiceInPopup===!1?h.ok:!0).map(h=>{let v=nd(h,e,f,l,!0),C=Ym(h.id);h.id.startsWith("custom-ai")&&(C=Ym("custom-ai")),h.id.startsWith("mock")&&(C="");let x=ri.includes(h.id)&&!h.ok&&!f;return{label:v,value:h.id,selected:h.selected,img:C,onSelected:g,isShowProOrCustom:x,isShowGoSetting:!h.ok&&!x}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Ym("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function rS(e){let t;try{t=new URL(e)}catch{return!1}let n=q5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(Sj(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Sj(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function aS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function iS(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=wj(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=ue(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(ua,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function wj({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&rS(e)){c=aS(e);let{matches:h,excludeMatches:v}=f;m=!!h.find(C=>dt(e,C)),g=!!v.find(C=>dt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:h}=t.config,{matches:v}=h;v.includes(n)?p=!0:p=!1}let b=ue(()=>{let h=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(w=>w.match!==h),x=!1;C.length!==v.length&&(x=!0),x&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=ue((h,v)=>{if(h==="default"){s(w=>{let T={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:G1(e,T.matches),excludeMatches:G1(e,T.excludeMatches)}}}),b();return}let C=h,x=C==="matches"?"excludeMatches":"matches";l&&s(w=>{let T={...w.translationUrlPattern};return T[x]=G1(e,T[x]),T[C]=Hn(v,T[C]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...T}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function G1(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!dt(e,n)):t):[]}function oS(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=Ej(e);return Kr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(ua,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),d("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||ni[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(Aj,{...e})}function Ej({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>ni.filter(s=>!(s==="Off"||ni.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Fa(s)}),l=ni.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function Aj(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(hc).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(ua,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function sS(e){let{isAlwaysTranslateLang:t}=kj({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=Hn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function kj({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function lS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=Se(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:HT,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:GT,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(bl,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:YT,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(yy,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(yt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(uS,{...s})}):d(uS,{...s}))})}function uS(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var Dj=["bing","transmart","google","yandex"];function dS(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:gi,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Ln,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Ln,`${e.type}_trial_pro_service`)}})]}):null}var cS="popup_trial_pro_show_count";function mS(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=Ce(!1);q(()=>{Eo(cS,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!Dj.includes(m)},[t,n,r,i]);return q(()=>{!u||i==null||s.current||(s.current=!0,Ao(cS,i+1))},[u,i,s,a]),{showTrialPro:u}}function K1(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=N(""),[c,m]=N(null),[g,p]=N(null);q(()=>{nt.get(pt,null).then(v=>{v?(m(v),p(kt(v))):p(!1)}).catch(v=>{p(!1)})},[]);let f=!0,b=He();n&&b&&(f=n.generalRule.showSponsorOnSafari);let y=er(n),{showTrialPro:h}=mS({ctx:a,isHidden:y,isProUser:!!g,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[y&&!g?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(JT,{isLogin:!!c,isProUser:!!g,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(Bj,{openSharePage:r})]}),d(ZT,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(tS,{isProUser:!!g,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:h}),d(dS,{showTrialPro:h,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(Pj,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(Ij,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d(_j,{aiContextInfo:s,curUrl:a.url}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(W1,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(iS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(oS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(sS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(Mj,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(Lj,{ctx:a})]}),d(lS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:y})]}),d(Rj,{...e,isProUser:!!g,isShowPricing:f,setMessage:l})]})}function Lj({ctx:e}){if(e.rule.imageRule?.type!="manga"||!sm(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function Mj(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&Mf.includes(i.type||""),[n,Mf,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Vd()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function Pj(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(yt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?zT:VT})})}function Rj(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ue(v=>{i&&(o(C=>ji({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=si(i,s.rawUserConfig),m=Se(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[qT,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(Fj,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(V1,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(Ln),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?b():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(Ln,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(fl,g):v.value==="cleanCache"?da().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&h(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function b(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function h(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function Ij({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Do(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Zn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):X()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Cr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Fa(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function Fj({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=jn();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${F}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),cr(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[Ro(e.config),e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function Bj(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),WT]})}function _j({aiContextInfo:e,curUrl:t}){let{t:n}=O();if(!e?.visible)return null;let r=ne(()=>{let a=new URL(t);return a.searchParams.append(W0,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return d("div",{class:"flex flex-row mt-3 items-center",children:[rT(),d("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&d(yt,{text:n("contextDiffPreview",{1:r}),children:Pm()})]})}var Mye=1e3*3600*24;async function gS(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[Q6]:t.toISOString()}),await Y1(),X()||await K5()}catch(t){k.error("run cron task failed",t)}}async function Y1(){try{let e=await Fr(),t=await $({url:ki});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;qa(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),wa({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}function Qm(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Ne(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});Je(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,b]=N(null),[y,h]=N({visible:!1,preview:!1}),v=Ce(!1);q(()=>{!f||v.current||(v.current=!0,Be("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,v]);let C=_=>{r(_.detail)};q(()=>(document.addEventListener(To,C,!1),Fr().then(_=>{l(_);let U=Lt();p(U);let z=st();r(z),gS(_.interval)}),document.addEventListener("urlChange",T),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",T)}),[]),q(()=>{Fr().then(_=>{l(_)})},[a]),q(()=>{c&&u&&Jm().then(_=>{b(_)})},[c,u]),q(()=>{let _=md();h({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let x=ue((_,U)=>{S("change_translate_service",!1,{translation_service:`${_}_${U}`})()},[]);if(!u||!f)return null;return d(K1,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{S("switchTranslationMode",!0,{mode:_})()},aiContextInfo:y,request:$,onClose:A,onToggleEnabled:D,onChangeService:x,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),onTranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onWebReport:S("webReport",!0),onTranslatePdf:()=>{I(Lo(f.rule)||c)},openAboutPage:R,openSharePage:S("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Br,onSetBuildinConfig:O5,onAutoEnableSubtitleChanged:S("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:S("toggleEnableEditTranslation",!0),updateContextState:_=>S("updateContextState",!0,_)(),onOpenUrl:M,onUpdateFloatBallEnable:S("updateFloatBallEnable",!0)});function w(_){p(_);let U=jT(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:U})),Tr(_)}function T(){m(globalThis.location.href)}function S(_,U,z={}){let Y={trigger:"page_popup",...z};return()=>{hn({method:_,data:Y}),U&&t()}}function A(){t()}function D(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function M(_,U){let z=_;U&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${U}`),xd(z,!0),setTimeout(()=>{A()},50)}function I(_){_&&(Bs(!1,_),setTimeout(()=>{A()},50))}function P(_=!0,U=""){Ea(_,U),setTimeout(()=>{t()},50)}function R(){Cd(),setTimeout(()=>{t()},50)}function L(){G5(),setTimeout(()=>{t()},50)}}function vS(){let[e,t]=N("Original");return q(()=>{let n=st();t(n);let r=a=>{t(a.detail)};return document.addEventListener(To,r),()=>{document.removeEventListener(To,r)}},[]),{pageStatus:e}}function CS(){let[e,t]=N("Original");return q(()=>{let n=Is();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ll,r),()=>{document.removeEventListener(ll,r)}},[]),{mangaStatus:e}}var pS=6,Oj={position:"right",top:335};function xS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=N(!1),l=Ce(!1);l.current=s;let c=Ce(null),m=Ce(!1),g=Ce(n.floatBallConfig||Oj),p=Ce(0),f=Ce(0),b=Ce(0),y=Ce(!1),h=Ce(0),v=Ce(0),C=Ce(0),x=Ce(0),w=Ce(!1),T=ue(S=>{if(!a)if(clearTimeout(c.current),S)u(S);else{let A=qe().any||Cr();c.current=setTimeout(()=>{u(S),y.current=!1},A?3e3:0)}},[u,c,y,a]);return q(()=>{a||u(!1)},[a]),q(()=>{if(i.current&&g.current){let S=Q1(g.current.top);g.current.top=S,i.current.style.top=`${S}px`,i.current.style.display="flex"}},[t,i]),q(()=>{if(!o.current||!i.current)return;let S=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,h.current=Date.now(),b.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),T(!0),C.current=L.clientX,x.current=L.clientY,w.current=!1,(qe().any||Cr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{fS({startX:p.current,startY:f.current,endX:C.current,endY:x.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",I),document.addEventListener("mouseup",D),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},A=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,x.current=L.clientY,w.current))return;let _=L.clientY-f.current+b.current,U=Q1(_);i.current.style.top=`${U}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),R(),m.current=!1,clearTimeout(c.current),y.current||T(!1),w.current)return;fS({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let U=Q1(L.clientY-30);g.current.top=U;let z=await Mn();Br({...z,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),S(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},P=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},R=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",S),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",S),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,T,e]),q(()=>{if(qe().any)return;let S=D=>{D.target===i.current&&!y.current||!l.current&&bS(D)&&c.current||(y.current=!0,T(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&bS(D)&&c.current)){if(m.current){y.current=!1;return}D.target===i.current&&!y.current||T(!1)}};return i.current?.addEventListener("mouseover",S),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",S),i.current?.removeEventListener("mouseout",A)}},[i,m,T,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:T}}function fS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>pS||i>pS}function TS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function SS(){let[e,t]=N(!1);return q(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var hS="hasShownFloatingBallGuide",Nj="2024-01-06";function wS(e,t){let[n,r]=N(!1),a=ue(()=>{rt(hS,new Date().toISOString()),r(!0)},[r]);q(()=>{if(!e.config.enableShowFloatingBallGuide||Lt()==e.targetLanguage)return;let o=dt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Pt(hS,""),u=await Pt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(I0,o),()=>{document.removeEventListener(I0,o)}},[]);let i=ue(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function ES(){document.dispatchEvent(new CustomEvent(I0))}function AS(e,t){let n=Ce(0),[r,a]=N(!0),[i,o]=N(!1),s=Ne(),[u,l]=s,{t:c}=O(),m=ue(()=>{e?.config.floatBallTooltipRule&&(qe().any||Cr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);q(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=ue(async()=>{if(!e)return;n.current=n.current+1,m();let b=await ln();l(y=>{let h={...b};return qe().any?h.h5FloatBallMainBtnTooltipShownCount=n.current:h.pcFloatBallMainBtnTooltipShownCount=n.current,h})},[l,m,n,e]),p=ne(()=>qe().any||!r||Cr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||Cr())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${Fa(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function Q1(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var J1=0;function bS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(J1=Date.now(),!0):Date.now()-J1<100}function kS(e,t){q(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(So,n),()=>{globalThis.document.addEventListener(So,n)}},[e,t])}function DS(e,t){let n=Ce(e);n.current=e,q(()=>{!n.current||!t||Be("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var yS="imt-float-ball-active";function LS(e){q(()=>{let t=!!document.querySelector(`meta[name='${yS}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(yS)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(P0,n),()=>{document.removeEventListener(P0,n)}},[])}function MS(e){document.dispatchEvent(new CustomEvent(P0,{detail:{active:e}}))}function Uj({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return q(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(le,{children:[e&&d("div",{className:`${F}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${F}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${F}-sheet-content`,children:n})})]})}var Zm=Uj;var Vo="imt-fb";function RS(e){if(globalThis.innerWidth<=385)return d(Zm,{isOpen:e.visible,onClose:e.onClose,children:d(PS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${F}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${F}-popup-overlay`,class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(PS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function PS(e){let{t}=O(),[n,r]=N("UntilNext"),a=vd()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Vo}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Vo}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(bn,{type:"modal-close"})})]}),d("div",{class:`${Vo}-close-radio-content mt-3`,children:o.map(s=>d(jj,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Aa(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Vo}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Vo}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function jj(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=Hj(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Vo}-radio-sel`:`${Vo}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function Hj(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var Wo="imt-fb";function IS(e){let{t}=O(),n=a=>{a?.target?.id===F+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${Wo}-guide-container`,style:r,children:[d("img",{class:`${Wo}-guide-bg ${e.fixedPosition}`,src:qj}),d("div",{class:`${Wo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${Wo}-guide-img`,src:rn("images/float_ball_intro.png")}),d("div",{class:`${Wo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` +${t("floatBall.longPress")}`:""]}),d("div",{class:`${Wo}-primary-btn ${Wo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var qj="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var FS="imt-manga";function BS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===F+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ue(()=>{if(t(),!a.isPro){if(a.user)return window.open(sy);window.open(iy)}},[a,t]);return e?d("div",{onClick:o,id:F+"-popup-overlay",class:`${F}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${FS}-guide-bg ${r}`,src:`${xn}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${FS}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(bn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var fi="imt-fb";function Z1(e){let{t}=O(),n=Ne(),[r,a,i,o]=n;Je(r,a);let s=ft(r),u=e.ctx,{isFullScreen:l}=SS(),[c,m]=N(!1),g=Ce(c);g.current=c;let[p,f]=N(!0),{pageStatus:b}=vS(),y=si(u,r),h=ue(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&hn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,hn,m]),v=ue(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:x,active:w,ballRef:T,floatBallConfigRef:S,setActive:A}=xS({handleBallClick:h,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),D=y?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:P}=wS(e.ctx,y),{closeTransform:R,logoContainerTransform:L,settingTransform:_,mangaTransform:U}=TS(y,w||I);DS(u,w);let{tooltipDelay:z,disableTooltip:Y,tooltipText:ee,handleShowTooltip:Re}=AS(u,b);kS(m,g),LS(A);let H=globalThis.innerWidth<=385;return C?d(le,{children:d("div",{class:`${fi}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||I||c?"all":"none"},ref:x,children:[d(zj,{ctx:u,setVisible:f,closeTransform:R,setActive:A,getModalStyle:()=>_S(S.current.top,300,D)}),d(yt,{enableMobile:!0,text:ee,position:M,delay:z,onShow:Re,disable:Y,children:d("div",{class:`${fi}-btn ${D} btn-animate `,ref:T,style:{transform:L,opacity:w||I?1:.5},children:d("div",{children:[d(bn,{type:"logo"}),d(bn,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),d(Gj,{ctx:u,mangaTransform:U,floatBallConfigRef:S,fixedPosition:D,hidden:I}),d("div",{style:{marginTop:"12px",transform:_},class:`${fi}-more-buttons btn-animate`,children:[d(yt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{xd(hy,!0)},children:d(bn,{type:"file"})})}),d(yt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${fi}-more-button`,onClick:()=>{A(!0),m(!0)},children:d(bn,{type:"setting"})})}),d(Yj,{ctx:u,tooltipPosition:M,rule:y,active:w})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:_},class:`${fi}-more-buttons btn-animate`,children:d(yt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xo,{detail:{type:"webReport"}}))}})})}),d(X1,{onClose:()=>{A(!1),m(!1)},isSheet:H,visible:c,getModalStyle:()=>_S(S.current.top,500,D)}),d(IS,{visible:I,top:S.current.top,fixedPosition:D,onClose:()=>{P(),A(!1)}})]})}):null}function zj(e){let{t}=O(),[n,r]=N(!1),a=Ne(),[i,o,s,u]=a,l=si(e.ctx,i),c=ue(g=>{e.ctx&&o(p=>ji({...p},g))},[e.ctx,o]),m=ue(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(le,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(bn,{type:"close"})}),d(RS,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function X1(e){let t=n=>{n?.target?.id===F+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Zm,{isOpen:e.visible,onClose:e.onClose,children:d(Qm,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.getModalStyle(),children:d(Qm,{onClose:e.onClose})})}):null}function Vj(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var _S=(e,t,n)=>{let a=Vj().height,i={position:"fixed"},o=0;return D6()&&(e=Wj.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},Wj={position:"right",right:0,top:335};function Gj({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=CS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();q(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Dt(p))})},[c,s]);let g=ue(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await nt.get(pt,null);if(kt(f)){e.user=f,e.isPro=!0,hn({method:"toggleTranslateManga"});return}s(!0);return}hn({method:"toggleTranslateManga"})},[]);return!sm(l)||r||!l?.enable?null:d(le,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(bn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(bn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(bn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(yt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(xo,{detail:{type:"mangaReport"}}))}})})]}),d(BS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var Kj="float_ball_upgrade_show_count";function Yj(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=er(n.config),s=Ce(!1),[u,l]=N(null),c=ne(()=>Cu(n.config),[n]),m=p=>Cu(p)?.upgradeShowCountCacheKey||Kj;q(()=>{Eo(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=Cu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return q(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ao(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(yt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Rf,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${fi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(bn,{type:"upgrade"})})})}):d(yt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(Rf,"_blank")},children:d(bn,{type:"upgrade"})})})}async function OS(){try{let e=await Qe(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=F+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});Qj(a,e,n),document.documentElement.appendChild(r)}catch{}}function Qj(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Se(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Jj(e,[i]),e.appendChild(r),va(d(Ji,{lang:t.interfaceLanguage,children:d(Zj,{ctx:n})}),r)}function Jj(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function Zj(e){let[t,n]=N(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");q(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(So,u),()=>{globalThis.document.addEventListener(So,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(X1,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Xm(e){document.dispatchEvent(new CustomEvent(So,{detail:e||{}}))}function Xj(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function $1(){let e=await Fr(),t=await ln(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await _4(r,t),i=dt(r.url,a?.blockUrls),o=await Rt();if(!a?.enable||i)return OS();let s=document.createElement("div");s.id=F+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return $j(u,e,o,r),document.documentElement.appendChild(s),s}function NS(){let e=document.getElementById(F+"-popup");e&&e.remove(),$1()}function $j(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Se(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Xj(e,[o]),e.appendChild(a),va(d(Ji,{lang:t.interfaceLanguage,children:d(Z1,{localConfig:n,ctx:r})}),a)}var US=!1;async function jS(){US||(US=!0,$1().catch(e=>{k.error("init popup error",e)}))}var bc=null;function yc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");bc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function e3(){let e=globalThis.location.href;if(!(!bc||bc.url!==e||!bc.subtitleItems.length))return bc}async function HS(){let e=e3();if(!e)return;let t=await Rt();t.downloadSubtitle=e,await Dt(t),Aa(by)}async function qS(){let e=await Rt();if(e.downloadSubtitle)return e.downloadSubtitle}async function zS(e,t){let n,r;if(t){let a=qm(e);n=new Blob([a],{type:"text/html"}),r=await Qt(),r=Ni(!1,r)}return{siteUrl:location.href,pluginVersion:jn(),isMobile:qe().any,platform:Da(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function VS(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ta();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ct}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var t3={};function ao(e){let t=$m(e)||{};t3[e.sourceUrl+"_"+e.to]={...t,...e}}function $m(e){return t3[e.sourceUrl+"_"+e.to]}async function WS(e,t){let n=location.href,r=Object.values(t3).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:Da(),images:[],version:jn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=qm(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Qt();a.userConfig=Ni(!1,o)}return a}async function GS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ta();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ct}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var vc={width:94,height:80};function KS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?KS(e.parentElement,t+1):e}function xu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=KS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=vc.width+"px",c.style.height=vc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-vc.width)/2+"px",c.style.top=l.top-u.top+(l.height-vc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-vc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let m=a("translateFail");r==="gif_not_supported"&&(m=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6050,25 +6050,25 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${Wo}-primary-btn ${Wo}-guide - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function n3(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var xc=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function JT(e,t,n){if(e=="manga")return KT(t,n);if(e=="web")return WT(t,n)}function ZT(e,t,n,r,a,i){if(e=="manga")return YT(t,n,a,i,r);if(e=="web")return GT(t,n,a,i,r)}function tg(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(f.value)||f.value.trim()==="",m=document.createElement("div");m.innerText=s("reportInfo.title"),m.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(m);let g=document.createElement("div");g.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function n3(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Cc=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function YS(e,t,n){if(e=="manga")return WS(t,n);if(e=="web")return zS(t,n)}function QS(e,t,n,r,a,i){if(e=="manga")return GS(t,n,a,i,r);if(e=="web")return VS(t,n,a,i,r)}function eg(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(f.value)||f.value.trim()==="",m=document.createElement("div");m.innerText=s("reportInfo.title"),m.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(m);let g=document.createElement("div");g.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; padding: 9px 12px; - flex: 1;`),p.addEventListener("input",function(){S.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; + flex: 1;`),p.addEventListener("input",function(){T.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";nt.get(pt,null).then(D=>{D&&(h=D.email,f.value=D.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let b=document.createElement("div");b.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),b.append(y),b.append(f),a.append(b);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let D=l(this.value);S.disabled=c(),D?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let x=document.createElement("label");x.htmlFor=C.id,x.innerText=s("reportInfo.attachLog"),x.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(C),w.append(x),a.append(w);let S=document.createElement("button");S.className=F+"-btn",S.innerText=s("reportInfo.submit"),S.disabled=!0,S.onclick=async()=>{if(S.uploading||p.value.trim()===""||!l(f.value))return;let D=await JT(e,t,C.checked);S.uploading=!0;try{XT(S,!0),await ZT(e,t,p.value,f.value!==h?f.value:"",C.checked,D),tH(s,r,a,i,o)}catch{nH(t,n,s,r,a,i,o,e)}finally{S.uploading=!1,XT(S,!1)}},i.appendChild(S);let T=document.createElement("div");T.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(T);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function XT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(F+"-loading-spinner"),e.appendChild(n))}function tH(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let b="";nt.get(pt,null).then(D=>{D&&(b=D.email,f.value=D.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let h=document.createElement("div");h.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),h.append(y),h.append(f),a.append(h);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let D=l(this.value);T.disabled=c(),D?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let x=document.createElement("label");x.htmlFor=C.id,x.innerText=s("reportInfo.attachLog"),x.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(C),w.append(x),a.append(w);let T=document.createElement("button");T.className=F+"-btn",T.innerText=s("reportInfo.submit"),T.disabled=!0,T.onclick=async()=>{if(T.uploading||p.value.trim()===""||!l(f.value))return;let D=await YS(e,t,C.checked);T.uploading=!0;try{JS(T,!0),await QS(e,t,p.value,f.value!==b?f.value:"",C.checked,D),eH(s,r,a,i,o)}catch{tH(t,n,s,r,a,i,o,e)}finally{T.uploading=!1,JS(T,!1)}},i.appendChild(T);let S=document.createElement("div");S.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(S);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function JS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(F+"-loading-spinner"),e.appendChild(n))}function eH(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=F+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function nH(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=F+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function tH(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=F+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",tg(s,e,t,r,a,i,o)},i.append(m)}var ng=[],$T=[];async function a3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(i3()||ng.includes(t))return"";if(ng.length>=s)return new Promise((l,c)=>{$T.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});ng.push(t);try{let u=await oH(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await ew(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{ng.shift(),(async()=>{let u=$T.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await a3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function rH(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ct}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${tw(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await $({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function aH(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function iH(e,t,n){let r=await aH(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):$({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await sv(a)})}async function oH(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=sH(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await dd(u);ao({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await rH(e,r,l,n.type);if(c.objectKey&&ao({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await iH(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return X()?m=await fetch(r3()+"/trigger",{method:"POST",body:wd(u),headers:{token:e.user?.token||""}}).then(async g=>(await Hi(g,"manga"),g.json())):m=await $({url:r3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ao({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function ew(e,t,n,r,a){let i=i3();if(i)return;Ir("Translating",i);let o=await $({url:r3()+`/${t}/task-state?comicHash=${n}&domain=${tw(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await _C(t,r.queryIntervalTime||100),ew(e,t,n,r,a))}function r3(){return ct+"comics"}function sH(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=ua[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function tw(e){return e.replaceAll(".","_")}var Vt,o3,ag,Tc,an=!1;function i3(){return an}var nw=!1;function iw(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;an=!1,!nw&&Vt.injectedCss&&(rr(document,`${Vt.injectedCss}`,F+"-image-injected-css"),nw=!0);let t=!1,n=Bn(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=uw(Vt);for(let i of a){if(an)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await tt(20),await r(i,t))}},100);if(Ne("translate_manga",[{name:"translate_manga"}],e),n(),o3=new MutationObserver(a=>{n()}),o3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;Tc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Go(e,o.target),Tc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}ag=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(Tc?.unobserve(a),Tc?.observe(a)):await Go(e,a)))}}async function Go(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Is();if(n&&(an=!1),an||hH(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=lH(e,t);u||(s=xu(e,t,"translating")),n&&Ne("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await cH(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await uH(e,t,o,a,s)),an&&!n)return;l?(t.translationStatus="success",u||xu(e,t,"success")):(u||xu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Ir("Error",an))}catch(l){if(an&&!n||(t.translationStatus="error",a=="manga"&&Ir("Error",an),fH(e,l),u))return;if(l instanceof xc)return xu(e,t,"error",l.type);xu(e,t,"error")}finally{n&&Ir(i,an),s?.remove()}}function ow(){if(!Vt)return;an=!0,o3?.disconnect(),ag?.disconnect(),Tc?.disconnect();let e=uw(Vt);for(let t of e)Ko(t)}function Ko(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Ko(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function uH(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await dH(l,c,t.cloneNode(!0))}else o=await lw(t);if(an)return;if(!o||o.size<6*1e4){ag?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await i4(o);return await s3(e,t,s)?!0:s?sw({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function sw({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await gH(n)||n,u=r||a;try{if(an)return;Ir("Translating",an),n3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ao(l);let m=await a3(e,u,s,a,i,g=>{n3(e,o,g)});return m?(l.targetUrl=m,ao(l),await cw(Vt,t,m),Ir("Translated",an),!0):!1}catch(l){if(ao({sourceUrl:u,to:e.targetLanguage,error:l.message}),an)return;throw l}}async function s3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=eg(r);return a&&a?.targetUrl?(await cw(Vt,t,a.targetUrl||""),Ir("Translated",an),!0):!1}function lH(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=eg(r);return a&&a?.targetUrl}return!1}async function cH(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!pH(a,i)){ag?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await s3(e,t,o))return!0;let s=null;if(Ir("Translating",an),an)return;if(i.startsWith("blob:")){let m=await fetch(i);await Hi(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await mH(i);else{let m=await $({url:i,responseType:"base64"});s=await Ed(m)}if(an)return;if(await bx(s))throw new xc("GIFs not supported","gif_not_supported");let l=await i4(s);if(!o&&(o=l,await s3(e,t,o)))return!0;if(!o)return!1;return sw({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function uw(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function lw(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function dH(e,t,n){return new Promise((r,a)=>{$({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await lw(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function cw(e,t,n){try{return await rw(e,t,n)}catch{let a=await bH(n);return rw(e,t,a)}}async function rw(e,t,n){return new Promise((a,i)=>{if(an)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function mH(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function gH(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function pH(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Jd(e.inValidSrcRegex,t):!0}var rg=0,Sc=0;function fH(e,t){if(rg!=0){Sc++;return}if(t.message.indexOf("quota exceeded")>0){aw(e,t);return}Sc++,rg=setTimeout(()=>{if(Sc<(Vt.errorTimes||3)){rg=0,Sc=0;return}aw(e,t),Sc=0,rg=0},Vt.errorInterval||3e3)}function aw(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(_n,{detail:r}))}function u3(e){return e.classList.contains("imt-img")||e.hasTranslate}function hH(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function bH(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var yH="showImagePricingModal";function ig(e){document.dispatchEvent(new CustomEvent(yH,{detail:JSON.stringify({trigger:e})}))}var Va=null;async function dw(e,{srcUrl:t}){if(!ci(e))return;if(!await As(e)){ig("image_right_menu");return}if(!Va){k.error("rightMenu image ele not found",t,Va);return}if(Va.translationStatus!=="translating"){if(Va.hasTranslate){Ko(Va);return}if(t!==Va.src)try{let r=new URL(t),a=new URL(Va.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,Va.src,r);return}Go(e,Va,!0,"image_right_menu")}}function mw(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Va=e.target)})}var gw=0;function Ec(e){let t=Date.now();if(t-gw<2e3||(gw=t,vH()))return;let n=`${F}-modal-root`,r=`${F}-modal`,a=document.getElementById(n),i=`${F}-modal-title`,o=`${F}-modal-body`,s=`${F}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,wc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=Te();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=F+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=F+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let h=document.createElement("div");h.className=o+" notranslate",g.appendChild(h);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",b=>{b.target==u&&(u.style.display="none")}),e(u,f,h,y,wc)}setTimeout(()=>{CH()},100)}function vH(){let e=document.querySelector(`#${F}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-modal`)?.style.display=="block":!1}function CH(){let e=document.querySelector(`#${F}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function wc(e,t=!1){let n=document.querySelector(`#${F}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function pw(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();un({...l,sameLangCheck:!1}),o(i,!0)})}var fw=0;async function hw(e){let t=Date.now();if(t-fw<2e3||(fw=t,xH()))return;let n=`${F}-toast-root`,r=`${F}-toast`,a=document.getElementById(n),i=`${F}-toast-msg`,o=`${F}-toast-content`,s=`${F}-toast-hidden`,u,l,c=()=>{l&&l3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,l3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),y=document.createElement("style"),b=Te();y.textContent=b.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),h.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=F+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},h.addEventListener("click",x=>{x.target==g&&(g.style.display="none")}),e(g,u,l,l3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{SH()},100),m=setTimeout(c,2500)}function xH(){let e=document.querySelector(`#${F}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-toast`)?.style.display=="flex":!1}function SH(){let e=document.querySelector(`#${F}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-toast`);t&&(t.style.display="flex")}}function l3(e,t=!1){let n=document.querySelector(`#${F}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function c3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${F}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",bw({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(oy)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(V0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(dy)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(we.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(we.OPTIONS_URL)},d3(e,e.config.translationService,!1,f).then(h=>{h?(g=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{yw(h),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await un(f),bw({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=F+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function bw(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Kr,{detail:e});globalThis.document.dispatchEvent(t)}var vw=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},xw=[()=>{Kt.unbind()}],Cw=[...xw],TH=yr(async()=>{await Aa()},50),wH=yr(async()=>{await xd()},50),EH=yr(async()=>{await G5()},50),AH=yr(async()=>{await W5()},50),Sw=yr(e=>{hn({method:e,data:{trigger:"userscript_menu"}})},50),m3=!1,kH=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!m3&&e&&e.length>0?Ll({text:e}):Ll({})},50),DH=()=>{m3=!0,setTimeout(()=>{m3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(vw)return;vw=!0,X()||O5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(re+"DocumentMessageUser",Dw),document.addEventListener(re+"DocumentMessageUpdateUser",Lw),document.addEventListener(re+"ChangeSuccessService",Mw.bind(null,t)),document.addEventListener(re+"ChangeService",Pw.bind(null,t)),document.addEventListener(_n,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(P0,Zt.showToastByEvent.bind(null,t)),document.addEventListener(xo,Zt.showModal.bind(null,t)),n.addEventListener(re+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(_6,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(O6,Zt.eventUpload.bind(null,t)),n.addEventListener(I0,a=>{St()||b3(a,t)}),n.addEventListener(N6,Rw),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",kH),document.addEventListener("contextmenu",DH),mw(),St()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),X()&&(St()||n.addEventListener(Kr,Zt.handlePopupInit)),St()||Qi.rootIframe(H0).handleAsk("throttleRequest",n8)};function Tw(e,t){PH(),Zt.SetupDomListenersForOnce(t,e),X()&&(St()||(z1(e.config),RH(e.config))),xr()&&Iw(e,t),He()&&z1(e.config)}Zt.handlePopupInit=e=>{qT()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===M0&&Ea(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){wc(n);return}let r=n.getAttribute(`data-${F}-event`);r&&Ne(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${F}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),ww({method:"retryFailedParagraphs"}),wc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${F}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Ec(c3.bind(null,t,o,i,s));return}}};async function LH(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function MH(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;hw(pw.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Ec(c3.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Ec(tg.bind(null,"manga",e)):r=="webReport"&&Ec(tg.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=p3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")ww({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")K5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")LH();else if(i.type==="toggleEnableInputTranslation")MH();else if(i.type==="syncAppSetting")Ew(i.data);else if(i.type==="translatePage")IH(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Ds(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=eo(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await FH(i.data,o)}catch(s){Ac(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await BH(o,i.data)}catch(s){Ac(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await vd(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await VT();else if(i.type==="sharePage")b3({detail:i.data},r);else if(i.type==="switchTranslationMode")g3(i.data);else if(i.type=="getAsyncAiAssistants")a=await nc();else if(i.type=="addAiAssistantAsync")a=await No("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await No("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await h3(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await f3(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Qd("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await Nv(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Z5());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await X5());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await Uv(i.data));else if(i.type==="openPopup")$m({...i.data,open:!0});else if(i.type==="closePopup")$m({...i.data,open:!1});else if(i.type==="togglePopup")$m({...i.data});else if(i.type==="getPageStatusAsync")a=st();else if(i.type==="restorePage")_H();else if(i.type==="getPageLanguageAsync")a=Lt();else if(i.type==="showFloatBallGuide")kT();else if(i.type=="getAsyncDetectAndSetLanguage")a=await kw(i.data);else if(i.type=="setFloatBallActive")RT(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Fs(r,s,o,!0)}else Sw(i.type);a!=null&&i.id&&Ac(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{Aw()},10)};Zt.handleSecurityPolicyViolation=e=>{we.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ne(n.name,[{name:n.name}],{...e})};function PH(){Cw.forEach(e=>{e()}),Cw=xw}function RH(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Vd.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:sl,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:ul,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:il,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:wf,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===il?TH():i.id===wf?wH():i.id===ul?EH():i.id===sl?AH():Sw(i.id)},i.key)}}function ww(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Kr,{detail:e});globalThis.document.dispatchEvent(t)}async function Ew(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await it(Fe(),t)}async function IH(e){let t=await Ew(e);pr(t)}function Ac(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function FH({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await fn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function BH(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await fn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function _H(){st()!=="Original"&&fa()}var Yo={};async function y3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Tr(n),n}async function Fw(e){let t=0,n=0;$n("Translating");let r=Lt(),a=cd(),i=[...document.querySelectorAll(".source-text")];if(Ks(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(Ys(m,c.id)?.remove(),m.appendChild(ql(e,c.id,!0)))}),await s(l),await tt(0)}}catch(u){throw u}finally{t=0,n=0,$n("Translated")}async function s(u){await fn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=Ys(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Yo[g]={ok:!1,sentence:m},_w(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Yo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function Bw(e){let t=0,n=0;$n("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yo),a=[],i=[];for(let o of r){let s=Yo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yo[o],c.appendChild(ql(e,o)),i.push(s.sentence))}}}try{await fn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Ys(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Yo[l]={ok:!1,sentence:u},_w(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Yo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,$n("Translated")}}function v3(){$n("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function _w(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(_n,{detail:i}))}var og={};async function Ow(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return Tr(n),n}async function Nw(e){$n("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(og),n=[];for(let r of t){let a=og[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${_0}='${r}']`);o&&o.remove(),n.push(a)}}try{fc(),await Gm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{$n("Translated")}}function Uw(e){Object.values(og).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=vu(e,t.targetNodes);no(e,i,r,t.rootNodes||[]),qo(t.targetNodes)}else n==="dual"&&qo(t.targetNodes)}),$n("Original")}async function jw(e){$n("Translating");let t=wl(),n=Pa(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Vi(l,e);let c=l.body;if(!c)continue;Ra(l.documentElement,e.state.translationMode);let m=En(e);m.isModifyImage=!1;let g=[];await pi({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await tt(0)}o(a),$n("Translated");function o(u){document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Gs(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=lm(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:Vm(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await _1(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),og[p.id]=p)}Gm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function sg(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!qi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,C3,Hw=!1,ug=null,OH=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=F+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",eg(s,e,t,r,a,i,o)},i.append(m)}var tg=[],ZS=[];async function a3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(i3()||tg.includes(t))return"";if(tg.length>=s)return new Promise((l,c)=>{ZS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});tg.push(t);try{let u=await iH(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await XS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{tg.shift(),(async()=>{let u=ZS.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await a3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function nH(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ct}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${$S(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await $({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function rH(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function aH(e,t,n){let r=await rH(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):$({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await iv(a)})}async function iH(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=oH(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await cd(u);ao({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await nH(e,r,l,n.type);if(c.objectKey&&ao({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await aH(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return X()?m=await fetch(r3()+"/trigger",{method:"POST",body:Sd(u),headers:{token:e.user?.token||""}}).then(async g=>(await Hi(g,"manga"),g.json())):m=await $({url:r3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ao({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function XS(e,t,n,r,a){let i=i3();if(i)return;Rr("Translating",i);let o=await $({url:r3()+`/${t}/task-state?comicHash=${n}&domain=${$S(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await FC(t,r.queryIntervalTime||100),XS(e,t,n,r,a))}function r3(){return ct+"comics"}function oH(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function $S(e){return e.replaceAll(".","_")}var Vt,o3,rg,Tc,an=!1;function i3(){return an}var ew=!1;function rw(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;an=!1,!ew&&Vt.injectedCss&&(rr(document,`${Vt.injectedCss}`,F+"-image-injected-css"),ew=!0);let t=!1,n=Bn(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=ow(Vt);for(let i of a){if(an)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await tt(20),await r(i,t))}},100);if(Be("translate_manga",[{name:"translate_manga"}],e),n(),o3=new MutationObserver(a=>{n()}),o3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;Tc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Go(e,o.target),Tc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}rg=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(Tc?.unobserve(a),Tc?.observe(a)):await Go(e,a)))}}async function Go(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Is();if(n&&(an=!1),an||fH(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=uH(e,t);u||(s=xu(e,t,"translating")),n&&Be("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await lH(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await sH(e,t,o,a,s)),an&&!n)return;l?(t.translationStatus="success",u||xu(e,t,"success")):(u||xu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Rr("Error",an))}catch(l){if(an&&!n||(t.translationStatus="error",a=="manga"&&Rr("Error",an),pH(e,l),u))return;if(l instanceof Cc)return xu(e,t,"error",l.type);xu(e,t,"error")}finally{n&&Rr(i,an),s?.remove()}}function aw(){if(!Vt)return;an=!0,o3?.disconnect(),rg?.disconnect(),Tc?.disconnect();let e=ow(Vt);for(let t of e)Ko(t)}function Ko(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Ko(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function sH(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await cH(l,c,t.cloneNode(!0))}else o=await sw(t);if(an)return;if(!o||o.size<6*1e4){rg?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await i4(o);return await s3(e,t,s)?!0:s?iw({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function iw({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await mH(n)||n,u=r||a;try{if(an)return;Rr("Translating",an),n3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ao(l);let m=await a3(e,u,s,a,i,g=>{n3(e,o,g)});return m?(l.targetUrl=m,ao(l),await uw(Vt,t,m),Rr("Translated",an),!0):!1}catch(l){if(ao({sourceUrl:u,to:e.targetLanguage,error:l.message}),an)return;throw l}}async function s3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=$m(r);return a&&a?.targetUrl?(await uw(Vt,t,a.targetUrl||""),Rr("Translated",an),!0):!1}function uH(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=$m(r);return a&&a?.targetUrl}return!1}async function lH(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!gH(a,i)){rg?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await s3(e,t,o))return!0;let s=null;if(Rr("Translating",an),an)return;if(i.startsWith("blob:")){let m=await fetch(i);await Hi(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await dH(i);else{let m=await $({url:i,responseType:"base64"});s=await wd(m)}if(an)return;if(await fx(s))throw new Cc("GIFs not supported","gif_not_supported");let l=await i4(s);if(!o&&(o=l,await s3(e,t,o)))return!0;if(!o)return!1;return iw({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function ow(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function sw(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function cH(e,t,n){return new Promise((r,a)=>{$({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await sw(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function uw(e,t,n){try{return await tw(e,t,n)}catch{let a=await hH(n);return tw(e,t,a)}}async function tw(e,t,n){return new Promise((a,i)=>{if(an)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function dH(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function mH(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function gH(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Qd(e.inValidSrcRegex,t):!0}var ng=0,xc=0;function pH(e,t){if(ng!=0){xc++;return}if(t.message.indexOf("quota exceeded")>0){nw(e,t);return}xc++,ng=setTimeout(()=>{if(xc<(Vt.errorTimes||3)){ng=0,xc=0;return}nw(e,t),xc=0,ng=0},Vt.errorInterval||3e3)}function nw(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(sr,{detail:r}))}function u3(e){return e.classList.contains("imt-img")||e.hasTranslate}function fH(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function hH(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var bH="showImagePricingModal";function ag(e){document.dispatchEvent(new CustomEvent(bH,{detail:JSON.stringify({trigger:e})}))}var za=null;async function lw(e,{srcUrl:t}){if(!li(e))return;if(!await As(e)){ag("image_right_menu");return}if(!za){k.error("rightMenu image ele not found",t,za);return}if(za.translationStatus!=="translating"){if(za.hasTranslate){Ko(za);return}if(t!==za.src)try{let r=new URL(t),a=new URL(za.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,za.src,r);return}Go(e,za,!0,"image_right_menu")}}function cw(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(za=e.target)})}var dw=0;function wc(e){let t=Date.now();if(t-dw<2e3||(dw=t,yH()))return;let n=`${F}-modal-root`,r=`${F}-modal`,a=document.getElementById(n),i=`${F}-modal-title`,o=`${F}-modal-body`,s=`${F}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,Sc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=Se();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=F+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=F+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let b=document.createElement("div");b.className=o+" notranslate",g.appendChild(b);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",h=>{h.target==u&&(u.style.display="none")}),e(u,f,b,y,Sc)}setTimeout(()=>{vH()},100)}function yH(){let e=document.querySelector(`#${F}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-modal`)?.style.display=="block":!1}function vH(){let e=document.querySelector(`#${F}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function Sc(e,t=!1){let n=document.querySelector(`#${F}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function mw(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();un({...l,sameLangCheck:!1}),o(i,!0)})}var gw=0;async function pw(e){let t=Date.now();if(t-gw<2e3||(gw=t,CH()))return;let n=`${F}-toast-root`,r=`${F}-toast`,a=document.getElementById(n),i=`${F}-toast-msg`,o=`${F}-toast-content`,s=`${F}-toast-hidden`,u,l,c=()=>{l&&l3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,l3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),y=document.createElement("style"),h=Se();y.textContent=h.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),b.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=F+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},b.addEventListener("click",x=>{x.target==g&&(g.style.display="none")}),e(g,u,l,l3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{xH()},100),m=setTimeout(c,2500)}function CH(){let e=document.querySelector(`#${F}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-toast`)?.style.display=="flex":!1}function xH(){let e=document.querySelector(`#${F}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-toast`);t&&(t.style.display="flex")}}function l3(e,t=!1){let n=document.querySelector(`#${F}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function c3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${F}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",fw({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(ay)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(z0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(ly)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(we.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(we.OPTIONS_URL)},d3(e,e.config.translationService,!1,f).then(b=>{b?(g=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{hw(b),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await un(f),fw({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=F+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function fw(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}var bw=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},vw=[()=>{Kt.unbind()}],yw=[...vw],TH=br(async()=>{await Ea()},50),SH=br(async()=>{await Cd()},50),wH=br(async()=>{await V5()},50),EH=br(async()=>{await z5()},50),Cw=br(e=>{hn({method:e,data:{trigger:"userscript_menu"}})},50),m3=!1,AH=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!m3&&e&&e.length>0?Dl({text:e}):Dl({})},50),kH=()=>{m3=!0,setTimeout(()=>{m3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(bw)return;bw=!0,X()||B5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(re+"DocumentMessageUser",Aw),document.addEventListener(re+"DocumentMessageUpdateUser",kw),document.addEventListener(re+"ChangeSuccessService",Dw.bind(null,t)),document.addEventListener(re+"ChangeService",Lw.bind(null,t)),document.addEventListener(sr,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(M0,Zt.showToastByEvent.bind(null,t)),document.addEventListener(xo,Zt.showModal.bind(null,t)),n.addEventListener(re+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(F6,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(B6,Zt.eventUpload.bind(null,t)),n.addEventListener(R0,a=>{Tt()||b3(a,t)}),n.addEventListener(_6,Mw),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",AH),document.addEventListener("contextmenu",kH),cw(),Tt()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),X()&&(Tt()||n.addEventListener(Gr,Zt.handlePopupInit)),Tt()||Qi.rootIframe(j0).handleAsk("throttleRequest",e8)};function xw(e,t){MH(),Zt.SetupDomListenersForOnce(t,e),X()&&(Tt()||(z1(e.config),PH(e.config))),Cr()&&Pw(e,t),He()&&z1(e.config)}Zt.handlePopupInit=e=>{jS()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===L0&&wa(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Sc(n);return}let r=n.getAttribute(`data-${F}-event`);r&&Be(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${F}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),Tw({method:"retryFailedParagraphs"}),Sc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${F}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}wc(c3.bind(null,t,o,i,s));return}}};async function DH(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function LH(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;pw(mw.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;wc(c3.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?wc(eg.bind(null,"manga",e)):r=="webReport"&&wc(eg.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=p3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")Tw({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")W5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")DH();else if(i.type==="toggleEnableInputTranslation")LH();else if(i.type==="syncAppSetting")Sw(i.data);else if(i.type==="translatePage")RH(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Ds(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=eo(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await IH(i.data,o)}catch(s){Ec(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await FH(o,i.data)}catch(s){Ec(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await yd(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await qS();else if(i.type==="sharePage")b3({detail:i.data},r);else if(i.type==="switchTranslationMode")g3(i.data);else if(i.type=="getAsyncAiAssistants")a=await tc();else if(i.type=="addAiAssistantAsync")a=await No("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await No("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await h3(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await f3(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Yd("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await _v(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Q5());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await J5());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await Ov(i.data));else if(i.type==="openPopup")Xm({...i.data,open:!0});else if(i.type==="closePopup")Xm({...i.data,open:!1});else if(i.type==="togglePopup")Xm({...i.data});else if(i.type==="getPageStatusAsync")a=st();else if(i.type==="restorePage")BH();else if(i.type==="getPageLanguageAsync")a=Lt();else if(i.type==="showFloatBallGuide")ES();else if(i.type=="getAsyncDetectAndSetLanguage")a=await Ew(i.data);else if(i.type=="setFloatBallActive")MS(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Fs(r,s,o,!0)}else Cw(i.type);a!=null&&i.id&&Ec(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{ww()},10)};Zt.handleSecurityPolicyViolation=e=>{we.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Be(n.name,[{name:n.name}],{...e})};function MH(){yw.forEach(e=>{e()}),yw=vw}function PH(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=zd.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:sl,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:ul,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:il,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Sf,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===il?TH():i.id===Sf?SH():i.id===ul?wH():i.id===sl?EH():Cw(i.id)},i.key)}}function Tw(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}async function Sw(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ze(Ie(),t)}async function RH(e){let t=await Sw(e);gr(t)}function Ec(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function IH({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await fn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function FH(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await fn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function BH(){st()!=="Original"&&pa()}var Yo={};async function y3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ke({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Tr(n),n}async function Rw(e){let t=0,n=0;Xn("Translating");let r=Lt(),a=ld(),i=[...document.querySelectorAll(".source-text")];if(Ks(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(Ys(m,c.id)?.remove(),m.appendChild(Hl(e,c.id,!0)))}),await s(l),await tt(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await fn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=Ys(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Yo[g]={ok:!1,sentence:m},Fw(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Yo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function Iw(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yo),a=[],i=[];for(let o of r){let s=Yo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yo[o],c.appendChild(Hl(e,o)),i.push(s.sentence))}}}try{await fn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Ys(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Yo[l]={ok:!1,sentence:u},Fw(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Yo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function v3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function Fw(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(sr,{detail:i}))}var ig={};async function Bw(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ke({text:t,pageLangs:["en"]});return Tr(n),n}async function _w(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(ig),n=[];for(let r of t){let a=ig[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${B0}='${r}']`);o&&o.remove(),n.push(a)}}try{pc(),await Wm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function Ow(e){Object.values(ig).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=vu(e,t.targetNodes);no(e,i,r,t.rootNodes||[]),qo(t.targetNodes)}else n==="dual"&&qo(t.targetNodes)}),Xn("Original")}async function Nw(e){Xn("Translating");let t=Sl(),n=Ma(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Vi(l,e);let c=l.body;if(!c)continue;Pa(l.documentElement,e.state.translationMode);let m=En(e);m.isModifyImage=!1;let g=[];await pi({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await tt(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Gs(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=um(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:zm(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await _1(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),ig[p.id]=p)}Wm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function og(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!qi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}function _H(){let e=document.querySelector(`#${F}-modal-input-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function Uw(e){let t=`${F}-modal-input-root`,n=`${F}-modal`,r=`${F}-modal-title`,a=`${F}-modal-body`,i=`${F}-modal-footer`,o=document.querySelector(`#${t}`),s,u,l,c;return setTimeout(()=>{_H()},100),new Promise(m=>{let g=m;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let R=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${F}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let R=P.attachShadow({mode:"open"}),L=document.createElement("style"),_=Se();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,R.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let U=document.createElement("div");U.className=F+"-modal-content notranslate "+F+"-modal-content-in-input",s.appendChild(U);let z=document.createElement("span");z.textContent="\xD7",z.className=F+"-close",U.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",U.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",U.appendChild(c),l=document.createElement("div"),l.className=i,U.appendChild(l),R.appendChild(s),z.onclick=function(){A(),m("close")},R.addEventListener("click",Y=>{Y.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",I);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${Dm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=nr?.createHTML(f)||f,c.innerHTML=nr?.createHTML("")||"";let b=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:Q+"docs/input/"});b.innerHTML=nr?.createHTML(y)||y,b.style.cssText="margin-bottom:12px",c.appendChild(b);let h=document.createElement("div");h.style.cssText="margin-bottom: 12px;";let v=lt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));h.innerHTML=nr?.createHTML(v)||v,c.appendChild(h);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P{NH(e,t)})}function NH(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(ug===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};sr.forEach(g=>r[g]=[g,...r[g]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;qe().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();m();function l(g){if(zn||ug===!1)return;let p=dg(t.document,e.rule.enableInputDeepActive),f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(zH(g,o.triggerKey,o.codePrefixAlias)?c({...g,target:p}):s=0)}async function c(g){Date.now()-u=o.triggerTimes&&qw(t,o,g.target)&&(s=0,T3(g,e,t,o))}function m(){C3=l,t.removeEventListener("keyup",C3),t.addEventListener("keyup",C3,!0)}VH(e)}function Vw({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function lg(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var Su;function x3(e){let t=e.parentElement;if(!t)return;Su=document.createElement("div"),Su.className=F+"-input";let n=`
`;Su.innerHTML=cr?.createHTML(n)||n,t.appendChild(Su);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=OH,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function S3(){Su&&Su.remove()}async function UH(e,t=window){if(zn)return;let r=globalThis.getSelection()?.toString();if(r){A3(e,t,r,"shortcutKey");return}try{let b=function(){p=e.config.inputTargetLanguage;let C=g.split(" ")[0];C&&C[0]&&(C=C[0].toLowerCase()+C.slice(1)),C.trim()&&u.flatAlias.includes(C)?(p=lg(C,u.codeAlias),m=g.slice(C.length+1)):m=g},v=function(){p="";let C=Vw(u),x=g.split(C);if(x.length<2)return;if(m=x[x.length-1],c=x[0],x.length>2){let S=g.lastIndexOf(m),T=g.slice(0,S).lastIndexOf(x[x.length-2]);c=g.slice(0,T+x[x.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",m="";return}let w=g.slice(c.length+1,g.indexOf(m)).trim();if(p=lg(w,u.codeAlias),!p){k.warn("not found alias",w);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};sr.forEach(C=>i[C]=[C,...i[C]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;qe().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;zn=!0;let c="",m="",g=ba(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?b():(v(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&b());let f=Ww(m,u),h=await ze({text:f,pageLangs:["en"]});k.debug("translateContent",f,h);let y={text:f||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!y.text||y.text.length>5e3)return;x3(l),Qe(cl,Date.now());try{e.specialAiAssistant=oa(e,e.inputTranslationService,!0);let C=await gr(y,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});E3(e),Zw(e,t,l,c+C.text)}catch(C){if(C instanceof V){let x=C.uiConfig(e);k3(x.action)&&(x.action="none"),t.document.dispatchEvent(new CustomEvent(_n,{detail:x}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,S3()}}async function T3(e,t,n,r){if(!zn)try{let g=function(){u=t.config.inputTargetLanguage;let f=s.split(" ")[0];f&&f[0]&&(f=f[0].toLowerCase()+f.slice(1)),f.trim()&&r.flatAlias.includes(f)?(u=lg(f,r.codeAlias),o=s.slice(f.length+1)):o=s},p=function(){u="";let f=Vw(r),h=s.split(f);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let b=s.lastIndexOf(o),v=s.slice(0,b).lastIndexOf(h[h.length-2]);i=s.slice(0,v+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let y=s.slice(i.length+1,s.indexOf(o)).trim();if(u=lg(y,r.codeAlias),!u){k.warn("not found alias",y);return}},a=dg(n.document,t.rule.enableInputDeepActive);if(!a)return;zn=!0;let i="",o="",s=ba(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?g():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&g());let l=Ww(o,r),c=await ze({text:l,pageLangs:["en"]});k.debug("translateContent",l,c);let m={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!m.text)return;if(t.config.isShowInputTranslationConsent&&!Hw){Hw=!0;let f=await WH(t);if(e.target&&e.target.focus(),f==="disable_once"||f==="disable_forever"){if(ug=!1,f==="disable_forever"){let h=await Qt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}else if(f==="disable_once"){let h=await Qt();h.isShowInputTranslationConsent=!1,await un(h)}return}else if(f==="close_disable_once"||f==="close_disable_forever"){if(ug=!1,f==="close_disable_forever"){let h=await Qt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}return}else if(f==="enable"){let h=await Qt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await un(h)}else if(f==="close_enable"){let h=await Qt();h.enableInputTranslation=!0,await un(h)}}x3(a),Qe(cl,Date.now());try{t.specialAiAssistant=oa(t,t.inputTranslationService,!0);let f=await gr(m,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});E3(t),Zw(t,n,a,i+f.text)}catch(f){if(f instanceof V){let h=f.uiConfig(t);k3(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(_n,{detail:h}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,S3()}}function qw(e,t,n){if(!n)return!1;if(w3(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=jH(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=He()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function jH(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function Ww(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Gw(e,t){let n=t.innerHTML,r=ba(t);return{html:n.replace(r,e),text:e}}function cg(e,t,n=!1){let r=ba(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function ba(e){return e.value||e.innerText||e.textContent}async function ha(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function HH(e,t,n){await ha(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await ha(10)}async function Kw(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await ha(10))}async function Yw(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await ha(20),(t.value||t.value==="")&&(t.value=e.text)}async function Qw(e,t){w3(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await ha(20))}var Jw=[HH.bind(null,["plain"])];function w3(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function qH(e,t){if(w3(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function Zw(e,t,n,r){await ha(50),await qH(t,n),await ha(50);let a=e.rule.inputConfig,i=Gw(r,n);try{await ha(50),a?.execCommandDeleteEnable&&!Xn()&&ba(n)?.trim()!=""&&(t.document.execCommand("delete"),await ha(50)),k.debug("clearContent",ba(n))}catch(o){k.error(o)}for(let o of[...Jw,Yw,Qw,Kw]){await o(i,n);let s=Xw(t);if(!s)return;if(k.debug("setContent",o.name,cg(i,s),ba(s),i),cg(i,s))break}}function Xw(e){return e.document.activeElement}function E3(e,t=""){Ne("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function zH(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function VH(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Pt(t,"")||Number(await Pt(cl,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{GH()},100),new Promise(m=>{let g=m;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let R=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${F}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let R=P.attachShadow({mode:"open"}),L=document.createElement("style"),_=Te();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,R.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let U=document.createElement("div");U.className=F+"-modal-content notranslate "+F+"-modal-content-in-input",s.appendChild(U);let z=document.createElement("span");z.textContent="\xD7",z.className=F+"-close",U.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",U.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",U.appendChild(c),l=document.createElement("div"),l.className=i,U.appendChild(l),R.appendChild(s),z.onclick=function(){A(),m("close")},R.addEventListener("click",Y=>{Y.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",I);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${Lm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=cr?.createHTML(f)||f,c.innerHTML=cr?.createHTML("")||"";let h=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:Q+"docs/input/"});h.innerHTML=cr?.createHTML(y)||y,h.style.cssText="margin-bottom:12px",c.appendChild(h);let b=document.createElement("div");b.style.cssText="margin-bottom: 12px;";let v=lt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));b.innerHTML=cr?.createHTML(v)||v,c.appendChild(b);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function A3(e,t,n,r){if(zn)return;try{let o=dg(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;zn=!0;let u=e.config.inputTargetLanguage,l=await ze({text:n,pageLangs:["en"]});k.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;x3(o),Qe(cl,Date.now());try{if(e.specialAiAssistant=oa(e,e.inputTranslationService,!0),E3(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let m=await gr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,m.text)}else{let m=await gr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,m.text)}}catch(m){if(m instanceof V){let g=m.uiConfig(e);k3(g.action)&&(g.action="none"),document.dispatchEvent(new CustomEvent(_n,{detail:g}))}}finally{zn=!1}}catch(o){throw zn=!1,o}finally{zn=!1,S3()}async function a(o,s,u,l){let c=o.rule.inputConfig,m=Gw(l,u);try{await ha(50),c?.execCommandDeleteEnable&&!Xn()&&ba(u)?.trim()!=""&&(s.document.execCommand("delete"),await ha(50)),k.debug("clearContent",ba(u))}catch(g){k.error(g)}for(let g of[...Jw,Yw,Qw,Kw]){await g(m,u);let p=Xw(s);if(!p)return;if(k.debug("setContent",g.name,cg(m,p),ba(p),m),cg(m,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let m=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("delete",!1);let g=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(g),!g.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function k3(e){return e==="retry"||e==="changeService"}function mg({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&rr(c,a),e.appendChild(l);let m=c;if(s){let g=document.createElement("div");g.id="mount",g.style.display="block",c.appendChild(g),m=g}Ca(d(Ji,{lang:t.config.interfaceLanguage,children:d(n,{...r})}),m)}function $w(e){let t=document.createElement("span");return t.innerHTML=e,(t.textContent||"").trim()}function Xe(e,t,n){Ne("translate_video_subtitle",[{name:"translate_video_subtitle",params:{video_platform:n||e.rule.id||""}}],{...e,sourceLanguage:t||"auto"})}function mt(e,t){return e==t}function hi(e,t){return!e||!t?!1:e.startsWith("zh")&&t.startsWith("zh")}function e7(e){let{url:t,method:n,headers:r,body:a}=e,i=new Headers;for(let[u,l]of Object.entries(r))i.append(u,l);let o;return typeof a=="object"?(delete a._formatBodyType,o=JSON.stringify(a)):typeof a=="string"&&(o=a),new Request(t,{method:n,headers:i,body:o})}function t7(e){return e?Object.entries(e).reduce((t,[n,r])=>{if(r==null||r==null||typeof r=="object"&&Object.keys(r).length===0)return t;if(n=="body"&&typeof r=="object"&&r._formatBodyType=="FormData"){let a=new FormData;for(let[i,o]of Object.entries(r))i!=="_formatBodyType"&&a.append(i,o);return t[n]=a,t}return t[n]=r,t},{}):null}function D3(e){return e.replace(/\n/g," ")}function n7(e){let t;return e instanceof URL?t=e.href:typeof e=="string"?t=e:e instanceof Request?t=e.url:t=String(e),t}function gg(e,t,n){let r="translationServices."+n,a=t("translationServices."+n);return a!=r?a:e.config.translationServices[n]?.name||a}function Tu(e){return wu(e).subtitles}function wu(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${X3.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},oz=e=>/]*>[\s\S]*]*>/.test(e),_7=kn({name:B7,build:iz,detect:oz,helper:X3,parse:az});var sz="srt",Pc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},uz=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Pc.toMilliseconds(s[2]),u.end=Pc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},lz=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${Pc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},cz=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),O7=kn({name:sz,build:lz,detect:cz,helper:Pc,parse:uz});var dz="sub",$3=25,mz=(e,t)=>{t.fps||=$3;let n=t.fps>0?t.fps:$3,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:$3,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},pz=e=>/^\{\d+\}\{\d+\}.*/.test(e),N7=kn({name:dz,build:gz,detect:pz,parse:mz});var fz="vtt",Rc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},hz=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Rc.toMilliseconds(s[2]),l.end=Rc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},bz=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Rc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},yz=e=>/^\s*WEBVTT\r?\n/.test(e),U7=kn({name:fz,build:bz,detect:yz,helper:Rc,parse:hz});var vz={vtt:U7,lrc:I7,smi:_7,ssa:M7,ass:P7,sub:N7,srt:O7,sbv:F7,json:R7},j7=vz;var Cz=e=>JSON.parse(JSON.stringify(e)),e2=class{format=j7;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),yg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];yu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,re+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${F}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&rr(document,`${t.join(` -`)}`,F+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await it(Fe(),{});if(this.initConfig(n),await tt(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(e7(r),t7(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!dt(Fe(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:gg(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function jq(){return d("span",{class:"logo",dangerouslySetInnerHTML:{__html:Dm}})}function Hq(){return d("span",{class:"logo",dangerouslySetInnerHTML:{__html:H8}})}function qq(){return d("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:d("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function zq(){return d("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:d("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function Vq(){return d("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:d("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var W3=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},kn=e=>new W3(e);var Wq="ssa",Qo={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},G3=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sw.split(T,S).join(T).length)(y,",",r.length-1)+1;v.content=y.substring(x),v.data.Text=v.content,v.text=v.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(v)}}}}}t.verbose}return a},K3=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,L7=kn({name:Wq,build:K3,detect:Y3,helper:Qo,parse:G3});var Gq="ass",M7=kn({name:Gq,build:K3,detect:Y3,helper:Qo,parse:G3});var Kq="json",Yq=(e,t)=>JSON.parse(e),Qq=(e,t)=>JSON.stringify(e,void 0,2),Jq=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},P7=kn({name:Kq,build:Qq,detect:Jq,parse:Yq});var Zq="lrc",Q3={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},Xq=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),R7=kn({name:Zq,build:$q,detect:ez,helper:Q3,parse:Xq});var tz="sbv",Lc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},nz=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},rz=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),I7=kn({name:tz,build:rz,detect:az,helper:Lc,parse:nz});var F7="smi",J3={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},iz=(e,t)=>{if(t.format&&t.format!==F7)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(m){let g={};g.type="caption",g.start=parseInt(m[1]),g.end=g.start+2e3,g.duration=g.end-g.start,g.content=m[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,f=/^([\s\S]*)/i.exec(g.content)||/^]*)>([\s\S]*)/i.exec(g.content);if(f){let b=f[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),b=b.replace(/^\s+/g,"").replace(/\s+$/g,""),p=b.replace(/ /gi," ").replace(/\s+/g,"").length===0,g.text=J3.htmlDecode(b,r)}!t.preserveSpaces&&p?t.verbose:n.push(g),s&&(s.end=g.start,s.duration=s.end-s.start),s=g;continue}t.verbose}return n},oz=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${J3.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},sz=e=>/]*>[\s\S]*]*>/.test(e),B7=kn({name:F7,build:oz,detect:sz,helper:J3,parse:iz});var uz="srt",Mc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},lz=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Mc.toMilliseconds(s[2]),u.end=Mc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},cz=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Mc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},dz=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),_7=kn({name:uz,build:cz,detect:dz,helper:Mc,parse:lz});var mz="sub",Z3=25,gz=(e,t)=>{t.fps||=Z3;let n=t.fps>0?t.fps:Z3,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Z3,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},fz=e=>/^\{\d+\}\{\d+\}.*/.test(e),O7=kn({name:mz,build:pz,detect:fz,parse:gz});var hz="vtt",Pc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},bz=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Pc.toMilliseconds(s[2]),l.end=Pc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},yz=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Pc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},vz=e=>/^\s*WEBVTT\r?\n/.test(e),N7=kn({name:hz,build:yz,detect:vz,helper:Pc,parse:bz});var Cz={vtt:N7,lrc:R7,smi:B7,ssa:L7,ass:M7,sub:O7,srt:_7,sbv:I7,json:P7},U7=Cz;var xz=e=>JSON.parse(JSON.stringify(e)),X3=class{format=U7;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),bg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];yu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,re+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${F}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&rr(document,`${t.join(` +`)}`,F+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await Ze(Ie(),{});if(this.initConfig(n),await tt(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch($w(r),e7(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!dt(Ie(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:mg(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=lt.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await fn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=hg(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),vc(this.ctx,n,r)}getTranslationMode(t){return hi(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=F+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;Xe(this.ctx,n);let r=t.filter(a=>a.text);bi(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Dc(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Bn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&mg({id:F+"quick-button",parent:n,ctx:this.ctx,Component:D7,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:L7+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Jo.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return vd(t.slice(0,50).map(n=>n.text).join(" "))}};function q7(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var Sg=class extends vt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!dt(Fe(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=mt(ae(r),this.ctx.targetLanguage);if(a||hi(r,this.ctx.targetLanguage)){let m=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(m)return this.loadSubtitle(m)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(m=>m===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(E7(t)&&(o||u)){let m=await this.requestOriginalEvents(t);u&&this.requestServerMerge(m,r);let g=w7(m,r,this.ctx.rule.ytAsrConfig);if(g){this.attachSubtitle(g,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let m=this.formatToSubtitleItem(l);return this.attachSubtitle(m,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${ct}subtitles/yt-asr-subs`;try{let a=await dd(t),o=(await $({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!mt(ae(o),r)&&!hi(ae(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(m=>!mt(ae(m.languageCode),r)&&!hi(ae(m.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(m=>m.kind);if(!u&&s.length&&(u=s.sort((g,p)=>ae(g.languageCode)==="en"?-1:0)[0]),!u)return;let l=ae(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=q7(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>ae(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>ae(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return ae(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=F+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!mt(ae(a[u]),this.ctx.targetLanguage)&&!hi(ae(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:$w(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,m,g)=>{if(g==0)return c=c.concat(m),c;let p=c[c.length-1];return m.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await it(Fe(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Dc(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await it(Fe(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=pg(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await ze({text:o.join(` -`),pageLangs:[Ht(),"en"]});return mt(ae(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Fe()&&(this.lastReportUrl=Fe(),Xe(this.ctx,ae(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,m)=>{i[m]&&(i[m].innerHTML=c.displayText)}),fg(a.arrayBuffer,a.document))}catch{}}};var Tg=class extends vt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(ae(i),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:ae(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,ae(i));return}this.downloadSubtitle(o,ae(i),[]);let u=await this.requestHumanSubtitle(o,ae(i),r);if(u)return this.handleIOSFullScreen(u,ae(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,ae(i));return l?(this.handleIOSFullScreen(l,ae(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[ae(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=Eu(s,u,"
");return l.forEach((c,m)=>{i.length<=m||(i[m].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!X()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));kc(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let m=a[l],g=a[c];if(!(!m||!g)){if(m.y>g.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Fe()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var oo=class extends vt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(mt(ae(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),ae(i.language)),i.isTranslated=!0;return}Xe(this.ctx,ae(i.language)),this.translateSubtitle([...i.cues||[]],ae(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>xz(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function xz(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var Wa=class extends oo{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&Xe(this.ctx,ae(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(mt(ae(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,ae(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var Lu=class extends Wa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=wu(r),i=await ze({text:a.subtitles.map(l=>l.text).join(` +`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await fn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=fg(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),yc(this.ctx,n,r)}getTranslationMode(t){return hi(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=F+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;Xe(this.ctx,n);let r=t.filter(a=>a.text);bi(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(kc(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Bn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&dg({id:F+"quick-button",parent:n,ctx:this.ctx,Component:k7,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:D7+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Jo.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return yd(t.slice(0,50).map(n=>n.text).join(" "))}};function H7(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var xg=class extends vt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!dt(Ie(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=mt(ae(r),this.ctx.targetLanguage);if(a||hi(r,this.ctx.targetLanguage)){let m=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(m)return this.loadSubtitle(m)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(m=>m===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(w7(t)&&(o||u)){let m=await this.requestOriginalEvents(t);u&&this.requestServerMerge(m,r);let g=S7(m,r,this.ctx.rule.ytAsrConfig);if(g){this.attachSubtitle(g,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let m=this.formatToSubtitleItem(l);return this.attachSubtitle(m,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${ct}subtitles/yt-asr-subs`;try{let a=await cd(t),o=(await $({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!mt(ae(o),r)&&!hi(ae(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(m=>!mt(ae(m.languageCode),r)&&!hi(ae(m.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(m=>m.kind);if(!u&&s.length&&(u=s.sort((g,p)=>ae(g.languageCode)==="en"?-1:0)[0]),!u)return;let l=ae(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=H7(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>ae(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>ae(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return ae(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=F+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!mt(ae(a[u]),this.ctx.targetLanguage)&&!hi(ae(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:Xw(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,m,g)=>{if(g==0)return c=c.concat(m),c;let p=c[c.length-1];return m.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await Ze(Ie(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&kc(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await Ze(Ie(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=gg(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Ke({text:o.join(` +`),pageLangs:[Ht(),"en"]});return mt(ae(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Ie()&&(this.lastReportUrl=Ie(),Xe(this.ctx,ae(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,m)=>{i[m]&&(i[m].innerHTML=c.displayText)}),pg(a.arrayBuffer,a.document))}catch{}}};var Tg=class extends vt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(ae(i),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:ae(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,ae(i));return}this.downloadSubtitle(o,ae(i),[]);let u=await this.requestHumanSubtitle(o,ae(i),r);if(u)return this.handleIOSFullScreen(u,ae(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,ae(i));return l?(this.handleIOSFullScreen(l,ae(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[ae(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=Eu(s,u,"
");return l.forEach((c,m)=>{i.length<=m||(i[m].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!X()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Ac(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let m=a[l],g=a[c];if(!(!m||!g)){if(m.y>g.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Ie()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var oo=class extends vt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(mt(ae(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),ae(i.language)),i.isTranslated=!0;return}Xe(this.ctx,ae(i.language)),this.translateSubtitle([...i.cues||[]],ae(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>Tz(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function Tz(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var Va=class extends oo{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&Xe(this.ctx,ae(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(mt(ae(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,ae(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var Lu=class extends Va{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=wu(r),i=await Ke({text:a.subtitles.map(l=>l.text).join(` `),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(mt(ae(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Xe(this.ctx,ae(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),io(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var wg=class extends vt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(mt(ae(a),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,ae(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:D3(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=ya(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${D3(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Eg=class extends oo{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(ae(i),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,ae(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,ae(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=Tu(t),s=Tu(i),u=Eu(o,s);return{text:io(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=Tu(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=ya(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),io(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[ae(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Fe()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Ag=class extends vt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=z7(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=z7(o,r.itemsPath):s=Tz(o,r),!s?.length)continue;let u=await ze({text:s.map(l=>Ic(l,r.textKey)).join(` -`),pageLangs:[Ht(),"en"]});if(mt(ae(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Ic(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),Xe(this.ctx,ae(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Ic(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=Sz(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function z7(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Js(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,Xe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Yt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Yt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Ar(t,["."+Yt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Yt);if(!a){let o=document.createElement("font");o.classList.add(Yt),o.classList.add("notranslate");let s=I4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Lt(),"en"]});return Ks(t,r)?void 0:(await gr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=st(),n=await it(Fe(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await it(Fe(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var kg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=wz(r),o=await ze({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ht(),"en"]});if(mt(ae(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=V7(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=await this.translateSubtitle(a,i,ae(o));if(this.config.enableHookDownload)try{let u=V7(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),ae(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ya(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Fc,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},Fc="http://www.w3.org/ns/ttml";function wz(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Fc,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Fc,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Fc,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function V7(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Fc,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:W7(i),end:W7(o),text:s})}),r}function W7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Dg=class extends vt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=wu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(mt(o,this.ctx.targetLanguage))return null;if(Xe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,ae(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=Eu(n.subtitles,Tu(u));return n.subtitles=l,io(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=ya(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),io(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>ae(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=kz(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return ze({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Fe()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=Az(r),i=Ez(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function Ez(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function Az(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function kz(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Lg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=pg(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await ze({text:o.join(` -`),pageLangs:[Ht(),"en"]});return mt(ae(s),this.ctx.targetLanguage)?null:(Xe(this.ctx,ae(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},m)=>{i[m]&&(i[m].innerHTML=c)}),fg(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Mg=class extends vt{async requestSubtitle(t){let n=await it(Fe(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new Lu(this.ctx).loadSubtitle(i.url);if(!s)return;let u=L3(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}a7(a),F3(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Pg=class extends vt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(G7).forEach(n=>{G7[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),mt(ae(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(Xe(this.ctx,t),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=n7(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},G7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Rg=class extends Wa{constructor(t){super(t),new Mu(t)}};var Ig=class extends Wa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Jo.parse(r),i=a.filter(c=>c.type==="caption"),o=await ze({text:i.map(c=>c.text).join(` -`),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(mt(ae(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Jo.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Fg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await ze({text:a.map(u=>u.textContent).join(` +`)}};var Sg=class extends vt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(mt(ae(a),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,ae(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:A3(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=ba(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${A3(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var wg=class extends oo{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(ae(i),this.ctx.targetLanguage))return null;Xe(this.ctx,ae(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,ae(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,ae(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=Su(t),s=Su(i),u=Eu(o,s);return{text:io(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=Su(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=ba(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),io(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[ae(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Ie()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Eg=class extends vt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=q7(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=q7(o,r.itemsPath):s=wz(o,r),!s?.length)continue;let u=await Ke({text:s.map(l=>Rc(l,r.textKey)).join(` +`),pageLangs:[Ht(),"en"]});if(mt(ae(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Rc(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),Xe(this.ctx,ae(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Rc(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=Sz(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function q7(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Js(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,Xe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Yt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Yt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Er(t,["."+Yt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Yt);if(!a){let o=document.createElement("font");o.classList.add(Yt),o.classList.add("notranslate");let s=I4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Ke({text:n,pageLangs:[Lt(),"en"]});return Ks(t,r)?void 0:(await sa({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=st(),n=await Ze(Ie(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await Ze(Ie(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var Ag=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=Ez(r),o=await Ke({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ht(),"en"]});if(mt(ae(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=z7(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=await this.translateSubtitle(a,i,ae(o));if(this.config.enableHookDownload)try{let u=z7(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),ae(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ba(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Ic,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},Ic="http://www.w3.org/ns/ttml";function Ez(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Ic,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Ic,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Ic,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function z7(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Ic,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:V7(i),end:V7(o),text:s})}),r}function V7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var kg=class extends vt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=wu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(mt(o,this.ctx.targetLanguage))return null;if(Xe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,ae(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=Eu(n.subtitles,Su(u));return n.subtitles=l,io(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=ba(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),io(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>ae(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=Dz(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return Ke({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Ie()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=kz(r),i=Az(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function Az(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function kz(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function Dz(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Dg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=gg(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Ke({text:o.join(` +`),pageLangs:[Ht(),"en"]});return mt(ae(s),this.ctx.targetLanguage)?null:(Xe(this.ctx,ae(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},m)=>{i[m]&&(i[m].innerHTML=c)}),pg(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Lg=class extends vt{async requestSubtitle(t){let n=await Ze(Ie(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new Lu(this.ctx).loadSubtitle(i.url);if(!s)return;let u=k3(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}r7(a),R3(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Mg=class extends vt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(W7).forEach(n=>{W7[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),mt(ae(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(Xe(this.ctx,t),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=t7(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},W7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Pg=class extends Va{constructor(t){super(t),new Mu(t)}};var Rg=class extends Va{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Jo.parse(r),i=a.filter(c=>c.type==="caption"),o=await Ke({text:i.map(c=>c.text).join(` +`),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(mt(ae(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Jo.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Ig=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Ke({text:a.map(u=>u.textContent).join(` `),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(mt(ae(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Xe(this.ctx,ae(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),ae(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",y=P3(f,l),b=P3(h,l),v=An(y),C=An(b);u==="duration"&&(C=v+C);let x=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(x||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var Bg=class extends vt{hasSubtitle=!1;async mutationVideoChange(){let t=Dz(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(Xe(this.ctx,"ja","av"),this.hasSubtitle=!0,bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await $({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Jo.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function Dz(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var _g=class extends vt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(Xe(this.ctx,n.language_code),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var Lz={youtube:Sg,netflix:Tg,webvtt:Lu,khanacademy:wg,udemy:Eg,hulu:Mg,mubi:_g,text_track:oo,text_track_dynamic:Wa,general:Ag,live:Mu,ebutt:kg,disneyplus:Dg,"fmp4.xml":Lg,multi_attach_vtt:Pg,twitter:Rg,subsrt:Ig,xml:Fg,av:Bg},Og;async function C7(e){try{X()&&await tt(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=Lz[t.type];if(!n)return;Og=new n(e)}catch(t){k.error(t)}}async function t2(){Og?.onPageStatusChange()}async function Mz(e,t){if(Og?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&St())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ne("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function Pz(){Og?.onTranslationModeChanged()}_5({autoEnableSubtitleChanged:Mz,reloadSubtitleWithTranslationModeChanged:Pz});var fe=null;function Lc(){return fe||null}function xg(e){Vi(document,e),Rz(e),Uz(e),_z(e),Nz(e),Bz(fe),$n("Translated"),Oz(fe),NS(Du),Iz(fe),t2(),Yz()}function Rz(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=En(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}MS(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}yu(e)&&zt(document.documentElement,re+"_rtl",e.targetLanguage)}function Iz(e){let t=e.ctx;X7(t,!0),US(e),FC(window.location.href)}function Fz(e){let t=e.ctx;X7(t,!1),jS()}async function Bz(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await J7(e.ctx,En(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ro(s,e);await ro(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ro(s,e)}function J7(e,t){M5(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=PS(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Fs({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function _z(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Rt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Dt({...t,tempTranslationUrlMatches:[...i]})}}function Oz(e){e.ctx.rule.isTranslateTitle&&(M1(e.ctx),e.titleDynamicObserver=IS(e.ctx))}function Nz(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function z3(e,t){fe&&(e.filterRule=En(e,!0),e.isRichTranslate=Gs(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=En(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Ra(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function Uz(e){let t=wl();fe&&(t=fe.id),fe=fe||{},fe.ctx=e,fe.id=t,fe.paragraphQueue=fe.paragraphQueue||[],z3(e),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||Gz(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||Kz(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||qz(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||zz(fe),fe.injectCssToDocument=Ng,fe.walkContainer=pi,e.specialAiAssistant=oa(e,e.translationService,!0),window.onerror=Hz(fe,e),window.immersiveTranslateSwitchTranslateState=r2.bind(fe)}function Z7(e,t){t.getRootNode()instanceof ShadowRoot?Ng(t.getRootNode(),e):Ng(t.ownerDocument,e),jz(e)}function jz(e){fe||(fe={},fe.ctx=e,fe.id=wl(),n2(fe,e))}function n2(e,t){let n={...e};n.injectCssToDocument=Ng,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=r2.bind(n);let r=oa(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Gs(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function Du(e=!0){fe&&($n("Original"),t2(),Fz(fe),fc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),FS(fe.ctx),AC(),kC(),e&&r2.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function Hz(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Du(),n=setTimeout(()=>{xg(t)},e.urlChangeDelay||2e3)),!0}}function qz(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await F1(e,r.target),n.unobserve(r.target))})}function zz(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{B1(e,o)}),n.unobserve(a)}})})}var K7;function Vz(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function Wz(e){if(e.urlChangeDelay<=0||(clearTimeout(K7),e.translateState=="original"))return!1;Du(e.urlChangeDelay>20),K7=setTimeout(()=>{let t=e.ctx;xg(t)},e.urlChangeDelay)}function Gz(e){let t=e.ctx.rule,n=En(e.ctx);return new MutationObserver(r=>{if(Vz(e)&&(J7(e.ctx,n),t.mutationConfig.enableUrlChange&&Wz(e))||e.interruptEffectDOM)return;let a=Zd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Ar(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Ar(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(U0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Y7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&j1(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Y7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!It.isSkipMarkEle(i.target)&&!It.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Ma(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Js(n,o.parentElement);l&&(It.clearToParentMark(o,l),Q7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Yt])?!1:o.contains(l)).length&&Q7(e,i.target)}catch(o){k.error(o)}}})}function Y7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{U1(n),pi({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{zo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function Q7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;It.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ro(t,e,n),i.timer=null},a)}function U1(e){e.paragraphs=[],It.clearMark(e),e.querySelectorAll("."+Yt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${F}-walked]`).forEach(t=>{t.paragraphs=void 0,It.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function j1(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Yt]))).length==0}function Kz(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);D1(i)||(n.unobserve(r.target),It.clearMark(a),ro(a,e))}})}async function r2(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await fa(),await tt(50),hn({method:"translatePage"});return}this.translateState=e,Ra(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Ra(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{pc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Yt}`).forEach(t=>t.remove())}function Ng(e,t){if(e instanceof HTMLIFrameElement){Vi(e.contentDocument,t);return}Vi(e,t)}async function x7(e){let t=St(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=q4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Zs(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Zs(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=q4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await j5();return n==="auto"&&(n=await OS()),E5(n),n}async function S7(){if(!fe)return;fc(),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${_0}='${n}']`);i&&i.remove()}}Wm.call(fe,fe.ctx)}async function b3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ne("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Lt()});let r=fe?.ctx||t,a=await Rt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:BS(r)},await Dt(a);let o=Te().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}ka(o)}catch(i){k.error(i)}}async function Rw(){let e=await Rt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(U6,{detail:JSON.stringify(e.draft)}))}async function Yz(){try{if(await Mo("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await na();await $({url:ct+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Jr("reportActive","1")}catch(e){k.error(e)}}function X7(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(ys,{detail:{tempEnableSubtitle:t}}))}var Qz=new AbortController,{signal:Jz}=Qz,_c=0,Oc=0,Zo=!1,so,$7=0,yi=[];function V3(e){Zz(),sg().forEach(t=>{Ug(e,t)})}function Ug(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&nV(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Ug(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Ug(n,t))}t.document.addEventListener(al,s),yi.push(()=>{t.document.removeEventListener(al,s)});let u=yr(g=>{if(!(Math.abs(g.clientX-_c)+Math.abs(g.clientY-Oc)<=3)&&(_c=g.clientX,Oc=g.clientY,Zo&&!so&&o2(n,!1,t),o||Zo&&!so)){let p=rE(n.rule,t);if(p){if(i2(p))return;jg(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;i2(p)||(jg(n,!0,t),o2(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Kt.getPressedKeyCodes();if(f.length>1&&Kt[p]&&($7=Date.now(),Zo=!1),f.length===1&&Kt[p]){let h=Date.now();Zo=!0,so&&clearTimeout(so),so=setTimeout(()=>{let y=$7-h;y>0&&y<=i?Zo=!1:l(g),so=void 0},i)}};if(yi.push(()=>{so&&clearTimeout(so)}),a)return;Bc("mousemove",u,t),yi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Zo=!1}if(Bc("blur",m,t),yi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=ay;Bc("keyup",eE,t),yi.push(()=>{t.removeEventListener("keyup",eE)}),p.includes(g)?Kt("*",{scope:"mouseHover",element:t.document},c):Kt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Kt.setScope("mouseHover"),yi.push(()=>{Kt.deleteScope("mouseHover")})}}function Zz(){try{yi.forEach(e=>e())}catch{}yi=[],Kt.setScope("all")}function eE(e){Zo=!1}function Bc(e,t,n=window){return n.addEventListener(e,t,{signal:Jz})}function jg(e,t,n,r){if(r=r||rE(e.rule,n),!r){k.debug("can not find selection part!");return}if($z(e,r,t))return;if(i2(r)){k.debug("exclude dom");return}Z7(e,r);let i=Lc();i&&(i.setupMouseHoverListener=Ug);let o=En(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=n2(i,e);pi({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{Zd(n.document.documentElement)!==l.state.translationMode&&Ra(n.document.documentElement,l.state.translationMode),zo(u,c,!0,"hover").then(g=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,g&&!s){s=!0;let p=Date.now();Qe(q6,p);let f={translation_service:u?.translationService||""};Ne("mouse_hover_translate",[{name:"mouse_hover_translate",params:f}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function rE(e,t){return Xz(_c,Oc,e,t)}function Xz(e,t,n,r){let a=ex(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=tx(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:nE(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{tV(e,a)}),!0}function eV(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(F+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${F}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function tV(e,t){let n=Lc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{pc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function a2(e){return!!(e.host&&e.mode)}function tE(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||a2(n))return e;for(;n&&n.nodeName!=="BODY"&&!a2(n)&&j4(n,t);){let r=n.parentNode;if(r&&a2(r))break;n=r}return n}function nE(e,t){return e.nodeType===Node.TEXT_NODE||j4(e,t)?tE(e,t):e}function aE(e,t,n){_c=t.clientX,Oc=t.clientY,jg(e,!0,n),o2(e,!0,n)}async function o2(e,t,n,r){if(!ci(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=nx(_c,Oc,e.rule,n);if(!a||Q4(a.src)||a.translationStatus==="translating")return;let i=u3(a);if(i&&!t||i&&!r)return;if(i){Ko(a);return}if(!await As(e)){ig("image_mouse_hover");return}Go(e,a,!0,"image_mouse_hover")}function nV(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&jg(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Bc("mousedown",i,t),Bc("mouseup",o,t),yi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Nc=[];function s2(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Nc.push(()=>{document.removeEventListener("click",i)})}function iE(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Nc.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Hg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Nc.push(()=>{document.removeEventListener("touchstart",r)})}var bc={touchShortcutsOff:()=>{},"multipleClick.2":s2,"multipleClick.3":s2,"multipleClick.4":s2,"slide.left":iE,"slide.right":iE,"fingers.2":Hg,"fingers.3":Hg,"fingers.4":Hg,"fingers.5":Hg};async function Iw(e,t=window){try{sV();let n=await ln(),r=j0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=u2(e,n,a.command),o=bc[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{oV(a.command,e,t,l)})})}catch(n){k.error(n)}}function u2(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var rV=()=>{U3();let e=new CustomEvent(Kr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},aV=()=>{H3();let e=new CustomEvent(Kr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},iV=()=>{j3();let e=new CustomEvent(Kr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},oE=0,oV=(e,t,n,r)=>{if(!(new Date().getTime()-oE<200)){if(oE=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")rV();else if(e==="touchShortcutsToggleTranslationMask")iV();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")aV();else if(e==="touchShortcutsToggleTranslateTouchElement")aE(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};T3(r,t,n,s)}}};function sV(){Nc.forEach(e=>{e()}),Nc=[]}function Uc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(bc).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=ri.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d(la,{className:"select",maxWidth:250,items:ri.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let h=g("mouseHoldKey",{key:Ba(f)}),y=ri.includes(o),b=f===o;return o==="Off"&&f===o&&c&&(b=!1),f==="Auto"?h=g("mouseHoldKeyAuto"):f==="Off"?h=g("mouseHoldKeyOff"):f==="OtherCustom"?h=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?h=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(h=g("mouseHoldKeyPressHold")),y||f==="Other"&&(b=!0),{label:h,value:f,selected:b,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(be,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(be,{title:r,description:i||""}),d("div",{class:"nav",children:[d(la,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:b=>{b.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(b.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(a1,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(a1,{width:20,height:16})})})})]})]})}function l2(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let[o,s]=ga(),{t:u}=O(),l=ft(t),c=cn(l);return l?d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(pa,{image:rn("images/hover_intro.png"),nightImage:rn("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Yr(o)&&d(Uc,{onChange:(m,g)=>{n(p=>{let h={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(h.mouseHoverPreferenceKey=m),{...p,generalRule:h}}),g||rt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(uV,{setSettings:n,config:l,localConfig:o}),d(to,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function uV({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Yr(n)?null:d(Uc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||rt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function c2(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),s=cn(o),u=ue(g=>{s&&n(p=>ji({...p},g))},[s,n]),l=ui(s,t),{t:c}=O(),m=ue((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(pa,{image:rn("images/float_ball_intro.png"),nightImage:rn("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(lV,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(cV,{t:m,rule:l,updateFloatBallRule:u}),d(dV,{t:m,rule:l,updateFloatBallRule:u}),d(mV,{t:m,rule:l,updateFloatBallRule:u})]})})}function lV({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function cV({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);q(()=>{Kt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,h,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(h=>{t.blockUrls=Jt(h,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,h)=>{a(!r),o(p),u(h)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(da,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(qa,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function dV({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function mV({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function d2(){let e=Oe(),[t,n,r,a,i]=e,[o]=ga();Ze(t,n);let[s,u]=N(null),{t:l,lang:c}=O();q(()=>{Je().then(h=>{wn({config:h,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Ls(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=j0.filter(h=>{if(h.name==="touch"){let y=Yr(o);return k.debug("isSupportMouseHover",y),!y}else if(h.name==="mouse"){let y=Yr(o);return k.debug("isSupportMouseHover",y),y}else return!0}).map(h=>({name:h.name,shortcuts:h.shortcuts.map(y=>{let b="",v="normal";typeof y=="string"?b=y:(b=y.command,y.type&&(v=y.type));let C="";l(`desc.${b}`)!==`desc.${b}`&&(C=l(`desc.${b}`));let w="";v==="finger"?w=u2(s,t,b):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[b]!==void 0?w=t.generalRule[b]:w=g.generalRule[b]:t?.shortcuts&&t?.shortcuts[b]!==void 0?w=t.shortcuts[b]:w=g.shortcuts[b];let S=l(`browser.${b}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(S=l(`${b}`));let T,A;return v.startsWith("translateWithCustom")&&(T=t?.shortcuts?.translateWithCustomServices?.[b],A=m.map(D=>{let M={service:D,name:null};return D.startsWith("custom-ai")&&(M.name=s.config.translationServices[D].name),M})),{command:b,type:v,shortcut:w,title:S,description:C,service:T,serviceIdList:A,disabled:!(X(!0)||fs())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return X(!0)||(Xn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):fs()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:h=>{h.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((h,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${h.name}`)}),h.shortcuts.map((b,v)=>mo(Uc,{...b,key:`shortcut-${v}`,onChange:(C,x)=>{n(w=>{if(b.type==="finger"){let T={...w.generalRule||{},[b.command]:C||"touchShortcutsOff"};return b.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(T.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...w,generalRule:T}}else if(b.type==="mouseHoverHoldKey"){let T={...w.generalRule||{},[b.command]:C||"Off"};return C!=="Off"&&(T.mouseHoverPreferenceKey=C),{...w,generalRule:T}}else if(b.type.startsWith("translateWithCustom")){let S={...w?.shortcuts};if(m.includes(C)){let A=S.translateWithCustomServices||{};return{...w,shortcuts:{...S,translateWithCustomServices:{...A,[b.command]:C}}}}let T={...w,shortcuts:{...S,[b.command]:C}};return C||(T.shortcuts[b.command]=""),T}else{let S={...w?.shortcuts},T={...w,shortcuts:{...S,[b.command]:C}};return C||(T.shortcuts[b.command]=""),T}}),x||rt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function gV(){let[e,t]=N(null);return q(()=>{Je().then(n=>{t(n)})},[]),e}function m2(){let[e,t,n,r,a]=Oe(),i=gV(),{t:o,setLang:s}=O(),[u,l]=ga();if(!i)return null;return d(at,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return q(()=>{e&&m()},[e]),d(le,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});po.saveAs(g,F+"-config-"+zs()+".txt")}}}function g2({config:e}){let t=nr(),{t:n,lang:r}=O();return d(le,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(lS,{}),d("h1",{children:n("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:a=>{a.preventDefault(),lr(`${Q}docs/CHANGELOG/#${t.replace(/\./ig,"")}`)},children:Ro(e)}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(pV,{}),d(fV,{})]})]}),d("div",{className:"header-navbar-height"})]})}function pV(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:cy,target:"_blank",children:[d(cS,{}),d("span",{children:e("options.navbar.installApp")})]})}function fV(){let{t:e}=O();return d(yt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:by,target:"_blank",children:[d(dS,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function p2(){let e=Oe(),[t,n,r,a,i]=e;Ze(t,n);let{t:o}=O(),s=ft(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=Od(s.supportedMangaSites),c=`
+`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",y=L3(f,l),h=L3(b,l),v=An(y),C=An(h);u==="duration"&&(C=v+C);let x=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(x||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var Fg=class extends vt{hasSubtitle=!1;async mutationVideoChange(){let t=Lz(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(Xe(this.ctx,"ja","av"),this.hasSubtitle=!0,bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await $({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Jo.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function Lz(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var Bg=class extends vt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(Xe(this.ctx,n.language_code),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var Mz={youtube:xg,netflix:Tg,webvtt:Lu,khanacademy:Sg,udemy:wg,hulu:Lg,mubi:Bg,text_track:oo,text_track_dynamic:Va,general:Eg,live:Mu,ebutt:Ag,disneyplus:kg,"fmp4.xml":Dg,multi_attach_vtt:Mg,twitter:Pg,subsrt:Rg,xml:Ig,av:Fg},_g;async function v7(e){try{X()&&await tt(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=Mz[t.type];if(!n)return;_g=new n(e)}catch(t){k.error(t)}}async function $3(){_g?.onPageStatusChange()}async function Pz(e,t){if(_g?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Tt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Be("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function Rz(){_g?.onTranslationModeChanged()}F5({autoEnableSubtitleChanged:Pz,reloadSubtitleWithTranslationModeChanged:Rz});var fe=null;function Dc(){return fe||null}function Cg(e){Vi(document,e),Iz(e),jz(e),Oz(e),Uz(e),_z(fe),Xn("Translated"),Nz(fe),_T(Du),Fz(fe),$3(),Qz()}function Iz(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=En(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}DT(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}yu(e)&&zt(document.documentElement,re+"_rtl",e.targetLanguage)}function Fz(e){let t=e.ctx;Z7(t,!0),OT(e),RC(window.location.href)}function Bz(e){let t=e.ctx;Z7(t,!1),NT()}async function _z(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await Q7(e.ctx,En(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ro(s,e);await ro(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ro(s,e)}function Q7(e,t){D5(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=LT(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Fs({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function Oz(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Rt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Dt({...t,tempTranslationUrlMatches:[...i]})}}function Nz(e){e.ctx.rule.isTranslateTitle&&(M1(e.ctx),e.titleDynamicObserver=PT(e.ctx))}function Uz(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function H3(e,t){fe&&(e.filterRule=En(e,!0),e.isRichTranslate=Gs(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=En(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Pa(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function jz(e){let t=Sl();fe&&(t=fe.id),fe=fe||{},fe.ctx=e,fe.id=t,fe.paragraphQueue=fe.paragraphQueue||[],H3(e),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||Kz(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||Yz(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||zz(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||Vz(fe),fe.injectCssToDocument=Og,fe.walkContainer=pi,e.specialAiAssistant=di(e,e.translationService,!0),window.onerror=qz(fe,e),window.immersiveTranslateSwitchTranslateState=t2.bind(fe)}function J7(e,t){t.getRootNode()instanceof ShadowRoot?Og(t.getRootNode(),e):Og(t.ownerDocument,e),Hz(e)}function Hz(e){fe||(fe={},fe.ctx=e,fe.id=Sl(),e2(fe,e))}function e2(e,t){let n={...e};n.injectCssToDocument=Og,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=t2.bind(n);let r=di(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Gs(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function Du(e=!0){fe&&(Xn("Original"),$3(),Bz(fe),pc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),RT(fe.ctx),wC(),EC(),e&&t2.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function qz(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Du(),n=setTimeout(()=>{Cg(t)},e.urlChangeDelay||2e3)),!0}}function zz(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await F1(e,r.target),n.unobserve(r.target))})}function Vz(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{B1(e,o)}),n.unobserve(a)}})})}var G7;function Wz(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function Gz(e){if(e.urlChangeDelay<=0||(clearTimeout(G7),e.translateState=="original"))return!1;Du(e.urlChangeDelay>20),G7=setTimeout(()=>{let t=e.ctx;Cg(t)},e.urlChangeDelay)}function Kz(e){let t=e.ctx.rule,n=En(e.ctx);return new MutationObserver(r=>{if(Wz(e)&&(Q7(e.ctx,n),t.mutationConfig.enableUrlChange&&Gz(e))||e.interruptEffectDOM)return;let a=Jd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Er(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Er(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(N0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;K7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&j1(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&K7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!It.isSkipMarkEle(i.target)&&!It.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||La(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Js(n,o.parentElement);l&&(It.clearToParentMark(o,l),Y7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Yt])?!1:o.contains(l)).length&&Y7(e,i.target)}catch(o){k.error(o)}}})}function K7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{U1(n),pi({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{zo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function Y7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;It.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ro(t,e,n),i.timer=null},a)}function U1(e){e.paragraphs=[],It.clearMark(e),e.querySelectorAll("."+Yt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${F}-walked]`).forEach(t=>{t.paragraphs=void 0,It.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function j1(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Yt]))).length==0}function Yz(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);D1(i)||(n.unobserve(r.target),It.clearMark(a),ro(a,e))}})}async function t2(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await pa(),await tt(50),hn({method:"translatePage"});return}this.translateState=e,Pa(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Pa(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{gc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Yt}`).forEach(t=>t.remove())}function Og(e,t){if(e instanceof HTMLIFrameElement){Vi(e.contentDocument,t);return}Vi(e,t)}async function C7(e){let t=Tt(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=q4(e.mainFrame),n=await Ke({text:r,pageLangs:["en"]})):(r=Zs(e.mainFrame).slice(0,1e3),n=await Ke({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await Ke({text:Zs(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=q4(e.mainFrame),n=await Ke({text:r,pageLangs:["en"]})}else n=await N5();return n==="auto"&&(n=await BT()),S5(n),n}async function x7(){if(!fe)return;pc(),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${B0}='${n}']`);i&&i.remove()}}Vm.call(fe,fe.ctx)}async function b3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Be("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Lt()});let r=fe?.ctx||t,a=await Rt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:IT(r)},await Dt(a);let o=Se().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Aa(o)}catch(i){k.error(i)}}async function Mw(){let e=await Rt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(O6,{detail:JSON.stringify(e.draft)}))}async function Qz(){try{if(await Mo("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ta();await $({url:ct+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Qr("reportActive","1")}catch(e){k.error(e)}}function Z7(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(ys,{detail:{tempEnableSubtitle:t}}))}var Jz=new AbortController,{signal:Zz}=Jz,Bc=0,_c=0,Zo=!1,so,X7=0,yi=[];function q3(e){Xz(),og().forEach(t=>{Ng(e,t)})}function Ng(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&rV(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Ng(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Ng(n,t))}t.document.addEventListener(al,s),yi.push(()=>{t.document.removeEventListener(al,s)});let u=br(g=>{if(!(Math.abs(g.clientX-Bc)+Math.abs(g.clientY-_c)<=3)&&(Bc=g.clientX,_c=g.clientY,Zo&&!so&&a2(n,!1,t),o||Zo&&!so)){let p=nE(n.rule,t);if(p){if(r2(p))return;Ug(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;r2(p)||(Ug(n,!0,t),a2(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Kt.getPressedKeyCodes();if(f.length>1&&Kt[p]&&(X7=Date.now(),Zo=!1),f.length===1&&Kt[p]){let b=Date.now();Zo=!0,so&&clearTimeout(so),so=setTimeout(()=>{let y=X7-b;y>0&&y<=i?Zo=!1:l(g),so=void 0},i)}};if(yi.push(()=>{so&&clearTimeout(so)}),a)return;Fc("mousemove",u,t),yi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Zo=!1}if(Fc("blur",m,t),yi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=ny;Fc("keyup",$7,t),yi.push(()=>{t.removeEventListener("keyup",$7)}),p.includes(g)?Kt("*",{scope:"mouseHover",element:t.document},c):Kt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Kt.setScope("mouseHover"),yi.push(()=>{Kt.deleteScope("mouseHover")})}}function Xz(){try{yi.forEach(e=>e())}catch{}yi=[],Kt.setScope("all")}function $7(e){Zo=!1}function Fc(e,t,n=window){return n.addEventListener(e,t,{signal:Zz})}function Ug(e,t,n,r){if(r=r||nE(e.rule,n),!r){k.debug("can not find selection part!");return}if(eV(e,r,t))return;if(r2(r)){k.debug("exclude dom");return}J7(e,r);let i=Dc();i&&(i.setupMouseHoverListener=Ng);let o=En(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=e2(i,e);pi({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{Jd(n.document.documentElement)!==l.state.translationMode&&Pa(n.document.documentElement,l.state.translationMode),zo(u,c,!0,"hover").then(g=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,g&&!s){s=!0;let p=Date.now();rt(j6,p);let f={translation_service:u?.translationService||""};Be("mouse_hover_translate",[{name:"mouse_hover_translate",params:f}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function nE(e,t){return $z(Bc,_c,e,t)}function $z(e,t,n,r){let a=XC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=$C(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:tE(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{nV(e,a)}),!0}function tV(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(F+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${F}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function nV(e,t){let n=Dc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{gc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function n2(e){return!!(e.host&&e.mode)}function eE(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||n2(n))return e;for(;n&&n.nodeName!=="BODY"&&!n2(n)&&j4(n,t);){let r=n.parentNode;if(r&&n2(r))break;n=r}return n}function tE(e,t){return e.nodeType===Node.TEXT_NODE||j4(e,t)?eE(e,t):e}function rE(e,t,n){Bc=t.clientX,_c=t.clientY,Ug(e,!0,n),a2(e,!0,n)}async function a2(e,t,n,r){if(!li(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=ex(Bc,_c,e.rule,n);if(!a||Q4(a.src)||a.translationStatus==="translating")return;let i=u3(a);if(i&&!t||i&&!r)return;if(i){Ko(a);return}if(!await As(e)){ag("image_mouse_hover");return}Go(e,a,!0,"image_mouse_hover")}function rV(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Ug(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Fc("mousedown",i,t),Fc("mouseup",o,t),yi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Oc=[];function i2(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Oc.push(()=>{document.removeEventListener("click",i)})}function aE(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Oc.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function jg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Oc.push(()=>{document.removeEventListener("touchstart",r)})}var hc={touchShortcutsOff:()=>{},"multipleClick.2":i2,"multipleClick.3":i2,"multipleClick.4":i2,"slide.left":aE,"slide.right":aE,"fingers.2":jg,"fingers.3":jg,"fingers.4":jg,"fingers.5":jg};async function Pw(e,t=window){try{uV();let n=await ln(),r=U0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=o2(e,n,a.command),o=hc[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{sV(a.command,e,t,l)})})}catch(n){k.error(n)}}function o2(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var aV=()=>{O3();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},iV=()=>{U3();let e=new CustomEvent(Gr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},oV=()=>{N3();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},iE=0,sV=(e,t,n,r)=>{if(!(new Date().getTime()-iE<200)){if(iE=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")aV();else if(e==="touchShortcutsToggleTranslationMask")oV();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")iV();else if(e==="touchShortcutsToggleTranslateTouchElement")rE(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};T3(r,t,n,s)}}};function uV(){Oc.forEach(e=>{e()}),Oc=[]}function Nc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(hc).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=ni.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d(ua,{className:"select",maxWidth:250,items:ni.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let b=g("mouseHoldKey",{key:Fa(f)}),y=ni.includes(o),h=f===o;return o==="Off"&&f===o&&c&&(h=!1),f==="Auto"?b=g("mouseHoldKeyAuto"):f==="Off"?b=g("mouseHoldKeyOff"):f==="OtherCustom"?b=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?b=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(b=g("mouseHoldKeyPressHold")),y||f==="Other"&&(h=!0),{label:b,value:f,selected:h,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(be,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(be,{title:r,description:i||""}),d("div",{class:"nav",children:[d(ua,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:h=>{h.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(h.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(a1,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(a1,{width:20,height:16})})})})]})]})}function s2(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let[o,s]=ma(),{t:u}=O(),l=ft(t),c=cn(l);return l?d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ga,{image:rn("images/hover_intro.png"),nightImage:rn("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Kr(o)&&d(Nc,{onChange:(m,g)=>{n(p=>{let b={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(b.mouseHoverPreferenceKey=m),{...p,generalRule:b}}),g||at(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(lV,{setSettings:n,config:l,localConfig:o}),d(to,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function lV({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Kr(n)?null:d(Nc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||at(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function u2(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),s=cn(o),u=ue(g=>{s&&n(p=>ji({...p},g))},[s,n]),l=si(s,t),{t:c}=O(),m=ue((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ga,{image:rn("images/float_ball_intro.png"),nightImage:rn("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(cV,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(dV,{t:m,rule:l,updateFloatBallRule:u}),d(mV,{t:m,rule:l,updateFloatBallRule:u}),d(gV,{t:m,rule:l,updateFloatBallRule:u})]})})}function cV({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function dV({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);q(()=>{Kt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,b,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=Hn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(b=>{t.blockUrls=Jt(b,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,b)=>{a(!r),o(p),u(b)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(ca,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ha,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function mV({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function gV({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function l2(){let e=Ne(),[t,n,r,a,i]=e,[o]=ma();Je(t,n);let[s,u]=N(null),{t:l,lang:c}=O();q(()=>{Qe().then(b=>{wn({config:b,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Ls(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=U0.filter(b=>{if(b.name==="touch"){let y=Kr(o);return k.debug("isSupportMouseHover",y),!y}else if(b.name==="mouse"){let y=Kr(o);return k.debug("isSupportMouseHover",y),y}else return!0}).map(b=>({name:b.name,shortcuts:b.shortcuts.map(y=>{let h="",v="normal";typeof y=="string"?h=y:(h=y.command,y.type&&(v=y.type));let C="";l(`desc.${h}`)!==`desc.${h}`&&(C=l(`desc.${h}`));let w="";v==="finger"?w=o2(s,t,h):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[h]!==void 0?w=t.generalRule[h]:w=g.generalRule[h]:t?.shortcuts&&t?.shortcuts[h]!==void 0?w=t.shortcuts[h]:w=g.shortcuts[h];let T=l(`browser.${h}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(T=l(`${h}`));let S,A;return v.startsWith("translateWithCustom")&&(S=t?.shortcuts?.translateWithCustomServices?.[h],A=m.map(D=>{let M={service:D,name:null};return D.startsWith("custom-ai")&&(M.name=s.config.translationServices[D].name),M})),{command:h,type:v,shortcut:w,title:T,description:C,service:S,serviceIdList:A,disabled:!(X(!0)||fs())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return X(!0)||(Zn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):fs()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:b=>{b.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((b,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${b.name}`)}),b.shortcuts.map((h,v)=>mo(Nc,{...h,key:`shortcut-${v}`,onChange:(C,x)=>{n(w=>{if(h.type==="finger"){let S={...w.generalRule||{},[h.command]:C||"touchShortcutsOff"};return h.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(S.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...w,generalRule:S}}else if(h.type==="mouseHoverHoldKey"){let S={...w.generalRule||{},[h.command]:C||"Off"};return C!=="Off"&&(S.mouseHoverPreferenceKey=C),{...w,generalRule:S}}else if(h.type.startsWith("translateWithCustom")){let T={...w?.shortcuts};if(m.includes(C)){let A=T.translateWithCustomServices||{};return{...w,shortcuts:{...T,translateWithCustomServices:{...A,[h.command]:C}}}}let S={...w,shortcuts:{...T,[h.command]:C}};return C||(S.shortcuts[h.command]=""),S}else{let T={...w?.shortcuts},S={...w,shortcuts:{...T,[h.command]:C}};return C||(S.shortcuts[h.command]=""),S}}),x||at(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function pV(){let[e,t]=N(null);return q(()=>{Qe().then(n=>{t(n)})},[]),e}function c2(){let[e,t,n,r,a]=Ne(),i=pV(),{t:o,setLang:s}=O(),[u,l]=ma();if(!i)return null;return d(it,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return q(()=>{e&&m()},[e]),d(le,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});po.saveAs(g,F+"-config-"+zs()+".txt")}}}function d2({config:e}){let t=tr(),{t:n,lang:r}=O();return d(le,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(sT,{}),d("h1",{children:n("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:a=>{a.preventDefault(),cr(`${Q}docs/CHANGELOG/#${t.replace(/\./ig,"")}`)},children:Ro(e)}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(fV,{}),d(hV,{})]})]}),d("div",{className:"header-navbar-height"})]})}function fV(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:uy,target:"_blank",children:[d(uT,{}),d("span",{children:e("options.navbar.installApp")})]})}function hV(){let{t:e}=O();return d(yt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:fy,target:"_blank",children:[d(lT,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function m2(){let e=Ne(),[t,n,r,a,i]=e;Je(t,n);let{t:o}=O(),s=ft(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=_d(s.supportedMangaSites),c=``,m=[...l.map((p,f)=>` ${p.name} ${f!==l.length-1?", ":""} - `),c].join(""),g=ci(u,!0);return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(pa,{image:rn("images/popup-manga-guide.png"),nightImage:rn("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:Ff})+m,children:d("div",{class:"px-6",children:d(sE,{config:u.config,ctx:u})})}),d(sE,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:Ff})+"
"+m}}),d(hV,{ctx:u})]})})}function sE({config:e,ctx:t,className:n}){let[r,a,i,o,s]=Se(me),u=ui(t,r),{t:l}=O(),c=ue((g,p)=>l("floatBallOptions."+g,p),[]),m=ue(g=>{t&&a(p=>ji({...p},g))},[t,a]);return u?d(le,{children:d("div",{class:`nav ${n}`,children:[d(be,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function hV({ctx:e}){let{t}=O();return ci(e,!0)?d(le,{children:[d(pa,{image:rn("images/image_tansalte_intro-qkKVLH.png"),nightImage:rn("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:Bf}),children:d("div",{class:"px-6",children:[d(uE,{ctx:e}),d(lE,{ctx:e,styles:{paddingTop:0}})]})}),d(uE,{ctx:e,className:"image-tools-enable"}),d(lE,{ctx:e,className:"image-tools-enable"}),d(bV,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:Bf})}})]}):null}function uE({ctx:e,className:t}){let[n,r,a,i,o]=Se(me),s=e.rule.imageRule,{t:u}=O();return d(le,{children:d("div",{class:`nav ${t}`,children:[d(be,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function bV({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=Se(me),p=e.config.generalRule.imageRule||{};q(()=>{Kt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},h=(v,C,x,w)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=qn(v,p.blockToolsUrls),l(S=>({...S,generalRule:{...S.generalRule,"imageRule.add":{...S.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(x=>{p.blockToolsUrls=Jt(x,p.blockToolsUrls)}),l(x=>({...x,generalRule:{...x.generalRule,"imageRule.add":{...x.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},b=(v,C,x)=>{r(!n),i(v),s(x)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(da,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:h,type:"excludeMatches",urlValue:a,index:o}):null]}),d(qa,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:b})]})}function lE({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=Se(me);return d("div",{class:`nav ${t}`,style:n,children:[d(be,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function cE(){try{if(X())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Ii,n)}catch{}}async function dE(){await cE();let e=document.getElementById("mount");e&&(async()=>{yp(AS);let t=await Je();if(location.href.includes(bs)&&t.joinJobs){let r=Dy.replace("{jobs}",t.joinJobs.map(a=>` \u2022 ${a}`).join(` -`))}t.debug&&k.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Ne("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),Vi(document,n),Ca(d(Ji,{lang:t.interfaceLanguage,children:d(yV,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function yV(e){let t=_o(),{t:n,lang:r}=O(),a=nr(),{config:i}=e,{beta:o}=i,s=tr(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:ci(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];vV(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;He()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(Im,{}),"#services":d(f1,{}),"#ai":d(y1,{}),"#mouse_hover":d(l2,{}),"#input":d(v1,{}),"#shortcuts":d(d2,{}),"#floating":d(c2,{}),"#import_export":d(e1,{}),"#about":d(x1,{}),"#advanced":d(S1,{}),"#developer":d(C1,{}),"#subtitle":d(E1,{}),"#manga":d(p2,{}),"#contact":d(T1,{}),"#download_config":d(m2,{})};return u||delete m["#manga"],d(at,{children:[d(g2,{config:i}),d(le,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),lr(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:hl,onClick:g=>{g.preventDefault(),lr(hl)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),lr(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:_f,onClick:g=>{g.preventDefault(),lr(_f)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${F}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(z4,{value:t,defaultCase:d(Im,{}),cases:m})})]})})]})}function vV(e){let t=Ce(0),n=Ce(0),r=Ce(),a=ue(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await N5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);q(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),q(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}dE();})(); + `),c].join(""),g=li(u,!0);return d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(ga,{image:rn("images/popup-manga-guide.png"),nightImage:rn("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:Ff})+m,children:d("div",{class:"px-6",children:d(oE,{config:u.config,ctx:u})})}),d(oE,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:Ff})+"
"+m}}),d(bV,{ctx:u})]})})}function oE({config:e,ctx:t,className:n}){let[r,a,i,o,s]=Te(me),u=si(t,r),{t:l}=O(),c=ue((g,p)=>l("floatBallOptions."+g,p),[]),m=ue(g=>{t&&a(p=>ji({...p},g))},[t,a]);return u?d(le,{children:d("div",{class:`nav ${n}`,children:[d(be,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function bV({ctx:e}){let{t}=O();return li(e,!0)?d(le,{children:[d(ga,{image:rn("images/image_tansalte_intro-qkKVLH.png"),nightImage:rn("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:Bf}),children:d("div",{class:"px-6",children:[d(sE,{ctx:e}),d(uE,{ctx:e,styles:{paddingTop:0}})]})}),d(sE,{ctx:e,className:"image-tools-enable"}),d(uE,{ctx:e,className:"image-tools-enable"}),d(yV,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:Bf})}})]}):null}function sE({ctx:e,className:t}){let[n,r,a,i,o]=Te(me),s=e.rule.imageRule,{t:u}=O();return d(le,{children:d("div",{class:`nav ${t}`,children:[d(be,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function yV({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=Te(me),p=e.config.generalRule.imageRule||{};q(()=>{Kt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},b=(v,C,x,w)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=Hn(v,p.blockToolsUrls),l(T=>({...T,generalRule:{...T.generalRule,"imageRule.add":{...T.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(x=>{p.blockToolsUrls=Jt(x,p.blockToolsUrls)}),l(x=>({...x,generalRule:{...x.generalRule,"imageRule.add":{...x.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},h=(v,C,x)=>{r(!n),i(v),s(x)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(ca,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:b,type:"excludeMatches",urlValue:a,index:o}):null]}),d(Ha,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:h})]})}function uE({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=Te(me);return d("div",{class:`nav ${t}`,style:n,children:[d(be,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function lE(){try{if(X())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Ii,n)}catch{}}async function cE(){await lE();let e=document.getElementById("mount");e&&(async()=>{bp(wT);let t=await Qe();if(location.href.includes(bs)&&t.joinJobs){let r=Ay.replace("{jobs}",t.joinJobs.map(a=>` \u2022 ${a}`).join(` +`))}t.debug&&k.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Be("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),Vi(document,n),va(d(Ji,{lang:t.interfaceLanguage,children:d(vV,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function vV(e){let t=_o(),{t:n,lang:r}=O(),a=tr(),{config:i}=e,{beta:o}=i,s=er(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:li(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];CV(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;He()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(Rm,{}),"#services":d(f1,{}),"#ai":d(y1,{}),"#mouse_hover":d(s2,{}),"#input":d(v1,{}),"#shortcuts":d(l2,{}),"#floating":d(u2,{}),"#import_export":d(e1,{}),"#about":d(x1,{}),"#advanced":d(T1,{}),"#developer":d(C1,{}),"#subtitle":d(E1,{}),"#manga":d(m2,{}),"#contact":d(S1,{}),"#download_config":d(c2,{})};return u||delete m["#manga"],d(it,{children:[d(d2,{config:i}),d(le,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),cr(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:fl,onClick:g=>{g.preventDefault(),cr(fl)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),cr(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:_f,onClick:g=>{g.preventDefault(),cr(_f)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${F}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(z4,{value:t,defaultCase:d(Rm,{}),cases:m})})]})})]})}function CV(e){let t=Ce(0),n=Ce(0),r=Ce(),a=ue(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await _5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);q(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),q(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}cE();})(); /*! Bundled license information: js-yaml/dist/js-yaml.mjs: diff --git a/dist/firefox/popup.js b/dist/firefox/popup.js index 7fa30fe..84cf283 100644 --- a/dist/firefox/popup.js +++ b/dist/firefox/popup.js @@ -1,4 +1,4 @@ -(()=>{var HC=Object.defineProperty;var qC=(e,t)=>{for(var n in t)HC(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var UC=Object.defineProperty;var HC=(e,t)=>{for(var n in t)UC(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,23 +5447,23 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var WC=Object.create,Kd=Object.defineProperty,GC=Object.getOwnPropertyDescriptor,O4=Object.getOwnPropertyNames,VC=Object.getPrototypeOf,KC=Object.prototype.hasOwnProperty,YC=(e,t)=>function(){return t||(0,e[O4(e)[0]])((t={exports:{}}).exports,t),t.exports},QC=(e,t)=>{for(var n in t)Kd(e,n,{get:t[n],enumerable:!0})},Vd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of O4(t))!KC.call(e,a)&&a!==n&&Kd(e,a,{get:()=>t[a],enumerable:!(r=GC(t,a))||r.enumerable});return e},JC=(e,t,n)=>(Vd(e,t,"default"),n&&Vd(n,t,"default")),N4=(e,t,n)=>(n=e!=null?WC(VC(e)):{},Vd(t||!e||!e.__esModule?Kd(n,"default",{value:e,enumerable:!0}):n,e)),j4=YC({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(T,A=void 0){super(A),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,T)=>(...A)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):T.singleCallbackArg||A.length<=1&&T.singleCallbackArg!==!1?C.resolve(A[0]):C.resolve(A)},c=C=>C==1?"argument":"arguments",d=(C,T)=>function(k,...R){if(R.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${R.length}`);return new Promise((F,P)=>{if(T.fallbackToNoCallback)try{k[C](...R,l({resolve:F,reject:P},T))}catch{k[C](...R),T.fallbackToNoCallback=!1,T.noCallback=!0,F()}else T.noCallback?(k[C](...R),F()):k[C](...R,l({resolve:F,reject:P},T))})},m=(C,T,A)=>new Proxy(T,{apply(k,R,F){return A.call(R,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,T={},A={})=>{let k=Object.create(null),R={has(P,I){return I in C||I in k},get(P,I,L){if(I in k)return k[I];if(!(I in C))return;let _=C[I];if(typeof _=="function")if(typeof T[I]=="function")_=m(C,C[I],T[I]);else if(p(A,I)){let O=d(I,A[I]);_=m(C,C[I],O)}else _=_.bind(C);else if(typeof _=="object"&&_!==null&&(p(T,I)||p(A,I)))_=g(_,T[I],A[I]);else if(p(A,"*"))_=g(_,T[I],A["*"]);else return Object.defineProperty(k,I,{configurable:!0,enumerable:!0,get(){return C[I]},set(O){C[I]=O}}),_;return k[I]=_,_},set(P,I,L,_){return I in k?k[I]=L:C[I]=L,!0},defineProperty(P,I,L){return Reflect.defineProperty(k,I,L)},deleteProperty(P,I){return Reflect.deleteProperty(k,I)}},F=Object.create(C);return new Proxy(F,R)},h=C=>({addListener(T,A,...k){T.addListener(C.get(A),...k)},hasListener(T,A){return T.hasListener(C.get(A))},removeListener(T,A){T.removeListener(C.get(A))}}),b=new s(C=>typeof C!="function"?C:function(A){let k=g(A,{},{getContent:{minArgs:0,maxArgs:0}});C(k)}),f=new s(C=>typeof C!="function"?C:function(A,k,R){let F=!1,P,I=new Promise(z=>{P=function(V){F=!0,z(V)}}),L;try{L=C(A,k,P)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!F)return!1;let O=z=>{z.then(V=>{R(V)},V=>{let ie;V&&(V instanceof Error||typeof V.message=="string")?ie=V.message:ie="An unexpected error occurred",R({__mozWebExtensionPolyfillReject__:!0,message:ie})}).catch(V=>{})};return O(_?L:I),!0}),y=({reject:C,resolve:T},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?T():C(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?C(new Error(A.message)):T(A)},v=(C,T,A,...k)=>{if(k.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${c(T.maxArgs)} for ${C}(), got ${k.length}`);return new Promise((R,F)=>{let P=y.bind(null,{resolve:R,reject:F});k.push(P),A.sendMessage(...k)})},S={devtools:{network:{onRequestFinished:h(b)}},runtime:{onMessage:h(f),onMessageExternal:h(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),U4={};QC(U4,{default:()=>ul});var ZC=N4(j4());JC(U4,N4(j4()));var{default:_4,...XC}=ZC,ul=_4!==void 0?_4:XC;globalThis.immersiveTranslateBrowserAPI=ul;var pl,Re,G4,$C,xs,H4,V4,cl={},K4=[],ew=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Fa(e,t){for(var n in t)e[n]=t[n];return e}function Y4(e){var t=e.parentNode;t&&t.removeChild(e)}function vs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?pl.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return ll(e,o,r,a,null)}function ll(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++G4};return a==null&&Re.vnode!=null&&Re.vnode(i),i}function Gt(e){return e.children}function xi(e,t){this.props=e,this.context=t}function eo(e,t){if(t==null)return e.__?eo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?ll(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:gl}),n.__[e]}function G(e){return Ss=1,aw(c3,e)}function aw(e,t,n){var r=Ts(no++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):c3(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Pt,!Pt.u)){Pt.u=!0;var a=Pt.shouldComponentUpdate;Pt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function te(e,t){var n=Ts(no++,3);!Re.__s&&Xd(n.__H,t)&&(n.__=e,n.i=t,Pt.__H.__h.push(n))}function Cs(e,t){var n=Ts(no++,4);!Re.__s&&Xd(n.__H,t)&&(n.__=e,n.i=t,Pt.__h.push(n))}function Ce(e){return Ss=5,ye(function(){return{current:e}},[])}function ye(e,t){var n=Ts(no++,7);return Xd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ae(e,t){return Ss=8,ye(function(){return e},t)}function hl(e){var t=Pt.context[e.__c],n=Ts(no++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pt)),t.props.value):e.__}function iw(){for(var e;e=l3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fl),e.__H.__h.forEach(Zd),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Pt=null,r3&&r3(e)},Re.__r=function(e){a3&&a3(e),no=0;var t=(Pt=e.__c).__H;t&&(Jd===Pt?(t.__h=[],Pt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=gl,n.__N=n.i=void 0})):(t.__h.forEach(fl),t.__h.forEach(Zd),t.__h=[])),Jd=Pt},Re.diffed=function(e){i3&&i3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(l3.push(t)!==1&&n3===Re.requestAnimationFrame||((n3=Re.requestAnimationFrame)||ow)(iw)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==gl&&(n.__=n.__V),n.i=void 0,n.__V=gl})),Jd=Pt=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(fl),n.__h=n.__h.filter(function(r){return!r.__||Zd(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Re.__e(r,n.__v)}}),o3&&o3(e,t)},Re.unmount=function(e){s3&&s3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{fl(r)}catch(a){t=a}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var u3=typeof requestAnimationFrame=="function";function ow(e){var t,n=function(){clearTimeout(r),u3&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);u3&&(t=requestAnimationFrame(n))}function fl(e){var t=Pt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pt=t}function Zd(e){var t=Pt;e.__c=e.__(),Pt=t}function Xd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function c3(e,t){return typeof t=="function"?t(e):t}function bl(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}function De(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var be=De();function ne(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):be.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function da(){return be.PROD==="1"}function $d(){return be.PROD_API==="1"}function d3(){return be.HAS_CSP_ERROR=="1"}function ct(){if(be.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function yl(){return typeof Deno<"u"}var HN=De().PROD==="1",ro=De().PROD!=="1";function xl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function m3(){return be.IMMERSIVE_TRANSLATE_JSSDK==="1"}var em=/iPhone/i,p3=/iPod/i,g3=/iPad/i,f3=/\biOS-universal(?:.+)Mac\b/i,tm=/\bAndroid(?:.+)Mobile\b/i,h3=/Android/i,ao=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,vl=/Silk/i,ma=/Windows Phone/i,b3=/\bWindows(?:.+)ARM\b/i,y3=/BlackBerry/i,x3=/BB10/i,v3=/Opera Mini/i,S3=/\b(CriOS|Chrome)(?:.+)Mobile/i,T3=/Mobile(?:.+)Firefox\b/i,C3=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function sw(e){return t=>t.test(e)}function We(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=sw(n),i={apple:{phone:a(em)&&!a(ma),ipod:a(p3),tablet:!a(em)&&(a(g3)||C3(t))&&!a(ma),universal:a(f3),device:(a(em)||a(p3)||a(g3)||a(f3)||C3(t))&&!a(ma)},amazon:{phone:a(ao),tablet:!a(ao)&&a(vl),device:a(ao)||a(vl)},android:{phone:!a(ma)&&a(ao)||!a(ma)&&a(tm),tablet:!a(ma)&&!a(ao)&&!a(tm)&&(a(vl)||a(h3)),device:!a(ma)&&(a(ao)||a(vl)||a(tm)||a(h3))||a(/\bokhttp\b/i)},windows:{phone:a(ma),tablet:a(b3),device:a(ma)||a(b3)},other:{blackberry:a(y3),blackberry10:a(x3),opera:a(v3),firefox:a(T3),chrome:a(S3),device:a(y3)||a(x3)||a(v3)||a(T3)||a(S3)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var nm="DENO",Sl="CHROME",Tl="FIREFOX";function w3(e){let t=Sl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Tl:/deno/i.test(n)&&(t=nm)}catch{}return e===Sl&&t===Sl||e===Tl&&t===Tl||e===nm&&t===nm}function E3(){return w3(Sl)}function A3(){return typeof Deno<"u"}function kn(){return De().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:w3(Tl)}function Yn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ws(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var k3={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},D3={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:k3,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:k3,query:()=>{},sendMessage:()=>{}}};var $;A3()?$=D3:$=globalThis.immersiveTranslateBrowserAPI;var Y="immersiveTranslate",vi="Immersive Translate",B="immersive-translate",wl="imt";var F3="pdf/index.html";var $t="immersivetranslate.com",uw=`https://config.${$t}/`,ij=`https://app.${$t}/`,oe=da()||$d()?`https://${$t}/`:`https://test.${$t}/`,Cl=`https://dash.${$t}/`,tt=da()||$d()?`https://api2.${$t}/`:`https://test-api2.${$t}/`,B3=`https://github.com/${B}/${B}/`,I3=`https://s.${$t}/`,oj=`https://onboarding.${$t}/`,_3=Y+"DeeplGlobalState",rm=Y+"BingGlobalState",am=Y+"YandexGlobalState",im=Y+"BaiduQianfanGlobalConfigStorageKey",O3=Y+"SiliconCloudGlobalConfigStorageKey",N3=Y+"ZhipuGlobalConfigStorageKey";var om=Y+"GoogleAccessToken",j3=Y+"AuthFlow",U3=B+"-config-latest.json",lw=Y+"AuthState",El=Y+"IframeMessage",sj=Y+"WaitForRateLimit",H3=Y+"DocumentMessageAsk",It=Y+"DocumentMessageTellThirdParty",mn=Y+"showError",Si=Y+"showModal",Al=Y+"showToast",q3=Y+"DocumentMessageThirdPartyTell",z3=Y+"DocumentMessageEventUpload",uj=Y+"DocumentMessageTypeStopJsSDK",cw=Y+"DocumentMessageHandler",kl=Y+"DocumentSetFloatBallActive",Dl=`${Y}Share`,Pl=`${Y}ShowFloatBallGuide`,io=Y+"DocumentMessageTempEnableSubtitleChanged",Es=`${Y}ToggleMouseHoverTranslateDirectly`,W3=`${Y}ReqDraft`,G3=`${Y}ResDraft`,dw=`${Y}Container`,V3=`${Y}SpecifiedContainer`,Ll="buildinConfig",As="localConfig",sm="openOptionsPage",K3="translateMangaMenuId",um="openAboutPage";var lm="openEbookViewer",cm="openEbookBuilder";var Ti=`${Y}PageTranslatedStatus`,ks=`${Y}MangaTranslatedStatus`,lj=`${Y}PageUrlChanged`,yr=`${Y}ReceiveCommand`,Y3=Y+"LastUseMouseHoverTime",Ds=Y+"LastUseInputTime",lr=Y+"LastUseManualTranslatePageTime",Ps=`${Y}PopupReceiveMessage`,Ci=Y+"DocumentMessageEventTogglePopup",Ls=`${uw}default_config.json`,cj=`${Y}Mark`,Qn=`${Y}Root`,Q3=`${Y}Walked`,dj=`data-${B}-walked`,J3=`${Y}Paragraph`,Z3=`data-${B}-paragraph`,oo=`data-${B}-translation-element-mark`,X3=`${Y}TranslationElementMark`,mj=`${Y}TranslatedMark`,dm=`${B}-input-injected-css`,$3=`${Y}LoadingId`,mm=`data-${B}-loading-id`,e1=`${Y}ErrorId`,Ml=`data-${B}-error-id`,mw=`${Y}AtomicBlockMark`,t1=`${Y}ExcludeMark`,pj=`data-${B}-exclude-mark`,pw=`${Y}StayOriginalMark`,gj=`${Y}PreWhitespaceMark`,Rl=`${Y}InlineMark`,n1=`${Y}BlockMark`,fj=`${Y}Left`,hj=`${Y}Right`,bj=`${Y}Width`,yj=`${Y}Height`,xj=`${Y}Top`,vj=`${Y}FontSize`,r1="lastRunTime";var Sj=`${Y}GlobalStyleMark`,so=["@","#"],Fl=" --- ",a1=` -`,Lt=`${B}-target-wrapper`,Tj=`${B}-pdf-target-container`,Bl=`${B}-target-inner`,Cj=`${B}-source-wrapper`,pm=`${B}-target-translation-block-wrapper`,wj=`${B}-root-translation-theme`,uo=`${Y}RootTranslationTheme`,i1=`${B}-target-translation-vertical-block-wrapper`,Ej=`${B}-target-translation-pdf-block-wrapper`,o1=`${B}-target-translation-pre-whitespace`,gm=`${B}-target-translation-inline-wrapper`;var s1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var u1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],l1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Cl,Cl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ba="zh-CN",Aj=oe+"docs/communities/",kj=B3+"issues/1809",Dj=B3+"issues/1179",Il={type:Y+"ChildFrameToRootFrameIdentifier"},fm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ms=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],c1=["ctrl","alt","shift","cmd","command","option","control"];var _l=da()?Cl+"#general":"http://localhost:8000/dist/userscript/options/#general",hm="user_from_plugin",mt="user_info",Ol=oe+"accounts/login?from=plugin",d1=Cl+"#general",Pj=oe+"accounts/login?from=plugin&return_url="+encodeURIComponent(d1),m1=Ol+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",p1=Ol+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Rs=oe+"profile/",Fs=oe+"auth/pricing/",Dn=oe+"pricing/",gw=oe+"download/",fw=oe+"topup?type=open_ai&",hw=oe+"topup?type=deepl&",g1=oe+"topup?type=comics&",bw=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",f1=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Lj=gw+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",Mj=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Nl=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",bm=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",Rj=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",h1=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",b1=fw+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",y1=hw+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",x1=oe+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",yw=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",ym=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Fj=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Bj=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",Ij=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",_j=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=",v1=oe+"docs/usage/",Oj=oe+"docs/communities/",Bs=De().TRANSLATE_FILE_URL,Nj=Bs+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",S1=Bs+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",T1=`${Bs}download-subtitle/`,C1=`${Bs}pdf-pro/`,w1=`${Bs}text/`,wi=["deepl","openai","gemini","claude"],xw="G-BHWL0KMJB8",vw="7pr-olTJR6GKAjIW48UD0Q",P3="G-MKMD9LWFTR",L3="sitc4WmvShWYwfU0dANM3Q",M3="G-V5H2F5MJFJ",R3="UBjpGOLISEaY5LVXNj3WvQ";function jl(){return m3()?[`https://www.google-analytics.com/mp/collect?measurement_id=${xw}&api_secret=${vw}`]:da?[`https://www.google-analytics.com/mp/collect?measurement_id=${P3}&api_secret=${L3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${M3}&api_secret=${R3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${P3}&api_secret=${L3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${M3}&api_secret=${R3}`]}var Is=`https://analytics.${$t}/collect`,jj=`${oe}activities/components/image-pro`;var E1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",A1="0VmM83i2D1ICuYBf",Ul=`[${wl}-ctx-divider]`,Hl=`${wl}_context_preview`;function k1(e){let t=$.runtime.getURL(F3),n=new URL(t);return e&&(e.startsWith("http")||!kn())&&n.searchParams.set("file",e),n.href}var Ei=Y+"CacheKey_";function Ai(e,t){let n=Ei+e;return $.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Sw(){let e=$.storage.local.refresh;e&&e()}function xm(e,t){let n=Ei+e;return $.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ei)).filter(r=>r!==Ei+mt);if(n.length>0)return $.storage.local.remove(n)}}var pt={get:Ai,set:ki,getExpired:xm,setExpired:vm,remove:Sm,clear:Tm,refresh:Sw};function ht(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function D1(e){if(e){let t=new Date(e.createTime),n=Tw(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function Tw(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function _s(e){if(e?.isPro)return!0;let t=await pt.get(mt,null);return ht(t)}function lo(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Cm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function ql(e,t){let n=lo(),r=setTimeout(()=>n.reject(new Cm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function ot(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var P1=class{#e=0;#t=[];#n=[];#r=lo();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tQw,bgBlue:()=>$w,bgBrightBlack:()=>rE,bgBrightBlue:()=>sE,bgBrightCyan:()=>lE,bgBrightGreen:()=>iE,bgBrightMagenta:()=>uE,bgBrightRed:()=>aE,bgBrightWhite:()=>cE,bgBrightYellow:()=>oE,bgCyan:()=>tE,bgGreen:()=>Zw,bgMagenta:()=>eE,bgRed:()=>Jw,bgRgb24:()=>gE,bgRgb8:()=>mE,bgWhite:()=>nE,bgYellow:()=>Xw,black:()=>Fw,blue:()=>Ow,bold:()=>Aw,brightBlack:()=>R1,brightBlue:()=>Gw,brightCyan:()=>Kw,brightGreen:()=>zw,brightMagenta:()=>Vw,brightRed:()=>qw,brightWhite:()=>Yw,brightYellow:()=>Ww,cyan:()=>jw,dim:()=>kw,getColorEnabled:()=>ww,gray:()=>Hw,green:()=>Iw,hidden:()=>Mw,inverse:()=>Lw,italic:()=>Dw,magenta:()=>Nw,red:()=>Bw,reset:()=>Ew,rgb24:()=>pE,rgb8:()=>dE,setColorEnabled:()=>Cw,strikethrough:()=>Rw,stripColor:()=>hE,underline:()=>Pw,white:()=>Uw,yellow:()=>_w});var{Deno:L1}=globalThis,M1=typeof L1?.noColor=="boolean"?L1.noColor:!0,wm=!M1;function Cw(e){M1||(wm=e)}function ww(){return wm}function Le(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Me(e,t){return wm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Ew(e){return Me(e,Le([0],0))}function Aw(e){return Me(e,Le([1],22))}function kw(e){return Me(e,Le([2],22))}function Dw(e){return Me(e,Le([3],23))}function Pw(e){return Me(e,Le([4],24))}function Lw(e){return Me(e,Le([7],27))}function Mw(e){return Me(e,Le([8],28))}function Rw(e){return Me(e,Le([9],29))}function Fw(e){return Me(e,Le([30],39))}function Bw(e){return Me(e,Le([31],39))}function Iw(e){return Me(e,Le([32],39))}function _w(e){return Me(e,Le([33],39))}function Ow(e){return Me(e,Le([34],39))}function Nw(e){return Me(e,Le([35],39))}function jw(e){return Me(e,Le([36],39))}function Uw(e){return Me(e,Le([37],39))}function Hw(e){return R1(e)}function R1(e){return Me(e,Le([90],39))}function qw(e){return Me(e,Le([91],39))}function zw(e){return Me(e,Le([92],39))}function Ww(e){return Me(e,Le([93],39))}function Gw(e){return Me(e,Le([94],39))}function Vw(e){return Me(e,Le([95],39))}function Kw(e){return Me(e,Le([96],39))}function Yw(e){return Me(e,Le([97],39))}function Qw(e){return Me(e,Le([40],49))}function Jw(e){return Me(e,Le([41],49))}function Zw(e){return Me(e,Le([42],49))}function Xw(e){return Me(e,Le([43],49))}function $w(e){return Me(e,Le([44],49))}function eE(e){return Me(e,Le([45],49))}function tE(e){return Me(e,Le([46],49))}function nE(e){return Me(e,Le([47],49))}function rE(e){return Me(e,Le([100],49))}function aE(e){return Me(e,Le([101],49))}function iE(e){return Me(e,Le([102],49))}function oE(e){return Me(e,Le([103],49))}function sE(e){return Me(e,Le([104],49))}function uE(e){return Me(e,Le([105],49))}function lE(e){return Me(e,Le([106],49))}function cE(e){return Me(e,Le([107],49))}function Ia(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function dE(e,t){return Me(e,Le([38,5,Ia(t)],39))}function mE(e,t){return Me(e,Le([48,5,Ia(t)],49))}function pE(e,t){return typeof t=="number"?Me(e,Le([38,2,t>>16&255,t>>8&255,t&255],39)):Me(e,Le([38,2,Ia(t.r),Ia(t.g),Ia(t.b)],39))}function gE(e,t){return typeof t=="number"?Me(e,Le([48,2,t>>16&255,t>>8&255,t&255],49)):Me(e,Le([48,2,Ia(t.r),Ia(t.g),Ia(t.b)],49))}var fE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function hE(e){return e.replace(fE,"")}var Em=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},bE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Am(e,t){let n={...bE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Em(a,n.maxAttempts)}var pa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function km(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=pa[(t[r-2]&3)<<4|t[r-1]>>4],n+=pa[(t[r-1]&15)<<2|t[r]>>6],n+=pa[t[r]&63];return r===a+1&&(n+=pa[t[r-2]>>2],n+=pa[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=pa[t[r-2]>>2],n+=pa[(t[r-2]&3)<<4|t[r-1]>>4],n+=pa[(t[r-1]&15)<<2],n+="="),n}var yE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,xE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,vE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Dm={Space_Separator:yE,ID_Start:xE,ID_Continue:vE},_t={isSpaceSeparator(e){return typeof e=="string"&&Dm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Dm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Dm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Lm,Pn,fa,Wl,_a,xr,en,Fm,Ns,SE=function(e,t){Lm=String(e),Pn="start",fa=[],Wl=0,_a=1,xr=0,en=void 0,Fm=void 0,Ns=void 0;do en=TE(),EE[Pn]();while(en.type!=="eof");return typeof t=="function"?Mm({"":Ns},"",t):Ns};function Mm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ha();if(!_t.isHexDigit(n))throw bt(H());e+=H()}return String.fromCodePoint(parseInt(e,16))}var EE={start(){if(en.type==="eof")throw Pi();Pm()},beforePropertyName(){switch(en.type){case"identifier":case"string":Fm=en.value,Pn="afterPropertyName";return;case"punctuator":zl();return;case"eof":throw Pi()}},afterPropertyName(){if(en.type==="eof")throw Pi();Pn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw Pi();Pm()},beforeArrayValue(){if(en.type==="eof")throw Pi();if(en.type==="punctuator"&&en.value==="]"){zl();return}Pm()},afterPropertyValue(){if(en.type==="eof")throw Pi();switch(en.value){case",":Pn="beforePropertyName";return;case"}":zl()}},afterArrayValue(){if(en.type==="eof")throw Pi();switch(en.value){case",":Pn="beforeArrayValue";return;case"]":zl()}},end(){}};function Pm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(Ns===void 0)Ns=e;else{let t=fa[fa.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Fm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")fa.push(e),Array.isArray(e)?Pn="beforeArrayValue":Pn="beforePropertyName";else{let t=fa[fa.length-1];t==null?Pn="end":Array.isArray(t)?Pn="afterArrayValue":Pn="afterPropertyValue"}}function zl(){fa.pop();let e=fa[fa.length-1];e==null?Pn="end":Array.isArray(e)?Pn="afterArrayValue":Pn="afterPropertyValue"}function bt(e){return Bm(e===void 0?`JSON5: invalid end of input at ${_a}:${xr}`:`JSON5: invalid character '${AE(e)}' at ${_a}:${xr}`)}function Pi(){return Bm(`JSON5: invalid end of input at ${_a}:${xr}`)}function F1(){return xr-=5,Bm(`JSON5: invalid identifier character at ${_a}:${xr}`)}function AE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Bm(e){let t=new SyntaxError(e);return t.lineNumber=_a,t.columnNumber=xr,t}var kE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vh[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let v of b){let S=l(v,g);if(S!==void 0){let w=m(v)+":";s!==""&&(w+=" "),w+=S,f.push(w)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let S=`, -`+a;v=f.join(S),y=`{ +}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var zC=Object.create,Vd=Object.defineProperty,WC=Object.getOwnPropertyDescriptor,I4=Object.getOwnPropertyNames,GC=Object.getPrototypeOf,VC=Object.prototype.hasOwnProperty,KC=(e,t)=>function(){return t||(0,e[I4(e)[0]])((t={exports:{}}).exports,t),t.exports},YC=(e,t)=>{for(var n in t)Vd(e,n,{get:t[n],enumerable:!0})},Gd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of I4(t))!VC.call(e,a)&&a!==n&&Vd(e,a,{get:()=>t[a],enumerable:!(r=WC(t,a))||r.enumerable});return e},QC=(e,t,n)=>(Gd(e,t,"default"),n&&Gd(n,t,"default")),_4=(e,t,n)=>(n=e!=null?zC(GC(e)):{},Gd(t||!e||!e.__esModule?Vd(n,"default",{value:e,enumerable:!0}):n,e)),O4=KC({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(S,A=void 0){super(A),this.createItem=S}get(S){return this.has(S)||this.set(S,this.createItem(S)),super.get(S)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,S)=>(...A)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):S.singleCallbackArg||A.length<=1&&S.singleCallbackArg!==!1?C.resolve(A[0]):C.resolve(A)},c=C=>C==1?"argument":"arguments",d=(C,S)=>function(k,...R){if(R.lengthS.maxArgs)throw new Error(`Expected at most ${S.maxArgs} ${c(S.maxArgs)} for ${C}(), got ${R.length}`);return new Promise((F,P)=>{if(S.fallbackToNoCallback)try{k[C](...R,l({resolve:F,reject:P},S))}catch{k[C](...R),S.fallbackToNoCallback=!1,S.noCallback=!0,F()}else S.noCallback?(k[C](...R),F()):k[C](...R,l({resolve:F,reject:P},S))})},m=(C,S,A)=>new Proxy(S,{apply(k,R,F){return A.call(R,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,S={},A={})=>{let k=Object.create(null),R={has(P,I){return I in C||I in k},get(P,I,L){if(I in k)return k[I];if(!(I in C))return;let _=C[I];if(typeof _=="function")if(typeof S[I]=="function")_=m(C,C[I],S[I]);else if(p(A,I)){let O=d(I,A[I]);_=m(C,C[I],O)}else _=_.bind(C);else if(typeof _=="object"&&_!==null&&(p(S,I)||p(A,I)))_=g(_,S[I],A[I]);else if(p(A,"*"))_=g(_,S[I],A["*"]);else return Object.defineProperty(k,I,{configurable:!0,enumerable:!0,get(){return C[I]},set(O){C[I]=O}}),_;return k[I]=_,_},set(P,I,L,_){return I in k?k[I]=L:C[I]=L,!0},defineProperty(P,I,L){return Reflect.defineProperty(k,I,L)},deleteProperty(P,I){return Reflect.deleteProperty(k,I)}},F=Object.create(C);return new Proxy(F,R)},b=C=>({addListener(S,A,...k){S.addListener(C.get(A),...k)},hasListener(S,A){return S.hasListener(C.get(A))},removeListener(S,A){S.removeListener(C.get(A))}}),h=new s(C=>typeof C!="function"?C:function(A){let k=g(A,{},{getContent:{minArgs:0,maxArgs:0}});C(k)}),f=new s(C=>typeof C!="function"?C:function(A,k,R){let F=!1,P,I=new Promise(z=>{P=function(V){F=!0,z(V)}}),L;try{L=C(A,k,P)}catch(z){L=Promise.reject(z)}let _=L!==!0&&u(L);if(L!==!0&&!_&&!F)return!1;let O=z=>{z.then(V=>{R(V)},V=>{let ie;V&&(V instanceof Error||typeof V.message=="string")?ie=V.message:ie="An unexpected error occurred",R({__mozWebExtensionPolyfillReject__:!0,message:ie})}).catch(V=>{})};return O(_?L:I),!0}),y=({reject:C,resolve:S},A)=>{i.runtime.lastError?i.runtime.lastError.message===r?S():C(new Error(i.runtime.lastError.message)):A&&A.__mozWebExtensionPolyfillReject__?C(new Error(A.message)):S(A)},v=(C,S,A,...k)=>{if(k.lengthS.maxArgs)throw new Error(`Expected at most ${S.maxArgs} ${c(S.maxArgs)} for ${C}(), got ${k.length}`);return new Promise((R,F)=>{let P=y.bind(null,{resolve:R,reject:F});k.push(P),A.sendMessage(...k)})},T={devtools:{network:{onRequestFinished:b(h)}},runtime:{onMessage:b(f),onMessageExternal:b(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},w={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":w},services:{"*":w},websites:{"*":w}},g(i,T,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),N4={};YC(N4,{default:()=>sl});var JC=_4(O4());QC(N4,_4(O4()));var{default:B4,...ZC}=JC,sl=B4!==void 0?B4:ZC;globalThis.immersiveTranslateBrowserAPI=sl;var ml,Re,z4,XC,xs,j4,W4,ll={},G4=[],$C=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ra(e,t){for(var n in t)e[n]=t[n];return e}function V4(e){var t=e.parentNode;t&&t.removeChild(e)}function vs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?ml.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return ul(e,o,r,a,null)}function ul(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++z4};return a==null&&Re.vnode!=null&&Re.vnode(i),i}function Gt(e){return e.children}function yi(e,t){this.props=e,this.context=t}function eo(e,t){if(t==null)return e.__?eo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?ul(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:pl}),n.__[e]}function G(e){return Ts=1,rw(u3,e)}function rw(e,t,n){var r=Ss(no++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):u3(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Pt,!Pt.u)){Pt.u=!0;var a=Pt.shouldComponentUpdate;Pt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function te(e,t){var n=Ss(no++,3);!Re.__s&&Zd(n.__H,t)&&(n.__=e,n.i=t,Pt.__H.__h.push(n))}function Cs(e,t){var n=Ss(no++,4);!Re.__s&&Zd(n.__H,t)&&(n.__=e,n.i=t,Pt.__h.push(n))}function Ce(e){return Ts=5,ye(function(){return{current:e}},[])}function ye(e,t){var n=Ss(no++,7);return Zd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return Ts=8,ye(function(){return e},t)}function fl(e){var t=Pt.context[e.__c],n=Ss(no++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pt)),t.props.value):e.__}function aw(){for(var e;e=s3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(gl),e.__H.__h.forEach(Jd),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Pt=null,t3&&t3(e)},Re.__r=function(e){n3&&n3(e),no=0;var t=(Pt=e.__c).__H;t&&(Qd===Pt?(t.__h=[],Pt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=pl,n.__N=n.i=void 0})):(t.__h.forEach(gl),t.__h.forEach(Jd),t.__h=[])),Qd=Pt},Re.diffed=function(e){r3&&r3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(s3.push(t)!==1&&e3===Re.requestAnimationFrame||((e3=Re.requestAnimationFrame)||iw)(aw)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==pl&&(n.__=n.__V),n.i=void 0,n.__V=pl})),Qd=Pt=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(gl),n.__h=n.__h.filter(function(r){return!r.__||Jd(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Re.__e(r,n.__v)}}),a3&&a3(e,t)},Re.unmount=function(e){i3&&i3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{gl(r)}catch(a){t=a}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var o3=typeof requestAnimationFrame=="function";function iw(e){var t,n=function(){clearTimeout(r),o3&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);o3&&(t=requestAnimationFrame(n))}function gl(e){var t=Pt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pt=t}function Jd(e){var t=Pt;e.__c=e.__(),Pt=t}function Zd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function u3(e,t){return typeof t=="function"?t(e):t}function hl(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}function De(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var be=De();function ne(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):be.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function la(){return be.PROD==="1"}function Xd(){return be.PROD_API==="1"}function l3(){return be.HAS_CSP_ERROR=="1"}function lt(){if(be.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function bl(){return typeof Deno<"u"}var qN=De().PROD==="1",ro=De().PROD!=="1";function yl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function c3(){return be.IMMERSIVE_TRANSLATE_JSSDK==="1"}var $d=/iPhone/i,d3=/iPod/i,m3=/iPad/i,p3=/\biOS-universal(?:.+)Mac\b/i,em=/\bAndroid(?:.+)Mobile\b/i,g3=/Android/i,ao=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,xl=/Silk/i,ca=/Windows Phone/i,f3=/\bWindows(?:.+)ARM\b/i,h3=/BlackBerry/i,b3=/BB10/i,y3=/Opera Mini/i,x3=/\b(CriOS|Chrome)(?:.+)Mobile/i,v3=/Mobile(?:.+)Firefox\b/i,T3=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function ow(e){return t=>t.test(e)}function Ge(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=ow(n),i={apple:{phone:a($d)&&!a(ca),ipod:a(d3),tablet:!a($d)&&(a(m3)||T3(t))&&!a(ca),universal:a(p3),device:(a($d)||a(d3)||a(m3)||a(p3)||T3(t))&&!a(ca)},amazon:{phone:a(ao),tablet:!a(ao)&&a(xl),device:a(ao)||a(xl)},android:{phone:!a(ca)&&a(ao)||!a(ca)&&a(em),tablet:!a(ca)&&!a(ao)&&!a(em)&&(a(xl)||a(g3)),device:!a(ca)&&(a(ao)||a(xl)||a(em)||a(g3))||a(/\bokhttp\b/i)},windows:{phone:a(ca),tablet:a(f3),device:a(ca)||a(f3)},other:{blackberry:a(h3),blackberry10:a(b3),opera:a(y3),firefox:a(v3),chrome:a(x3),device:a(h3)||a(b3)||a(y3)||a(v3)||a(x3)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var tm="DENO",vl="CHROME",Tl="FIREFOX";function S3(e){let t=vl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Tl:/deno/i.test(n)&&(t=tm)}catch{}return e===vl&&t===vl||e===Tl&&t===Tl||e===tm&&t===tm}function C3(){return S3(vl)}function w3(){return typeof Deno<"u"}function An(){return De().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:S3(Tl)}function Yn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ws(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var E3={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},A3={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:E3,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:E3,query:()=>{},sendMessage:()=>{}}};var $;w3()?$=A3:$=globalThis.immersiveTranslateBrowserAPI;var Y="immersiveTranslate",xi="Immersive Translate",B="immersive-translate",Cl="imt";var M3="pdf/index.html";var $t="immersivetranslate.com",sw=`https://config.${$t}/`,oj=`https://app.${$t}/`,oe=la()||Xd()?`https://${$t}/`:`https://test.${$t}/`,Sl=`https://dash.${$t}/`,tt=la()||Xd()?`https://api2.${$t}/`:`https://test-api2.${$t}/`,R3=`https://github.com/${B}/${B}/`,F3=`https://s.${$t}/`,sj=`https://onboarding.${$t}/`,B3=Y+"DeeplGlobalState",nm=Y+"BingGlobalState",rm=Y+"YandexGlobalState",am=Y+"BaiduQianfanGlobalConfigStorageKey",I3=Y+"SiliconCloudGlobalConfigStorageKey",_3=Y+"ZhipuGlobalConfigStorageKey";var im=Y+"GoogleAccessToken",O3=Y+"AuthFlow",N3=B+"-config-latest.json",uw=Y+"AuthState",wl=Y+"IframeMessage",uj=Y+"WaitForRateLimit",j3=Y+"DocumentMessageAsk",It=Y+"DocumentMessageTellThirdParty",Nn=Y+"showError",vi=Y+"showModal",El=Y+"showToast",U3=Y+"DocumentMessageThirdPartyTell",H3=Y+"DocumentMessageEventUpload",lj=Y+"DocumentMessageTypeStopJsSDK",lw=Y+"DocumentMessageHandler",Al=Y+"DocumentSetFloatBallActive",kl=`${Y}Share`,Dl=`${Y}ShowFloatBallGuide`,io=Y+"DocumentMessageTempEnableSubtitleChanged",Es=`${Y}ToggleMouseHoverTranslateDirectly`,q3=`${Y}ReqDraft`,z3=`${Y}ResDraft`,cw=`${Y}Container`,W3=`${Y}SpecifiedContainer`,Pl="buildinConfig",As="localConfig",om="openOptionsPage",G3="translateMangaMenuId",sm="openAboutPage";var um="openEbookViewer",lm="openEbookBuilder";var Ti=`${Y}PageTranslatedStatus`,ks=`${Y}MangaTranslatedStatus`,cj=`${Y}PageUrlChanged`,yr=`${Y}ReceiveCommand`,V3=Y+"LastUseMouseHoverTime",cm=Y+"LastUseInputTime",lr=Y+"LastUseManualTranslatePageTime",Ds=`${Y}PopupReceiveMessage`,Si=Y+"DocumentMessageEventTogglePopup",Ps=`${sw}default_config.json`,dj=`${Y}Mark`,Qn=`${Y}Root`,K3=`${Y}Walked`,mj=`data-${B}-walked`,Y3=`${Y}Paragraph`,Q3=`data-${B}-paragraph`,oo=`data-${B}-translation-element-mark`,J3=`${Y}TranslationElementMark`,pj=`${Y}TranslatedMark`,dm=`${B}-input-injected-css`,Z3=`${Y}LoadingId`,mm=`data-${B}-loading-id`,X3=`${Y}ErrorId`,Ll=`data-${B}-error-id`,dw=`${Y}AtomicBlockMark`,$3=`${Y}ExcludeMark`,gj=`data-${B}-exclude-mark`,mw=`${Y}StayOriginalMark`,fj=`${Y}PreWhitespaceMark`,Ml=`${Y}InlineMark`,e1=`${Y}BlockMark`,hj=`${Y}Left`,bj=`${Y}Right`,yj=`${Y}Width`,xj=`${Y}Height`,vj=`${Y}Top`,Tj=`${Y}FontSize`,t1="lastRunTime";var Sj=`${Y}GlobalStyleMark`,so=["@","#"],Rl=" --- ",n1=` +`,Lt=`${B}-target-wrapper`,Cj=`${B}-pdf-target-container`,Fl=`${B}-target-inner`,wj=`${B}-source-wrapper`,pm=`${B}-target-translation-block-wrapper`,Ej=`${B}-root-translation-theme`,uo=`${Y}RootTranslationTheme`,r1=`${B}-target-translation-vertical-block-wrapper`,Aj=`${B}-target-translation-pdf-block-wrapper`,a1=`${B}-target-translation-pre-whitespace`,gm=`${B}-target-translation-inline-wrapper`;var i1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var o1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],s1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Sl,Sl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Fa="zh-CN",kj=oe+"docs/communities/",Dj=R3+"issues/1809",Pj=R3+"issues/1179",Bl={type:Y+"ChildFrameToRootFrameIdentifier"},fm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ls=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],u1=["ctrl","alt","shift","cmd","command","option","control"];var Il=la()?Sl+"#general":"http://localhost:8000/dist/userscript/options/#general",hm="user_from_plugin",mt="user_info",_l=oe+"accounts/login?from=plugin",l1=Sl+"#general",Lj=oe+"accounts/login?from=plugin&return_url="+encodeURIComponent(l1),c1=_l+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",d1=_l+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Ms=oe+"profile/",Rs=oe+"auth/pricing/",kn=oe+"pricing/",pw=oe+"download/",gw=oe+"topup?type=open_ai&",fw=oe+"topup?type=deepl&",m1=oe+"topup?type=comics&",hw=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",p1=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Mj=pw+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",Rj=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Ol=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",bm=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",Fj=Ms+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",g1=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",f1=gw+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",h1=fw+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",b1=oe+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",bw=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",ym=Ms+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Bj=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Ij=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",_j=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",Oj=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=",y1=oe+"docs/usage/",Nj=oe+"docs/communities/",Fs=De().TRANSLATE_FILE_URL,jj=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",x1=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",v1=`${Fs}download-subtitle/`,T1=`${Fs}pdf-pro/`,S1=`${Fs}text/`,Ci=["deepl","openai","gemini","claude"],yw="G-BHWL0KMJB8",xw="7pr-olTJR6GKAjIW48UD0Q",k3="G-MKMD9LWFTR",D3="sitc4WmvShWYwfU0dANM3Q",P3="G-V5H2F5MJFJ",L3="UBjpGOLISEaY5LVXNj3WvQ";function Nl(){return c3()?[`https://www.google-analytics.com/mp/collect?measurement_id=${yw}&api_secret=${xw}`]:la?[`https://www.google-analytics.com/mp/collect?measurement_id=${k3}&api_secret=${D3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${P3}&api_secret=${L3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${k3}&api_secret=${D3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${P3}&api_secret=${L3}`]}var Bs=`https://analytics.${$t}/collect`,Uj=`${oe}activities/components/image-pro`;var C1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",w1="0VmM83i2D1ICuYBf",jl=`[${Cl}-ctx-divider]`,Ul=`${Cl}_context_preview`;function E1(e){let t=$.runtime.getURL(M3),n=new URL(t);return e&&(e.startsWith("http")||!An())&&n.searchParams.set("file",e),n.href}var wi=Y+"CacheKey_";function Ei(e,t){let n=wi+e;return $.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function vw(){let e=$.storage.local.refresh;e&&e()}function xm(e,t){let n=wi+e;return $.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wi)).filter(r=>r!==wi+mt);if(n.length>0)return $.storage.local.remove(n)}}var pt={get:Ei,set:Ai,getExpired:xm,setExpired:vm,remove:Tm,clear:Sm,refresh:vw};function ht(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function A1(e){if(e){let t=new Date(e.createTime),n=Tw(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function Tw(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Is(e){if(e?.isPro)return!0;let t=await pt.get(mt,null);return ht(t)}function lo(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Cm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Hl(e,t){let n=lo(),r=setTimeout(()=>n.reject(new Cm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function it(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var k1=class{#e=0;#t=[];#n=[];#r=lo();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tYw,bgBlue:()=>Xw,bgBrightBlack:()=>nE,bgBrightBlue:()=>oE,bgBrightCyan:()=>uE,bgBrightGreen:()=>aE,bgBrightMagenta:()=>sE,bgBrightRed:()=>rE,bgBrightWhite:()=>lE,bgBrightYellow:()=>iE,bgCyan:()=>eE,bgGreen:()=>Jw,bgMagenta:()=>$w,bgRed:()=>Qw,bgRgb24:()=>pE,bgRgb8:()=>dE,bgWhite:()=>tE,bgYellow:()=>Zw,black:()=>Rw,blue:()=>_w,bold:()=>Ew,brightBlack:()=>L1,brightBlue:()=>Ww,brightCyan:()=>Vw,brightGreen:()=>qw,brightMagenta:()=>Gw,brightRed:()=>Hw,brightWhite:()=>Kw,brightYellow:()=>zw,cyan:()=>Nw,dim:()=>Aw,getColorEnabled:()=>Cw,gray:()=>Uw,green:()=>Bw,hidden:()=>Lw,inverse:()=>Pw,italic:()=>kw,magenta:()=>Ow,red:()=>Fw,reset:()=>ww,rgb24:()=>mE,rgb8:()=>cE,setColorEnabled:()=>Sw,strikethrough:()=>Mw,stripColor:()=>fE,underline:()=>Dw,white:()=>jw,yellow:()=>Iw});var{Deno:D1}=globalThis,P1=typeof D1?.noColor=="boolean"?D1.noColor:!0,wm=!P1;function Sw(e){P1||(wm=e)}function Cw(){return wm}function Le(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Me(e,t){return wm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function ww(e){return Me(e,Le([0],0))}function Ew(e){return Me(e,Le([1],22))}function Aw(e){return Me(e,Le([2],22))}function kw(e){return Me(e,Le([3],23))}function Dw(e){return Me(e,Le([4],24))}function Pw(e){return Me(e,Le([7],27))}function Lw(e){return Me(e,Le([8],28))}function Mw(e){return Me(e,Le([9],29))}function Rw(e){return Me(e,Le([30],39))}function Fw(e){return Me(e,Le([31],39))}function Bw(e){return Me(e,Le([32],39))}function Iw(e){return Me(e,Le([33],39))}function _w(e){return Me(e,Le([34],39))}function Ow(e){return Me(e,Le([35],39))}function Nw(e){return Me(e,Le([36],39))}function jw(e){return Me(e,Le([37],39))}function Uw(e){return L1(e)}function L1(e){return Me(e,Le([90],39))}function Hw(e){return Me(e,Le([91],39))}function qw(e){return Me(e,Le([92],39))}function zw(e){return Me(e,Le([93],39))}function Ww(e){return Me(e,Le([94],39))}function Gw(e){return Me(e,Le([95],39))}function Vw(e){return Me(e,Le([96],39))}function Kw(e){return Me(e,Le([97],39))}function Yw(e){return Me(e,Le([40],49))}function Qw(e){return Me(e,Le([41],49))}function Jw(e){return Me(e,Le([42],49))}function Zw(e){return Me(e,Le([43],49))}function Xw(e){return Me(e,Le([44],49))}function $w(e){return Me(e,Le([45],49))}function eE(e){return Me(e,Le([46],49))}function tE(e){return Me(e,Le([47],49))}function nE(e){return Me(e,Le([100],49))}function rE(e){return Me(e,Le([101],49))}function aE(e){return Me(e,Le([102],49))}function iE(e){return Me(e,Le([103],49))}function oE(e){return Me(e,Le([104],49))}function sE(e){return Me(e,Le([105],49))}function uE(e){return Me(e,Le([106],49))}function lE(e){return Me(e,Le([107],49))}function Ba(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function cE(e,t){return Me(e,Le([38,5,Ba(t)],39))}function dE(e,t){return Me(e,Le([48,5,Ba(t)],49))}function mE(e,t){return typeof t=="number"?Me(e,Le([38,2,t>>16&255,t>>8&255,t&255],39)):Me(e,Le([38,2,Ba(t.r),Ba(t.g),Ba(t.b)],39))}function pE(e,t){return typeof t=="number"?Me(e,Le([48,2,t>>16&255,t>>8&255,t&255],49)):Me(e,Le([48,2,Ba(t.r),Ba(t.g),Ba(t.b)],49))}var gE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function fE(e){return e.replace(gE,"")}var Em=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},hE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Am(e,t){let n={...hE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Em(a,n.maxAttempts)}var da=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function km(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=da[(t[r-2]&3)<<4|t[r-1]>>4],n+=da[(t[r-1]&15)<<2|t[r]>>6],n+=da[t[r]&63];return r===a+1&&(n+=da[t[r-2]>>2],n+=da[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=da[t[r-2]>>2],n+=da[(t[r-2]&3)<<4|t[r-1]>>4],n+=da[(t[r-1]&15)<<2],n+="="),n}var bE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,yE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,xE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Dm={Space_Separator:bE,ID_Start:yE,ID_Continue:xE},_t={isSpaceSeparator(e){return typeof e=="string"&&Dm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Dm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Dm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Lm,Dn,pa,zl,Ia,xr,en,Fm,Os,vE=function(e,t){Lm=String(e),Dn="start",pa=[],zl=0,Ia=1,xr=0,en=void 0,Fm=void 0,Os=void 0;do en=TE(),wE[Dn]();while(en.type!=="eof");return typeof t=="function"?Mm({"":Os},"",t):Os};function Mm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ga();if(!_t.isHexDigit(n))throw bt(H());e+=H()}return String.fromCodePoint(parseInt(e,16))}var wE={start(){if(en.type==="eof")throw Di();Pm()},beforePropertyName(){switch(en.type){case"identifier":case"string":Fm=en.value,Dn="afterPropertyName";return;case"punctuator":ql();return;case"eof":throw Di()}},afterPropertyName(){if(en.type==="eof")throw Di();Dn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw Di();Pm()},beforeArrayValue(){if(en.type==="eof")throw Di();if(en.type==="punctuator"&&en.value==="]"){ql();return}Pm()},afterPropertyValue(){if(en.type==="eof")throw Di();switch(en.value){case",":Dn="beforePropertyName";return;case"}":ql()}},afterArrayValue(){if(en.type==="eof")throw Di();switch(en.value){case",":Dn="beforeArrayValue";return;case"]":ql()}},end(){}};function Pm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(Os===void 0)Os=e;else{let t=pa[pa.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Fm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")pa.push(e),Array.isArray(e)?Dn="beforeArrayValue":Dn="beforePropertyName";else{let t=pa[pa.length-1];t==null?Dn="end":Array.isArray(t)?Dn="afterArrayValue":Dn="afterPropertyValue"}}function ql(){pa.pop();let e=pa[pa.length-1];e==null?Dn="end":Array.isArray(e)?Dn="afterArrayValue":Dn="afterPropertyValue"}function bt(e){return Bm(e===void 0?`JSON5: invalid end of input at ${Ia}:${xr}`:`JSON5: invalid character '${EE(e)}' at ${Ia}:${xr}`)}function Di(){return Bm(`JSON5: invalid end of input at ${Ia}:${xr}`)}function M1(){return xr-=5,Bm(`JSON5: invalid identifier character at ${Ia}:${xr}`)}function EE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Bm(e){let t=new SyntaxError(e);return t.lineNumber=Ia,t.columnNumber=xr,t}var AE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let b;typeof g=="string"?b=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(b=String(g)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,b){let h=b[g];switch(h!=null&&(typeof h.toJSON5=="function"?h=h.toJSON5(g):typeof h.toJSON=="function"&&(h=h.toJSON(g))),o&&(h=o.call(b,g,h)),h instanceof Number?h=Number(h):h instanceof String?h=String(h):h instanceof Boolean&&(h=h.valueOf()),h){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof h=="string")return c(h,!1);if(typeof h=="number")return String(h);if(typeof h=="object")return Array.isArray(h)?p(h):d(h)}function c(g){let b={"'":.1,'"':.2},h={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vb[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let b=a;a=a+s;let h=i||Object.keys(g),f=[];for(let v of h){let T=l(v,g);if(T!==void 0){let w=m(v)+":";s!==""&&(w+=" "),w+=T,f.push(w)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let T=`, +`+a;v=f.join(T),y=`{ `+a+v+`, -`+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!_t.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let b=a;a=a+s;let h=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),NE=(e,t)=>{for(var n in t)_m(e,n,{get:t[n],enumerable:!0})},Im=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of BE(t))!_E.call(e,a)&&a!==n&&_m(e,a,{get:()=>t[a],enumerable:!(r=FE(t,a))||r.enumerable});return e},jE=(e,t,n)=>(Im(e,t,"default"),n&&Im(n,t,"default")),O1=(e,t,n)=>(n=e!=null?RE(IE(e)):{},Im(t||!e||!e.__esModule?_m(n,"default",{value:e,enumerable:!0}):n,e)),N1=OE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Vl=="object"&&Vl&&Vl.Object===Object&&Vl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(A,k,R){var F,P,I,L,_,O,z=0,V=!1,ie=!1,Ie=!0;if(typeof A!="function")throw new TypeError(n);k=T(k)||0,S(R)&&(V=!!R.leading,ie="maxWait"in R,I=ie?h(T(R.maxWait)||0,k):I,Ie="trailing"in R?!!R.trailing:Ie);function re(ge){var de=F,Se=P;return F=P=void 0,z=ge,L=A.apply(Se,de),L}function N(ge){return z=ge,_=setTimeout(me,k),V?re(ge):L}function j(ge){var de=ge-O,Se=ge-z,Ue=k-de;return ie?b(Ue,I-Se):Ue}function W(ge){var de=ge-O,Se=ge-z;return O===void 0||de>=k||de<0||ie&&Se>=I}function me(){var ge=f();if(W(ge))return ce(ge);_=setTimeout(me,j(ge))}function ce(ge){return _=void 0,Ie&&F?re(ge):(F=P=void 0,L)}function ze(){_!==void 0&&clearTimeout(_),z=0,F=O=P=_=void 0}function pe(){return _===void 0?L:ce(f())}function he(){var ge=f(),de=W(ge);if(F=arguments,P=this,O=ge,de){if(_===void 0)return N(O);if(ie)return _=setTimeout(me,k),re(O)}return _===void 0&&(_=setTimeout(me,k)),L}return he.cancel=ze,he.flush=pe,he}function v(A,k,R){var F=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return S(R)&&(F="leading"in R?!!R.leading:F,P="trailing"in R?!!R.trailing:P),y(A,k,{leading:F,maxWait:k,trailing:P})}function S(A){var k=typeof A;return!!A&&(k=="object"||k=="function")}function w(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||w(A)&&g.call(A)==a}function T(A){if(typeof A=="number")return A;if(C(A))return r;if(S(A)){var k=typeof A.valueOf=="function"?A.valueOf():A;A=S(k)?k+"":k}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var R=s.test(A);return R||u.test(A)?l(A.slice(2),R?2:8):o.test(A)?r:+A}t.exports=v}),j1={};NE(j1,{default:()=>Jn});var UE=O1(N1());jE(j1,O1(N1()));var{default:_1,...HE}=UE,Jn=_1!==void 0?_1:HE;var Kl=globalThis||(typeof window<"u"?window:self),qE=Object.create,Nm=Object.defineProperty,zE=Object.getOwnPropertyDescriptor,WE=Object.getOwnPropertyNames,GE=Object.getPrototypeOf,VE=Object.prototype.hasOwnProperty,KE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),YE=(e,t)=>{for(var n in t)Nm(e,n,{get:t[n],enumerable:!0})},Om=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of WE(t))!VE.call(e,a)&&a!==n&&Nm(e,a,{get:()=>t[a],enumerable:!(r=zE(t,a))||r.enumerable});return e},QE=(e,t,n)=>(Om(e,t,"default"),n&&Om(n,t,"default")),H1=(e,t,n)=>(n=e!=null?qE(GE(e)):{},Om(t||!e||!e.__esModule?Nm(n,"default",{value:e,enumerable:!0}):n,e)),q1=KE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Kl=="object"&&Kl&&Kl.Object===Object&&Kl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(T,A,k){var R,F,P,I,L,_,O=0,z=!1,V=!1,ie=!0;if(typeof T!="function")throw new TypeError(n);A=C(A)||0,v(k)&&(z=!!k.leading,V="maxWait"in k,P=V?h(C(k.maxWait)||0,A):P,ie="trailing"in k?!!k.trailing:ie);function Ie(he){var ge=R,de=F;return R=F=void 0,O=he,I=T.apply(de,ge),I}function re(he){return O=he,L=setTimeout(W,A),z?Ie(he):I}function N(he){var ge=he-_,de=he-O,Se=A-ge;return V?b(Se,P-de):Se}function j(he){var ge=he-_,de=he-O;return _===void 0||ge>=A||ge<0||V&&de>=P}function W(){var he=f();if(j(he))return me(he);L=setTimeout(W,N(he))}function me(he){return L=void 0,ie&&R?Ie(he):(R=F=void 0,I)}function ce(){L!==void 0&&clearTimeout(L),O=0,R=_=F=L=void 0}function ze(){return L===void 0?I:me(f())}function pe(){var he=f(),ge=j(he);if(R=arguments,F=this,_=he,ge){if(L===void 0)return re(_);if(V)return L=setTimeout(W,A),Ie(_)}return L===void 0&&(L=setTimeout(W,A)),I}return pe.cancel=ce,pe.flush=ze,pe}function v(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function S(T){return!!T&&typeof T=="object"}function w(T){return typeof T=="symbol"||S(T)&&g.call(T)==a}function C(T){if(typeof T=="number")return T;if(w(T))return r;if(v(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=v(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(i,"");var k=s.test(T);return k||u.test(T)?l(T.slice(2),k?2:8):o.test(T)?r:+T}t.exports=y}),z1={};YE(z1,{default:()=>Nn});var JE=H1(q1());QE(z1,H1(q1()));var{default:U1,...ZE}=JE,Nn=U1!==void 0?U1:ZE;var XE=Object.create,Um=Object.defineProperty,$E=Object.getOwnPropertyDescriptor,e8=Object.getOwnPropertyNames,t8=Object.getPrototypeOf,n8=Object.prototype.hasOwnProperty,r8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a8=(e,t)=>{for(var n in t)Um(e,n,{get:t[n],enumerable:!0})},jm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of e8(t))!n8.call(e,a)&&a!==n&&Um(e,a,{get:()=>t[a],enumerable:!(r=$E(t,a))||r.enumerable});return e},i8=(e,t,n)=>(jm(e,t,"default"),n&&jm(n,t,"default")),G1=(e,t,n)=>(n=e!=null?XE(t8(e)):{},jm(t||!e||!e.__esModule?Um(n,"default",{value:e,enumerable:!0}):n,e)),V1=r8((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,j){var W={};for(var me in N)j.indexOf(me)>=0||Object.prototype.hasOwnProperty.call(N,me)&&(W[me]=N[me]);return W}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},h=Object.assign||function(N){for(var j=1;j'+me+"
",Se.onclick=function(){return P(Ue,de)},Se.listener=function(K){(k(K)||R(K))&&_()},F(Se,de),ze&&ze<1&&(ze=1),!he&&ze&&S(ze).then(function(){return P(Ue,de)})},z=d.force=function(N,j){var W=N.type,me=W===void 0?5:W,ce=N.text,ze=N.buttonText,pe=ze===void 0?"OK":ze,he=N.callback,ge=N.position,de=ge===void 0?f.positions.force||de.top:ge;w(),_();var Se=document.createElement("div"),Ue=C();Se.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+ce+"
";var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(T[me]),xe.innerHTML=pe,xe.onclick=function(){P(Ue,de),L(),he?he():j&&j()},Se.appendChild(K),Se.appendChild(xe),Se.listener=function(nt){k(nt)&&xe.click()},F(Se,de),I()},V=d.confirm=function(N,j,W){var me=N.text,ce=N.submitText,ze=ce===void 0?"Yes":ce,pe=N.cancelText,he=pe===void 0?"Cancel":pe,ge=N.submitCallback,de=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.confirm||Ue.top:Se;w(),_();var K=document.createElement("div"),xe=C();K.id=xe;var nt=document.createElement("div");nt.classList.add(f.classes.textbox),nt.classList.add(f.classes.backgroundInfo),nt.innerHTML='
'+me+"
";var Ye=document.createElement("div");Ye.classList.add(f.classes.button),Ye.classList.add(f.classes.elementHalf),Ye.classList.add(f.classes.backgroundSuccess),Ye.innerHTML=ze,Ye.onclick=function(){P(xe,Ue),L(),ge?ge():j&&j()};var Te=document.createElement("div");Te.classList.add(f.classes.button),Te.classList.add(f.classes.elementHalf),Te.classList.add(f.classes.backgroundError),Te.innerHTML=he,Te.onclick=function(){P(xe,Ue),L(),de?de():W&&W()},K.appendChild(nt),K.appendChild(Ye),K.appendChild(Te),K.listener=function(vt){k(vt)?Ye.click():R(vt)&&Te.click()},F(K,Ue),I(K,Ue)},ie=function(N,j,W){var me=N.text,ce=N.submitText,ze=ce===void 0?"Submit":ce,pe=N.cancelText,he=pe===void 0?"Cancel":pe,ge=N.submitCallback,de=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.input||Ue.top:Se,K=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var xe=document.createElement("div"),nt=C();xe.id=nt;var Ye=document.createElement("div");Ye.classList.add(f.classes.textbox),Ye.classList.add(f.classes.backgroundInfo),Ye.innerHTML='
'+me+"
";var Te=document.createElement("input");Te.classList.add(f.classes.inputField),Te.setAttribute("autocapitalize",K.autocapitalize||"none"),Te.setAttribute("autocomplete",K.autocomplete||"off"),Te.setAttribute("autocorrect",K.autocorrect||"off"),Te.setAttribute("autofocus",K.autofocus||"true"),Te.setAttribute("inputmode",K.inputmode||"verbatim"),Te.setAttribute("max",K.max||""),Te.setAttribute("maxlength",K.maxlength||""),Te.setAttribute("min",K.min||""),Te.setAttribute("minlength",K.minlength||""),Te.setAttribute("placeholder",K.placeholder||""),Te.setAttribute("spellcheck",K.spellcheck||"default"),Te.setAttribute("step",K.step||"any"),Te.setAttribute("type",K.type||"text"),Te.value=K.value||"",K.allowed&&(Te.oninput=function(){var Dt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",wn=K.allowed,ur=0;ur'+W+"
",de.appendChild(Ue),pe.forEach(function(xe,nt){var Ye=xe.type,Te=Ye===void 0?1:Ye,vt=xe.text,zt=xe.handler,Dt=document.createElement("div");Dt.classList.add(T[Te]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Bt=pe[nt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===Te&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){P(Se,ge),L(),zt()},de.appendChild(Dt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=ce,K.onclick=function(){P(Se,ge),L(),ze?ze():j&&j()},de.appendChild(K),de.listener=function(xe){R(xe)&&K.click()},F(de,ge),I(de,ge)},re=d.date=function(N,j,W){var me=N.value,ce=me===void 0?new Date:me,ze=N.submitText,pe=ze===void 0?"OK":ze,he=N.cancelText,ge=he===void 0?"Cancel":he,de=N.submitCallback,Se=N.cancelCallback,Ue=N.position,K=Ue===void 0?f.positions.date||K.top:Ue;w(),_();var xe="▾",nt=document.createElement("div"),Ye=document.createElement("div"),Te=document.createElement("div"),vt=function(St){nt.innerHTML=f.dateMonths[St.getMonth()],Ye.innerHTML=St.getDate(),Te.innerHTML=St.getFullYear()},zt=function(St){var et=new Date(ce.getFullYear(),ce.getMonth()+1,0).getDate(),Kn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>et&&(Kn=et.toString()),St.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),ce.setDate(Number(Kn))},Dt=function(St){var et=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=et,ce.setFullYear(Number(et))},Bt=function(St){vt(ce)},wn=function(St){var et=new Date(ce.getFullYear(),ce.getMonth()+St+1,0).getDate();ce.getDate()>et&&ce.setDate(et),ce.setMonth(ce.getMonth()+St),vt(ce)},ur=function(St){ce.setDate(ce.getDate()+St),vt(ce)},ys=function(St){var et=ce.getFullYear()+St;et<0?ce.setFullYear(0):ce.setFullYear(ce.getFullYear()+St),vt(ce)},qr=document.createElement("div"),bi=C();qr.id=bi;var Zi=document.createElement("div");Zi.classList.add(f.classes.backgroundInfo);var cn=document.createElement("div");cn.classList.add(f.classes.dateSelectorInner);var br=document.createElement("div");br.classList.add(f.classes.button),br.classList.add(f.classes.elementThird),br.classList.add(f.classes.dateSelectorUp),br.innerHTML=xe;var dn=document.createElement("div");dn.classList.add(f.classes.button),dn.classList.add(f.classes.elementThird),dn.classList.add(f.classes.dateSelectorUp),dn.innerHTML=xe;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=xe,nt.classList.add(f.classes.element),nt.classList.add(f.classes.elementThird),nt.innerHTML=f.dateMonths[ce.getMonth()],Ye.classList.add(f.classes.element),Ye.classList.add(f.classes.elementThird),Ye.setAttribute("contentEditable",!0),Ye.addEventListener("input",zt),Ye.addEventListener("blur",Bt),Ye.innerHTML=ce.getDate(),Te.classList.add(f.classes.element),Te.classList.add(f.classes.elementThird),Te.setAttribute("contentEditable",!0),Te.addEventListener("input",Dt),Te.addEventListener("blur",Bt),Te.innerHTML=ce.getFullYear();var sa=document.createElement("div");sa.classList.add(f.classes.button),sa.classList.add(f.classes.elementThird),sa.innerHTML=xe;var ua=document.createElement("div");ua.classList.add(f.classes.button),ua.classList.add(f.classes.elementThird),ua.innerHTML=xe;var yi=document.createElement("div");yi.classList.add(f.classes.button),yi.classList.add(f.classes.elementThird),yi.innerHTML=xe,br.onclick=function(){return wn(1)},dn.onclick=function(){return ur(1)},Vn.onclick=function(){return ys(1)},sa.onclick=function(){return wn(-1)},ua.onclick=function(){return ur(-1)},yi.onclick=function(){return ys(-1)};var En=document.createElement("div");En.classList.add(f.classes.button),En.classList.add(f.classes.elementHalf),En.classList.add(f.classes.backgroundSuccess),En.innerHTML=pe,En.onclick=function(){P(bi,K),L(),de?de(ce):j&&j(ce)};var la=document.createElement("div");la.classList.add(f.classes.button),la.classList.add(f.classes.elementHalf),la.classList.add(f.classes.backgroundError),la.innerHTML=ge,la.onclick=function(){P(bi,K),L(),Se?Se(ce):W&&W(ce)},cn.appendChild(br),cn.appendChild(dn),cn.appendChild(Vn),cn.appendChild(nt),cn.appendChild(Ye),cn.appendChild(Te),cn.appendChild(sa),cn.appendChild(ua),cn.appendChild(yi),Zi.appendChild(cn),qr.appendChild(Zi),qr.appendChild(En),qr.appendChild(la),qr.listener=function(St){k(St)?En.click():R(St)&&la.click()},F(qr,K),I(qr,K)};d.default={alert:O,force:z,confirm:V,input:ie,select:Ie,date:re,setOptions:y,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),K1={};a8(K1,{default:()=>Yl});var o8=G1(V1());i8(K1,G1(V1()));var{default:W1,...s8}=o8,Yl=W1!==void 0?W1:s8;var Ql=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function js(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Hm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Y1(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ico[e.toLowerCase()]||Sr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),u8=e=>Object.keys(co).find(t=>co[t]===e),l8=e=>Object.keys(Sr).find(t=>Sr[t]===e);function e2(e){X1=e||"all"}function Us(){return X1||"all"}function c8(){return st.slice(0)}function d8(){return st.map(e=>u8(e)||l8(e)||String.fromCharCode(e))}function m8(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Hs(o))})})}),e}function p8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function g8(e){return typeof e=="string"&&(e=Hs(e)),st.indexOf(e)!==-1}function f8(e,t){let n,r;e||(e=Us());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&st.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&st.splice(0,st.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in Sr)Sr[r]===t&&(ba[r]=!1)}}function t2(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&zm(n)});else if(typeof e=="object")e.key&&zm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),zm({key:e,scope:n,method:r,splitKey:"+"})}}var zm=({key:e,scope:t,method:n,splitKey:r="+"})=>{qm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Hs(u);if(!Tt[l])return;t||(t=Us());let c=s>1?Hm(Sr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&Y1(d.mods,c)))})};function J1(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(st),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Z1(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!ba.filter.call(this,e))return;if((r===93||r===224)&&(r=91),st.indexOf(r)===-1&&r!==229&&st.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Jl[i];e[i]&&st.indexOf(o)===-1?st.push(o):!e[i]&&st.indexOf(o)>-1?st.splice(st.indexOf(o),1):i==="metaKey"&&e[i]&&st.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(st=st.slice(st.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in Sr)Sr[i]===r&&(ba[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Jl[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(st.indexOf(17)===-1&&st.push(17),st.indexOf(18)===-1&&st.push(18),tn[17]=!0,tn[18]=!0);let a=Us();if(n)for(let i=0;i-1}function ba(e,t,n){st=[];let r=qm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&t2(e,i);s1&&(a=Hm(Sr,e)),e=e[e.length-1],e=e==="*"?"*":Hs(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!b8(o)&&window&&($1.push(o),js(o,"keydown",p=>{Z1(p,o)},d),Q1||(Q1=!0,js(window,"focus",()=>{st=[]},d),js(window,"click",()=>{st=[]},!1)),js(o,"keyup",p=>{Z1(p,o),h8(p)},d))}function y8(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Wm={getPressedKeyString:d8,setScope:e2,getScope:Us,deleteScope:f8,getPressedKeyCodes:c8,getAllKeyCodes:m8,isPressed:g8,filter:p8,trigger:y8,unbind:t2,keyMap:co,modifier:Sr,modifierMap:Jl};for(let e in Wm)Object.prototype.hasOwnProperty.call(Wm,e)&&(ba[e]=Wm[e]);if(typeof window<"u"){let e=window.hotkeys;ba.noConflict=t=>(t&&window.hotkeys===ba&&(window.hotkeys=e),ba),window.hotkeys=ba}var jn=ba;var x8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},r2={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Ln={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Oa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},q=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=q.getVersionPrecision(e),a=q.getVersionPrecision(t),i=Math.max(r,a),o=0,s=q.map([e,t],u=>{let l=i-q.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return q.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return x8[e]}static getBrowserTypeByAlias(e){return r2[e]||""}},ut=/version\/(\d+(\.?_?\d+)+)/i,v8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=q.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=q.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=q.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=q.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=q.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=q.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=q.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=q.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=q.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=q.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=q.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=q.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=q.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=q.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=q.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=q.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=q.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=q.getFirstMatch(ut,e)||q.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=q.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=q.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=q.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=q.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=q.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=q.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=q.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=q.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=q.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=q.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:q.getFirstMatch(r,e),version:q.getSecondMatch(r,e)}}}],S8=v8,T8=[{test:[/Roku\/DVP/],describe(e){let t=q.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Ln.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=q.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Ln.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=q.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=q.getWindowsVersionName(t);return{name:Ln.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Ln.iOS},n=q.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=q.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=q.getMacOSVersionName(t),r={name:Ln.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=q.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Ln.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=q.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=q.getAndroidVersionName(t),r={name:Ln.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=q.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Ln.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=q.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||q.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||q.getFirstMatch(/\bbb(\d+)/i,e);return{name:Ln.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=q.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Ln.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=q.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Ln.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Ln.Linux}}},{test:[/CrOS/],describe(){return{name:Ln.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=q.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Ln.PlayStation4,version:t}}}],C8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=q.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=q.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],w8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Oa.Blink};let t=q.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Oa.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Oa.Trident},n=q.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Oa.Presto},n=q.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Oa.Gecko},n=q.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Oa.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Oa.WebKit},n=q.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],E8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=q.find(S8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=q.find(T8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=q.find(C8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=q.find(w8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return q.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=q.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=q.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=q.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=q.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(q.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},n2=E8,A8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new n2(e,t)}static parse(e){return new n2(e).getResult()}static get BROWSER_MAP(){return r2}static get ENGINE_MAP(){return Oa}static get OS_MAP(){return Ln}static get PLATFORMS_MAP(){return Ot}},mo=A8;var{entries:d2,setPrototypeOf:a2,isFrozen:k8,getPrototypeOf:D8,getOwnPropertyDescriptor:P8}=Object,{freeze:Mn,seal:Cr,create:L8}=Object,{apply:Jm,construct:Zm}=typeof Reflect<"u"&&Reflect;Jm||(Jm=function(e,t,n){return e.apply(t,n)});Mn||(Mn=function(e){return e});Cr||(Cr=function(e){return e});Zm||(Zm=function(e,t){return new e(...t)});var M8=dr(Array.prototype.forEach),i2=dr(Array.prototype.pop),qs=dr(Array.prototype.push),$l=dr(String.prototype.toLowerCase),Gm=dr(String.prototype.toString),R8=dr(String.prototype.match),Tr=dr(String.prototype.replace),F8=dr(String.prototype.indexOf),B8=dr(String.prototype.trim),Zn=dr(RegExp.prototype.test),zs=I8(TypeError);function dr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),U8=Cr(/\${[\w\W]*}/gm),H8=Cr(/^data-[\-\w.\u00B7-\uFFFF]/),q8=Cr(/^aria-[\-\w]+$/),m2=Cr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z8=Cr(/^(?:\w+script|data):/i),W8=Cr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),p2=Cr(/^html$/i),c2=Object.freeze({__proto__:null,MUSTACHE_EXPR:N8,ERB_EXPR:j8,TMPLIT_EXPR:U8,DATA_ATTR:H8,ARIA_ATTR:q8,IS_ALLOWED_URI:m2,IS_SCRIPT_OR_DATA:z8,ATTR_WHITESPACE:W8,DOCTYPE_NAME:p2}),G8=()=>typeof window>"u"?null:window,V8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function g2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G8(),t=M=>g2(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Zl(g,"cloneNode"),b=Zl(g,"nextSibling"),f=Zl(g,"childNodes"),y=Zl(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,S="",{implementation:w,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:A}=a,{importNode:k}=n,R={};t.isSupported=typeof d2=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:z}=c2,{IS_ALLOWED_URI:V}=c2,ie=null,Ie=Ne({},[...o2,...Vm,...Km,...Ym,...s2]),re=null,N=Ne({},[...u2,...Qm,...l2,...Xl]),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,me=null,ce=!0,ze=!0,pe=!1,he=!0,ge=!1,de=!1,Se=!1,Ue=!1,K=!1,xe=!1,nt=!1,Ye=!0,Te=!1,vt="user-content-",zt=!0,Dt=!1,Bt={},wn=null,ur=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ys=null,qr=Ne({},["audio","video","img","source","image","track"]),bi=null,Zi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",Vn=dn,sa=!1,ua=null,yi=Ne({},[cn,br,dn],Gm),En,la=["application/xhtml+xml","text/html"],St="text/html",et,Kn=null,_C=a.createElement("form"),A4=function(M){return M instanceof RegExp||M instanceof Function},zd=function(M){if(!(Kn&&Kn===M)){if((!M||typeof M!="object")&&(M={}),M=po(M),En=la.indexOf(M.PARSER_MEDIA_TYPE)===-1?En=St:En=M.PARSER_MEDIA_TYPE,et=En==="application/xhtml+xml"?Gm:$l,ie="ALLOWED_TAGS"in M?Ne({},M.ALLOWED_TAGS,et):Ie,re="ALLOWED_ATTR"in M?Ne({},M.ALLOWED_ATTR,et):N,ua="ALLOWED_NAMESPACES"in M?Ne({},M.ALLOWED_NAMESPACES,Gm):yi,bi="ADD_URI_SAFE_ATTR"in M?Ne(po(Zi),M.ADD_URI_SAFE_ATTR,et):Zi,ys="ADD_DATA_URI_TAGS"in M?Ne(po(qr),M.ADD_DATA_URI_TAGS,et):qr,wn="FORBID_CONTENTS"in M?Ne({},M.FORBID_CONTENTS,et):ur,W="FORBID_TAGS"in M?Ne({},M.FORBID_TAGS,et):{},me="FORBID_ATTR"in M?Ne({},M.FORBID_ATTR,et):{},Bt="USE_PROFILES"in M?M.USE_PROFILES:!1,ce=M.ALLOW_ARIA_ATTR!==!1,ze=M.ALLOW_DATA_ATTR!==!1,pe=M.ALLOW_UNKNOWN_PROTOCOLS||!1,he=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=M.SAFE_FOR_TEMPLATES||!1,de=M.WHOLE_DOCUMENT||!1,K=M.RETURN_DOM||!1,xe=M.RETURN_DOM_FRAGMENT||!1,nt=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Ye=M.SANITIZE_DOM!==!1,Te=M.SANITIZE_NAMED_PROPS||!1,zt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,V=M.ALLOWED_URI_REGEXP||m2,Vn=M.NAMESPACE||dn,j=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&A4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&A4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(ze=!1),xe&&(K=!0),Bt&&(ie=Ne({},[...s2]),re=[],Bt.html===!0&&(Ne(ie,o2),Ne(re,u2)),Bt.svg===!0&&(Ne(ie,Vm),Ne(re,Qm),Ne(re,Xl)),Bt.svgFilters===!0&&(Ne(ie,Km),Ne(re,Qm),Ne(re,Xl)),Bt.mathMl===!0&&(Ne(ie,Ym),Ne(re,l2),Ne(re,Xl))),M.ADD_TAGS&&(ie===Ie&&(ie=po(ie)),Ne(ie,M.ADD_TAGS,et)),M.ADD_ATTR&&(re===N&&(re=po(re)),Ne(re,M.ADD_ATTR,et)),M.ADD_URI_SAFE_ATTR&&Ne(bi,M.ADD_URI_SAFE_ATTR,et),M.FORBID_CONTENTS&&(wn===ur&&(wn=po(wn)),Ne(wn,M.FORBID_CONTENTS,et)),zt&&(ie["#text"]=!0),de&&Ne(ie,["html","head","body"]),ie.table&&(Ne(ie,["tbody"]),delete W.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw zs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw zs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=V8(p,r)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Mn&&Mn(M),Kn=M}},k4=Ne({},["mi","mo","mn","ms","mtext"]),D4=Ne({},["foreignobject","desc","title","annotation-xml"]),OC=Ne({},["title","style","font","a","script"]),ol=Ne({},Vm);Ne(ol,Km),Ne(ol,_8);let Wd=Ne({},Ym);Ne(Wd,O8);let NC=function(M){let ue=y(M);(!ue||!ue.tagName)&&(ue={namespaceURI:Vn,tagName:"template"});let J=$l(M.tagName),Je=$l(ue.tagName);return ua[M.namespaceURI]?M.namespaceURI===br?ue.namespaceURI===dn?J==="svg":ue.namespaceURI===cn?J==="svg"&&(Je==="annotation-xml"||k4[Je]):!!ol[J]:M.namespaceURI===cn?ue.namespaceURI===dn?J==="math":ue.namespaceURI===br?J==="math"&&D4[Je]:!!Wd[J]:M.namespaceURI===dn?ue.namespaceURI===br&&!D4[Je]||ue.namespaceURI===cn&&!k4[Je]?!1:!Wd[J]&&(OC[J]||!ol[J]):!!(En==="application/xhtml+xml"&&ua[M.namespaceURI]):!1},Xi=function(M){qs(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},Gd=function(M,ue){try{qs(t.removed,{attribute:ue.getAttributeNode(M),from:ue})}catch{qs(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(M),M==="is"&&!re[M])if(K||xe)try{Xi(ue)}catch{}else try{ue.setAttribute(M,"")}catch{}},P4=function(M){let ue,J;if(Ue)M=""+M;else{let An=R8(M,/^[\r\n\t ]+/);J=An&&An[0]}En==="application/xhtml+xml"&&Vn===dn&&(M=''+M+"");let Je=v?v.createHTML(M):M;if(Vn===dn)try{ue=new m().parseFromString(Je,En)}catch{}if(!ue||!ue.documentElement){ue=w.createDocument(Vn,"template",null);try{ue.documentElement.innerHTML=sa?S:Je}catch{}}let Wt=ue.body||ue.documentElement;return M&&J&&Wt.insertBefore(a.createTextNode(J),Wt.childNodes[0]||null),Vn===dn?A.call(ue,de?"html":"body")[0]:de?ue.documentElement:Wt},L4=function(M){return C.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},jC=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},sl=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},ca=function(M,ue,J){R[M]&&M8(R[M],Je=>{Je.call(t,ue,J,Kn)})},M4=function(M){let ue;if(ca("beforeSanitizeElements",M,null),jC(M))return Xi(M),!0;let J=et(M.nodeName);if(ca("uponSanitizeElement",M,{tagName:J,allowedTags:ie}),M.hasChildNodes()&&!sl(M.firstElementChild)&&(!sl(M.content)||!sl(M.content.firstElementChild))&&Zn(/<[/\w]/g,M.innerHTML)&&Zn(/<[/\w]/g,M.textContent))return Xi(M),!0;if(!ie[J]||W[J]){if(!W[J]&&F4(J)&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,J)||j.tagNameCheck instanceof Function&&j.tagNameCheck(J)))return!1;if(zt&&!wn[J]){let Je=y(M)||M.parentNode,Wt=f(M)||M.childNodes;if(Wt&&Je){let An=Wt.length;for(let On=An-1;On>=0;--On)Je.insertBefore(h(Wt[On],!0),b(M))}}return Xi(M),!0}return M instanceof u&&!NC(M)||(J==="noscript"||J==="noembed")&&Zn(/<\/no(script|embed)/i,M.innerHTML)?(Xi(M),!0):(ge&&M.nodeType===3&&(ue=M.textContent,ue=Tr(ue,F," "),ue=Tr(ue,P," "),ue=Tr(ue,I," "),M.textContent!==ue&&(qs(t.removed,{element:M.cloneNode()}),M.textContent=ue)),ca("afterSanitizeElements",M,null),!1)},R4=function(M,ue,J){if(Ye&&(ue==="id"||ue==="name")&&(J in a||J in _C))return!1;if(!(ze&&!me[ue]&&Zn(L,ue))&&!(ce&&Zn(_,ue))){if(!re[ue]||me[ue]){if(!(F4(M)&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,M)||j.tagNameCheck instanceof Function&&j.tagNameCheck(M))&&(j.attributeNameCheck instanceof RegExp&&Zn(j.attributeNameCheck,ue)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(ue))||ue==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,J)||j.tagNameCheck instanceof Function&&j.tagNameCheck(J))))return!1}else if(!bi[ue]&&!Zn(V,Tr(J,z,""))&&!((ue==="src"||ue==="xlink:href"||ue==="href")&&M!=="script"&&F8(J,"data:")===0&&ys[M])&&!(pe&&!Zn(O,Tr(J,z,"")))&&J)return!1}return!0},F4=function(M){return M.indexOf("-")>0},B4=function(M){let ue,J,Je,Wt;ca("beforeSanitizeAttributes",M,null);let{attributes:An}=M;if(!An)return;let On={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re};for(Wt=An.length;Wt--;){ue=An[Wt];let{name:Xt,namespaceURI:$i}=ue;if(J=Xt==="value"?ue.value:B8(ue.value),Je=et(Xt),On.attrName=Je,On.attrValue=J,On.keepAttr=!0,On.forceKeepAttr=void 0,ca("uponSanitizeAttribute",M,On),J=On.attrValue,On.forceKeepAttr||(Gd(Xt,M),!On.keepAttr))continue;if(!he&&Zn(/\/>/i,J)){Gd(Xt,M);continue}ge&&(J=Tr(J,F," "),J=Tr(J,P," "),J=Tr(J,I," "));let I4=et(M.nodeName);if(R4(I4,Je,J)){if(Te&&(Je==="id"||Je==="name")&&(Gd(Xt,M),J=vt+J),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!$i)switch(p.getAttributeType(I4,Je)){case"TrustedHTML":{J=v.createHTML(J);break}case"TrustedScriptURL":{J=v.createScriptURL(J);break}}try{$i?M.setAttributeNS($i,Xt,J):M.setAttribute(Xt,J),i2(t.removed)}catch{}}}ca("afterSanitizeAttributes",M,null)},UC=function M(ue){let J,Je=L4(ue);for(ca("beforeSanitizeShadowDOM",ue,null);J=Je.nextNode();)ca("uponSanitizeShadowNode",J,null),!M4(J)&&(J.content instanceof i&&M(J.content),B4(J));ca("afterSanitizeShadowDOM",ue,null)};return t.sanitize=function(M){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J,Je,Wt,An;if(sa=!M,sa&&(M=""),typeof M!="string"&&!sl(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw zs("dirty is not a string, aborting")}else throw zs("toString is not a function");if(!t.isSupported)return M;if(Se||zd(ue),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let $i=et(M.nodeName);if(!ie[$i]||W[$i])throw zs("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)J=P4(""),Je=J.ownerDocument.importNode(M,!0),Je.nodeType===1&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?J=Je:J.appendChild(Je);else{if(!K&&!ge&&!de&&M.indexOf("<")===-1)return v&&nt?v.createHTML(M):M;if(J=P4(M),!J)return K?null:nt?S:""}J&&Ue&&Xi(J.firstChild);let On=L4(Dt?M:J);for(;Wt=On.nextNode();)M4(Wt)||(Wt.content instanceof i&&UC(Wt.content),B4(Wt));if(Dt)return M;if(K){if(xe)for(An=T.call(J.ownerDocument);J.firstChild;)An.appendChild(J.firstChild);else An=J;return(re.shadowroot||re.shadowrootmod)&&(An=k.call(n,An,!0)),An}let Xt=de?J.outerHTML:J.innerHTML;return de&&ie["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Zn(p2,J.ownerDocument.doctype.name)&&(Xt=" -`+Xt),ge&&(Xt=Tr(Xt,F," "),Xt=Tr(Xt,P," "),Xt=Tr(Xt,I," ")),v&&nt?v.createHTML(Xt):Xt},t.setConfig=function(M){zd(M),Se=!0},t.clearConfig=function(){Kn=null,Se=!1},t.isValidAttribute=function(M,ue,J){Kn||zd({});let Je=et(M),Wt=et(ue);return R4(Je,Wt,J)},t.addHook=function(M,ue){typeof ue=="function"&&(R[M]=R[M]||[],qs(R[M],ue))},t.removeHook=function(M){if(R[M])return i2(R[M])},t.removeHooks=function(M){R[M]&&(R[M]=[])},t.removeAllHooks=function(){R={}},t}var rt=g2();var K8=Object.create,$m=Object.defineProperty,Y8=Object.getOwnPropertyDescriptor,Q8=Object.getOwnPropertyNames,J8=Object.getPrototypeOf,Z8=Object.prototype.hasOwnProperty,ep=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),X8=(e,t)=>{for(var n in t)$m(e,n,{get:t[n],enumerable:!0})},Xm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Q8(t))!Z8.call(e,a)&&a!==n&&$m(e,a,{get:()=>t[a],enumerable:!(r=Y8(t,a))||r.enumerable});return e},$8=(e,t,n)=>(Xm(e,t,"default"),n&&Xm(n,t,"default")),h2=(e,t,n)=>(n=e!=null?K8(J8(e)):{},Xm(t||!e||!e.__esModule?$m(n,"default",{value:e,enumerable:!0}):n,e)),eA=ep((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var xe=this._getInnerText(K);if(!(xe.length<25)){var nt=this._getNodeAncestors(K,5);if(nt.length!==0){var Ye=0;Ye+=1,Ye+=xe.split(",").length,Ye+=Math.min(Math.floor(xe.length/100),3),this._forEachNode(nt,function(Te,vt){if(!(!Te.tagName||!Te.parentNode||typeof Te.parentNode.tagName>"u")){if(typeof Te.readability>"u"&&(this._initializeNode(Te),h.push(Te)),vt===0)var zt=1;else vt===1?zt=2:zt=vt*3;Te.readability.contentScore+=Ye/zt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(w,0,v),b.length>this._nbTopCandidates&&b.pop();break}}}var T=b[0]||null,A=!1,k;if(T===null||T.tagName==="BODY"){for(T=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),T.appendChild(r.firstChild);r.appendChild(T),this._initializeNode(T)}else if(T){for(var R=[],F=1;F=.75&&R.push(this._getNodeAncestors(b[F]));var P=3;if(R.length>=P)for(k=T.parentNode;k.tagName!=="BODY";){for(var I=0,L=0;L=P){T=k;break}k=k.parentNode}T.readability||this._initializeNode(T),k=T.parentNode;for(var _=T.readability.contentScore,O=_/3;k.tagName!=="BODY";){if(!k.readability){k=k.parentNode;continue}var z=k.readability.contentScore;if(z_){T=k;break}_=k.readability.contentScore,k=k.parentNode}for(k=T.parentNode;k.tagName!="BODY"&&k.children.length==1;)T=k,k=T.parentNode;T.readability||this._initializeNode(T)}var V=a.createElement("DIV");i&&(V.id="readability-content");var ie=Math.max(10,T.readability.contentScore*.2);k=T.parentNode;for(var Ie=k.children,re=0,N=Ie.length;re=ie)W=!0;else if(j.nodeName==="P"){var ce=this._getLinkDensity(j),ze=this._getInnerText(j),pe=ze.length;(pe>80&&ce<.25||pe<80&&pe>0&&ce===0&&ze.search(/\.( |$)/)!==-1)&&(W=!0)}}W&&(this.log("Appending node:",j),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(j.nodeName)===-1&&(this.log("Altering sibling:",j,"to div."),j=this._setNodeTag(j,"DIV")),V.appendChild(j),Ie=k.children,re-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+V.innerHTML),this._prepArticle(V),this._debug&&this.log("Article content post-prep: "+V.innerHTML),A)T.id="readability-page-1",T.className="page";else{var he=a.createElement("DIV");for(he.id="readability-page-1",he.className="page";V.firstChild;)he.appendChild(V.firstChild);V.appendChild(he)}this._debug&&this.log("Article content after paging: "+V.innerHTML);var ge=!0,de=this._getInnerText(V,!0).length;if(de0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(k){return k._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,k=>u+=this._getInnerText(k).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||f===1&&C<75||f>1;if(s&&T){for(var A=0;A1)return T;let k=i.getElementsByTagName("li").length;if(p==k)return!1}return T}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),tA=ep((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),b2=ep((e,t)=>{var n=eA(),r=tA();t.exports={Readability:n,isProbablyReaderable:r}}),y2={};X8(y2,{Readability:()=>ec,default:()=>S2,isProbablyReaderable:()=>v2});var x2=h2(b2());$8(y2,h2(b2()));var{Readability:ec,isProbablyReaderable:v2}=x2,{default:f2,...nA}=x2,S2=f2!==void 0?f2:nA;var rA=Yl.alert;var go=console,tp=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=cr.green;r>1e4?a=cr.red:r>1e3&&(a=cr.yellow),go.debug(cr.dim(vi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Ws=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&go.log(cr.dim(vi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&go.log(cr.green(vi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&go.warn(cr.yellow(vi+" WARN:"),...t)}error(...t){this.#e<=3&&go.error(cr.red(vi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&go.error(cr.red(vi+" FATAL:"),...t)}timing(){return this.level===0?new tp:{reset:()=>{},stop:()=>{}}}},D=new Ws;var T2=["*://*/*","*","*://*"],w2="immersive-translate-wildcard-placeholder.com";function np(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>T2.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(T2.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return iA(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,w2),m;try{m=new URL(d)}catch{return D.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=aA(l+":",C2(p),C2(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function C2(e){return e.replaceAll(w2,"*")}function aA(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function Ze(e,t){return np(e,t)!==null}function iA(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],rp={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},E2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},ap={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},ip={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function X(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return X(document?.documentElement?.lang||"en")}var A2=Y+"SyncStoreKey_";function Nt(e,t){let n=A2+e;return $.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function at(e,t){let n=A2+e;return $.storage.sync.set({[n]:t})}var k2=Y+"StoreKey_";function Li(e,t){let n=k2+e;return $.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function D2(e,t){let n=k2+e;return $.storage.local.set({[n]:t})}var _q=L2(2),P2=L2(3);function L2(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var oA=/\s+/g,sA=/[\t\n\v\f\r ]+/g;function M2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?uA:lA;return String(e).replace(t.style==="html"?sA:oA,t.trim?cA(n):n)}function uA(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function lA(){return" "}function cA(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var R2={}.hasOwnProperty;function dA(e){return e==null?"":M2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function mA(e){return P2(" "+dA(e)+" ")}function pA(e){let t=mA(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function vA(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function SA(e,t,n,r){t=CA(t,n,r);let a=[],i;if(t)for(i in t)tc.call(t,i)&&a.push([i,TA(e,t[i])]);return a.length===0?sp():a.sort(wA)}function TA(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of BA){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?U2(e)?"zh-TW":"zh-CN":t:"auto"}var q2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],up=new Map(q2),IA=new Map(q2.map(([e,t])=>[t,e]));function z2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>IA.get(s));!t&&t!==0&&(t=25);let a=rc(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...up.keys()]},o=I2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return up.get(d)}}let[s,u]=o[0],l=up.get(s);if(l&&u>.9)return l}}catch(r){D.error(r)}return"auto"}function Na(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function _A(e,t){return e<>>32-t}function ic(e,t,n,r,a,i){return Na(_A(Na(Na(t,e),Na(r,i)),a),n)}function pn(e,t,n,r,a,i,o){return ic(t&n|~t&r,e,t,a,i,o)}function gn(e,t,n,r,a,i,o){return ic(t&r|n&~r,e,t,a,i,o)}function fn(e,t,n,r,a,i,o){return ic(t^n^r,e,t,a,i,o)}function hn(e,t,n,r,a,i,o){return ic(n^(t|~r),e,t,a,i,o)}function ac(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function lp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=ac(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=ac(a.concat(lp(t)),512+t.length*8),W2(ac(i.concat(o),512+128))}function G2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function cp(e){return unescape(encodeURIComponent(e))}function V2(e){return OA(cp(e))}function jA(e){return G2(V2(e))}function K2(e,t){return NA(cp(e),cp(t))}function UA(e,t){return G2(K2(e,t))}function $n(e,t,n){return t?n?K2(t,e):UA(t,e):n?V2(e):jA(e)}var oc=["caiyun","cai"],Y2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],fo={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:oe+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`+b+"]"}return r.pop(),a=b,f}},kE={parse:vE,stringify:AE},DE=kE,Wl=DE;var F1=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function PE(e,t){return!!(e===t||F1(e)&&F1(t))}function LE(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),OE=(e,t)=>{for(var n in t)_m(e,n,{get:t[n],enumerable:!0})},Im=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of FE(t))!IE.call(e,a)&&a!==n&&_m(e,a,{get:()=>t[a],enumerable:!(r=RE(t,a))||r.enumerable});return e},NE=(e,t,n)=>(Im(e,t,"default"),n&&Im(n,t,"default")),I1=(e,t,n)=>(n=e!=null?ME(BE(e)):{},Im(t||!e||!e.__esModule?_m(n,"default",{value:e,enumerable:!0}):n,e)),_1=_E((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Gl=="object"&&Gl&&Gl.Object===Object&&Gl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,h=Math.min,f=function(){return m.Date.now()};function y(A,k,R){var F,P,I,L,_,O,z=0,V=!1,ie=!1,Be=!0;if(typeof A!="function")throw new TypeError(n);k=S(k)||0,T(R)&&(V=!!R.leading,ie="maxWait"in R,I=ie?b(S(R.maxWait)||0,k):I,Be="trailing"in R?!!R.trailing:Be);function re(ge){var de=F,Te=P;return F=P=void 0,z=ge,L=A.apply(Te,de),L}function N(ge){return z=ge,_=setTimeout(me,k),V?re(ge):L}function j(ge){var de=ge-O,Te=ge-z,Ue=k-de;return ie?h(Ue,I-Te):Ue}function W(ge){var de=ge-O,Te=ge-z;return O===void 0||de>=k||de<0||ie&&Te>=I}function me(){var ge=f();if(W(ge))return ce(ge);_=setTimeout(me,j(ge))}function ce(ge){return _=void 0,Be&&F?re(ge):(F=P=void 0,L)}function We(){_!==void 0&&clearTimeout(_),z=0,F=O=P=_=void 0}function pe(){return _===void 0?L:ce(f())}function he(){var ge=f(),de=W(ge);if(F=arguments,P=this,O=ge,de){if(_===void 0)return N(O);if(ie)return _=setTimeout(me,k),re(O)}return _===void 0&&(_=setTimeout(me,k)),L}return he.cancel=We,he.flush=pe,he}function v(A,k,R){var F=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return T(R)&&(F="leading"in R?!!R.leading:F,P="trailing"in R?!!R.trailing:P),y(A,k,{leading:F,maxWait:k,trailing:P})}function T(A){var k=typeof A;return!!A&&(k=="object"||k=="function")}function w(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||w(A)&&g.call(A)==a}function S(A){if(typeof A=="number")return A;if(C(A))return r;if(T(A)){var k=typeof A.valueOf=="function"?A.valueOf():A;A=T(k)?k+"":k}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var R=s.test(A);return R||u.test(A)?l(A.slice(2),R?2:8):o.test(A)?r:+A}t.exports=v}),O1={};OE(O1,{default:()=>Jn});var jE=I1(_1());NE(O1,I1(_1()));var{default:B1,...UE}=jE,Jn=B1!==void 0?B1:UE;var Vl=globalThis||(typeof window<"u"?window:self),HE=Object.create,Nm=Object.defineProperty,qE=Object.getOwnPropertyDescriptor,zE=Object.getOwnPropertyNames,WE=Object.getPrototypeOf,GE=Object.prototype.hasOwnProperty,VE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KE=(e,t)=>{for(var n in t)Nm(e,n,{get:t[n],enumerable:!0})},Om=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zE(t))!GE.call(e,a)&&a!==n&&Nm(e,a,{get:()=>t[a],enumerable:!(r=qE(t,a))||r.enumerable});return e},YE=(e,t,n)=>(Om(e,t,"default"),n&&Om(n,t,"default")),j1=(e,t,n)=>(n=e!=null?HE(WE(e)):{},Om(t||!e||!e.__esModule?Nm(n,"default",{value:e,enumerable:!0}):n,e)),U1=VE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Vl=="object"&&Vl&&Vl.Object===Object&&Vl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,h=Math.min,f=function(){return m.Date.now()};function y(S,A,k){var R,F,P,I,L,_,O=0,z=!1,V=!1,ie=!0;if(typeof S!="function")throw new TypeError(n);A=C(A)||0,v(k)&&(z=!!k.leading,V="maxWait"in k,P=V?b(C(k.maxWait)||0,A):P,ie="trailing"in k?!!k.trailing:ie);function Be(he){var ge=R,de=F;return R=F=void 0,O=he,I=S.apply(de,ge),I}function re(he){return O=he,L=setTimeout(W,A),z?Be(he):I}function N(he){var ge=he-_,de=he-O,Te=A-ge;return V?h(Te,P-de):Te}function j(he){var ge=he-_,de=he-O;return _===void 0||ge>=A||ge<0||V&&de>=P}function W(){var he=f();if(j(he))return me(he);L=setTimeout(W,N(he))}function me(he){return L=void 0,ie&&R?Be(he):(R=F=void 0,I)}function ce(){L!==void 0&&clearTimeout(L),O=0,R=_=F=L=void 0}function We(){return L===void 0?I:me(f())}function pe(){var he=f(),ge=j(he);if(R=arguments,F=this,_=he,ge){if(L===void 0)return re(_);if(V)return L=setTimeout(W,A),Be(_)}return L===void 0&&(L=setTimeout(W,A)),I}return pe.cancel=ce,pe.flush=We,pe}function v(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function T(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||T(S)&&g.call(S)==a}function C(S){if(typeof S=="number")return S;if(w(S))return r;if(v(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=v(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(i,"");var k=s.test(S);return k||u.test(S)?l(S.slice(2),k?2:8):o.test(S)?r:+S}t.exports=y}),H1={};KE(H1,{default:()=>jn});var QE=j1(U1());YE(H1,j1(U1()));var{default:N1,...JE}=QE,jn=N1!==void 0?N1:JE;var ZE=Object.create,Um=Object.defineProperty,XE=Object.getOwnPropertyDescriptor,$E=Object.getOwnPropertyNames,e8=Object.getPrototypeOf,t8=Object.prototype.hasOwnProperty,n8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r8=(e,t)=>{for(var n in t)Um(e,n,{get:t[n],enumerable:!0})},jm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $E(t))!t8.call(e,a)&&a!==n&&Um(e,a,{get:()=>t[a],enumerable:!(r=XE(t,a))||r.enumerable});return e},a8=(e,t,n)=>(jm(e,t,"default"),n&&jm(n,t,"default")),z1=(e,t,n)=>(n=e!=null?ZE(e8(e)):{},jm(t||!e||!e.__esModule?Um(n,"default",{value:e,enumerable:!0}):n,e)),W1=n8((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,b){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:b})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,j){var W={};for(var me in N)j.indexOf(me)>=0||Object.prototype.hasOwnProperty.call(N,me)&&(W[me]=N[me]);return W}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},b=Object.assign||function(N){for(var j=1;j'+me+"
",Te.onclick=function(){return P(Ue,de)},Te.listener=function(K){(k(K)||R(K))&&_()},F(Te,de),We&&We<1&&(We=1),!he&&We&&T(We).then(function(){return P(Ue,de)})},z=d.force=function(N,j){var W=N.type,me=W===void 0?5:W,ce=N.text,We=N.buttonText,pe=We===void 0?"OK":We,he=N.callback,ge=N.position,de=ge===void 0?f.positions.force||de.top:ge;w(),_();var Te=document.createElement("div"),Ue=C();Te.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+ce+"
";var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(S[me]),xe.innerHTML=pe,xe.onclick=function(){P(Ue,de),L(),he?he():j&&j()},Te.appendChild(K),Te.appendChild(xe),Te.listener=function(nt){k(nt)&&xe.click()},F(Te,de),I()},V=d.confirm=function(N,j,W){var me=N.text,ce=N.submitText,We=ce===void 0?"Yes":ce,pe=N.cancelText,he=pe===void 0?"Cancel":pe,ge=N.submitCallback,de=N.cancelCallback,Te=N.position,Ue=Te===void 0?f.positions.confirm||Ue.top:Te;w(),_();var K=document.createElement("div"),xe=C();K.id=xe;var nt=document.createElement("div");nt.classList.add(f.classes.textbox),nt.classList.add(f.classes.backgroundInfo),nt.innerHTML='
'+me+"
";var Ye=document.createElement("div");Ye.classList.add(f.classes.button),Ye.classList.add(f.classes.elementHalf),Ye.classList.add(f.classes.backgroundSuccess),Ye.innerHTML=We,Ye.onclick=function(){P(xe,Ue),L(),ge?ge():j&&j()};var Se=document.createElement("div");Se.classList.add(f.classes.button),Se.classList.add(f.classes.elementHalf),Se.classList.add(f.classes.backgroundError),Se.innerHTML=he,Se.onclick=function(){P(xe,Ue),L(),de?de():W&&W()},K.appendChild(nt),K.appendChild(Ye),K.appendChild(Se),K.listener=function(vt){k(vt)?Ye.click():R(vt)&&Se.click()},F(K,Ue),I(K,Ue)},ie=function(N,j,W){var me=N.text,ce=N.submitText,We=ce===void 0?"Submit":ce,pe=N.cancelText,he=pe===void 0?"Cancel":pe,ge=N.submitCallback,de=N.cancelCallback,Te=N.position,Ue=Te===void 0?f.positions.input||Ue.top:Te,K=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);w(),_();var xe=document.createElement("div"),nt=C();xe.id=nt;var Ye=document.createElement("div");Ye.classList.add(f.classes.textbox),Ye.classList.add(f.classes.backgroundInfo),Ye.innerHTML='
'+me+"
";var Se=document.createElement("input");Se.classList.add(f.classes.inputField),Se.setAttribute("autocapitalize",K.autocapitalize||"none"),Se.setAttribute("autocomplete",K.autocomplete||"off"),Se.setAttribute("autocorrect",K.autocorrect||"off"),Se.setAttribute("autofocus",K.autofocus||"true"),Se.setAttribute("inputmode",K.inputmode||"verbatim"),Se.setAttribute("max",K.max||""),Se.setAttribute("maxlength",K.maxlength||""),Se.setAttribute("min",K.min||""),Se.setAttribute("minlength",K.minlength||""),Se.setAttribute("placeholder",K.placeholder||""),Se.setAttribute("spellcheck",K.spellcheck||"default"),Se.setAttribute("step",K.step||"any"),Se.setAttribute("type",K.type||"text"),Se.value=K.value||"",K.allowed&&(Se.oninput=function(){var Dt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",Cn=K.allowed,ur=0;ur'+W+"",de.appendChild(Ue),pe.forEach(function(xe,nt){var Ye=xe.type,Se=Ye===void 0?1:Ye,vt=xe.text,zt=xe.handler,Dt=document.createElement("div");Dt.classList.add(S[Se]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Bt=pe[nt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===Se&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){P(Te,ge),L(),zt()},de.appendChild(Dt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=ce,K.onclick=function(){P(Te,ge),L(),We?We():j&&j()},de.appendChild(K),de.listener=function(xe){R(xe)&&K.click()},F(de,ge),I(de,ge)},re=d.date=function(N,j,W){var me=N.value,ce=me===void 0?new Date:me,We=N.submitText,pe=We===void 0?"OK":We,he=N.cancelText,ge=he===void 0?"Cancel":he,de=N.submitCallback,Te=N.cancelCallback,Ue=N.position,K=Ue===void 0?f.positions.date||K.top:Ue;w(),_();var xe="▾",nt=document.createElement("div"),Ye=document.createElement("div"),Se=document.createElement("div"),vt=function(Tt){nt.innerHTML=f.dateMonths[Tt.getMonth()],Ye.innerHTML=Tt.getDate(),Se.innerHTML=Tt.getFullYear()},zt=function(Tt){var et=new Date(ce.getFullYear(),ce.getMonth()+1,0).getDate(),Kn=Tt.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>et&&(Kn=et.toString()),Tt.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),ce.setDate(Number(Kn))},Dt=function(Tt){var et=Tt.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Tt.target.textContent=et,ce.setFullYear(Number(et))},Bt=function(Tt){vt(ce)},Cn=function(Tt){var et=new Date(ce.getFullYear(),ce.getMonth()+Tt+1,0).getDate();ce.getDate()>et&&ce.setDate(et),ce.setMonth(ce.getMonth()+Tt),vt(ce)},ur=function(Tt){ce.setDate(ce.getDate()+Tt),vt(ce)},ys=function(Tt){var et=ce.getFullYear()+Tt;et<0?ce.setFullYear(0):ce.setFullYear(ce.getFullYear()+Tt),vt(ce)},Hr=document.createElement("div"),hi=C();Hr.id=hi;var Zi=document.createElement("div");Zi.classList.add(f.classes.backgroundInfo);var cn=document.createElement("div");cn.classList.add(f.classes.dateSelectorInner);var br=document.createElement("div");br.classList.add(f.classes.button),br.classList.add(f.classes.elementThird),br.classList.add(f.classes.dateSelectorUp),br.innerHTML=xe;var dn=document.createElement("div");dn.classList.add(f.classes.button),dn.classList.add(f.classes.elementThird),dn.classList.add(f.classes.dateSelectorUp),dn.innerHTML=xe;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=xe,nt.classList.add(f.classes.element),nt.classList.add(f.classes.elementThird),nt.innerHTML=f.dateMonths[ce.getMonth()],Ye.classList.add(f.classes.element),Ye.classList.add(f.classes.elementThird),Ye.setAttribute("contentEditable",!0),Ye.addEventListener("input",zt),Ye.addEventListener("blur",Bt),Ye.innerHTML=ce.getDate(),Se.classList.add(f.classes.element),Se.classList.add(f.classes.elementThird),Se.setAttribute("contentEditable",!0),Se.addEventListener("input",Dt),Se.addEventListener("blur",Bt),Se.innerHTML=ce.getFullYear();var ia=document.createElement("div");ia.classList.add(f.classes.button),ia.classList.add(f.classes.elementThird),ia.innerHTML=xe;var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementThird),oa.innerHTML=xe;var bi=document.createElement("div");bi.classList.add(f.classes.button),bi.classList.add(f.classes.elementThird),bi.innerHTML=xe,br.onclick=function(){return Cn(1)},dn.onclick=function(){return ur(1)},Vn.onclick=function(){return ys(1)},ia.onclick=function(){return Cn(-1)},oa.onclick=function(){return ur(-1)},bi.onclick=function(){return ys(-1)};var wn=document.createElement("div");wn.classList.add(f.classes.button),wn.classList.add(f.classes.elementHalf),wn.classList.add(f.classes.backgroundSuccess),wn.innerHTML=pe,wn.onclick=function(){P(hi,K),L(),de?de(ce):j&&j(ce)};var sa=document.createElement("div");sa.classList.add(f.classes.button),sa.classList.add(f.classes.elementHalf),sa.classList.add(f.classes.backgroundError),sa.innerHTML=ge,sa.onclick=function(){P(hi,K),L(),Te?Te(ce):W&&W(ce)},cn.appendChild(br),cn.appendChild(dn),cn.appendChild(Vn),cn.appendChild(nt),cn.appendChild(Ye),cn.appendChild(Se),cn.appendChild(ia),cn.appendChild(oa),cn.appendChild(bi),Zi.appendChild(cn),Hr.appendChild(Zi),Hr.appendChild(wn),Hr.appendChild(sa),Hr.listener=function(Tt){k(Tt)?wn.click():R(Tt)&&sa.click()},F(Hr,K),I(Hr,K)};d.default={alert:O,force:z,confirm:V,input:ie,select:Be,date:re,setOptions:y,hideAlerts:_}}])})}).call(r,a(0)(n))}])})}),G1={};r8(G1,{default:()=>Kl});var i8=z1(W1());a8(G1,z1(W1()));var{default:q1,...o8}=i8,Kl=q1!==void 0?q1:o8;var Yl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ns(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Hm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function V1(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ico[e.toLowerCase()]||Tr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),s8=e=>Object.keys(co).find(t=>co[t]===e),u8=e=>Object.keys(Tr).find(t=>Tr[t]===e);function X1(e){J1=e||"all"}function js(){return J1||"all"}function l8(){return ot.slice(0)}function c8(){return ot.map(e=>s8(e)||u8(e)||String.fromCharCode(e))}function d8(){let e=[];return Object.keys(St).forEach(t=>{St[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Us(o))})})}),e}function m8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function p8(e){return typeof e=="string"&&(e=Us(e)),ot.indexOf(e)!==-1}function g8(e,t){let n,r;e||(e=js());for(let a in St)if(Object.prototype.hasOwnProperty.call(St,a))for(n=St[a],r=0;r=0&&ot.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ot.splice(0,ot.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in Tr)Tr[r]===t&&(fa[r]=!1)}}function $1(e,...t){if(typeof e>"u")Object.keys(St).forEach(n=>delete St[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&zm(n)});else if(typeof e=="object")e.key&&zm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),zm({key:e,scope:n,method:r,splitKey:"+"})}}var zm=({key:e,scope:t,method:n,splitKey:r="+"})=>{qm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Us(u);if(!St[l])return;t||(t=js());let c=s>1?Hm(Tr,o):[];St[l]=St[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&V1(d.mods,c)))})};function Y1(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ot),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Q1(e,t){let n=St["*"],r=e.keyCode||e.which||e.charCode;if(!fa.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ot.indexOf(r)===-1&&r!==229&&ot.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Ql[i];e[i]&&ot.indexOf(o)===-1?ot.push(o):!e[i]&&ot.indexOf(o)>-1?ot.splice(ot.indexOf(o),1):i==="metaKey"&&e[i]&&ot.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ot=ot.slice(ot.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in Tr)Tr[i]===r&&(fa[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Ql[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ot.indexOf(17)===-1&&ot.push(17),ot.indexOf(18)===-1&&ot.push(18),tn[17]=!0,tn[18]=!0);let a=js();if(n)for(let i=0;i-1}function fa(e,t,n){ot=[];let r=qm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&$1(e,i);s1&&(a=Hm(Tr,e)),e=e[e.length-1],e=e==="*"?"*":Us(e),e in St||(St[e]=[]),St[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!h8(o)&&window&&(Z1.push(o),Ns(o,"keydown",p=>{Q1(p,o)},d),K1||(K1=!0,Ns(window,"focus",()=>{ot=[]},d),Ns(window,"click",()=>{ot=[]},!1)),Ns(o,"keyup",p=>{Q1(p,o),f8(p)},d))}function b8(e,t="all"){Object.keys(St).forEach(n=>{St[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Wm={getPressedKeyString:c8,setScope:X1,getScope:js,deleteScope:g8,getPressedKeyCodes:l8,getAllKeyCodes:d8,isPressed:p8,filter:m8,trigger:b8,unbind:$1,keyMap:co,modifier:Tr,modifierMap:Ql};for(let e in Wm)Object.prototype.hasOwnProperty.call(Wm,e)&&(fa[e]=Wm[e]);if(typeof window<"u"){let e=window.hotkeys;fa.noConflict=t=>(t&&window.hotkeys===fa&&(window.hotkeys=e),fa),window.hotkeys=fa}var Un=fa;var y8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t2={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Pn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},_a={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},q=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=q.getVersionPrecision(e),a=q.getVersionPrecision(t),i=Math.max(r,a),o=0,s=q.map([e,t],u=>{let l=i-q.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return q.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return y8[e]}static getBrowserTypeByAlias(e){return t2[e]||""}},st=/version\/(\d+(\.?_?\d+)+)/i,x8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=q.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=q.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=q.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=q.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=q.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=q.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=q.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=q.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=q.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=q.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=q.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=q.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=q.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=q.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=q.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=q.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=q.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=q.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=q.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=q.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=q.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=q.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=q.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=q.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=q.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=q.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:q.getFirstMatch(r,e),version:q.getSecondMatch(r,e)}}}],v8=x8,T8=[{test:[/Roku\/DVP/],describe(e){let t=q.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Pn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=q.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Pn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=q.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=q.getWindowsVersionName(t);return{name:Pn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Pn.iOS},n=q.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=q.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=q.getMacOSVersionName(t),r={name:Pn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=q.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Pn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=q.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=q.getAndroidVersionName(t),r={name:Pn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=q.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Pn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=q.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||q.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||q.getFirstMatch(/\bbb(\d+)/i,e);return{name:Pn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=q.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Pn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=q.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Pn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Pn.Linux}}},{test:[/CrOS/],describe(){return{name:Pn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=q.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Pn.PlayStation4,version:t}}}],S8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=q.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=q.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],C8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:_a.Blink};let t=q.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:_a.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:_a.Trident},n=q.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:_a.Presto},n=q.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:_a.Gecko},n=q.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:_a.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:_a.WebKit},n=q.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],w8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=q.find(v8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=q.find(T8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=q.find(S8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=q.find(C8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return q.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=q.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=q.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=q.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=q.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(q.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},e2=w8,E8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new e2(e,t)}static parse(e){return new e2(e).getResult()}static get BROWSER_MAP(){return t2}static get ENGINE_MAP(){return _a}static get OS_MAP(){return Pn}static get PLATFORMS_MAP(){return Ot}},mo=E8;var{entries:l2,setPrototypeOf:n2,isFrozen:A8,getPrototypeOf:k8,getOwnPropertyDescriptor:D8}=Object,{freeze:Ln,seal:Cr,create:P8}=Object,{apply:Jm,construct:Zm}=typeof Reflect<"u"&&Reflect;Jm||(Jm=function(e,t,n){return e.apply(t,n)});Ln||(Ln=function(e){return e});Cr||(Cr=function(e){return e});Zm||(Zm=function(e,t){return new e(...t)});var L8=dr(Array.prototype.forEach),r2=dr(Array.prototype.pop),Hs=dr(Array.prototype.push),Xl=dr(String.prototype.toLowerCase),Gm=dr(String.prototype.toString),M8=dr(String.prototype.match),Sr=dr(String.prototype.replace),R8=dr(String.prototype.indexOf),F8=dr(String.prototype.trim),Zn=dr(RegExp.prototype.test),qs=B8(TypeError);function dr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),j8=Cr(/\${[\w\W]*}/gm),U8=Cr(/^data-[\-\w.\u00B7-\uFFFF]/),H8=Cr(/^aria-[\-\w]+$/),c2=Cr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q8=Cr(/^(?:\w+script|data):/i),z8=Cr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),d2=Cr(/^html$/i),u2=Object.freeze({__proto__:null,MUSTACHE_EXPR:O8,ERB_EXPR:N8,TMPLIT_EXPR:j8,DATA_ATTR:U8,ARIA_ATTR:H8,IS_ALLOWED_URI:c2,IS_SCRIPT_OR_DATA:q8,ATTR_WHITESPACE:z8,DOCTYPE_NAME:d2}),W8=()=>typeof window>"u"?null:window,G8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function m2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W8(),t=M=>m2(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,b=Jl(g,"cloneNode"),h=Jl(g,"nextSibling"),f=Jl(g,"childNodes"),y=Jl(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,T="",{implementation:w,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:A}=a,{importNode:k}=n,R={};t.isSupported=typeof l2=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:z}=u2,{IS_ALLOWED_URI:V}=u2,ie=null,Be=Ne({},[...a2,...Vm,...Km,...Ym,...i2]),re=null,N=Ne({},[...o2,...Qm,...s2,...Zl]),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,me=null,ce=!0,We=!0,pe=!1,he=!0,ge=!1,de=!1,Te=!1,Ue=!1,K=!1,xe=!1,nt=!1,Ye=!0,Se=!1,vt="user-content-",zt=!0,Dt=!1,Bt={},Cn=null,ur=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ys=null,Hr=Ne({},["audio","video","img","source","image","track"]),hi=null,Zi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",Vn=dn,ia=!1,oa=null,bi=Ne({},[cn,br,dn],Gm),wn,sa=["application/xhtml+xml","text/html"],Tt="text/html",et,Kn=null,IC=a.createElement("form"),w4=function(M){return M instanceof RegExp||M instanceof Function},qd=function(M){if(!(Kn&&Kn===M)){if((!M||typeof M!="object")&&(M={}),M=po(M),wn=sa.indexOf(M.PARSER_MEDIA_TYPE)===-1?wn=Tt:wn=M.PARSER_MEDIA_TYPE,et=wn==="application/xhtml+xml"?Gm:Xl,ie="ALLOWED_TAGS"in M?Ne({},M.ALLOWED_TAGS,et):Be,re="ALLOWED_ATTR"in M?Ne({},M.ALLOWED_ATTR,et):N,oa="ALLOWED_NAMESPACES"in M?Ne({},M.ALLOWED_NAMESPACES,Gm):bi,hi="ADD_URI_SAFE_ATTR"in M?Ne(po(Zi),M.ADD_URI_SAFE_ATTR,et):Zi,ys="ADD_DATA_URI_TAGS"in M?Ne(po(Hr),M.ADD_DATA_URI_TAGS,et):Hr,Cn="FORBID_CONTENTS"in M?Ne({},M.FORBID_CONTENTS,et):ur,W="FORBID_TAGS"in M?Ne({},M.FORBID_TAGS,et):{},me="FORBID_ATTR"in M?Ne({},M.FORBID_ATTR,et):{},Bt="USE_PROFILES"in M?M.USE_PROFILES:!1,ce=M.ALLOW_ARIA_ATTR!==!1,We=M.ALLOW_DATA_ATTR!==!1,pe=M.ALLOW_UNKNOWN_PROTOCOLS||!1,he=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=M.SAFE_FOR_TEMPLATES||!1,de=M.WHOLE_DOCUMENT||!1,K=M.RETURN_DOM||!1,xe=M.RETURN_DOM_FRAGMENT||!1,nt=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Ye=M.SANITIZE_DOM!==!1,Se=M.SANITIZE_NAMED_PROPS||!1,zt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,V=M.ALLOWED_URI_REGEXP||c2,Vn=M.NAMESPACE||dn,j=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&w4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&w4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(We=!1),xe&&(K=!0),Bt&&(ie=Ne({},[...i2]),re=[],Bt.html===!0&&(Ne(ie,a2),Ne(re,o2)),Bt.svg===!0&&(Ne(ie,Vm),Ne(re,Qm),Ne(re,Zl)),Bt.svgFilters===!0&&(Ne(ie,Km),Ne(re,Qm),Ne(re,Zl)),Bt.mathMl===!0&&(Ne(ie,Ym),Ne(re,s2),Ne(re,Zl))),M.ADD_TAGS&&(ie===Be&&(ie=po(ie)),Ne(ie,M.ADD_TAGS,et)),M.ADD_ATTR&&(re===N&&(re=po(re)),Ne(re,M.ADD_ATTR,et)),M.ADD_URI_SAFE_ATTR&&Ne(hi,M.ADD_URI_SAFE_ATTR,et),M.FORBID_CONTENTS&&(Cn===ur&&(Cn=po(Cn)),Ne(Cn,M.FORBID_CONTENTS,et)),zt&&(ie["#text"]=!0),de&&Ne(ie,["html","head","body"]),ie.table&&(Ne(ie,["tbody"]),delete W.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw qs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else v===void 0&&(v=G8(p,r)),v!==null&&typeof T=="string"&&(T=v.createHTML(""));Ln&&Ln(M),Kn=M}},E4=Ne({},["mi","mo","mn","ms","mtext"]),A4=Ne({},["foreignobject","desc","title","annotation-xml"]),_C=Ne({},["title","style","font","a","script"]),il=Ne({},Vm);Ne(il,Km),Ne(il,I8);let zd=Ne({},Ym);Ne(zd,_8);let OC=function(M){let ue=y(M);(!ue||!ue.tagName)&&(ue={namespaceURI:Vn,tagName:"template"});let J=Xl(M.tagName),Je=Xl(ue.tagName);return oa[M.namespaceURI]?M.namespaceURI===br?ue.namespaceURI===dn?J==="svg":ue.namespaceURI===cn?J==="svg"&&(Je==="annotation-xml"||E4[Je]):!!il[J]:M.namespaceURI===cn?ue.namespaceURI===dn?J==="math":ue.namespaceURI===br?J==="math"&&A4[Je]:!!zd[J]:M.namespaceURI===dn?ue.namespaceURI===br&&!A4[Je]||ue.namespaceURI===cn&&!E4[Je]?!1:!zd[J]&&(_C[J]||!il[J]):!!(wn==="application/xhtml+xml"&&oa[M.namespaceURI]):!1},Xi=function(M){Hs(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},Wd=function(M,ue){try{Hs(t.removed,{attribute:ue.getAttributeNode(M),from:ue})}catch{Hs(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(M),M==="is"&&!re[M])if(K||xe)try{Xi(ue)}catch{}else try{ue.setAttribute(M,"")}catch{}},k4=function(M){let ue,J;if(Ue)M=""+M;else{let En=M8(M,/^[\r\n\t ]+/);J=En&&En[0]}wn==="application/xhtml+xml"&&Vn===dn&&(M=''+M+"");let Je=v?v.createHTML(M):M;if(Vn===dn)try{ue=new m().parseFromString(Je,wn)}catch{}if(!ue||!ue.documentElement){ue=w.createDocument(Vn,"template",null);try{ue.documentElement.innerHTML=ia?T:Je}catch{}}let Wt=ue.body||ue.documentElement;return M&&J&&Wt.insertBefore(a.createTextNode(J),Wt.childNodes[0]||null),Vn===dn?A.call(ue,de?"html":"body")[0]:de?ue.documentElement:Wt},D4=function(M){return C.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},NC=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},ol=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},ua=function(M,ue,J){R[M]&&L8(R[M],Je=>{Je.call(t,ue,J,Kn)})},P4=function(M){let ue;if(ua("beforeSanitizeElements",M,null),NC(M))return Xi(M),!0;let J=et(M.nodeName);if(ua("uponSanitizeElement",M,{tagName:J,allowedTags:ie}),M.hasChildNodes()&&!ol(M.firstElementChild)&&(!ol(M.content)||!ol(M.content.firstElementChild))&&Zn(/<[/\w]/g,M.innerHTML)&&Zn(/<[/\w]/g,M.textContent))return Xi(M),!0;if(!ie[J]||W[J]){if(!W[J]&&M4(J)&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,J)||j.tagNameCheck instanceof Function&&j.tagNameCheck(J)))return!1;if(zt&&!Cn[J]){let Je=y(M)||M.parentNode,Wt=f(M)||M.childNodes;if(Wt&&Je){let En=Wt.length;for(let On=En-1;On>=0;--On)Je.insertBefore(b(Wt[On],!0),h(M))}}return Xi(M),!0}return M instanceof u&&!OC(M)||(J==="noscript"||J==="noembed")&&Zn(/<\/no(script|embed)/i,M.innerHTML)?(Xi(M),!0):(ge&&M.nodeType===3&&(ue=M.textContent,ue=Sr(ue,F," "),ue=Sr(ue,P," "),ue=Sr(ue,I," "),M.textContent!==ue&&(Hs(t.removed,{element:M.cloneNode()}),M.textContent=ue)),ua("afterSanitizeElements",M,null),!1)},L4=function(M,ue,J){if(Ye&&(ue==="id"||ue==="name")&&(J in a||J in IC))return!1;if(!(We&&!me[ue]&&Zn(L,ue))&&!(ce&&Zn(_,ue))){if(!re[ue]||me[ue]){if(!(M4(M)&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,M)||j.tagNameCheck instanceof Function&&j.tagNameCheck(M))&&(j.attributeNameCheck instanceof RegExp&&Zn(j.attributeNameCheck,ue)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(ue))||ue==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Zn(j.tagNameCheck,J)||j.tagNameCheck instanceof Function&&j.tagNameCheck(J))))return!1}else if(!hi[ue]&&!Zn(V,Sr(J,z,""))&&!((ue==="src"||ue==="xlink:href"||ue==="href")&&M!=="script"&&R8(J,"data:")===0&&ys[M])&&!(pe&&!Zn(O,Sr(J,z,"")))&&J)return!1}return!0},M4=function(M){return M.indexOf("-")>0},R4=function(M){let ue,J,Je,Wt;ua("beforeSanitizeAttributes",M,null);let{attributes:En}=M;if(!En)return;let On={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re};for(Wt=En.length;Wt--;){ue=En[Wt];let{name:Xt,namespaceURI:$i}=ue;if(J=Xt==="value"?ue.value:F8(ue.value),Je=et(Xt),On.attrName=Je,On.attrValue=J,On.keepAttr=!0,On.forceKeepAttr=void 0,ua("uponSanitizeAttribute",M,On),J=On.attrValue,On.forceKeepAttr||(Wd(Xt,M),!On.keepAttr))continue;if(!he&&Zn(/\/>/i,J)){Wd(Xt,M);continue}ge&&(J=Sr(J,F," "),J=Sr(J,P," "),J=Sr(J,I," "));let F4=et(M.nodeName);if(L4(F4,Je,J)){if(Se&&(Je==="id"||Je==="name")&&(Wd(Xt,M),J=vt+J),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!$i)switch(p.getAttributeType(F4,Je)){case"TrustedHTML":{J=v.createHTML(J);break}case"TrustedScriptURL":{J=v.createScriptURL(J);break}}try{$i?M.setAttributeNS($i,Xt,J):M.setAttribute(Xt,J),r2(t.removed)}catch{}}}ua("afterSanitizeAttributes",M,null)},jC=function M(ue){let J,Je=D4(ue);for(ua("beforeSanitizeShadowDOM",ue,null);J=Je.nextNode();)ua("uponSanitizeShadowNode",J,null),!P4(J)&&(J.content instanceof i&&M(J.content),R4(J));ua("afterSanitizeShadowDOM",ue,null)};return t.sanitize=function(M){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J,Je,Wt,En;if(ia=!M,ia&&(M=""),typeof M!="string"&&!ol(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw qs("dirty is not a string, aborting")}else throw qs("toString is not a function");if(!t.isSupported)return M;if(Te||qd(ue),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let $i=et(M.nodeName);if(!ie[$i]||W[$i])throw qs("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)J=k4(""),Je=J.ownerDocument.importNode(M,!0),Je.nodeType===1&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?J=Je:J.appendChild(Je);else{if(!K&&!ge&&!de&&M.indexOf("<")===-1)return v&&nt?v.createHTML(M):M;if(J=k4(M),!J)return K?null:nt?T:""}J&&Ue&&Xi(J.firstChild);let On=D4(Dt?M:J);for(;Wt=On.nextNode();)P4(Wt)||(Wt.content instanceof i&&jC(Wt.content),R4(Wt));if(Dt)return M;if(K){if(xe)for(En=S.call(J.ownerDocument);J.firstChild;)En.appendChild(J.firstChild);else En=J;return(re.shadowroot||re.shadowrootmod)&&(En=k.call(n,En,!0)),En}let Xt=de?J.outerHTML:J.innerHTML;return de&&ie["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Zn(d2,J.ownerDocument.doctype.name)&&(Xt=" +`+Xt),ge&&(Xt=Sr(Xt,F," "),Xt=Sr(Xt,P," "),Xt=Sr(Xt,I," ")),v&&nt?v.createHTML(Xt):Xt},t.setConfig=function(M){qd(M),Te=!0},t.clearConfig=function(){Kn=null,Te=!1},t.isValidAttribute=function(M,ue,J){Kn||qd({});let Je=et(M),Wt=et(ue);return L4(Je,Wt,J)},t.addHook=function(M,ue){typeof ue=="function"&&(R[M]=R[M]||[],Hs(R[M],ue))},t.removeHook=function(M){if(R[M])return r2(R[M])},t.removeHooks=function(M){R[M]&&(R[M]=[])},t.removeAllHooks=function(){R={}},t}var rt=m2();var V8=Object.create,$m=Object.defineProperty,K8=Object.getOwnPropertyDescriptor,Y8=Object.getOwnPropertyNames,Q8=Object.getPrototypeOf,J8=Object.prototype.hasOwnProperty,ep=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z8=(e,t)=>{for(var n in t)$m(e,n,{get:t[n],enumerable:!0})},Xm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Y8(t))!J8.call(e,a)&&a!==n&&$m(e,a,{get:()=>t[a],enumerable:!(r=K8(t,a))||r.enumerable});return e},X8=(e,t,n)=>(Xm(e,t,"default"),n&&Xm(n,t,"default")),g2=(e,t,n)=>(n=e!=null?V8(Q8(e)):{},Xm(t||!e||!e.__esModule?$m(n,"default",{value:e,enumerable:!0}):n,e)),$8=ep((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,b,h,f){return o(b)+(h||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var xe=this._getInnerText(K);if(!(xe.length<25)){var nt=this._getNodeAncestors(K,5);if(nt.length!==0){var Ye=0;Ye+=1,Ye+=xe.split(",").length,Ye+=Math.min(Math.floor(xe.length/100),3),this._forEachNode(nt,function(Se,vt){if(!(!Se.tagName||!Se.parentNode||typeof Se.parentNode.tagName>"u")){if(typeof Se.readability>"u"&&(this._initializeNode(Se),b.push(Se)),vt===0)var zt=1;else vt===1?zt=2:zt=vt*3;Se.readability.contentScore+=Ye/zt}})}}}});for(var h=[],f=0,y=b.length;fC.readability.contentScore){h.splice(w,0,v),h.length>this._nbTopCandidates&&h.pop();break}}}var S=h[0]||null,A=!1,k;if(S===null||S.tagName==="BODY"){for(S=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),S.appendChild(r.firstChild);r.appendChild(S),this._initializeNode(S)}else if(S){for(var R=[],F=1;F=.75&&R.push(this._getNodeAncestors(h[F]));var P=3;if(R.length>=P)for(k=S.parentNode;k.tagName!=="BODY";){for(var I=0,L=0;L=P){S=k;break}k=k.parentNode}S.readability||this._initializeNode(S),k=S.parentNode;for(var _=S.readability.contentScore,O=_/3;k.tagName!=="BODY";){if(!k.readability){k=k.parentNode;continue}var z=k.readability.contentScore;if(z_){S=k;break}_=k.readability.contentScore,k=k.parentNode}for(k=S.parentNode;k.tagName!="BODY"&&k.children.length==1;)S=k,k=S.parentNode;S.readability||this._initializeNode(S)}var V=a.createElement("DIV");i&&(V.id="readability-content");var ie=Math.max(10,S.readability.contentScore*.2);k=S.parentNode;for(var Be=k.children,re=0,N=Be.length;re=ie)W=!0;else if(j.nodeName==="P"){var ce=this._getLinkDensity(j),We=this._getInnerText(j),pe=We.length;(pe>80&&ce<.25||pe<80&&pe>0&&ce===0&&We.search(/\.( |$)/)!==-1)&&(W=!0)}}W&&(this.log("Appending node:",j),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(j.nodeName)===-1&&(this.log("Altering sibling:",j,"to div."),j=this._setNodeTag(j,"DIV")),V.appendChild(j),Be=k.children,re-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+V.innerHTML),this._prepArticle(V),this._debug&&this.log("Article content post-prep: "+V.innerHTML),A)S.id="readability-page-1",S.className="page";else{var he=a.createElement("DIV");for(he.id="readability-page-1",he.className="page";V.firstChild;)he.appendChild(V.firstChild);V.appendChild(he)}this._debug&&this.log("Article content after paging: "+V.innerHTML);var ge=!0,de=this._getInnerText(V,!0).length;if(de0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(k){return k._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,k=>u+=this._getInnerText(k).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,h=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||b>Math.floor(m/3)||!s&&h<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&w>.2||c>=25&&w>.5||f===1&&C<75||f>1;if(s&&S){for(var A=0;A1)return S;let k=i.getElementsByTagName("li").length;if(p==k)return!1}return S}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),eA=ep((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),f2=ep((e,t)=>{var n=$8(),r=eA();t.exports={Readability:n,isProbablyReaderable:r}}),h2={};Z8(h2,{Readability:()=>$l,default:()=>x2,isProbablyReaderable:()=>y2});var b2=g2(f2());X8(h2,g2(f2()));var{Readability:$l,isProbablyReaderable:y2}=b2,{default:p2,...tA}=b2,x2=p2!==void 0?p2:tA;var nA=Kl.alert;var go=console,tp=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=cr.green;r>1e4?a=cr.red:r>1e3&&(a=cr.yellow),go.debug(cr.dim(xi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},zs=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&go.log(cr.dim(xi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&go.log(cr.green(xi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&go.warn(cr.yellow(xi+" WARN:"),...t)}error(...t){this.#e<=3&&go.error(cr.red(xi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&go.error(cr.red(xi+" FATAL:"),...t)}timing(){return this.level===0?new tp:{reset:()=>{},stop:()=>{}}}},D=new zs;var v2=["*://*/*","*","*://*"],S2="immersive-translate-wildcard-placeholder.com";function np(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>v2.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(v2.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return aA(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let h=u.split("://");l=h[0],l==="*"&&h.length>1&&(l="*",u="https://"+h[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,S2),m;try{m=new URL(d)}catch{return D.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let b=rA(l+":",T2(p),T2(g));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function T2(e){return e.replaceAll(S2,"*")}function rA(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function Ze(e,t){return np(e,t)!==null}function aA(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],rp={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},C2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},ap={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},ip={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function X(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return X(document?.documentElement?.lang||"en")}var w2=Y+"SyncStoreKey_";function Nt(e,t){let n=w2+e;return $.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function ct(e,t){let n=w2+e;return $.storage.sync.set({[n]:t})}var E2=Y+"StoreKey_";function Pi(e,t){let n=E2+e;return $.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function A2(e,t){let n=E2+e;return $.storage.local.set({[n]:t})}var Oq=D2(2),k2=D2(3);function D2(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var iA=/\s+/g,oA=/[\t\n\v\f\r ]+/g;function P2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?sA:uA;return String(e).replace(t.style==="html"?oA:iA,t.trim?lA(n):n)}function sA(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function uA(){return" "}function lA(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var L2={}.hasOwnProperty;function cA(e){return e==null?"":P2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function dA(e){return k2(" "+cA(e)+" ")}function mA(e){let t=dA(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function xA(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function vA(e,t,n,r){t=SA(t,n,r);let a=[],i;if(t)for(i in t)ec.call(t,i)&&a.push([i,TA(e,t[i])]);return a.length===0?sp():a.sort(CA)}function TA(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of FA){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?N2(e)?"zh-TW":"zh-CN":t:"auto"}var U2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],up=new Map(U2),BA=new Map(U2.map(([e,t])=>[t,e]));function H2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>BA.get(s));!t&&t!==0&&(t=25);let a=nc(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...up.keys()]},o=F2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return up.get(d)}}let[s,u]=o[0],l=up.get(s);if(l&&u>.9)return l}}catch(r){D.error(r)}return"auto"}function Oa(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function IA(e,t){return e<>>32-t}function ac(e,t,n,r,a,i){return Oa(IA(Oa(Oa(t,e),Oa(r,i)),a),n)}function mn(e,t,n,r,a,i,o){return ac(t&n|~t&r,e,t,a,i,o)}function pn(e,t,n,r,a,i,o){return ac(t&r|n&~r,e,t,a,i,o)}function gn(e,t,n,r,a,i,o){return ac(t^n^r,e,t,a,i,o)}function fn(e,t,n,r,a,i,o){return ac(n^(t|~r),e,t,a,i,o)}function rc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function lp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=rc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=rc(a.concat(lp(t)),512+t.length*8),q2(rc(i.concat(o),512+128))}function z2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function cp(e){return unescape(encodeURIComponent(e))}function W2(e){return _A(cp(e))}function NA(e){return z2(W2(e))}function G2(e,t){return OA(cp(e),cp(t))}function jA(e,t){return z2(G2(e,t))}function $n(e,t,n){return t?n?G2(t,e):jA(t,e):n?W2(e):NA(e)}var ic=["caiyun","cai"],V2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],fo={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:oe+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},wr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:oe+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: @@ -5471,19 +5471,19 @@ select.text-gray-6 { {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},gemini:{ai:!0,name:"Gemini",homepage:"https://ai.google.dev/aistudio/",docUrl:oe+"docs/services/gemini/",link2:oe+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_gemini",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:oe+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"geminiCustomDescription",descriptionLink1:"https://ai.google.dev/aistudio/",descriptionLink2:oe+"docs/services/gemini/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",providers:["custom"],options:[{label:"gemini-1.5-pro-latest",value:"gemini-1.5-pro-latest"},{label:"gemini-1.5-flash",value:"gemini-1.5-flash"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",descriptionKey:"description.apiUrl",descriptionLink1:oe+"docs/services/gemini/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},claude:{ai:!0,name:"Claude",homepage:"https://www.anthropic.com/",docUrl:oe+"docs/services/claude/",link2:oe+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_claude",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:oe+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"claudeCustomDescription",descriptionLink1:"https://www.anthropic.com/",descriptionLink2:oe+"docs/services/claude/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"claude-3-haiku-20240307",providers:["custom"],options:[{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-5-sonnet-20240620",value:"claude-3-5-sonnet-20240620"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"claude-2.1",value:"claude-2.1"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",providers:["custom"],descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:10,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.anthropic.com/v1/messages",descriptionKey:"description.apiUrl",descriptionLink1:oe+"docs/services/claude/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},siliconcloud:{ai:!0,name:"siliconcloud",homepage:"https://cloud.siliconflow.cn/",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],default:"Qwen/Qwen2.5-7B-Instruct",options:[{label:"Qwen/Qwen2.5-7B-Instruct",value:"Qwen/Qwen2.5-7B-Instruct"},{label:"meta-llama/Meta-Llama-3.1-8B-Instruct",value:"meta-llama/Meta-Llama-3.1-8B-Instruct"},{label:"THUDM/glm-4-9b-chat",value:"THUDM/glm-4-9b-chat"},{label:"google/gemma-2-9b-it",value:"google/gemma-2-9b-it"},{label:"01-ai/Yi-1.5-9B-Chat-16K",value:"01-ai/Yi-1.5-9B-Chat-16K"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"APIKEY",descriptionKey:"description.siliconcloudCustomAPIKey",descriptionLink1:"https://siliconflow.cn/",providers:["custom"],required:!1,type:"password",sensitive:!0,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0,default:5},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},yandex:{name:"Yandex",homepage:"https://translate.yandex.com/"},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},lingyiwanwu:{ai:!0,name:"lingyiwanwu",homepage:"https://platform.lingyiwanwu.com/docs",docUrl:oe+"docs/services/lingyiwanwu/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"yi-large",value:"yi-large"},{label:"yi-large-turbo",value:"yi-large-turbo"},{label:"yi-large-rag",value:"yi-large-rag"},{label:"yi-medium",value:"yi-medium"},{label:"yi-medium-200k",value:"yi-medium-200k"},{label:"yi-spark",value:"yi-spark"},{label:"yi-vision",value:"yi-vision"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:oe+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:oe+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:oe+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:oe+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:oe+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:oe+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:oe+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:oe+"docs/services/custom/",docUrl:oe+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:so,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:oe+"docs/services/openL/",beta:!0,allProps:[...Y2,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:Y2},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:oe+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:oe+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":fo,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:oe+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:oe+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:oe+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:oe+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:oe+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:oe+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:oe+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:oe+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:oe+"docs/services/custom/",docUrl:oe+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:so,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:oe+"docs/services/openL/",beta:!0,allProps:[...V2,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:V2},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:oe+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:oe+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":fo,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:oe+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},"aliyun-bailian":{ai:!0,name:"aliyun-bailian",homepage:"https://bailian.console.aliyun.com/",docUrl:oe+"docs/services/aliyun-bailian/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"qwen-long",options:[{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-long",value:"qwen-long"},{label:"qwen-max",value:"qwen-max"},{label:"qwen1.5-7b-chat",value:"qwen1.5-7b-chat"},{label:"qwen1.5-14b-chat",value:"qwen1.5-14b-chat"},{label:"qwen1.5-32b-chat",value:"qwen1.5-32b-chat"},{label:"qwen1.5-72b-chat",value:"qwen1.5-72b-chat"},{label:"qwen1.5-110b-chat",value:"qwen1.5-110b-chat"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:oe+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:oe+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:oe+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function HA(e,t,n=!1){let r=[];for(let u=0;u=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function Q2(e,t,n=!1){let r=HA(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function qA(e,t){let n=[],r=[];for(let a=0;a0?h=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function K2(e,t,n=!1){let r=UA(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function HA(e,t){let n=[],r=[];for(let a=0;a0?bt){let y=[];dp(b,t,y);for(let v=0;v0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&dp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:WA([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var sc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ht(u),c=Object.keys(wr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&ct()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=wr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=fo);let h=mp(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function Z2(e,t,n){return sc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:zA(r.config,n))}function zA(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function X2(e,t,n="en",r){return sc(e,t,n).find(o=>o.id===r)}function Vs(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function $2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function eb(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=wi.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function WA(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function GA(e,t){let n=Q2(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function uc(e,t){return e?`
-
${GA(t,e)}
-
${t}
`:t}function ho(e){let t=location.search.includes(Hl);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var bo=[],Pz=1e3*3600*24;async function lc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function tb(e){let t=`${B}-${e.service}@${e.from}->${e.to}`;return await YA(t,{...e,createAt:new Date().getTime()})}async function nb(e){let t=$n(e.originalText),n=`${B}-${e.service}@${e.from}->${e.to}`;return await KA(n,t)}async function KA(e,t){let n=await lc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function YA(e,t){let n=await lc(e);return(await rb()).includes(e)||await QA(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function QA(e){let t="cache_list",n=await lc(B+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),bo.push(e)},a.onerror=i=>{n.close()}}async function rb(){if(bo&&bo.length>0)return bo;let e=await lc(B+"-cacheList","cache_list");return bo=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),bo}async function ab(){try{let t=(await rb()).map(r=>JA(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function JA(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function it(){try{let e=[De().EBOOK_BUILDER_URL,De().EBOOK_VIEWER_URL,De().SUBTITLE_BUILDER_URL,De().HTML_VIEWER_URL,De().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+$t];da()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var cc="Original";function Ve(){return cc}function Rn(e){cc=e,ob(cc);let t=new CustomEvent(It,{detail:JSON.stringify({type:"updatePageStatus",payload:cc})});document.dispatchEvent(t)}var ib="Original";function yo(){return ib}function mr(e,t){if(t)return;ib=e;let n=new CustomEvent(ks,{detail:e});document.dispatchEvent(n)}var ub="auto",dc="auto",sb="auto";function lb(e){ub=e}function er(e){dc=e}function dt(){return dc!=="auto"?dc:sb!=="auto"?sb:ub}function mc(){return dc}var Ks=new Map,Wr=class{fromType;logger;constructor(t,n=!1){this.logger=new Ws,n&&this.logger.setLevel("debug"),this.fromType=t,Ks.has(t)||(Ks.set(t,new Map),$.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),b=Ks.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,v);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,v).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Ks.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Ks.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await $.runtime.sendMessage(o);return cb(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await $.tabs.sendMessage(i,o);return cb(o,s,this.logger)}}};function cb(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function ya(e){return e?.id?.endsWith("pdfWebPage")||!1}function Mi(e){try{if(!e||!ya(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function fp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function pc(e){return hp(JSON.stringify(e))}async function hp(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var pr,yp=0,gc=!1,Ys="initial",xp=!1,db="",mb,pb,vp=!1,bp=new Map;async function xo(e,t,n,r){if(vp=!1,pb=e.sourceProgram,mb=e.specialAiAssistant,r!=null&&xp&&pr||pr&&db==n&&!n.trim())return;Ys="initial",pr=void 0,xp=r||!1;let a=e.rule.bodyRule;if(gc=!1,!n||!a||!e.isPro||(yp=(a.contextTimeout||0)/100,yp<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(gc=i.enableAIContext||!1,!!gc&&e.user?.token)){Ys="requesting";try{let o=await hp(n);if(bp.has(o)){pr=bp.get(o);return}let s=await Q({url:tt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});db=n,pr={theme:s.theme,termsRaw:s.terms,terms:ZA(s.terms)},bp.set(o,pr)}catch{}finally{Ys="finished"}D.debug("requestTermsByContext contextTerms",pr)}}function gb(){xp||(Ys="initial",pr=void 0)}function fb(){vp=!0}function fc(){return mb?null:{contextTerms:pr,used:vp,sourceProgram:pb}}async function hb(){if(!(!gc||Ys=="initial")){for(let e=0;ee.includes(n)):[]}function ZA(e){let t=[];return e.split(` -`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var _e={},Gr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return _e.getIsDulSubtitle();if(n==="getPageStatus")return Ve();n==="updateContextState"&&await _e.updateContextState(r);let a=await _e.updateGlobalContext(),i=Date.now();if(D.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await _e.translateTheWholePage(r),at(lr,i);else if(n==="translateTheMainPage")await _e.translateTheMainPage(r),at(lr,i);else if(n==="translateToThePageEndImmediately")await _e.translateToThePageEndImmediately(r),at(lr,i);else if(n==="toggleTranslateManga")await _e.toggleTranslateManga(),at(lr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(ya(a?.rule)){let s=Mi(a.rule);vo(!0,s||o);return}await _e.toggleTranslatePage(r),at(lr,i)}else if(n==="toggleTranslateTheWholePage")await _e.toggleTranslateTheWholePage(r),at(lr,i);else if(n==="toggleTranslateTheMainPage")await _e.toggleTranslateTheMainPage(r),at(lr,i);else if(n==="toggleOnlyTransation")await _e.ensureSwitchTranslationMode(r),at(lr,i);else if(n=="toggleEnableEditTranslation")_e.toggleEnableEditTranslation();else if(n==="translatePage")await _e.translatePage(a,r),at(lr,i);else if(n==="toggleTranslationMask")await _e.toggleTranslationMask(r);else if(n==="restorePage")_e.restorePage();else if(n==="retryFailedParagraphs")_e.retryFailedParagraphs();else if(n=="change_translate_service")_e.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await _e.switchTranslationMode(r.mode),await _e.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")_e.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Dl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await _e.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Es,{detail:r}));else if(n==="translateWithOpenAI")await _e.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await _e.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await _e.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await _e.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await _e.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await _e.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await _e.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await _e.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await _e.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")it()||await _e.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!it())return JSON.stringify(a);await ot(5e3)}else if(n==="inputSelectedTextTranslate")await _e.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return _e.popupEventReport(a,r);if(n==="updateFloatBallEnable")return _e.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(Si,{detail:{type:"webReport"}})):n===K3&&await _e.translateSelectImage(a,r)}};function yb(e){Object.assign(_e,e)}function xb(e){Object.assign(_e,e)}function vb(e){Object.assign(_e,e)}var XA=function(e,t){let{method:n,data:r}=e;if(D.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ve();if(n==="getCurrentPageLanguage"){let a=dt();return _e.detectCurrentPageLanguage().catch(i=>{D.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return er(r),dt();if(n==="getContextString"){let a=_e.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=_e.getPureGlobalContext();return Mi(a?.rule)}else if(n=="getAIContextInfo")return fc()}},hc,bc;function Sb(){let e=yc();it()||$A(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function yc(){return hc||(hc=new Wr("content_script",!1).getConnection("main",Gr),hc)}function $A(){return bc||(bc=new Wr("content_script",!1).getConnection("main_sync",XA,{sync:!0}),bc)}var e7=new Map;function xc(e){let t=t7(64),n=new CustomEvent(H3,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{e7.set(t,(i,o)=>{i?a(i):r(o)})})}function t7(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await Q({url:vc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function n7(e,t){return Math.floor(Math.random()*(t-e+1))+e}var r7=30,Tp="RATE_LIMITER_TICKS",So=class e{static strictTicks={};static clearStrictTicks(){Er(Tp,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Ri(Tp)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){D.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Er(Tp,JSON.stringify(this.strictTicks))}catch(a){D.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=n7(4,r7);await ot(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await yc().sendMessage("background:main",e)}function Q(e){return xl()?xc({method:"request",data:e}):ne()||yl()?(e.fetchPolyfill=globalThis.GM_fetch,Sa(e)):lt({method:"fetch",data:e})}function gr(){return ne()?wt():lt({method:"getConfig"})}function Ht(e){return ne()?Ha(e):lt({method:"setUserConfig",data:e})}function Mt(){return ne()?bn():lt({method:"getUserConfig"})}function Fn(){return ne()?Vt():lt({method:"getLocalConfig"})}function va(e){return ne()?Rt(e):lt({method:"setLocalConfig",data:e})}function Tb(e){return ne()?Ec(e):lt({method:"setBuildinConfig",data:e})}async function Be(e){if(e.text){let n=rc(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(ne()||ct()){if(e.translateService&&!oc.includes(e.translateService))return Promise.resolve("auto");let r=z2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function Cb(){return lt({method:"detectTabLanguage"})}async function Sc(e){let t=await Be({text:e,pageLangs:["en"]});try{if(ne()||ct()){let n=e.substring(0,200);t=await xa.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function ob(e){let t=new CustomEvent(Ti,{detail:e});if(document.dispatchEvent(t),ne())return;yc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function wb(e){return ne()?nb(e):lt({method:"queryParagraphCache",data:e})}async function Eb(e){if(ne()){await tb(e);return}return lt({method:"setParagraphCache",data:e})}async function Ab(){if(ne())return Promise.resolve();await lt({method:"mockRequest"})}function Ua(e=!1,t=""){return document.querySelector(`meta[name=${B}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):ne()?($.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Tc(e=""){return ne()||ct()?De().OPTIONS_URL:$.runtime.getURL("options.html")}function Cp(e=""){return $&&$.runtime&&$.runtime.getURL?$.runtime.getURL("options.html"):""}function Cc(e=!1){return ne()?($.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Vr(e){return ne()?($.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function kb(e=!1){return ne()?($.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function Db(e=!1){return ne()?($.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function Pb(e){ct()}function vo(e=!1,t){return ne()?($.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function Lb(e=!1){return ne()?($.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function Qs(e){return ne()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function Mb(){return ne()?(D.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function wc(e,t=!1){return ne()?$.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function Rb(e,t){return ne()||be.MOCK==="1"?So.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function Fb(){return ne()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function Bb(){return ne()?!1:lt({method:"getIsOnToolbar"})}async function wp(){if(!ne())return lt({method:"updateVideoSubtitleStatus"})}function Js({targetLanguage:e,text:t}){ne()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Zs(){ne()||lt({method:"updateImageMenu"})}var Ib={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(h.length>t){let y=[];dp(h,t,y);for(let v=0;v0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&dp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(h.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];h.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:zA([...f,...h,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],b=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?b.push(f):g.push(f))});let h=b.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(h.length>0){for(let f of h)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:g}}var oc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ht(u),c=Object.keys(wr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&<()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=wr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=fo);let b=mp(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?b:null}).filter(p=>!!p);function m(p,g){let b=!!p.canary,h=!!p.alpha,f=!!p.beta;return g===e[t]||b&&o||h&&(a||o)||f&&(i||a||o)?!0:!h&&!f&&!b}};function Q2(e,t,n){return oc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:qA(r.config,n))}function qA(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function J2(e,t,n="en",r){return oc(e,t,n).find(o=>o.id===r)}function Gs(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function Z2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function X2(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ci.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function zA(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function WA(e,t){let n=K2(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function sc(e,t){return e?`
+
${WA(t,e)}
+
${t}
`:t}function ho(e){let t=location.search.includes(Ul);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var bo=[],Lz=1e3*3600*24;async function uc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function $2(e){let t=`${B}-${e.service}@${e.from}->${e.to}`;return await KA(t,{...e,createAt:new Date().getTime()})}async function eb(e){let t=$n(e.originalText),n=`${B}-${e.service}@${e.from}->${e.to}`;return await VA(n,t)}async function VA(e,t){let n=await uc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function KA(e,t){let n=await uc(e);return(await tb()).includes(e)||await YA(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function YA(e){let t="cache_list",n=await uc(B+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),bo.push(e)},a.onerror=i=>{n.close()}}async function tb(){if(bo&&bo.length>0)return bo;let e=await uc(B+"-cacheList","cache_list");return bo=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),bo}async function nb(){try{let t=(await tb()).map(r=>QA(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function QA(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function at(){try{let e=[De().EBOOK_BUILDER_URL,De().EBOOK_VIEWER_URL,De().SUBTITLE_BUILDER_URL,De().HTML_VIEWER_URL,De().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+$t];la()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var lc="Original";function Ve(){return lc}function Mn(e){lc=e,ab(lc);let t=new CustomEvent(It,{detail:JSON.stringify({type:"updatePageStatus",payload:lc})});document.dispatchEvent(t)}var rb="Original";function yo(){return rb}function mr(e,t){if(t)return;rb=e;let n=new CustomEvent(ks,{detail:e});document.dispatchEvent(n)}var ob="auto",cc="auto",ib="auto";function sb(e){ob=e}function er(e){cc=e}function dt(){return cc!=="auto"?cc:ib!=="auto"?ib:ob}function dc(){return cc}var Vs=new Map,zr=class{fromType;logger;constructor(t,n=!1){this.logger=new zs,n&&this.logger.setLevel("debug"),this.fromType=t,Vs.has(t)||(Vs.set(t,new Map),$.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),h=Vs.get(m).get(p);if(!h)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=h,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let T=f(r.payload,v);i({ok:!0,data:T})}catch(T){i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.details,errorStatus:T.status})}return!1}else return f(r.payload,v).then(T=>{i({ok:!0,data:T})}).catch(T=>{i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.message,errorStatus:T.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Vs.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Vs.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await $.runtime.sendMessage(o);return ub(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await $.tabs.sendMessage(i,o);return ub(o,s,this.logger)}}};function ub(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function ha(e){return e?.id?.endsWith("pdfWebPage")||!1}function Li(e){try{if(!e||!ha(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function fp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function mc(e){return hp(JSON.stringify(e))}async function hp(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var pr,yp=0,pc=!1,Ks="initial",xp=!1,lb="",cb,db,vp=!1,bp=new Map;async function xo(e,t,n,r){if(vp=!1,db=e.sourceProgram,cb=e.specialAiAssistant,r!=null&&xp&&pr||pr&&lb==n&&!n.trim())return;Ks="initial",pr=void 0,xp=r||!1;let a=e.rule.bodyRule;if(pc=!1,!n||!a||!e.isPro||(yp=(a.contextTimeout||0)/100,yp<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(pc=i.enableAIContext||!1,!!pc&&e.user?.token)){Ks="requesting";try{let o=await hp(n);if(bp.has(o)){pr=bp.get(o);return}let s=await Q({url:tt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});lb=n,pr={theme:s.theme,termsRaw:s.terms,terms:JA(s.terms)},bp.set(o,pr)}catch{}finally{Ks="finished"}D.debug("requestTermsByContext contextTerms",pr)}}function mb(){xp||(Ks="initial",pr=void 0)}function pb(){vp=!0}function gc(){return cb?null:{contextTerms:pr,used:vp,sourceProgram:db}}async function gb(){if(!(!pc||Ks=="initial")){for(let e=0;ee.includes(n)):[]}function JA(e){let t=[];return e.split(` +`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Ie={},Wr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Ie.getIsDulSubtitle();if(n==="getPageStatus")return Ve();n==="updateContextState"&&await Ie.updateContextState(r);let a=await Ie.updateGlobalContext(),i=Date.now();if(D.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Ie.translateTheWholePage(r),ct(lr,i);else if(n==="translateTheMainPage")await Ie.translateTheMainPage(r),ct(lr,i);else if(n==="translateToThePageEndImmediately")await Ie.translateToThePageEndImmediately(r),ct(lr,i);else if(n==="toggleTranslateManga")await Ie.toggleTranslateManga(),ct(lr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(ha(a?.rule)){let s=Li(a.rule);vo(!0,s||o);return}await Ie.toggleTranslatePage(r),ct(lr,i)}else if(n==="toggleTranslateTheWholePage")await Ie.toggleTranslateTheWholePage(r),ct(lr,i);else if(n==="toggleTranslateTheMainPage")await Ie.toggleTranslateTheMainPage(r),ct(lr,i);else if(n==="toggleOnlyTransation")await Ie.ensureSwitchTranslationMode(r),ct(lr,i);else if(n=="toggleEnableEditTranslation")Ie.toggleEnableEditTranslation();else if(n==="translatePage")await Ie.translatePage(a,r),ct(lr,i);else if(n==="toggleTranslationMask")await Ie.toggleTranslationMask(r);else if(n==="restorePage")Ie.restorePage();else if(n==="retryFailedParagraphs")Ie.retryFailedParagraphs();else if(n=="change_translate_service")Ie.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Ie.switchTranslationMode(r.mode),await Ie.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Ie.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(kl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Ie.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Es,{detail:r}));else if(n==="translateWithOpenAI")await Ie.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Ie.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Ie.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Ie.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Ie.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Ie.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Ie.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Ie.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Ie.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")at()||await Ie.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!at())return JSON.stringify(a);await it(5e3)}else if(n==="inputSelectedTextTranslate")await Ie.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Ie.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Ie.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}})):n===G3&&await Ie.translateSelectImage(a,r)}};function hb(e){Object.assign(Ie,e)}function bb(e){Object.assign(Ie,e)}function yb(e){Object.assign(Ie,e)}var ZA=function(e,t){let{method:n,data:r}=e;if(D.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ve();if(n==="getCurrentPageLanguage"){let a=dt();return Ie.detectCurrentPageLanguage().catch(i=>{D.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return er(r),dt();if(n==="getContextString"){let a=Ie.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Ie.getPureGlobalContext();return Li(a?.rule)}else if(n=="getAIContextInfo")return gc()}},fc,hc;function xb(){let e=bc();at()||XA(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function bc(){return fc||(fc=new zr("content_script",!1).getConnection("main",Wr),fc)}function XA(){return hc||(hc=new zr("content_script",!1).getConnection("main_sync",ZA,{sync:!0}),hc)}var $A=new Map;function yc(e){let t=e7(64),n=new CustomEvent(j3,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{$A.set(t,(i,o)=>{i?a(i):r(o)})})}function e7(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await Q({url:xc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function t7(e,t){return Math.floor(Math.random()*(t-e+1))+e}var n7=30,Sp="RATE_LIMITER_TICKS",To=class e{static strictTicks={};static clearStrictTicks(){Er(Sp,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mi(Sp)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){D.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Er(Sp,JSON.stringify(this.strictTicks))}catch(a){D.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=t7(4,n7);await it(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ut(e){return await bc().sendMessage("background:main",e)}function Q(e){return yl()?yc({method:"request",data:e}):ne()||bl()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):ut({method:"fetch",data:e})}function gr(){return ne()?wt():ut({method:"getConfig"})}function Ht(e){return ne()?Ua(e):ut({method:"setUserConfig",data:e})}function Mt(){return ne()?hn():ut({method:"getUserConfig"})}function Rn(){return ne()?Vt():ut({method:"getLocalConfig"})}function ya(e){return ne()?Rt(e):ut({method:"setLocalConfig",data:e})}function vb(e){return ne()?wc(e):ut({method:"setBuildinConfig",data:e})}async function je(e){if(e.text){let n=nc(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(ne()||lt()){if(e.translateService&&!ic.includes(e.translateService))return Promise.resolve("auto");let r=H2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ut({method:"detectLanguage",data:e});return Promise.resolve(t)}function Tb(){return ut({method:"detectTabLanguage"})}async function vc(e){let t=await je({text:e,pageLangs:["en"]});try{if(ne()||lt()){let n=e.substring(0,200);t=await ba.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function ab(e){let t=new CustomEvent(Ti,{detail:e});if(document.dispatchEvent(t),ne())return;bc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function Sb(e){return ne()?eb(e):ut({method:"queryParagraphCache",data:e})}async function Cb(e){if(ne()){await $2(e);return}return ut({method:"setParagraphCache",data:e})}async function wb(){if(ne())return Promise.resolve();await ut({method:"mockRequest"})}function ja(e=!1,t=""){return document.querySelector(`meta[name=${B}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):ne()?($.runtime.openOptionsPage(e,t),Promise.resolve()):ut({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Tc(e=""){return ne()||lt()?De().OPTIONS_URL:$.runtime.getURL("options.html")}function Cp(e=""){return $&&$.runtime&&$.runtime.getURL?$.runtime.getURL("options.html"):""}function Sc(e=!1){return ne()?($.extra.openAboutPage(e),Promise.resolve()):ut({method:"openAboutPage"})}function Gr(e){return ne()?($.extra.openInTab(e),Promise.resolve()):ut({method:"openInTab",data:e})}function Eb(e=!1){return ne()?($.extra.openEbookViewerPage(e),Promise.resolve()):ut({method:"openEbookViewerPage"})}function Ab(e=!1){return ne()?($.extra.openEbookBuilderPage(e),Promise.resolve()):ut({method:"openEbookBuilderPage"})}function kb(e){lt()}function vo(e=!1,t){return ne()?($.extra.openPdfViewerPage(e),Promise.resolve()):ut({method:"openPdfViewerPage",data:{url:t}})}function Db(e=!1){return ne()?($.extra.openSubtitleBuilderPage(e),Promise.resolve()):ut({method:"openSubtitleBuilderPage"})}function Ys(e){return ne()?Promise.resolve():ut({method:"setBadge",data:{text:e}})}function Pb(){return ne()?(D.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ut({method:"autoSyncLatestConfig"})}function Cc(e,t=!1){return ne()?$.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function Lb(e,t){return ne()||be.MOCK==="1"?To.getDelay(e,t):ut({method:"getDelay",data:{key:e,options:t}})}async function Mb(){return ne()?!1:ut({method:"getIsSupportIsOnToolbar"})}async function Rb(){return ne()?!1:ut({method:"getIsOnToolbar"})}async function wp(){if(!ne())return ut({method:"updateVideoSubtitleStatus"})}function Qs({targetLanguage:e,text:t}){ne()||ut({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Js(){ne()||ut({method:"updateImageMenu"})}var Fb={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5495,7 +5495,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var _b={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var Bb={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5509,7 +5509,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var Ob={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var Ib={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5522,20 +5522,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var s7=[{code:"zh-CN",messages:Ib},{code:"zh-TW",messages:_b},{code:"en",messages:Ob}],Nb=ne()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],qa={};for(let e of s7)qa[e.code]=e.messages;function u7(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=c7(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:B+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function jb(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function l7(e,t,n,r){if(!qa.hasOwnProperty(t)&&!qa.hasOwnProperty(n))return e;let a=jb(qa,t,e);return a===e&&t!==n&&(a=jb(qa,n,e)),u7(a,r)}function c7(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return l7(t,e,"en",n)}function Ub(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function Hb(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return wi.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:_l,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:_l,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var o7=[{code:"zh-CN",messages:Fb},{code:"zh-TW",messages:Bb},{code:"en",messages:Ib}],_b=ne()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ha={};for(let e of o7)Ha[e.code]=e.messages;function s7(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=l7(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:B+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function Ob(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function u7(e,t,n,r){if(!Ha.hasOwnProperty(t)&&!Ha.hasOwnProperty(n))return e;let a=Ob(Ha,t,e);return a===e&&t!==n&&(a=Ob(Ha,n,e)),s7(a,r)}function l7(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return u7(t,e,"en",n)}function Nb(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function jb(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ci.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Il,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Il,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:_l,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(wi.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:B,href:g1})];Ep(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Il,2:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:oe+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ci.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:B,href:m1})];Ep(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=x1,i?o.push(r("proQuotaError.trail",{brandId:B,href:ym})):o.push(r("proQuotaError.newPackage",{brandId:B,href:s})),Ep(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=b1,i?o.push(r("proQuotaError.trail",{brandId:B,href:ym})):o.push(r("proQuotaError.newPackage",{brandId:B,href:s})),Ep(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:B,href:Nl}));else{let d="";u=="AI"?d=b1:d=y1,o?l.push(r("proQuotaError.trail",{brandId:B,href:ym})):l.push(r("proQuotaError.package",{brandId:B,href:d,translationService:u})),Ep(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:B,href:Ol}));else{let d="";u=="AI"?d=f1:d=h1,o?l.push(r("proQuotaError.trail",{brandId:B,href:ym})):l.push(r("proQuotaError.package",{brandId:B,href:d,translationService:u})),Ep(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function Ep(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||Hb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:Ub(i,"YYYY-MM-DD HH:mm:ss")}))}function Ac(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function qb(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function zb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function kc(e){let{mimeType:t,base64:n}=d7(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await Am(Wb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Wb(e);return t}async function Wb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Ac(e.body):r=="urlSearchParams"?a.body=qb(e.body):r=="blob"&&e.body&&(a.body=kc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){D.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of m7(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` -`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){D.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){D.error("parse response failed",h)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${$t}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*m7(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var p7="";function To(){return p7||globalThis.navigator.userAgent}function Xs(){return To().includes("ImtFxiOS")}function Gb(){let t=To().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ap(){return To().includes("ImtFxAndroid")}function Vb(){let e=To();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function Kb(){let t=To().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function $s(){let e=To();if(Xs()||Ap()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Dc=function(){return Dc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,g7()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function eu(e){return e.then(void 0,function(){}),e}function h7(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function y7(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function x7(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function za(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function fr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function Co(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function tr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];xt(e,t),fr(e,v7),t[1]=e[0]>>>1,xt(e,t),fr(e,S7),t[1]=e[0]>>>1,xt(e,t)}var Pc=[2277735313,289559509],Lc=[1291169091,658871167],Zb=[0,5],T7=[0,1390208809],C7=[0,944331445];function w7(e,t){var n=x7(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function E7(e){var t;return Dc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function A7(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function k7(e){return typeof e!="function"}function D7(e,t){var n=eu(new Promise(function(r){var a=Date.now();Yb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function L7(){var e=window,t=navigator;return nr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!cy()}function Fc(){var e=window,t=navigator;return nr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Pr(){var e=window,t=navigator;return nr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Bp(){var e=window,t=e.HTMLElement,n=e.Document;return nr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function tu(){var e=window;return A7(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function dy(){var e,t,n=window;return nr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function M7(){var e=window;return nr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function R7(){var e=window;return nr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function nu(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return nr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function F7(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function B7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function I7(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ip(){var e=Fc(),t=dy(),n=window,r=navigator,a="connection";return e?nr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?nr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function _7(){return j7()?-4:O7()}function O7(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(N7())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=U7(a),u=s[0],l=s[1],c=eu(u.then(function(d){return H7(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function N7(){return Pr()&&!Bp()&&!R7()}function j7(){return Pr()&&nu()&&tu()}function U7(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Xb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(uy(g)&&eu(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Xb("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function H7(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function yk(){var e=new Date().getFullYear();return Math.max(Dr(new Date(e,0,1).getTimezoneOffset()),Dr(new Date(e,6,1).getTimezoneOffset()))}function xk(){try{return!!window.sessionStorage}catch{return!0}}function vk(){try{return!!window.localStorage}catch{return!0}}function Sk(){if(!(cy()||L7()))try{return!!window.indexedDB}catch{return!0}}function Tk(){return!!window.openDatabase}function Ck(){return navigator.cpuClass}function wk(){var e=navigator.platform;return e==="MacIntel"&&Pr()&&!Bp()?F7()?"iPad":"iPhone":e}function Ek(){return navigator.vendor||""}function Ak(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function Lk(){return Pr()||Ip()}function Mk(e){var t;return Ar(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return kr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},ey(r),u=0;u`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function Ep(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||jb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:Nb(i,"YYYY-MM-DD HH:mm:ss")}))}function Ec(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function Ub(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function Hb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function Ac(e){let{mimeType:t,base64:n}=c7(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await Am(qb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await qb(e);return t}async function qb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Ec(e.body):r=="urlSearchParams"?a.body=Ub(e.body):r=="blob"&&e.body&&(a.body=Ac(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){D.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let b=d.result;p(b)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of d7(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` +`))>=0;){let b=c.slice(0,g).trim();if(c=c.slice(g+1),b.startsWith("event:")||b==="")continue;let h="";if(b.startsWith("data:")&&(h=b.slice(5).trim()),h==="[DONE]")break;let f;try{f=JSON.parse(h??"")}catch(y){D.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(b){D.error("parse response failed",b)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${$t}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*d7(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var m7="";function So(){return m7||globalThis.navigator.userAgent}function Zs(){return So().includes("ImtFxiOS")}function zb(){let t=So().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ap(){return So().includes("ImtFxAndroid")}function Wb(){let e=So();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function Gb(){let t=So().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Xs(){let e=So();if(Zs()||Ap()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var kc=function(){return kc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,p7()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function $s(e){return e.then(void 0,function(){}),e}function f7(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function b7(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function y7(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function qa(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function fr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function Co(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function tr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];xt(e,t),fr(e,x7),t[1]=e[0]>>>1,xt(e,t),fr(e,v7),t[1]=e[0]>>>1,xt(e,t)}var Dc=[2277735313,289559509],Pc=[1291169091,658871167],Qb=[0,5],T7=[0,1390208809],S7=[0,944331445];function C7(e,t){var n=y7(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function w7(e){var t;return kc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function E7(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function A7(e){return typeof e!="function"}function k7(e,t){var n=$s(new Promise(function(r){var a=Date.now();Vb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function P7(){var e=window,t=navigator;return nr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!uy()}function Rc(){var e=window,t=navigator;return nr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Pr(){var e=window,t=navigator;return nr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Bp(){var e=window,t=e.HTMLElement,n=e.Document;return nr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function eu(){var e=window;return E7(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function ly(){var e,t,n=window;return nr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function L7(){var e=window;return nr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function M7(){var e=window;return nr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function tu(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return nr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function R7(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function F7(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function B7(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ip(){var e=Rc(),t=ly(),n=window,r=navigator,a="connection";return e?nr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?nr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function I7(){return N7()?-4:_7()}function _7(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(O7())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=j7(a),u=s[0],l=s[1],c=$s(u.then(function(d){return U7(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function O7(){return Pr()&&!Bp()&&!M7()}function N7(){return Pr()&&tu()&&eu()}function j7(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Jb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(oy(g)&&$s(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Jb("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function U7(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function bk(){var e=new Date().getFullYear();return Math.max(Dr(new Date(e,0,1).getTimezoneOffset()),Dr(new Date(e,6,1).getTimezoneOffset()))}function yk(){try{return!!window.sessionStorage}catch{return!0}}function xk(){try{return!!window.localStorage}catch{return!0}}function vk(){if(!(uy()||P7()))try{return!!window.indexedDB}catch{return!0}}function Tk(){return!!window.openDatabase}function Sk(){return navigator.cpuClass}function Ck(){var e=navigator.platform;return e==="MacIntel"&&Pr()&&!Bp()?R7()?"iPad":"iPhone":e}function wk(){return navigator.vendor||""}function Ek(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function Pk(){return Pr()||Ip()}function Lk(e){var t;return Ar(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return kr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},Xb(r),u=0;u')}function Vk(){return navigator.pdfViewerEnabled}function Kk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Yk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Qk())return-3;try{return e.canMakePayments()?1:0}catch(t){return Jk(t)}}var Qk=W7;function Jk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Zk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var py=-1,gy=-2,Xk=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),$k=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),eD=["FRAGMENT_SHADER","VERTEX_SHADER"],tD=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],fy="WEBGL_debug_renderer_info",nD="WEBGL_polygon_mode";function rD(e){var t,n,r,a,i,o,s=e.cache,u=hy(s);if(!u)return py;if(!yy(u))return gy;var l=by()?null:u.getExtension(fy);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function aD(e){var t=e.cache,n=hy(t);if(!n)return py;if(!yy(n))return gy;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(sy,"/npm-monitoring"),!0),e.send()}catch{}}function SD(e){var t;return e===void 0&&(e={}),Ar(this,void 0,void 0,function(){var n,r,a;return kr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&vD(),n=e.delayFallback,r=e.debug,[4,yD(n)];case 1:return i.sent(),a=cD({cache:{},debug:r}),[2,xD(a,r)]}})})}var _p={load:SD,hashComponents:xy,componentsToDebugString:hD};async function ru(){let e=await Nt("fakeUserId","");e||(e=await Li("fakeUserId",""),e&&await at("fakeUserId",e));let t=new Date,n=await Nt("installedAt","");return n||(n=await Li("installedAt",""),n&&await at("installedAt",n)),e?n||(n=new Date(0).toISOString(),await at("installedAt",n)):(e=await wD(64),await at("fakeUserId",e)),n||(n=t.toISOString(),await at("installedAt",n)),{fakeUserId:e,installedAt:n}}var TD=10;async function Ao(){let e=await Nt("userTag","");if(e)return e;let{fakeUserId:t}=await ru(),r=t.charCodeAt(0)%TD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await at("userTag",e),e}function CD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):ED(i,e)}catch{return CD(64)}}function ED(e,t=32){let n="";for(let a=0;a{}),Oc)}async function Ty(e,t){try{let n=De(),r=n.INSTALL_FROM==="firefox_store";if($s()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=ne(),o=it(),s=n.PROD==="1",u=yn(),l=new Date,{fakeUserId:c,installedAt:d}=await ru(),m=await Ao(),p=await ko(),g=await Do(),h=new Date(d),b=Wa(h),f=Wa(l),y=b===f,v=24*60*60*1e3,S=l.getTime()-h.getTime()<7*v,w=l.getTime()-h.getTime()<30*v,C=l.getTime()-h.getTime()<365*v,T=jl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let k=mo.parse(A),R=e.map(F=>{let P=F.params||{};if(k.os&&(P.os_name=k.os.name||"unknown",P.os_version=k.os.version||"unknown",P.os_version_name=k.os.versionName||"unknown"),k.browser){P.browser_name=k.browser.name||"unknown",P.browser_version=k.browser.version||"unknown";let I=$s();I&&(P.browser_name=I.name,P.browser_version=I.version)}if(k.platform&&(P.platform_type=k.platform.type||"unknown"),k.engine&&(P.engine_name=k.engine.name||"unknown",P.engine_version=k.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),b){P.install_day=Bc(h);let I=_c(h);P.install_week=`${I.year}${I.week}`}return P.userscript=i.toString(),y?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=S?"1":"0",P.is_new_user_this_month=w?"1":"0",P.is_new_user_this_year=C?"1":"0",o?P.main_frame=0:P.main_frame=1,m&&(P.ab_tag=m),p&&(P.ab_group=p),P.campaign=g||"none",{...F,params:P}});T.forEach(async F=>{let P=await au({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&DD(c,R)}catch{}}async function kD(e){return await AD().sendMessage("background:main",e)}function au(e){return xl()?xc({method:"request",data:e}):ne()||yl()?(e.fetchPolyfill=globalThis.GM_fetch,Sa(e)):kD({method:"fetch",data:e})}function DD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Ic(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);au({url:Is,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var Nc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function Rk(){for(var e=0,t=["rec2020","p3","srgb"];e')}function Gk(){return navigator.pdfViewerEnabled}function Vk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Kk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Yk())return-3;try{return e.canMakePayments()?1:0}catch(t){return Qk(t)}}var Yk=z7;function Qk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Jk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var dy=-1,my=-2,Zk=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Xk=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),$k=["FRAGMENT_SHADER","VERTEX_SHADER"],eD=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],py="WEBGL_debug_renderer_info",tD="WEBGL_polygon_mode";function nD(e){var t,n,r,a,i,o,s=e.cache,u=gy(s);if(!u)return dy;if(!hy(u))return my;var l=fy()?null:u.getExtension(py);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function rD(e){var t=e.cache,n=gy(t);if(!n)return dy;if(!hy(n))return my;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(iy,"/npm-monitoring"),!0),e.send()}catch{}}function vD(e){var t;return e===void 0&&(e={}),Ar(this,void 0,void 0,function(){var n,r,a;return kr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&xD(),n=e.delayFallback,r=e.debug,[4,bD(n)];case 1:return i.sent(),a=lD({cache:{},debug:r}),[2,yD(a,r)]}})})}var _p={load:vD,hashComponents:by,componentsToDebugString:fD};async function nu(){let e=await Nt("fakeUserId","");e||(e=await Pi("fakeUserId",""),e&&await ct("fakeUserId",e));let t=new Date,n=await Nt("installedAt","");return n||(n=await Pi("installedAt",""),n&&await ct("installedAt",n)),e?n||(n=new Date(0).toISOString(),await ct("installedAt",n)):(e=await CD(64),await ct("fakeUserId",e)),n||(n=t.toISOString(),await ct("installedAt",n)),{fakeUserId:e,installedAt:n}}var TD=10;async function Ao(){let e=await Nt("userTag","");if(e)return e;let{fakeUserId:t}=await nu(),r=t.charCodeAt(0)%TD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await ct("userTag",e),e}function SD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):wD(i,e)}catch{return SD(64)}}function wD(e,t=32){let n="";for(let a=0;a{}),_c)}async function vy(e,t){try{let n=De(),r=n.INSTALL_FROM==="firefox_store";if(Xs()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=ne(),o=at(),s=n.PROD==="1",u=bn(),l=new Date,{fakeUserId:c,installedAt:d}=await nu(),m=await Ao(),p=await ko(),g=await Do(),b=new Date(d),h=za(b),f=za(l),y=h===f,v=24*60*60*1e3,T=l.getTime()-b.getTime()<7*v,w=l.getTime()-b.getTime()<30*v,C=l.getTime()-b.getTime()<365*v,S=Nl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let k=mo.parse(A),R=e.map(F=>{let P=F.params||{};if(k.os&&(P.os_name=k.os.name||"unknown",P.os_version=k.os.version||"unknown",P.os_version_name=k.os.versionName||"unknown"),k.browser){P.browser_name=k.browser.name||"unknown",P.browser_version=k.browser.version||"unknown";let I=Xs();I&&(P.browser_name=I.name,P.browser_version=I.version)}if(k.platform&&(P.platform_type=k.platform.type||"unknown"),k.engine&&(P.engine_name=k.engine.name||"unknown",P.engine_version=k.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),h){P.install_day=Fc(b);let I=Ic(b);P.install_week=`${I.year}${I.week}`}return P.userscript=i.toString(),y?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=T?"1":"0",P.is_new_user_this_month=w?"1":"0",P.is_new_user_this_year=C?"1":"0",o?P.main_frame=0:P.main_frame=1,m&&(P.ab_tag=m),p&&(P.ab_group=p),P.campaign=g||"none",{...F,params:P}});S.forEach(async F=>{let P=await ru({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&kD(c,R)}catch{}}async function AD(e){return await ED().sendMessage("background:main",e)}function ru(e){return yl()?yc({method:"request",data:e}):ne()||bl()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):AD({method:"fetch",data:e})}function kD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Bc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);ru({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var Oc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5790,57 +5790,57 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var Cy="userConfig",jc="userPromptPool",Uc="userObjectPool";async function Hc(){let e=await Py(Cy)||{},t=await Ri(jc)||{},n=await Ri(Uc)||{};return LD(e,t,n)}async function wy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Op(e);await Dy(Cy,t),await Er(jc,n),await Er(Uc,r)}function Op(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Ey(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Ay(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function LD(e,t,n){return Ey(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Ay(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Ey(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Ay(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ga(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=ky(r);for(let o of i)delete a[o]}),n}function Np(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=ky(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function ky(e){let t=wr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=fo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Ly(e,t){return My(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function My(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>My(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Lr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),ID(l),BD(n,u,l),l=await jD(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Fy(){if(be.PROD==="1")return{};let e={};if(be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(be.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:be.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(be.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:be.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(be.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&be.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:be.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:be.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(be.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:be.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(be.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=be.DEEPL_PROXY_ENDPOINT),be.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=be.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),be.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:be.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}be.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=be.IMMERSIVE_TRANSLATE_SERVICE);let t={};return be.DEBUG==="1"&&(t.debug=!0,t.cache=!1),be.MOCK==="1"&&(t.translationService="mock"),t}async function Vt(){let e=await $.storage.local.get(As);if(e[As]){let t=e[As],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Rt(i),i}else return{}}async function Rt(e){await $.storage.local.set({[As]:e})}async function Ec(e){await $.storage.local.set({[Ll]:e})}async function By(){return be.DEBUG==="1"?void 0:(await $.storage.local.get(Ll))[Ll]}async function qc(){let e=await By(),n={...iu(),...Nc,buildinConfigUpdatedAt:be.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function bn(){return Hc()}function Ha(e){return wy(e)}async function Dy(e,t){await $.storage.sync.set({[e]:t})}async function Py(e){return(await $.storage.sync.get(e))[e]}async function Er(e,t){await $.storage.local.set({[e]:t})}async function Ri(e){return(await $.storage.local.get(e))[e]}var Iy={};function zc(e){return Iy[e]}function _y(e,t){Iy[e]=t}var MD=async()=>{let e=["zh-CN"];try{e=await $.i18n.getAcceptLanguages()}catch(r){D.warn("get browser language error:",r)}let n=e.map(r=>X(r)).find(r=>Nb.find(a=>a===r));return n||"en"},iu=()=>{let e={...Nc,buildinConfigUpdatedAt:be.BUILD_TIME};return{...e,targetLanguage:Ba,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function RD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function FD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ba;let n=await Nt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Ry(l,r[s]))}),Lr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Ry(l,n[s]))}),Lr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function ID(e){try{let t=await Nt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){D.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Ry(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function _D(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Nt("installedAt",""),p=Number(await Li("translage_page_daily",0)),g=Number(await Nt(lr,0)),h;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function ND(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function jD(e,t){let n=await UD(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=ou(e[o],t[o]));else if(o==="translationServices")Oy(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(ne()||ct()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?jy(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(be.PROD==="0"&&be.DEV_RULES){let s=JSON.parse(be.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function UD(){let e={};if(!ne()&&$.commands&&$.commands.getAll){let t=await $.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function Ny(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Ly(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Lr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&Oy(i,e),s&&(r=ou(r,s))}),r}var Wc={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var qD="";function yn(){return qD||Wc.version}function Po(){return $.runtime.getManifest().version}function Uy(e){let t=iu(),n=Po();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function jp(e){return e.replace(//g,">")}var Gc=!1,zD=ne();function Hy(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function WD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&qy(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Va(i,Rl)){if(a===!0)return!0;continue}if(su(i.nodeName,t.inlineTags))return!0;if(!Up(i,t))return!1}}return!0}function Hp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(su(e.nodeName,n)||Up(e,t)){if(Va(e,n1)||su(e.nodeName,["BR"]))return!1;if(Va(e,Rl))return!0;if(Up(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return WD(e,t)}else return Va(e,Rl);return!1}function qy(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Va(e,t1,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Va(e,V3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||su(e.nodeName,i))}function Vc(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!Wy(r)&&r.length>=n}function zy(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(Wy(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function Wy(e){for(let t=0;t127)return!1;return!0}function Gy(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function Vy(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Ky(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function Yy(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function Qy(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Va(e,t,n=!1){return qp(e,t,"1",n)}function qp(e,t,n,r=!1){return Gc&&!r?e[Qn]?e[Qn]?.[t]===n:!1:e.dataset?.[t]===n}function Lo(e){return(e.innerText||e.textContent||"").trim()}function zp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Kc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function Et(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Gc&&!r?(e[Qn]||(e[Qn]={}),e[Qn][t]||(e[Qn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function Jy(e,t,n=!1){if(Gc&&!n){if(!e[Qn]||!e[Qn][t])return;delete e[Qn][t]}else delete e.dataset[t]}function Zy(e,t,n=!1){return Gc&&!n?!e[Qn]||!e[Qn][t]?void 0:e[Qn][t]:e.dataset[t]}function Up(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!su(e.nodeName,n)}function ke(){if(!globalThis||!globalThis.location)return"https://example.com";if(!it())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function In(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}}function Ka(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(zD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${B}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function su(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function Xy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function $y(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||qy(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function e9(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function t9(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthe,createScript:e=>e})}catch{}var a9=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(a9=!0)});function Yc(){return a9}var Un=r9;function o9(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(VD(t,o))return"";i=i9(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let b of n){let f=i9(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";continue}u=f,l+=g(b)||""}h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` -`).filter(b=>!!b.trim()).length>1)return t.innerHTML||"";return s;function p(b){return b.replace(/\s+/g,"")}function g(b){return b instanceof HTMLElement?b.innerText:b?.textContent||""}function h(){let b=p(g(u)),f=p(l);if(b==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};var Ty="userConfig",Nc="userPromptPool",jc="userObjectPool";async function Uc(){let e=await ky(Ty)||{},t=await Mi(Nc)||{},n=await Mi(jc)||{};return PD(e,t,n)}async function Sy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Op(e);await Ay(Ty,t),await Er(Nc,n),await Er(jc,r)}function Op(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Cy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),wy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function PD(e,t,n){return Cy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),wy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Cy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function wy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Wa(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Ey(r);for(let o of i)delete a[o]}),n}function Np(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Ey(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Ey(e){let t=wr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=fo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Dy(e,t){return Py(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function Py(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>Py(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Lr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await BD(l),FD(n,u,l),l=await ND(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function My(){if(be.PROD==="1")return{};let e={};if(be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:be.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:be.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(be.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:be.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(be.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:be.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:be.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(be.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&be.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:be.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:be.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(be.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:be.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(be.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=be.DEEPL_PROXY_ENDPOINT),be.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=be.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),be.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:be.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}be.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=be.IMMERSIVE_TRANSLATE_SERVICE);let t={};return be.DEBUG==="1"&&(t.debug=!0,t.cache=!1),be.MOCK==="1"&&(t.translationService="mock"),t}async function Vt(){let e=await $.storage.local.get(As);if(e[As]){let t=e[As],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Rt(i),i}else return{}}async function Rt(e){await $.storage.local.set({[As]:e})}async function wc(e){await $.storage.local.set({[Pl]:e})}async function Ry(){return be.DEBUG==="1"?void 0:(await $.storage.local.get(Pl))[Pl]}async function Hc(){let e=await Ry(),n={...au(),...Oc,buildinConfigUpdatedAt:be.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function hn(){return Uc()}function Ua(e){return Sy(e)}async function Ay(e,t){await $.storage.sync.set({[e]:t})}async function ky(e){return(await $.storage.sync.get(e))[e]}async function Er(e,t){await $.storage.local.set({[e]:t})}async function Mi(e){return(await $.storage.local.get(e))[e]}var Fy={};function qc(e){return Fy[e]}function By(e,t){Fy[e]=t}var LD=async()=>{let e=["zh-CN"];try{e=await $.i18n.getAcceptLanguages()}catch(r){D.warn("get browser language error:",r)}let n=e.map(r=>X(r)).find(r=>_b.find(a=>a===r));return n||"en"},au=()=>{let e={...Oc,buildinConfigUpdatedAt:be.BUILD_TIME};return{...e,targetLanguage:Fa,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function MD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function RD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Fa;let n=await Nt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Ly(l,r[s]))}),Lr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Ly(l,n[s]))}),Lr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function BD(e){try{let t=await Nt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){D.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Ly(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function ID(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await Nt("installedAt",""),p=Number(await Pi("translage_page_daily",0)),g=Number(await Nt(lr,0)),b;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function OD(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function ND(e,t){let n=await jD(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=iu(e[o],t[o]));else if(o==="translationServices")Iy(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(ne()||lt()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?Oy(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(be.PROD==="0"&&be.DEV_RULES){let s=JSON.parse(be.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function jD(){let e={};if(!ne()&&$.commands&&$.commands.getAll){let t=await $.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function _y(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Dy(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Lr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&Iy(i,e),s&&(r=iu(r,s))}),r}var zc={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var HD="";function bn(){return HD||zc.version}function Po(){return $.runtime.getManifest().version}function Ny(e){let t=au(),n=Po();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function jp(e){return e.replace(//g,">")}var Wc=!1,qD=ne();function jy(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function zD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&Uy(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Ga(i,Ml)){if(a===!0)return!0;continue}if(ou(i.nodeName,t.inlineTags))return!0;if(!Up(i,t))return!1}}return!0}function Hp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(ou(e.nodeName,n)||Up(e,t)){if(Ga(e,e1)||ou(e.nodeName,["BR"]))return!1;if(Ga(e,Ml))return!0;if(Up(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return zD(e,t)}else return Ga(e,Ml);return!1}function Uy(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Ga(e,$3,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Ga(e,W3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||ou(e.nodeName,i))}function Gc(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!qy(r)&&r.length>=n}function Hy(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(qy(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function qy(e){for(let t=0;t127)return!1;return!0}function zy(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function Wy(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Gy(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function Vy(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function Ky(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Ga(e,t,n=!1){return qp(e,t,"1",n)}function qp(e,t,n,r=!1){return Wc&&!r?e[Qn]?e[Qn]?.[t]===n:!1:e.dataset?.[t]===n}function Lo(e){return(e.innerText||e.textContent||"").trim()}function zp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Vc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function Et(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Wc&&!r?(e[Qn]||(e[Qn]={}),e[Qn][t]||(e[Qn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function Yy(e,t,n=!1){if(Wc&&!n){if(!e[Qn]||!e[Qn][t])return;delete e[Qn][t]}else delete e.dataset[t]}function Qy(e,t,n=!1){return Wc&&!n?!e[Qn]||!e[Qn][t]?void 0:e[Qn][t]:e.dataset[t]}function Up(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!ou(e.nodeName,n)}function Ee(){if(!globalThis||!globalThis.location)return"https://example.com";if(!at())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Bn(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}}function Va(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(qD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${B}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function ou(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function Jy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function Zy(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Uy(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function Xy(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function $y(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthe,createScript:e=>e})}catch{}var n9=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(n9=!0)});function Kc(){return n9}var In=t9;function a9(e,t,n,r,a){if(!e)return"";for(let h of r||[])if(t?.querySelector(h))return"";let i=n[0],o=n[n.length-1];if(GD(t,o))return"";i=r9(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let h of n){let f=r9(t,h);if(c+=g(h),u&&f!=u){b(),u=f,l=g(h)||"";continue}u=f,l+=g(h)||""}b();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` +`).filter(h=>!!h.trim()).length>1)return t.innerHTML||"";return s;function p(h){return h.replace(/\s+/g,"")}function g(h){return h instanceof HTMLElement?h.innerText:h?.textContent||""}function b(){let h=p(g(u)),f=p(l);if(h==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` `)&&y?.startsWith(` `)||!c.endsWith(` `)&&y?.endsWith(` -`)){s+=l;return}s+=p9(u,a)}else s+=l}}function s9(e,t,n,r,a){if(!e||!t)return"";let i=p9(n,a)||"";return t.replace(i,r)}var Wp=globalThis.document?.createElement("div");function GD(e){return Wp?(Wp.innerHTML=Un?.createHTML(e)||e,Wp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function u9(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||GD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function l9(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function c9(e,t,n,r){let a="";return n?a=d9(e,t,n):a=m9(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function d9(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?d9(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function m9(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return m9(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function p9(e,t){if(e instanceof HTMLElement){if(n9(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=d9(u,a)}else s+=l}}function i9(e,t,n,r,a){if(!e||!t)return"";let i=d9(n,a)||"";return t.replace(i,r)}var Wp=globalThis.document?.createElement("div");function WD(e){return Wp?(Wp.innerHTML=In?.createHTML(e)||e,Wp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function o9(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||WD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function s9(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let h=o.findIndex(y=>y.tag==m);if(h==-1)return d;let f=o[h];return o=o.slice(h+1),n?``:``}else{let h=e[m];if(!h)return d;if(o.unshift(h),n)return`<${n}${m}>`;if(!h.attributes)return`<${h.tag}>`;let f=a||"";return`<${h.tag} ${r||"id"}=${f}${h.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let h=s[0],f=s[1],y=u[u.length-1];h?.tag==m?(h.end==g?(h.endTag=d,h.end=g+d.length,u.push(h)):h.end==y?.begin&&y.end==g&&(h.endTag=d,h.end=g+d.length,h.times++,u[u.length-1]=h),s.shift()):f?.tag==m&&f.end==h.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function u9(e,t,n,r){let a="";return n?a=l9(e,t,n):a=c9(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function l9(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?l9(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function c9(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return c9(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function d9(e,t){if(e instanceof HTMLElement){if(e9(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` `)<0?r=rt.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=rt.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}else if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}else return e?.outerHTML;return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function VD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function i9(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Qc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Gp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Lr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Mo(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function g9(e,t){let n=t||e.translationService;return Mo(e,n,e.config.translationServices)?Gp(e.rule):e.rule}function uu(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var KD=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function rr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Kr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(rr(e,i))return!1;if(rr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!rr(e,o)),c;function d(){return n&&n.display?!!KD.includes(n.display):rr(e,r)}}var At=rr;function Bi(e){return!!e.shadowRoot}function Ya(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function lu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Yr(e,t=!1){let n=so;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Fi(e,t,n=!1){let r=e?.[t];return Yr(r,n)}function Ro(e,t){return ja(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Vp(e){let{rule:t}=e,n=YD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function YD(e){let t=e.config.loadingTheme;return`${B}-loading-${t}`}function cu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),Et(a,$3,t.toString());let i=Vp(e);return a.append(n?" ...":rt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Fo(e,t){return e.querySelector(`[${mm}='${t}']`)}function h9(){document.querySelectorAll(`[${mm}]`).forEach(t=>{t.remove()})}function b9(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function y9(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Ka(n)&&t.push(n)}),t}function Kp(e,t){return t?QD(e):JD(e)}function QD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=x9(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=jp(p),m.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function JD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=x9(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=jp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){D.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Yp(e,t){return t?ZD(e):XD(e)}function ZD(e){let{text:t,variables:n}=e,r=uu(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function XD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function x9(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Bo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||Qy(l)||Gy(l)||Yy(l)||Vy(l)||Ky(l)||eP(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Vc(i?.trim(),n,r)}function Ii(e){return e.nodeType===Node.ELEMENT_NODE}function v9(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Mr(){return await Nt("fakeUserId","")}async function $D(){return await Nt("installedAt","")}async function Xc(e,t){let r=De().INSTALL_FROM,a=yn(),i=await $D(),o=await Mr(),s=await wt(),u=!1,l=await pt.get(mt,null),c=!1;l&&ht(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await Ao(),m=await Do(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await ko();return g&&(p.abGroup=g),p}function du(e,t){let[n,r]=G();return te(()=>{!e||!t||(async()=>{let a=await Qp(e,t);r(a)})()},[e,t,r]),n}async function Qp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!ct()&&ne()||We().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Nt("installedAt","");new Date(o).getTime()s==n),a=tP(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>Ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>Ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function tP(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function T9(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function C9(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Jc[e]=setTimeout(()=>{n("")},t)})}function E9(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Qa(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function e0(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Ca(){return Ap()?"imtAndroid":Xs()?"imtIOS":ne()?"userscript":ct()?"safari":kn()?"firefox":E3()?"chrome":"other"}function Qr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function t0(e){return e?.getAttribute("imt-state")||""}function Jr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function n0(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(rr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function A9(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function k9(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function D9(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var nP={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Zc={...nP};function wa(e){Zc[e]||(Zc[e]=Date.now())}var f9=!1;function P9(){if(f9)return;f9=!0;let e=Zc.initial,t={...Zc};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(Y+"PerformanceData",JSON.stringify(t))}function Za(e){if(e.beta)return!1;if(ct()&&e.spVersion)return Ja(Po(),e.spVersion);if(Vb()&&e.gspVersion){let t=Kb();if(t)return Ja(t,e.gspVersion)}if(Xs()&&e.ispVersion){let t=Gb();if(t)return Ja(t,e.ispVersion)}return!1}function Ja(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Zp(e){e.message?.indexOf("token invalid")>=0&&(pt.remove(mt),Zs())}async function L9(e){let n=(await wt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),rP(a.toString())}function rP(e){try{ct()?Vr(e):globalThis.open(e)}catch{globalThis.open(e)}}function M9(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;D.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function R9(e){return ht(e)}function r0(e){return Array.isArray(e)?e:e?[e]:[]}function a0(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function i0(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function F9(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function ou(e,t){let n={...e};return O9(n,t),aP(n,t),n}function jy(e,t,n){let r={...e};return Lr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Lr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function aP(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;O9(e,a)}function Lr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=B9(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=B9(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=r0(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!I9(u))return;d=Xp(c,l)}else if(s=="remove_v"){if(!I9(u))return;d=_9(c,l)}else s==="add"?d=Xp(c,l):s=="remove"&&(d=_9(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Xp(c,l):d=l,r(o,d)})}function O9(e,t){return Lr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Xp(e,t){let n;if(Array.isArray(e)){let r=r0(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function B9(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function I9(e){let t=yn();return e&&Ja(t,e)}function _9(e,t){if(Array.isArray(e)){let n=r0(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var _o="input is invalid type",$p=typeof window=="object",Xa=$p?window:{};Xa.JS_SHA256_NO_WINDOW&&($p=!1);var iP=!$p&&typeof self=="object",oP=!Xa.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;oP?Xa=global:iP&&(Xa=self);var nY=!Xa.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,rY=typeof define=="function"&&define.amd,mu=!Xa.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",fe="0123456789abcdef".split(""),sP=[-2147483648,8388608,32768,128],Rr=[24,16,8,0],o0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s0=["hex","array","digest","arrayBuffer"],nn=[];(Xa.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});mu&&(Xa.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var N9=function(e,t){return function(n){return new rn(t,!0).update(n)[e]()}},U9=function(e){var t=N9("hex",e);t.create=function(){return new rn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};rn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=sP[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};rn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+o0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+o0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+o0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+o0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};rn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=fe[e>>28&15]+fe[e>>24&15]+fe[e>>20&15]+fe[e>>16&15]+fe[e>>12&15]+fe[e>>8&15]+fe[e>>4&15]+fe[e&15]+fe[t>>28&15]+fe[t>>24&15]+fe[t>>20&15]+fe[t>>16&15]+fe[t>>12&15]+fe[t>>8&15]+fe[t>>4&15]+fe[t&15]+fe[n>>28&15]+fe[n>>24&15]+fe[n>>20&15]+fe[n>>16&15]+fe[n>>12&15]+fe[n>>8&15]+fe[n>>4&15]+fe[n&15]+fe[r>>28&15]+fe[r>>24&15]+fe[r>>20&15]+fe[r>>16&15]+fe[r>>12&15]+fe[r>>8&15]+fe[r>>4&15]+fe[r&15]+fe[a>>28&15]+fe[a>>24&15]+fe[a>>20&15]+fe[a>>16&15]+fe[a>>12&15]+fe[a>>8&15]+fe[a>>4&15]+fe[a&15]+fe[i>>28&15]+fe[i>>24&15]+fe[i>>20&15]+fe[i>>16&15]+fe[i>>12&15]+fe[i>>8&15]+fe[i>>4&15]+fe[i&15]+fe[o>>28&15]+fe[o>>24&15]+fe[o>>20&15]+fe[o>>16&15]+fe[o>>12&15]+fe[o>>8&15]+fe[o>>4&15]+fe[o&15];return this.is224||(u+=fe[s>>28&15]+fe[s>>24&15]+fe[s>>20&15]+fe[s>>16&15]+fe[s>>12&15]+fe[s>>8&15]+fe[s>>4&15]+fe[s&15]),u};rn.prototype.toString=rn.prototype.hex;rn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};rn.prototype.array=rn.prototype.digest;rn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function u0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(_o);if(mu&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!mu||!ArrayBuffer.isView(e)))throw new Error(_o)}else throw new Error(_o);e.length>64&&(e=new rn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}rn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}u0.prototype=new rn;u0.prototype.finalize=function(){if(rn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();rn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),rn.prototype.finalize.call(this)}};var Oo=U9();Oo.sha256=Oo;Oo.sha224=U9(!0);Oo.sha256.hmac=H9();Oo.sha224.hmac=H9(!0);var q9=Oo;var z9=q9.sha256;function Hn(e){return Promise.resolve(z9(e))}function No(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=z9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function W9(e,t){let n=await ar(e,t);return No(n)}async function l0(e,t){let n=uP(t),r=await ar(e,n);return No(r)}function uP(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var lP={lang:"en"};function eg(e){let t=Object.assign({},lP,e),[n,r]=G(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var cP=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--cP,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var tg=to(null),$a=e=>{let{t,setLang:n,lang:r}=eg({lang:e.lang});return x(tg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return hl(tg)}function K9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Fr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=dP(e,a)),i||(i=mP(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function dP(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=rg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function mP(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function rg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>Ze(a,s.matches)&&!Ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function Y9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function c0(e,t,n){n=n||await Fn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&G9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&G9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await bn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await va(n),await Ha(i)}catch{return!1}return a}async function Q9(){return(await Fn()).aiAssistants||[]}async function pP(e,t){(await Promise.allSettled(e.map(r=>Q({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&c0("add",a,t)}})}async function gP(e,t,n=!0){e||(e=await wt()),t||(t=await Fn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await bP();i=await hP(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&pP(o,t)}var Ea=Nn(gP,1500);function G9(e){return Ja(Po(),e.extensionVersion)}function fP(e,t){return t?!Ja(e.version,t):!1}function hP(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{fP(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function bP(){return(await Q({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var yP=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function Z9(e,t,n,r,a){let i={...t},o=rg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,Y9({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=K9(i,i.langOverrides,n),o||yP.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await hb();i.contextTerms=s}return i}async function ir(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=jo(t,o),f=jo(t,g),y=s,v=Object.keys(u);for(let K of v){let xe=u[K];if(jo(t,xe)){y=K;break}}let S=l,w=Object.keys(c);for(let K of w){let xe=c[K];if(xe&&jo(t,xe)){S=K;break}}let C=jo(t,d),T=J9(t,d);T||(T=Ze(t,l1)),T||(T=Ze(t,n.blockUrls));let A=J9(t,n.inputTranslationUrlPattern);A||(A=Ze(t,n.inputTranslationBlockUrls));let k=Ze(t,n.mutationBlockUrls),R=Object.keys(p),F={};for(let K of R){let xe=p[K];if(xe&&xe.matches)for(let nt of xe.matches)F[nt]=K}let P=Object.keys(F),I=np(t,P);I&&(i=F[I]??"auto",F[I]&&F[I]!=="auto"&&er(F[I]));let L=a.hostname,_=await Hn(L),O=a.pathname+a.search+a.hash,z=await Hn(O),V=`https://${_}.com/${z}`,ie=await Vt(),Ie=await qc(),re=n.translationStartMode,N=vP(ie,n);ie.aiAssistants=SP(N,n),re==="dynamic"&&f&&(re="immediate");let j=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(j=n.inputTranslationService);let W=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(W=n.mouseHoverTranslationService);let me=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(me=n.subtitleTranslateService);let ce=await pt.get(mt,null),ze=!1;ce&&(ze=ht(ce)),n.platform=Ca();let pe={targetLanguage:h,config:n,translationService:y,inputTranslationService:j,mouseHoverTranslationService:W,subtitleTranslateService:me,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:T,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:re,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:re,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ie};ce&&(pe.user=ce,ze?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(K=>!pe.config.generalRule.bodyTranslateTags.includes(K)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let he=n.translationServices[pe.translationService]||{};he.immediateTranslationTextCount!==void 0&&xP(he.immediateTranslationTextCount)&&he.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=he.immediateTranslationTextCount),pe.translationService==="deepl"&&(he?.authKey?.startsWith("immersive_")||he?.provider==="pro"&&pe.user?.token)&&he.immediateTranslationTextCountForImmersiveDeepl!==void 0&&he.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=he.immediateTranslationTextCountForImmersiveDeepl),he&&he.translationDebounce&&typeof he.translationDebounce=="number"&&(pe.state.translationDebounce=he.translationDebounce);let ge=Ie.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let de=n.rules,Se;globalThis.PDFViewerApplication?Se=de.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Se=de.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Se=de.find(K=>K.pageType=="ebookBuilder"):Se=de.find(K=>jo(t,K)),Se&&Se.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(Se&&(pe.rule=ou(Ue,Se),pe.rule=Ny(n,pe.rule,Se)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(K=>!pe.rule.bodyTranslateTags.includes(K)&&!pe.rule.forceTranslateTags.includes(K))),pe.rule.mainFrameSelector){let K=document.querySelector(pe.rule.mainFrameSelector);K&&(pe.mainFrame=K)}return pe}function jo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&Ze(e,r)?!1:n&&n.length>0&&Ze(e,n)?!0:i&&i.length>0&&Kc(i)?!1:!!(a&&a.length>0&&Kc(a))}function J9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&Ze(e,n)||r&&r.length>0&&Kc(r))}function xP(e){return typeof e=="number"}function vP(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function SP(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=F9(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function X9(e){let t;try{t=new URL(e)}catch{return!1}let n=Cp(),r="";try{r=new URL(n).hostname}catch{}return!!(r&&t.hostname===r)}function $9(e){try{return new URL(e).protocol==="file:"}catch{return!1}}function d0(e){let t;try{t=new URL(e)}catch{return!1}let n=Cp(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(ag(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function ag(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}var ig={get:(e,t,n)=>$.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>$.storage[n].set({[e]:t})};function m0(e,t,n){let[r]=G(()=>typeof t=="function"?t():t),[a]=G(n),[i,o]=G(r),[s,u]=G(!1),[l,c]=G("");te(()=>{ig.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=Ae(m=>{let p=typeof m=="function"?m(i):m;D.debug("new settings",p),ig.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function og(e,t,n){let r=[];return function(){let[i,o,s,u]=m0(e,t,n),l=Ae(c=>{for(let d of r)d(c)},[]);return te(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function e6(e,t){return og(e,t,"sync")}var TP="userConfig",CP=null,wP=e6(TP,CP);function Br(e){let[t,n,r,a]=wP(),[i,o]=G();te(()=>{(async function(){let u=await Hc();o(u)})()},[t]);let s=Ae(async u=>{let l=typeof u=="function"?u(i):u;l&&sg(l);let{userConfig:c,promptPool:d,objectPool:m}=await Op(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(d).length,d),D.debug("objectPool size",JSON.stringify(m).length,m),await Er(jc,d),await Er(Uc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function sg(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var EP=function(e,t){let{method:n,data:r}=e;D.debug(`popup received message: ${n}`,r||" ");let a;t.active&&(a=t.id,globalThis.document.dispatchEvent(new CustomEvent(Ps,{detail:{tabId:a,payload:e}})))},p0;function t6(){pu()}function pu(){return p0||(p0=new Wr("popup",!1).getConnection("main_sync",EP),p0)}var g0="DROP_DOWN_DEFAULT_VALUE";function ug(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:g0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==g0){s.current.value=g0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:g0,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function Uo(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var AP=({date:e})=>{let{t}=se(),[n,r]=G(!1);return te(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},kP=({minVersion:e})=>{let{t}=se();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},DP=()=>{let{t:e}=se();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:oe+"docs/installation/"})}})},PP=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function lg(e){let{isShowError:t,request:n}=e,[r,a]=G(null),{t:i}=se(),[o,s]=G(null),[u,l]=G(null),[c,d]=G(""),[m,p]=G(!1),[g,h]=G(!1),[b,f]=G(!1),[y,v]=G(null),[S,w]=G(null),C=yn(),T=async()=>{d("");let A=o;if(o===null)try{let k=await n({url:Ls});k?(s(k),A=k,p(!0)):(d(i("unknownError")),l(null))}catch(k){l(null),d(k.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return te(()=>{be.DEBUG||wt().then(A=>{let k=A.buildinConfigUpdatedAt;v(A);let R=new Date(k);if(a(k),C==="0.0.0"){f(!0);return}n({url:Ls}).then(F=>{let P=F,I=P.minVersion,L=C;s(P);let _=P.latestVersion;if(_&&(Uo(L,_)?w(!0):w(!1)),Uo(L,I)){let O=P.buildinConfigUpdatedAt;new Date(O)>R?(l(!0),T()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),te(()=>{wt().then(A=>{v(A),Ea(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x(DP,{}):c?t===!1?null:x(PP,{handleSyncing:T,message:c,date:r||""}):g?t===!1?null:x(kP,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(AP,{date:r}):null}):null}function LP(){return navigator.userAgent.indexOf("Mac")!==-1}var n6={Alt:"\u2325"};function Ho(e=""){return LP()?Object.keys(n6).reduce((t,n)=>t.replace(n,n6[n]),e):e}var f0='',r6=` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function GD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function r9(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Yc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Gp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Lr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Mo(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function m9(e,t){let n=t||e.translationService;return Mo(e,n,e.config.translationServices)?Gp(e.rule):e.rule}function su(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var VD=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function rr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Vr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(rr(e,i))return!1;if(rr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!rr(e,o)),c;function d(){return n&&n.display?!!VD.includes(n.display):rr(e,r)}}var At=rr;function Fi(e){return!!e.shadowRoot}function Ka(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function uu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Kr(e,t=!1){let n=so;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Ri(e,t,n=!1){let r=e?.[t];return Kr(r,n)}function Ro(e,t){return Na(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Vp(e){let{rule:t}=e,n=KD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function KD(e){let t=e.config.loadingTheme;return`${B}-loading-${t}`}function lu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),Et(a,Z3,t.toString());let i=Vp(e);return a.append(n?" ...":rt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Fo(e,t){return e.querySelector(`[${mm}='${t}']`)}function g9(){document.querySelectorAll(`[${mm}]`).forEach(t=>{t.remove()})}function f9(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function h9(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Va(n)&&t.push(n)}),t}function Kp(e,t){return t?YD(e):QD(e)}function YD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,b)=>{if(g=="id"&&u[b+2]=="=")return p;let h=l++;return t[`${h}`]=b9(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=jp(p),m.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function QD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,b)=>g.tl&&!b.tl?1:!g.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,b,h)=>{if(b=="id"&&l[h+2]=="=")return g;let f=c++;return t[`${f}`]=b9(b,d),o.length>2?g.replace(b,`<${o[2]}${f}>`):g.replace(b,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let b=c++;return t[`${b}`]=jp(g),o.length>2?p.replace(g,`<${o[2]}${b}>`):p.replace(g,`${o[0]}${b}${o[1]}`)})})}catch(d){D.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Yp(e,t){return t?JD(e):ZD(e)}function JD(e){let{text:t,variables:n}=e,r=su(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function ZD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function b9(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Bo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||Ky(l)||zy(l)||Vy(l)||Wy(l)||Gy(l)||$D(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Gc(i?.trim(),n,r)}function Bi(e){return e.nodeType===Node.ELEMENT_NODE}function y9(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Mr(){return await Nt("fakeUserId","")}async function XD(){return await Nt("installedAt","")}async function Zc(e,t){let r=De().INSTALL_FROM,a=bn(),i=await XD(),o=await Mr(),s=await wt(),u=!1,l=await pt.get(mt,null),c=!1;l&&ht(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await Ao(),m=await Do(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await ko();return g&&(p.abGroup=g),p}function cu(e,t){let[n,r]=G();return te(()=>{!e||!t||(async()=>{let a=await Qp(e,t);r(a)})()},[e,t,r]),n}async function Qp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!lt()&&ne()||Ge().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Nt("installedAt","");new Date(o).getTime()s==n),a=eP(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>Ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>Ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function eP(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function v9(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function T9(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Qc[e]=setTimeout(()=>{n("")},t)})}function C9(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ya(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function $c(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Ta(){return Ap()?"imtAndroid":Zs()?"imtIOS":ne()?"userscript":lt()?"safari":An()?"firefox":C3()?"chrome":"other"}function Yr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function e0(e){return e?.getAttribute("imt-state")||""}function Qr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function t0(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(rr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function w9(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function E9(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function A9(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var tP={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Jc={...tP};function Sa(e){Jc[e]||(Jc[e]=Date.now())}var p9=!1;function k9(){if(p9)return;p9=!0;let e=Jc.initial,t={...Jc};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(Y+"PerformanceData",JSON.stringify(t))}function Ja(e){if(e.beta)return!1;if(lt()&&e.spVersion)return Qa(Po(),e.spVersion);if(Wb()&&e.gspVersion){let t=Gb();if(t)return Qa(t,e.gspVersion)}if(Zs()&&e.ispVersion){let t=zb();if(t)return Qa(t,e.ispVersion)}return!1}function Qa(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Zp(e){e.message?.indexOf("token invalid")>=0&&(pt.remove(mt),Js())}async function D9(e){let n=(await wt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),nP(a.toString())}function nP(e){try{lt()?Gr(e):globalThis.open(e)}catch{globalThis.open(e)}}function P9(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;D.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function L9(e){return ht(e)}function n0(e){return Array.isArray(e)?e:e?[e]:[]}function r0(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function a0(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function M9(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function iu(e,t){let n={...e};return I9(n,t),rP(n,t),n}function Oy(e,t,n){let r={...e};return Lr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Lr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function rP(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;I9(e,a)}function Lr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=R9(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,b]=R9(i);o=m+"."+p,s=g,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=n0(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!F9(u))return;d=Xp(c,l)}else if(s=="remove_v"){if(!F9(u))return;d=B9(c,l)}else s==="add"?d=Xp(c,l):s=="remove"&&(d=B9(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Xp(c,l):d=l,r(o,d)})}function I9(e,t){return Lr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Xp(e,t){let n;if(Array.isArray(e)){let r=n0(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function R9(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function F9(e){let t=bn();return e&&Qa(t,e)}function B9(e,t){if(Array.isArray(e)){let n=n0(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var _o="input is invalid type",$p=typeof window=="object",Za=$p?window:{};Za.JS_SHA256_NO_WINDOW&&($p=!1);var aP=!$p&&typeof self=="object",iP=!Za.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;iP?Za=global:aP&&(Za=self);var rY=!Za.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,aY=typeof define=="function"&&define.amd,du=!Za.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",fe="0123456789abcdef".split(""),oP=[-2147483648,8388608,32768,128],Rr=[24,16,8,0],i0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o0=["hex","array","digest","arrayBuffer"],nn=[];(Za.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});du&&(Za.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var _9=function(e,t){return function(n){return new rn(t,!0).update(n)[e]()}},N9=function(e){var t=_9("hex",e);t.create=function(){return new rn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};rn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=oP[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};rn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,b,h,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(h=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(h=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),h=e&t,m=h^e&n^v,b=a&i^~a&o,p=s+d+b+i0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^h,b=s&a^~s&i,p=o+d+b+i0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,b=o&s^~o&a,p=i+d+b+i0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,b=i&o^~i&s,p=a+d+b+i0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};rn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=fe[e>>28&15]+fe[e>>24&15]+fe[e>>20&15]+fe[e>>16&15]+fe[e>>12&15]+fe[e>>8&15]+fe[e>>4&15]+fe[e&15]+fe[t>>28&15]+fe[t>>24&15]+fe[t>>20&15]+fe[t>>16&15]+fe[t>>12&15]+fe[t>>8&15]+fe[t>>4&15]+fe[t&15]+fe[n>>28&15]+fe[n>>24&15]+fe[n>>20&15]+fe[n>>16&15]+fe[n>>12&15]+fe[n>>8&15]+fe[n>>4&15]+fe[n&15]+fe[r>>28&15]+fe[r>>24&15]+fe[r>>20&15]+fe[r>>16&15]+fe[r>>12&15]+fe[r>>8&15]+fe[r>>4&15]+fe[r&15]+fe[a>>28&15]+fe[a>>24&15]+fe[a>>20&15]+fe[a>>16&15]+fe[a>>12&15]+fe[a>>8&15]+fe[a>>4&15]+fe[a&15]+fe[i>>28&15]+fe[i>>24&15]+fe[i>>20&15]+fe[i>>16&15]+fe[i>>12&15]+fe[i>>8&15]+fe[i>>4&15]+fe[i&15]+fe[o>>28&15]+fe[o>>24&15]+fe[o>>20&15]+fe[o>>16&15]+fe[o>>12&15]+fe[o>>8&15]+fe[o>>4&15]+fe[o&15];return this.is224||(u+=fe[s>>28&15]+fe[s>>24&15]+fe[s>>20&15]+fe[s>>16&15]+fe[s>>12&15]+fe[s>>8&15]+fe[s>>4&15]+fe[s&15]),u};rn.prototype.toString=rn.prototype.hex;rn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};rn.prototype.array=rn.prototype.digest;rn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function s0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(_o);if(du&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!du||!ArrayBuffer.isView(e)))throw new Error(_o)}else throw new Error(_o);e.length>64&&(e=new rn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}rn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}s0.prototype=new rn;s0.prototype.finalize=function(){if(rn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();rn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),rn.prototype.finalize.call(this)}};var Oo=N9();Oo.sha256=Oo;Oo.sha224=N9(!0);Oo.sha256.hmac=j9();Oo.sha224.hmac=j9(!0);var U9=Oo;var H9=U9.sha256;function Hn(e){return Promise.resolve(H9(e))}function No(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=H9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function q9(e,t){let n=await ar(e,t);return No(n)}async function u0(e,t){let n=sP(t),r=await ar(e,n);return No(r)}function sP(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var uP={lang:"en"};function eg(e){let t=Object.assign({},uP,e),[n,r]=G(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var lP=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--lP,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var tg=to(null),Xa=e=>{let{t,setLang:n,lang:r}=eg({lang:e.lang});return x(tg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return fl(tg)}function G9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Ca(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=cP(e,a)),i||(i=dP(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function cP(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=rg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function dP(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function rg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>Ze(a,s.matches)&&!Ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function V9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function l0(e,t,n){n=n||await Rn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&z9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&z9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await hn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ya(n),await Ua(i)}catch{return!1}return a}async function K9(){return(await Rn()).aiAssistants||[]}async function mP(e,t){(await Promise.allSettled(e.map(r=>Q({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&l0("add",a,t)}})}async function pP(e,t,n=!0){e||(e=await wt()),t||(t=await Rn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await hP();i=await fP(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&mP(o,t)}var wa=jn(pP,1500);function z9(e){return Qa(Po(),e.extensionVersion)}function gP(e,t){return t?!Qa(e.version,t):!1}function fP(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{gP(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function hP(){return(await Q({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var bP=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function Q9(e,t,n,r,a){let i={...t},o=rg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,V9({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=G9(i,i.langOverrides,n),o||bP.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await gb();i.contextTerms=s}return i}async function ir(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,b=m||"zh-CN",h=jo(t,o),f=jo(t,g),y=s,v=Object.keys(u);for(let K of v){let xe=u[K];if(jo(t,xe)){y=K;break}}let T=l,w=Object.keys(c);for(let K of w){let xe=c[K];if(xe&&jo(t,xe)){T=K;break}}let C=jo(t,d),S=Y9(t,d);S||(S=Ze(t,s1)),S||(S=Ze(t,n.blockUrls));let A=Y9(t,n.inputTranslationUrlPattern);A||(A=Ze(t,n.inputTranslationBlockUrls));let k=Ze(t,n.mutationBlockUrls),R=Object.keys(p),F={};for(let K of R){let xe=p[K];if(xe&&xe.matches)for(let nt of xe.matches)F[nt]=K}let P=Object.keys(F),I=np(t,P);I&&(i=F[I]??"auto",F[I]&&F[I]!=="auto"&&er(F[I]));let L=a.hostname,_=await Hn(L),O=a.pathname+a.search+a.hash,z=await Hn(O),V=`https://${_}.com/${z}`,ie=await Vt(),Be=await Hc(),re=n.translationStartMode,N=xP(ie,n);ie.aiAssistants=vP(N,n),re==="dynamic"&&f&&(re="immediate");let j=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(j=n.inputTranslationService);let W=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(W=n.mouseHoverTranslationService);let me=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(me=n.subtitleTranslateService);let ce=await pt.get(mt,null),We=!1;ce&&(We=ht(ce)),n.platform=Ta();let pe={targetLanguage:b,config:n,translationService:y,inputTranslationService:j,mouseHoverTranslationService:W,subtitleTranslateService:me,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:S,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:re,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:re,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},localConfig:ie};ce&&(pe.user=ce,We?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(K=>!pe.config.generalRule.bodyTranslateTags.includes(K)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let he=n.translationServices[pe.translationService]||{};he.immediateTranslationTextCount!==void 0&&yP(he.immediateTranslationTextCount)&&he.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=he.immediateTranslationTextCount),pe.translationService==="deepl"&&(he?.authKey?.startsWith("immersive_")||he?.provider==="pro"&&pe.user?.token)&&he.immediateTranslationTextCountForImmersiveDeepl!==void 0&&he.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=he.immediateTranslationTextCountForImmersiveDeepl),he&&he.translationDebounce&&typeof he.translationDebounce=="number"&&(pe.state.translationDebounce=he.translationDebounce);let ge=Be.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let de=n.rules,Te;globalThis.PDFViewerApplication?Te=de.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Te=de.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Te=de.find(K=>K.pageType=="ebookBuilder"):Te=de.find(K=>jo(t,K)),Te&&Te.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(Te&&(pe.rule=iu(Ue,Te),pe.rule=_y(n,pe.rule,Te)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(K=>!pe.rule.bodyTranslateTags.includes(K)&&!pe.rule.forceTranslateTags.includes(K))),pe.rule.mainFrameSelector){let K=document.querySelector(pe.rule.mainFrameSelector);K&&(pe.mainFrame=K)}return pe}function jo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&Ze(e,r)?!1:n&&n.length>0&&Ze(e,n)?!0:i&&i.length>0&&Vc(i)?!1:!!(a&&a.length>0&&Vc(a))}function Y9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&Ze(e,n)||r&&r.length>0&&Vc(r))}function yP(e){return typeof e=="number"}function xP(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function vP(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=M9(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function J9(e){let t;try{t=new URL(e)}catch{return!1}let n=Cp(),r="";try{r=new URL(n).hostname}catch{}return!!(r&&t.hostname===r)}function Z9(e){try{return new URL(e).protocol==="file:"}catch{return!1}}function c0(e){let t;try{t=new URL(e)}catch{return!1}let n=Cp(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(ag(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function ag(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}var ig={get:(e,t,n)=>$.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>$.storage[n].set({[e]:t})};function d0(e,t,n){let[r]=G(()=>typeof t=="function"?t():t),[a]=G(n),[i,o]=G(r),[s,u]=G(!1),[l,c]=G("");te(()=>{ig.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=ke(m=>{let p=typeof m=="function"?m(i):m;D.debug("new settings",p),ig.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function og(e,t,n){let r=[];return function(){let[i,o,s,u]=d0(e,t,n),l=ke(c=>{for(let d of r)d(c)},[]);return te(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function X9(e,t){return og(e,t,"sync")}var TP="userConfig",SP=null,CP=X9(TP,SP);function Fr(e){let[t,n,r,a]=CP(),[i,o]=G();te(()=>{(async function(){let u=await Uc();o(u)})()},[t]);let s=ke(async u=>{let l=typeof u=="function"?u(i):u;l&&sg(l);let{userConfig:c,promptPool:d,objectPool:m}=await Op(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(d).length,d),D.debug("objectPool size",JSON.stringify(m).length,m),await Er(Nc,d),await Er(jc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function sg(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var wP=function(e,t){let{method:n,data:r}=e;D.debug(`popup received message: ${n}`,r||" ");let a;t.active&&(a=t.id,globalThis.document.dispatchEvent(new CustomEvent(Ds,{detail:{tabId:a,payload:e}})))},m0;function $9(){mu()}function mu(){return m0||(m0=new zr("popup",!1).getConnection("main_sync",wP),m0)}var p0="DROP_DOWN_DEFAULT_VALUE";function ug(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:p0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==p0){s.current.value=p0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:p0,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function Uo(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var EP=({date:e})=>{let{t}=se(),[n,r]=G(!1);return te(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},AP=({minVersion:e})=>{let{t}=se();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},kP=()=>{let{t:e}=se();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:oe+"docs/installation/"})}})},DP=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function lg(e){let{isShowError:t,request:n}=e,[r,a]=G(null),{t:i}=se(),[o,s]=G(null),[u,l]=G(null),[c,d]=G(""),[m,p]=G(!1),[g,b]=G(!1),[h,f]=G(!1),[y,v]=G(null),[T,w]=G(null),C=bn(),S=async()=>{d("");let A=o;if(o===null)try{let k=await n({url:Ps});k?(s(k),A=k,p(!0)):(d(i("unknownError")),l(null))}catch(k){l(null),d(k.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return te(()=>{be.DEBUG||wt().then(A=>{let k=A.buildinConfigUpdatedAt;v(A);let R=new Date(k);if(a(k),C==="0.0.0"){f(!0);return}n({url:Ps}).then(F=>{let P=F,I=P.minVersion,L=C;s(P);let _=P.latestVersion;if(_&&(Uo(L,_)?w(!0):w(!1)),Uo(L,I)){let O=P.buildinConfigUpdatedAt;new Date(O)>R?(l(!0),S()):l(!1)}else b(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),te(()=>{wt().then(A=>{v(A),wa(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:h?x(kP,{}):c?t===!1?null:x(DP,{handleSyncing:S,message:c,date:r||""}):g?t===!1?null:x(AP,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(EP,{date:r}):null}):null}function PP(){return navigator.userAgent.indexOf("Mac")!==-1}var e6={Alt:"\u2325"};function Ho(e=""){return PP()?Object.keys(e6).reduce((t,n)=>t.replace(n,e6[n]),e):e}var g0='',t6=` -`,qo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var a6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",i6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",o6="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";var MP="imt-fb";function Kt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${MP}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}var s6=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var u6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),l6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),c6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),d6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var m6=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),p6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),g6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),f6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function zo(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function h6(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Za(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Rs,`${e.type}_user_info`);return}e.onOpenUrl(Ol,`${e.type}_user_info`)},children:[x("img",{src:n?i6:a6}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(RP,{...e})]})}function RP(e){let{t}=se(),n=ye(()=>zo(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Rs,`${e.type}_pro_logo`)},children:x("img",{src:qo})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Dn)},children:[x(Kt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Dn,`${e.type}_user_upgrade`)},children:[p6,x("span",{children:t("popup.upgrade")})]})}var ei=(e,t,n,r)=>{let a=E2[e]||e,i=rp[e]||e,o=ap[e],s=ip[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function cg(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=ap,a="zh-CN"):n==="zh-TW"?(r=ip,a="zh-TW"):(r=rp,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}var Ee=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=J2(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f?.callback?.(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let S=p[b],w=0;for(let C=0;C{let w=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(w=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(T=>T.text),forces:f.tempSentences.map(T=>T.force),xpaths:f.tempSentences.map(T=>T.xpath||""),from:w,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=a1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let T=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(T=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],k=Yr(this.serviceConfig);if(f.tempSentences.forEach((O,z)=>{let V=Kp({text:O.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);O.force!==!0&&(V&&V.text&&V.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:O,from:w,to:f.to})}let R="";T&&T.length>=2?R=A.map((O,z)=>{let{item:V}=O;return z===A.length-1?V.text:V.text+T[0]+(z+1)+T[1]}).join(""):R=A.map(({item:O})=>O.text).join(C);let F=await this.translate({text:R,from:w,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:P}=F,I=[];if(T&&T.length>=2){let O=`${T[0]}\\d+${T[1]}`;T&&T.length>=3&&(O=T[2]);let z=new RegExp(O,"g");I=P.split(z)}else I=P.split(C);let L=[];if(I.length>A.length){for(let O=0;OO.text);return k=Yr(this.serviceConfig,!0),L.forEach((O,z)=>{let V=A[z],ie=V.index,Ie=V.variables||{};Object.keys(Ie).length>0&&(O=Yp({text:O,delimiters:k,variables:Ie},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ie]=O}),{sourceTempSentences:f.tempSentences,text:_,from:F.from,to:F.to}}};m.push(S().then(w=>{let{text:C,sourceTempSentences:T}=w;for(let A=0;A{if(w instanceof U&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Yr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Kp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Yr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Yp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Be({text:t,minLength:18,pageLangs:[dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var b6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],gu=class e extends Ee{static langMap=new Map(b6);maxTextGroupLength=50;static langMapReverse=new Map(b6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` +`,qo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var n6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",r6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",a6="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";var LP="imt-fb";function Kt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${LP}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}var i6=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var o6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),s6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),u6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),l6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var c6=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),d6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),m6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),p6=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function zo(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function g6(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Ja(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Ms,`${e.type}_user_info`);return}e.onOpenUrl(_l,`${e.type}_user_info`)},children:[x("img",{src:n?r6:n6}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(MP,{...e})]})}function MP(e){let{t}=se(),n=ye(()=>zo(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ms,`${e.type}_pro_logo`)},children:x("img",{src:qo})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||kn)},children:[x(Kt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(kn,`${e.type}_user_upgrade`)},children:[d6,x("span",{children:t("popup.upgrade")})]})}var $a=(e,t,n,r)=>{let a=C2[e]||e,i=rp[e]||e,o=ap[e],s=ip[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function cg(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=ap,a="zh-CN"):n==="zh-TW"?(r=ip,a="zh-TW"):(r=rp,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let h of a)h.from&&h.from!=="auto"&&l.add(h.from),h.refresh&&(i=!0),h.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Y2(a,c,d)}catch(h){if(r)for(let f=0;fh));let m=[],p=[],g=(h,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[h]||(p[h]=f,p[h].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[h].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[h].hasError=!0,f?.callback?.(C,null,f.sentence);return}p[h].translatedTexts[f.partIndex]=v;let T=p[h],w=0;for(let C=0;C{let w=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(w=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(S=>S.text),forces:f.tempSentences.map(S=>S.force),xpaths:f.tempSentences.map(S=>S.xpath||""),from:w,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=n1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let S=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(S=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],k=Kr(this.serviceConfig);if(f.tempSentences.forEach((O,z)=>{let V=Kp({text:O.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);O.force!==!0&&(V&&V.text&&V.text.trim().lengthz.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:O,from:w,to:f.to})}let R="";S&&S.length>=2?R=A.map((O,z)=>{let{item:V}=O;return z===A.length-1?V.text:V.text+S[0]+(z+1)+S[1]}).join(""):R=A.map(({item:O})=>O.text).join(C);let F=await this.translate({text:R,from:w,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:P}=F,I=[];if(S&&S.length>=2){let O=`${S[0]}\\d+${S[1]}`;S&&S.length>=3&&(O=S[2]);let z=new RegExp(O,"g");I=P.split(z)}else I=P.split(C);let L=[];if(I.length>A.length){for(let O=0;OO.text);return k=Kr(this.serviceConfig,!0),L.forEach((O,z)=>{let V=A[z],ie=V.index,Be=V.variables||{};Object.keys(Be).length>0&&(O=Yp({text:O,delimiters:k,variables:Be},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),_[ie]=O}),{sourceTempSentences:f.tempSentences,text:_,from:F.from,to:F.to}}};m.push(T().then(w=>{let{text:C,sourceTempSentences:S}=w;for(let A=0;A{if(w instanceof U&&w.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=h.sentence.text;return h.translatedTexts&&h.translatedTexts.length>0&&(f=h.translatedTexts.join("")),{...h.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Kr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Kp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Kr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Yp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return je({text:t,minLength:18,pageLangs:[dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var f6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],pu=class e extends Ae{static langMap=new Map(f6);maxTextGroupLength=50;static langMapReverse=new Map(f6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` `),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Hn(c)].join(` -`),p=await W9(d,`TC3${n}`),g=await l0(i,p),h=await l0("tc3_request",g),b=await l0(m,h),f=await Q({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var y6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],FP={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},fu=class e extends Ee{static langMap=new Map(y6);static langMapReverse=new Map(y6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await Q({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:FP,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var x6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],hu=class e extends Ee{static langMap=new Map(x6);static langMapReverse=new Map(x6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await Q({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function BP(e,t){return t?e+(t-e%t):e}function IP(e,t){return e.split(t).length-1}function dg(e){let t=Date.now(),n=1;for(let r of e)n+=IP(r,"i");return BP(t,n)}function _P(e,t){return Math.floor(Math.random()*(t-e+1))+e}function mg(){return _P(1e6,1e8)}var pg="https://www2.deepl.com/jsonrpc",gg="auto",v6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function OP(e=v6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function fg(e){return OP()[e.toLowerCase()]}var NP={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function jP(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function UP(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function HP(e,t,n,r,a,i,o){let s=mg(),u=UP(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=dg(t);let c=await Q({retry:2,method:"POST",url:e,body:jP(u),headers:NP}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function S6(e,t,n,r=gg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:HP(e,t,fg(n),fg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var T6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Wo=class e extends Ee{static langMap=new Map(T6);static langMapReverse=new Map(T6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=pg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(pg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await S6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var bu=class e extends Ee{static langMap=new Map(Sp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=xa.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=De(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=C6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await Q({url:vc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=De(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=C6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await Q({url:vc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return xa.detectLanguageRemotelyByTransmart(t)}};function C6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function hg(){return Math.random()>=.001}var Go=class extends Ee{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!hg())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Ab(),!hg())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var E6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],bg=new Map(E6),w6=new Map(E6.map(([e,t])=>[t,e])),yg=class e extends Ee{static langMap=bg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await Q({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:bg.get(r)||"auto",target_lang:bg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:w6.get(o.source_lang),to:w6.get(o.target_lang)}}else throw new U(i.msg)}},h0=yg;var xg="https://{s}bing.com",L6=xg+"/translator",qP=xg+"/ttranslatev3",zP=xg+"/tspellcheckv3",b0="bingGlobalConfig",M6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],A6=new Map(M6),k6=new Map(M6.map(([e,t])=>[t,e])),D6=1e3,Ir,Vo;function vg(e,t){return e.replace("{s}",t?t+".":"")}async function WP(){if(!Ir){let n=await $.storage.local.get(b0);return n&&(Ir=n[b0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Ir;return Date.now()-e>t}async function P6(){let e,t,n,r,a,i,o,s,u,l;try{let c=vg(L6,e),d=await Q({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Ir={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await $.storage.local.set({[b0]:Ir}),Ir}function GP(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Ir;return vg(e?zP:qP,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Ir.count++:"")}function VP(e,t,n,r){let{token:a,key:i}=Ir,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function R6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>D6)throw new Error(`The supported maximum length of text is ${D6}. Please shorten the text.`);Vo||(Vo=P6()),await Vo,await WP()&&(Vo=P6(),await Vo),t=t||"auto",n=n||"zh-CN",t=A6.get(t)||t,n=A6.get(n)||n;let a=GP(!1),i=VP(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:vg(L6,Ir.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await Q({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Ir=null,Vo=null,await $.storage.local.remove(b0),c.ShowCaptcha)throw new Error(` +`),p=await q9(d,`TC3${n}`),g=await u0(i,p),b=await u0("tc3_request",g),h=await u0(m,b),f=await Q({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${h}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var h6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],RP={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},gu=class e extends Ae{static langMap=new Map(h6);static langMapReverse=new Map(h6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await Q({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:RP,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var b6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],fu=class e extends Ae{static langMap=new Map(b6);static langMapReverse=new Map(b6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await Q({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function FP(e,t){return t?e+(t-e%t):e}function BP(e,t){return e.split(t).length-1}function dg(e){let t=Date.now(),n=1;for(let r of e)n+=BP(r,"i");return FP(t,n)}function IP(e,t){return Math.floor(Math.random()*(t-e+1))+e}function mg(){return IP(1e6,1e8)}var pg="https://www2.deepl.com/jsonrpc",gg="auto",y6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function _P(e=y6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function fg(e){return _P()[e.toLowerCase()]}var OP={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function NP(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function jP(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function UP(e,t,n,r,a,i,o){let s=mg(),u=jP(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=dg(t);let c=await Q({retry:2,method:"POST",url:e,body:NP(u),headers:OP}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function x6(e,t,n,r=gg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:UP(e,t,fg(n),fg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var v6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Wo=class e extends Ae{static langMap=new Map(v6);static langMapReverse=new Map(v6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=pg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(pg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await x6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var hu=class e extends Ae{static langMap=new Map(Tp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ba.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=De(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=T6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await Q({url:xc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=De(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=T6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await Q({url:xc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ba.detectLanguageRemotelyByTransmart(t)}};function T6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function hg(){return Math.random()>=.001}var Go=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!hg())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await wb(),!hg())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var C6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],bg=new Map(C6),S6=new Map(C6.map(([e,t])=>[t,e])),yg=class e extends Ae{static langMap=bg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await Q({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:bg.get(r)||"auto",target_lang:bg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:S6.get(o.source_lang),to:S6.get(o.target_lang)}}else throw new U(i.msg)}},f0=yg;var xg="https://{s}bing.com",D6=xg+"/translator",HP=xg+"/ttranslatev3",qP=xg+"/tspellcheckv3",h0="bingGlobalConfig",P6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],w6=new Map(P6),E6=new Map(P6.map(([e,t])=>[t,e])),A6=1e3,Br,Vo;function vg(e,t){return e.replace("{s}",t?t+".":"")}async function zP(){if(!Br){let n=await $.storage.local.get(h0);return n&&(Br=n[h0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Br;return Date.now()-e>t}async function k6(){let e,t,n,r,a,i,o,s,u,l;try{let c=vg(D6,e),d=await Q({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Br={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await $.storage.local.set({[h0]:Br}),Br}function WP(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Br;return vg(e?qP:HP,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Br.count++:"")}function GP(e,t,n,r){let{token:a,key:i}=Br,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function L6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>A6)throw new Error(`The supported maximum length of text is ${A6}. Please shorten the text.`);Vo||(Vo=k6()),await Vo,await zP()&&(Vo=k6(),await Vo),t=t||"auto",n=n||"zh-CN",t=w6.get(t)||t,n=w6.get(n)||n;let a=WP(!1),i=GP(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:vg(D6,Br.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await Q({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Br=null,Vo=null,await $.storage.local.remove(h0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:k6.get(m.language),to:k6.get(d.to)}}function ti(e){return e!=null}function I6(e,t,n){return`${e.type}#${t}#${n}`}function _6(e,t,n,r,a){return{body:a,id:r,type:I6(e,t,n)}}function KP(e,t,n,r){return{id:n,response:r,type:I6(e,"ask",t)}}function O6(e,t,n,r){if(ti(r)){let a=r.type;if(ti(a)&&ti(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function YP(e,t,n){if(ti(n)){let r=n.type;if(ti(r)&&ti(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function QP(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function JP(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;YP(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function ZP(e,t,n,r){let a=i=>{let o=i.data;O6(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function F6(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(O6(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(KP(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function XP(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(_6(t,"tell",n,i,r),a)}async function B6(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await JP(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(_6(n,"ask",r,s,a),i),u}var ni=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;F6(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(ti(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await B6(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(ZP(this.thisWindow,this.protocol,t,n))}tell(t,n){XP(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(F6(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return B6(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){QP(this.listeners)}};var N6;async function j6(){if(it()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ni.iframe(Il,"*",{targetWindow:t});N6=n,await ni.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function U6(){return N6}var y0=new Map;async function Sg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=$n(e.body)),y0.has(t))return y0.get(t);let n=Q(e);y0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{y0.delete(t)},3e3)}}async function H6(e){return Sg(e)}async function Zr(e){if(it()){let n=U6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return Sg(e)}else return Sg(e)}function q6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function v0(e){await Sm(e)}async function Xr(e,t){let n=await xm(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return x0(e,t)}return x0(e,t)}async function x0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await vm(e,n,i-1e3),n}var $P=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],Tg=new Map($P),_r=class extends Ee{static langMap=Tg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await v0(rm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await R6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Xr(rm,async()=>{let t=await Zr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return q6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=Tg.get(n)||"auto",o=Tg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await Q({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var eL=["chinese","english","japanese","korean","french","spanish","deutsch"],$r={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},S0=e=>$r.chinese.test(e),tL=e=>$r.english.test(e),nL=e=>$r.japanese.test(e),rL=e=>$r.korean.test(e),aL=e=>$r.french.test(e),iL=e=>$r.deutsch.test(e),oL=e=>$r.spanish.test(e),i$={chinese:vr(S0),english:vr(tL),japanese:vr(nL),korean:vr(rL),french:vr(aL),spanish:vr(oL),deutsch:vr(iL)},z6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,o$=new RegExp(`^(\\d|\\s|${z6.source})+$`),sL=new RegExp(`${$r.chinese.source}|${$r.japanese.source}|${$r.korean.source}`),s$=vr(e=>(e.replace(new RegExp(z6,"g")," ").replace(new RegExp(sL,"g")," x ").match(/\S+/g)||"").length),u$=[...eL,"others","matchAll"];var G6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],yu=new Map(G6),uL=new Map(G6.map(([e,t])=>[t,e])),Cg=class extends Ee{static langMap=yu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${$t}/v2/translate`;immersiveTranslateDeeplTokenUrl=tt;immersiveTranslateDeeplProApiUrl=tt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:yu.get(n)||"",target_lang:yu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:yu.get(n)||"auto",target_lang:yu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await Q({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await Q({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await Q({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>wg(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new _r({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&uL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!da()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},Ko=Cg;function wg(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&S0(t[0])&&W6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&S0(t[t.length-1])&&W6(t,"\u300A")==1?t+"\u300B":lL(e,t)}function lL(e,t){let n=e?.richIdName;return!n||!D9(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function W6(e,t){return e.split(t).length-1}var cL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Eg=new Map(cL),Ag=class extends Ee{static langMap=Eg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Eg.get(r)||r,to:Eg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await Q(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},V6=Ag;var dL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],kg=new Map(dL),Dg=class extends Ee{static langMap=kg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:kg.get(a)||a};r!=="auto"&&(i.from=kg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await Q(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},K6=Dg;var mL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Yo=new Map(mL),Pg=class extends Ee{static langMap=Yo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:E6.get(m.language),to:E6.get(d.to)}}function ei(e){return e!=null}function F6(e,t,n){return`${e.type}#${t}#${n}`}function B6(e,t,n,r,a){return{body:a,id:r,type:F6(e,t,n)}}function VP(e,t,n,r){return{id:n,response:r,type:F6(e,"ask",t)}}function I6(e,t,n,r){if(ei(r)){let a=r.type;if(ei(a)&&ei(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function KP(e,t,n){if(ei(n)){let r=n.type;if(ei(r)&&ei(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function YP(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function QP(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;KP(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function JP(e,t,n,r){let a=i=>{let o=i.data;I6(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function M6(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(I6(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(VP(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function ZP(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(B6(t,"tell",n,i,r),a)}async function R6(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await QP(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(B6(n,"ask",r,s,a),i),u}var ti=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;M6(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(ei(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await R6(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(JP(this.thisWindow,this.protocol,t,n))}tell(t,n){ZP(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(M6(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return R6(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){YP(this.listeners)}};var _6;async function O6(){if(at()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ti.iframe(Bl,"*",{targetWindow:t});_6=n,await ti.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function N6(){return _6}var b0=new Map;async function Tg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=$n(e.body)),b0.has(t))return b0.get(t);let n=Q(e);b0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{b0.delete(t)},3e3)}}async function j6(e){return Tg(e)}async function Jr(e){if(at()){let n=N6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return Tg(e)}else return Tg(e)}function U6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function x0(e){await Tm(e)}async function Zr(e,t){let n=await xm(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return y0(e,t)}return y0(e,t)}async function y0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await vm(e,n,i-1e3),n}var XP=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],Sg=new Map(XP),Ir=class extends Ae{static langMap=Sg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await x0(nm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await L6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Zr(nm,async()=>{let t=await Jr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return U6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=Sg.get(n)||"auto",o=Sg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await Q({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var $P=["chinese","english","japanese","korean","french","spanish","deutsch"],Xr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},v0=e=>Xr.chinese.test(e),eL=e=>Xr.english.test(e),tL=e=>Xr.japanese.test(e),nL=e=>Xr.korean.test(e),rL=e=>Xr.french.test(e),aL=e=>Xr.deutsch.test(e),iL=e=>Xr.spanish.test(e),o$={chinese:vr(v0),english:vr(eL),japanese:vr(tL),korean:vr(nL),french:vr(rL),spanish:vr(iL),deutsch:vr(aL)},H6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,s$=new RegExp(`^(\\d|\\s|${H6.source})+$`),oL=new RegExp(`${Xr.chinese.source}|${Xr.japanese.source}|${Xr.korean.source}`),u$=vr(e=>(e.replace(new RegExp(H6,"g")," ").replace(new RegExp(oL,"g")," x ").match(/\S+/g)||"").length),l$=[...$P,"others","matchAll"];var z6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],bu=new Map(z6),sL=new Map(z6.map(([e,t])=>[t,e])),Cg=class extends Ae{static langMap=bu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${$t}/v2/translate`;immersiveTranslateDeeplTokenUrl=tt;immersiveTranslateDeeplProApiUrl=tt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:bu.get(n)||"",target_lang:bu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:bu.get(n)||"auto",target_lang:bu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let b,h={};t.refresh&&(h={"X-Refresh":"True"}),t.debug&&(h={...h,"X-Debug":"True"}),this.provider==="pro"?b=await Q({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...h,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await Q({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...h,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await Q({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>wg(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new Ir({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&sL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!la()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},Ko=Cg;function wg(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&v0(t[0])&&q6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&v0(t[t.length-1])&&q6(t,"\u300A")==1?t+"\u300B":uL(e,t)}function uL(e,t){let n=e?.richIdName;return!n||!A9(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function q6(e,t){return e.split(t).length-1}var lL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Eg=new Map(lL),Ag=class extends Ae{static langMap=Eg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Eg.get(r)||r,to:Eg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await Q(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},W6=Ag;var cL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],kg=new Map(cL),Dg=class extends Ae{static langMap=kg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:kg.get(a)||a};r!=="auto"&&(i.from=kg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await Q(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},G6=Dg;var dL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Yo=new Map(dL),Pg=class extends Ae{static langMap=Yo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Yo.get(r)?(i=(await Q({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Yo.get(r)||r,target:Yo.get(a)||a})):u.body=JSON.stringify({text:s,source:Yo.get(r),target:Yo.get(a)||a});let l=await Q(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},Y6=Pg;function Q6(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Yo.get(r)?(i=(await Q({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Yo.get(r)||r,target:Yo.get(a)||a})):u.body=JSON.stringify({text:s,source:Yo.get(r),target:Yo.get(a)||a});let l=await Q(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},V6=Pg;function K6(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` -`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var Lg=class extends Ee{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` +`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var Lg=class extends Ae{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=ho()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?uc(l,s):`${s}${Ul}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let b="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Qc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let R=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let P=0;PP==="from"?c:P==="to"?d+" Language":P==="text"?r:P=="json"?b:P=="yaml"?f:m[P]===""?"":m[P]||F).replace(/{{(.+?)}}/g,(F,P)=>m[P]||F)}}async rawRequest(t){return await Q(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=ho()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?sc(l,s):`${s}${jl}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),b=[r];s?.rawTextArrayLength&&(b=r.split(this.translationTextSeparator)),b.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&b.length>1&&(l=this.subtitlePrompt);let h="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Yc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let R=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let P=0;PP==="from"?c:P==="to"?d+" Language":P==="text"?r:P=="json"?h:P=="yaml"?f:m[P]===""?"":m[P]||F).replace(/{{(.+?)}}/g,(F,P)=>m[P]||F)}}async rawRequest(t){return await Q(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;a`\`${s}\``).join(", "),D.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;s`\`${s}\``).join(", "),D.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` [theme]`,n.imt_theme,` -\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return $n(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ri=Lg;function pL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var gL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],J6=new Map(gL),Mg=class extends ri{static langMap=J6;provider="custom";immersiveApiUrl=`https://openai-api.${$t}/v1/chat/completions`;immersiveProApiUrl=tt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return J6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return $n(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!Ko.langMap.has(n.to)||!Ko.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ko(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Z6=Mg;function un(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function fL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function we(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ai(e,t){return e<>>32-t}function ea(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Qo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function X6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Jo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ta(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var $6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?un(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return ea(a(m,r),t)},this.b64=function(m){return na(a(m),n)},this.any=function(m,p){return ta(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return ea(i(m,p),t)},this.b64_hmac=function(m,p){return na(i(m,p),n)},this.any_hmac=function(m,p,g){return ta(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?un(m):m,X6(o(Jo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?un(m):m,p=r?un(p):p,g=Jo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Jo(p)),512+p.length*8),X6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,S=-271733879,w=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Aa(c)),512+c.length*8),Qo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),S=1732584193,w=-271733879,C=-1732584194,T=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,S.length*8));T<16;T+=1)k[T]=A[T]^909522486,R[T]=A[T]^1549556828;return C=v(k.concat(Aa(w)),512+w.length*8),Qo(v(R.concat(C),512+256))}function s(S,w){return S>>>w|S<<32-w}function u(S,w){return S>>>w}function l(S,w,C){return S&w^~S&C}function c(S,w,C){return S&w^S&C^w&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,w){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],T=new Array(64),A,k,R,F,P,I,L,_,O,z,V,ie;for(S[w>>5]|=128<<24-w%32,S[(w+64>>9<<4)+15]=w,O=0;O32&&(S=s(S,b.length*8));v<32;v+=1)w[v]=S[v]^909522486,C[v]=S[v]^1549556828;return y=s(w.concat(Aa(f)),1024+f.length*8),Qo(s(C.concat(y),1024+512))}function s(b,f){var y,v,S,w=new Array(80),C=new Array(16),T=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),k=new u(0,0),R=new u(0,0),F=new u(0,0),P=new u(0,0),I=new u(0,0),L=new u(0,0),_=new u(0,0),O=new u(0,0),z=new u(0,0),V=new u(0,0),ie=new u(0,0),Ie=new u(0,0),re=new u(0,0),N=new u(0,0),j=new u(0,0),W=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)w[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),w=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(w>>>16);b.l=v&65535|S<<16,b.h=w&65535|C<<16}function g(b,f,y,v,S){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w>>>16),T=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T>>>16);b.l=w&65535|C<<16,b.h=T&65535|A<<16}function h(b,f,y,v,S,w){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(w.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(w.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(w.h&65535)+(T>>>16),k=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(w.h>>>16)+(A>>>16);b.l=C&65535|T<<16,b.h=A&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return ea(u(h,r))},this.b64=function(h){return na(u(h,r),n)},this.any=function(h,b){return ta(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return ea(l(h,b))},this.b64_hmac=function(h,b){return na(l(h,b),n)},this.any_hmac=function(h,b,f){return ta(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?un(h):h,c(d(Jo(h),h.length*8))}function l(h,b){h=r?un(h):h,b=r?un(b):b;var f,y,v=Jo(h),S=Array(16),w=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,w[f]=v[f]^1549556828;return y=d(S.concat(Jo(b)),512+b.length*8),c(d(w.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,S,w=1732584193,C=4023233417,T=2562383102,A=271733878,k=3285377520,R,F,P,I,L,_,O,z,V,ie;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new $6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await Q({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var hL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Rg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Fg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Rg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Rg).sort().join(`&${r}=`)}`:`${r}=${Rg(n)}`}).filter(t=>t).join("&"),Zo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,Fg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return No(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return $n(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ni=Lg;function mL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var pL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Y6=new Map(pL),Mg=class extends ni{static langMap=Y6;provider="custom";immersiveApiUrl=`https://openai-api.${$t}/v1/chat/completions`;immersiveProApiUrl=tt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return Y6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return $n(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!Ko.langMap.has(n.to)||!Ko.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ko(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Q6=Mg;function un(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function gL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function we(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ri(e,t){return e<>>32-t}function $r(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Qo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function J6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Jo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ea(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var Z6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?un(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,b="",h=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?h[g]=String.fromCharCode(o):m===64?h[g]=String.fromCharCode(o,s):h[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return $r(a(m,r),t)},this.b64=function(m){return ta(a(m),n)},this.any=function(m,p){return ea(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return $r(i(m,p),t)},this.b64_hmac=function(m,p){return ta(i(m,p),n)},this.any_hmac=function(m,p,g){return ea(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?un(m):m,J6(o(Jo(m),m.length*8))}function i(m,p){var g,b,h,f,y;for(m=r?un(m):m,p=r?un(p):p,g=Jo(m),g.length>16&&(g=o(g,m.length*8)),b=Array(16),h=Array(16),y=0;y<16;y+=1)b[y]=g[y]^909522486,h[y]=g[y]^1549556828;return f=o(b.concat(Jo(p)),512+p.length*8),J6(o(h.concat(f),512+128))}function o(m,p){var g,b,h,f,y,v=1732584193,T=-271733879,w=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return b=o(m.concat(Ea(c)),512+c.length*8),Qo(o(p.concat(b),512+160))}function o(l,c){var d,m,p,g,b,h,f,y,v=Array(80),T=1732584193,w=-271733879,C=-1732584194,S=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,T.length*8));S<16;S+=1)k[S]=A[S]^909522486,R[S]=A[S]^1549556828;return C=v(k.concat(Ea(w)),512+w.length*8),Qo(v(R.concat(C),512+256))}function s(T,w){return T>>>w|T<<32-w}function u(T,w){return T>>>w}function l(T,w,C){return T&w^~T&C}function c(T,w,C){return T&w^T&C^w&C}function d(T){return s(T,2)^s(T,13)^s(T,22)}function m(T){return s(T,6)^s(T,11)^s(T,25)}function p(T){return s(T,7)^s(T,18)^u(T,3)}function g(T){return s(T,17)^s(T,19)^u(T,10)}function b(T){return s(T,28)^s(T,34)^s(T,39)}function h(T){return s(T,14)^s(T,18)^s(T,41)}function f(T){return s(T,1)^s(T,8)^u(T,7)}function y(T){return s(T,19)^s(T,61)^u(T,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(T,w){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],S=new Array(64),A,k,R,F,P,I,L,_,O,z,V,ie;for(T[w>>5]|=128<<24-w%32,T[(w+64>>9<<4)+15]=w,O=0;O32&&(T=s(T,h.length*8));v<32;v+=1)w[v]=T[v]^909522486,C[v]=T[v]^1549556828;return y=s(w.concat(Ea(f)),1024+f.length*8),Qo(s(C.concat(y),1024+512))}function s(h,f){var y,v,T,w=new Array(80),C=new Array(16),S=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),k=new u(0,0),R=new u(0,0),F=new u(0,0),P=new u(0,0),I=new u(0,0),L=new u(0,0),_=new u(0,0),O=new u(0,0),z=new u(0,0),V=new u(0,0),ie=new u(0,0),Be=new u(0,0),re=new u(0,0),N=new u(0,0),j=new u(0,0),W=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)w[v]=new u(0,0);for(h[f>>5]|=128<<24-(f&31),h[(f+128>>10<<5)+31]=f,T=h.length,v=0;v>>y|f.h<<32-y,h.h=f.h>>>y|f.l<<32-y}function d(h,f,y){h.l=f.h>>>y|f.l<<32-y,h.h=f.l>>>y|f.h<<32-y}function m(h,f,y){h.l=f.l>>>y|f.h<<32-y,h.h=f.h>>>y}function p(h,f,y){var v=(f.l&65535)+(y.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v>>>16),w=(f.h&65535)+(y.h&65535)+(T>>>16),C=(f.h>>>16)+(y.h>>>16)+(w>>>16);h.l=v&65535|T<<16,h.h=w&65535|C<<16}function g(h,f,y,v,T){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(T.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(T.l>>>16)+(w>>>16),S=(f.h&65535)+(y.h&65535)+(v.h&65535)+(T.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(T.h>>>16)+(S>>>16);h.l=w&65535|C<<16,h.h=S&65535|A<<16}function b(h,f,y,v,T,w){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(T.l&65535)+(w.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(T.l>>>16)+(w.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(T.h&65535)+(w.h&65535)+(S>>>16),k=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(T.h>>>16)+(w.h>>>16)+(A>>>16);h.l=C&65535|S<<16,h.h=A&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return $r(u(b,r))},this.b64=function(b){return ta(u(b,r),n)},this.any=function(b,h){return ea(u(b,r),h)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,h){return $r(l(b,h))},this.b64_hmac=function(b,h){return ta(l(b,h),n)},this.any_hmac=function(b,h,f){return ea(l(b,h),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?un(b):b,c(d(Jo(b),b.length*8))}function l(b,h){b=r?un(b):b,h=r?un(h):h;var f,y,v=Jo(b),T=Array(16),w=Array(16);for(v.length>16&&(v=d(v,b.length*8)),f=0;f<16;f+=1)T[f]=v[f]^909522486,w[f]=v[f]^1549556828;return y=d(T.concat(Jo(h)),512+h.length*8),c(d(w.concat(y),512+160))}function c(b){var h,f="",y=b.length*32;for(h=0;h>5]>>>h%32&255);return f}function d(b,h){var f,y,v,T,w=1732584193,C=4023233417,S=2562383102,A=271733878,k=3285377520,R,F,P,I,L,_,O,z,V,ie;for(b[h>>5]|=128<>>9<<4)+14]=h,T=b.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new Z6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(b=>{let f=Object.keys(b).sort().map(y=>`${this.encode(y)}=${this.encode(b[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await Q({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var fL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Rg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Fg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Rg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Rg).sort().join(`&${r}=`)}`:`${r}=${Rg(n)}`}).filter(t=>t).join("&"),Zo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,Fg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return No(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=Fg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new U(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Fg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return hL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var tx=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Bg=new Map(tx),bL=new Map(tx.map(([e,t])=>[t,e])),Ig=class extends Ee{static langMap=Bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Zo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await Q({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Bg.get(r),o={TargetLanguage:Bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Zo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await Q({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=bL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},nx=Ig;var rx=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],_g=new Map(rx),yL=new Map(rx.map(([e,t])=>[t,e])),vu=class extends Ee{static langMap=_g;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=_g.get(r)||"detect",o=_g.get(a)||a,u=await Q({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=yL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var xL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Og=new Map(xL),Su=class extends Ee{static langMap=Og;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Og.get(r)||r,target_lang:Og.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await Q({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:wg(this.serviceConfig,u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var ax=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ng=new Map(ax),vL=new Map(ax.map(([e,t])=>[t,e])),jg=class extends Ee{static langMap=Ng;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=$n(a+o+n+i);this.domain&&(l=$n(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ng.get(s)||"auto",to:Ng.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await Q({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:vL.get(g)||g,to:u,text:h.join(` -`)}}},ix=jg;var _i=class extends Ee{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await au(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await au(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?SL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return xa.detectLanguageRemotelyByTransmart(t)}};function SL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var ox=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Ug=class extends _i{static langMap=new Map(ox);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:ox,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},sx=Ug;var TL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],T0=new Map(TL),Hg=class extends Ee{static langMap=T0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!T0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await Q({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${T0.get(r)||"auto"}2${T0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},ux=Hg;var lx=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],qg=new Map(lx),CL=new Map(lx.map(([e,t])=>[t,e]));function wL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var zg=class extends Ee{static langMap=qg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=EL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+wL(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:qg.get(r)||"auto",to:qg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await Q({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` -`),from:CL.get(g),to:a}}};function EL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Gg=class extends Ee{static langMap=Wg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Wg.get(r)||"auto",to:Wg.get(a)||a},o=new URLSearchParams(i),s=await Q({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},mx=Gg;var Tu=class extends _i{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||so,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Vg=class extends ri{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},C0=Vg;var px=B+"-gemini-fake-user-key",AL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],gx=new Map(AL),Kg=class extends C0{static langMap=gx;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=tt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return gx}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ai(px,""),this.fakeId||(this.fakeId=kL(10),await ki(px,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function kL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Zr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Qg.get(r)+"-"}${Qg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await Q({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var LL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],yx=new Map(LL),wu=class extends ri{static langMap=yx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Xr(im+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Zr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return yx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(x0(im+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var ML=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],xx=new Map(ML),qn=class extends ri{static langMap=xx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return xx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var w0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return No(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Fg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return fL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var $6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Bg=new Map($6),hL=new Map($6.map(([e,t])=>[t,e])),Ig=class extends Ae{static langMap=Bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Zo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await Q({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Bg.get(r),o={TargetLanguage:Bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Zo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await Q({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=hL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},ex=Ig;var tx=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],_g=new Map(tx),bL=new Map(tx.map(([e,t])=>[t,e])),xu=class extends Ae{static langMap=_g;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=_g.get(r)||"detect",o=_g.get(a)||a,u=await Q({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=bL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var yL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Og=new Map(yL),vu=class extends Ae{static langMap=Og;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Og.get(r)||r,target_lang:Og.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await Q({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:wg(this.serviceConfig,u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var nx=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ng=new Map(nx),xL=new Map(nx.map(([e,t])=>[t,e])),jg=class extends Ae{static langMap=Ng;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=$n(a+o+n+i);this.domain&&(l=$n(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ng.get(s)||"auto",to:Ng.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await Q({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,b=p.map(({dst:f})=>f);return{from:xL.get(g)||g,to:u,text:b.join(` +`)}}},rx=jg;var Ii=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await ru(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await ru(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),b=o[p];return g==="random"?vL(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ba.detectLanguageRemotelyByTransmart(t)}};function vL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var ax=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Ug=class extends Ii{static langMap=new Map(ax);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:ax,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},ix=Ug;var TL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],T0=new Map(TL),Hg=class extends Ae{static langMap=T0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!T0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await Q({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${T0.get(r)||"auto"}2${T0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},ox=Hg;var sx=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],qg=new Map(sx),SL=new Map(sx.map(([e,t])=>[t,e]));function CL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var zg=class extends Ae{static langMap=qg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=wL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+CL(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:qg.get(r)||"auto",to:qg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await Q({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,b]=p.split("2");return{text:m.translation.join(` +`),from:SL.get(g),to:a}}};function wL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Gg=class extends Ae{static langMap=Wg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Wg.get(r)||"auto",to:Wg.get(a)||a},o=new URLSearchParams(i),s=await Q({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},cx=Gg;var Tu=class extends Ii{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||so,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Vg=class extends ni{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},S0=Vg;var dx=B+"-gemini-fake-user-key",EL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],mx=new Map(EL),Kg=class extends S0{static langMap=mx;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=tt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return mx}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ei(dx,""),this.fakeId||(this.fakeId=AL(10),await Ai(dx,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function AL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Jr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Qg.get(r)+"-"}${Qg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await Q({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var PL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],hx=new Map(PL),Cu=class extends ni{static langMap=hx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Zr(am+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Jr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return hx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(y0(am+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var LL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],bx=new Map(LL),qn=class extends ni{static langMap=bx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return bx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var C0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return No(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` `+i}}async getCanonicalRequest(t){let n=await Hn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 @@ -5851,46 +5851,46 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var E0=class extends qn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Xr(O3,async()=>{let t=await Zr({responseType:"json",url:`${tt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Jg=["glm-4-flash"],A0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Jg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Jg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Xr(N3,async()=>{let t=await Zr({responseType:"json",url:`${tt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!_r.langMap.has(n.to)||!_r.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new _r(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Jg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var k0={mock:Go,mock2:Go,custom:Tu,google:hu,transmart:bu,deepl:Ko,volc:nx,volcAlpha:vu,bing:_r,tencent:gu,tenAlpha:fu,baidu:ix,caiyun:sx,cai:ux,openl:h0,youdao:cx,you:mx,d:Wo,dpro:Wo,deeplx:Su,niu:V6,azure:K6,openai:Z6,gemini:fx,claude:bx,papago:Y6,aliyun:xu,yandex:Cu,qianfan:wu,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:w0,siliconcloud:E0,lingyiwanwu:qn,zhipu:A0};globalThis.TranslationServicesClass=k0;var ii={};Object.keys(wr).forEach(e=>{ii[e]={...wr[e],class:k0[e]}});function D0(e,t){let n=Xn;if(ii[e]&&ii[e].class&&ii[e].class.langMap&&ii[e].class.langMap.size>0){let r=ii[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function ra(e,t,n){if(!e.text)return e;let r=null,a=await Yt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function vx(e,t){for(let n of e)try{return await ra({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Zg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ht(e.user);await new ii[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function RL(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Yt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),Ea(a,t.localConfig,!1),d=await Z9(m,d,{sourceLanguage:RL(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=FL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ht(t.user),w;try{w=new ii[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){b.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let R of b){let F=A instanceof U?new U(A.name,A.message).initNetWork(A.status).initData(A.data||k):A;n(F,null,R)}}return{sentences:[]}}if(o.cache&&!ho(a))for(let A of e.sentences){v++;let k=l;l==="openl"&&(k=l+"-"+d.codename||h0.DEFAULT_CODENAME);let R=w.getCacheKeyPrefix();R&&(k=R+"-"+k);let F=null;try{F=await ql(wb({originalText:A.text,from:A.from,to:A.to,service:k}),200)}catch(P){D.warn("query cache DB error, but it's ok",P)}if(F){let P={...A,text:F.translatedText};f.sentences[v]=P,n&&n(null,P,A)}else b.push(A)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&D.debug(`use ${y-C} sentences from cache`),!b.length)return f;let T=await w.multipleTranslate({sentences:b},d,(A,k,R)=>{if(n&&n(A,k,R),!A&&k&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||h0.DEFAULT_CODENAME);let P=w.getCacheKeyPrefix();P&&(F=P+"-"+F),o.cache&&ql(Eb({translatedText:k.text,from:R.from,to:R.to,detectedFrom:k.from,key:$n(R.text),service:F}),3e3).catch(I=>{D.warn("set cache DB error",I)})}});for(let A of T?.sentences||[]){let k=f.sentences.findIndex(R=>!R);if(k===-1)throw new U("translateFailed","can not match the result");f.sentences[k]=A}return f}function FL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function Sx({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=D0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(BL,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:o6,style:{maxWidth:"unset"},class:"mx-2"}),x(IL,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function BL(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:cg(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=ei(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=ei(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function IL(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:cg(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=ei(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function oi(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Xg;function lf(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Lx(e,t=","){return e.map(lf).join(t)}var Mx=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function L0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function M0(e,t="@media "){return t+or(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function or(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function _L(){}var ln={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Rx(e){return e.match(/[-=:;]/g)?.length||0}function af(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Rx(e),15)<<18}var OL=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function cf({n:e,i:t,v:n=[]},r,a,i){e&&(e=lf({n:e,i:t,v:n})),i=[...or(i)];for(let s of n){let u=r.theme("screens",s);for(let l of or(u&&M0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|af(l):s=="dark"?1073741824:l[0]=="@"?af(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~OL.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var df=new Map;function Tx(e){if(e.d){let t=[],n=$g(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?$g(r,i=>$g(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):ef(i,o)}return ef(o,i)})):r,"&"),r=>ef(r,e.n?"."+Mx(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function $g(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function ef(e,t){return e.replace(/&/g,t)}var Cx=new Intl.Collator("en",{numeric:!0});function NL(e,t){for(var n=0,r=e.length;n>1;0>=Fx(e[a],t)?n=a+1:r=a}return r}function Fx(e,t){let n=e.p&ln.o;return n==(t.p&ln.o)&&(n==ln.b||n==ln.o)?0:e.p-t.p||e.o-t.o||Cx.compare(wx(e.n),wx(t.n))||Cx.compare(Ex(e.n),Ex(t.n))}function wx(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Ex(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function tf(e,t){return Math.round(parseInt(e,16)*t)}function si(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[tf(e.substr(1,i),o),tf(e.substr(1+i,i),o),tf(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Bx(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(..._x(s,u,pf(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of or(v))m.push(...i(S,{n:s,p:(b=ln[y[7]],u&~ln.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...or(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:ln.d,o:0,r:[y],d:i(v,{p:ln.d},d).map(Tx).join("")});continue}if(y[1]=="f"){m.push(...or(v).map(S=>({p:ln.d,o:0,r:[y],d:i(S,{p:ln.d},d).map(Tx).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+L0(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:Rx(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+or(v).map(S=>d.s(y,Ix(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(w,C)=>{let T=d.theme("screens",C);return T?(S|=67108864,M0(T,"")):w}),S|=af(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(Fx)}(e,cf(t,n,r,a),n)}function Ix(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?si(s):""+or(s).filter(u=>Object(u)!==u)})}function mf(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function of(e,t,n=ln.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=df.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=cf(u,l,c,d),mf(of(pf(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...or(d),...or(g.r)],p:(h=c,b=g.p??c,h&~ln.o|b)}}):Bx(p,u,l,c,d):[{c:lf(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(NL(i,s),0,s);return i}function _x(e,t,n,r,a,i,o,s){return mf((s?n.flatMap(u=>of([u],r,a,i,o)):of(n,r,a,i,o)).map(u=>u.p&ln.o&&(u.n||t==ln.b)?{...u,p:u.p&~ln.o|t,o:0}:u),e)}function jL(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=cf(i,o,t);return n&&_x(s,t,n,o,u,l,c,r)},df.set(e,a),e}function nf(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(UL),i:a}))}}function UL(e,t,n){return n.indexOf(e)==t}var Ax=new Map;function pf(e){let t=Ax.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&nf(n,r)),a=s+1};for(;s1?d.slice(0,-1)+L0(JSON.stringify([d,m])):d+"("+Lx(m)+")",ln.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Ax.set(e,t=r[0])}return t}function Ox(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function Nx(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ox(e,t,n=>rf(n).trim()):t.filter(Boolean).reduce((n,r)=>n+rf(r),e?rf(e):"")}function rf(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Nx(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var Ore=jx("@"),Nre=jx("~");function jx(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return Lx(pf(n+e+"("+Nx(r,a)+")"))}}function sf(e,t){return Array.isArray(e)?kx(Ox(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?kx(e):[e]}var HL=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function kx(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=HL.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function Ux(e,...t){var n;let r=sf(e,t),a=(r.find(i=>i.label)?.label||"css")+L0(JSON.stringify(r));return n=(i,o)=>mf(r.flatMap(s=>Bx(s,i,o,ln.o)),a),df.set(a,n),a}var jre=new Proxy(function(e,t){return Dx("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Dx(t,n,r)}}});function Dx(e,t,n){return{toString(){return Ux({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function Z(e,t,n){return[e,qL(t,n)]}function qL(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):uf(n,1)}):n=>e||{[n[1]]:uf(n,2)}}function uf(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,zL(t,n,r)]}function zL(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=Hx(e||a[1]),s=i.theme(o,a.$$)??Xo(a.$$,o,i);if(s!=null)return a._=uf(a,0,s),r(a,i,o)}}function Qt(e,t={},n){return[e,WL(t,n)]}function WL(e={},t){return(n,r)=>{let{section:a=Hx(n[0]).replace("-","")+"Color"}=e,[i,o]=GL(n.$$);if(!i)return;let s=r.theme(a,i)||Xo(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&Xo(o,l,r),p=t||(({_:h})=>{let b=Eu(c,h);return d?{[d]:b}:b});n._={value:si(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>si(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:si(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>si(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function GL(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Eu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Xo(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=P0(Ix(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Hx(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function P0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>P0(n)+r+P0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Ure=Symbol();var qx=new Proxy(_L,{apply(e,t,n){return Xg(n[0])},get(e,t){let n=Xg[t];return typeof n=="function"?function(){return n.apply(Xg,arguments)}:n}});var Hre=function e(t){return new Proxy(function(n,...r){return Px(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return Px(t,r,a,i)}}})}();function Px(e,t,n,r){return{toString(){let a=sf(n,r),i=Mx(t+L0(JSON.stringify([t,a])));return(typeof e=="function"?e:qx)(Ux({[`@keyframes ${i}`]:sf(n,r)})),i}}}var zx={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...sr(4,"rem",4,.5,.5),...sr(12,"rem",4,5),14:"3.5rem",...sr(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ke("blur"),backdropBrightness:Ke("brightness"),backdropContrast:Ke("contrast"),backdropGrayscale:Ke("grayscale"),backdropHueRotate:Ke("hueRotate"),backdropInvert:Ke("invert"),backdropOpacity:Ke("opacity"),backdropSaturate:Ke("saturate"),backdropSepia:Ke("sepia"),backgroundColor:Ke("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ke("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...sr(200,"",100,0,50),...sr(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ke("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ke("spacing"),borderWidth:{DEFAULT:"1px",...hr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ke("colors"),caretColor:Ke("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...sr(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ke("borderColor"),divideOpacity:Ke("borderOpacity"),divideWidth:Ke("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Au(2,6),...Au(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ke("spacing"),gradientColorStops:Ke("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Au(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Au(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...sr(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...sr(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ke("spacing"),placeholderColor:Ke("colors"),placeholderOpacity:Ke("opacity"),outlineColor:Ke("colors"),outlineOffset:hr(8,"px"),outlineWidth:hr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ke("colors"),ringOffsetWidth:hr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...hr(8,"px")},rotate:{...hr(2,"deg"),...hr(12,"deg",3),...hr(180,"deg",45)},saturate:sr(200,"",100,0,50),scale:{...sr(150,"",100,0,50),...sr(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ke("spacing"),scrollPadding:Ke("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...hr(2,"deg"),...hr(12,"deg",3)},space:Ke("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:sr(2),textColor:Ke("colors"),textDecorationColor:Ke("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...hr(8,"px")},textUnderlineOffset:{auto:"auto",...hr(8,"px")},textIndent:Ke("spacing"),textOpacity:Ke("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ke("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Au(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...sr(50,"",1,0,10),auto:"auto"}};function Au(e,t){let n={};do for(var r=1;rt(e)}var iae={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${zx.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${zx.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},sae=[Z("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Xo(`[${t}]`,"",n)}}})),Z("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),Z("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[M0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),Z("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),Z("box-(border|content)","boxSizing",({1:e})=>e+"-box"),Z("hidden",{display:"none"}),Z("table-(auto|fixed)","tableLayout"),Z(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",Z("isolate","isolation"),Z("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),Z("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",R0),Z("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),Z("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),Z("(visible|collapse)","visibility"),Z("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),Z("flex-((row|col)(-reverse)?)","flexDirection",Wx),Z("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),Z("grid-cols-(\\d+)","gridTemplateColumns",Yx),ee("col-","gridColumn"),Z("col-(span)-(\\d+)","gridColumn",Kx),ee("col-start-","gridColumnStart"),Z("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),Z("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),Z("grid-rows-(\\d+)","gridTemplateRows",Yx),ee("row-","gridRow"),Z("row-(span)-(\\d+)","gridRow",Kx),ee("row-start-","gridRowStart"),Z("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),Z("row-end-(auto|\\d+)","gridRowEnd"),Z("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>R0(Wx(e))),Z("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",Z("justify-","justifyContent",Gx),Z("(content|items|self)-",e=>({["align-"+e[1]]:Gx(e)})),Z("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",$o("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",$o("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),Z("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=or(e))[1]=="string"?{fontFamily:Or(e)}:{fontFamily:Or(e[0]),...e[1]}),Z("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),Z("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),Z("italic","fontStyle"),Z("not-italic",{fontStyle:"normal"}),Z("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ui({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),Z("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),Z("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Qt("placeholder-",{property:"color",selector:"&::placeholder"}),Z("text-(left|center|right|justify|start|end)","textAlign"),Z("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Qt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),Z("(overline|underline|line-through)","textDecorationLine"),Z("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Qt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),Z("decoration-","textDecorationStyle"),Z("(uppercase|lowercase|capitalize)","textTransform"),Z("normal-case",{textTransform:"none"}),Z("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Z("align-","verticalAlign"),Z("whitespace-","whiteSpace"),Z("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),Z("break-words",{overflowWrap:"break-word"}),Z("break-all",{wordBreak:"break-all"}),Z("break-keep",{wordBreak:"keep-all"}),Qt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Qt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),Z("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Oi(e," ")},var(--tw-gradient-stops))`),Qt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Qt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Qt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),Z("bg-(fixed|local|scroll)","backgroundAttachment"),Z("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),Z(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),Z("bg-blend-","backgroundBlendMode"),Z("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Qt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),Z("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",R0),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Oi(n[0])}-radius`]:t,[`border-${Oi(n[1])}-radius`]:t}}),Z("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),Z("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ui({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Qt("border-([xytrbl])-",{section:"borderColor"},$o("border","Color")),Qt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",$o("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),Z("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),Z("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Oi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Oi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Qt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Qt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),Z("ring-inset",{"--tw-ring-inset":"inset"}),Qt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ui({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":si(t("ringOffsetColor","","#fff")),"--tw-ring-color":si(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Qt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...ui({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Or(e),"--tw-shadow-colored":Or(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),Z("mix-blend-","mixBlendMode"),...Vx(),...Vx("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Or(e),transitionTimingFunction:e._=="none"?void 0:Or(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Or(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",Or),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Or),ee("delay(?:$|-)","transitionDelay","transitionDelay",Or),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Or(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",Z("transform",ff),Z("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Qx(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...ff()})),ee("-?(rotate)-","rotate",gf),ee("-?(translate-[xy])-","translate",gf),ee("-?(skew-[xy])-","skew",gf),Z("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",R0),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",Z("snap-(none)","scroll-snap-type"),Z("snap-(x|y|both)",({1:e})=>({...ui({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),Z("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),Z("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),Z("snap-(normal|always)","scroll-snap-stop"),Z("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",$o("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",$o("scroll-margin")),Z("touch-(auto|none|manipulation)","touch-action"),Z("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ui({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),Z("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),Z("outline",{outlineStyle:"solid"}),Z("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Qt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],Z("select-(none|text|all|auto)","userSelect"),Qt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Qt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),Z("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),Z("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function R0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Wx(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Oi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Or(e){return e&&""+(e._||e)}function Gx({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function $o(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Eu(e+"-"+Oi(a[0])+t,r),...Eu(e+"-"+Oi(a[1])+t,r)}:Eu(e+t,r)}}function Vx(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ui(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,Z(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:or(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function gf({1:e,_:t}){return{["--tw-"+e]:t,...ff()}}function ff(){return{...ui({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Qx()}),transform:"var(--tw-transform)"}}function Qx(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Kx({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Yx({1:e}){return`repeat(${e},minmax(0,1fr))`}function ui(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var F0=globalThis||(typeof window<"u"?window:self),YL=Object.create,bf=Object.defineProperty,QL=Object.getOwnPropertyDescriptor,JL=Object.getOwnPropertyNames,ZL=Object.getPrototypeOf,XL=Object.prototype.hasOwnProperty,$L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),eM=(e,t)=>{for(var n in t)bf(e,n,{get:t[n],enumerable:!0})},hf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of JL(t))!XL.call(e,a)&&a!==n&&bf(e,a,{get:()=>t[a],enumerable:!(r=QL(t,a))||r.enumerable});return e},tM=(e,t,n)=>(hf(e,t,"default"),n&&hf(n,t,"default")),Zx=(e,t,n)=>(n=e!=null?YL(ZL(e)):{},hf(t||!e||!e.__esModule?bf(n,"default",{value:e,enumerable:!0}):n,e)),Xx=$L((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof F0=="object"&&F0.global===F0?F0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),$x={};eM($x,{default:()=>B0});var nM=Zx(Xx());tM($x,Zx(Xx()));var{default:Jx,...rM}=nM,B0=Jx!==void 0?Jx:rM;function fv(e){return typeof e>"u"||e===null}function aM(e){return typeof e=="object"&&e!==null}function iM(e){return Array.isArray(e)?e:fv(e)?[]:[e]}function oM(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n{let t=await Jr({responseType:"json",url:`${tt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Jg=["glm-4-flash"],E0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Jg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Jg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Zr(_3,async()=>{let t=await Jr({responseType:"json",url:`${tt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Ir.langMap.has(n.to)||!Ir.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Ir(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Jg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var A0={mock:Go,mock2:Go,custom:Tu,google:fu,transmart:hu,deepl:Ko,volc:ex,volcAlpha:xu,bing:Ir,tencent:pu,tenAlpha:gu,baidu:rx,caiyun:ix,cai:ox,openl:f0,youdao:ux,you:cx,d:Wo,dpro:Wo,deeplx:vu,niu:W6,azure:G6,openai:Q6,gemini:px,claude:fx,papago:V6,aliyun:yu,yandex:Su,qianfan:Cu,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:C0,siliconcloud:w0,lingyiwanwu:qn,zhipu:E0};globalThis.TranslationServicesClass=A0;var ai={};Object.keys(wr).forEach(e=>{ai[e]={...wr[e],class:A0[e]}});function k0(e,t){let n=Xn;if(ai[e]&&ai[e].class&&ai[e].class.langMap&&ai[e].class.langMap.size>0){let r=ai[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function _i(e,t,n){if(!e.text)return e;let r=null,a=await Yt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function yx(e,t){for(let n of e)try{return await _i({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Zg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ht(e.user);await new ai[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function ML(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Yt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),wa(a,t.localConfig,!1),d=await Q9(m,d,{sourceLanguage:ML(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=RL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let h=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,T=ht(t.user),w;try{w=new ai[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:T,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await w.init()}catch(A){if(n){h.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let R of h){let F=A instanceof U?new U(A.name,A.message).initNetWork(A.status).initData(A.data||k):A;n(F,null,R)}}return{sentences:[]}}if(o.cache&&!ho(a))for(let A of e.sentences){v++;let k=l;l==="openl"&&(k=l+"-"+d.codename||f0.DEFAULT_CODENAME);let R=w.getCacheKeyPrefix();R&&(k=R+"-"+k);let F=null;try{F=await Hl(Sb({originalText:A.text,from:A.from,to:A.to,service:k}),200)}catch(P){D.warn("query cache DB error, but it's ok",P)}if(F){let P={...A,text:F.translatedText};f.sentences[v]=P,n&&n(null,P,A)}else h.push(A)}else h.push(...e.sentences);let C=h.length;if(y-C>0&&D.debug(`use ${y-C} sentences from cache`),!h.length)return f;let S=await w.multipleTranslate({sentences:h},d,(A,k,R)=>{if(n&&n(A,k,R),!A&&k&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||f0.DEFAULT_CODENAME);let P=w.getCacheKeyPrefix();P&&(F=P+"-"+F),o.cache&&Hl(Cb({translatedText:k.text,from:R.from,to:R.to,detectedFrom:k.from,key:$n(R.text),service:F}),3e3).catch(I=>{D.warn("set cache DB error",I)})}});for(let A of S?.sentences||[]){let k=f.sentences.findIndex(R=>!R);if(k===-1)throw new U("translateFailed","can not match the result");f.sentences[k]=A}return f}function RL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function xx({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=k0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(FL,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:a6,style:{maxWidth:"unset"},class:"mx-2"}),x(BL,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function FL(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:cg(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=$a(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=$a(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function BL(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:cg(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=$a(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ii(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Xg;function lf(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Dx(e,t=","){return e.map(lf).join(t)}var Px=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function P0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function L0(e,t="@media "){return t+or(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function or(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function IL(){}var ln={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Lx(e){return e.match(/[-=:;]/g)?.length||0}function af(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Lx(e),15)<<18}var _L=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function cf({n:e,i:t,v:n=[]},r,a,i){e&&(e=lf({n:e,i:t,v:n})),i=[...or(i)];for(let s of n){let u=r.theme("screens",s);for(let l of or(u&&L0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|af(l):s=="dark"?1073741824:l[0]=="@"?af(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~_L.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var df=new Map;function vx(e){if(e.d){let t=[],n=$g(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?$g(r,i=>$g(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):ef(i,o)}return ef(o,i)})):r,"&"),r=>ef(r,e.n?"."+Px(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function $g(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function ef(e,t){return e.replace(/&/g,t)}var Tx=new Intl.Collator("en",{numeric:!0});function OL(e,t){for(var n=0,r=e.length;n>1;0>=Mx(e[a],t)?n=a+1:r=a}return r}function Mx(e,t){let n=e.p&ln.o;return n==(t.p&ln.o)&&(n==ln.b||n==ln.o)?0:e.p-t.p||e.o-t.o||Tx.compare(Sx(e.n),Sx(t.n))||Tx.compare(Cx(e.n),Cx(t.n))}function Sx(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Cx(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function tf(e,t){return Math.round(parseInt(e,16)*t)}function oi(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[tf(e.substr(1,i),o),tf(e.substr(1+i,i),o),tf(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Rx(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,b=0;for(let y in o||{}){var h,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...Bx(s,u,pf(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let T of or(v))m.push(...i(T,{n:s,p:(h=ln[y[7]],u&~ln.o|h),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...or(v).map(T=>({p:-1,o:0,r:[],d:y+" "+T})));continue}if(y[1]=="k"){m.push({p:ln.d,o:0,r:[y],d:i(v,{p:ln.d},d).map(vx).join("")});continue}if(y[1]=="f"){m.push(...or(v).map(T=>({p:ln.d,o:0,r:[y],d:i(T,{p:ln.d},d).map(vx).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+P0(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),b+=1,g=Math.max(g,(f=y)[0]=="-"?0:Lx(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+or(v).map(T=>d.s(y,Fx(""+T,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let T=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(w,C)=>{let S=d.theme("screens",C);return S?(T|=67108864,L0(S,"")):w}),T|=af(y)),m.push(...i(v,{n:s,p:T,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(Mx)}(e,cf(t,n,r,a),n)}function Fx(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?oi(s):""+or(s).filter(u=>Object(u)!==u)})}function mf(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function of(e,t,n=ln.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,b){let h=df.get(g.n);return h?h(g,b):b.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=cf(u,l,c,d),mf(of(pf(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var b,h;return{o:0,...g,r:[...or(d),...or(g.r)],p:(b=c,h=g.p??c,b&~ln.o|h)}}):Rx(p,u,l,c,d):[{c:lf(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(OL(i,s),0,s);return i}function Bx(e,t,n,r,a,i,o,s){return mf((s?n.flatMap(u=>of([u],r,a,i,o)):of(n,r,a,i,o)).map(u=>u.p&ln.o&&(u.n||t==ln.b)?{...u,p:u.p&~ln.o|t,o:0}:u),e)}function NL(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=cf(i,o,t);return n&&Bx(s,t,n,o,u,l,c,r)},df.set(e,a),e}function nf(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(jL),i:a}))}}function jL(e,t,n){return n.indexOf(e)==t}var wx=new Map;function pf(e){let t=wx.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&nf(n,r)),a=s+1};for(;s1?d.slice(0,-1)+P0(JSON.stringify([d,m])):d+"("+Dx(m)+")",ln.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),wx.set(e,t=r[0])}return t}function Ix(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function _x(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ix(e,t,n=>rf(n).trim()):t.filter(Boolean).reduce((n,r)=>n+rf(r),e?rf(e):"")}function rf(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=_x(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var Nre=Ox("@"),jre=Ox("~");function Ox(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return Dx(pf(n+e+"("+_x(r,a)+")"))}}function sf(e,t){return Array.isArray(e)?Ex(Ix(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Ex(e):[e]}var UL=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Ex(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=UL.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function Nx(e,...t){var n;let r=sf(e,t),a=(r.find(i=>i.label)?.label||"css")+P0(JSON.stringify(r));return n=(i,o)=>mf(r.flatMap(s=>Rx(s,i,o,ln.o)),a),df.set(a,n),a}var Ure=new Proxy(function(e,t){return Ax("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Ax(t,n,r)}}});function Ax(e,t,n){return{toString(){return Nx({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function Z(e,t,n){return[e,HL(t,n)]}function HL(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):uf(n,1)}):n=>e||{[n[1]]:uf(n,2)}}function uf(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,qL(t,n,r)]}function qL(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=jx(e||a[1]),s=i.theme(o,a.$$)??Xo(a.$$,o,i);if(s!=null)return a._=uf(a,0,s),r(a,i,o)}}function Qt(e,t={},n){return[e,zL(t,n)]}function zL(e={},t){return(n,r)=>{let{section:a=jx(n[0]).replace("-","")+"Color"}=e,[i,o]=WL(n.$$);if(!i)return;let s=r.theme(a,i)||Xo(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&Xo(o,l,r),p=t||(({_:b})=>{let h=wu(c,b);return d?{[d]:h}:h});n._={value:oi(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:b=>oi(s,b),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:oi(b,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:h=>oi(b,h),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function WL(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function wu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Xo(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=D0(Fx(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function jx(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function D0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>D0(n)+r+D0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Hre=Symbol();var Ux=new Proxy(IL,{apply(e,t,n){return Xg(n[0])},get(e,t){let n=Xg[t];return typeof n=="function"?function(){return n.apply(Xg,arguments)}:n}});var qre=function e(t){return new Proxy(function(n,...r){return kx(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return kx(t,r,a,i)}}})}();function kx(e,t,n,r){return{toString(){let a=sf(n,r),i=Px(t+P0(JSON.stringify([t,a])));return(typeof e=="function"?e:Ux)(Nx({[`@keyframes ${i}`]:sf(n,r)})),i}}}var Hx={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...sr(4,"rem",4,.5,.5),...sr(12,"rem",4,5),14:"3.5rem",...sr(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ke("blur"),backdropBrightness:Ke("brightness"),backdropContrast:Ke("contrast"),backdropGrayscale:Ke("grayscale"),backdropHueRotate:Ke("hueRotate"),backdropInvert:Ke("invert"),backdropOpacity:Ke("opacity"),backdropSaturate:Ke("saturate"),backdropSepia:Ke("sepia"),backgroundColor:Ke("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ke("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...sr(200,"",100,0,50),...sr(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ke("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ke("spacing"),borderWidth:{DEFAULT:"1px",...hr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ke("colors"),caretColor:Ke("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...sr(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ke("borderColor"),divideOpacity:Ke("borderOpacity"),divideWidth:Ke("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Eu(2,6),...Eu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ke("spacing"),gradientColorStops:Ke("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Eu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Eu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...sr(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...sr(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ke("spacing"),placeholderColor:Ke("colors"),placeholderOpacity:Ke("opacity"),outlineColor:Ke("colors"),outlineOffset:hr(8,"px"),outlineWidth:hr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ke("colors"),ringOffsetWidth:hr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...hr(8,"px")},rotate:{...hr(2,"deg"),...hr(12,"deg",3),...hr(180,"deg",45)},saturate:sr(200,"",100,0,50),scale:{...sr(150,"",100,0,50),...sr(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ke("spacing"),scrollPadding:Ke("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...hr(2,"deg"),...hr(12,"deg",3)},space:Ke("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:sr(2),textColor:Ke("colors"),textDecorationColor:Ke("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...hr(8,"px")},textUnderlineOffset:{auto:"auto",...hr(8,"px")},textIndent:Ke("spacing"),textOpacity:Ke("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ke("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Eu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...sr(50,"",1,0,10),auto:"auto"}};function Eu(e,t){let n={};do for(var r=1;rt(e)}var oae={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Hx.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Hx.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},uae=[Z("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Xo(`[${t}]`,"",n)}}})),Z("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),Z("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[L0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),Z("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),Z("box-(border|content)","boxSizing",({1:e})=>e+"-box"),Z("hidden",{display:"none"}),Z("table-(auto|fixed)","tableLayout"),Z(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",Z("isolate","isolation"),Z("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),Z("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",M0),Z("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),Z("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),Z("(visible|collapse)","visibility"),Z("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),Z("flex-((row|col)(-reverse)?)","flexDirection",qx),Z("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),Z("grid-cols-(\\d+)","gridTemplateColumns",Vx),ee("col-","gridColumn"),Z("col-(span)-(\\d+)","gridColumn",Gx),ee("col-start-","gridColumnStart"),Z("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),Z("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),Z("grid-rows-(\\d+)","gridTemplateRows",Vx),ee("row-","gridRow"),Z("row-(span)-(\\d+)","gridRow",Gx),ee("row-start-","gridRowStart"),Z("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),Z("row-end-(auto|\\d+)","gridRowEnd"),Z("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>M0(qx(e))),Z("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",Z("justify-","justifyContent",zx),Z("(content|items|self)-",e=>({["align-"+e[1]]:zx(e)})),Z("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",$o("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",$o("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),Z("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=or(e))[1]=="string"?{fontFamily:_r(e)}:{fontFamily:_r(e[0]),...e[1]}),Z("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),Z("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),Z("italic","fontStyle"),Z("not-italic",{fontStyle:"normal"}),Z("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...si({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),Z("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),Z("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Qt("placeholder-",{property:"color",selector:"&::placeholder"}),Z("text-(left|center|right|justify|start|end)","textAlign"),Z("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Qt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),Z("(overline|underline|line-through)","textDecorationLine"),Z("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Qt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),Z("decoration-","textDecorationStyle"),Z("(uppercase|lowercase|capitalize)","textTransform"),Z("normal-case",{textTransform:"none"}),Z("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Z("align-","verticalAlign"),Z("whitespace-","whiteSpace"),Z("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),Z("break-words",{overflowWrap:"break-word"}),Z("break-all",{wordBreak:"break-all"}),Z("break-keep",{wordBreak:"keep-all"}),Qt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Qt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),Z("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Oi(e," ")},var(--tw-gradient-stops))`),Qt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Qt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Qt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),Z("bg-(fixed|local|scroll)","backgroundAttachment"),Z("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),Z(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),Z("bg-blend-","backgroundBlendMode"),Z("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Qt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),Z("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",M0),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Oi(n[0])}-radius`]:t,[`border-${Oi(n[1])}-radius`]:t}}),Z("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),Z("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...si({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Qt("border-([xytrbl])-",{section:"borderColor"},$o("border","Color")),Qt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",$o("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),Z("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),Z("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Oi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Oi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Qt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Qt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),Z("ring-inset",{"--tw-ring-inset":"inset"}),Qt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":oi(t("ringOffsetColor","","#fff")),"--tw-ring-color":oi(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Qt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":_r(e),"--tw-shadow-colored":_r(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),Z("mix-blend-","mixBlendMode"),...Wx(),...Wx("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:_r(e),transitionTimingFunction:e._=="none"?void 0:_r(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:_r(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",_r),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",_r),ee("delay(?:$|-)","transitionDelay","transitionDelay",_r),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=_r(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",Z("transform",ff),Z("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Kx(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...ff()})),ee("-?(rotate)-","rotate",gf),ee("-?(translate-[xy])-","translate",gf),ee("-?(skew-[xy])-","skew",gf),Z("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",M0),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",Z("snap-(none)","scroll-snap-type"),Z("snap-(x|y|both)",({1:e})=>({...si({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),Z("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),Z("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),Z("snap-(normal|always)","scroll-snap-stop"),Z("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",$o("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",$o("scroll-margin")),Z("touch-(auto|none|manipulation)","touch-action"),Z("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...si({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),Z("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),Z("outline",{outlineStyle:"solid"}),Z("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Qt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],Z("select-(none|text|all|auto)","userSelect"),Qt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Qt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),Z("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),Z("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function M0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function qx(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Oi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function _r(e){return e&&""+(e._||e)}function zx({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function $o(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...wu(e+"-"+Oi(a[0])+t,r),...wu(e+"-"+Oi(a[1])+t,r)}:wu(e+t,r)}}function Wx(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...si(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,Z(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:or(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function gf({1:e,_:t}){return{["--tw-"+e]:t,...ff()}}function ff(){return{...si({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Kx()}),transform:"var(--tw-transform)"}}function Kx(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Gx({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Vx({1:e}){return`repeat(${e},minmax(0,1fr))`}function si(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var R0=globalThis||(typeof window<"u"?window:self),KL=Object.create,bf=Object.defineProperty,YL=Object.getOwnPropertyDescriptor,QL=Object.getOwnPropertyNames,JL=Object.getPrototypeOf,ZL=Object.prototype.hasOwnProperty,XL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$L=(e,t)=>{for(var n in t)bf(e,n,{get:t[n],enumerable:!0})},hf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of QL(t))!ZL.call(e,a)&&a!==n&&bf(e,a,{get:()=>t[a],enumerable:!(r=YL(t,a))||r.enumerable});return e},eM=(e,t,n)=>(hf(e,t,"default"),n&&hf(n,t,"default")),Qx=(e,t,n)=>(n=e!=null?KL(JL(e)):{},hf(t||!e||!e.__esModule?bf(n,"default",{value:e,enumerable:!0}):n,e)),Jx=XL((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof R0=="object"&&R0.global===R0?R0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&g||s)&&typeof FileReader<"u"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},h.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),Zx={};$L(Zx,{default:()=>F0});var tM=Qx(Jx());eM(Zx,Qx(Jx()));var{default:Yx,...nM}=tM,F0=Yx!==void 0?Yx:nM;function pv(e){return typeof e>"u"||e===null}function rM(e){return typeof e=="object"&&e!==null}function aM(e){return Array.isArray(e)?e:pv(e)?[]:[e]}function iM(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function xf(e,t){return Jt.repeat(" ",t-e.length)+e}function fM(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=yf(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Jt.repeat(" ",t.indent)+xf((e.line-u+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),r+" "+n):r}function ku(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=gv(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ku.prototype=Object.create(Error.prototype);ku.prototype.constructor=ku;ku.prototype.toString=function(e){return this.name+": "+gv(this,e)};var zn=ku;function yf(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function xf(e,t){return Jt.repeat(" ",t-e.length)+e}function gM(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=yf(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Jt.repeat(" ",t.indent)+xf((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=yf(e.buffer,r[o],a[o],e.position,d),s+=Jt.repeat(" ",t.indent)+xf((e.line+1).toString(),c)+" | "+l.str+` `,s+=Jt.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=yf(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=Jt.repeat(" ",t.indent)+xf((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var hM=fM,bM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yM=["scalar","sequence","mapping"];function xM(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function vM(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(bM.indexOf(n)===-1)throw new zn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=xM(t.styleAliases||null),yM.indexOf(this.kind)===-1)throw new zn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var xn=vM;function ev(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function SM(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zM(e){return!(e===null||!qM.test(e)||e[e.length-1]==="_")}function WM(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var VM=/^[-+]?[0-9]+e/;function KM(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jt.isNegativeZero(e))return"-0.0";return n=e.toString(10),VM.test(n)?n.replace("e",".e"):n}function YM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Jt.isNegativeZero(e))}var QM=new xn("tag:yaml.org,2002:float",{kind:"scalar",resolve:zM,construct:WM,predicate:YM,represent:KM,defaultStyle:"lowercase"}),JM=AM.extend({implicit:[LM,BM,HM,QM]}),ZM=JM,bv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function XM(e){return e===null?!1:bv.exec(e)!==null||yv.exec(e)!==null}function $M(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=bv.exec(e),t===null&&(t=yv.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function eR(e){return e.toISOString()}var tR=new xn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:XM,construct:$M,instanceOf:Date,represent:eR});function nR(e){return e==="<<"||e===null}var rR=new xn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nR}),Af=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function aR(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Af;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function iR(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Af,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function oR(e){var t="",n=0,r,a,i=e.length,o=Af;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function sR(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var uR=new xn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:aR,construct:iR,predicate:sR,represent:oR}),lR=Object.prototype.hasOwnProperty,cR=Object.prototype.toString;function dR(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var wv=new Array(256),Ev=new Array(256);for(Ni=0;Ni<256;Ni++)wv[Ni]=rv(Ni)?1:0,Ev[Ni]=rv(Ni);var Ni;function LR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||xv,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Av(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=hM(n),new zn(t,n)}function ve(e,t){throw Av(e,t)}function O0(e,t){e.onWarning&&e.onWarning.call(null,Av(e,t))}var av={YAML:function(e,t,n){var r,a,i;e.version!==null&&ve(e,"duplication of %YAML directive"),n.length!==1&&ve(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ve(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ve(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&O0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ve(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],Tv.test(r)||ve(e,"ill-formed tag handle (first argument) of the TAG directive"),ci.call(e.tagMap,r)&&ve(e,'there is a previously declared suffix for "'+r+'" tag handle'),Cv.test(a)||ve(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function li(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Jt.repeat(` -`,t-1))}function MR(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||ts(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&ts(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&ts(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&U0(e)||n&&ts(p))break;if(aa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,qt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(li(e,i,o,!1),Df(e,e.line-u),i=o=e.position,s=!1),ji(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return li(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function RR(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(li(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else aa(n)?(li(e,r,a,!0),Df(e,qt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&U0(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function FR(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return li(e,n,e.position,!0),e.position++,!0;if(s===92){if(li(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),aa(s))qt(e,!1,t);else if(s<256&&wv[s])e.result+=Ev[s],e.position++;else if((o=kR(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=AR(s))>=0?i=(i<<4)+o:ve(e,"expected hexadecimal character");e.result+=PR(i),e.position++}else ve(e,"unknown escape sequence");n=r=e.position}else aa(s)?(li(e,n,r,!0),Df(e,qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&U0(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function BR(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(qt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,qt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,rs(e,t,I0,!1,!0),b=e.tag,h=e.result,qt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),qt(e,!0,t),rs(e,t,I0,!1,!0),f=e.result),p?ns(e,s,g,b,h,f,r,a,i):d?s.push(ns(e,null,g,b,h,f,r,a,i)):s.push(h),qt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ve(e,"unexpected end of the stream within a flow collection")}function IR(e,t){var n,r,a=vf,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)vf===a?a=d===43?tv:TR:ve(e,"repeat of a chomping mode identifier");else if((c=DR(d))>=0)c===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(ji(d)){do d=e.input.charCodeAt(++e.position);while(ji(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!aa(d)&&d!==0)}for(;d!==0;){for(kf(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),aa(d)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),HM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qM(e){return!(e===null||!HM.test(e)||e[e.length-1]==="_")}function zM(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var WM=/^[-+]?[0-9]+e/;function VM(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jt.isNegativeZero(e))return"-0.0";return n=e.toString(10),WM.test(n)?n.replace("e",".e"):n}function KM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Jt.isNegativeZero(e))}var YM=new yn("tag:yaml.org,2002:float",{kind:"scalar",resolve:qM,construct:zM,predicate:KM,represent:VM,defaultStyle:"lowercase"}),QM=EM.extend({implicit:[PM,FM,UM,YM]}),JM=QM,fv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),hv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ZM(e){return e===null?!1:fv.exec(e)!==null||hv.exec(e)!==null}function XM(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=fv.exec(e),t===null&&(t=hv.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function $M(e){return e.toISOString()}var eR=new yn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ZM,construct:XM,instanceOf:Date,represent:$M});function tR(e){return e==="<<"||e===null}var nR=new yn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:tR}),Af=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function rR(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Af;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function aR(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Af,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function iR(e){var t="",n=0,r,a,i=e.length,o=Af;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function oR(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var sR=new yn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:rR,construct:aR,predicate:oR,represent:iR}),uR=Object.prototype.hasOwnProperty,lR=Object.prototype.toString;function cR(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Sv=new Array(256),Cv=new Array(256);for(Ni=0;Ni<256;Ni++)Sv[Ni]=tv(Ni)?1:0,Cv[Ni]=tv(Ni);var Ni;function PR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||bv,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function wv(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=fM(n),new zn(t,n)}function ve(e,t){throw wv(e,t)}function _0(e,t){e.onWarning&&e.onWarning.call(null,wv(e,t))}var nv={YAML:function(e,t,n){var r,a,i;e.version!==null&&ve(e,"duplication of %YAML directive"),n.length!==1&&ve(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ve(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ve(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&_0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ve(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],vv.test(r)||ve(e,"ill-formed tag handle (first argument) of the TAG directive"),li.call(e.tagMap,r)&&ve(e,'there is a previously declared suffix for "'+r+'" tag handle'),Tv.test(a)||ve(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function ui(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Jt.repeat(` +`,t-1))}function LR(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||ts(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&ts(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&ts(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&j0(e)||n&&ts(p))break;if(na(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,qt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(ui(e,i,o,!1),Df(e,e.line-u),i=o=e.position,s=!1),ji(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ui(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function MR(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ui(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else na(n)?(ui(e,r,a,!0),Df(e,qt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&j0(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function RR(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ui(e,n,e.position,!0),e.position++,!0;if(s===92){if(ui(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),na(s))qt(e,!1,t);else if(s<256&&Sv[s])e.result+=Cv[s],e.position++;else if((o=AR(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=ER(s))>=0?i=(i<<4)+o:ve(e,"expected hexadecimal character");e.result+=DR(i),e.position++}else ve(e,"unknown escape sequence");n=r=e.position}else na(s)?(ui(e,n,r,!0),Df(e,qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&j0(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function FR(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),b,h,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(qt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),h=b=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,qt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,rs(e,t,B0,!1,!0),h=e.tag,b=e.result,qt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),qt(e,!0,t),rs(e,t,B0,!1,!0),f=e.result),p?ns(e,s,g,h,b,f,r,a,i):d?s.push(ns(e,null,g,h,b,f,r,a,i)):s.push(b),qt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ve(e,"unexpected end of the stream within a flow collection")}function BR(e,t){var n,r,a=vf,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)vf===a?a=d===43?$x:TR:ve(e,"repeat of a chomping mode identifier");else if((c=kR(d))>=0)c===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(ji(d)){do d=e.input.charCodeAt(++e.position);while(ji(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!na(d)&&d!==0)}for(;d!==0;){for(kf(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),na(d)){u++;continue}if(e.lineIndentt)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),rs(e,t,_0,!0,a)&&(b?g=e.result:h=e.result),b||(ns(e,d,m,p,g,h,o,s,u),p=g=h=null),qt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function UR(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;ji(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!aa(o));break}if(aa(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&kf(e),ci.call(av,r)?av[r](e,r,a):O0(e,'unknown document directive "'+r+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):i&&ve(e,"directives end mark is expected"),rs(e,e.lineIndent-1,_0,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&wR.test(e.input.slice(t,e.position))&&O0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&U0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=kv(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(h&&(o=e.line,s=e.lineStart,u=e.position),rs(e,t,I0,!0,a)&&(h?g=e.result:b=e.result),h||(ns(e,d,m,p,g,b,o,s,u),p=g=b=null),qt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function jR(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;ji(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!na(o));break}if(na(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&kf(e),li.call(nv,r)?nv[r](e,r,a):_0(e,'unknown document directive "'+r+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):i&&ve(e,"directives end mark is expected"),rs(e,e.lineIndent-1,I0,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&CR.test(e.input.slice(t,e.position))&&_0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&j0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=Ev(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function _v(e){var t=/^\n* /;return t.test(e)}var Ov=1,wf=2,Nv=3,jv=4,es=5;function hF(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=gF(ku(e,0))&&fF(ku(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=ku(e,u),!Mu(l))return es;h=h&&lv(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=ku(e,u),l===Pu)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Mu(l))return es;h=h&&lv(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?Ov:i===Lu?es:wf:n>9&&_v(e)?es:o?i===Lu?es:wf:m?jv:Nv}function bF(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Lu?'""':"''";if(!e.noCompatMode&&(sF.indexOf(t)!==-1||uF.test(t)))return e.quotingType===Lu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return pF(e,l)}switch(hF(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case Ov:return t;case wf:return"'"+t.replace(/'/g,"''")+"'";case Nv:return"|"+cv(t,e.indent)+dv(sv(t,i));case jv:return">"+cv(t,e.indent)+dv(sv(yF(t,o),i));case es:return'"'+xF(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function cv(e,t){var n=_v(e)?String(t):"",r=e[e.length-1]===` +`+Jt.repeat(" ",e.indent*t)}function mF(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Bv(e){var t=/^\n* /;return t.test(e)}var Iv=1,wf=2,_v=3,Ov=4,es=5;function fF(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,b=pF(Au(e,0))&&gF(Au(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Au(e,u),!Lu(l))return es;b=b&&sv(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Au(e,u),l===Du)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Lu(l))return es;b=b&&sv(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?b&&!o&&!a(e)?Iv:i===Pu?es:wf:n>9&&Bv(e)?es:o?i===Pu?es:wf:m?Ov:_v}function hF(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Pu?'""':"''";if(!e.noCompatMode&&(oF.indexOf(t)!==-1||sF.test(t)))return e.quotingType===Pu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return mF(e,l)}switch(fF(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case Iv:return t;case wf:return"'"+t.replace(/'/g,"''")+"'";case _v:return"|"+uv(t,e.indent)+lv(iv(t,i));case Ov:return">"+uv(t,e.indent)+lv(iv(bF(t,o),i));case es:return'"'+yF(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function uv(e,t){var n=Bv(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function dv(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function yF(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,mv(e.slice(0,l),t)}(),a=e[0]===` +`}function lv(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function bF(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,cv(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+mv(u,t),a=i}return r}function mv(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+cv(u,t),a=i}return r}function cv(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function xF(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=ku(e,a),r=vn[n],!r&&Mu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||cF(n);return t}function vF(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&ka(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function pv(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&ka(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Cf(e,t)),e.dump&&Pu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function SF(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ka(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function TF(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Pu===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Cf(e,t)),ka(e,t+1,c,!0,d)&&(e.dump&&Pu===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function gv(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function ka(e,t,n,r,a,i,o){e.tag=null,e.dump=n,gv(e,n,!1)||gv(e,n,!0);var s=Pv.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(TF(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(SF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?pv(e,t-1,e.dump,a):pv(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(vF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&bF(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function CF(e,t){var n=[],r=[],a,i;for(Ef(e,n,r),a=0,i=r.length;ac.selected),[r,a]=G(!1),i=Ce(null),[o,s]=G(Uv),[u,l]=G(0);return Cs(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,S=g+d.height;if(v>m.clientHeight-S){let w=Math.min(y,v);l(m.clientHeight-g-w-h)}else l(0);s(Math.max(Uv,y))}},[i.current,r,t]),te(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(qv,{item:n,isDefault:!0}),f6]}),x(DF,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function DF(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return te(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(qv,{item:o,onClick:e.onClick},o.value))})}function qv(e){let t=e.item,{t:n}=se();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:qo}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var PF={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC7lBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubf39/q6urm5ubn5+fm5ubm5ubl5eXm5ubl5eXk5OTn5+f////m5ub9/v77/PsAw3X9/f3u7u7y/fkAynQAunMAtXIAy3QAt3P+//8BvHT19fXx8fH///78/v0ByHUAyXQAnWvp6ekAoWsArW4BpW0A0XQAz3QAsXAAn2r6/v36+voBxXYAxXUAwXQAwHMAp20Ao2wAoGsAx3YAzXSt59Hs7OwA0HT39/cAs3EBsnEAsG8Ar24AqG0/35UDwnYB0nQAuXIAqW0AznQBvnQAq20q0qA+3JYDyJAExYEExH4Bs3IApG0x1KA105wA03MAtnMCrG4Am2oBmWkAlWgBx44Kq3jr6+s11Z8QzpgiyJMB13L1/Pnn+vLo6OgOzpYFx4UCwnoB1HMCsXAAo233/fpq7ccy050+4ZQAl2nd+O3W9OnC8uCu6NMh2acQz5MpyJICy5ACyYsFxHkLqHcHvHYB1nEDqm/m/PTk9u/N8OOx99u56Niw6dV278ug5Mpd7MVJ3rAp16Q11aMx1KIb16Ax0ZtI1pobyZMJy5IMyJEErHcLsnQFoG3z/vnt+/bw8PDW+ezO9uWr99ih9da04tSs8tGo6NGP8tBm6cKL48B90bNx3bFl2a1E26tsxahe0qUr06FTyp0r0pwq0ZsUx5IByY4ytYkmyogi0YQW13wRxXwUvXwQsHwStHkFwHYMqHDk+vHb9+vc8uvG+ea+7du28Nic9NSV8dCC8c6c78lj7smV58Vg5rx/2rd647Yt3K1m4aso3Ks11aRayKEt0p8q0Z4Z0J1Vv5sd05pJxJcRypM9wJAqwowtzIsbyIczsYYpu4UazIAhoXgbqXcHtXTM9+un89+I8c6o3cyZ28Zw6MJw472M1bxX5LuC5bpv0KxQ1p9P4p0S05slzZdEzJYwx5VFwJM0xo8BwIYMvIUe2H8hs38VwX0dsHwBsXsSrXUSo3EVmnClLwuZAAAAE3RSTlMAIN/vkHC/nxAwYECvz89QgDB/Jn3tuwAAB/tJREFUaN7NmmX40zAQxpkPl6ajQ8u2AsM3/jhjuLu7u7u7u7u7u7u7u7u76zcuWWFIE9YVu2ef93vee+8uaZJIoYY1pskYLYbegCAMerPZaIpqjfQ7Q2ey6JFC6KNFifx7CFGNAYDP6fB7bQIHIdi8fofTFwBZomolWONERxB2h41TCK/D7sacKDoNiMhGbIHTyzHCSziWcDE6M04SIbDDbw8XYzViETYupLCFhzEZAEFcDhkD3qjOlI+oUIcx61TJcPs51eFwI4NJhRsTGJliizGGlqoYCDm4MMMBzuhCYOiRm+0GW4w7BEpkA6oOqdJAqY4MkX/JmMBpDDumsBlOTnM4mRRdkKGVomN4TnKlPex09/WoOvebojqKobxuGoO1qzkEt3JXmhAKMjSHDSGToukO7jeGQ8l8M7JzakPkJImXBBevbL75R0aUMAxxicLELVsm9vCIvLItpp+q16FeCB+v9+QdO/td78ErUfzI8H2FWZA9nBqq23vKjH67m/W7JihRfN9XmC68yuJ7BCAzb7fhecUK02kVAhCspNmAZjP3zmstiErjxaxZCCiZvP0GgZyc61GQIiAUWYsQEVeXVHfy9p0DBtwbOK/T+bq8ohSjFiE8hORptePOvOPHFw453KBkH0mp74MFFgXZVSM88XpOnX1i+bNaS0vUL4YhfQVOscBifZ2+/tCrVpI8dXr2ujV/+cexySt16VBradWaC4cMBohi23tRdPnbALlDs0GEBNXt1f/B83cbUmXOnC558soAGVW1ZjE6hEMo6i9tF+HnEjn4e56P17rvvkVn141JWbFQ3lRNUmRJTpSMKlGzWNnBDUq1xRC69XrkZRsg2eq0arNnwYs1VxOWzpU2D4GUkSEjSlRlQrxIjxmxGdnicYLa9J8zfMX6rkkSFExcOmeu3LlTpsSQzCnSBSE1qBAOup5dWwLfatbwc6s7x42bIWOSBABJmBMrKVo0b6ZUAElXqRoUF4GULNVWoiz3ZBZHo85f3rPtUqL4ySIiMKQIVoLTBUqKFgpAklerdboElDAL4kAWYomNYro0aSUwkmZNTyBYSgWcrzwpQUmmzCmyfAfJTkmXDZtiRfWohu8vnC1RABI3YyBfBALOZ8pUJgAZJaerIUBoplihS3y08o03PE0ikJI1a9zvTMn9DWQEQOqzIT4UEzYpTpqSccXTZCP5kk0hkLRpQYrsPEBG/hLiBOeNyKECUgGcB4jsfJZqSwa1e1zzGBPigHY0Iz8NEq94DgIJ5KtIkiQJEidMmCtt4zwVi+aFTmmSJd3agQfaDV1YrHm5UnSIH0UDiJcBKZwofnyARHyBVIB8NV53ZPaZ7qmaZJYhg44yITAjcQUzIDhfSZNGfAvJNWZ6U2H8ERlyiA2Ra9iABDaEdEpE3Ayr3yYg7Vj6VFOB4zdtwIOl2iCAnDwGkPxUiIAMkRDi6JDUXyBxO8+d1HrWGux86UWwnPPjr4DzWUaPrF9/ZPvFTAg0ChtSAEOAEhH3YR2Rb7oPO5/zYk+Bt2XfAPkCSMdlndovGVauc/gQUFKYQNKn3yOJLn5r18S4HRdtbd3/DVlSRnfEkMUaITlgsGBIxH6BF4TpAAEpjcesq9g9byYwJVVoELbxBbDzBLKijcfT6ik4DxBoRwxJlSJFuvcvq0K6mpfLzzSeUcIurATylQhD4p6fO2dF1yQYQnoeIJnwtB/bZPSrJ8PK5V/PLOHoNIjLFS9fAWwK7hQYxPlJpxAlwUEMS3DllsmrnWUo8cJeNRp1rBAI6XkCyQCDmLRjQhkC6zymVG5ZpUrlouuzC9SxYmYNyHj5ysvOZ03/ZeHCzsMghnWeOE+kAKXK1T4SfUCyRj1R8sMgBkhwEH8DuTBeYoz6mNRFy4WVYFMIJCIAwaZ8C0kXyNenqQJ90YqKl18mhJgC+YqQl2AyiAkkL4GAksotL08FRxjLL65hOqQANgX3vAyRpz3ZF+HNV5Ys6SpVvjx/s+SiIOTdnQU5qJ50k03BEGIK3rHgfOUhO7xUY8deuTD/Zk8Pz/qej0ZOIuyhQNIHl+CEuRo3blyx+4flJ+722VzHI0ki8ywnCkB0NFNcAIF8yc6TdiSmJIbhdfHU7D6t6wi8yPM8xww3iixvuNkQ4rwMSdJ1zZkF/XvV9UgK5USzBMKInDRI7fLl5XzhGs6/+tyCWW1agQCJ51yhnnxZ5I+gelRII2IKnpGXhs+Z3mtjU0kUOTXhlj+CYEZ6qRCiJNvKg9s2NuUFCQxQF36cLRKxkE8Z0gIgYMrK+5ts8t+LKiE+FEWGWA3IRoM0KlDg4ESPCgGUgw+a9a5xGLJqV1OBVxCgyvbAF109QVlJt9fTPEDQLgTCjJzKkFXTPC6R57QIYZ/gAAQYQNAqJOiKTwHyaJeH9LV2IXKB/bzUi3UmeTgxfIbjp2NuE3L/5D0vSpymm5QooRzZiqKm83rzvzl8hoTV+9PH6BBGBVs0GGJUvvqL/juvNvT0Sxr777uk+RvXTf/24oxQ7H/6CpBQqmuqZKE6MP6Ha1lCqaflgjkGmxHsSmQPS4yAr8qtKi79wxDjx5f+ap4vqBdj86l7vgARRa8OIzgRRQZTjAWFjrEBgu0GG+MPYefuQ8FMhYdx271MAhZhMGp5HaUDb4BDebBkc9gRRIxYVs1PrywKT69swadXRvJtoD0iR4mm/IjMYmI5oT6sUU1Gs/nLc7jo0YymmCEn6TOjSOUdBiQt6gAAAABJRU5ErkJggg==",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAA/FBMVEUAAADn5+fm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fl5eXm5ubm5ubm5ubn5+fk5OTl5eXm5ubn5+fm5ubm5ubo6Oj///8EK0jm5ub8/Pzv7+/19fXx8fIoSWPp6enHz9bk6Ov5+frn5+f39/fs7Ozu8fMVOVQJL0v6+/sOM0/r6+twhpcjRV/o6Ojd4+dheow/XXPp7fDK0tmvvMWOoK2Jm6k8WnEZPVjZ3+O9yM+1wMmerbiaqraEl6Y0VGsqS2QgQ1zV2+DBy9K5xM1sgpRnf5BbdYhXcIREYXcvT2jn6+3Q2N2ntb+hsLuVprJ+kqFPan5LZ3w2VW1JZXqjhMOgAAAAFnRSTlMAIN/vcL8wEJBAn4+vz2Bgz6CfgFBvyuvMXgAABPdJREFUaN7Fmudy2kAQgFGjY5zYuVtJhAASzWDcwL3g3hK3vP+7RJKx1yS600qQ5BuPf2jG/thyhTulqGSW9UJxUdXAQ1MNo6DnMql5ouh5FUJQi+X0fAy5QiBouBXbqZsm8zDNumNX3EYgyudmNWSWSr7Ask0WQt22qr6nrMygSBc0z1CpMwn1wJNPqlEMAHDRIMSxkmoyBT8Ik5Ewk2m+aACooGnUcuxMuaggawwlVhhVh8XGroKmx6iGhWHEDKZAS9UiNGyWELsBqkJwqFA1WWLMKsGS1mAFHUksK6ClIx0WmxELLSJHhc1MRWpR0DGrRZHU3GJzwRJXX4UVNidWYDF83SyQevd+/47WyYXQuQQa0Y69E87504BgaYAeWvTIcT74yQPaF2b02A8rvhFZ9OZjl7/R/0EovvG7YyGyIFt+ppDnQXRZ9D+6V56s05/8d3pNucUBbbrDPsuT1exhppD+odziTneYAiBL1uEOD+f4XpowAIUayOY6F9OrSacXgxbIxgWXsvMgHSxpQiDOqMWj+HomCSUbHcjeMadwVROFgg22IAiktsaJdEcdUYMtvc++Tqijz+msCXbKUHp15KDKwnjiH2ldr63LLIIx04CcrOzNNv/AzYY/s0i64EZeehXqocODf2DsOTzOJT0mypfqO9KCbH3jHxhNHh6TJZgvBXtLLjmfPLyMLbGCubgIdrTk++ThUWyJDfmgJJ1ICXbofj+mxPSLkoFVFinBfLHO0Q5NgkXJeKPEpUh2hnfm4OnSnz8G17EkLiyndKhESpDug+Pn7CSGpOJVPgs2RYL/bM/P2bDbGm4dHFMktjccDXDoEpxza8HE2yNIHCh6kjpNgrSO3j/XtkyCc6QKJlmC/3Efxw1KxD2sJZDguDmnSLQUAEsgeWavDKMlDCCJpOv9DF5H5svfkqyfrXu/mliSeUpwq/2tzfl4tHWwzWmSmIXvBhvgXVwhSYUnt/DjaXPreH3XH8IXbY6QWrgEHYpk//1vDmLOwnUwvDXLYTHWk02sA1HigEGcIPcmD0fTmSJOkMSp/m27i0tJrKl+GRctyZboYPLwVig5ES9aOfHy25z6nK8tuMWFbMuWX3EPT+1Kr/3d3VlLLBkx2e7uk6jym1NFHl/1nttix4ktrHvRk+jCb0Cnt5zKZU38db4cfAVaFQ7W4Q5J8bLHhFQhjRvucDbW2pGK1pB5yErikZWepN1H5Kx91ZQffuQDSc7Ll4TOQUviuN1kUqowuV4pYb5ifstuHTI5jp+tgCVwmZxvL+GSXRaBC+WJJIMLl5DDfpgEG1d68IGlj6DWiyvBsgekYdVkkZxuCyTEExyDdh78MCZKMBDyURRiX3bJEgwEq+IyErvbZAkGgg3mMBrfx0SJ/ccxt06/NWn22hSJWYVy/CNbZPeGILHAEB0+U3PWR0n04TOi42AhcPeIkuhjdCQb7zJrcONJJAXJhl/9lWJebfzoCyUroM7rkqZuSy5p/s910/wvzv7FFeD/v8z869eyaFmd5YJ5ER0ysrNclWepr8zoGlQTBOPgpT8FxYgfjOni6wtEFtR4GrMCGAYZ5ROgJlrRwGok0DiEKcwFzFQyTdWqSw1+EFoWx18CzYIaeOxOaJZsyzPA4lJm5levPoW8etXBV6+yudRcSC8Uw18iy+tKap5kcnrWMN5ehysVs/oyOUm/AJAdz9mDSbxUAAAAAElFTkSuQmCC",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABqlBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubf39/q6urm5ubn5+fl5eXm5ubm5ubl5eXm5ubn5+fm5ubl5eXo6Ojk5OTn5+f////m5ubb29vd3d1Li/VQjvVSkPVMjPXv7+9PjfVJivTh4eH7+/zf399IifRIV7pUkPVVkfXp6ellfozx8fHs7Ozg6/309PT9/f36+vr39/dnf46ClKDj4+ODrfRLYsXu7u50iZbBx8tYk/XFys2ImaRwhpT29vZkm/SOtPOgv/KcvfJ5jZlpgI5+qvRhmfR1pPPC1PG2zfHc4/DX4PDk5OTHzM+tuL1HVrqnsrmfq7KSoauqyPt0pvdtn/VdlvVVkPWbvPOLsvPH1/Hn6vDi5/Bnm/Dr7e+owOa5yePT1t3Y2tzV1tfO0NLJztCRmcuhrrWPn6hrgpHm7v240funxfZnnfTi5POWufK80PGKrutnmeqWtejJ0uCkq93Iy9hyfcq8w8daZ76cqrGbqLHv9f670/vr7PfJ2PHI2PCCqux7peyfuuats+B1idW5vdSordCHkM1hjMtddMl8hsdagrligqVlf5MIelvOAAAAFnRSTlMAIN/vkHC/EDBgQJ+vz8+gn1CAbzB/JOfehwAABhBJREFUaN7Nmuef0jAYxymUMo47d9N6ELyenpTKcIEnnuvce++99957b/9nkzT4qE1KA3zU7xve9cvz/J6mkDQWldS0pJ4biicQIRE3DD2ZTcX6iZYciCMB8Vwm3R9DVvcFXrlSrzlVk1B1avVK2fNFA9leDalZg4iAJxxTQG0Cl6gno/WgSOs0gnLNDKHGPAPdajSDNgkMUuqNbjUpnRbhmJFwcFeaGQmiYClH18Qzyp3yWBVqGkNTKqNUN5WZKKFEUiENzDulXowerVVDCFXMLqmQZLQIjjgqOWbXOKUIlnQCeVWzBxwPJdIdHdjsEQwWmaNs9kw51KKBo1eLFpI5NvsClqcfR57ZJzw0lBI6dJjdnqmWxHflDITA0TMOQklh6BWzj1RE4RsQer/CN/50ZCCQ/sWSDEzvhPk7z/bNJxwYGxvLc4YJe6Nb6ijx+4RNDTTrCjEEJITLKnOs/1ZIcLL2+hLuAMkepQnTRIUA4xLJOqXlxRAVAkCzwKHarypCaVEhIBmjCCR7lErRQwoBSf5PyV4FiQMDlkENUyLJA8Oc/FOlhXL6z9W3LpDkOSDhXFGQ1NCg78iikimQyBzFJaYCCGUh9gACB5fMP4p/o9FoeJ7XKDth0cdRTSSROYrFE6NbCYsJI5RRH3vEEfYrTh0zhd0yAw6QbLBtZuBQAQOJ+6Wx2cLhkvFDG482jry8sZ45COOnbXtEIBk1BWC2FufQRKhkwxbss/kQk9B+2cQSlNjih9cAi8QJk6w7TgVHMOEqcTBe2QRwhEocGkpKHIlJcqBRrDxKSlg1Pjy8ZMtq6mDkLbBIJRBKitwlnkTCuInxlpUQuk/hpE3hjg4SD02LJVE5RLISYxx0FG7ZjEiSMklel/xIGWasw/gw/Vy/xGc/cxTm25Szu3ZuH+0oqSA9ZqB6iGQNxqvp5yrss4o4KKxfyxZeWtRZUkc5IqmFSFb/IbnBHLRfTLJwRYgE1kg6wRIJv/gmmsa+gwfXrNmM8ZKCz/gywnYiWbZt27bllHNUIpvhBKqGSPZhfJzmwCCSlVwy+9vk5ELGZLPZXEFoySRVlIghZArhs3QY45v5IoPks6XtmP1p0U+azUWtVuuJTGIi1EmygQSxcT1dsEg8+FDbMfsYj8GyHk6uOAeZKEv49ycc3riRLiybuINykjusi+7a0V4kjIMNzNk0zh2UO7ubay0iOeu6O+0OEnnwxTbrN7E18sU6qIP2iwzwTlJIy22etiyqkAdPR1gmgWXk2oZrY6BgzLm7e+Glc9ZO191OVMwiH+FBiaRYIFcPAI45d8403bXLL7ktixFyMxqxHKpLJCIFOOYcs7ZNuq7bPGv5yJcVQ7pAFgUKcBBm37UuEMlyen2Ljpl8gZQu9QIDOBhvzqwlkl3tQqyQpX6a5KEVMICCc5s4FrnuBb8SguyhlZU+foPXBwfnOxHs5rVQk/zxK5thfnm5Yu7cr9vZDe8+bnfMlP66myJOvtBBQbhtUS5CLeLcc0SSRFg4XSIFOBinLALtWOuMVIJRhkg0cSj7RQZwME5YjCekYVJJCaXlP7j3BA2g4Ly2fB7ydkkioejiO+Vq4PJcARROtafX/xR2awD+BAlwFgh5t/Qnn0+BgCLsFj9eGST9is7beW0e3WcC8IgWrnjMZ7rSjt3zXx2dKvFQhktSCaXttAdc8h4E3CLf+ODRR+ee7/jAry2vBGLn/+iq0SXXmeM8U3ABR1IIx0BltX7tII5fKuHICoGND4V+7aAOO1DJiKQQSMVT6NeOLzYAEiwrBAasHt3y8bTAMfKnoxLY5k5Ksu/pJCXzN7Zs//bmMzSs39voAvQ+xuKUJMd0qcF+Hm3E/9ohzd8/bur/wdk/PAIEi9fTJFc94vgfjmV9Sy8HzEPgCIMelTtdtYoeladi0UgmuiqmrnDoT9AM9WIcj72+oEImrqaplhEtQxFtCoquccoI0lDXNOqdFTUPQae605RwLdRAi0jo6Vj3aJk481QcYZcmMCIMTU/FeiQ7RfDqlQOvXunZWF9IZ3Lil8gGklqsn6SySd0w2q/DDeb05LTITfoBng4pCD/g39QAAAAASUVORK5CYII=",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function H0(e){let t=PF[e];return t}function zv(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=FF(e),a=ye(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(Wv,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(LF,{...e,currentTranslationService:a})]}):null}function Wv(e){let{t}=se(),n=ye(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=Fr(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(Hv,{className:"translate-service",items:n}):x(oi,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function LF({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=RF(e,o),l=MF(e,o),c=Ae((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=ye(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Gt,{children:d.map(({label:m,items:p},g)=>x(Wv,{label:m,items:p,ctx:e},"field-"+g))})}function MF(e,t){return ye(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function RF(e,t){let{lang:n}=se();return ye(()=>{let a=X2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[wr,mp,e,n,t])}function FF({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=ye(()=>t?Z2(t,"translationService",c):[],[t,c]),m=Ae(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=ye(()=>{let g=Za(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=eb(f,e,g,l,!0),v=H0(f.id);f.id.startsWith("custom-ai")&&(v=H0("custom-ai")),f.id.startsWith("mock")&&(v="");let S=wi.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:H0("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function Gv(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Vv(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=BF(e),[o,s]=G(()=>a?"excludeMatches":"matches"),u=ye(()=>r||a||!1,[r,a]),l=Ae(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(oi,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function BF({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=ye(()=>new URL(e||""),[e]),t.config&&e&&d0(e)){c=Gv(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>Ze(e,v)),m=!!y.find(v=>Ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=Ae(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(w=>w.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=Ae((f,y)=>{if(f==="default"){s(w=>{let C={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:Mf(e,C.matches),excludeMatches:Mf(e,C.excludeMatches)}}}),h();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(w=>{let C={...w.translationUrlPattern};return C[S]=Mf(e,C[S]),C[v]=a0(y,C[v]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function Mf(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!Ze(e,n)):t):[]}async function Kv(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Rf(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Rf(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Rf(n)},r,a);return IF(i)}catch{return Promise.reject("Encryption failed")}}function IF(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=I.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let O=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),O.enableAIContext&&(L.ai_assistant="ai_context"),O&&(O.provider&&(L.translation_service_provider=O.provider),n.translationService==="openai"&&O.provider==="custom"&&(O.apiUrl?O.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),O.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=Bc(y);let O=_c(y);L.install_week=`${O.year}${O.week}`}if(n.user){let O=D1(n.user);O&&Object.keys(O).forEach(z=>{L[z]=O[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=T?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let O=n.url;try{let z=new URL(O);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...I,params:L}});if(i)return;R.forEach(async I=>{let L=await Q({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&_F(p,P),n.config.enablePerformanceReport&&jF(n,P)}catch(r){D.debug("report error",r)}}function _F(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};Yv(r);let a=Date.now()+(Math.random()*100).toFixed(0);Q({url:Is,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var OF=Date.now(),NF=["translate_page","translate_video_subtitle"];function jF(e,t){try{t.forEach(async n=>{if(!NF.includes(n.name)||e.config.performanceBlockUrls?.some(l=>Ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};Yv(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-OF},s=await Kv(JSON.stringify(o),E1,A1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);Q({url:Is,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function Yv(e){return e?.install_day&&(e.install_day=Ic(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}var UF=1e5;var Qv=Date.now();async function Da(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=HF(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,h=null;async function b(C){let{container:T,onFrame:A,onIgnoreElement:k,id:R,isLongHtml:F}=C,P=document.createTreeWalker(T,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let O=L(_);return O==NodeFilter.FILTER_ACCEPT?ft.mark(_,R,m):QF(_,O,n)&&y(),O}),I=T;if(L(I)===NodeFilter.FILTER_REJECT)return;for(ft.mark(I,R,m);I;){if(a?.interruptEffectDOM)return;let _=Date.now()-Qv;if(_>50&&(D.debug("taskTime",_,T),Qv=Date.now(),await ot(0)),s&&s.length>0){let{currentNode:O,isMatchedSelection:z}=f(P,I,s);if(O)I=O;else break;if(!z)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let O=I;if(O.nodeName==="IFRAME"){A&&A(O),y(),Ff(p,!0),I=P.nextNode();continue}O.nodeType===Node.ELEMENT_NODE&&(o&&Bf(O,o),c&&_f(O,c));let z=Kr(O,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},O.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&O.childNodes.length==1&&O.childNodes[0].nodeType===Node.TEXT_NODE&&O.innerText?.length==1&&O?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),At(O,i)&&!z){v(O);let Ie=null;for(;!(Ie=P.nextSibling())&&P.parentNode(););I=Ie;continue}let V=Bi(O);if(!Jv(p,O)||z){y(O);let Ie=z?O:O.parentElement;Ie&&Ie.childNodes.length>0&&S(p,Ie,Ie.immersiveTranslateComputedStyle||null)}V&&O.shadowRoot?.mode==="open"&&(z?A?.(O.shadowRoot):b({...C,container:O.shadowRoot})),O.nodeType===Node.ELEMENT_NODE&&At(O,n.likePreSelectors)&&u&&(F||GF(O,n.advanceTransformPreTagNewLine))}else if(I.nodeType===Node.TEXT_NODE)v(I);else throw new Error("should not be here");I=P.nextNode(),p.commonAncestorContainer&&I&&I.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(I)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ii(_)){if(c){let ie=Object.keys(c);if(ie.length>0&&At(_,ie))for(let re of ie){let N=c[re];if(_.matches(re)){let j=c[re],W=Object.keys(j);for(let me of W){let ce=j[me];_.getAttribute(me)!==ce&&(ce===null?_.removeAttribute(me):_.setAttribute(me,ce))}break}}}if(!C.force&&ft.isMarked(_,R)||v9(_,R)||q0(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!Ka(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ie=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ie,If(ie))return k&&k(_),NodeFilter.FILTER_REJECT;let Ie=Kr(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ie||null);if(_.isBlock=Ie,At(_,i)&&Ie)return NodeFilter.FILTER_REJECT}let O=_.getBoundingClientRect(),{width:z,height:V}=O;return _.nodeName==="IMG"&&(z>48&&V>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&V>0&&d!==!1&&(_.setAttribute("width",z),_.setAttribute("height",V))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||V>0&&V<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let O=_.textContent?.trim();if(!O)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:V,height:ie}=z.getBoundingClientRect();if(V>0&&V<4||ie>0&&ie<4)return NodeFilter.FILTER_REJECT}return l>0&&O.length>=l&&VF(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await b(e)}catch(C){D.error(C)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(C,T,A){let k=T.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(T))if(g=!1,T&&T.nodeType===Node.ELEMENT_NODE)if(Ru(T,A))g=!0,h=T,y(),S(p,h,k);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g}}else if(T&&T.nodeType===Node.ELEMENT_NODE)if(Ru(T,A))g=!0,h=T,y(),S(p,h,k);else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};else return g=!1,T=C.nextNode(),{currentNode:T,isMatchedSelection:g};return{currentNode:T,isMatchedSelection:!0}}function y(C){let T=p.flatNodes.length-1;if(n.skipTrailTextRegex&&T>0)for(let k=T;k>=0;k--){let F=p.flatNodes[k]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(k,1);continue}break}if(C&&C.nodeName==="BR"){if(C.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=JF(C,n);let k=[...p.flatNodes],R=p.flatNodes.filter(F=>C.parentNode?.contains(F));R.length>0&&k.length!=R.length&&(p.flatNodes=R,p.flatNodes.original=k)}let A=WF(p,r,n);A&&t&&t(A),Ff(p)}function v(C){if(!Jv(p,C)){y(),Ff(p);let T=C.parentNode;T&&S(p,T,T.computedStyle)}p.flatNodes.push(C)}function S(C,T,A){C.commonAncestorContainer=T;let k=w(A);C.isPreWhitespace=k}function w(C){return C&&C.whiteSpace&&C.whiteSpace.startsWith("pre")||C&&C.whiteSpace==="break-spaces"||!1}}function Jv(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Bi(t));let r=zF(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function HF(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function qF(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Bf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function zF(e){return e&&e._currentStacks?e._currentStacks.some(t=>Bi(t)):!1}function WF(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=n0(r,a,n);o||(o=a);let s=[];for(let p of r){let g=qF(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>UF){D.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:E9(o)}}else return null}function Ff(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function If(e){return e.display==="none"}var ft={_marked_key:Q3,isMarked(e,t){return qp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Bi(e)))return Jy(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ft.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Bi(e)))return Et(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Bi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function GF(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=Un?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function VF(e,t,n){let r=e.textContent||"",a=C9(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=Hy(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function Xv(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||YF(p,a,i,o)||!zy(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function _f(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function q0(e,t){return KF(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function KF(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(e0(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function Ru(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function YF(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&q0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Vc(o,t,n))return!0}}return!1}function QF(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Kr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function JF(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Kr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function Of(e,t,n=[],r){let a=["notranslate"];return r&&a.push(o1),e&&(a.push(`${B}-target-translation-theme-${e}`),t?a.push(`${gm}-theme-${e}`):a.push(`${pm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(gm):a.push(pm),a}function Nf(e){let t=["notranslate",Bl];return e&&t.push(`${B}-target-translation-theme-${e}-inner`),t}function $v(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Fi(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let w=f.indexOf(S),C=f[w-1]===" ",T=f[w+S.length]===" ",k=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),R=Number(k);if(isNaN(R))return S;let F=o[R];if(F&&F.type==="element"){let P=rt.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(P=" "+P),T||(P=P+" "),P}else D.error("variable type not supported",F,S);return S}));let y=Of(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(i1);let v=Nf(i);return jf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:oo,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function z0(e,t,n,r,a){let i=t.original||t,o=o9(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function e5(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function t5(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=ho(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=uu(e.targetText):e.targetText=rt.sanitize(uu(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=uc(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=c9(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` -`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Fi(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return ZF({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=$v(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function Uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function ZF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",w=p[v+y.length]===" ",C=y.match(h);if(!C)return y;let T=C[1],A=Number(T);if(isNaN(A))return y;let k=o[Number(A)];if(k&&k.type==="element"){let R=rt.sanitize(k.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(R=" "+R),w||(R=R+" "),R}else if(k&&k.type==="text"){let R=k.value;return S||(R=" "+R),w||(R=R+" "),R}else D.error("variable type not supported",k,y);return y}));let b=Of(l,n,r||[],s),f=Nf(l);return jf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:oo,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function jf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Hf(e){let t=e[e.length-1];return t?t.text:""}function n5(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new ec(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=$F(u.content,t),n&&tB(a,n)&&(r=n)}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:A9(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function r5(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function XF(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` -`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=XF(o,20),u=eB(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return n0(i,document.body,t)}function eB(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function tB(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function a5(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Fl)||qf(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Fu="";async function qf(e){let t=document.title;if(!t||t.includes(Fl))return;Fu!==t&&(Fu=t);let n=await Be({text:t,pageLangs:[dt(),"en"]});if(!Ro(e,n))try{let r=await ra({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Fu,document.title=r.text+Fl+Fu)}catch(r){throw r}}function i5(e){e.rule.isTranslateTitle&&(document.title=Fu)}function as(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function W0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Jp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function yF(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Au(e,a),r=xn[n],!r&&Lu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||lF(n);return t}function xF(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Aa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function dv(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Aa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Cf(e,t)),e.dump&&Du===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function vF(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Aa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function TF(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Du===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Cf(e,t)),Aa(e,t+1,c,!0,d)&&(e.dump&&Du===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function mv(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Aa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,mv(e,n,!1)||mv(e,n,!0);var s=kv.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(TF(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(vF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?dv(e,t-1,e.dump,a):dv(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(xF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&hF(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function SF(e,t){var n=[],r=[],a,i;for(Ef(e,n,r),a=0,i=r.length;ac.selected),[r,a]=G(!1),i=Ce(null),[o,s]=G(Nv),[u,l]=G(0);return Cs(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,b=20,h=30,f=5,y=m.clientHeight-b*2,v=t.length*h+f*3,T=g+d.height;if(v>m.clientHeight-T){let w=Math.min(y,v);l(m.clientHeight-g-w-b)}else l(0);s(Math.max(Nv,y))}},[i.current,r,t]),te(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(Uv,{item:n,isDefault:!0}),p6]}),x(kF,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function kF(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return te(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(Uv,{item:o,onClick:e.onClick},o.value))})}function Uv(e){let t=e.item,{t:n}=se();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:qo}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var DF={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0UvaLEDVhXmV+n9MhHzMTxcr8ai5qZBShAgI7cfmabDUUj1drOqebgQhoaPx66F5nMzTW4QuyLs/3PJlQjlYEy/WnqulOZp9JQnJfnKYbYbLQ/xpf1cb+hXppiAJr197ppzJ+/HSuQw/3+mpNbIoJ6qXoZAucQxcycKF7qk1cir1pKurfumvnKZTp+VSqbdBWMu7m/KJfq7To/R7xER0lSLsAHT5xE00TGTqNdjaAsuWT7pHlGSBtTZT5RM9wo/OtkeQLSBaETabD6Tira632nSXH80OEp7ca6NzWzN12oq08WKAe200ESBz2cJRHuxbMpVrIDHHYeoQMMvrKhN/Xuk29Rz0ijW2vs+uaXQDyrFzhP3O1NXT5TJK8rD0OYoQzmdKqkf4IblDcWRQ8AdOjxDMgdMe2xNGoskJdyRmJhv6xsdLtFY4TNyFr3CDAe5aIZ++VvgXH8aWflCYqmrqj9xtz5tn5O9ezSTW//byGG1euC6TSffzr17AG2J8k7wxImiQ3R1i/A9jkSbge38Q9LdHVewwbf/mMC2MnleW3QCr5NG8VPgieXli88TIdA23k7wbyBfPD3Xbh3T+UJdHEUMtnBnl7AFRvDJwX/yI2cE4TcdjmeJzdO8m95+je7HefvPHhZT6cWG1fOsXi22R5pmYmeI83Twk+w2VbF9Avb3n0wAAAABJRU5ErkJggg==",deepseek:"data:image/png;base64,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",zhipu:"data:image/png;base64,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",claude:"data:image/png;base64,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",deeplx:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAilBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubq6urf39/n5+fl5eXn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubl5eX///8cNlPm5uf5+fnw8PD19fXp6ens7OzGzdQ4T2mNmqnx8vVxgZObp7RHW3NVaH4qQ16qtL/U2d9jdYnU2t+cp7SAjp64wMl/jp/U2d4Ydh2WAAAAFHRSTlMAIN/vkHC/MBBAn6DPr2Bgz4BQsFLCjcYAAAQ6SURBVGje1ZrZepswEIVZBAbHW9JhQCxm8dbE7fu/XsHQTNIKSzIiX3su8jm5yO85Z5CEJEtVwYvH1jvHxVau4/vMCwPLpGxv6aBAznq7MEMIWQ/IEs7jGG6KY86TrActw6mE4HmFrRIeg0AxT9KOs7UnIBbM7QgEEIFunOWjGNvvTIpBKp49igmYoIjxch7CeG6LAJIKxtlqOkVG6WB8W6uMlIO2eIqup5wGOaVfDFOzaofI4UFxRMdWYDiYxvCw4lSBsnAxgymKM3QXUkYCE5UQRcKYj2ITYyrFHs+cGBMp4+k7lPlUZbgLhAxGvTtdqfip9BBNMOh58YShczAoLgrfp9BNhe//ydhQIKZEhlH3klnmDPvcYU+YgHFlnzvMFndWXhWRkprqLOowRFtayD7S0F6cvayQ75GWcgEFcSEppNKDVMJSmCSRRg9SiFKhBtuIB8ZIU+IGe34ffflckBhXPSPEFOaCAGJIsc8DoegdjHUgxz0CNqqQGJ2OscAUNCAFQgmAqhDon/oNJhqQI8IlOkGpDEluY/EauQZkD6coqiFXhnBcUiRqkAKg6aqpVCAUSjAWCYgL+dkV8hopQwAxsELMNCAINZmlBsnwxfIwUYIcDsebW6fvVIcEQskz5CqQH93Yn1+7n4dIC8KRWb4apKhzRARAQihDvrWQWDmTA0A+MMvh0wmgIMjYGOloQC5tJDTbvvUz1T6SQRzLRVCG/PjwL89QFl23ocwuQNdCDUjdff1BDcC1q6eQQ1AH0gVw+bg8IbMMQnKAA/12BgCMjEPOAMfPj85eCaIVPEL5aWKBLnyF4LVauH84KKBD/wd5C680IAD1++db6G8Ab3KIT3OWHNIAVGTWLfS8NUwC4S2EqUMuw1NBw0nHzaUQJh/qSTX8JLOGAf+1NUw+1L8oTVrH4th2MLmlNWmF96dfWmm1yj80sOb0K19INHjd13kJrfBU6EBodfckWRIVWH58yfleq86MNGdZ48m/jx7lpbWshrfiFaFTme8vDZl52OfNvcXdtoXYkmVqdfN1mNovJ4RBmHfCEiA/3KkkxYXKgvv1DHglj5pLnZ9L6GvCa10dFRbcFnvs1aEojkqvDsv5X4LS4SWIxkjzEN661et5zhfT7QAJXGEphR6jkWx8sHk2Cyj28Te6XA9ylu3g+HNt4CzlW1E/q0aNUFT5nUQolQxMiwqhBjO/PfjXNrcnyH7yzvD267ds5998JsNMbqMjeiMHAuYY2cgxXbAyebThfOkhzdcfN9HB2f9wPNczJJQsnpZ5y/gXjmV7ypQD5l3HkIvRvQXtOJAF/86hfyvb1y8mzuj6gqI2jiYmQSpDWfaT3pUSSkMfk3Elo8ipxzBpEkuLcNmU21H2xuk44xeWsNXuObAmKny6f/WKhZYRLTZr8SWypWdbJhWEHvP939fhVmvmvSib9AuSIXmd+u06yAAAAABJRU5ErkJggg==",doubao:"data:image/png;base64,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",youdao:"data:image/png;base64,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",aliyun:"data:image/png;base64,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",tencent:"data:image/png;base64,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",baidu:"data:image/png;base64,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",caiyun:"data:image/png;base64,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",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTj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",openl:"data:image/png;base64,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",lingyiwanwu:"data:image/png;base64,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",siliconcloud:"data:image/png;base64,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",deepl:"data:image/png;base64,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",bing:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAqFBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTn5+fm5ubm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Oj////z8/MFpvDzUyX/ugiBvAbm5ubv7+/9/f1JvPH8ykvzgGD9wimRwyjp6ens7Oz6+vonsfEnsfChzEmhy0nzakPzakL39/f19fVfw/HzkHT70GF4zPLzoYn61nu513mu0mXzf16q0Fyhy0fx7mQ8AAAAFHRSTlMAIN/vcL+fMBCQQI+vz2Bgz4BQb5vSjyAAAAM8SURBVGje1doHctswEAVQEOykmh0g5RNuBFNJ2+m5/81iWcrs2AJlFqyT/Au8WX4MLWMphiY7jcrFRoYAEMo4LqMiEz4TRImEI3KxTv0IRbkDbKXbxhh1F2OaVld2ByXFXCE7WQJA1RnlSNNV9dZZBzOItAy3QqOOpLl3kqlMEAOwJPSmraYyWQmgMmpQzDTmRUjEUEauRz8pS8RgJg5GjVG3anS6GmE0uA16UuOHKYc9qg2g1cRoQAYDDInaqMkx9QAlDanxaYpFmD5pVGpmKlKOGLxKQMZcJejvnIyZSn/7ElZ5isUmcxql4+zOOMml810CkDFfASJn6Vp5jHaVH1PpvsqPHxsrKsRfLdHB6e0ejTsh6kFahNkDJEGlfCPKonwwCGAOkC8Xrtxo/f29K98OEAME7kEIuXjlyketr9648kHrnu5pEA7EAKljEE8IjZI/GoQBMXTAVqgUD6IsTvaIRMuFNFjujAK14kIUUFDtPAhVL9HwIQ3k1khRKz5EAQGdLS6kun8XL9BxIh0SqoQLMdtSMtSKE1FAJgpYXsTiVESouBBqPofmRTRyEaPlRVos7pCGC6F3pIThQugMh/xIKADVg9x8cuWH1r+uXPnZgyigHxmdfxe5fuvKmdbnl67c9iNHij976co7rS9fu3J+pHjJj0ixRMOLNIjFAi0v0t4hOTQXQi/ICBUXQq/6U1hexKKgP79cCJCJ7RnmQujXXYKOE+mwEIKa50EqrO+QADUnUiOlH9zeEapkmxwVH1IhoX+CuJAa+/XKEg0X0kKKXU5guRCL9R7JQhgGhC4+qHr/CNW+/4/OeEdoELq2Y0BokP6rqM9nrlxrfXvuytfeqyhqxXr/3UWD0AFrfSPdwTV3xHHRuX7+K1v+y2d6YGzX6JTc70Igd6/+lj5XG/LZlzT86yb34ux/WM9tjb+/zORfy5IyZ8G8IeNY8jmr8jwTwxKFqLvxRktL/yEJ4vHDGEufLwzMSo7+EIPGGJwgGfdJCbUxgWmfJhoLelLTmPqpz3wAhHkqpidYyXunc0Km2wrYnGRiZork+KdXeSG8JF0tJByRSRQIn8mKKI/jP5/DLRd5dDr4If0GDemh5W2BeAQAAAAASUVORK5CYII=",google:"data:image/png;base64,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",openai:"data:image/png;base64,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",gemini:"data:image/png;base64,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",yandex:"data:image/png;base64,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",transmart:"data:image/png;base64,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",azure:"data:image/png;base64,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",hunyuan:"data:image/png;base64,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","aliyun-bailian":"data:image/png;base64,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",qianfan:"data:image/png;base64,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","custom-ai":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAclBMVEUAAADn5+fm5ubm5ubl5eXn5+fm5ubm5ubq6urf39/m5ubm5ubn5+fm5ubm5ubm5ub///8zMzPm5ub8/Pzz8/Pw8PBNTU34+PiZmZlmZmbp6enMzMyAgIDs7OympqZAQECMjIyzs7NZWVnZ2dm/v79zc3NU5GJAAAAAEHRSTlMAIN/vkHC/nzAQz2BAr4BQl4KpRAAABN1JREFUaN7Vmt22ojAMhZVfAZ0DoSLYgoL4/q84CDoZJQkorjVrcns8fGTvpC1tV3Mj+HGdXWjZ0IVteZ7jboPVN2Pt+hYQYe2izXcIW2cAlHt1OKRp3EWaHg5qXw4gf7uUEPwKoYv9IY2JOBz2xxsnWi9AbBy7J8RCDBz/U8zau4mEBJ5TfooJnFsSqJIY6f4jjGtTCBljRW8rVZIIGeOt30rjSHshe3ME253thqyUnIwzT6oQQMUfhgKw1jMYFhzlNORkjjMoGxsd/4xSgr2ZZOzjhbFHygLGMsoaGUspa95zZCyk8O5bUMZfihLCgGQ4RO0uqGSyK10AmaHayjRZ0kVWXHOtZAqAS5quJEJeJC9RVCD9A2W+J5mui4SI7CKb770yIjRERmAYNWWLO6pebmwHGpFcJ0d+sJ8rzGfFqk40I1Mz6th5SoStrHOCcTJV21cH6Mqg6VKFrWckohok5PqDxvemE4EMEZw6l1MtpbIhEmEYiCD0LKRUnKlEGrEf8EeKTwULLIJS8FzuB+h+oKUC+3WH0D1SP6QSEMOvzlKvhANjC0fSEIYB5zM8dZFoGcBWsN1gX4/+0Dwqq3i4VgvW82q1bF/f3n1IJU8wzqxeVr94INW6izXua510UY0gGZfK0PURpZZGQ6iaK+6uZ9irvF5uB9lRahXs6zX9Q+/PhMG5AqTJy+8tSYnq76Om+wJbY5DMyKNkZ0pAWVKxidR/fEZoG0sBEHRdUpJqMW94ffU5w+rgmv5n5RK+q6QPash6TGGAhdDEGEqRzjvEIkWzauWjCV4/leC1JZx3Vh5RXDmjlsY5DJsc/nqeSSqiHXc9hBR+9Ht1Tp5iNANfOn8MOUZakDK+66kVBQqFPdOQNWwTkAy9nVje1a8dlBEQewVEASZ9jFyi4vxaklSjzISQgJd8F0MosVCeBRA1Q6+zmgWRjceA6xjR6Hie8Rak1HBOjHt19ow4VcQwUZAlHBIQg83Id6NR1Mh9JZrRwzlr9HsjrSkzTb9ZTkHIAbId5KDmuQdEM0ZqaoCUhnpNUApu3XBJ+qCH+h9+0sr5sd4wPhbUpLWlp9980Euxy5iaUauip1+s4bFeOTs1AjP3A7O680ERerGpGFqVjFNLwa6DuO8t7mpyUZqzpbKHqP8EOvJVdCGUJB4G/Fr1CBt2wa3ZBXcxfpi692jLLrhXDuz5VMy4IbJTRS/GDLkU9qWPoBNrC2NIBqRa9+OVEPUaDWBIERjYO5RaQ/ySP0yvSkIoI30GlRDdIYENKb0dweuADj0mMHnjA60nikaWTOUJvohg+/2LbmLbI6tJxAkZUiLyth00uCwxL42pEZE0KpYTmd6KQk6loR+O2sqciDULmQiGgwVGLB/kwN7kEsECY7cHjQCQvkrVaJvbFTY620xAaGGjM1q+ZYsIedtu/uYzVMWIkKv5m8+yYBhK59di2EZvTNVOb6P/qwOBVRB+82jD+meHNN8/bpIPzv6H47kb498fZn73WFamLDlgDpEhxbKj8uCNQ3+19NB/WjKPTkZ2nLi+IEdkvX0Rg05DTsZ/70qJ4IaMmX85BpX6DHOcuuYDALazWXLpKrJ6jkpJlXoChL+CxVevfOLqVYpXr5zt6iuxiXb0JTLfXa++GcHWdTzvcR0u3Dnuz2yRfgMxZAQ0WCTcgAAAAABJRU5ErkJggg==",custom:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAhFBMVEUAAADn5+fm5ubm5ubl5eXm5ubm5ubm5ubf39/q6urn5+fm5ubm5ubn5+fk5OTl5eXm5ubm5ubo6Ojk5OT///8AAADm5ubv7+/8/PxAQED39/eAgIAgICDp6enf39+/v7/s7OwQEBBwcHDz8/Ofn59gYGCQkJDPz89QUFCwsLB/f38wMDA/tQxLAAAAFHRSTlMAIN/vkHC/nxAwQK/PYGDPgFBvMNqdTJUAAAS8SURBVGje1ZrnlpswEIVNx303QQLRBJji8v7vFyGLlZ2YkTAke3L/+dirb2fuDEJlpSv/07G3R9PCTJbpuraz8VdLynA8E7+QuT2slyFs7DugCE9xFEUBUxTF8Sks7iBvM5fgf+wwUxhHwQtFcZj1nIMxA7G2LU4IAN053rsYw+2TJAgw512Mb/dBRIGWovcwPyyJ0MWYh8mZKiRCG+Mak8LI4mCy4gxbjrYbcKbgYGy9VB0xPgVv6sScMTQYJs6i4G1FmQZlbcGOqykFttZKRhjMVAhQAMaiFEMy5lIMwHPBmE0Zd9/ERbCQCnz0XzJsqHanV7L98lmCsWTMp2DsvDT9FCyo0yvzXWn6Uua7vzP20pDlbHH+qN44WFgxtp4rzNNMFiUlSptct47tp0A0KytBXGmnW2HG9EBqJFTmut5PDyRFgyrdUNZTA+nQl1LdMranBkKRlGYZywLbKwMJk8tzJCUvg1qjwD4ERNkjl/JuQvkFafqPBKW5sld2Ym2AMziMio1KAqb2C9IPHiKmREHBeKNje34TwzI1gnGVFlVq69XZynndEtF+1/4ToaJt+FeNIl9mz/gJZitMf/t3Oyp9yM/qWFjXK2uLDzNeRVfE1ML5chhkC2UrEQyYQsHJy+OWROOGCJcBNX3/A7mIelN8yBIijQVNS0BTfNYlBfQckf0G/agMoab/XDmA70QaoqiNBHbexifIkRQGDD8rIeftlTteXJUyEBkwBdpxC0F6S3PNKaACymsHVHDOn4tSXcmLIClZdkjO2r0dsl6ytII1bI1CLoOhMrCKJ4eLJog85isEJq4VxlC308fJN+X+EtTQS4rOD5AKNAVjBoF6uXv8WBFEe0jSD5s+QGqgQiCISMJTtroWNQJyRkRCZGLnQi7M27xvbYJuDfuqfoB0Cghg/LOdDSKUpqi+G1+2gYAITFsDxgMlzIaVfxmiuwg3vmNwDpECS3g3Cqnzxw+sN5hYbIRnRh8SY1fOWbDI8BbUvgOx9VZx7S3nAd0u7Tm/23C7ihe/M6ko/IB0oCk+rJOEKugl6lWBj/pPXCgGSHPFagKmFHgDTb/J8OLb6awmKDD9jtdwDi4UZK/DoUT87c4bc76SA1AoWCEy5vuWQUadJ3KAdtQ1JSTEB74EymAI9GCiynRleC1fuMF0XTSMz6EX7pU9ki8KGS/n5GE1MZYtTy6CwFBq5dKiHHMtY13CtcMxQOkHAEWTpA6h5QnXx2jT04qcr+HoarXRWJgeBMS31EvsJK3D3xDMjWrCxoe0Hmy6c90NRrSkfG4O2HaxopOhwE+PGyHkq2zLa6gZCLxtJ1eHf6rJA2Ug07ai8iZ9IqQyCjgQKVtnS5i251vZj39rWh6EbiCywOJgYZ3+2OZ2/sZG5+FfbNn+681nmbCFt9G/60Bg5e+WPNowv+2QZvnjJvjg7H84nusZ33+YueyxLEyZc8B8lAxI847K/ZWeHAsMBj7015bhTg8mKsT1BX3tzckXMWQY+sF4E6+UwG7AmFjDiwLDmVJjMpgT90FYNtB/asze5JzT2IUlzHT88GdfvfLk1at4uHoVyatX9ma1iNb77etLZJ5jrJaUv3Fs1x2uw+22tvOpnaRfIAx7iV31n+8AAAAASUVORK5CYII=",volc:"data:image/png;base64,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"};function U0(e){let t=DF[e];return t}function Hv(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=RF(e),a=ye(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(qv,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(PF,{...e,currentTranslationService:a})]}):null}function qv(e){let{t}=se(),n=ye(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=Ca(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(jv,{className:"translate-service",items:n}):x(ii,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function PF({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=MF(e,o),l=LF(e,o),c=ke((m,p)=>{t(g=>{let b=g.translationServices||{},h=b[u.id]||{};return{...g,translationServices:{...b,[u.id]:{...h,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=ye(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[m.name],onSelected:h=>{if(b.action=="jumpOptions"){let f=b.args||[];r(...f);return}c(m.name,b.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Gt,{children:d.map(({label:m,items:p},g)=>x(qv,{label:m,items:p,ctx:e},"field-"+g))})}function LF(e,t){return ye(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function MF(e,t){let{lang:n}=se();return ye(()=>{let a=J2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[wr,mp,e,n,t])}function RF({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=ye(()=>t?Q2(t,"translationService",c):[],[t,c]),m=ke(g=>{let b=d.find(h=>h.id===g.value);if(b.ok){if(u({translationService:b.id}),n(h=>(a(h.translationService||"",b.id),{...h,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(h=>({...h,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=ye(()=>{let g=Ja(t.config),h=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=X2(f,e,g,l,!0),v=U0(f.id);f.id.startsWith("custom-ai")&&(v=U0("custom-ai")),f.id.startsWith("mock")&&(v="");let T=Ci.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:T,isShowGoSetting:!f.ok&&!T}});return h.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:U0("more"),onSelected:()=>{s(!1,"#services")}}),h},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function zv(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Wv(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=FF(e),[o,s]=G(()=>a?"excludeMatches":"matches"),u=ye(()=>r||a||!1,[r,a]),l=ke(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(ii,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function FF({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=ye(()=>new URL(e||""),[e]),t.config&&e&&c0(e)){c=zv(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>Ze(e,v)),m=!!y.find(v=>Ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let b=ke(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(w=>w.match!==f),T=!1;v.length!==y.length&&(T=!0),T&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),h=ke((f,y)=>{if(f==="default"){s(w=>{let C={...w.translationUrlPattern};return{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,matches:Mf(e,C.matches),excludeMatches:Mf(e,C.excludeMatches)}}}),b();return}let v=f,T=v==="matches"?"excludeMatches":"matches";l&&s(w=>{let C={...w.translationUrlPattern};return C[T]=Mf(e,C[T]),C[v]=r0(y,C[v]),{...w,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...w.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:h}}function Mf(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!Ze(e,n)):t):[]}async function Gv(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Rf(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Rf(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Rf(n)},r,a);return BF(i)}catch{return Promise.reject("Encryption failed")}}function BF(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=I.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let O=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),O.enableAIContext&&(L.ai_assistant="ai_context"),O&&(O.provider&&(L.translation_service_provider=O.provider),n.translationService==="openai"&&O.provider==="custom"&&(O.apiUrl?O.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),O.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=Fc(y);let O=Ic(y);L.install_week=`${O.year}${O.week}`}if(n.user){let O=A1(n.user);O&&Object.keys(O).forEach(z=>{L[z]=O[z]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),w?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=S?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let _="html";if(n.rule.pageType&&(_=n.rule.pageType),L.page_type=_,s?L.main_frame=0:L.main_frame=1,!c){let O=n.url;try{let z=new URL(O);L.site_host=z.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),h&&(L.ab_group=h),L.campaign=f||"none",{...I,params:L}});if(i)return;R.forEach(async I=>{let L=await Q({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&IF(p,P),n.config.enablePerformanceReport&&NF(n,P)}catch(r){D.debug("report error",r)}}function IF(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};Vv(r);let a=Date.now()+(Math.random()*100).toFixed(0);Q({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var _F=Date.now(),OF=["translate_page","translate_video_subtitle"];function NF(e,t){try{t.forEach(async n=>{if(!OF.includes(n.name)||e.config.performanceBlockUrls?.some(l=>Ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};Vv(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-_F},s=await Gv(JSON.stringify(o),C1,w1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);Q({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function Vv(e){return e?.install_day&&(e.install_day=Bc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}var jF=1e5;var Kv=Date.now();async function ka(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=UF(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,b=null;async function h(C){let{container:S,onFrame:A,onIgnoreElement:k,id:R,isLongHtml:F}=C,P=document.createTreeWalker(S,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,_=>{let O=L(_);return O==NodeFilter.FILTER_ACCEPT?ft.mark(_,R,m):YF(_,O,n)&&y(),O}),I=S;if(L(I)===NodeFilter.FILTER_REJECT)return;for(ft.mark(I,R,m);I;){if(a?.interruptEffectDOM)return;let _=Date.now()-Kv;if(_>50&&(D.debug("taskTime",_,S),Kv=Date.now(),await it(0)),s&&s.length>0){let{currentNode:O,isMatchedSelection:z}=f(P,I,s);if(O)I=O;else break;if(!z)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let O=I;if(O.nodeName==="IFRAME"){A&&A(O),y(),Ff(p,!0),I=P.nextNode();continue}O.nodeType===Node.ELEMENT_NODE&&(o&&Bf(O,o),c&&_f(O,c));let z=Vr(O,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},O.immersiveTranslateComputedStyle||null);if(z&&n.paragraphFirstLetterFontSize>0&&O.childNodes.length==1&&O.childNodes[0].nodeType===Node.TEXT_NODE&&O.innerText?.length==1&&O?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(z=!1),At(O,i)&&!z){v(O);let Be=null;for(;!(Be=P.nextSibling())&&P.parentNode(););I=Be;continue}let V=Fi(O);if(!Yv(p,O)||z){y(O);let Be=z?O:O.parentElement;Be&&Be.childNodes.length>0&&T(p,Be,Be.immersiveTranslateComputedStyle||null)}V&&O.shadowRoot?.mode==="open"&&(z?A?.(O.shadowRoot):h({...C,container:O.shadowRoot})),O.nodeType===Node.ELEMENT_NODE&&At(O,n.likePreSelectors)&&u&&(F||WF(O,n.advanceTransformPreTagNewLine))}else if(I.nodeType===Node.TEXT_NODE)v(I);else throw new Error("should not be here");I=P.nextNode(),p.commonAncestorContainer&&I&&I.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(I)}function L(_){if(_.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bi(_)){if(c){let ie=Object.keys(c);if(ie.length>0&&At(_,ie))for(let re of ie){let N=c[re];if(_.matches(re)){let j=c[re],W=Object.keys(j);for(let me of W){let ce=j[me];_.getAttribute(me)!==ce&&(ce===null?_.removeAttribute(me):_.setAttribute(me,ce))}break}}}if(!C.force&&ft.isMarked(_,R)||y9(_,R)||H0(_,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||_.nodeName==="IFRAME"&&!Va(_))return NodeFilter.FILTER_REJECT;if(_.nodeType===Node.ELEMENT_NODE){let ie=window.getComputedStyle(_);if(_.immersiveTranslateComputedStyle=ie,If(ie))return k&&k(_),NodeFilter.FILTER_REJECT;let Be=Vr(_,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ie||null);if(_.isBlock=Be,At(_,i)&&Be)return NodeFilter.FILTER_REJECT}let O=_.getBoundingClientRect(),{width:z,height:V}=O;return _.nodeName==="IMG"&&(z>48&&V>48?_.immersiveTranslateComputedStyle={display:"block"}:z>0&&V>0&&d!==!1&&(_.setAttribute("width",z),_.setAttribute("height",V))),!_.childNodes||_.childNodes&&_.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(z>0&&z<4||V>0&&V<4)&&(_.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(_.nodeType===Node.TEXT_NODE){let O=_.textContent?.trim();if(!O)return/^( )+$/.test(_.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(_.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let z=_.parentNode;if(z.getBoundingClientRect){let{width:V,height:ie}=z.getBoundingClientRect();if(V>0&&V<4||ie>0&&ie<4)return NodeFilter.FILTER_REJECT}return l>0&&O.length>=l&&GF(_,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await h(e)}catch(C){D.error(C)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(C,S,A){let k=S.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(S))if(g=!1,S&&S.nodeType===Node.ELEMENT_NODE)if(Mu(S,A))g=!0,b=S,y(),T(p,b,k);else return g=!1,S=C.nextNode(),{currentNode:S,isMatchedSelection:g};else return g=!1,S=C.nextNode(),{currentNode:S,isMatchedSelection:g}}else if(S&&S.nodeType===Node.ELEMENT_NODE)if(Mu(S,A))g=!0,b=S,y(),T(p,b,k);else return g=!1,S=C.nextNode(),{currentNode:S,isMatchedSelection:g};else return g=!1,S=C.nextNode(),{currentNode:S,isMatchedSelection:g};return{currentNode:S,isMatchedSelection:!0}}function y(C){let S=p.flatNodes.length-1;if(n.skipTrailTextRegex&&S>0)for(let k=S;k>=0;k--){let F=p.flatNodes[k]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(k,1);continue}break}if(C&&C.nodeName==="BR"){if(C.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=QF(C,n);let k=[...p.flatNodes],R=p.flatNodes.filter(F=>C.parentNode?.contains(F));R.length>0&&k.length!=R.length&&(p.flatNodes=R,p.flatNodes.original=k)}let A=zF(p,r,n);A&&t&&t(A),Ff(p)}function v(C){if(!Yv(p,C)){y(),Ff(p);let S=C.parentNode;S&&T(p,S,S.computedStyle)}p.flatNodes.push(C)}function T(C,S,A){C.commonAncestorContainer=S;let k=w(A);C.isPreWhitespace=k}function w(C){return C&&C.whiteSpace&&C.whiteSpace.startsWith("pre")||C&&C.whiteSpace==="break-spaces"||!1}}function Yv(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Fi(t));let r=qF(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function UF(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function HF(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Bf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function qF(e){return e&&e._currentStacks?e._currentStacks.some(t=>Fi(t)):!1}function zF(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=t0(r,a,n);o||(o=a);let s=[];for(let p of r){let g=HF(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>jF){D.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:C9(o)}}else return null}function Ff(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function If(e){return e.display==="none"}var ft={_marked_key:K3,isMarked(e,t){return qp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Fi(e)))return Yy(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ft.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Fi(e)))return Et(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Fi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function WF(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=In?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function GF(e,t,n){let r=e.textContent||"",a=T9(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=jy(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function Jv(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let b=c[g];if(g==="translate"&&b==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||KF(p,a,i,o)||!Hy(f,n,r))continue}p.getAttribute(g)!==b&&(b===null?p.removeAttribute(g):p.setAttribute(g,b))}})}}function _f(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function H0(e,t){return VF(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function VF(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if($c(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function Mu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function KF(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&H0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Gc(o,t,n))return!0}}return!1}function YF(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Vr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function QF(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Vr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function Of(e,t,n=[],r){let a=["notranslate"];return r&&a.push(a1),e&&(a.push(`${B}-target-translation-theme-${e}`),t?a.push(`${gm}-theme-${e}`):a.push(`${pm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(gm):a.push(pm),a}function Nf(e){let t=["notranslate",Fl];return e&&t.push(`${B}-target-translation-theme-${e}-inner`),t}function Zv(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Ri(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],b=`${p}(\\d+)${g}`,h=new RegExp(b,"g"),f=u;o.length>0&&(f=f.replace(h,T=>{let w=f.indexOf(T),C=f[w-1]===" ",S=f[w+T.length]===" ",k=T.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),R=Number(k);if(isNaN(R))return T;let F=o[R];if(F&&F.type==="element"){let P=rt.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(P=" "+P),S||(P=P+" "),P}else D.error("variable type not supported",F,T);return T}));let y=Of(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(r1);let v=Nf(i);return jf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:oo,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function q0(e,t,n,r,a){let i=t.original||t,o=a9(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(T=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function Xv(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function $v(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=ho(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=su(e.targetText):e.targetText=rt.sanitize(su(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=sc(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=u9(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` +`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Ri(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return JF({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=Zv(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function Uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function JF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),T=p[v-1]===" ",w=p[v+y.length]===" ",C=y.match(b);if(!C)return y;let S=C[1],A=Number(S);if(isNaN(A))return y;let k=o[Number(A)];if(k&&k.type==="element"){let R=rt.sanitize(k.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return T||(R=" "+R),w||(R=R+" "),R}else if(k&&k.type==="text"){let R=k.value;return T||(R=" "+R),w||(R=R+" "),R}else D.error("variable type not supported",k,y);return y}));let h=Of(l,n,r||[],s),f=Nf(l);return jf({targetWrapperTag:a,innerClassList:f,classList:h,html:p,targetElementEffectAttributeName:oo,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function jf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Hf(e){let t=e[e.length-1];return t?t.text:""}function e5(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new $l(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=XF(u.content,t),n&&eB(a,n)&&(r=n)}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:w9(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function t5(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function ZF(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` +`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=ZF(o,20),u=$F(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return t0(i,document.body,t)}function $F(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function eB(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function n5(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Rl)||qf(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Ru="";async function qf(e){let t=document.title;if(!t||t.includes(Rl))return;Ru!==t&&(Ru=t);let n=await je({text:t,pageLangs:[dt(),"en"]});if(!Ro(e,n))try{let r=await _i({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Ru,document.title=r.text+Rl+Ru)}catch(r){throw r}}function r5(e){e.rule.isTranslateTitle&&(document.title=Ru)}function as(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function z0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Jp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function o5(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Jp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function a5(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Jp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${B}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function G0(e){let t=g9(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function an(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Gp(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var nB={sanitize:e=>e};async function Vf(e,t){if(e.interruptEffectDOM)return;wa("consumeContainer");let n=an(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Hi.bind(null,e),onFrame:r=>{zf(e,r,!0)},onIgnoreElement:r=>{ft.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),ro&&Et(t,"consumeContainer",e.id)}function zf(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Ka(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${dm}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Qr(t.contentWindow?.document.documentElement,e.translateState),mi(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),mi(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function mi(e,t,n=!0){wa("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=an(t.ctx),o=0;if(l(t,e,n))return;if(Ii(e)&&u(e)){ft.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ii(d)&&(a&&Bf(d,a),i&&_f(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ft.clearMark(c),t.immediateTranslateCapacity>=0){await Vf(t,c);let d=Date.now()-r;d>100&&(D.debug("batchTaskTime",d,c),r=Date.now(),await ot(0))}else ro&&Et(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return zf(t,c.shadowRoot,n),!1;if(d==="iframe")return zf(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Ru(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&Ru(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(We()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){r5(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ft.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=an(c.ctx);return!!(q0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Bu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ft.isSkipMarkEle(a)&&!ft.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ui(t.rootNodes),r=="original"&&n=="translation"){let s=is(e,t.rootNodes);if(Wf(s))return;di(e,s,a,t.targetNodes||[]),Ui(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=is(e,t.targetNodes,s);di(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=is(e,t.rootNodes);if(Wf(s))return;di(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=is(e,t.targetNodes);di(e,s,a,t.rootNodes||[]),Ui(t.targetNodes)}r=="dual"&&n=="original"&&Ui(t.targetNodes),Qf(t)}catch(s){D.error(s)}wa("inserted"),P9()}}function Wf(e){return!e||!Ii(e)?!1:e.classList.contains(Lt)}function is(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ui(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function di(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var rB=Jn(V0,300);async function Hi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;wa("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||aB(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ro&&Et(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Fi(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=z0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:G0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Yf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Yr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(D.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),iB(e,t.text),Kf(e,t,r)):(ro&&Et(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function aB(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ii(t)&&t.classList.contains(Lt):!1}function iB(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Kf(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;wa("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),ro&&Et(t.commonAncestorContainer,"consumeParagraph",e.id),Et(t.commonAncestorContainer,J3,"1",!0),n=="hover"){V0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";rB.call(e,e.ctx,a)}async function V0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await K0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function K0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=cu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;di(t,u,i.commonAncestorContainer,[s]),Qf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Yt(a,t,(i,o,s)=>{let u=s.id,l=oB(e,u.toString());l&&sB.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function oB(e,t){return e.find(n=>n.id===t)}function sB(e,t,n,r,a,i){wa("translated");let o=!1,s=r;Fo(s.commonAncestorContainer,n.id)?.remove(),Qf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(oo,"1");let p=t5(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),as(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=nB.sanitize(p);m.innerHTML=Un?.createHTML(g)||g,c.targetNodes=[m],Bu(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);Et(p,e1,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Wf(g)||di(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=uB(a,c).replaceAll(` -`,"").replaceAll('"',"""),b=c.message.replaceAll(` -`,"").replaceAll('"',"""),f=Pe(a.config.interfaceLanguage,"retryAllButton"),y=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,v=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),w=`
<${d.targetWrapperTag} class="${B}-error notranslate"> + ${r.innerHTML}`.replaceAll(`data-${B}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function W0(e){let t=m9(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function an(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Gp(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var tB={sanitize:e=>e};async function Vf(e,t){if(e.interruptEffectDOM)return;Sa("consumeContainer");let n=an(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Hi.bind(null,e),onFrame:r=>{zf(e,r,!0)},onIgnoreElement:r=>{ft.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),ro&&Et(t,"consumeContainer",e.id)}function zf(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Va(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${dm}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Yr(t.contentWindow?.document.documentElement,e.translateState),di(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),di(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function di(e,t,n=!0){Sa("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=an(t.ctx),o=0;if(l(t,e,n))return;if(Bi(e)&&u(e)){ft.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Bi(d)&&(a&&Bf(d,a),i&&_f(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ft.clearMark(c),t.immediateTranslateCapacity>=0){await Vf(t,c);let d=Date.now()-r;d>100&&(D.debug("batchTaskTime",d,c),r=Date.now(),await it(0))}else ro&&Et(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return zf(t,c.shadowRoot,n),!1;if(d==="iframe")return zf(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Mu(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&Mu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ge()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){t5(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ft.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=an(c.ctx);return!!(H0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Fu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ft.isSkipMarkEle(a)&&!ft.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ui(t.rootNodes),r=="original"&&n=="translation"){let s=is(e,t.rootNodes);if(Wf(s))return;ci(e,s,a,t.targetNodes||[]),Ui(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=is(e,t.targetNodes,s);ci(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=is(e,t.rootNodes);if(Wf(s))return;ci(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=is(e,t.targetNodes);ci(e,s,a,t.rootNodes||[]),Ui(t.targetNodes)}r=="dual"&&n=="original"&&Ui(t.targetNodes),Qf(t)}catch(s){D.error(s)}Sa("inserted"),k9()}}function Wf(e){return!e||!Bi(e)?!1:e.classList.contains(Lt)}function is(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ui(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ci(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var nB=Jn(G0,300);async function Hi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;Sa("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||rB(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ro&&Et(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Ri(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=q0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:W0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Yf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Kr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(D.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),aB(e,t.text),Kf(e,t,r)):(ro&&Et(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function rB(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bi(t)&&t.classList.contains(Lt):!1}function aB(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Kf(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;Sa("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),ro&&Et(t.commonAncestorContainer,"consumeParagraph",e.id),Et(t.commonAncestorContainer,Y3,"1",!0),n=="hover"){G0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";nB.call(e,e.ctx,a)}async function G0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await V0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function V0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=lu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;ci(t,u,i.commonAncestorContainer,[s]),Qf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Yt(a,t,(i,o,s)=>{let u=s.id,l=iB(e,u.toString());l&&oB.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function iB(e,t){return e.find(n=>n.id===t)}function oB(e,t,n,r,a,i){Sa("translated");let o=!1,s=r;Fo(s.commonAncestorContainer,n.id)?.remove(),Qf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(oo,"1");let p=$v(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),as(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=tB.sanitize(p);m.innerHTML=In?.createHTML(g)||g,c.targetNodes=[m],Fu(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);Et(p,X3,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Wf(g)||ci(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=sB(a,c).replaceAll(` +`,"").replaceAll('"',"""),h=c.message.replaceAll(` +`,"").replaceAll('"',"""),f=Pe(a.config.interfaceLanguage,"retryAllButton"),y=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+h,v=Pe(a.config.interfaceLanguage,"error.retry"),T=Pe(a.config.interfaceLanguage,"error.reason"),w=`<${d.targetWrapperTag} class="${B}-error notranslate"> <${d.targetWrapperTag} class="${B}-error-wrapper"> @@ -5898,15 +5898,15 @@ x-tc-action:`+this.action.toLowerCase()+` ${v}    - + - ${S} + ${T} - `;p.innerHTML=Un?.createHTML(w)||w}}}var s5="";async function Yf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=s5.slice(0,e.rule?.detectTextBufferLength)+" "+o),s5=s;let u=await Be({text:s,minLength:15,pageLangs:[dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Bo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Bo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=mc();r.isDetectParagraphLanguage&&(m="auto");let p=dt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!oc.includes(e.translationService)&&(ne()||ct())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return ja(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>ja(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Iu(){Gf=0}var Gf=0;function uB(e,t){Gf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),Gf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(mn,{detail:r}))}return n}function Qf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,lB(t,`[${Z3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function lB(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}function u5(e,t,n,r,a){let i=t,o=s1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${B}-theme-${i}-${d}: ${m}; -`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=Xy(m);s+=`--${B}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; + `;p.innerHTML=In?.createHTML(w)||w}}}var i5="";async function Yf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=i5.slice(0,e.rule?.detectTextBufferLength)+" "+o),i5=s;let u=await je({text:s,minLength:15,pageLangs:[dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Bo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Bo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=dc();r.isDetectParagraphLanguage&&(m="auto");let p=dt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!ic.includes(e.translationService)&&(ne()||lt())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let b=m!=="auto"?m:g;return Na(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Na(b,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Bu(){Gf=0}var Gf=0;function sB(e,t){Gf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),Gf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(Nn,{detail:r}))}return n}function Qf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,uB(t,`[${Q3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function uB(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}function o5(e,t,n,r,a){let i=t,o=i1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${B}-theme-${i}-${d}: ${m}; +`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b}=Jy(m);s+=`--${B}-theme-${i}-${d}-rgb: ${p}, ${g}, ${b}; `}}}),r||(r="inherit"),e&&(s+=` .${B}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5919,11 +5919,11 @@ x-tc-action:`+this.action.toLowerCase()+` [imt-state="dual"] .${B}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?In(e,l,B+"-user-custom-style"):a&&In(e,"",B+"-user-custom-style")}function os(e,t){let r=De().IMMERSIVE_TRANSLATE_INJECTED_CSS;In(e,r,B+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};u5(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?Bn(e,l,B+"-user-custom-style"):a&&Bn(e,"",B+"-user-custom-style")}function os(e,t){let r=De().IMMERSIVE_TRANSLATE_INJECTED_CSS;Bn(e,r,B+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};o5(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&In(e,s,B+"-dynamic-injected-css")}async function l5(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Be({text:Lo(document.body),pageLangs:t})),e}var cB=[];function c5(e){cB.push(e)}var Jf;function d5(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=an(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{_u(e,i,t,r)}),Jf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&rr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||Xf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&_u(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Kr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Io(r,u.parentElement);c&&(ft.clearToParentMark(u,c),_u(e,c,t,r));continue}_u(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ft.isMarked(o,e.id)||_u(e,o,t,r)})}),Jf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function _u(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&Zf(t),Da({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Hi(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function m5(){Jf?.disconnect()}var dB=` +`+t.rule.additionalInjectedCss)),s&&Bn(e,s,B+"-dynamic-injected-css")}async function s5(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await je({text:Lo(document.body),pageLangs:t})),e}var lB=[];function u5(e){lB.push(e)}var Jf;function l5(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=an(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Iu(e,i,t,r)}),Jf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&rr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||Xf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Iu(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Vr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Io(r,u.parentElement);c&&(ft.clearToParentMark(u,c),Iu(e,c,t,r));continue}Iu(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ft.isMarked(o,e.id)||Iu(e,o,t,r)})}),Jf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Iu(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&Zf(t),ka({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Hi(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function c5(){Jf?.disconnect()}var cB=` .toastify { padding: 12px 20px; color: #ffffff; @@ -6006,10 +6006,10 @@ ${s}} max-width: fit-content; } } -`,$f="immersive-translate-toastify-shadow-root",eh=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById($f)){let t=document.getElementById($f);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=$f,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=dB,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Y0(e){e=e||{},new eh({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function p5(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function Zt(e){Gr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:El,payload:e},"*")});let n=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(n)}function th(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&jn(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var gue=1e3*3600*24;async function g5(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await $.storage.local.set({[r1]:t.toISOString()}),await nh(),ne()||await Mb()}catch(t){D.error("run cron task failed",t)}}async function nh(){try{let e=await gr(),t=await Q({url:Ls});Ea(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=$.runtime.getManifest().version;Uo(s,o)?i>r?(await $.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Gr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}async function rh(){let e=["bingGlobalConfig","baiduGlobalConfig",_3,om];for(let t of e)await $.storage.local.remove(t);ne()||await ab(),await Tm()}var Nue=De().REDIRECT_URL;var vle=to([]);function h5(e){let[t,n]=G(null);return te(()=>{wt().then(r=>{n(r),D.debug("current config",r)})},[]),te(()=>{wt().then(r=>{n(r)})},[e]),t}function b5(){let[e,t]=G(null);return te(()=>{Vt().then(r=>{t(r)})},[]),[e,r=>{t(r),Rt(r)}]}var Ou=class extends xi{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),x(bB,{error:this.error,info:this.info})):this.props.children}};function bB({error:e,info:t}){let{t:n}=se(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return x("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),x("div",{style:{marginTop:10},children:[n("error.configError"),x("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var yB=Nn(xB,1e3);async function xB(e,t,n){try{if(t===null)return"noupdate";let r=await Vt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ga(t.proSyncAPIKey,t);return await ah(e,c),await Rt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await x5(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),M9(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=Ga(t.proSyncAPIKey,t);return await ah(e,u),await Rt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||R9(n)&&yB(n.token,e,t)},[e,n])}function vB(){let[e,t]=G(null);return te(()=>{pt.get(mt,null).then(n=>{t(n)})},[t]),e}function x5(e){return(location.href?.indexOf("popup.html")>0?Sa:Q)({responseType:"json",url:tt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function ah(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Sa:Q)({responseType:"json",url:tt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Q0(e){let{onClose:t}=e,[n,r]=G("Original"),[a,i,o,s]=Br(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});ss(a,i);let[u,l]=G(null),[c,d]=G(globalThis.location.href),[m,p]=G("auto"),[g,h]=G(null),[b,f]=G({visible:!1,preview:!1}),y=Ce(!1);te(()=>{!g||y.current||(y.current=!0,je("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=_=>{r(_.detail)};te(()=>(document.addEventListener(Ti,v,!1),gr().then(_=>{l(_);let O=dt();p(O);let z=Ve();r(z),g5(_.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",C)}),[]),te(()=>{gr().then(_=>{l(_)})},[a]),te(()=>{c&&u&&J0().then(_=>{h(_)})},[c,u]),te(()=>{let _=fc();f({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let S=Ae((_,O)=>{T("change_translate_service",!1,{translation_service:`${_}_${O}`})()},[]);if(!u||!g)return null;return x(Nu,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},aiContextInfo:b,request:Q,onClose:A,onToggleEnabled:k,onChangeService:S,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{F(Mi(g.rule)||c)},openAboutPage:I,openSharePage:T("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:va,onSetBuildinConfig:Tb,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:R,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function w(_){p(_);let O=bl(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:O})),er(_)}function C(){d(globalThis.location.href)}function T(_,O,z={}){let V={trigger:"page_popup",...z};return()=>{Zt({method:_,data:V}),O&&t()}}function A(){t()}function k(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function R(_,O){let z=_;O&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${O}`),wc(z,!0),setTimeout(()=>{A()},50)}function F(_){_&&(vo(!1,_),setTimeout(()=>{A()},50))}function P(_=!0,O=""){Ua(_,O),setTimeout(()=>{t()},50)}function I(){Cc(),setTimeout(()=>{t()},50)}function L(){Lb(),setTimeout(()=>{t()},50)}}function E5(){let[e,t]=G("Original");return te(()=>{let n=Ve();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ti,r),()=>{document.removeEventListener(Ti,r)}},[]),{pageStatus:e}}function A5(){let[e,t]=G("Original");return te(()=>{let n=yo();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ks,r),()=>{document.removeEventListener(ks,r)}},[]),{mangaStatus:e}}var v5=6,SB={position:"right",top:335};function k5({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=G(!1),l=Ce(!1);l.current=s;let c=Ce(null),d=Ce(!1),m=Ce(n.floatBallConfig||SB),p=Ce(0),g=Ce(0),h=Ce(0),b=Ce(!1),f=Ce(0),y=Ce(0),v=Ce(0),S=Ce(0),w=Ce(!1),C=Ae(T=>{if(!a)if(clearTimeout(c.current),T)u(T);else{let A=We().any||Yn();c.current=setTimeout(()=>{u(T),b.current=!1},A?3e3:0)}},[u,c,b,a]);return te(()=>{a||u(!1)},[a]),te(()=>{if(i.current&&m.current){let T=ih(m.current.top);m.current.top=T,i.current.style.top=`${T}px`,i.current.style.display="flex"}},[t,i]),te(()=>{if(!o.current||!i.current)return;let T=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=L.clientX,S.current=L.clientY,w.current=!1,(We().any||Yn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{S5({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",F),document.addEventListener("mouseup",k),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},A=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,S.current=L.clientY,w.current))return;let _=L.clientY-g.current+h.current,O=ih(_);i.current.style.top=`${O}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),I(),d.current=!1,clearTimeout(c.current),b.current||C(!1),w.current)return;S5({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let O=ih(L.clientY-30);m.current.top=O;let z=await Fn();va({...z,floatBallConfig:m.current})},R=L=>{L.preventDefault&&L.preventDefault(),T(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},P=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},I=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",T),o.current.addEventListener("touchstart",R),()=>{o.current&&(o.current.removeEventListener("mousedown",T),o.current.removeEventListener("touchstart",R))}},[t,o,i,c,d,n,C,e]),te(()=>{if(We().any)return;let T=k=>{k.target===i.current&&!b.current||!l.current&&C5(k)&&c.current||(b.current=!0,C(!0),clearTimeout(c.current))},A=k=>{if(!(!l.current&&C5(k)&&c.current)){if(d.current){b.current=!1;return}k.target===i.current&&!b.current||C(!1)}};return i.current?.addEventListener("mouseover",T),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",T),i.current?.removeEventListener("mouseout",A)}},[i,d,C,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function S5({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>v5||i>v5}function D5(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ye(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ye(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ye(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ye(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function P5(){let[e,t]=G(!1);return te(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var T5="hasShownFloatingBallGuide",TB="2024-01-06";function L5(e,t){let[n,r]=G(!1),a=Ae(()=>{at(T5,new Date().toISOString()),r(!0)},[r]);te(()=>{if(!e.config.enableShowFloatingBallGuide||dt()==e.targetLanguage)return;let o=Ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Nt(T5,""),u=await Nt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Pl,o),()=>{document.removeEventListener(Pl,o)}},[]);let i=Ae(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function M5(){document.dispatchEvent(new CustomEvent(Pl))}function R5(e,t){let n=Ce(0),[r,a]=G(!0),[i,o]=G(!1),s=Br(),[u,l]=s,{t:c}=se(),d=Ae(()=>{e?.config.floatBallTooltipRule&&(We().any||Yn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);te(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,We().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=Ae(async()=>{if(!e)return;n.current=n.current+1,d();let h=await bn();l(b=>{let f={...h};return We().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=ye(()=>We().any||!r||Yn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=ye(()=>{if(We().any||Yn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:ei(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${Ho(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function ih(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var oh=0;function C5(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(oh=Date.now(),!0):Date.now()-oh<100}function F5(e,t){te(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Ci,n),()=>{globalThis.document.addEventListener(Ci,n)}},[e,t])}function B5(e,t){let n=Ce(e);n.current=e,te(()=>{!n.current||!t||je("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var w5="imt-float-ball-active";function I5(e){te(()=>{let t=!!document.querySelector(`meta[name='${w5}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(w5)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(kl,n),()=>{document.removeEventListener(kl,n)}},[])}function _5(e){document.dispatchEvent(new CustomEvent(kl,{detail:{active:e}}))}function CB({isOpen:e,onClose:t,children:n}){let[r,a]=G(e);return te(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Gt,{children:[e&&x("div",{className:`${B}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${B}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${B}-sheet-content`,children:n})})]})}var Z0=CB;var qi="imt-fb";function N5(e){if(globalThis.innerWidth<=385)return x(Z0,{isOpen:e.visible,onClose:e.onClose,children:x(O5,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${B}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${B}-popup-overlay`,class:`${B}-popup-overlay`,children:x("div",{class:`${B}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(O5,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function O5(e){let{t}=se(),[n,r]=G("UntilNext"),a=Tc()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${qi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${qi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Kt,{type:"modal-close"})})]}),x("div",{class:`${qi}-close-radio-content mt-3`,children:o.map(s=>x(wB,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Vr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${qi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${qi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function wB(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=EB(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${qi}-radio-sel`:`${qi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function EB(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var AB=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=G(!1),h=Ce(null),b=Ce(null),f=()=>{u||!l&&(We().any||Yn())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(We().any||Yn())&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{v()},2e3))},v=()=>{h.current&&(clearTimeout(h.current),d?.()),g(!1)},S=ye(()=>{let T={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(T.maxWidth="200px",o&&(T.width=o+"px"),T.whiteSpace="normal"),c?.width&&(T.width=c.width),c?.maxWidth&&(T.maxWidth=c.maxWidth),c?.whiteSpace&&(T.whiteSpace=c.whiteSpace),T},[i,o,c]),w=ye(()=>{let T={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...T,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...T,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...T,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...T,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),C=T=>Yc()?x("div",{style:S,role:"tooltip",children:T}):x("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:T}});return x("div",{class:a,onMouseEnter:f,onMouseLeave:v,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[x("div",{children:t}),p&&x("div",{style:w,children:C(e)})]})},_n=AB;function j5(e){return be.ASSETS_BASE_URL+e}var zi="imt-fb";function U5(e){let{t}=se(),n=a=>{a?.target?.id===B+"-popup-overlay"&&e.onClose()},r=ye(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:B+"-popup-overlay",class:`${B}-popup-overlay`,children:x("div",{class:`${zi}-guide-container`,style:r,children:[x("img",{class:`${zi}-guide-bg ${e.fixedPosition}`,src:kB}),x("div",{class:`${zi}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${zi}-guide-img`,src:j5("images/float_ball_intro.png")}),x("div",{class:`${zi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),We().any?` -${t("floatBall.longPress")}`:""]}),x("div",{class:`${zi}-primary-btn ${zi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var kB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var H5="imt-manga";function q5({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===B+"-popup-overlay"&&t()},s=ye(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=Ae(()=>{if(t(),!a.isPro){if(a.user)return window.open(f1);window.open(p1)}},[a,t]);return e?x("div",{onClick:o,id:B+"-popup-overlay",class:`${B}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${H5}-guide-bg ${r}`,src:`${I3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${H5}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Kt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}function X0(e,t){return ne(t)?!1:DB(e.config,e.isPro)}function DB(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function $0(e){let t=Ca();return!(e?.platforms&&!e.platforms.includes(t))}function sh(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function z5(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var Pa="imt-fb";function uh(e){let{t}=se(),n=Br(),[r,a,i,o]=n;ss(r,a);let s=h5(r),u=e.ctx,{isFullScreen:l}=P5(),[c,d]=G(!1),m=Ce(c);m.current=c;let[p,g]=G(!0),{pageStatus:h}=E5(),b=du(u,r),f=Ae(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Zt,d]),y=Ae(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:w,ballRef:C,floatBallConfigRef:T,setActive:A}=k5({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),k=b?.fixedPosition||"right",R=k==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:P}=L5(e.ctx,b),{closeTransform:I,logoContainerTransform:L,settingTransform:_,mangaTransform:O}=D5(b,w||F);B5(u,w);let{tooltipDelay:z,disableTooltip:V,tooltipText:ie,handleShowTooltip:Ie}=R5(u,h);F5(d,m),I5(A);let N=globalThis.innerWidth<=385;return v?x(Gt,{children:x("div",{class:`${Pa}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||F||c?"all":"none"},ref:S,children:[x(PB,{ctx:u,setVisible:g,closeTransform:I,setActive:A,getModalStyle:()=>W5(T.current.top,300,k)}),x(_n,{enableMobile:!0,text:ie,position:R,delay:z,onShow:Ie,disable:V,children:x("div",{class:`${Pa}-btn ${k} btn-animate `,ref:C,style:{transform:L,opacity:w||F?1:.5},children:x("div",{children:[x(Kt,{type:"logo"}),x(Kt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(RB,{ctx:u,mangaTransform:O,floatBallConfigRef:T,fixedPosition:k,hidden:F}),x("div",{style:{marginTop:"12px",transform:_},class:`${Pa}-more-buttons btn-animate`,children:[x(_n,{text:t("translateFileTooltip"),multiple:!0,position:R,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Pa}-more-button`,onClick:()=>{wc(S1,!0)},children:x(Kt,{type:"file"})})}),x(_n,{text:t("floatBall.setting"),position:R,containerClass:"btn-animate",children:x("div",{class:`${Pa}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Kt,{type:"setting"})})}),x(BB,{ctx:u,tooltipPosition:R,rule:b,active:w})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:_},class:`${Pa}-more-buttons btn-animate`,children:x(_n,{text:t("reportTip"),position:R,containerClass:"btn-animate",children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(Si,{detail:{type:"webReport"}}))}})})}),x(lh,{onClose:()=>{A(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>W5(T.current.top,500,k)}),x(U5,{visible:F,top:T.current.top,fixedPosition:k,onClose:()=>{P(),A(!1)}})]})}):null}function PB(e){let{t}=se(),[n,r]=G(!1),a=Br(),[i,o,s,u]=a,l=du(e.ctx,i),c=Ae(m=>{e.ctx&&o(p=>$c({...p},m))},[e.ctx,o]),d=Ae(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Gt,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Kt,{type:"close"})}),x(N5,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function lh(e){let t=n=>{n?.target?.id===B+"-popup-overlay"&&e.onClose()};return e.isSheet?x(Z0,{isOpen:e.visible,onClose:e.onClose,children:x(Q0,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:B+"-popup-overlay",class:`${B}-popup-overlay`,children:x("div",{class:`${B}-popup-wrapper`,style:e.getModalStyle(),children:x(Q0,{onClose:e.onClose})})}):null}function LB(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var W5=(e,t,n)=>{let a=LB().height,i={position:"fixed"},o=0;return d3()&&(e=MB.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},MB={position:"right",right:0,top:335};function RB({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=G(!1),{mangaStatus:u}=A5(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();te(()=>{c||Fn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Rt(p))})},[c,s]);let m=Ae(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await pt.get(mt,null);if(ht(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!$0(l)||r||!l?.enable?null:x(Gt,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Kt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Kt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Kt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(_n,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(Si,{detail:{type:"mangaReport"}}))}})})]}),x(q5,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var FB="float_ball_upgrade_show_count";function BB(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Za(n.config),s=Ce(!1),[u,l]=G(null),c=ye(()=>zo(n.config),[n]),d=p=>zo(p)?.upgradeShowCountCacheKey||FB;te(()=>{Ai(d(n.config),0).then(p=>{l(p)})},[n]);let m=ye(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=zo(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return te(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,ki(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(_n,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Pa}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||bm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${Pa}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Kt,{type:"upgrade"})})})}):x(_n,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Pa}-more-button`,onClick:()=>{globalThis.open(bm,"_blank")},children:x(Kt,{type:"upgrade"})})})}async function G5(){try{let e=await wt(),t={url:globalThis.location.href,config:e},n=await ir(t),r=document.createElement("div");r.id=B+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});IB(a,e,n),document.documentElement.appendChild(r)}catch{}}function IB(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=De(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);_B(e,[i]),e.appendChild(r),zr(x($a,{lang:t.interfaceLanguage,children:x(OB,{ctx:n})}),r)}function _B(e,t){for(let n of t){if(ne()&&!kn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function OB(e){let[t,n]=G(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");te(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Ci,u),()=>{globalThis.document.addEventListener(Ci,u)}},[r]);let o=globalThis.innerWidth,s=We().any&&o<=450;return x(lh,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function ed(e){document.dispatchEvent(new CustomEvent(Ci,{detail:e||{}}))}function NB(e,t){for(let n of t){if(ne()&&!kn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function ch(){let e=await gr(),t=await bn(),n={url:globalThis.location.href,config:e},r=await ir(n),a=await Qp(r,t),i=Ze(r.url,a?.blockUrls),o=await Vt();if(!a?.enable||i)return G5();let s=document.createElement("div");s.id=B+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return jB(u,e,o,r),document.documentElement.appendChild(s),s}function V5(){let e=document.getElementById(B+"-popup");e&&e.remove(),ch()}function jB(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=De(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);NB(e,[o]),e.appendChild(a),zr(x($a,{lang:t.interfaceLanguage,children:x(uh,{localConfig:n,ctx:r})}),a)}var K5=!1;async function Y5(){K5||(K5=!0,ch().catch(e=>{D.error("init popup error",e)}))}var ju=null;function Uu(e,t,n){let r=globalThis.location.href,a=document.createElement("div");ju={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function dh(){let e=globalThis.location.href;if(!(!ju||ju.url!==e||!ju.subtitleItems.length))return ju}async function Q5(){let e=dh();if(!e)return;let t=await Vt();t.downloadSubtitle=e,await Rt(t),Vr(T1)}async function J5(){let e=await Vt();if(e.downloadSubtitle)return e.downloadSubtitle}async function Z5(e,t){let n,r;if(t){let a=W0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Ga(!1,r)}return{siteUrl:location.href,pluginVersion:yn(),isMobile:We().any,platform:Ca(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function X5(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${tt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Qa(l,"web"),l.json()))}var mh={};function pi(e){let t=td(e)||{};mh[e.sourceUrl+"_"+e.to]={...t,...e}}function td(e){return mh[e.sourceUrl+"_"+e.to]}async function $5(e,t){let n=location.href,r=Object.values(mh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:We().any,platform:Ca(),images:[],version:yn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=W0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Ga(!1,o)}return a}async function eS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${tt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Qa(l,"web"),l.json()))}var Hu={width:94,height:80};function tS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?tS(e.parentElement,t+1):e}function us(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=tS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Hu.width+"px",c.style.height=Hu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Hu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Hu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Hu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`,$f="immersive-translate-toastify-shadow-root",eh=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById($f)){let t=document.getElementById($f);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=$f,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=cB,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function K0(e){e=e||{},new eh({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function d5(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function Zt(e){Wr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:wl,payload:e},"*")});let n=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(n)}function th(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Un(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var fue=1e3*3600*24;async function m5(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await $.storage.local.set({[t1]:t.toISOString()}),await nh(),ne()||await Pb()}catch(t){D.error("run cron task failed",t)}}async function nh(){try{let e=await gr(),t=await Q({url:Ps});wa(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=$.runtime.getManifest().version;Uo(s,o)?i>r?(await $.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Wr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}async function rh(){let e=["bingGlobalConfig","baiduGlobalConfig",B3,im];for(let t of e)await $.storage.local.remove(t);ne()||await nb(),await Sm()}var jue=De().REDIRECT_URL;var Tle=to([]);function g5(e){let[t,n]=G(null);return te(()=>{wt().then(r=>{n(r),D.debug("current config",r)})},[]),te(()=>{wt().then(r=>{n(r)})},[e]),t}function f5(){let[e,t]=G(null);return te(()=>{Vt().then(r=>{t(r)})},[]),[e,r=>{t(r),Rt(r)}]}var _u=class extends yi{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),x(hB,{error:this.error,info:this.info})):this.props.children}};function hB({error:e,info:t}){let{t:n}=se(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return x("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),x("div",{style:{marginTop:10},children:[n("error.configError"),x("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var bB=jn(yB,1e3);async function yB(e,t,n){try{if(t===null)return"noupdate";let r=await Vt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Wa(t.proSyncAPIKey,t);return await ah(e,c),await Rt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await b5(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),P9(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=Wa(t.proSyncAPIKey,t);return await ah(e,u),await Rt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||L9(n)&&bB(n.token,e,t)},[e,n])}function xB(){let[e,t]=G(null);return te(()=>{pt.get(mt,null).then(n=>{t(n)})},[t]),e}function b5(e){return(location.href?.indexOf("popup.html")>0?xa:Q)({responseType:"json",url:tt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function ah(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?xa:Q)({responseType:"json",url:tt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Y0(e){let{onClose:t}=e,[n,r]=G("Original"),[a,i,o,s]=Fr(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});ss(a,i);let[u,l]=G(null),[c,d]=G(globalThis.location.href),[m,p]=G("auto"),[g,b]=G(null),[h,f]=G({visible:!1,preview:!1}),y=Ce(!1);te(()=>{!g||y.current||(y.current=!0,_e("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=_=>{r(_.detail)};te(()=>(document.addEventListener(Ti,v,!1),gr().then(_=>{l(_);let O=dt();p(O);let z=Ve();r(z),m5(_.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",C)}),[]),te(()=>{gr().then(_=>{l(_)})},[a]),te(()=>{c&&u&&Q0().then(_=>{b(_)})},[c,u]),te(()=>{let _=gc();f({visible:!!_?.used,preview:_?.sourceProgram=="html"})},[]);let T=ke((_,O)=>{S("change_translate_service",!1,{translation_service:`${_}_${O}`})()},[]);if(!u||!g)return null;return x(Ou,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{S("switchTranslationMode",!0,{mode:_})()},aiContextInfo:h,request:Q,onClose:A,onToggleEnabled:k,onChangeService:T,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),onTranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onWebReport:S("webReport",!0),onTranslatePdf:()=>{F(Li(g.rule)||c)},openAboutPage:I,openSharePage:S("shareToDraft",!0),onSetPageLanguage:w,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:ya,onSetBuildinConfig:vb,onAutoEnableSubtitleChanged:S("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:S("toggleEnableEditTranslation",!0),updateContextState:_=>S("updateContextState",!0,_)(),onOpenUrl:R,onUpdateFloatBallEnable:S("updateFloatBallEnable",!0)});function w(_){p(_);let O=hl(c,_,u.sourceLanguageUrlPattern);i(z=>({...z,sourceLanguageUrlPattern:O})),er(_)}function C(){d(globalThis.location.href)}function S(_,O,z={}){let V={trigger:"page_popup",...z};return()=>{Zt({method:_,data:V}),O&&t()}}function A(){t()}function k(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{A()},50)}function R(_,O){let z=_;O&&(z=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${O}`),Cc(z,!0),setTimeout(()=>{A()},50)}function F(_){_&&(vo(!1,_),setTimeout(()=>{A()},50))}function P(_=!0,O=""){ja(_,O),setTimeout(()=>{t()},50)}function I(){Sc(),setTimeout(()=>{t()},50)}function L(){Db(),setTimeout(()=>{t()},50)}}function C5(){let[e,t]=G("Original");return te(()=>{let n=Ve();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ti,r),()=>{document.removeEventListener(Ti,r)}},[]),{pageStatus:e}}function w5(){let[e,t]=G("Original");return te(()=>{let n=yo();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ks,r),()=>{document.removeEventListener(ks,r)}},[]),{mangaStatus:e}}var y5=6,vB={position:"right",top:335};function E5({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=G(!1),l=Ce(!1);l.current=s;let c=Ce(null),d=Ce(!1),m=Ce(n.floatBallConfig||vB),p=Ce(0),g=Ce(0),b=Ce(0),h=Ce(!1),f=Ce(0),y=Ce(0),v=Ce(0),T=Ce(0),w=Ce(!1),C=ke(S=>{if(!a)if(clearTimeout(c.current),S)u(S);else{let A=Ge().any||Yn();c.current=setTimeout(()=>{u(S),h.current=!1},A?3e3:0)}},[u,c,h,a]);return te(()=>{a||u(!1)},[a]),te(()=>{if(i.current&&m.current){let S=ih(m.current.top);m.current.top=S,i.current.style.top=`${S}px`,i.current.style.display="flex"}},[t,i]),te(()=>{if(!o.current||!i.current)return;let S=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),b.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=L.clientX,T.current=L.clientY,w.current=!1,(Ge().any||Yn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{x5({startX:p.current,startY:g.current,endX:v.current,endY:T.current})||(w.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",F),document.addEventListener("mouseup",k),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},A=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,T.current=L.clientY,w.current))return;let _=L.clientY-g.current+b.current,O=ih(_);i.current.style.top=`${O}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),I(),d.current=!1,clearTimeout(c.current),h.current||C(!1),w.current)return;x5({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let O=ih(L.clientY-30);m.current.top=O;let z=await Rn();ya({...z,floatBallConfig:m.current})},R=L=>{L.preventDefault&&L.preventDefault(),S(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},P=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},I=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",S),o.current.addEventListener("touchstart",R),()=>{o.current&&(o.current.removeEventListener("mousedown",S),o.current.removeEventListener("touchstart",R))}},[t,o,i,c,d,n,C,e]),te(()=>{if(Ge().any)return;let S=k=>{k.target===i.current&&!h.current||!l.current&&T5(k)&&c.current||(h.current=!0,C(!0),clearTimeout(c.current))},A=k=>{if(!(!l.current&&T5(k)&&c.current)){if(d.current){h.current=!1;return}k.target===i.current&&!h.current||C(!1)}};return i.current?.addEventListener("mouseover",S),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",S),i.current?.removeEventListener("mouseout",A)}},[i,d,C,t,h,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function x5({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>y5||i>y5}function A5(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ye(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ye(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ye(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ye(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function k5(){let[e,t]=G(!1);return te(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var v5="hasShownFloatingBallGuide",TB="2024-01-06";function D5(e,t){let[n,r]=G(!1),a=ke(()=>{ct(v5,new Date().toISOString()),r(!0)},[r]);te(()=>{if(!e.config.enableShowFloatingBallGuide||dt()==e.targetLanguage)return;let o=Ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Nt(v5,""),u=await Nt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Dl,o),()=>{document.removeEventListener(Dl,o)}},[]);let i=ke(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function P5(){document.dispatchEvent(new CustomEvent(Dl))}function L5(e,t){let n=Ce(0),[r,a]=G(!0),[i,o]=G(!1),s=Fr(),[u,l]=s,{t:c}=se(),d=ke(()=>{e?.config.floatBallTooltipRule&&(Ge().any||Yn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);te(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ge().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=ke(async()=>{if(!e)return;n.current=n.current+1,d();let b=await hn();l(h=>{let f={...b};return Ge().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=ye(()=>Ge().any||!r||Yn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=ye(()=>{if(Ge().any||Yn())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:$a(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${Ho(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function ih(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var oh=0;function T5(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(oh=Date.now(),!0):Date.now()-oh<100}function M5(e,t){te(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Si,n),()=>{globalThis.document.addEventListener(Si,n)}},[e,t])}function R5(e,t){let n=Ce(e);n.current=e,te(()=>{!n.current||!t||_e("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var S5="imt-float-ball-active";function F5(e){te(()=>{let t=!!document.querySelector(`meta[name='${S5}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(S5)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(Al,n),()=>{document.removeEventListener(Al,n)}},[])}function B5(e){document.dispatchEvent(new CustomEvent(Al,{detail:{active:e}}))}function SB({isOpen:e,onClose:t,children:n}){let[r,a]=G(e);return te(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Gt,{children:[e&&x("div",{className:`${B}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${B}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${B}-sheet-content`,children:n})})]})}var J0=SB;var qi="imt-fb";function _5(e){if(globalThis.innerWidth<=385)return x(J0,{isOpen:e.visible,onClose:e.onClose,children:x(I5,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${B}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${B}-popup-overlay`,class:`${B}-popup-overlay`,children:x("div",{class:`${B}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(I5,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function I5(e){let{t}=se(),[n,r]=G("UntilNext"),a=Tc()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${qi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${qi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Kt,{type:"modal-close"})})]}),x("div",{class:`${qi}-close-radio-content mt-3`,children:o.map(s=>x(CB,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Gr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${qi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${qi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function CB(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=wB(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${qi}-radio-sel`:`${qi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function wB(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var EB=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=G(!1),b=Ce(null),h=Ce(null),f=()=>{u||!l&&(Ge().any||Yn())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(Ge().any||Yn())&&(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{v()},2e3))},v=()=>{b.current&&(clearTimeout(b.current),d?.()),g(!1)},T=ye(()=>{let S={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(S.maxWidth="200px",o&&(S.width=o+"px"),S.whiteSpace="normal"),c?.width&&(S.width=c.width),c?.maxWidth&&(S.maxWidth=c.maxWidth),c?.whiteSpace&&(S.whiteSpace=c.whiteSpace),S},[i,o,c]),w=ye(()=>{let S={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...S,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...S,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...S,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...S,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),C=S=>Kc()?x("div",{style:T,role:"tooltip",children:S}):x("div",{style:T,role:"tooltip",dangerouslySetInnerHTML:{__html:S}});return x("div",{class:a,onMouseEnter:f,onMouseLeave:v,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[x("div",{children:t}),p&&x("div",{style:w,children:C(e)})]})},_n=EB;function O5(e){return be.ASSETS_BASE_URL+e}var zi="imt-fb";function N5(e){let{t}=se(),n=a=>{a?.target?.id===B+"-popup-overlay"&&e.onClose()},r=ye(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:B+"-popup-overlay",class:`${B}-popup-overlay`,children:x("div",{class:`${zi}-guide-container`,style:r,children:[x("img",{class:`${zi}-guide-bg ${e.fixedPosition}`,src:AB}),x("div",{class:`${zi}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${zi}-guide-img`,src:O5("images/float_ball_intro.png")}),x("div",{class:`${zi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ge().any?` +${t("floatBall.longPress")}`:""]}),x("div",{class:`${zi}-primary-btn ${zi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var AB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var j5="imt-manga";function U5({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===B+"-popup-overlay"&&t()},s=ye(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ke(()=>{if(t(),!a.isPro){if(a.user)return window.open(p1);window.open(d1)}},[a,t]);return e?x("div",{onClick:o,id:B+"-popup-overlay",class:`${B}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${j5}-guide-bg ${r}`,src:`${F3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${j5}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Kt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}function Z0(e,t){return ne(t)?!1:kB(e.config,e.isPro)}function kB(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function X0(e){let t=Ta();return!(e?.platforms&&!e.platforms.includes(t))}function sh(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function H5(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var Da="imt-fb";function uh(e){let{t}=se(),n=Fr(),[r,a,i,o]=n;ss(r,a);let s=g5(r),u=e.ctx,{isFullScreen:l}=k5(),[c,d]=G(!1),m=Ce(c);m.current=c;let[p,g]=G(!0),{pageStatus:b}=C5(),h=cu(u,r),f=ke(()=>{if(h?.clickType==="popup")return d(!0);h?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[h,Zt,d]),y=ke(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:T,active:w,ballRef:C,floatBallConfigRef:S,setActive:A}=E5({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),k=h?.fixedPosition||"right",R=k==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:P}=D5(e.ctx,h),{closeTransform:I,logoContainerTransform:L,settingTransform:_,mangaTransform:O}=A5(h,w||F);R5(u,w);let{tooltipDelay:z,disableTooltip:V,tooltipText:ie,handleShowTooltip:Be}=L5(u,b);M5(d,m),F5(A);let N=globalThis.innerWidth<=385;return v?x(Gt,{children:x("div",{class:`${Da}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:w||F||c?"all":"none"},ref:T,children:[x(DB,{ctx:u,setVisible:g,closeTransform:I,setActive:A,getModalStyle:()=>q5(S.current.top,300,k)}),x(_n,{enableMobile:!0,text:ie,position:R,delay:z,onShow:Be,disable:V,children:x("div",{class:`${Da}-btn ${k} btn-animate `,ref:C,style:{transform:L,opacity:w||F?1:.5},children:x("div",{children:[x(Kt,{type:"logo"}),x(Kt,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),x(MB,{ctx:u,mangaTransform:O,floatBallConfigRef:S,fixedPosition:k,hidden:F}),x("div",{style:{marginTop:"12px",transform:_},class:`${Da}-more-buttons btn-animate`,children:[x(_n,{text:t("translateFileTooltip"),multiple:!0,position:R,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{Cc(x1,!0)},children:x(Kt,{type:"file"})})}),x(_n,{text:t("floatBall.setting"),position:R,containerClass:"btn-animate",children:x("div",{class:`${Da}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Kt,{type:"setting"})})}),x(FB,{ctx:u,tooltipPosition:R,rule:h,active:w})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:_},class:`${Da}-more-buttons btn-animate`,children:x(_n,{text:t("reportTip"),position:R,containerClass:"btn-animate",children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}}))}})})}),x(lh,{onClose:()=>{A(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>q5(S.current.top,500,k)}),x(N5,{visible:F,top:S.current.top,fixedPosition:k,onClose:()=>{P(),A(!1)}})]})}):null}function DB(e){let{t}=se(),[n,r]=G(!1),a=Fr(),[i,o,s,u]=a,l=cu(e.ctx,i),c=ke(m=>{e.ctx&&o(p=>Xc({...p},m))},[e.ctx,o]),d=ke(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Gt,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Kt,{type:"close"})}),x(_5,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function lh(e){let t=n=>{n?.target?.id===B+"-popup-overlay"&&e.onClose()};return e.isSheet?x(J0,{isOpen:e.visible,onClose:e.onClose,children:x(Y0,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:B+"-popup-overlay",class:`${B}-popup-overlay`,children:x("div",{class:`${B}-popup-wrapper`,style:e.getModalStyle(),children:x(Y0,{onClose:e.onClose})})}):null}function PB(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var q5=(e,t,n)=>{let a=PB().height,i={position:"fixed"},o=0;return l3()&&(e=LB.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},LB={position:"right",right:0,top:335};function MB({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=G(!1),{mangaStatus:u}=w5(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();te(()=>{c||Rn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Rt(p))})},[c,s]);let m=ke(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await pt.get(mt,null);if(ht(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!X0(l)||r||!l?.enable?null:x(Gt,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Kt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Kt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Kt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(_n,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"mangaReport"}}))}})})]}),x(U5,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var RB="float_ball_upgrade_show_count";function FB(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Ja(n.config),s=Ce(!1),[u,l]=G(null),c=ye(()=>zo(n.config),[n]),d=p=>zo(p)?.upgradeShowCountCacheKey||RB;te(()=>{Ei(d(n.config),0).then(p=>{l(p)})},[n]);let m=ye(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=zo(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return te(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ai(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(_n,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||bm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${Da}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Kt,{type:"upgrade"})})})}):x(_n,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(bm,"_blank")},children:x(Kt,{type:"upgrade"})})})}async function z5(){try{let e=await wt(),t={url:globalThis.location.href,config:e},n=await ir(t),r=document.createElement("div");r.id=B+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});BB(a,e,n),document.documentElement.appendChild(r)}catch{}}function BB(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=De(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);IB(e,[i]),e.appendChild(r),qr(x(Xa,{lang:t.interfaceLanguage,children:x(_B,{ctx:n})}),r)}function IB(e,t){for(let n of t){if(ne()&&!An()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function _B(e){let[t,n]=G(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");te(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Si,u),()=>{globalThis.document.addEventListener(Si,u)}},[r]);let o=globalThis.innerWidth,s=Ge().any&&o<=450;return x(lh,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function $0(e){document.dispatchEvent(new CustomEvent(Si,{detail:e||{}}))}function OB(e,t){for(let n of t){if(ne()&&!An()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function ch(){let e=await gr(),t=await hn(),n={url:globalThis.location.href,config:e},r=await ir(n),a=await Qp(r,t),i=Ze(r.url,a?.blockUrls),o=await Vt();if(!a?.enable||i)return z5();let s=document.createElement("div");s.id=B+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return NB(u,e,o,r),document.documentElement.appendChild(s),s}function W5(){let e=document.getElementById(B+"-popup");e&&e.remove(),ch()}function NB(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=De(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);OB(e,[o]),e.appendChild(a),qr(x(Xa,{lang:t.interfaceLanguage,children:x(uh,{localConfig:n,ctx:r})}),a)}var G5=!1;async function V5(){G5||(G5=!0,ch().catch(e=>{D.error("init popup error",e)}))}var Nu=null;function ju(e,t,n){let r=globalThis.location.href,a=document.createElement("div");Nu={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function dh(){let e=globalThis.location.href;if(!(!Nu||Nu.url!==e||!Nu.subtitleItems.length))return Nu}async function K5(){let e=dh();if(!e)return;let t=await Vt();t.downloadSubtitle=e,await Rt(t),Gr(v1)}async function Y5(){let e=await Vt();if(e.downloadSubtitle)return e.downloadSubtitle}async function Q5(e,t){let n,r;if(t){let a=z0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Wa(!1,r)}return{siteUrl:location.href,pluginVersion:bn(),isMobile:Ge().any,platform:Ta(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function J5(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${tt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ya(l,"web"),l.json()))}var mh={};function mi(e){let t=ed(e)||{};mh[e.sourceUrl+"_"+e.to]={...t,...e}}function ed(e){return mh[e.sourceUrl+"_"+e.to]}async function Z5(e,t){let n=location.href,r=Object.values(mh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ge().any,platform:Ta(),images:[],version:bn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=z0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Wa(!1,o)}return a}async function X5(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${tt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ya(l,"web"),l.json()))}var Uu={width:94,height:80};function $5(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?$5(e.parentElement,t+1):e}function us(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=$5(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Uu.width+"px",c.style.height=Uu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Uu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Uu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Uu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let d=a("translateFail");r==="gif_not_supported"&&(d=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6023,7 +6023,7 @@ ${t("floatBall.longPress")}`:""]}),x("div",{class:`${zi}-primary-btn ${zi}-guide - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function ph(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var qu=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function nS(e,t,n){if(e=="manga")return $5(t,n);if(e=="web")return Z5(t,n)}function rS(e,t,n,r,a,i){if(e=="manga")return eS(t,n,a,i,r);if(e=="web")return X5(t,n,a,i,r)}function nd(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(k){return u.test(k.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function ph(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Hu=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function eT(e,t,n){if(e=="manga")return Z5(t,n);if(e=="web")return Q5(t,n)}function tT(e,t,n,r,a,i){if(e=="manga")return X5(t,n,a,i,r);if(e=="web")return J5(t,n,a,i,r)}function td(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(k){return u.test(k.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; @@ -6031,17 +6031,17 @@ ${t("floatBall.longPress")}`:""]}),x("div",{class:`${zi}-primary-btn ${zi}-guide flex: 1;`),p.addEventListener("input",function(){C.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),m.append(p),a.append(m);let g=document.createElement("input");g.type="email",g.id="emailReport",g.size=30,g.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";pt.get(mt,null).then(k=>{k&&(h=k.email,g.value=k.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let k=l(this.value);C.disabled=c(),k?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(v),w.append(S),a.append(w);let C=document.createElement("button");C.className=B+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let k=await nS(e,t,v.checked);C.uploading=!0;try{aS(C,!0),await rS(e,t,p.value,g.value!==h?g.value:"",v.checked,k),UB(s,r,a,i,o)}catch{HB(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,aS(C,!1)}},i.appendChild(C);let T=document.createElement("div");T.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(T);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function aS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(B+"-loading-spinner"),e.appendChild(n))}function UB(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let b="";pt.get(mt,null).then(k=>{k&&(b=k.email,g.value=k.email)});let h=document.createElement("label");h.htmlFor=g.id,h.innerText=s("reportInfo.email"),h.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(h),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let k=l(this.value);C.disabled=c(),k?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let T=document.createElement("label");T.htmlFor=v.id,T.innerText=s("reportInfo.attachLog"),T.setAttribute("style","margin-left:8px");let w=document.createElement("div");w.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),w.append(v),w.append(T),a.append(w);let C=document.createElement("button");C.className=B+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let k=await eT(e,t,v.checked);C.uploading=!0;try{nT(C,!0),await tT(e,t,p.value,g.value!==b?g.value:"",v.checked,k),jB(s,r,a,i,o)}catch{UB(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,nT(C,!1)}},i.appendChild(C);let S=document.createElement("div");S.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(S);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function nT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(B+"-loading-spinner"),e.appendChild(n))}function jB(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=B+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function HB(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=B+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function UB(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=B+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",nd(s,e,t,r,a,i,o)},i.append(d)}var rd=[],iS=[];async function fh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(hh()||rd.includes(t))return"";if(rd.length>=s)return new Promise((l,c)=>{iS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});rd.push(t);try{let u=await GB(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await oS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{rd.shift(),(async()=>{let u=iS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await fh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function qB(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${tt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${sS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await Q({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function zB(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function WB(e,t,n){let r=await zB(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),ne()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):Q({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await zb(a)})}async function GB(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=VB(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await pc(u);pi({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await qB(e,r,l,n.type);if(c.objectKey&&pi({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await WB(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return ne()?d=await fetch(gh()+"/trigger",{method:"POST",body:Ac(u),headers:{token:e.user?.token||""}}).then(async m=>(await Qa(m,"manga"),m.json())):d=await Q({url:gh()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),pi({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function oS(e,t,n,r,a){let i=hh();if(i)return;mr("Translating",i);let o=await Q({url:gh()+`/${t}/task-state?comicHash=${n}&domain=${sS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await w9(t,r.queryIntervalTime||100),oS(e,t,n,r,a))}function gh(){return tt+"comics"}function VB(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=k0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function sS(e){return e.replaceAll(".","_")}var kt,bh,id,Wu,Ut=!1;function hh(){return Ut}var uS=!1;function dS(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ut=!1,!uS&&kt.injectedCss&&(In(document,`${kt.injectedCss}`,B+"-image-injected-css"),uS=!0);let t=!1,n=Nn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=gS(kt);for(let i of a){if(Ut)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await ot(20),await r(i,t))}},100);if(je("translate_manga",[{name:"translate_manga"}],e),n(),bh=new MutationObserver(a=>{n()}),bh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;Wu=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Wi(e,o.target),Wu?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}id=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(Wu?.unobserve(a),Wu?.observe(a)):await Wi(e,a)))}}async function Wi(e,t,n,r){let a=e.rule.imageRule.type||"common",i=yo();if(n&&(Ut=!1),Ut||tI(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=YB(e,t);u||(s=us(e,t,"translating")),n&&je("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await QB(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await KB(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||us(e,t,"success")):(u||us(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&mr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&mr("Error",Ut),eI(e,l),u))return;if(l instanceof qu)return us(e,t,"error",l.type);us(e,t,"error")}finally{n&&mr(i,Ut),s?.remove()}}function mS(){if(!kt)return;Ut=!0,bh?.disconnect(),id?.disconnect(),Wu?.disconnect();let e=gS(kt);for(let t of e)Gi(t)}function Gi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Gi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function KB(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await JB(l,c,t.cloneNode(!0))}else o=await fS(t);if(Ut)return;if(!o||o.size<6*1e4){id?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await fp(o);return await yh(e,t,s)?!0:s?pS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function pS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await XB(n)||n,u=r||a;try{if(Ut)return;mr("Translating",Ut),ph(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};pi(l);let d=await fh(e,u,s,a,i,m=>{ph(e,o,m)});return d?(l.targetUrl=d,pi(l),await hS(kt,t,d),mr("Translated",Ut),!0):!1}catch(l){if(pi({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function yh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=td(r);return a&&a?.targetUrl?(await hS(kt,t,a.targetUrl||""),mr("Translated",Ut),!0):!1}function YB(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=td(r);return a&&a?.targetUrl}return!1}async function QB(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!$B(a,i)){id?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await yh(e,t,o))return!0;let s=null;if(mr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await Qa(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await ZB(i);else{let d=await Q({url:i,responseType:"base64"});s=await kc(d)}if(Ut)return;if(await z5(s))throw new qu("GIFs not supported","gif_not_supported");let l=await fp(s);if(!o&&(o=l,await yh(e,t,o)))return!0;if(!o)return!1;return pS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function gS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function fS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function JB(e,t,n){return new Promise((r,a)=>{Q({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await fS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function hS(e,t,n){try{return await lS(e,t,n)}catch{let a=await nI(n);return lS(e,t,a)}}async function lS(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function ZB(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function XB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function $B(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!e0(e.inValidSrcRegex,t):!0}var ad=0,zu=0;function eI(e,t){if(ad!=0){zu++;return}if(t.message.indexOf("quota exceeded")>0){cS(e,t);return}zu++,ad=setTimeout(()=>{if(zu<(kt.errorTimes||3)){ad=0,zu=0;return}cS(e,t),zu=0,ad=0},kt.errorInterval||3e3)}function cS(e,t){let r=new U("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(mn,{detail:r}))}function xh(e){return e.classList.contains("imt-img")||e.hasTranslate}function tI(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function nI(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var rI="showImagePricingModal";function od(e){document.dispatchEvent(new CustomEvent(rI,{detail:JSON.stringify({trigger:e})}))}var ia=null;async function bS(e,{srcUrl:t}){if(!X0(e))return;if(!await _s(e)){od("image_right_menu");return}if(!ia){D.error("rightMenu image ele not found",t,ia);return}if(ia.translationStatus!=="translating"){if(ia.hasTranslate){Gi(ia);return}if(t!==ia.src)try{let r=new URL(t),a=new URL(ia.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,ia.src,r);return}Wi(e,ia,!0,"image_right_menu")}}function yS(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ia=e.target)})}var xS=0;function Vu(e){let t=Date.now();if(t-xS<2e3||(xS=t,aI()))return;let n=`${B}-modal-root`,r=`${B}-modal`,a=document.getElementById(n),i=`${B}-modal-title`,o=`${B}-modal-body`,s=`${B}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,Gu)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${B}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=De();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=B+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=B+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,Gu)}setTimeout(()=>{iI()},100)}function aI(){let e=document.querySelector(`#${B}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${B}-modal`)?.style.display=="block":!1}function iI(){let e=document.querySelector(`#${B}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-modal`);t&&(t.style.display="block")}}function Gu(e,t=!1){let n=document.querySelector(`#${B}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${B}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function vS(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await bn();Ht({...l,sameLangCheck:!1}),o(i,!0)})}var SS=0;async function TS(e){let t=Date.now();if(t-SS<2e3||(SS=t,oI()))return;let n=`${B}-toast-root`,r=`${B}-toast`,a=document.getElementById(n),i=`${B}-toast-msg`,o=`${B}-toast-content`,s=`${B}-toast-hidden`,u,l,c=()=>{l&&vh(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,vh);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${B}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=De();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=B+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,vh)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{sI()},100),d=setTimeout(c,2500)}function oI(){let e=document.querySelector(`#${B}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${B}-toast`)?.style.display=="flex":!1}function sI(){let e=document.querySelector(`#${B}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-toast`);t&&(t.style.display="flex")}}function vh(e,t=!1){let n=document.querySelector(`#${B}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${B}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function Sh(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=rt.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${B}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",CS({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(m1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Nl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(h1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(be.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(be.OPTIONS_URL)},Th(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=rt.sanitize(m),p.onclick=()=>{wS(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=rt.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Ht(g),CS({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=B+"-btn",p.innerHTML+=rt.sanitize(m),s.appendChild(p)}function CS(e){Gr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(t)}var ES=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},kS=[()=>{jn.unbind()}],AS=[...kS],uI=Jn(async()=>{await Ua()},50),lI=Jn(async()=>{await Cc()},50),cI=Jn(async()=>{await Db()},50),dI=Jn(async()=>{await kb()},50),DS=Jn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),Ch=!1,mI=Nn(()=>{let e=globalThis.getSelection()?.toString().trim();!Ch&&e&&e.length>0?Js({text:e}):Js({})},50),pI=()=>{Ch=!0,setTimeout(()=>{Ch=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(ES)return;ES=!0,ne()||Sb(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(Y+"DocumentMessageUser",BS),document.addEventListener(Y+"DocumentMessageUpdateUser",IS),document.addEventListener(Y+"ChangeSuccessService",_S.bind(null,t)),document.addEventListener(Y+"ChangeService",OS.bind(null,t)),document.addEventListener(mn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(Al,Ft.showToastByEvent.bind(null,t)),document.addEventListener(Si,Ft.showModal.bind(null,t)),n.addEventListener(Y+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(q3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(z3,Ft.eventUpload.bind(null,t)),n.addEventListener(Dl,a=>{it()||Dh(a,t)}),n.addEventListener(W3,NS),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",mI),document.addEventListener("contextmenu",pI),yS(),it()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),ne()&&(it()||n.addEventListener(yr,Ft.handlePopupInit)),it()||ni.rootIframe(Il).handleAsk("throttleRequest",H6)};function PS(e,t){hI(),Ft.SetupDomListenersForOnce(t,e),ne()&&(it()||(th(e.config),bI(e.config))),Yn()&&jS(e,t),ct()&&th(e.config)}Ft.handlePopupInit=e=>{Y5()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===El&&Gr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Gu(n);return}let r=n.getAttribute(`data-${B}-event`);r&&je(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${B}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),LS({method:"retryFailedParagraphs"}),Gu(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${B}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Vu(Sh.bind(null,t,o,i,s));return}}};async function gI(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Ht(e)}async function fI(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Ht(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;TS(vS.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Vu(Sh.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Vu(nd.bind(null,"manga",e)):r=="webReport"&&Vu(nd.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=Eh()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")LS({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")Pb(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")gI();else if(i.type==="toggleEnableInputTranslation")fI();else if(i.type==="syncAppSetting")MS(i.data);else if(i.type==="translatePage")yI(i.data);else if(i.type==="getAsyncTranslationServiceList")a=sc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=D0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await xI(i.data,o)}catch(s){Ku(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await vI(o,i.data)}catch(s){Ku(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await Sc(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await J5();else if(i.type==="sharePage")Dh({detail:i.data},r);else if(i.type==="switchTranslationMode")wh(i.data);else if(i.type=="getAsyncAiAssistants")a=await Q9();else if(i.type=="addAiAssistantAsync")a=await c0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await c0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await kh(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await Ah(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Xc("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await vy(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Fb());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Bb());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await Sy(i.data));else if(i.type==="openPopup")ed({...i.data,open:!0});else if(i.type==="closePopup")ed({...i.data,open:!1});else if(i.type==="togglePopup")ed({...i.data});else if(i.type==="getPageStatusAsync")a=Ve();else if(i.type==="restorePage")SI();else if(i.type==="getPageLanguageAsync")a=dt();else if(i.type==="showFloatBallGuide")M5();else if(i.type=="getAsyncDetectAndSetLanguage")a=await FS(i.data);else if(i.type=="setFloatBallActive")_5(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;xo(r,s,o,!0)}else DS(i.type);a!=null&&i.id&&Ku(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{RS()},10)};Ft.handleSecurityPolicyViolation=e=>{be.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&je(n.name,[{name:n.name}],{...e})};function hI(){AS.forEach(e=>{e()}),AS=kS}function bI(e){if(ne()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Wc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:lm,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:cm,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:sm,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:um,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===sm?uI():i.id===um?lI():i.id===cm?cI():i.id===lm?dI():DS(i.id)},i.key)}}function LS(e){Gr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(t)}async function MS(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ge(ke(),t)}async function yI(e){let t=await MS(e);Gn(t)}function Ku(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function xI({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Yt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function vI(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Yt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof U?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof U?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function SI(){Ve()!=="Original"&&Nr()}var Vi={};async function Ph(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Be({text:t,minLength:200,pageLangs:[Ct(),"en"]});return er(n),n}async function US(e){let t=0,n=0;Rn("Translating");let r=dt(),a=mc(),i=[...document.querySelectorAll(".source-text")];if(Ro(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");Et(c.node,"id",c.id+""),d&&(Fo(d,c.id)?.remove(),d.appendChild(cu(e,c.id,!0)))}),await s(l),await ot(0)}}catch(u){throw u}finally{t=0,n=0,Rn("Translated")}async function s(u){await Yt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Fo(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=rt.sanitize(`${l.message}`),Vi[m]={ok:!1,sentence:d},qS(u,e,t,n,l)):c&&(g.innerHTML=rt.sanitize(c.text),Vi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function HS(e){let t=0,n=0;Rn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Vi),a=[],i=[];for(let o of r){let s=Vi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Vi[o],c.appendChild(cu(e,o)),i.push(s.sentence))}}}try{await Yt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Fo(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=rt.sanitize(`${o.message}`),Vi[l]={ok:!1,sentence:u},qS(i,e,t,n,o)):s&&(d.innerHTML=rt.sanitize(s.text),Vi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Rn("Translated")}}function Lh(){Rn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function qS(e,t,n,r,a){if(!(a instanceof U))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(mn,{detail:i}))}var sd={};async function zS(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Be({text:t,pageLangs:["en"]});return er(n),n}async function WS(e){Rn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(sd),n=[];for(let r of t){let a=sd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Ml}='${r}']`);o&&o.remove(),n.push(a)}}try{Iu(),await K0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Rn("Translated")}}function GS(e){Object.values(sd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=is(e,t.targetNodes);di(e,i,r,t.rootNodes||[]),Ui(t.targetNodes)}else n==="dual"&&Ui(t.targetNodes)}),Rn("Original")}async function VS(e){Rn("Translating");let t=Vs(),n=Yr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;os(l,e);let c=l.body;if(!c)continue;Qr(l.documentElement,e.state.translationMode);let d=an(e);d.isModifyImage=!1;let m=[];await Da({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await ot(0)}o(a),Rn("Translated");function o(u){document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Mo(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=z0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:G0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Yf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),sd[p.id]=p)}K0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function ud(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Ka(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var Sn=!1,Mh,KS=!1,ld=null,TI=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=B+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",td(s,e,t,r,a,i,o)},i.append(d)}var nd=[],rT=[];async function fh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(hh()||nd.includes(t))return"";if(nd.length>=s)return new Promise((l,c)=>{rT.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});nd.push(t);try{let u=await WB(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await aT(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{nd.shift(),(async()=>{let u=rT.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await fh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function HB(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${tt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${iT(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await Q({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function qB(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function zB(e,t,n){let r=await qB(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),ne()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):Q({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await Hb(a)})}async function WB(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=GB(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await mc(u);mi({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await HB(e,r,l,n.type);if(c.objectKey&&mi({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await zB(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return ne()?d=await fetch(gh()+"/trigger",{method:"POST",body:Ec(u),headers:{token:e.user?.token||""}}).then(async m=>(await Ya(m,"manga"),m.json())):d=await Q({url:gh()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),mi({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function aT(e,t,n,r,a){let i=hh();if(i)return;mr("Translating",i);let o=await Q({url:gh()+`/${t}/task-state?comicHash=${n}&domain=${iT(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await S9(t,r.queryIntervalTime||100),aT(e,t,n,r,a))}function gh(){return tt+"comics"}function GB(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=A0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function iT(e){return e.replaceAll(".","_")}var kt,bh,ad,zu,Ut=!1;function hh(){return Ut}var oT=!1;function lT(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ut=!1,!oT&&kt.injectedCss&&(Bn(document,`${kt.injectedCss}`,B+"-image-injected-css"),oT=!0);let t=!1,n=jn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=mT(kt);for(let i of a){if(Ut)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await it(20),await r(i,t))}},100);if(_e("translate_manga",[{name:"translate_manga"}],e),n(),bh=new MutationObserver(a=>{n()}),bh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;zu=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Wi(e,o.target),zu?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}ad=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(zu?.unobserve(a),zu?.observe(a)):await Wi(e,a)))}}async function Wi(e,t,n,r){let a=e.rule.imageRule.type||"common",i=yo();if(n&&(Ut=!1),Ut||eI(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=KB(e,t);u||(s=us(e,t,"translating")),n&&_e("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await YB(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await VB(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||us(e,t,"success")):(u||us(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&mr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&mr("Error",Ut),$B(e,l),u))return;if(l instanceof Hu)return us(e,t,"error",l.type);us(e,t,"error")}finally{n&&mr(i,Ut),s?.remove()}}function cT(){if(!kt)return;Ut=!0,bh?.disconnect(),ad?.disconnect(),zu?.disconnect();let e=mT(kt);for(let t of e)Gi(t)}function Gi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Gi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function VB(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await QB(l,c,t.cloneNode(!0))}else o=await pT(t);if(Ut)return;if(!o||o.size<6*1e4){ad?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await fp(o);return await yh(e,t,s)?!0:s?dT({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function dT({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await ZB(n)||n,u=r||a;try{if(Ut)return;mr("Translating",Ut),ph(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};mi(l);let d=await fh(e,u,s,a,i,m=>{ph(e,o,m)});return d?(l.targetUrl=d,mi(l),await gT(kt,t,d),mr("Translated",Ut),!0):!1}catch(l){if(mi({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function yh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=ed(r);return a&&a?.targetUrl?(await gT(kt,t,a.targetUrl||""),mr("Translated",Ut),!0):!1}function KB(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=ed(r);return a&&a?.targetUrl}return!1}async function YB(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!XB(a,i)){ad?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await yh(e,t,o))return!0;let s=null;if(mr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await Ya(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await JB(i);else{let d=await Q({url:i,responseType:"base64"});s=await Ac(d)}if(Ut)return;if(await H5(s))throw new Hu("GIFs not supported","gif_not_supported");let l=await fp(s);if(!o&&(o=l,await yh(e,t,o)))return!0;if(!o)return!1;return dT({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function mT(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function pT(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function QB(e,t,n){return new Promise((r,a)=>{Q({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await pT(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function gT(e,t,n){try{return await sT(e,t,n)}catch{let a=await tI(n);return sT(e,t,a)}}async function sT(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function JB(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function ZB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function XB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!$c(e.inValidSrcRegex,t):!0}var rd=0,qu=0;function $B(e,t){if(rd!=0){qu++;return}if(t.message.indexOf("quota exceeded")>0){uT(e,t);return}qu++,rd=setTimeout(()=>{if(qu<(kt.errorTimes||3)){rd=0,qu=0;return}uT(e,t),qu=0,rd=0},kt.errorInterval||3e3)}function uT(e,t){let r=new U("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(Nn,{detail:r}))}function xh(e){return e.classList.contains("imt-img")||e.hasTranslate}function eI(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function tI(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var nI="showImagePricingModal";function id(e){document.dispatchEvent(new CustomEvent(nI,{detail:JSON.stringify({trigger:e})}))}var ra=null;async function fT(e,{srcUrl:t}){if(!Z0(e))return;if(!await Is(e)){id("image_right_menu");return}if(!ra){D.error("rightMenu image ele not found",t,ra);return}if(ra.translationStatus!=="translating"){if(ra.hasTranslate){Gi(ra);return}if(t!==ra.src)try{let r=new URL(t),a=new URL(ra.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,ra.src,r);return}Wi(e,ra,!0,"image_right_menu")}}function hT(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ra=e.target)})}var bT=0;function Gu(e){let t=Date.now();if(t-bT<2e3||(bT=t,rI()))return;let n=`${B}-modal-root`,r=`${B}-modal`,a=document.getElementById(n),i=`${B}-modal-title`,o=`${B}-modal-body`,s=`${B}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,Wu)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${B}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=De();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=B+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=B+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let b=document.createElement("div");b.className=o+" notranslate",m.appendChild(b);let h=document.createElement("div");h.className=s,m.appendChild(h),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,b,h,Wu)}setTimeout(()=>{aI()},100)}function rI(){let e=document.querySelector(`#${B}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${B}-modal`)?.style.display=="block":!1}function aI(){let e=document.querySelector(`#${B}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-modal`);t&&(t.style.display="block")}}function Wu(e,t=!1){let n=document.querySelector(`#${B}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${B}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function yT(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await hn();Ht({...l,sameLangCheck:!1}),o(i,!0)})}var xT=0;async function vT(e){let t=Date.now();if(t-xT<2e3||(xT=t,iI()))return;let n=`${B}-toast-root`,r=`${B}-toast`,a=document.getElementById(n),i=`${B}-toast-msg`,o=`${B}-toast-content`,s=`${B}-toast-hidden`,u,l,c=()=>{l&&vh(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,vh);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${B}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),h=document.createElement("style"),f=De();h.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(h),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),b.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=B+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},b.addEventListener("click",T=>{T.target==m&&(m.style.display="none")}),e(m,u,l,vh)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{oI()},100),d=setTimeout(c,2500)}function iI(){let e=document.querySelector(`#${B}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${B}-toast`)?.style.display=="flex":!1}function oI(){let e=document.querySelector(`#${B}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-toast`);t&&(t.style.display="flex")}}function vh(e,t=!1){let n=document.querySelector(`#${B}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${B}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function Th(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=rt.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${B}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",TT({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(c1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Ol)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(g1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(be.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(be.OPTIONS_URL)},Sh(e,e.config.translationService,!1,g).then(b=>{b?(m=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=rt.sanitize(m),p.onclick=()=>{ST(b),u(p,!0)}):(m=l("goSettings"),p.innerHTML=rt.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Ht(g),TT({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=B+"-btn",p.innerHTML+=rt.sanitize(m),s.appendChild(p)}function TT(e){Wr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(t)}var CT=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},ET=[()=>{Un.unbind()}],wT=[...ET],sI=Jn(async()=>{await ja()},50),uI=Jn(async()=>{await Sc()},50),lI=Jn(async()=>{await Ab()},50),cI=Jn(async()=>{await Eb()},50),AT=Jn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),Ch=!1,dI=jn(()=>{let e=globalThis.getSelection()?.toString().trim();!Ch&&e&&e.length>0?Qs({text:e}):Qs({})},50),mI=()=>{Ch=!0,setTimeout(()=>{Ch=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(CT)return;CT=!0,ne()||xb(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(Y+"DocumentMessageUser",RT),document.addEventListener(Y+"DocumentMessageUpdateUser",FT),document.addEventListener(Y+"ChangeSuccessService",BT.bind(null,t)),document.addEventListener(Y+"ChangeService",IT.bind(null,t)),document.addEventListener(Nn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(El,Ft.showToastByEvent.bind(null,t)),document.addEventListener(vi,Ft.showModal.bind(null,t)),n.addEventListener(Y+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(U3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(H3,Ft.eventUpload.bind(null,t)),n.addEventListener(kl,a=>{at()||Dh(a,t)}),n.addEventListener(q3,_T),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",dI),document.addEventListener("contextmenu",mI),hT(),at()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),ne()&&(at()||n.addEventListener(yr,Ft.handlePopupInit)),at()||ti.rootIframe(Bl).handleAsk("throttleRequest",j6)};function kT(e,t){fI(),Ft.SetupDomListenersForOnce(t,e),ne()&&(at()||(th(e.config),hI(e.config))),Yn()&&OT(e,t),lt()&&th(e.config)}Ft.handlePopupInit=e=>{V5()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===wl&&Wr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Wu(n);return}let r=n.getAttribute(`data-${B}-event`);r&&_e(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${B}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),DT({method:"retryFailedParagraphs"}),Wu(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${B}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Gu(Th.bind(null,t,o,i,s));return}}};async function pI(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Ht(e)}async function gI(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Ht(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;vT(yT.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Gu(Th.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Gu(td.bind(null,"manga",e)):r=="webReport"&&Gu(td.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=Eh()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")DT({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")kb(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")pI();else if(i.type==="toggleEnableInputTranslation")gI();else if(i.type==="syncAppSetting")PT(i.data);else if(i.type==="translatePage")bI(i.data);else if(i.type==="getAsyncTranslationServiceList")a=oc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=k0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await yI(i.data,o)}catch(s){Vu(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await xI(o,i.data)}catch(s){Vu(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await vc(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await Y5();else if(i.type==="sharePage")Dh({detail:i.data},r);else if(i.type==="switchTranslationMode")wh(i.data);else if(i.type=="getAsyncAiAssistants")a=await K9();else if(i.type=="addAiAssistantAsync")a=await l0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await l0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await kh(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await Ah(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Zc("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await yy(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Mb());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Rb());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await xy(i.data));else if(i.type==="openPopup")$0({...i.data,open:!0});else if(i.type==="closePopup")$0({...i.data,open:!1});else if(i.type==="togglePopup")$0({...i.data});else if(i.type==="getPageStatusAsync")a=Ve();else if(i.type==="restorePage")vI();else if(i.type==="getPageLanguageAsync")a=dt();else if(i.type==="showFloatBallGuide")P5();else if(i.type=="getAsyncDetectAndSetLanguage")a=await MT(i.data);else if(i.type=="setFloatBallActive")B5(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;xo(r,s,o,!0)}else AT(i.type);a!=null&&i.id&&Vu(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{LT()},10)};Ft.handleSecurityPolicyViolation=e=>{be.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&_e(n.name,[{name:n.name}],{...e})};function fI(){wT.forEach(e=>{e()}),wT=ET}function hI(e){if(ne()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=zc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:um,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:lm,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:om,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:sm,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===om?sI():i.id===sm?uI():i.id===lm?lI():i.id===um?cI():AT(i.id)},i.key)}}function DT(e){Wr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(yr,{detail:e});globalThis.document.dispatchEvent(t)}async function PT(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await qe(Ee(),t)}async function bI(e){let t=await PT(e);Gn(t)}function Vu(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function yI({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Yt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function xI(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Yt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof U?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof U?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function vI(){Ve()!=="Original"&&Or()}var Vi={};async function Ph(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await je({text:t,minLength:200,pageLangs:[Ct(),"en"]});return er(n),n}async function NT(e){let t=0,n=0;Mn("Translating");let r=dt(),a=dc(),i=[...document.querySelectorAll(".source-text")];if(Ro(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");Et(c.node,"id",c.id+""),d&&(Fo(d,c.id)?.remove(),d.appendChild(lu(e,c.id,!0)))}),await s(l),await it(0)}}catch(u){throw u}finally{t=0,n=0,Mn("Translated")}async function s(u){await Yt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Fo(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=rt.sanitize(`${l.message}`),Vi[m]={ok:!1,sentence:d},UT(u,e,t,n,l)):c&&(g.innerHTML=rt.sanitize(c.text),Vi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function jT(e){let t=0,n=0;Mn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Vi),a=[],i=[];for(let o of r){let s=Vi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Vi[o],c.appendChild(lu(e,o)),i.push(s.sentence))}}}try{await Yt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Fo(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=rt.sanitize(`${o.message}`),Vi[l]={ok:!1,sentence:u},UT(i,e,t,n,o)):s&&(d.innerHTML=rt.sanitize(s.text),Vi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Mn("Translated")}}function Lh(){Mn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function UT(e,t,n,r,a){if(!(a instanceof U))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(Nn,{detail:i}))}var od={};async function HT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await je({text:t,pageLangs:["en"]});return er(n),n}async function qT(e){Mn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(od),n=[];for(let r of t){let a=od[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Ll}='${r}']`);o&&o.remove(),n.push(a)}}try{Bu(),await V0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Mn("Translated")}}function zT(e){Object.values(od).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=is(e,t.targetNodes);ci(e,i,r,t.rootNodes||[]),Ui(t.targetNodes)}else n==="dual"&&Ui(t.targetNodes)}),Mn("Original")}async function WT(e){Mn("Translating");let t=Gs(),n=Kr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;os(l,e);let c=l.body;if(!c)continue;Yr(l.documentElement,e.state.translationMode);let d=an(e);d.isModifyImage=!1;let m=[];await ka({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await it(0)}o(a),Mn("Translated");function o(u){document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Mo(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=q0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:W0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Yf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),od[p.id]=p)}V0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function sd(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Va(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}function TI(){let e=document.querySelector(`#${B}-modal-input-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${B}-modal`);t&&(t.style.display="block")}}function GT(e){let t=`${B}-modal-input-root`,n=`${B}-modal`,r=`${B}-modal-title`,a=`${B}-modal-body`,i=`${B}-modal-footer`,o=document.querySelector(`#${t}`),s,u,l,c;return setTimeout(()=>{TI()},100),new Promise(d=>{let m=d;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let I=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${B}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let I=P.attachShadow({mode:"open"}),L=document.createElement("style"),_=De();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,I.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let O=document.createElement("div");O.className=B+"-modal-content notranslate "+B+"-modal-content-in-input",s.appendChild(O);let z=document.createElement("span");z.textContent="\xD7",z.className=B+"-close",O.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",O.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",O.appendChild(c),l=document.createElement("div"),l.className=i,O.appendChild(l),I.appendChild(s),z.onclick=function(){A(),d("close")},I.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=Pe.bind(null,e.config.interfaceLanguage),g=`
${g0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=In?.createHTML(g)||g,c.innerHTML=In?.createHTML("")||"";let b=document.createElement("p"),h=p("modalEnableInputTranslationDesc",{1:oe+"docs/input/"});b.innerHTML=In?.createHTML(h)||h,b.style.cssText="margin-bottom:12px",c.appendChild(b);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=rt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=In?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P{CI(e,t)})}function CI(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(ld===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;We().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(Sn||ld===!1)return;let p=md(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(DI(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&YS(t,o,m.target)&&(s=0,Bh(m,e,t,o))}function d(){Mh=l,t.removeEventListener("keyup",Mh),t.addEventListener("keyup",Mh,!0)}PI(e)}function JS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function cd(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var ls;function Rh(e){let t=e.parentElement;if(!t)return;ls=document.createElement("div"),ls.className=B+"-input";let n=`
`;ls.innerHTML=Un?.createHTML(n)||n,t.appendChild(ls);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=TI,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Fh(){ls&&ls.remove()}async function wI(e,t=window){if(Sn)return;let r=globalThis.getSelection()?.toString();if(r){Oh(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let v=m.split(" ")[0];v&&v[0]&&(v=v[0].toLowerCase()+v.slice(1)),v.trim()&&u.flatAlias.includes(v)?(p=cd(v,u.codeAlias),d=m.slice(v.length+1)):d=m},y=function(){p="";let v=JS(u),S=m.split(v);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let C=m.lastIndexOf(d),T=m.slice(0,C).lastIndexOf(S[S.length-2]);c=m.slice(0,T+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let w=m.slice(c.length+1,m.indexOf(d)).trim();if(p=cd(w,u.codeAlias),!p){D.warn("not found alias",w);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(v=>i[v]=[v,...i[v]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;We().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;Sn=!0;let c="",d="",m=Ur(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=ZS(d,u),h=await Be({text:g,pageLangs:["en"]});D.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;Rh(l),at(Ds,Date.now());try{e.specialAiAssistant=Fr(e,e.inputTranslationService,!0);let v=await ra(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});_h(e),rT(e,t,l,c+v.text)}catch(v){if(v instanceof U){let S=v.uiConfig(e);Nh(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(mn,{detail:S}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,Fh()}}async function Bh(e,t,n,r){if(!Sn)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=cd(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=JS(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=cd(b,r.codeAlias),!u){D.warn("not found alias",b);return}},a=md(n.document,t.rule.enableInputDeepActive);if(!a)return;Sn=!0;let i="",o="",s=Ur(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=ZS(o,r),c=await Be({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!KS){KS=!0;let g=await LI(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(ld=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(ld=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await Ht(h)}}Rh(a),at(Ds,Date.now());try{t.specialAiAssistant=Fr(t,t.inputTranslationService,!0);let g=await ra(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});_h(t),rT(t,n,a,i+g.text)}catch(g){if(g instanceof U){let h=g.uiConfig(t);Nh(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(mn,{detail:h}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,Fh()}}function YS(e,t,n){if(!n)return!1;if(Ih(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;D.debug("cursorPosition",r,"textLength",a),D.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return D.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=EI(i,n);D.debug("Current text node:",i.textContent),D.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=ct()?u[0]||u[1]:u[0];D.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else D.debug("Cursor is not within a text node.")}}return!1}function EI(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function ZS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function XS(e,t){let n=t.innerHTML,r=Ur(t);return{html:n.replace(r,e),text:e}}function dd(e,t,n=!1){let r=Ur(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Ur(e){return e.value||e.innerText||e.textContent}async function jr(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function AI(e,t,n){await jr(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await jr(10)}async function $S(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await jr(10))}async function eT(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await jr(20),(t.value||t.value==="")&&(t.value=e.text)}async function tT(e,t){Ih(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await jr(20))}var nT=[AI.bind(null,["plain"])];function Ih(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function kI(e,t){if(Ih(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function rT(e,t,n,r){await jr(50),await kI(t,n),await jr(50);let a=e.rule.inputConfig,i=XS(r,n);try{await jr(50),a?.execCommandDeleteEnable&&!kn()&&Ur(n)?.trim()!=""&&(t.document.execCommand("delete"),await jr(50)),D.debug("clearContent",Ur(n))}catch(o){D.error(o)}for(let o of[...nT,eT,tT,$S]){await o(i,n);let s=aT(t);if(!s)return;if(D.debug("setContent",o.name,dd(i,s),Ur(s),i),dd(i,s))break}}function aT(e){return e.document.activeElement}function _h(e,t=""){je("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function DI(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function PI(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Nt(t,"")||Number(await Nt(Ds,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{MI()},100),new Promise(d=>{let m=d;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let I=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),_=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${B}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let I=P.attachShadow({mode:"open"}),L=document.createElement("style"),_=De();L.textContent=_.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,I.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let O=document.createElement("div");O.className=B+"-modal-content notranslate "+B+"-modal-content-in-input",s.appendChild(O);let z=document.createElement("span");z.textContent="\xD7",z.className=B+"-close",O.appendChild(z),u=document.createElement("div"),u.className=r+" notranslate",O.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",O.appendChild(c),l=document.createElement("div"),l.className=i,O.appendChild(l),I.appendChild(s),z.onclick=function(){A(),d("close")},I.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=Pe.bind(null,e.config.interfaceLanguage),g=`
${f0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Un?.createHTML(g)||g,c.innerHTML=Un?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:oe+"docs/input/"});h.innerHTML=Un?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=rt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=Un?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function Oh(e,t,n,r){if(Sn)return;try{let o=md(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;Sn=!0;let u=e.config.inputTargetLanguage,l=await Be({text:n,pageLangs:["en"]});D.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;Rh(o),at(Ds,Date.now());try{if(e.specialAiAssistant=Fr(e,e.inputTranslationService,!0),_h(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await ra(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await ra(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof U){let m=d.uiConfig(e);Nh(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(mn,{detail:m}))}}finally{Sn=!1}}catch(o){throw Sn=!1,o}finally{Sn=!1,Fh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=XS(l,u);try{await jr(50),c?.execCommandDeleteEnable&&!kn()&&Ur(u)?.trim()!=""&&(s.document.execCommand("delete"),await jr(50)),D.debug("clearContent",Ur(u))}catch(m){D.error(m)}for(let m of[...nT,eT,tT,$S]){await m(d,u);let p=aT(s);if(!p)return;if(D.debug("setContent",m.name,dd(d,p),Ur(p),d),dd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function Nh(e){return e==="retry"||e==="changeService"}function pd({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&In(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}zr(x($a,{lang:t.config.interfaceLanguage,children:x(n,{...r})}),d)}function iT(e){let t=document.createElement("span");return t.innerHTML=e,(t.textContent||"").trim()}function qe(e,t,n){je("translate_video_subtitle",[{name:"translate_video_subtitle",params:{video_platform:n||e.rule.id||""}}],{...e,sourceLanguage:t||"auto"})}function Qe(e,t){return e==t}function La(e,t){return!e||!t?!1:e.startsWith("zh")&&t.startsWith("zh")}function oT(e){let{url:t,method:n,headers:r,body:a}=e,i=new Headers;for(let[u,l]of Object.entries(r))i.append(u,l);let o;return typeof a=="object"?(delete a._formatBodyType,o=JSON.stringify(a)):typeof a=="string"&&(o=a),new Request(t,{method:n,headers:i,body:o})}function sT(e){return e?Object.entries(e).reduce((t,[n,r])=>{if(r==null||r==null||typeof r=="object"&&Object.keys(r).length===0)return t;if(n=="body"&&typeof r=="object"&&r._formatBodyType=="FormData"){let a=new FormData;for(let[i,o]of Object.entries(r))i!=="_formatBodyType"&&a.append(i,o);return t[n]=a,t}return t[n]=r,t},{}):null}function jh(e){return e.replace(/\n/g," ")}function uT(e){let t;return e instanceof URL?t=e.href:typeof e=="string"?t=e:e instanceof Request?t=e.url:t=String(e),t}function gd(e,t,n){let r="translationServices."+n,a=t("translationServices."+n);return a!=r?a:e.config.translationServices[n]?.name||a}function cs(e){return ds(e).subtitles}function ds(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${p4.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},G_=e=>/]*>[\s\S]*]*>/.test(e),JT=sn({name:QT,build:W_,detect:G_,helper:p4,parse:z_});var V_="srt",Xu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},K_=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Xu.toMilliseconds(s[2]),u.end=Xu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},Y_=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${Xu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},Q_=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),ZT=sn({name:V_,build:Y_,detect:Q_,helper:Xu,parse:K_});var J_="sub",g4=25,Z_=(e,t)=>{t.fps||=g4;let n=t.fps>0?t.fps:g4,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:g4,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},$_=e=>/^\{\d+\}\{\d+\}.*/.test(e),XT=sn({name:J_,build:X_,detect:$_,parse:Z_});var eO="vtt",$u={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},tO=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=$u.toMilliseconds(s[2]),l.end=$u.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},nO=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${$u.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},rO=e=>/^\s*WEBVTT\r?\n/.test(e),$T=sn({name:eO,build:nO,detect:rO,helper:$u,parse:tO});var aO={vtt:$T,lrc:KT,smi:JT,ssa:WT,ass:GT,sub:XT,srt:ZT,sbv:YT,json:VT},eC=aO;var iO=e=>JSON.parse(JSON.stringify(e)),f4=class{format=eC;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),xd.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];as(this.ctx)&&this.isEnableSubtitle()&&(Et(document.documentElement,Y+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${B}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&In(document,`${t.join(` -`)}`,B+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await Ge(ke(),{});if(this.initConfig(n),await ot(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(oT(r),sT(a));return u&&this.setMemoryCache(o,u),u}catch(r){return D.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!Ze(ke(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:gd(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function E_(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:g0}})}function A_(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:t6}})}function k_(){return x("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:x("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function D_(){return x("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:x("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function P_(){return x("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:x("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var o4=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},sn=e=>new o4(e);var L_="ssa",Ki={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},s4=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sw.split(C,S).join(C).length)(h,",",r.length-1)+1;y.content=h.substring(T),y.data.Text=y.content,y.text=y.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(y)}}}}}t.verbose}return a},u4=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,zS=sn({name:L_,build:u4,detect:l4,helper:Ki,parse:s4});var M_="ass",WS=sn({name:M_,build:u4,detect:l4,helper:Ki,parse:s4});var R_="json",F_=(e,t)=>JSON.parse(e),B_=(e,t)=>JSON.stringify(e,void 0,2),I_=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},GS=sn({name:R_,build:B_,detect:I_,parse:F_});var __="lrc",c4={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},O_=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),VS=sn({name:__,build:N_,detect:j_,helper:c4,parse:O_});var U_="sbv",Ju={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},H_=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},q_=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),KS=sn({name:U_,build:q_,detect:z_,helper:Ju,parse:H_});var YS="smi",d4={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},W_=(e,t)=>{if(t.format&&t.format!==YS)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(d){let m={};m.type="caption",m.start=parseInt(d[1]),m.end=m.start+2e3,m.duration=m.end-m.start,m.content=d[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,g=/^([\s\S]*)/i.exec(m.content)||/^]*)>([\s\S]*)/i.exec(m.content);if(g){let b=g[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),b=b.replace(/^\s+/g,"").replace(/\s+$/g,""),p=b.replace(/ /gi," ").replace(/\s+/g,"").length===0,m.text=d4.htmlDecode(b,r)}!t.preserveSpaces&&p?t.verbose:n.push(m),s&&(s.end=m.start,s.duration=s.end-s.start),s=m;continue}t.verbose}return n},G_=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${d4.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},V_=e=>/]*>[\s\S]*]*>/.test(e),QS=sn({name:YS,build:G_,detect:V_,helper:d4,parse:W_});var K_="srt",Zu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},Y_=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Zu.toMilliseconds(s[2]),u.end=Zu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},Q_=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Zu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},J_=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),JS=sn({name:K_,build:Q_,detect:J_,helper:Zu,parse:Y_});var Z_="sub",m4=25,X_=(e,t)=>{t.fps||=m4;let n=t.fps>0?t.fps:m4,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:m4,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},eO=e=>/^\{\d+\}\{\d+\}.*/.test(e),ZS=sn({name:Z_,build:$_,detect:eO,parse:X_});var tO="vtt",Xu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},nO=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Xu.toMilliseconds(s[2]),l.end=Xu.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},rO=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Xu.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},aO=e=>/^\s*WEBVTT\r?\n/.test(e),XS=sn({name:tO,build:rO,detect:aO,helper:Xu,parse:nO});var iO={vtt:XS,lrc:VS,smi:QS,ssa:zS,ass:WS,sub:ZS,srt:JS,sbv:KS,json:GS},$S=iO;var oO=e=>JSON.parse(JSON.stringify(e)),p4=class{format=$S;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),yd.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];as(this.ctx)&&this.isEnableSubtitle()&&(Et(document.documentElement,Y+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${B}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&Bn(document,`${t.join(` +`)}`,B+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await qe(Ee(),{});if(this.initConfig(n),await it(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(iS(r),oS(a));return u&&this.setMemoryCache(o,u),u}catch(r){return D.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!Ze(Ee(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:pd(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=rt.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Yt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=bd(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Uu(this.ctx,n,r)}getTranslationMode(t){return La(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=B+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;qe(this.ctx,n);let r=t.filter(a=>a.text);Ma(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Qu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Nn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&pd({id:B+"quick-button",parent:n,ctx:this.ctx,Component:qT,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:zT+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Yi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return Sc(t.slice(0,50).map(n=>n.text).join(" "))}};function nC(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var Cd=class extends $e{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!Ze(ke(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Qe(X(r),this.ctx.targetLanguage);if(a||La(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(MT(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=LT(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${tt}subtitles/yt-asr-subs`;try{let a=await pc(t),o=(await Q({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(D.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){D.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Qe(X(o),r)&&!La(X(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Qe(X(d.languageCode),r)&&!La(X(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>X(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=X(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=nC(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>X(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>X(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return X(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=B+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Qe(X(a[u]),this.ctx.targetLanguage)&&!La(X(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:iT(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await Ge(ke(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Qu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await Ge(ke(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=fd(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Qe(X(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==ke()&&(this.lastReportUrl=ke(),qe(this.ctx,X(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),hd(a.arrayBuffer,a.document))}catch{}}};var wd=class extends $e{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Qe(X(i),this.ctx.targetLanguage))return null;qe(this.ctx,X(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:X(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,X(i));return}this.downloadSubtitle(o,X(i),[]);let u=await this.requestHumanSubtitle(o,X(i),r);if(u)return this.handleIOSFullScreen(u,X(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,X(i));return l?(this.handleIOSFullScreen(l,X(i)),l.documentElement.outerHTML):null}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){D.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[X(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return D.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ms(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!ne()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Yu(a,n,i,this.ctx)}catch(a){D.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(ke()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var fi=class extends $e{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Qe(X(t.language),this.ctx.targetLanguage))return;let r=a=>{if(D.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),X(i.language)),i.isTranslated=!0;return}qe(this.ctx,X(i.language)),this.translateSubtitle([...i.cues||[]],X(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>oO(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){D.error("download subtitle error",i)}return t}catch(r){D.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function oO(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var oa=class extends fi{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&qe(this.ctx,X(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Qe(X(t.language),this.ctx.targetLanguage))return;let r=a=>{D.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,X(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var hs=class extends oa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=ds(r),i=await Be({text:a.subtitles.map(l=>l.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Qe(X(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,X(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){D.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),gi(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var Ed=class extends $e{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Qe(X(a),this.ctx.targetLanguage))return null;qe(this.ctx,X(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,X(a));return JSON.stringify(o)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:jh(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){D.debug("translate subtitle:",o,s,u);return}let l=Hr(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${jh(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Ad=class extends fi{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Qe(X(i),this.ctx.targetLanguage))return null;qe(this.ctx,X(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,X(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,X(i))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=cs(t),s=cs(i),u=ms(o,s);return{text:gi(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=cs(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){D.debug("translate subtitle:",i,o,s);return}let u=Hr(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),gi(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[X(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(ke()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var kd=class extends $e{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=rC(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=rC(o,r.itemsPath):s=uO(o,r),!s?.length)continue;let u=await Be({text:s.map(l=>el(l,r.textKey)).join(` -`),pageLangs:[Ct(),"en"]});if(Qe(X(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:el(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),qe(this.ctx,X(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>el(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=sO(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function rC(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Io(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,qe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return rr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Vp(t);o.append(rt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Be({text:n,pageLangs:[dt(),"en"]});return Ro(t,r)?void 0:(await ra({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ve(),n=await Ge(ke(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await Ge(ke(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var Dd=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=lO(r),o=await Be({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(Qe(X(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=aC(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),qe(this.ctx,X(o));let s=await this.translateSubtitle(a,i,X(o));if(this.config.enableHookDownload)try{let u=aC(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),X(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Hr(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(tl,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},tl="http://www.w3.org/ns/ttml";function lO(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(tl,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(tl,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(tl,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function aC(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(tl,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:iC(i),end:iC(o),text:s})}),r}function iC(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Pd=class extends $e{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=ds(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Qe(o,this.ctx.targetLanguage))return null;if(qe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,X(o))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ms(n.subtitles,cs(u));return n.subtitles=l,gi(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){D.debug("translate subtitle:",a,i,o);return}let s=Hr(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),gi(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>X(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=mO(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return Be({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(ke()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=dO(r),i=cO(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function cO(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function dO(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function mO(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Ld=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=fd(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Qe(X(s),this.ctx.targetLanguage)?null:(qe(this.ctx,X(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),hd(a.arrayBuffer,a.document))}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Md=class extends $e{async requestSubtitle(t){let n=await Ge(ke(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new hs(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Uh(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}cT(a),Gh(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Rd=class extends $e{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(oC).forEach(n=>{oC[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Qe(X(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return D.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(qe(this.ctx,t),Ma(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=uT(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},oC={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Fd=class extends oa{constructor(t){super(t),new bs(t)}};var Bd=class extends oa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Yi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Be({text:i.map(c=>c.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Qe(X(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,X(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){D.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Yi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Id=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Be({text:a.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Qe(X(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,X(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),X(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",b=qh(g,l),f=qh(h,l),y=on(b),v=on(f);u==="duration"&&(v=y+v);let S=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(S||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var _d=class extends $e{hasSubtitle=!1;async mutationVideoChange(){let t=pO(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(qe(this.ctx,"ja","av"),this.hasSubtitle=!0,Ma(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await Q({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Yi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){D.error("fetchSubtitle",n);return}}};function pO(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var Od=class extends $e{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(qe(this.ctx,n.language_code),Ma(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var gO={youtube:Cd,netflix:wd,webvtt:hs,khanacademy:Ed,udemy:Ad,hulu:Md,mubi:Od,text_track:fi,text_track_dynamic:oa,general:kd,live:bs,ebutt:Dd,disneyplus:Pd,"fmp4.xml":Ld,multi_attach_vtt:Rd,twitter:Fd,subsrt:Bd,xml:Id,av:_d},Nd;async function AT(e){try{ne()&&await ot(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=gO[t.type];if(!n)return;Nd=new n(e)}catch(t){D.error(t)}}async function h4(){Nd?.onPageStatusChange()}async function fO(e,t){if(Nd?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&it())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),je("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function hO(){Nd?.onTranslationModeChanged()}vb({autoEnableSubtitleChanged:fO,reloadSubtitleWithTranslationModeChanged:hO});var le=null;function Ju(){return le||null}function Td(e){os(document,e),bO(e),wO(e),SO(e),CO(e),vO(le),Rn("Translated"),TO(le),c5(fs),yO(le),h4(),FO()}function bO(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=an(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}Xv(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}as(e)&&Et(document.documentElement,Y+"_rtl",e.targetLanguage)}function yO(e){let t=e.ctx;mC(t,!0),d5(e),T9(window.location.href)}function xO(e){let t=e.ctx;mC(t,!1),m5()}async function vO(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await cC(e.ctx,an(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await mi(s,e);await mi(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await mi(s,e)}function cC(e,t){gb(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=n5(e,t);return D.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(D.debug("requestTermsByContext contextTerms articleNode",r),xo({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function SO(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Vt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Rt({...t,tempTranslationUrlMatches:[...i]})}}function TO(e){e.ctx.rule.isTranslateTitle&&(qf(e.ctx),e.titleDynamicObserver=a5(e.ctx))}function CO(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function e4(e,t){le&&(e.filterRule=an(e,!0),e.isRichTranslate=Mo(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=an(e)),le.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},le.translationService=e.translationService,le.urlChangeDelay=e.rule.urlChangeDelay,le.immediateTranslateCapacity=e.state.immediateTranslationTextCount,le.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Qr(document.documentElement,le.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function wO(e){let t=Vs();le&&(t=le.id),le=le||{},le.ctx=e,le.id=t,le.paragraphQueue=le.paragraphQueue||[],e4(e),le.currentUrl=window.location.href,le.paragraphEntities=le.paragraphEntities||{},le.autoIncreaseParagraphId=le.autoIncreaseParagraphId||1,le.interruptEffectDOM=!1,le.observeContainers=le.observeContainers||[],le.observeParagraphs=le.observeParagraphs||[],le.dynamicContainerObserver=le.dynamicContainerObserver||MO(le),le.ignoreResizeObserver=le.ignoreResizeObserver||RO(le),le.containerVisibleObserver=le.containerVisibleObserver||kO(le),le.paragraphVisibleObserver=le.paragraphVisibleObserver||DO(le),le.injectCssToDocument=jd,le.walkContainer=Da,e.specialAiAssistant=Fr(e,e.translationService,!0),window.onerror=AO(le,e),window.immersiveTranslateSwitchTranslateState=y4.bind(le)}function dC(e,t){t.getRootNode()instanceof ShadowRoot?jd(t.getRootNode(),e):jd(t.ownerDocument,e),EO(e)}function EO(e){le||(le={},le.ctx=e,le.id=Vs(),b4(le,e))}function b4(e,t){let n={...e};n.injectCssToDocument=jd,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=y4.bind(n);let r=Fr(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Mo(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function fs(e=!0){le&&(Rn("Original"),h4(),xO(le),Iu(),le.interruptEffectDOM=!0,le.ignoreResizeObserver?.disconnect(),le.dynamicContainerObserver?.disconnect(),le.containerVisibleObserver?.disconnect(),le.paragraphVisibleObserver?.disconnect(),le.titleDynamicObserver?.disconnect(),i5(le.ctx),h9(),b9(),e&&y4.call(le,"original"),Object.values(le.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),le=null)}function AO(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),fs(),n=setTimeout(()=>{Td(t)},e.urlChangeDelay||2e3)),!0}}function kO(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await Vf(e,r.target),n.unobserve(r.target))})}function DO(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{Kf(e,o)}),n.unobserve(a)}})})}var sC;function PO(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function LO(e){if(e.urlChangeDelay<=0||(clearTimeout(sC),e.translateState=="original"))return!1;fs(e.urlChangeDelay>20),sC=setTimeout(()=>{let t=e.ctx;Td(t)},e.urlChangeDelay)}function MO(e){let t=e.ctx.rule,n=an(e.ctx);return new MutationObserver(r=>{if(PO(e)&&(cC(e.ctx,n),t.mutationConfig.enableUrlChange&&LO(e))||e.interruptEffectDOM)return;let a=t0(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!rr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&rr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Bl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;uC(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&Xf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&uC(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ft.isSkipMarkEle(i.target)&&!ft.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Kr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Io(n,o.parentElement);l&&(ft.clearToParentMark(o,l),lC(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&lC(e,i.target)}catch(o){D.error(o)}}})}function uC(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{Zf(n),Da({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{Hi(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function lC(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ft.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{mi(t,e,n),i.timer=null},a)}function Zf(e){e.paragraphs=[],ft.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${B}-walked]`).forEach(t=>{t.paragraphs=void 0,ft.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function Xf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function RO(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);If(i)||(n.unobserve(r.target),ft.clearMark(a),mi(a,e))}})}async function y4(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Nr(),await ot(50),Zt({method:"translatePage"});return}this.translateState=e,Qr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Qr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Bu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function jd(e,t){if(e instanceof HTMLIFrameElement){os(e.contentDocument,t);return}os(e,t)}async function kT(e){let t=it(),n="auto";if(ne()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=zp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})):(r=Lo(e.mainFrame).slice(0,1e3),n=await Be({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Be({text:Lo(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=zp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})}else n=await Cb();return n==="auto"&&(n=await l5()),lb(n),n}async function DT(){if(!le)return;Iu(),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=le.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){le.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Ml}='${n}']`);i&&i.remove()}}V0.call(le,le.ctx)}async function Dh(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),je("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:dt()});let r=le?.ctx||t,a=await Vt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:o5(r)},await Rt(a);let o=De().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Vr(o)}catch(i){D.error(i)}}async function NS(){let e=await Vt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(G3,{detail:JSON.stringify(e.draft)}))}async function FO(){try{if(await Ri("reportActive")||"")return;D.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Mr();await Q({url:tt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Er("reportActive","1")}catch(e){D.error(e)}}function mC(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(io,{detail:{tempEnableSubtitle:t}}))}var BO=new AbortController,{signal:IO}=BO,rl=0,al=0,Qi=!1,hi,pC=0,Ra=[];function t4(e){_O(),ud().forEach(t=>{Ud(e,t)})}function Ud(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&HO(n,t);function s(){o=!o,o?(D.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Ud(n,t)):(D.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Ud(n,t))}t.document.addEventListener(Es,s),Ra.push(()=>{t.document.removeEventListener(Es,s)});let u=Jn(m=>{if(!(Math.abs(m.clientX-rl)+Math.abs(m.clientY-al)<=3)&&(rl=m.clientX,al=m.clientY,Qi&&!hi&&S4(n,!1,t),o||Qi&&!hi)){let p=bC(n.rule,t);if(p){if(v4(p))return;Hd(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;v4(p)||(Hd(n,!0,t),S4(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=jn.getPressedKeyCodes();if(g.length>1&&jn[p]&&(pC=Date.now(),Qi=!1),g.length===1&&jn[p]){let h=Date.now();Qi=!0,hi&&clearTimeout(hi),hi=setTimeout(()=>{let b=pC-h;b>0&&b<=i?Qi=!1:l(m),hi=void 0},i)}};if(Ra.push(()=>{hi&&clearTimeout(hi)}),a)return;nl("mousemove",u,t),Ra.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Qi=!1}if(nl("blur",d,t),Ra.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=c1;nl("keyup",gC,t),Ra.push(()=>{t.removeEventListener("keyup",gC)}),p.includes(m)?jn("*",{scope:"mouseHover",element:t.document},c):jn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),jn.setScope("mouseHover"),Ra.push(()=>{jn.deleteScope("mouseHover")})}}function _O(){try{Ra.forEach(e=>e())}catch{}Ra=[],jn.setScope("all")}function gC(e){Qi=!1}function nl(e,t,n=window){return n.addEventListener(e,t,{signal:IO})}function Hd(e,t,n,r){if(r=r||bC(e.rule,n),!r){D.debug("can not find selection part!");return}if(NO(e,r,t))return;if(v4(r)){D.debug("exclude dom");return}dC(e,r);let i=Ju();i&&(i.setupMouseHoverListener=Ud);let o=an(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=b4(i,e);Da({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{t0(n.document.documentElement)!==l.state.translationMode&&Qr(n.document.documentElement,l.state.translationMode),Hi(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();at(Y3,p);let g={translation_service:u?.translationService||""};je("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function bC(e,t){return OO(rl,al,e,t)}function OO(e,t,n,r){let a=$y(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=e9(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:hC(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){D.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{UO(e,a)}),!0}function jO(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(B+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${B}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function UO(e,t){let n=Ju();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Bu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function x4(e){return!!(e.host&&e.mode)}function fC(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||x4(n))return e;for(;n&&n.nodeName!=="BODY"&&!x4(n)&&Hp(n,t);){let r=n.parentNode;if(r&&x4(r))break;n=r}return n}function hC(e,t){return e.nodeType===Node.TEXT_NODE||Hp(e,t)?fC(e,t):e}function yC(e,t,n){rl=t.clientX,al=t.clientY,Hd(e,!0,n),S4(e,!0,n)}async function S4(e,t,n,r){if(!X0(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=t9(rl,al,e.rule,n);if(!a||sh(a.src)||a.translationStatus==="translating")return;let i=xh(a);if(i&&!t||i&&!r)return;if(i){Gi(a);return}if(!await _s(e)){od("image_mouse_hover");return}Wi(e,a,!0,"image_mouse_hover")}function HO(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Hd(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};nl("mousedown",i,t),nl("mouseup",o,t),Ra.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var il=[];function T4(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),il.push(()=>{document.removeEventListener("click",i)})}function xC(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),il.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function qd(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),il.push(()=>{document.removeEventListener("touchstart",r)})}var C4={touchShortcutsOff:()=>{},"multipleClick.2":T4,"multipleClick.3":T4,"multipleClick.4":T4,"slide.left":xC,"slide.right":xC,"fingers.2":qd,"fingers.3":qd,"fingers.4":qd,"fingers.5":qd};async function jS(e,t=window){try{KO();let n=await bn(),r=u1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=qO(e,n,a.command),o=C4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{VO(a.command,e,t,l)})})}catch(n){D.error(n)}}function qO(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var zO=()=>{Jh();let e=new CustomEvent(yr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},WO=()=>{Xh();let e=new CustomEvent(yr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},GO=()=>{Zh();let e=new CustomEvent(yr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},vC=0,VO=(e,t,n,r)=>{if(!(new Date().getTime()-vC<200)){if(vC=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")zO();else if(e==="touchShortcutsToggleTranslationMask")GO();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")WO();else if(e==="touchShortcutsToggleTranslateTouchElement")yC(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Bh(r,t,n,s)}}};function KO(){il.forEach(e=>{e()}),il=[]}function SC(e){let{t}=se(),{ctx:n,setSettings:r}=e,a=YO(e);return ws(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(oi,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Ms[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(QO,{...e})}function YO({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=se(),a=ye(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ye(()=>Ms.filter(s=>!(s==="Off"||Ms.includes(a)&&s==="OtherCustom")),[e,a]);return ye(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ho(s)}),l=Ms.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function QO(e){let{ctx:t,setSettings:n}=e,{t:r}=se(),a=t.config.generalRule,i=Object.keys(C4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(oi,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function TC(e){let{isAlwaysTranslateLang:t}=JO({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=se();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:ei(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:i0(e.currentLang,u.matches),excludeMatches:i0(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=a0(e.currentLang,u[i]),u[o]=i0(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function JO({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function wC({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=se(),i=De(),o=ye(()=>{let s=[{title:a("widget.translateFile"),icon:s6,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:m6,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(w1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:g6,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(C1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(_n,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(CC,{...s})}):x(CC,{...s}))})}function CC(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}var ZO=["bing","transmart","google","yandex"];function AC(e){let{t}=se();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:qo,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service`)}})]}):null}var EC="popup_trial_pro_show_count";function kC(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=G(null),s=Ce(!1);te(()=>{Ai(EC,0).then(l=>{o(l)})},[]);let u=ye(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!ZO.includes(d)},[t,n,r,i]);return te(()=>{!u||i==null||s.current||(s.current=!0,ki(EC,i+1))},[u,i,s,a]),{showTrialPro:u}}function DC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function PC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function Nu(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=G(""),[c,d]=G(null),[m,p]=G(null);te(()=>{pt.get(mt,null).then(y=>{y?(d(y),p(ht(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,h=ct();n&&h&&(g=n.generalRule.showSponsorOnSafari);let b=Za(n),{showTrialPro:f}=kC({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[b&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(h6,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(aN,{openSharePage:r})]}),x(Sx,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(zv,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(AC,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(eN,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(nN,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x(iN,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x(lg,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(Vv,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(SC,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(TC,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x($O,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(XO,{ctx:a})]}),x(wC,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),x(tN,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function XO({ctx:e}){if(e.rule.imageRule?.type!="manga"||!$0(e.rule.imageRule))return null;let{t}=se();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function $O(e){let{t}=se(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ye(()=>!i.disabled&&fm.includes(i.type||""),[n,fm,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Yc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function eN(e){let{t}=se(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(_n,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?l6:c6})})}function tN(e){let{t,lang:n}=se(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=Ae(y=>{i&&(o(v=>$c({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=du(i,s.rawUserConfig),d=De(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[u6,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(rN,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(ug,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(Dn),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?h():y.value==="changeToTranslateTheMainPage"?b():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(Dn,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(v1,m):y.value==="cleanCache"?rh().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function h(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function b(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function nN({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=se(),l=r.config,c=ye(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");ya(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?kn()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):ne()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Yn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${Ho(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function rN({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=se(),o=yn();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${B}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),L9(`${oe}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[Uy(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function aN(e){let{t}=se();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),d6]})}function iN({aiContextInfo:e,curUrl:t}){let{t:n}=se();if(!e?.visible)return null;let r=ye(()=>{let a=new URL(t);return a.searchParams.append(Hl,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[DC(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(_n,{text:n("contextDiffPreview",{1:r}),children:PC()})]})}function E4(){let[e,t]=G("Original"),n=Ce(""),{t:r}=se(),[a,i,o,s]=Br(()=>{setTimeout(()=>{Cn("updateGlobalContext",!1)()},250)});ss(a,i);let[u,l]=G(null),[c,d]=G(null),[m,p]=G(null),[g,h]=G("auto"),[b,f]=G(null),[y,v]=G({visible:!1,preview:!1}),S=Ce(!1),w=Ce(),[C,T]=G({}),A=Ce(!1),[{errorMsg:k,disableButton:R,noPermissionPDF:F},P]=G({errorMsg:"",disableButton:!1,noPermissionPDF:!1});te(()=>{We().any&&T({width:"100%"})},[]),te(()=>{wt().then(re=>l(re))},[a]),te(()=>{if(!(!c||!u)){if(S.current&&w.current){w.current.getAsyncContextString().then(re=>{if(re){let N=JSON.parse(re);f(N)}});return}ir({url:c,config:u}).then(re=>{S.current||f(re)})}},[c,u,S,w]),te(()=>(L(),()=>{globalThis.document.removeEventListener(Ps,z)}),[]);let I=Ae((re,N)=>{Cn("change_translate_service",!1,{translation_service:`${re}_${N}`})()},[]);if(te(()=>{!b||A.current||(A.current=!0,Cn("popupEventReport",!1,{key:"show_popup",events:[{name:"show_popup",params:{}}]})())},[b]),!u||!b)return null;return x(Ou,{children:x(Nu,{type:"popup",style:C,aiContextInfo:y,onClose:MC,onToggleTranslate:Cn("toggleTranslatePage"),onToggleEnabled:ie,openOptionsPage:mN,openAboutPage:dN,openSharePage:lN,onTranslatePdf:()=>{V(n.current||c||"")},onChangeService:I,onTranslateTheMainPage:Cn("translateTheMainPage"),onTranslateTheWholePage:Cn("translateTheWholePage"),onTranslateToThePageEndImmediately:Cn("translateToThePageEndImmediately"),onSwitchTranslationMode:re=>{Cn("switchTranslationMode",!0,{mode:re})()},onTranslatePage:Cn("translatePage"),onRestorePage:Cn("restorePage",!1),onWebReport:Cn("webReport"),onSetPageLanguage:Ie,setSettings:i,config:u,pageStatus:e,ctx:b,currentUrl:c,currentLang:g,onSetLocalConfig:Rt,onSetBuildinConfig:Ec,request:Sa,errorMsg:k,disabledButton:R,noPermissionPDF:F,onAutoEnableSubtitleChanged:Cn("autoEnableSubtitleChanged"),onToggleEnableEditTranslation:Cn("toggleEnableEditTranslation"),updateContextState:re=>Cn("updateContextState",!1,re)(),onOpenUrl:cN,onUpdateFloatBallEnable:Cn("updateFloatBallEnable")})});async function L(){let re=pu(),N=await $.tabs.query({currentWindow:!0,active:!0}),j=N[0].id;p(j);let W=LC(j,re);w.current=W;let me=N[0].url;if(_(j),globalThis.document.addEventListener(Ps,z),!me){d("about:newtab");return}d(me),d0(me)?(O(W,j,me),RC(j,async()=>{let ce=await W.getContextString(),ze=await W.getPageStatus(),pe=await wt(),he=await W.getCurrentPageLanguage(),ge=await w.current?.getAIContextInfo();if(v({visible:!!ge?.used,preview:ge?.sourceProgram=="html"}),t(ze),l(pe),h(he),ce){let de=JSON.parse(ce);if(de){if(f(de),S.current=!0,ya(de.rule)){let Se=await W.getPdfWebUrl();n.current=Se}}else D.error("contextStr is empty",ce)}he==="auto"&&setTimeout(async()=>{let de=await W.getCurrentPageLanguage();h(de)},500)})):ag(me||"")?sN(me||"")&&oN(me||"").then(ce=>{ce||P({disableButton:!1,noPermissionPDF:!0,errorMsg:r("noLocalFilePermissionForPDF")})}):P({disableButton:!0,errorMsg:r("noPermissionForThisPage"),noPermissionPDF:!1})}function _(re){$.tabs.onUpdated.addListener((N,j,W)=>{re===N&&W.url&&d(W.url)})}function O(re,N,j){re.ping().then(W=>{P({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),w4[N]=!0,FC(N)}).catch(W=>{let me="Could not establish connection. Receiving end does not exist.";kn()&&W.message===me?P({disableButton:!0,errorMsg:r("noPermissionForThisPage"),noPermissionPDF:!0}):$9(j)?P({disableButton:!0,errorMsg:r("noPermissionForLocalFile"),noPermissionPDF:!1}):X9(j)||P({disableButton:!0,errorMsg:r("reloadCurrentPage"),noPermissionPDF:!1}),D.debug("ping failed, but it is ok. cause maybe content is not injected",W)})}function z(re){let{tabId:N,payload:j}=re.detail,{method:W,data:me}=j;D.debug("popup received message",W,me||" "),W==="setPageStatus"?N&&t(me):W==="ready"&&N&&(P({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),w4[N]=!0,FC(N))}function V(re){re&&($.tabs.create({url:k1(re)}),globalThis.close())}function ie(){i(re=>({...re,enabled:!re.enabled})),setTimeout(()=>{MC()},50)}function Ie(re){let N=pu();if(h(re),m&&c){let j=bl(c,re,u.sourceLanguageUrlPattern);i(W=>({...W,sourceLanguageUrlPattern:j})),RC(m,()=>{LC(m,N).setCurrentPageLanguageByClient(re)})}}}function Cn(e,t=!0,n={}){return async()=>{let r=pu(),i=(await $.tabs.query({currentWindow:!0,active:!0}))[0].id,o={trigger:"popup",...n};r.sendMessage(`content_script:main:${i}`,{method:e,data:o}),t&&setTimeout(()=>{globalThis.close()},10)}}async function oN(e){try{let t=new URL(e),n=await fetch(t.href);return!0}catch{return!1}}function sN(e){try{return new URL(e).protocol==="file:"}catch{return!1}}var uN={setCurrentPageLanguageByClient:e=>Promise.resolve(),ping:e=>Promise.resolve(),getPageStatus:e=>Promise.resolve(),getCurrentPageLanguage:e=>Promise.resolve(),getContextString:e=>Promise.resolve(),getAsyncContextString:e=>Promise.resolve(),getPdfWebUrl:()=>Promise.resolve(""),getAIContextInfo:()=>Promise.resolve({})};function LC(e,t){function n(a,i){let o=`content_script:main_sync:${e}`;return a.includes("Async")&&(o=`content_script:main:${e}`),t.sendMessage(o,{method:a,data:i})}let r={...uN};return Object.keys(r).forEach(a=>{r[a]=n.bind(null,a)}),r}var lN=()=>{Cn("shareToDraft")()};function cN(e,t){let n=e;t&&(n=`${e}?utm_source=extension&utm_medium=extension&utm_campaign=${t}`),$.tabs.create({url:n}),setTimeout(()=>{globalThis.close()},50)}function dN(){$.tabs.create({url:$.runtime.getURL("options.html#about")}),setTimeout(()=>{globalThis.close()},50)}function MC(){globalThis.close()}function mN(e=!1,t=""){let n=$.runtime.getURL("options.html");$.tabs.create({url:n+t}),setTimeout(()=>{globalThis.close()},50)}var Ji={},w4={};function RC(e,t){if(w4[e])try{t()}catch(n){D.error("run callback failed",n)}else Ji[e]||(Ji[e]=[]),Ji[e].push(t)}function FC(e){if(Ji[e]&&Ji[e].length){let t=[...Ji[e]];Ji[e]=[],t.forEach(n=>n())}}async function BC(){try{if(ne())return;let e=$.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(qa,n)}catch{}}var IC=document.getElementById("mount");t6();IC&&(async()=>{let e=await wt();await BC(),e.debug&&D.setLevel("debug"),zr(x($a,{lang:e.interfaceLanguage,children:x(E4,{})}),IC)})();})(); +`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Yt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=hd(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),ju(this.ctx,n,r)}getTranslationMode(t){return Pa(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=B+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;ze(this.ctx,n);let r=t.filter(a=>a.text);La(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Yu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=jn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&md({id:B+"quick-button",parent:n,ctx:this.ctx,Component:HS,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:qS+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Yi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return vc(t.slice(0,50).map(n=>n.text).join(" "))}};function tC(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var Sd=class extends $e{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!Ze(Ee(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Qe(X(r),this.ctx.targetLanguage);if(a||Pa(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(LS(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=PS(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${tt}subtitles/yt-asr-subs`;try{let a=await mc(t),o=(await Q({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(D.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){D.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Qe(X(o),r)&&!Pa(X(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Qe(X(d.languageCode),r)&&!Pa(X(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>X(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=X(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=tC(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>X(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>X(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return X(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=B+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Qe(X(a[u]),this.ctx.targetLanguage)&&!Pa(X(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:aS(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await qe(Ee(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Yu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await qe(Ee(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=gd(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await je({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Qe(X(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Ee()&&(this.lastReportUrl=Ee(),ze(this.ctx,X(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),fd(a.arrayBuffer,a.document))}catch{}}};var Cd=class extends $e{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Qe(X(i),this.ctx.targetLanguage))return null;ze(this.ctx,X(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:X(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,X(i));return}this.downloadSubtitle(o,X(i),[]);let u=await this.requestHumanSubtitle(o,X(i),r);if(u)return this.handleIOSFullScreen(u,X(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,X(i));return l?(this.handleIOSFullScreen(l,X(i)),l.documentElement.outerHTML):null}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){D.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[X(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return D.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ms(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!ne()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Ku(a,n,i,this.ctx)}catch(a){D.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Ee()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var gi=class extends $e{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Qe(X(t.language),this.ctx.targetLanguage))return;let r=a=>{if(D.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),X(i.language)),i.isTranslated=!0;return}ze(this.ctx,X(i.language)),this.translateSubtitle([...i.cues||[]],X(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>sO(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){D.error("download subtitle error",i)}return t}catch(r){D.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function sO(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var aa=class extends gi{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&ze(this.ctx,X(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Qe(X(t.language),this.ctx.targetLanguage))return;let r=a=>{D.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,X(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var hs=class extends aa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=ds(r),i=await je({text:a.subtitles.map(l=>l.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Qe(X(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,X(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){D.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),pi(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}};var wd=class extends $e{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Qe(X(a),this.ctx.targetLanguage))return null;ze(this.ctx,X(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,X(a));return JSON.stringify(o)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:Oh(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){D.debug("translate subtitle:",o,s,u);return}let l=Ur(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${Oh(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Ed=class extends gi{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Qe(X(i),this.ctx.targetLanguage))return null;ze(this.ctx,X(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,X(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,X(i))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=cs(t),s=cs(i),u=ms(o,s);return{text:pi(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=cs(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){D.debug("translate subtitle:",i,o,s);return}let u=Ur(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),pi(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[X(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Ee()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Ad=class extends $e{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=nC(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=nC(o,r.itemsPath):s=lO(o,r),!s?.length)continue;let u=await je({text:s.map(l=>$u(l,r.textKey)).join(` +`),pageLangs:[Ct(),"en"]});if(Qe(X(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:$u(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),ze(this.ctx,X(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>$u(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=uO(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function nC(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Io(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,ze(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return rr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Vp(t);o.append(rt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await je({text:n,pageLangs:[dt(),"en"]});return Ro(t,r)?void 0:(await _i({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ve(),n=await qe(Ee(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await qe(Ee(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var kd=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=cO(r),o=await je({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(Qe(X(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=rC(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,X(o));let s=await this.translateSubtitle(a,i,X(o));if(this.config.enableHookDownload)try{let u=rC(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),X(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Ur(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(el,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},el="http://www.w3.org/ns/ttml";function cO(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(el,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(el,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(el,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function rC(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(el,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:aC(i),end:aC(o),text:s})}),r}function aC(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Dd=class extends $e{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=ds(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Qe(o,this.ctx.targetLanguage))return null;if(ze(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,X(o))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ms(n.subtitles,cs(u));return n.subtitles=l,pi(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Yt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){D.debug("translate subtitle:",a,i,o);return}let s=Ur(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),pi(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>X(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=pO(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return je({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Ee()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=mO(r),i=dO(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function dO(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function mO(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function pO(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Pd=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=gd(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await je({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Qe(X(s),this.ctx.targetLanguage)?null:(ze(this.ctx,X(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),fd(a.arrayBuffer,a.document))}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Ld=class extends $e{async requestSubtitle(t){let n=await qe(Ee(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new hs(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Nh(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}lS(a),zh(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Md=class extends $e{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(iC).forEach(n=>{iC[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Qe(X(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return D.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(ze(this.ctx,t),La(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=sS(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},iC={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Rd=class extends aa{constructor(t){super(t),new bs(t)}};var Fd=class extends aa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Yi.parse(r),i=a.filter(c=>c.type==="caption"),o=await je({text:i.map(c=>c.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Qe(X(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,X(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){D.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Yi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Bd=class extends $e{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await je({text:a.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Qe(X(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,X(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),X(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",h=Uh(g,l),f=Uh(b,l),y=on(h),v=on(f);u==="duration"&&(v=y+v);let T=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(T||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var Id=class extends $e{hasSubtitle=!1;async mutationVideoChange(){let t=gO(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(ze(this.ctx,"ja","av"),this.hasSubtitle=!0,La(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await Q({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Yi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){D.error("fetchSubtitle",n);return}}};function gO(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var _d=class extends $e{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(ze(this.ctx,n.language_code),La(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var fO={youtube:Sd,netflix:Cd,webvtt:hs,khanacademy:wd,udemy:Ed,hulu:Ld,mubi:_d,text_track:gi,text_track_dynamic:aa,general:Ad,live:bs,ebutt:kd,disneyplus:Dd,"fmp4.xml":Pd,multi_attach_vtt:Md,twitter:Rd,subsrt:Fd,xml:Bd,av:Id},Od;async function ES(e){try{ne()&&await it(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=fO[t.type];if(!n)return;Od=new n(e)}catch(t){D.error(t)}}async function g4(){Od?.onPageStatusChange()}async function hO(e,t){if(Od?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&at())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),_e("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function bO(){Od?.onTranslationModeChanged()}yb({autoEnableSubtitleChanged:hO,reloadSubtitleWithTranslationModeChanged:bO});var le=null;function Qu(){return le||null}function Td(e){os(document,e),yO(e),EO(e),SO(e),wO(e),TO(le),Mn("Translated"),CO(le),u5(fs),xO(le),g4(),BO()}function yO(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=an(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}Jv(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}as(e)&&Et(document.documentElement,Y+"_rtl",e.targetLanguage)}function xO(e){let t=e.ctx;dC(t,!0),l5(e),v9(window.location.href)}function vO(e){let t=e.ctx;dC(t,!1),c5()}async function TO(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await lC(e.ctx,an(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await di(s,e);await di(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await di(s,e)}function lC(e,t){mb(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=e5(e,t);return D.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(D.debug("requestTermsByContext contextTerms articleNode",r),xo({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function SO(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Vt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Rt({...t,tempTranslationUrlMatches:[...i]})}}function CO(e){e.ctx.rule.isTranslateTitle&&(qf(e.ctx),e.titleDynamicObserver=n5(e.ctx))}function wO(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Xh(e,t){le&&(e.filterRule=an(e,!0),e.isRichTranslate=Mo(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=an(e)),le.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},le.translationService=e.translationService,le.urlChangeDelay=e.rule.urlChangeDelay,le.immediateTranslateCapacity=e.state.immediateTranslationTextCount,le.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Yr(document.documentElement,le.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function EO(e){let t=Gs();le&&(t=le.id),le=le||{},le.ctx=e,le.id=t,le.paragraphQueue=le.paragraphQueue||[],Xh(e),le.currentUrl=window.location.href,le.paragraphEntities=le.paragraphEntities||{},le.autoIncreaseParagraphId=le.autoIncreaseParagraphId||1,le.interruptEffectDOM=!1,le.observeContainers=le.observeContainers||[],le.observeParagraphs=le.observeParagraphs||[],le.dynamicContainerObserver=le.dynamicContainerObserver||RO(le),le.ignoreResizeObserver=le.ignoreResizeObserver||FO(le),le.containerVisibleObserver=le.containerVisibleObserver||DO(le),le.paragraphVisibleObserver=le.paragraphVisibleObserver||PO(le),le.injectCssToDocument=Nd,le.walkContainer=ka,e.specialAiAssistant=Ca(e,e.translationService,!0),window.onerror=kO(le,e),window.immersiveTranslateSwitchTranslateState=h4.bind(le)}function cC(e,t){t.getRootNode()instanceof ShadowRoot?Nd(t.getRootNode(),e):Nd(t.ownerDocument,e),AO(e)}function AO(e){le||(le={},le.ctx=e,le.id=Gs(),f4(le,e))}function f4(e,t){let n={...e};n.injectCssToDocument=Nd,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=h4.bind(n);let r=Ca(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Mo(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function fs(e=!0){le&&(Mn("Original"),g4(),vO(le),Bu(),le.interruptEffectDOM=!0,le.ignoreResizeObserver?.disconnect(),le.dynamicContainerObserver?.disconnect(),le.containerVisibleObserver?.disconnect(),le.paragraphVisibleObserver?.disconnect(),le.titleDynamicObserver?.disconnect(),r5(le.ctx),g9(),f9(),e&&h4.call(le,"original"),Object.values(le.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),le=null)}function kO(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),fs(),n=setTimeout(()=>{Td(t)},e.urlChangeDelay||2e3)),!0}}function DO(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await Vf(e,r.target),n.unobserve(r.target))})}function PO(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{Kf(e,o)}),n.unobserve(a)}})})}var oC;function LO(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function MO(e){if(e.urlChangeDelay<=0||(clearTimeout(oC),e.translateState=="original"))return!1;fs(e.urlChangeDelay>20),oC=setTimeout(()=>{let t=e.ctx;Td(t)},e.urlChangeDelay)}function RO(e){let t=e.ctx.rule,n=an(e.ctx);return new MutationObserver(r=>{if(LO(e)&&(lC(e.ctx,n),t.mutationConfig.enableUrlChange&&MO(e))||e.interruptEffectDOM)return;let a=e0(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!rr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&rr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Fl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;sC(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&Xf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&sC(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ft.isSkipMarkEle(i.target)&&!ft.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Vr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Io(n,o.parentElement);l&&(ft.clearToParentMark(o,l),uC(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&uC(e,i.target)}catch(o){D.error(o)}}})}function sC(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{Zf(n),ka({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{Hi(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function uC(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ft.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{di(t,e,n),i.timer=null},a)}function Zf(e){e.paragraphs=[],ft.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${B}-walked]`).forEach(t=>{t.paragraphs=void 0,ft.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function Xf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function FO(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);If(i)||(n.unobserve(r.target),ft.clearMark(a),di(a,e))}})}async function h4(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Or(),await it(50),Zt({method:"translatePage"});return}this.translateState=e,Yr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Yr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Fu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function Nd(e,t){if(e instanceof HTMLIFrameElement){os(e.contentDocument,t);return}os(e,t)}async function AS(e){let t=at(),n="auto";if(ne()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=zp(e.mainFrame),n=await je({text:r,pageLangs:["en"]})):(r=Lo(e.mainFrame).slice(0,1e3),n=await je({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await je({text:Lo(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=zp(e.mainFrame),n=await je({text:r,pageLangs:["en"]})}else n=await Tb();return n==="auto"&&(n=await s5()),sb(n),n}async function kS(){if(!le)return;Bu(),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=le.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){le.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Ll}='${n}']`);i&&i.remove()}}G0.call(le,le.ctx)}async function Dh(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),_e("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:dt()});let r=le?.ctx||t,a=await Vt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:a5(r)},await Rt(a);let o=De().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Gr(o)}catch(i){D.error(i)}}async function _T(){let e=await Vt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(z3,{detail:JSON.stringify(e.draft)}))}async function BO(){try{if(await Mi("reportActive")||"")return;D.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Mr();await Q({url:tt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Er("reportActive","1")}catch(e){D.error(e)}}function dC(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(io,{detail:{tempEnableSubtitle:t}}))}var IO=new AbortController,{signal:_O}=IO,nl=0,rl=0,Qi=!1,fi,mC=0,Ma=[];function $h(e){OO(),sd().forEach(t=>{jd(e,t)})}function jd(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&qO(n,t);function s(){o=!o,o?(D.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,jd(n,t)):(D.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,jd(n,t))}t.document.addEventListener(Es,s),Ma.push(()=>{t.document.removeEventListener(Es,s)});let u=Jn(m=>{if(!(Math.abs(m.clientX-nl)+Math.abs(m.clientY-rl)<=3)&&(nl=m.clientX,rl=m.clientY,Qi&&!fi&&x4(n,!1,t),o||Qi&&!fi)){let p=hC(n.rule,t);if(p){if(y4(p))return;Ud(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;y4(p)||(Ud(n,!0,t),x4(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=Un.getPressedKeyCodes();if(g.length>1&&Un[p]&&(mC=Date.now(),Qi=!1),g.length===1&&Un[p]){let b=Date.now();Qi=!0,fi&&clearTimeout(fi),fi=setTimeout(()=>{let h=mC-b;h>0&&h<=i?Qi=!1:l(m),fi=void 0},i)}};if(Ma.push(()=>{fi&&clearTimeout(fi)}),a)return;tl("mousemove",u,t),Ma.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Qi=!1}if(tl("blur",d,t),Ma.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=u1;tl("keyup",pC,t),Ma.push(()=>{t.removeEventListener("keyup",pC)}),p.includes(m)?Un("*",{scope:"mouseHover",element:t.document},c):Un(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Un.setScope("mouseHover"),Ma.push(()=>{Un.deleteScope("mouseHover")})}}function OO(){try{Ma.forEach(e=>e())}catch{}Ma=[],Un.setScope("all")}function pC(e){Qi=!1}function tl(e,t,n=window){return n.addEventListener(e,t,{signal:_O})}function Ud(e,t,n,r){if(r=r||hC(e.rule,n),!r){D.debug("can not find selection part!");return}if(jO(e,r,t))return;if(y4(r)){D.debug("exclude dom");return}cC(e,r);let i=Qu();i&&(i.setupMouseHoverListener=jd);let o=an(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=f4(i,e);ka({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{e0(n.document.documentElement)!==l.state.translationMode&&Yr(n.document.documentElement,l.state.translationMode),Hi(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();ct(V3,p);let g={translation_service:u?.translationService||""};_e("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function hC(e,t){return NO(nl,rl,e,t)}function NO(e,t,n,r){let a=Zy(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=Xy(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:fC(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){D.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{HO(e,a)}),!0}function UO(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(B+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${B}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function HO(e,t){let n=Qu();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Fu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function b4(e){return!!(e.host&&e.mode)}function gC(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||b4(n))return e;for(;n&&n.nodeName!=="BODY"&&!b4(n)&&Hp(n,t);){let r=n.parentNode;if(r&&b4(r))break;n=r}return n}function fC(e,t){return e.nodeType===Node.TEXT_NODE||Hp(e,t)?gC(e,t):e}function bC(e,t,n){nl=t.clientX,rl=t.clientY,Ud(e,!0,n),x4(e,!0,n)}async function x4(e,t,n,r){if(!Z0(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=$y(nl,rl,e.rule,n);if(!a||sh(a.src)||a.translationStatus==="translating")return;let i=xh(a);if(i&&!t||i&&!r)return;if(i){Gi(a);return}if(!await Is(e)){id("image_mouse_hover");return}Wi(e,a,!0,"image_mouse_hover")}function qO(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Ud(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};tl("mousedown",i,t),tl("mouseup",o,t),Ma.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var al=[];function v4(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),al.push(()=>{document.removeEventListener("click",i)})}function yC(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),al.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Hd(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),al.push(()=>{document.removeEventListener("touchstart",r)})}var T4={touchShortcutsOff:()=>{},"multipleClick.2":v4,"multipleClick.3":v4,"multipleClick.4":v4,"slide.left":yC,"slide.right":yC,"fingers.2":Hd,"fingers.3":Hd,"fingers.4":Hd,"fingers.5":Hd};async function OT(e,t=window){try{YO();let n=await hn(),r=o1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=zO(e,n,a.command),o=T4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{KO(a.command,e,t,l)})})}catch(n){D.error(n)}}function zO(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var WO=()=>{Yh();let e=new CustomEvent(yr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},GO=()=>{Jh();let e=new CustomEvent(yr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},VO=()=>{Qh();let e=new CustomEvent(yr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},xC=0,KO=(e,t,n,r)=>{if(!(new Date().getTime()-xC<200)){if(xC=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")WO();else if(e==="touchShortcutsToggleTranslationMask")VO();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")GO();else if(e==="touchShortcutsToggleTranslateTouchElement")bC(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Fh(r,t,n,s)}}};function YO(){al.forEach(e=>{e()}),al=[]}function vC(e){let{t}=se(),{ctx:n,setSettings:r}=e,a=QO(e);return ws(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(ii,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Ls[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(JO,{...e})}function QO({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=se(),a=ye(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ye(()=>Ls.filter(s=>!(s==="Off"||Ls.includes(a)&&s==="OtherCustom")),[e,a]);return ye(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ho(s)}),l=Ls.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function JO(e){let{ctx:t,setSettings:n}=e,{t:r}=se(),a=t.config.generalRule,i=Object.keys(T4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(ii,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function TC(e){let{isAlwaysTranslateLang:t}=ZO({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=se();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:$a(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:a0(e.currentLang,u.matches),excludeMatches:a0(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=r0(e.currentLang,u[i]),u[o]=a0(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function ZO({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function CC({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=se(),i=De(),o=ye(()=>{let s=[{title:a("widget.translateFile"),icon:i6,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:c6,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(S1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:m6,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(T1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(_n,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(SC,{...s})}):x(SC,{...s}))})}function SC(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}var XO=["bing","transmart","google","yandex"];function EC(e){let{t}=se();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:qo,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(kn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(kn,`${e.type}_trial_pro_service`)}})]}):null}var wC="popup_trial_pro_show_count";function AC(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=G(null),s=Ce(!1);te(()=>{Ei(wC,0).then(l=>{o(l)})},[]);let u=ye(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!XO.includes(d)},[t,n,r,i]);return te(()=>{!u||i==null||s.current||(s.current=!0,Ai(wC,i+1))},[u,i,s,a]),{showTrialPro:u}}function kC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function DC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function Ou(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=G(""),[c,d]=G(null),[m,p]=G(null);te(()=>{pt.get(mt,null).then(y=>{y?(d(y),p(ht(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,b=lt();n&&b&&(g=n.generalRule.showSponsorOnSafari);let h=Ja(n),{showTrialPro:f}=AC({ctx:a,isHidden:h,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[h&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(g6,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(iN,{openSharePage:r})]}),x(xx,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(Hv,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(EC,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(tN,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(rN,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x(oN,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x(lg,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(Wv,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(vC,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(TC,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(eN,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x($O,{ctx:a})]}),x(CC,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:h})]}),x(nN,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function $O({ctx:e}){if(e.rule.imageRule?.type!="manga"||!X0(e.rule.imageRule))return null;let{t}=se();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function eN(e){let{t}=se(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ye(()=>!i.disabled&&fm.includes(i.type||""),[n,fm,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Kc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function tN(e){let{t}=se(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(_n,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?s6:u6})})}function nN(e){let{t,lang:n}=se(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ke(y=>{i&&(o(v=>Xc({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=cu(i,s.rawUserConfig),d=De(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[o6,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(aN,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(ug,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(kn),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?b():y.value==="changeToTranslateTheMainPage"?h():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(kn,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(y1,m):y.value==="cleanCache"?rh().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function b(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function h(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function rN({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=se(),l=r.config,c=ye(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");ha(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?An()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):ne()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Yn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${Ho(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function aN({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=se(),o=bn();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${B}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),D9(`${oe}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[Ny(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function iN(e){let{t}=se();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),l6]})}function oN({aiContextInfo:e,curUrl:t}){let{t:n}=se();if(!e?.visible)return null;let r=ye(()=>{let a=new URL(t);return a.searchParams.append(Ul,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[kC(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(_n,{text:n("contextDiffPreview",{1:r}),children:DC()})]})}function C4(){let[e,t]=G("Original"),n=Ce(""),{t:r}=se(),[a,i,o,s]=Fr(()=>{setTimeout(()=>{Sn("updateGlobalContext",!1)()},250)});ss(a,i);let[u,l]=G(null),[c,d]=G(null),[m,p]=G(null),[g,b]=G("auto"),[h,f]=G(null),[y,v]=G({visible:!1,preview:!1}),T=Ce(!1),w=Ce(),[C,S]=G({}),A=Ce(!1),[{errorMsg:k,disableButton:R,noPermissionPDF:F},P]=G({errorMsg:"",disableButton:!1,noPermissionPDF:!1});te(()=>{Ge().any&&S({width:"100%"})},[]),te(()=>{wt().then(re=>l(re))},[a]),te(()=>{if(!(!c||!u)){if(T.current&&w.current){w.current.getAsyncContextString().then(re=>{if(re){let N=JSON.parse(re);f(N)}});return}ir({url:c,config:u}).then(re=>{T.current||f(re)})}},[c,u,T,w]),te(()=>(L(),()=>{globalThis.document.removeEventListener(Ds,z)}),[]);let I=ke((re,N)=>{Sn("change_translate_service",!1,{translation_service:`${re}_${N}`})()},[]);if(te(()=>{!h||A.current||(A.current=!0,Sn("popupEventReport",!1,{key:"show_popup",events:[{name:"show_popup",params:{}}]})())},[h]),!u||!h)return null;return x(_u,{children:x(Ou,{type:"popup",style:C,aiContextInfo:y,onClose:LC,onToggleTranslate:Sn("toggleTranslatePage"),onToggleEnabled:ie,openOptionsPage:pN,openAboutPage:mN,openSharePage:cN,onTranslatePdf:()=>{V(n.current||c||"")},onChangeService:I,onTranslateTheMainPage:Sn("translateTheMainPage"),onTranslateTheWholePage:Sn("translateTheWholePage"),onTranslateToThePageEndImmediately:Sn("translateToThePageEndImmediately"),onSwitchTranslationMode:re=>{Sn("switchTranslationMode",!0,{mode:re})()},onTranslatePage:Sn("translatePage"),onRestorePage:Sn("restorePage",!1),onWebReport:Sn("webReport"),onSetPageLanguage:Be,setSettings:i,config:u,pageStatus:e,ctx:h,currentUrl:c,currentLang:g,onSetLocalConfig:Rt,onSetBuildinConfig:wc,request:xa,errorMsg:k,disabledButton:R,noPermissionPDF:F,onAutoEnableSubtitleChanged:Sn("autoEnableSubtitleChanged"),onToggleEnableEditTranslation:Sn("toggleEnableEditTranslation"),updateContextState:re=>Sn("updateContextState",!1,re)(),onOpenUrl:dN,onUpdateFloatBallEnable:Sn("updateFloatBallEnable")})});async function L(){let re=mu(),N=await $.tabs.query({currentWindow:!0,active:!0}),j=N[0].id;p(j);let W=PC(j,re);w.current=W;let me=N[0].url;if(_(j),globalThis.document.addEventListener(Ds,z),!me){d("about:newtab");return}d(me),c0(me)?(O(W,j,me),MC(j,async()=>{let ce=await W.getContextString(),We=await W.getPageStatus(),pe=await wt(),he=await W.getCurrentPageLanguage(),ge=await w.current?.getAIContextInfo();if(v({visible:!!ge?.used,preview:ge?.sourceProgram=="html"}),t(We),l(pe),b(he),ce){let de=JSON.parse(ce);if(de){if(f(de),T.current=!0,ha(de.rule)){let Te=await W.getPdfWebUrl();n.current=Te}}else D.error("contextStr is empty",ce)}he==="auto"&&setTimeout(async()=>{let de=await W.getCurrentPageLanguage();b(de)},500)})):ag(me||"")?uN(me||"")&&sN(me||"").then(ce=>{ce||P({disableButton:!1,noPermissionPDF:!0,errorMsg:r("noLocalFilePermissionForPDF")})}):P({disableButton:!0,errorMsg:r("noPermissionForThisPage"),noPermissionPDF:!1})}function _(re){$.tabs.onUpdated.addListener((N,j,W)=>{re===N&&W.url&&d(W.url)})}function O(re,N,j){re.ping().then(W=>{P({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),S4[N]=!0,RC(N)}).catch(W=>{let me="Could not establish connection. Receiving end does not exist.";An()&&W.message===me?P({disableButton:!0,errorMsg:r("noPermissionForThisPage"),noPermissionPDF:!0}):Z9(j)?P({disableButton:!0,errorMsg:r("noPermissionForLocalFile"),noPermissionPDF:!1}):J9(j)||P({disableButton:!0,errorMsg:r("reloadCurrentPage"),noPermissionPDF:!1}),D.debug("ping failed, but it is ok. cause maybe content is not injected",W)})}function z(re){let{tabId:N,payload:j}=re.detail,{method:W,data:me}=j;D.debug("popup received message",W,me||" "),W==="setPageStatus"?N&&t(me):W==="ready"&&N&&(P({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),S4[N]=!0,RC(N))}function V(re){re&&($.tabs.create({url:E1(re)}),globalThis.close())}function ie(){i(re=>({...re,enabled:!re.enabled})),setTimeout(()=>{LC()},50)}function Be(re){let N=mu();if(b(re),m&&c){let j=hl(c,re,u.sourceLanguageUrlPattern);i(W=>({...W,sourceLanguageUrlPattern:j})),MC(m,()=>{PC(m,N).setCurrentPageLanguageByClient(re)})}}}function Sn(e,t=!0,n={}){return async()=>{let r=mu(),i=(await $.tabs.query({currentWindow:!0,active:!0}))[0].id,o={trigger:"popup",...n};r.sendMessage(`content_script:main:${i}`,{method:e,data:o}),t&&setTimeout(()=>{globalThis.close()},10)}}async function sN(e){try{let t=new URL(e),n=await fetch(t.href);return!0}catch{return!1}}function uN(e){try{return new URL(e).protocol==="file:"}catch{return!1}}var lN={setCurrentPageLanguageByClient:e=>Promise.resolve(),ping:e=>Promise.resolve(),getPageStatus:e=>Promise.resolve(),getCurrentPageLanguage:e=>Promise.resolve(),getContextString:e=>Promise.resolve(),getAsyncContextString:e=>Promise.resolve(),getPdfWebUrl:()=>Promise.resolve(""),getAIContextInfo:()=>Promise.resolve({})};function PC(e,t){function n(a,i){let o=`content_script:main_sync:${e}`;return a.includes("Async")&&(o=`content_script:main:${e}`),t.sendMessage(o,{method:a,data:i})}let r={...lN};return Object.keys(r).forEach(a=>{r[a]=n.bind(null,a)}),r}var cN=()=>{Sn("shareToDraft")()};function dN(e,t){let n=e;t&&(n=`${e}?utm_source=extension&utm_medium=extension&utm_campaign=${t}`),$.tabs.create({url:n}),setTimeout(()=>{globalThis.close()},50)}function mN(){$.tabs.create({url:$.runtime.getURL("options.html#about")}),setTimeout(()=>{globalThis.close()},50)}function LC(){globalThis.close()}function pN(e=!1,t=""){let n=$.runtime.getURL("options.html");$.tabs.create({url:n+t}),setTimeout(()=>{globalThis.close()},50)}var Ji={},S4={};function MC(e,t){if(S4[e])try{t()}catch(n){D.error("run callback failed",n)}else Ji[e]||(Ji[e]=[]),Ji[e].push(t)}function RC(e){if(Ji[e]&&Ji[e].length){let t=[...Ji[e]];Ji[e]=[],t.forEach(n=>n())}}async function FC(){try{if(ne())return;let e=$.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Ha,n)}catch{}}var BC=document.getElementById("mount");$9();BC&&(async()=>{let e=await wt();await FC(),e.debug&&D.setLevel("debug"),qr(x(Xa,{lang:e.interfaceLanguage,children:x(C4,{})}),BC)})();})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/userscript/immersive-translate.user.js b/dist/userscript/immersive-translate.user.js index 2aa8611..3578fd9 100644 --- a/dist/userscript/immersive-translate.user.js +++ b/dist/userscript/immersive-translate.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Immersive Translate - Translate Web & PDF // @description Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual -// @version 1.12.5 +// @version 1.12.6 // @namespace https://immersive-translate.owenyoung.com/ // @author Owen Young // @homepageURL https://immersivetranslate.com/ @@ -94,7 +94,7 @@ // @description:pt-PT Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use. // @name:es Immersion Translation: Traducción bilingüe de páginas web y documentos PDF // @description:es Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use. -// @name:ko 몰입형 번역 - 웹 및 PDF 번역 +// @name:ko 몰입형 번역 - 웹 사이트 번역 확장 프로그램 | PDF 번역 | 무료 // @description:ko [몰입형 번역] 무료 (원문/번역문) 이중 언어 대조 웹사이트 번역 확장 프로그램으로 PDF 번역(조판 유지), 비디오 이중 언어 자막 번역(YouTube, Netflix 등), EPUB 전자책 번역을 지원합니다. // @name:tr Immersive Translate - Web ve PDF Çevir // @description:tr Web sayfalarını, PDF'leri ve e-kitapları çevir, video altyazılarını çevir, dil öğren @@ -121,7 +121,7 @@ // @name:fr Traduction en immersion : pages Web et PDF bilingues // @description:fr Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use. // ==/UserScript== -(()=>{var Kw=Object.defineProperty;var Yw=(e,t)=>{for(var n in t)Kw(e,n,{get:t[n],enumerable:!0})};var w={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var $w=Object.defineProperty;var Kw=(e,t)=>{for(var n in t)$w(e,n,{get:t[n],enumerable:!0})};var C={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5570,24 +5570,24 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var IN=q4(2),H4=q4(3);function q4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var Jw=/\s+/g,Xw=/[\t\n\v\f\r ]+/g;function z4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?Qw:e5;return String(e).replace(t.style==="html"?Xw:Jw,t.trim?t5(n):n)}function Qw(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function e5(){return" "}function t5(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var W4={}.hasOwnProperty;function n5(e){return e==null?"":z4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function r5(e){return H4(" "+n5(e)+" ")}function a5(e){let t=r5(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function d5(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function m5(e,t,n,r){t=g5(t,n,r);let a=[],i;if(t)for(i in t)yl.call(t,i)&&a.push([i,p5(e,t[i])]);return a.length===0?nm():a.sort(f5)}function p5(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of E5){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?X4(e)?"zh-TW":"zh-CN":t:"auto"}function eo(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var rm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Tl(e,t){let n=eo(),r=setTimeout(()=>n.reject(new rm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function st(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var e3=class{#e=0;#t=[];#n=[];#r=eo();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tX5,bgBlue:()=>nE,bgBrightBlack:()=>oE,bgBrightBlue:()=>cE,bgBrightCyan:()=>mE,bgBrightGreen:()=>uE,bgBrightMagenta:()=>dE,bgBrightRed:()=>sE,bgBrightWhite:()=>pE,bgBrightYellow:()=>lE,bgCyan:()=>aE,bgGreen:()=>eE,bgMagenta:()=>rE,bgRed:()=>Q5,bgRgb24:()=>bE,bgRgb8:()=>fE,bgWhite:()=>iE,bgYellow:()=>tE,black:()=>B5,blue:()=>U5,bold:()=>L5,brightBlack:()=>r3,brightBlue:()=>K5,brightCyan:()=>Z5,brightGreen:()=>V5,brightMagenta:()=>Y5,brightRed:()=>G5,brightWhite:()=>J5,brightYellow:()=>$5,cyan:()=>q5,dim:()=>M5,getColorEnabled:()=>k5,gray:()=>W5,green:()=>N5,hidden:()=>F5,inverse:()=>R5,italic:()=>P5,magenta:()=>H5,red:()=>O5,reset:()=>D5,rgb24:()=>hE,rgb8:()=>gE,setColorEnabled:()=>A5,strikethrough:()=>I5,stripColor:()=>xE,underline:()=>_5,white:()=>z5,yellow:()=>j5});var{Deno:t3}=globalThis,n3=typeof t3?.noColor=="boolean"?t3.noColor:!0,am=!n3;function A5(e){n3||(am=e)}function k5(){return am}function Me(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Pe(e,t){return am?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function D5(e){return Pe(e,Me([0],0))}function L5(e){return Pe(e,Me([1],22))}function M5(e){return Pe(e,Me([2],22))}function P5(e){return Pe(e,Me([3],23))}function _5(e){return Pe(e,Me([4],24))}function R5(e){return Pe(e,Me([7],27))}function F5(e){return Pe(e,Me([8],28))}function I5(e){return Pe(e,Me([9],29))}function B5(e){return Pe(e,Me([30],39))}function O5(e){return Pe(e,Me([31],39))}function N5(e){return Pe(e,Me([32],39))}function j5(e){return Pe(e,Me([33],39))}function U5(e){return Pe(e,Me([34],39))}function H5(e){return Pe(e,Me([35],39))}function q5(e){return Pe(e,Me([36],39))}function z5(e){return Pe(e,Me([37],39))}function W5(e){return r3(e)}function r3(e){return Pe(e,Me([90],39))}function G5(e){return Pe(e,Me([91],39))}function V5(e){return Pe(e,Me([92],39))}function $5(e){return Pe(e,Me([93],39))}function K5(e){return Pe(e,Me([94],39))}function Y5(e){return Pe(e,Me([95],39))}function Z5(e){return Pe(e,Me([96],39))}function J5(e){return Pe(e,Me([97],39))}function X5(e){return Pe(e,Me([40],49))}function Q5(e){return Pe(e,Me([41],49))}function eE(e){return Pe(e,Me([42],49))}function tE(e){return Pe(e,Me([43],49))}function nE(e){return Pe(e,Me([44],49))}function rE(e){return Pe(e,Me([45],49))}function aE(e){return Pe(e,Me([46],49))}function iE(e){return Pe(e,Me([47],49))}function oE(e){return Pe(e,Me([100],49))}function sE(e){return Pe(e,Me([101],49))}function uE(e){return Pe(e,Me([102],49))}function lE(e){return Pe(e,Me([103],49))}function cE(e){return Pe(e,Me([104],49))}function dE(e){return Pe(e,Me([105],49))}function mE(e){return Pe(e,Me([106],49))}function pE(e){return Pe(e,Me([107],49))}function Ma(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function gE(e,t){return Pe(e,Me([38,5,Ma(t)],39))}function fE(e,t){return Pe(e,Me([48,5,Ma(t)],49))}function hE(e,t){return typeof t=="number"?Pe(e,Me([38,2,t>>16&255,t>>8&255,t&255],39)):Pe(e,Me([38,2,Ma(t.r),Ma(t.g),Ma(t.b)],39))}function bE(e,t){return typeof t=="number"?Pe(e,Me([48,2,t>>16&255,t>>8&255,t&255],49)):Pe(e,Me([48,2,Ma(t.r),Ma(t.g),Ma(t.b)],49))}var yE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function xE(e){return e.replace(yE,"")}var im=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},vE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function om(e,t){let n={...vE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new im(a,n.maxAttempts)}var ua=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function As(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=ua[(t[r-2]&3)<<4|t[r-1]>>4],n+=ua[(t[r-1]&15)<<2|t[r]>>6],n+=ua[t[r]&63];return r===a+1&&(n+=ua[t[r-2]>>2],n+=ua[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=ua[t[r-2]>>2],n+=ua[(t[r-2]&3)<<4|t[r-1]>>4],n+=ua[(t[r-1]&15)<<2],n+="="),n}var TE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,SE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,CE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,sm={Space_Separator:TE,ID_Start:SE,ID_Continue:CE},Bt={isSpaceSeparator(e){return typeof e=="string"&&sm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||sm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||sm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},lm,Mn,ca,Cl,Pa,hr,tn,mm,Ds,wE=function(e,t){lm=String(e),Mn="start",ca=[],Cl=0,Pa=1,hr=0,tn=void 0,mm=void 0,Ds=void 0;do tn=EE(),DE[Mn]();while(tn.type!=="eof");return typeof t=="function"?cm({"":Ds},"",t):Ds};function cm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=da();if(!Bt.isHexDigit(n))throw bt(U());e+=U()}return String.fromCodePoint(parseInt(e,16))}var DE={start(){if(tn.type==="eof")throw xi();um()},beforePropertyName(){switch(tn.type){case"identifier":case"string":mm=tn.value,Mn="afterPropertyName";return;case"punctuator":Sl();return;case"eof":throw xi()}},afterPropertyName(){if(tn.type==="eof")throw xi();Mn="beforePropertyValue"},beforePropertyValue(){if(tn.type==="eof")throw xi();um()},beforeArrayValue(){if(tn.type==="eof")throw xi();if(tn.type==="punctuator"&&tn.value==="]"){Sl();return}um()},afterPropertyValue(){if(tn.type==="eof")throw xi();switch(tn.value){case",":Mn="beforePropertyName";return;case"}":Sl()}},afterArrayValue(){if(tn.type==="eof")throw xi();switch(tn.value){case",":Mn="beforeArrayValue";return;case"]":Sl()}},end(){}};function um(){let e;switch(tn.type){case"punctuator":switch(tn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=tn.value;break}if(Ds===void 0)Ds=e;else{let t=ca[ca.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,mm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ca.push(e),Array.isArray(e)?Mn="beforeArrayValue":Mn="beforePropertyName";else{let t=ca[ca.length-1];t==null?Mn="end":Array.isArray(t)?Mn="afterArrayValue":Mn="afterPropertyValue"}}function Sl(){ca.pop();let e=ca[ca.length-1];e==null?Mn="end":Array.isArray(e)?Mn="afterArrayValue":Mn="afterPropertyValue"}function bt(e){return pm(e===void 0?`JSON5: invalid end of input at ${Pa}:${hr}`:`JSON5: invalid character '${LE(e)}' at ${Pa}:${hr}`)}function xi(){return pm(`JSON5: invalid end of input at ${Pa}:${hr}`)}function a3(){return hr-=5,pm(`JSON5: invalid identifier character at ${Pa}:${hr}`)}function LE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function pm(e){let t=new SyntaxError(e);return t.lineNumber=Pa,t.columnNumber=hr,t}var ME=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vh[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let v of b){let T=l(v,g);if(T!==void 0){let S=m(v)+":";s!==""&&(S+=" "),S+=T,f.push(S)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let T=`, +}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var BN=U4(2),j4=U4(3);function U4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var Zw=/\s+/g,Jw=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?Xw:Qw;return String(e).replace(t.style==="html"?Jw:Zw,t.trim?e5(n):n)}function Xw(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Qw(){return" "}function e5(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var q4={}.hasOwnProperty;function t5(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function n5(e){return j4(" "+t5(e)+" ")}function r5(e){let t=n5(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function c5(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function d5(e,t,n,r){t=p5(t,n,r);let a=[],i;if(t)for(i in t)bl.call(t,i)&&a.push([i,m5(e,t[i])]);return a.length===0?tm():a.sort(g5)}function m5(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of w5){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?Z4(e)?"zh-TW":"zh-CN":t:"auto"}function eo(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var nm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function vl(e,t){let n=eo(),r=setTimeout(()=>n.reject(new nm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function ot(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var X4=class{#e=0;#t=[];#n=[];#r=eo();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tJ5,bgBlue:()=>tE,bgBrightBlack:()=>iE,bgBrightBlue:()=>lE,bgBrightCyan:()=>dE,bgBrightGreen:()=>sE,bgBrightMagenta:()=>cE,bgBrightRed:()=>oE,bgBrightWhite:()=>mE,bgBrightYellow:()=>uE,bgCyan:()=>rE,bgGreen:()=>Q5,bgMagenta:()=>nE,bgRed:()=>X5,bgRgb24:()=>hE,bgRgb8:()=>gE,bgWhite:()=>aE,bgYellow:()=>eE,black:()=>I5,blue:()=>j5,bold:()=>D5,brightBlack:()=>t3,brightBlue:()=>$5,brightCyan:()=>Y5,brightGreen:()=>G5,brightMagenta:()=>K5,brightRed:()=>W5,brightWhite:()=>Z5,brightYellow:()=>V5,cyan:()=>H5,dim:()=>L5,getColorEnabled:()=>A5,gray:()=>z5,green:()=>O5,hidden:()=>R5,inverse:()=>_5,italic:()=>M5,magenta:()=>U5,red:()=>B5,reset:()=>k5,rgb24:()=>fE,rgb8:()=>pE,setColorEnabled:()=>E5,strikethrough:()=>F5,stripColor:()=>yE,underline:()=>P5,white:()=>q5,yellow:()=>N5});var{Deno:Q4}=globalThis,e3=typeof Q4?.noColor=="boolean"?Q4.noColor:!0,rm=!e3;function E5(e){e3||(rm=e)}function A5(){return rm}function Me(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Pe(e,t){return rm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function k5(e){return Pe(e,Me([0],0))}function D5(e){return Pe(e,Me([1],22))}function L5(e){return Pe(e,Me([2],22))}function M5(e){return Pe(e,Me([3],23))}function P5(e){return Pe(e,Me([4],24))}function _5(e){return Pe(e,Me([7],27))}function R5(e){return Pe(e,Me([8],28))}function F5(e){return Pe(e,Me([9],29))}function I5(e){return Pe(e,Me([30],39))}function B5(e){return Pe(e,Me([31],39))}function O5(e){return Pe(e,Me([32],39))}function N5(e){return Pe(e,Me([33],39))}function j5(e){return Pe(e,Me([34],39))}function U5(e){return Pe(e,Me([35],39))}function H5(e){return Pe(e,Me([36],39))}function q5(e){return Pe(e,Me([37],39))}function z5(e){return t3(e)}function t3(e){return Pe(e,Me([90],39))}function W5(e){return Pe(e,Me([91],39))}function G5(e){return Pe(e,Me([92],39))}function V5(e){return Pe(e,Me([93],39))}function $5(e){return Pe(e,Me([94],39))}function K5(e){return Pe(e,Me([95],39))}function Y5(e){return Pe(e,Me([96],39))}function Z5(e){return Pe(e,Me([97],39))}function J5(e){return Pe(e,Me([40],49))}function X5(e){return Pe(e,Me([41],49))}function Q5(e){return Pe(e,Me([42],49))}function eE(e){return Pe(e,Me([43],49))}function tE(e){return Pe(e,Me([44],49))}function nE(e){return Pe(e,Me([45],49))}function rE(e){return Pe(e,Me([46],49))}function aE(e){return Pe(e,Me([47],49))}function iE(e){return Pe(e,Me([100],49))}function oE(e){return Pe(e,Me([101],49))}function sE(e){return Pe(e,Me([102],49))}function uE(e){return Pe(e,Me([103],49))}function lE(e){return Pe(e,Me([104],49))}function cE(e){return Pe(e,Me([105],49))}function dE(e){return Pe(e,Me([106],49))}function mE(e){return Pe(e,Me([107],49))}function La(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function pE(e,t){return Pe(e,Me([38,5,La(t)],39))}function gE(e,t){return Pe(e,Me([48,5,La(t)],49))}function fE(e,t){return typeof t=="number"?Pe(e,Me([38,2,t>>16&255,t>>8&255,t&255],39)):Pe(e,Me([38,2,La(t.r),La(t.g),La(t.b)],39))}function hE(e,t){return typeof t=="number"?Pe(e,Me([48,2,t>>16&255,t>>8&255,t&255],49)):Pe(e,Me([48,2,La(t.r),La(t.g),La(t.b)],49))}var bE=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function yE(e){return e.replace(bE,"")}var am=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},xE={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function im(e,t){let n={...xE,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new am(a,n.maxAttempts)}var oa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function As(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=oa[(t[r-2]&3)<<4|t[r-1]>>4],n+=oa[(t[r-1]&15)<<2|t[r]>>6],n+=oa[t[r]&63];return r===a+1&&(n+=oa[t[r-2]>>2],n+=oa[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=oa[t[r-2]>>2],n+=oa[(t[r-2]&3)<<4|t[r-1]>>4],n+=oa[(t[r-1]&15)<<2],n+="="),n}var vE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,TE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,SE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,om={Space_Separator:vE,ID_Start:TE,ID_Continue:SE},Bt={isSpaceSeparator(e){return typeof e=="string"&&om.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||om.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||om.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},um,Ln,ua,Sl,Ma,hr,tn,dm,Ds,CE=function(e,t){um=String(e),Ln="start",ua=[],Sl=0,Ma=1,hr=0,tn=void 0,dm=void 0,Ds=void 0;do tn=wE(),kE[Ln]();while(tn.type!=="eof");return typeof t=="function"?lm({"":Ds},"",t):Ds};function lm(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=la();if(!Bt.isHexDigit(n))throw bt(U());e+=U()}return String.fromCodePoint(parseInt(e,16))}var kE={start(){if(tn.type==="eof")throw yi();sm()},beforePropertyName(){switch(tn.type){case"identifier":case"string":dm=tn.value,Ln="afterPropertyName";return;case"punctuator":Tl();return;case"eof":throw yi()}},afterPropertyName(){if(tn.type==="eof")throw yi();Ln="beforePropertyValue"},beforePropertyValue(){if(tn.type==="eof")throw yi();sm()},beforeArrayValue(){if(tn.type==="eof")throw yi();if(tn.type==="punctuator"&&tn.value==="]"){Tl();return}sm()},afterPropertyValue(){if(tn.type==="eof")throw yi();switch(tn.value){case",":Ln="beforePropertyName";return;case"}":Tl()}},afterArrayValue(){if(tn.type==="eof")throw yi();switch(tn.value){case",":Ln="beforeArrayValue";return;case"]":Tl()}},end(){}};function sm(){let e;switch(tn.type){case"punctuator":switch(tn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=tn.value;break}if(Ds===void 0)Ds=e;else{let t=ua[ua.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,dm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ua.push(e),Array.isArray(e)?Ln="beforeArrayValue":Ln="beforePropertyName";else{let t=ua[ua.length-1];t==null?Ln="end":Array.isArray(t)?Ln="afterArrayValue":Ln="afterPropertyValue"}}function Tl(){ua.pop();let e=ua[ua.length-1];e==null?Ln="end":Array.isArray(e)?Ln="afterArrayValue":Ln="afterPropertyValue"}function bt(e){return mm(e===void 0?`JSON5: invalid end of input at ${Ma}:${hr}`:`JSON5: invalid character '${DE(e)}' at ${Ma}:${hr}`)}function yi(){return mm(`JSON5: invalid end of input at ${Ma}:${hr}`)}function n3(){return hr-=5,mm(`JSON5: invalid identifier character at ${Ma}:${hr}`)}function DE(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function mm(e){let t=new SyntaxError(e);return t.lineNumber=Ma,t.columnNumber=hr,t}var LE=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vh[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let v of b){let T=l(v,g);if(T!==void 0){let S=m(v)+":";s!==""&&(S+=" "),S+=T,f.push(S)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let T=`, `+a;v=f.join(T),y=`{ `+a+v+`, `+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!Bt.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),HE=(e,t)=>{for(var n in t)fm(e,n,{get:t[n],enumerable:!0})},gm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of OE(t))!jE.call(e,a)&&a!==n&&fm(e,a,{get:()=>t[a],enumerable:!(r=BE(t,a))||r.enumerable});return e},qE=(e,t,n)=>(gm(e,t,"default"),n&&gm(n,t,"default")),u3=(e,t,n)=>(n=e!=null?IE(NE(e)):{},gm(t||!e||!e.__esModule?fm(n,"default",{value:e,enumerable:!0}):n,e)),l3=UE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof El=="object"&&El&&El.Object===Object&&El,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(k,D,R){var F,P,O,_,I,B,W=0,te=!1,se=!1,je=!0;if(typeof k!="function")throw new TypeError(n);D=C(D)||0,T(R)&&(te=!!R.leading,se="maxWait"in R,O=se?h(C(R.maxWait)||0,D):O,je="trailing"in R?!!R.trailing:je);function Le(me){var fe=F,Se=P;return F=P=void 0,W=me,_=k.apply(Se,fe),_}function N(me){return W=me,I=setTimeout(Ee,D),te?Le(me):_}function q(me){var fe=me-B,Se=me-W,Ue=D-fe;return se?b(Ue,O-Se):Ue}function Z(me){var fe=me-B,Se=me-W;return B===void 0||fe>=D||fe<0||se&&Se>=O}function Ee(){var me=f();if(Z(me))return pe(me);I=setTimeout(Ee,q(me))}function pe(me){return I=void 0,je&&F?Le(me):(F=P=void 0,_)}function Ge(){I!==void 0&&clearTimeout(I),W=0,F=B=P=I=void 0}function de(){return I===void 0?_:pe(f())}function ge(){var me=f(),fe=Z(me);if(F=arguments,P=this,B=me,fe){if(I===void 0)return N(B);if(se)return I=setTimeout(Ee,D),Le(B)}return I===void 0&&(I=setTimeout(Ee,D)),_}return ge.cancel=Ge,ge.flush=de,ge}function v(k,D,R){var F=!0,P=!0;if(typeof k!="function")throw new TypeError(n);return T(R)&&(F="leading"in R?!!R.leading:F,P="trailing"in R?!!R.trailing:P),y(k,D,{leading:F,maxWait:D,trailing:P})}function T(k){var D=typeof k;return!!k&&(D=="object"||D=="function")}function S(k){return!!k&&typeof k=="object"}function E(k){return typeof k=="symbol"||S(k)&&g.call(k)==a}function C(k){if(typeof k=="number")return k;if(E(k))return r;if(T(k)){var D=typeof k.valueOf=="function"?k.valueOf():k;k=T(D)?D+"":D}if(typeof k!="string")return k===0?k:+k;k=k.replace(i,"");var R=s.test(k);return R||u.test(k)?l(k.slice(2),R?2:8):o.test(k)?r:+k}t.exports=v}),c3={};HE(c3,{default:()=>Kn});var zE=u3(l3());qE(c3,u3(l3()));var{default:s3,...WE}=zE,Kn=s3!==void 0?s3:WE;var Al=globalThis||(typeof window<"u"?window:self),GE=Object.create,bm=Object.defineProperty,VE=Object.getOwnPropertyDescriptor,$E=Object.getOwnPropertyNames,KE=Object.getPrototypeOf,YE=Object.prototype.hasOwnProperty,ZE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),JE=(e,t)=>{for(var n in t)bm(e,n,{get:t[n],enumerable:!0})},hm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $E(t))!YE.call(e,a)&&a!==n&&bm(e,a,{get:()=>t[a],enumerable:!(r=VE(t,a))||r.enumerable});return e},XE=(e,t,n)=>(hm(e,t,"default"),n&&hm(n,t,"default")),m3=(e,t,n)=>(n=e!=null?GE(KE(e)):{},hm(t||!e||!e.__esModule?bm(n,"default",{value:e,enumerable:!0}):n,e)),p3=ZE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Al=="object"&&Al&&Al.Object===Object&&Al,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(C,k,D){var R,F,P,O,_,I,B=0,W=!1,te=!1,se=!0;if(typeof C!="function")throw new TypeError(n);k=E(k)||0,v(D)&&(W=!!D.leading,te="maxWait"in D,P=te?h(E(D.maxWait)||0,k):P,se="trailing"in D?!!D.trailing:se);function je(ge){var me=R,fe=F;return R=F=void 0,B=ge,O=C.apply(fe,me),O}function Le(ge){return B=ge,_=setTimeout(Z,k),W?je(ge):O}function N(ge){var me=ge-I,fe=ge-B,Se=k-me;return te?b(Se,P-fe):Se}function q(ge){var me=ge-I,fe=ge-B;return I===void 0||me>=k||me<0||te&&fe>=P}function Z(){var ge=f();if(q(ge))return Ee(ge);_=setTimeout(Z,N(ge))}function Ee(ge){return _=void 0,se&&R?je(ge):(R=F=void 0,O)}function pe(){_!==void 0&&clearTimeout(_),B=0,R=I=F=_=void 0}function Ge(){return _===void 0?O:Ee(f())}function de(){var ge=f(),me=q(ge);if(R=arguments,F=this,I=ge,me){if(_===void 0)return Le(I);if(te)return _=setTimeout(Z,k),je(I)}return _===void 0&&(_=setTimeout(Z,k)),O}return de.cancel=pe,de.flush=Ge,de}function v(C){var k=typeof C;return!!C&&(k=="object"||k=="function")}function T(C){return!!C&&typeof C=="object"}function S(C){return typeof C=="symbol"||T(C)&&g.call(C)==a}function E(C){if(typeof C=="number")return C;if(S(C))return r;if(v(C)){var k=typeof C.valueOf=="function"?C.valueOf():C;C=v(k)?k+"":k}if(typeof C!="string")return C===0?C:+C;C=C.replace(i,"");var D=s.test(C);return D||u.test(C)?l(C.slice(2),D?2:8):o.test(C)?r:+C}t.exports=y}),g3={};JE(g3,{default:()=>Pn});var QE=m3(p3());XE(g3,m3(p3()));var{default:d3,...e8}=QE,Pn=d3!==void 0?d3:e8;var t8=Object.create,xm=Object.defineProperty,n8=Object.getOwnPropertyDescriptor,r8=Object.getOwnPropertyNames,a8=Object.getPrototypeOf,i8=Object.prototype.hasOwnProperty,o8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s8=(e,t)=>{for(var n in t)xm(e,n,{get:t[n],enumerable:!0})},ym=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of r8(t))!i8.call(e,a)&&a!==n&&xm(e,a,{get:()=>t[a],enumerable:!(r=n8(t,a))||r.enumerable});return e},u8=(e,t,n)=>(ym(e,t,"default"),n&&ym(n,t,"default")),h3=(e,t,n)=>(n=e!=null?t8(a8(e)):{},ym(t||!e||!e.__esModule?xm(n,"default",{value:e,enumerable:!0}):n,e)),b3=o8((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,q){var Z={};for(var Ee in N)q.indexOf(Ee)>=0||Object.prototype.hasOwnProperty.call(N,Ee)&&(Z[Ee]=N[Ee]);return Z}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},h=Object.assign||function(N){for(var q=1;q'+Ee+"
",Se.onclick=function(){return P(Ue,fe)},Se.listener=function(G){(D(G)||R(G))&&I()},F(Se,fe),Ge&&Ge<1&&(Ge=1),!ge&&Ge&&T(Ge).then(function(){return P(Ue,fe)})},W=d.force=function(N,q){var Z=N.type,Ee=Z===void 0?5:Z,pe=N.text,Ge=N.buttonText,de=Ge===void 0?"OK":Ge,ge=N.callback,me=N.position,fe=me===void 0?f.positions.force||fe.top:me;S(),I();var Se=document.createElement("div"),Ue=E();Se.id=Ue;var G=document.createElement("div");G.classList.add(f.classes.textbox),G.classList.add(f.classes.backgroundInfo),G.innerHTML='
'+pe+"
";var ye=document.createElement("div");ye.classList.add(f.classes.button),ye.classList.add(C[Ee]),ye.innerHTML=de,ye.onclick=function(){P(Ue,fe),_(),ge?ge():q&&q()},Se.appendChild(G),Se.appendChild(ye),Se.listener=function(at){D(at)&&ye.click()},F(Se,fe),O()},te=d.confirm=function(N,q,Z){var Ee=N.text,pe=N.submitText,Ge=pe===void 0?"Yes":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.confirm||Ue.top:Se;S(),I();var G=document.createElement("div"),ye=E();G.id=ye;var at=document.createElement("div");at.classList.add(f.classes.textbox),at.classList.add(f.classes.backgroundInfo),at.innerHTML='
'+Ee+"
";var Ze=document.createElement("div");Ze.classList.add(f.classes.button),Ze.classList.add(f.classes.elementHalf),Ze.classList.add(f.classes.backgroundSuccess),Ze.innerHTML=Ge,Ze.onclick=function(){P(ye,Ue),_(),me?me():q&&q()};var ve=document.createElement("div");ve.classList.add(f.classes.button),ve.classList.add(f.classes.elementHalf),ve.classList.add(f.classes.backgroundError),ve.innerHTML=ge,ve.onclick=function(){P(ye,Ue),_(),fe?fe():Z&&Z()},G.appendChild(at),G.appendChild(Ze),G.appendChild(ve),G.listener=function(vt){D(vt)?Ze.click():R(vt)&&ve.click()},F(G,Ue),O(G,Ue)},se=function(N,q,Z){var Ee=N.text,pe=N.submitText,Ge=pe===void 0?"Submit":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.input||Ue.top:Se,G=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);S(),I();var ye=document.createElement("div"),at=E();ye.id=at;var Ze=document.createElement("div");Ze.classList.add(f.classes.textbox),Ze.classList.add(f.classes.backgroundInfo),Ze.innerHTML='
'+Ee+"
";var ve=document.createElement("input");ve.classList.add(f.classes.inputField),ve.setAttribute("autocapitalize",G.autocapitalize||"none"),ve.setAttribute("autocomplete",G.autocomplete||"off"),ve.setAttribute("autocorrect",G.autocorrect||"off"),ve.setAttribute("autofocus",G.autofocus||"true"),ve.setAttribute("inputmode",G.inputmode||"verbatim"),ve.setAttribute("max",G.max||""),ve.setAttribute("maxlength",G.maxlength||""),ve.setAttribute("min",G.min||""),ve.setAttribute("minlength",G.minlength||""),ve.setAttribute("placeholder",G.placeholder||""),ve.setAttribute("spellcheck",G.spellcheck||"default"),ve.setAttribute("step",G.step||"any"),ve.setAttribute("type",G.type||"text"),ve.value=G.value||"",G.allowed&&(ve.oninput=function(){var Dt=void 0;if(Array.isArray(G.allowed)){for(var It="",kn=G.allowed,sr=0;sr'+Z+"",fe.appendChild(Ue),de.forEach(function(ye,at){var Ze=ye.type,ve=Ze===void 0?1:Ze,vt=ye.text,Vt=ye.handler,Dt=document.createElement("div");Dt.classList.add(C[ve]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var It=de[at+1];It&&!It.type&&(It.type=1),It&&It.type===ve&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){P(Se,me),_(),Vt()},fe.appendChild(Dt)});var G=document.createElement("div");G.classList.add(f.classes.backgroundNeutral),G.classList.add(f.classes.button),G.innerHTML=pe,G.onclick=function(){P(Se,me),_(),Ge?Ge():q&&q()},fe.appendChild(G),fe.listener=function(ye){R(ye)&&G.click()},F(fe,me),O(fe,me)},Le=d.date=function(N,q,Z){var Ee=N.value,pe=Ee===void 0?new Date:Ee,Ge=N.submitText,de=Ge===void 0?"OK":Ge,ge=N.cancelText,me=ge===void 0?"Cancel":ge,fe=N.submitCallback,Se=N.cancelCallback,Ue=N.position,G=Ue===void 0?f.positions.date||G.top:Ue;S(),I();var ye="▾",at=document.createElement("div"),Ze=document.createElement("div"),ve=document.createElement("div"),vt=function(Tt){at.innerHTML=f.dateMonths[Tt.getMonth()],Ze.innerHTML=Tt.getDate(),ve.innerHTML=Tt.getFullYear()},Vt=function(Tt){var nt=new Date(pe.getFullYear(),pe.getMonth()+1,0).getDate(),$n=Tt.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number($n)>nt&&($n=nt.toString()),Tt.target.textContent=$n,Number($n)<1&&($n="1"),pe.setDate(Number($n))},Dt=function(Tt){var nt=Tt.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Tt.target.textContent=nt,pe.setFullYear(Number(nt))},It=function(Tt){vt(pe)},kn=function(Tt){var nt=new Date(pe.getFullYear(),pe.getMonth()+Tt+1,0).getDate();pe.getDate()>nt&&pe.setDate(nt),pe.setMonth(pe.getMonth()+Tt),vt(pe)},sr=function(Tt){pe.setDate(pe.getDate()+Tt),vt(pe)},ws=function(Tt){var nt=pe.getFullYear()+Tt;nt<0?pe.setFullYear(0):pe.setFullYear(pe.getFullYear()+Tt),vt(pe)},Ur=document.createElement("div"),hi=E();Ur.id=hi;var Ji=document.createElement("div");Ji.classList.add(f.classes.backgroundInfo);var gn=document.createElement("div");gn.classList.add(f.classes.dateSelectorInner);var fr=document.createElement("div");fr.classList.add(f.classes.button),fr.classList.add(f.classes.elementThird),fr.classList.add(f.classes.dateSelectorUp),fr.innerHTML=ye;var fn=document.createElement("div");fn.classList.add(f.classes.button),fn.classList.add(f.classes.elementThird),fn.classList.add(f.classes.dateSelectorUp),fn.innerHTML=ye;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=ye,at.classList.add(f.classes.element),at.classList.add(f.classes.elementThird),at.innerHTML=f.dateMonths[pe.getMonth()],Ze.classList.add(f.classes.element),Ze.classList.add(f.classes.elementThird),Ze.setAttribute("contentEditable",!0),Ze.addEventListener("input",Vt),Ze.addEventListener("blur",It),Ze.innerHTML=pe.getDate(),ve.classList.add(f.classes.element),ve.classList.add(f.classes.elementThird),ve.setAttribute("contentEditable",!0),ve.addEventListener("input",Dt),ve.addEventListener("blur",It),ve.innerHTML=pe.getFullYear();var aa=document.createElement("div");aa.classList.add(f.classes.button),aa.classList.add(f.classes.elementThird),aa.innerHTML=ye;var ia=document.createElement("div");ia.classList.add(f.classes.button),ia.classList.add(f.classes.elementThird),ia.innerHTML=ye;var bi=document.createElement("div");bi.classList.add(f.classes.button),bi.classList.add(f.classes.elementThird),bi.innerHTML=ye,fr.onclick=function(){return kn(1)},fn.onclick=function(){return sr(1)},Vn.onclick=function(){return ws(1)},aa.onclick=function(){return kn(-1)},ia.onclick=function(){return sr(-1)},bi.onclick=function(){return ws(-1)};var Dn=document.createElement("div");Dn.classList.add(f.classes.button),Dn.classList.add(f.classes.elementHalf),Dn.classList.add(f.classes.backgroundSuccess),Dn.innerHTML=de,Dn.onclick=function(){P(hi,G),_(),fe?fe(pe):q&&q(pe)};var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementHalf),oa.classList.add(f.classes.backgroundError),oa.innerHTML=me,oa.onclick=function(){P(hi,G),_(),Se?Se(pe):Z&&Z(pe)},gn.appendChild(fr),gn.appendChild(fn),gn.appendChild(Vn),gn.appendChild(at),gn.appendChild(Ze),gn.appendChild(ve),gn.appendChild(aa),gn.appendChild(ia),gn.appendChild(bi),Ji.appendChild(gn),Ur.appendChild(Ji),Ur.appendChild(Dn),Ur.appendChild(oa),Ur.listener=function(Tt){D(Tt)?Dn.click():R(Tt)&&oa.click()},F(Ur,G),O(Ur,G)};d.default={alert:B,force:W,confirm:te,input:se,select:je,date:Le,setOptions:y,hideAlerts:I}}])})}).call(r,a(0)(n))}])})}),y3={};s8(y3,{default:()=>kl});var l8=h3(b3());u8(y3,h3(b3()));var{default:f3,...c8}=l8,kl=f3!==void 0?f3:c8;var Dl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ls(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function vm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function x3(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ito[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),d8=e=>Object.keys(to).find(t=>to[t]===e),m8=e=>Object.keys(yr).find(t=>yr[t]===e);function E3(e){C3=e||"all"}function Ms(){return C3||"all"}function p8(){return ut.slice(0)}function g8(){return ut.map(e=>d8(e)||m8(e)||String.fromCharCode(e))}function f8(){let e=[];return Object.keys(St).forEach(t=>{St[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Ps(o))})})}),e}function h8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function b8(e){return typeof e=="string"&&(e=Ps(e)),ut.indexOf(e)!==-1}function y8(e,t){let n,r;e||(e=Ms());for(let a in St)if(Object.prototype.hasOwnProperty.call(St,a))for(n=St[a],r=0;r=0&&ut.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ut.splice(0,ut.length),(t===93||t===224)&&(t=91),t in nn){nn[t]=!1;for(let r in yr)yr[r]===t&&(ma[r]=!1)}}function A3(e,...t){if(typeof e>"u")Object.keys(St).forEach(n=>delete St[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&Sm(n)});else if(typeof e=="object")e.key&&Sm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),Sm({key:e,scope:n,method:r,splitKey:"+"})}}var Sm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Tm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Ps(u);if(!St[l])return;t||(t=Ms());let c=s>1?vm(yr,o):[];St[l]=St[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&x3(d.mods,c)))})};function T3(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in nn)Object.prototype.hasOwnProperty.call(nn,i)&&(!nn[i]&&t.mods.indexOf(+i)>-1||nn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!nn[16]&&!nn[18]&&!nn[17]&&!nn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ut),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function S3(e,t){let n=St["*"],r=e.keyCode||e.which||e.charCode;if(!ma.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ut.indexOf(r)===-1&&r!==229&&ut.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Ll[i];e[i]&&ut.indexOf(o)===-1?ut.push(o):!e[i]&&ut.indexOf(o)>-1?ut.splice(ut.indexOf(o),1):i==="metaKey"&&e[i]&&ut.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ut=ut.slice(ut.indexOf(o))))}),r in nn){nn[r]=!0;for(let i in yr)yr[i]===r&&(ma[i]=!0);if(!n)return}for(let i in nn)Object.prototype.hasOwnProperty.call(nn,i)&&(nn[i]=e[Ll[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ut.indexOf(17)===-1&&ut.push(17),ut.indexOf(18)===-1&&ut.push(18),nn[17]=!0,nn[18]=!0);let a=Ms();if(n)for(let i=0;i-1}function ma(e,t,n){ut=[];let r=Tm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&A3(e,i);s1&&(a=vm(yr,e)),e=e[e.length-1],e=e==="*"?"*":Ps(e),e in St||(St[e]=[]),St[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!v8(o)&&window&&(w3.push(o),Ls(o,"keydown",p=>{S3(p,o)},d),v3||(v3=!0,Ls(window,"focus",()=>{ut=[]},d),Ls(window,"click",()=>{ut=[]},!1)),Ls(o,"keyup",p=>{S3(p,o),x8(p)},d))}function T8(e,t="all"){Object.keys(St).forEach(n=>{St[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Cm={getPressedKeyString:g8,setScope:E3,getScope:Ms,deleteScope:y8,getPressedKeyCodes:p8,getAllKeyCodes:f8,isPressed:b8,filter:h8,trigger:T8,unbind:A3,keyMap:to,modifier:yr,modifierMap:Ll};for(let e in Cm)Object.prototype.hasOwnProperty.call(Cm,e)&&(ma[e]=Cm[e]);if(typeof window<"u"){let e=window.hotkeys;ma.noConflict=t=>(t&&window.hotkeys===ma&&(window.hotkeys=e),ma),window.hotkeys=ma}var jn=ma;var S8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},D3={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},_n={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},_a={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},H=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=H.getVersionPrecision(e),a=H.getVersionPrecision(t),i=Math.max(r,a),o=0,s=H.map([e,t],u=>{let l=i-H.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return H.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return S8[e]}static getBrowserTypeByAlias(e){return D3[e]||""}},lt=/version\/(\d+(\.?_?\d+)+)/i,C8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=H.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=H.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=H.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=H.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=H.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=H.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=H.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=H.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=H.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=H.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=H.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=H.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=H.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=H.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=H.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=H.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=H.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=H.getFirstMatch(lt,e)||H.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=H.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=H.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=H.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=H.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=H.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=H.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=H.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=H.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=H.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=H.getFirstMatch(lt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:H.getFirstMatch(r,e),version:H.getSecondMatch(r,e)}}}],w8=C8,E8=[{test:[/Roku\/DVP/],describe(e){let t=H.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:_n.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=H.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:_n.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=H.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=H.getWindowsVersionName(t);return{name:_n.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:_n.iOS},n=H.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=H.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=H.getMacOSVersionName(t),r={name:_n.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=H.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:_n.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=H.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=H.getAndroidVersionName(t),r={name:_n.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=H.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:_n.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=H.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||H.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||H.getFirstMatch(/\bbb(\d+)/i,e);return{name:_n.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=H.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:_n.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=H.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:_n.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:_n.Linux}}},{test:[/CrOS/],describe(){return{name:_n.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=H.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:_n.PlayStation4,version:t}}}],A8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=H.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=H.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],k8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:_a.Blink};let t=H.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:_a.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:_a.Trident},n=H.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:_a.Presto},n=H.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:_a.Gecko},n=H.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:_a.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:_a.WebKit},n=H.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],D8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=H.find(w8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=H.find(E8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=H.find(A8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=H.find(k8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return H.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=H.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=H.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=H.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=H.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(H.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},k3=D8,L8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new k3(e,t)}static parse(e){return new k3(e).getResult()}static get BROWSER_MAP(){return D3}static get ENGINE_MAP(){return _a}static get OS_MAP(){return _n}static get PLATFORMS_MAP(){return Ot}},no=L8;var{entries:B3,setPrototypeOf:L3,isFrozen:M8,getPrototypeOf:P8,getOwnPropertyDescriptor:_8}=Object,{freeze:Rn,seal:vr,create:R8}=Object,{apply:Lm,construct:Mm}=typeof Reflect<"u"&&Reflect;Lm||(Lm=function(e,t,n){return e.apply(t,n)});Rn||(Rn=function(e){return e});vr||(vr=function(e){return e});Mm||(Mm=function(e,t){return new e(...t)});var F8=lr(Array.prototype.forEach),M3=lr(Array.prototype.pop),_s=lr(Array.prototype.push),_l=lr(String.prototype.toLowerCase),wm=lr(String.prototype.toString),I8=lr(String.prototype.match),xr=lr(String.prototype.replace),B8=lr(String.prototype.indexOf),O8=lr(String.prototype.trim),Yn=lr(RegExp.prototype.test),Rs=N8(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),z8=vr(/\${[\w\W]*}/gm),W8=vr(/^data-[\-\w.\u00B7-\uFFFF]/),G8=vr(/^aria-[\-\w]+$/),O3=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V8=vr(/^(?:\w+script|data):/i),$8=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N3=vr(/^html$/i),I3=Object.freeze({__proto__:null,MUSTACHE_EXPR:H8,ERB_EXPR:q8,TMPLIT_EXPR:z8,DATA_ATTR:W8,ARIA_ATTR:G8,IS_ALLOWED_URI:O3,IS_SCRIPT_OR_DATA:V8,ATTR_WHITESPACE:$8,DOCTYPE_NAME:N3}),K8=()=>typeof window>"u"?null:window,Y8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function j3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K8(),t=M=>j3(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Ml(g,"cloneNode"),b=Ml(g,"nextSibling"),f=Ml(g,"childNodes"),y=Ml(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,T="",{implementation:S,createNodeIterator:E,createDocumentFragment:C,getElementsByTagName:k}=a,{importNode:D}=n,R={};t.isSupported=typeof B3=="function"&&typeof y=="function"&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:O,DATA_ATTR:_,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:W}=I3,{IS_ALLOWED_URI:te}=I3,se=null,je=Ne({},[...P3,...Em,...Am,...km,..._3]),Le=null,N=Ne({},[...R3,...Dm,...F3,...Pl]),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,Ee=null,pe=!0,Ge=!0,de=!1,ge=!0,me=!1,fe=!1,Se=!1,Ue=!1,G=!1,ye=!1,at=!1,Ze=!0,ve=!1,vt="user-content-",Vt=!0,Dt=!1,It={},kn=null,sr=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ws=null,Ur=Ne({},["audio","video","img","source","image","track"]),hi=null,Ji=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gn="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",fn="http://www.w3.org/1999/xhtml",Vn=fn,aa=!1,ia=null,bi=Ne({},[gn,fr,fn],wm),Dn,oa=["application/xhtml+xml","text/html"],Tt="text/html",nt,$n=null,zw=a.createElement("form"),P4=function(M){return M instanceof RegExp||M instanceof Function},Xd=function(M){if(!($n&&$n===M)){if((!M||typeof M!="object")&&(M={}),M=ro(M),Dn=oa.indexOf(M.PARSER_MEDIA_TYPE)===-1?Dn=Tt:Dn=M.PARSER_MEDIA_TYPE,nt=Dn==="application/xhtml+xml"?wm:_l,se="ALLOWED_TAGS"in M?Ne({},M.ALLOWED_TAGS,nt):je,Le="ALLOWED_ATTR"in M?Ne({},M.ALLOWED_ATTR,nt):N,ia="ALLOWED_NAMESPACES"in M?Ne({},M.ALLOWED_NAMESPACES,wm):bi,hi="ADD_URI_SAFE_ATTR"in M?Ne(ro(Ji),M.ADD_URI_SAFE_ATTR,nt):Ji,ws="ADD_DATA_URI_TAGS"in M?Ne(ro(Ur),M.ADD_DATA_URI_TAGS,nt):Ur,kn="FORBID_CONTENTS"in M?Ne({},M.FORBID_CONTENTS,nt):sr,Z="FORBID_TAGS"in M?Ne({},M.FORBID_TAGS,nt):{},Ee="FORBID_ATTR"in M?Ne({},M.FORBID_ATTR,nt):{},It="USE_PROFILES"in M?M.USE_PROFILES:!1,pe=M.ALLOW_ARIA_ATTR!==!1,Ge=M.ALLOW_DATA_ATTR!==!1,de=M.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=M.SAFE_FOR_TEMPLATES||!1,fe=M.WHOLE_DOCUMENT||!1,G=M.RETURN_DOM||!1,ye=M.RETURN_DOM_FRAGMENT||!1,at=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Ze=M.SANITIZE_DOM!==!1,ve=M.SANITIZE_NAMED_PROPS||!1,Vt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,te=M.ALLOWED_URI_REGEXP||O3,Vn=M.NAMESPACE||fn,q=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&P4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&P4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Ge=!1),ye&&(G=!0),It&&(se=Ne({},[..._3]),Le=[],It.html===!0&&(Ne(se,P3),Ne(Le,R3)),It.svg===!0&&(Ne(se,Em),Ne(Le,Dm),Ne(Le,Pl)),It.svgFilters===!0&&(Ne(se,Am),Ne(Le,Dm),Ne(Le,Pl)),It.mathMl===!0&&(Ne(se,km),Ne(Le,F3),Ne(Le,Pl))),M.ADD_TAGS&&(se===je&&(se=ro(se)),Ne(se,M.ADD_TAGS,nt)),M.ADD_ATTR&&(Le===N&&(Le=ro(Le)),Ne(Le,M.ADD_ATTR,nt)),M.ADD_URI_SAFE_ATTR&&Ne(hi,M.ADD_URI_SAFE_ATTR,nt),M.FORBID_CONTENTS&&(kn===sr&&(kn=ro(kn)),Ne(kn,M.FORBID_CONTENTS,nt)),Vt&&(se["#text"]=!0),fe&&Ne(se,["html","head","body"]),se.table&&(Ne(se,["tbody"]),delete Z.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else v===void 0&&(v=Y8(p,r)),v!==null&&typeof T=="string"&&(T=v.createHTML(""));Rn&&Rn(M),$n=M}},_4=Ne({},["mi","mo","mn","ms","mtext"]),R4=Ne({},["foreignobject","desc","title","annotation-xml"]),Ww=Ne({},["title","style","font","a","script"]),hl=Ne({},Em);Ne(hl,Am),Ne(hl,j8);let Qd=Ne({},km);Ne(Qd,U8);let Gw=function(M){let oe=y(M);(!oe||!oe.tagName)&&(oe={namespaceURI:Vn,tagName:"template"});let K=_l(M.tagName),Qe=_l(oe.tagName);return ia[M.namespaceURI]?M.namespaceURI===fr?oe.namespaceURI===fn?K==="svg":oe.namespaceURI===gn?K==="svg"&&(Qe==="annotation-xml"||_4[Qe]):!!hl[K]:M.namespaceURI===gn?oe.namespaceURI===fn?K==="math":oe.namespaceURI===fr?K==="math"&&R4[Qe]:!!Qd[K]:M.namespaceURI===fn?oe.namespaceURI===fr&&!R4[Qe]||oe.namespaceURI===gn&&!_4[Qe]?!1:!Qd[K]&&(Ww[K]||!hl[K]):!!(Dn==="application/xhtml+xml"&&ia[M.namespaceURI]):!1},Xi=function(M){_s(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},em=function(M,oe){try{_s(t.removed,{attribute:oe.getAttributeNode(M),from:oe})}catch{_s(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(M),M==="is"&&!Le[M])if(G||ye)try{Xi(oe)}catch{}else try{oe.setAttribute(M,"")}catch{}},F4=function(M){let oe,K;if(Ue)M=""+M;else{let Ln=I8(M,/^[\r\n\t ]+/);K=Ln&&Ln[0]}Dn==="application/xhtml+xml"&&Vn===fn&&(M=''+M+"");let Qe=v?v.createHTML(M):M;if(Vn===fn)try{oe=new m().parseFromString(Qe,Dn)}catch{}if(!oe||!oe.documentElement){oe=S.createDocument(Vn,"template",null);try{oe.documentElement.innerHTML=aa?T:Qe}catch{}}let $t=oe.body||oe.documentElement;return M&&K&&$t.insertBefore(a.createTextNode(K),$t.childNodes[0]||null),Vn===fn?k.call(oe,fe?"html":"body")[0]:fe?oe.documentElement:$t},I4=function(M){return E.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Vw=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},bl=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},sa=function(M,oe,K){R[M]&&F8(R[M],Qe=>{Qe.call(t,oe,K,$n)})},B4=function(M){let oe;if(sa("beforeSanitizeElements",M,null),Vw(M))return Xi(M),!0;let K=nt(M.nodeName);if(sa("uponSanitizeElement",M,{tagName:K,allowedTags:se}),M.hasChildNodes()&&!bl(M.firstElementChild)&&(!bl(M.content)||!bl(M.content.firstElementChild))&&Yn(/<[/\w]/g,M.innerHTML)&&Yn(/<[/\w]/g,M.textContent))return Xi(M),!0;if(!se[K]||Z[K]){if(!Z[K]&&N4(K)&&(q.tagNameCheck instanceof RegExp&&Yn(q.tagNameCheck,K)||q.tagNameCheck instanceof Function&&q.tagNameCheck(K)))return!1;if(Vt&&!kn[K]){let Qe=y(M)||M.parentNode,$t=f(M)||M.childNodes;if($t&&Qe){let Ln=$t.length;for(let Nn=Ln-1;Nn>=0;--Nn)Qe.insertBefore(h($t[Nn],!0),b(M))}}return Xi(M),!0}return M instanceof u&&!Gw(M)||(K==="noscript"||K==="noembed")&&Yn(/<\/no(script|embed)/i,M.innerHTML)?(Xi(M),!0):(me&&M.nodeType===3&&(oe=M.textContent,oe=xr(oe,F," "),oe=xr(oe,P," "),oe=xr(oe,O," "),M.textContent!==oe&&(_s(t.removed,{element:M.cloneNode()}),M.textContent=oe)),sa("afterSanitizeElements",M,null),!1)},O4=function(M,oe,K){if(Ze&&(oe==="id"||oe==="name")&&(K in a||K in zw))return!1;if(!(Ge&&!Ee[oe]&&Yn(_,oe))&&!(pe&&Yn(I,oe))){if(!Le[oe]||Ee[oe]){if(!(N4(M)&&(q.tagNameCheck instanceof RegExp&&Yn(q.tagNameCheck,M)||q.tagNameCheck instanceof Function&&q.tagNameCheck(M))&&(q.attributeNameCheck instanceof RegExp&&Yn(q.attributeNameCheck,oe)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(oe))||oe==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Yn(q.tagNameCheck,K)||q.tagNameCheck instanceof Function&&q.tagNameCheck(K))))return!1}else if(!hi[oe]&&!Yn(te,xr(K,W,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&M!=="script"&&B8(K,"data:")===0&&ws[M])&&!(de&&!Yn(B,xr(K,W,"")))&&K)return!1}return!0},N4=function(M){return M.indexOf("-")>0},j4=function(M){let oe,K,Qe,$t;sa("beforeSanitizeAttributes",M,null);let{attributes:Ln}=M;if(!Ln)return;let Nn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le};for($t=Ln.length;$t--;){oe=Ln[$t];let{name:en,namespaceURI:Qi}=oe;if(K=en==="value"?oe.value:O8(oe.value),Qe=nt(en),Nn.attrName=Qe,Nn.attrValue=K,Nn.keepAttr=!0,Nn.forceKeepAttr=void 0,sa("uponSanitizeAttribute",M,Nn),K=Nn.attrValue,Nn.forceKeepAttr||(em(en,M),!Nn.keepAttr))continue;if(!ge&&Yn(/\/>/i,K)){em(en,M);continue}me&&(K=xr(K,F," "),K=xr(K,P," "),K=xr(K,O," "));let U4=nt(M.nodeName);if(O4(U4,Qe,K)){if(ve&&(Qe==="id"||Qe==="name")&&(em(en,M),K=vt+K),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Qi)switch(p.getAttributeType(U4,Qe)){case"TrustedHTML":{K=v.createHTML(K);break}case"TrustedScriptURL":{K=v.createScriptURL(K);break}}try{Qi?M.setAttributeNS(Qi,en,K):M.setAttribute(en,K),M3(t.removed)}catch{}}}sa("afterSanitizeAttributes",M,null)},$w=function M(oe){let K,Qe=I4(oe);for(sa("beforeSanitizeShadowDOM",oe,null);K=Qe.nextNode();)sa("uponSanitizeShadowNode",K,null),!B4(K)&&(K.content instanceof i&&M(K.content),j4(K));sa("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(M){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K,Qe,$t,Ln;if(aa=!M,aa&&(M=""),typeof M!="string"&&!bl(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw Rs("dirty is not a string, aborting")}else throw Rs("toString is not a function");if(!t.isSupported)return M;if(Se||Xd(oe),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let Qi=nt(M.nodeName);if(!se[Qi]||Z[Qi])throw Rs("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)K=F4(""),Qe=K.ownerDocument.importNode(M,!0),Qe.nodeType===1&&Qe.nodeName==="BODY"||Qe.nodeName==="HTML"?K=Qe:K.appendChild(Qe);else{if(!G&&!me&&!fe&&M.indexOf("<")===-1)return v&&at?v.createHTML(M):M;if(K=F4(M),!K)return G?null:at?T:""}K&&Ue&&Xi(K.firstChild);let Nn=I4(Dt?M:K);for(;$t=Nn.nextNode();)B4($t)||($t.content instanceof i&&$w($t.content),j4($t));if(Dt)return M;if(G){if(ye)for(Ln=C.call(K.ownerDocument);K.firstChild;)Ln.appendChild(K.firstChild);else Ln=K;return(Le.shadowroot||Le.shadowrootmod)&&(Ln=D.call(n,Ln,!0)),Ln}let en=fe?K.outerHTML:K.innerHTML;return fe&&se["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&Yn(N3,K.ownerDocument.doctype.name)&&(en=" -`+en),me&&(en=xr(en,F," "),en=xr(en,P," "),en=xr(en,O," ")),v&&at?v.createHTML(en):en},t.setConfig=function(M){Xd(M),Se=!0},t.clearConfig=function(){$n=null,Se=!1},t.isValidAttribute=function(M,oe,K){$n||Xd({});let Qe=nt(M),$t=nt(oe);return O4(Qe,$t,K)},t.addHook=function(M,oe){typeof oe=="function"&&(R[M]=R[M]||[],_s(R[M],oe))},t.removeHook=function(M){if(R[M])return M3(R[M])},t.removeHooks=function(M){R[M]&&(R[M]=[])},t.removeAllHooks=function(){R={}},t}var Je=j3();var Z8=Object.create,_m=Object.defineProperty,J8=Object.getOwnPropertyDescriptor,X8=Object.getOwnPropertyNames,Q8=Object.getPrototypeOf,e7=Object.prototype.hasOwnProperty,Rm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t7=(e,t)=>{for(var n in t)_m(e,n,{get:t[n],enumerable:!0})},Pm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of X8(t))!e7.call(e,a)&&a!==n&&_m(e,a,{get:()=>t[a],enumerable:!(r=J8(t,a))||r.enumerable});return e},n7=(e,t,n)=>(Pm(e,t,"default"),n&&Pm(n,t,"default")),H3=(e,t,n)=>(n=e!=null?Z8(Q8(e)):{},Pm(t||!e||!e.__esModule?_m(n,"default",{value:e,enumerable:!0}):n,e)),r7=Rm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(G){if(!(!G.parentNode||typeof G.parentNode.tagName>"u")){var ye=this._getInnerText(G);if(!(ye.length<25)){var at=this._getNodeAncestors(G,5);if(at.length!==0){var Ze=0;Ze+=1,Ze+=ye.split(",").length,Ze+=Math.min(Math.floor(ye.length/100),3),this._forEachNode(at,function(ve,vt){if(!(!ve.tagName||!ve.parentNode||typeof ve.parentNode.tagName>"u")){if(typeof ve.readability>"u"&&(this._initializeNode(ve),h.push(ve)),vt===0)var Vt=1;else vt===1?Vt=2:Vt=vt*3;ve.readability.contentScore+=Ze/Vt}})}}}});for(var b=[],f=0,y=h.length;fE.readability.contentScore){b.splice(S,0,v),b.length>this._nbTopCandidates&&b.pop();break}}}var C=b[0]||null,k=!1,D;if(C===null||C.tagName==="BODY"){for(C=a.createElement("DIV"),k=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),C.appendChild(r.firstChild);r.appendChild(C),this._initializeNode(C)}else if(C){for(var R=[],F=1;F=.75&&R.push(this._getNodeAncestors(b[F]));var P=3;if(R.length>=P)for(D=C.parentNode;D.tagName!=="BODY";){for(var O=0,_=0;_=P){C=D;break}D=D.parentNode}C.readability||this._initializeNode(C),D=C.parentNode;for(var I=C.readability.contentScore,B=I/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var W=D.readability.contentScore;if(WI){C=D;break}I=D.readability.contentScore,D=D.parentNode}for(D=C.parentNode;D.tagName!="BODY"&&D.children.length==1;)C=D,D=C.parentNode;C.readability||this._initializeNode(C)}var te=a.createElement("DIV");i&&(te.id="readability-content");var se=Math.max(10,C.readability.contentScore*.2);D=C.parentNode;for(var je=D.children,Le=0,N=je.length;Le=se)Z=!0;else if(q.nodeName==="P"){var pe=this._getLinkDensity(q),Ge=this._getInnerText(q),de=Ge.length;(de>80&&pe<.25||de<80&&de>0&&pe===0&&Ge.search(/\.( |$)/)!==-1)&&(Z=!0)}}Z&&(this.log("Appending node:",q),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(q.nodeName)===-1&&(this.log("Altering sibling:",q,"to div."),q=this._setNodeTag(q,"DIV")),te.appendChild(q),je=D.children,Le-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+te.innerHTML),this._prepArticle(te),this._debug&&this.log("Article content post-prep: "+te.innerHTML),k)C.id="readability-page-1",C.className="page";else{var ge=a.createElement("DIV");for(ge.id="readability-page-1",ge.className="page";te.firstChild;)ge.appendChild(te.firstChild);te.appendChild(ge)}this._debug&&this.log("Article content after paging: "+te.innerHTML);var me=!0,fe=this._getInnerText(te,!0).length;if(fe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&E<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&S>.2||c>=25&&S>.5||f===1&&E<75||f>1;if(s&&C){for(var k=0;k1)return C;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return C}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),a7=Rm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),q3=Rm((e,t)=>{var n=r7(),r=a7();t.exports={Readability:n,isProbablyReaderable:r}}),z3={};t7(z3,{Readability:()=>Rl,default:()=>V3,isProbablyReaderable:()=>G3});var W3=H3(q3());n7(z3,H3(q3()));var{Readability:Rl,isProbablyReaderable:G3}=W3,{default:U3,...i7}=W3,V3=U3!==void 0?U3:i7;var o7=kl.alert;function be(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():w}var le=be();function X(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):le.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function pa(){return le.PROD==="1"}function Fm(){return le.PROD_API==="1"}function $3(){return le.HAS_CSP_ERROR=="1"}function it(){if(le.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Fl(){return typeof Deno<"u"}var fH=be().PROD==="1",ao=be().PROD!=="1";function Il(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function Bl(){return le.IMMERSIVE_TRANSLATE_JSSDK==="1"}var $="immersiveTranslate",vi="Immersive Translate",L="immersive-translate",Nl="imt";var rn="immersivetranslate.com",s7=`https://config.${rn}/`,xH=`https://app.${rn}/`,ae=pa()||Fm()?`https://${rn}/`:`https://test.${rn}/`,Ol=`https://dash.${rn}/`,rt=pa()||Fm()?`https://api2.${rn}/`:`https://test-api2.${rn}/`,X3=`https://github.com/${L}/${L}/`,Q3=`https://s.${rn}/`,vH=`https://onboarding.${rn}/`,e1=$+"DeeplGlobalState",Im=$+"BingGlobalState",Bm=$+"YandexGlobalState",Om=$+"BaiduQianfanGlobalConfigStorageKey",t1=$+"SiliconCloudGlobalConfigStorageKey",n1=$+"ZhipuGlobalConfigStorageKey";var Nm=$+"GoogleAccessToken",r1=$+"AuthFlow",a1=L+"-config-latest.json",u7=$+"AuthState",jl=$+"IframeMessage",TH=$+"WaitForRateLimit",Ul=$+"DocumentMessageAsk",Nt=$+"DocumentMessageTellThirdParty",hn=$+"showError",Ti=$+"showModal",Hl=$+"showToast",i1=$+"DocumentMessageThirdPartyTell",o1=$+"DocumentMessageEventUpload",s1=$+"DocumentMessageTypeStopJsSDK",ql=$+"DocumentMessageHandler",zl=$+"DocumentSetFloatBallActive",Wl=`${$}Share`,Gl=`${$}ShowFloatBallGuide`,io=$+"DocumentMessageTempEnableSubtitleChanged",Fs=`${$}ToggleMouseHoverTranslateDirectly`,u1=`${$}ReqDraft`,l1=`${$}ResDraft`,l7=`${$}Container`,c1=`${$}SpecifiedContainer`,Vl="buildinConfig",Is="localConfig",jm="openOptionsPage",d1="translateMangaMenuId",Um="openAboutPage";var Hm="openEbookViewer",qm="openEbookBuilder";var Si=`${$}PageTranslatedStatus`,Bs=`${$}MangaTranslatedStatus`,SH=`${$}PageUrlChanged`,Tr=`${$}ReceiveCommand`,m1=$+"LastUseMouseHoverTime",Os=$+"LastUseInputTime",cr=$+"LastUseManualTranslatePageTime",CH=`${$}PopupReceiveMessage`,Ci=$+"DocumentMessageEventTogglePopup",Ns=`${s7}default_config.json`,wH=`${$}Mark`,Zn=`${$}Root`,p1=`${$}Walked`,EH=`data-${L}-walked`,g1=`${$}Paragraph`,f1=`data-${L}-paragraph`,oo=`data-${L}-translation-element-mark`,h1=`${$}TranslationElementMark`,AH=`${$}TranslatedMark`,$l=`${L}-input-injected-css`,b1=`${$}LoadingId`,zm=`data-${L}-loading-id`,y1=`${$}ErrorId`,Kl=`data-${L}-error-id`,c7=`${$}AtomicBlockMark`,x1=`${$}ExcludeMark`,kH=`data-${L}-exclude-mark`,d7=`${$}StayOriginalMark`,DH=`${$}PreWhitespaceMark`,Yl=`${$}InlineMark`,v1=`${$}BlockMark`,LH=`${$}Left`,MH=`${$}Right`,PH=`${$}Width`,_H=`${$}Height`,RH=`${$}Top`,FH=`${$}FontSize`,js="lastRunTime";var IH=`${$}GlobalStyleMark`,so=["@","#"],Zl=" --- ",T1=` -`,Lt=`${L}-target-wrapper`,BH=`${L}-pdf-target-container`,Jl=`${L}-target-inner`,OH=`${L}-source-wrapper`,Wm=`${L}-target-translation-block-wrapper`,NH=`${L}-root-translation-theme`,uo=`${$}RootTranslationTheme`,S1=`${L}-target-translation-vertical-block-wrapper`,jH=`${L}-target-translation-pdf-block-wrapper`,C1=`${L}-target-translation-pre-whitespace`,Gm=`${L}-target-translation-inline-wrapper`;var w1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var E1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],A1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Ol,Ol+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ra="zh-CN",UH=ae+"docs/communities/",HH=X3+"issues/1809",qH=X3+"issues/1179",Xl={type:$+"ChildFrameToRootFrameIdentifier"},Vm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Us=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],k1=["ctrl","alt","shift","cmd","command","option","control"];var Ql=pa()?Ol+"#general":"http://localhost:8000/dist/userscript/options/#general",$m="user_from_plugin",dt="user_info",ec=ae+"accounts/login?from=plugin",D1=Ol+"#general",zH=ae+"accounts/login?from=plugin&return_url="+encodeURIComponent(D1),L1=ec+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",M1=ec+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Hs=ae+"profile/",qs=ae+"auth/pricing/",Fn=ae+"pricing/",m7=ae+"download/",p7=ae+"topup?type=open_ai&",g7=ae+"topup?type=deepl&",P1=ae+"topup?type=comics&",WH=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",_1=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",GH=m7+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",VH=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",tc=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Km=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",$H=Hs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",R1=qs+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",F1=p7+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",I1=g7+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",B1=ae+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",f7=Fn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",Ym=Hs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",KH=qs+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",YH=qs+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",ZH=qs+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",JH=qs+"?utm_source=extension&utm_medium=extension&utm_campaign=",O1=ae+"docs/usage/",XH=ae+"docs/communities/",zs=be().TRANSLATE_FILE_URL,QH=zs+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",N1=zs+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",j1=`${zs}download-subtitle/`,U1=`${zs}pdf-pro/`,H1=`${zs}text/`,wi=["deepl","openai","gemini","claude"],h7="G-BHWL0KMJB8",b7="7pr-olTJR6GKAjIW48UD0Q",K3="G-MKMD9LWFTR",Y3="sitc4WmvShWYwfU0dANM3Q",Z3="G-V5H2F5MJFJ",J3="UBjpGOLISEaY5LVXNj3WvQ";function nc(){return Bl()?[`https://www.google-analytics.com/mp/collect?measurement_id=${h7}&api_secret=${b7}`]:pa?[`https://www.google-analytics.com/mp/collect?measurement_id=${K3}&api_secret=${Y3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${Z3}&api_secret=${J3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${K3}&api_secret=${Y3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Z3}&api_secret=${J3}`]}var Ws=`https://analytics.${rn}/collect`,y7=`${ae}activities/components/image-pro`;function Zm(e,t){return`${y7}?utm_source=extension&utm_medium=extension&utm_campaign=${e}&lang=${t}`}var q1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",z1="0VmM83i2D1ICuYBf",rc=`[${Nl}-ctx-divider]`,ac=`${Nl}_context_preview`;var lo=console,Jm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),lo.debug(ur.dim(vi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Gs=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&lo.log(ur.dim(vi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&lo.log(ur.green(vi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&lo.warn(ur.yellow(vi+" WARN:"),...t)}error(...t){this.#e<=3&&lo.error(ur.red(vi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&lo.error(ur.red(vi+" FATAL:"),...t)}timing(){return this.level===0?new Jm:{reset:()=>{},stop:()=>{}}}},A=new Gs;var W1=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Xm=new Map(W1),x7=new Map(W1.map(([e,t])=>[t,e]));function Vs(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>x7.get(s));!t&&t!==0&&(t=25);let a=vl(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Xm.keys()]},o=$4(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return Xm.get(d)}}let[s,u]=o[0],l=Xm.get(s);if(l&&u>.9)return l}}catch(r){A.error(r)}return"auto"}if(typeof GM>"u"&&typeof GM_info<"u"&&typeof GM_getValue<"u"){let e=null;typeof GM_xmlhttpRequest<"u"?e=GM_xmlhttpRequest:typeof GM_xmlHttpRequest<"u"&&(e=GM_xmlHttpRequest);let t=null;typeof GM_registerMenuCommand<"u"&&(t=GM_registerMenuCommand),globalThis.GM={info:GM_info,getValue:GM_getValue,setValue:GM_setValue,deleteValue:GM_deleteValue,listValues:GM_listValues,xmlHttpRequest:e,registerMenuCommand:t,addStyle:typeof GM_addStyle<"u"?GM_addStyle:null,openInTab:typeof GM_openInTab<"u"?GM_openInTab:null,addElement:typeof GM_addElement<"u"?GM_addElement:null}}typeof GM<"u"&&GM&&GM.info===void 0&&typeof GM_info<"u"&&(GM.info=GM_info);var G1={get:async e=>{if(e===null){let r=await GM.listValues();Array.isArray(r)||r&&M7(r)&&(r=Object.keys(r));let a={};for(let i of r)a[i]=await GM.getValue(i);return a}let t=[];typeof e=="string"?t=[e]:Array.isArray(e)?t=e:t=Object.keys(e);let n={};for(let r of t)n[r]=await GM.getValue(r);return n},set:async e=>{for(let t in e)await GM.setValue(t,e[t])},remove:async e=>{if(typeof e=="string")await GM.deleteValue(e);else if(Array.isArray(e))for(let t of e)await GM.deleteValue(t)}};function v7(){if(typeof GM<"u"&&GM&&GM.info&&GM.info.script){let e=GM.info.script||{};return e._isUserscript=!0,e}else return{_isUserscript:!0,version:w.VERSION}}function Fa(e,t=!0){GM&&GM.openInTab?GM.openInTab(e,!1):globalThis.open(e,t?"_blank":"_self")}function T7(e=!0,t=""){let n=be();GM&&GM.info&&GM.info.scriptHandler&&GM.info.scriptHandler==="Stay"?e=!1:e=!0;let r=n.OPTIONS_URL;if(r)Fa(r+t,e);else throw new Error("options url not found")}function S7(e=!1){let n=be().OPTIONS_URL;if(n)Fa(n+"#about",e);else throw new Error("options url not found")}function C7(e=!1){let n=be().PDF_VIEWER_URL;if(n)Fa(n,e);else throw new Error("pdf url not found")}function w7(e=!1){let n=be().HTML_VIEWER_URL;if(n)Fa(n,e);else throw new Error("html url not found")}function E7(e=!1){let n=be().EBOOK_VIEWER_URL;if(n)Fa(n,e);else throw new Error("ebook url not found")}function A7(e=!1){let n=be().EBOOK_BUILDER_URL;if(n)Fa(n,e);else throw new Error("ebook url not found")}function k7(e=!1){let n=be().SUBTITLE_BUILDER_URL;if(n)Fa(n,e);else throw new Error("subtitle url not found")}function D7(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}var L7={storage:{local:G1,sync:G1},runtime:{getManifest:v7,lastError:null,openOptionsPage:T7},extra:{detectLanguage:Vs,openAboutPage:S7,openHtmlViewerPage:w7,openEbookViewerPage:E7,openEbookBuilderPage:A7,openSubtitleBuilderPage:k7,openPdfViewerPage:C7,openInTab:Fa},i18n:{getAcceptLanguages:D7,detectLanguage:Vs}};function M7(e){return e!==null&&typeof e=="object"}globalThis.immersiveTranslateBrowserAPI=L7;(function(){"use strict";var e=window.Bluebird||window.Promise;if(self.GM_fetch)return;let t;if(typeof GM<"u"&&GM.xmlHttpRequest)t=GM.xmlHttpRequest;else if(typeof GM<"u"&&GM_xmlhttpRequest)t=GM_xmlhttpRequest;else if(typeof GM_xmlhttpRequest<"u")t=GM_xmlhttpRequest;else if(typeof GM<"u"&&GM.xmlHttpRequest)t=GM.xmlHttpRequest;else return;function n(p){if(typeof p!="string"&&(p=p.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(p))throw new TypeError("Invalid character in header field name");return p.toLowerCase()}function r(p){return typeof p!="string"&&(p=p.toString()),p}function a(p){if(p.bodyUsed)return e.reject(new TypeError("Already read"));p.bodyUsed=!0}function i(p){return new e(function(g,h){p.onload=function(){g(p.result)},p.onerror=function(){h(p.error)}})}function o(p){var g=new FileReader;return g.readAsArrayBuffer(p),i(g)}function s(p){var g=new FileReader;return g.readAsText(p),i(g)}var u={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self},l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function c(p){var g=p.toUpperCase();return l.indexOf(g)>-1?g:p}function d(p){var g=new FormData;return p.trim().split("&").forEach(function(h){if(h){var b=h.split("="),f=b.shift().replace(/\+/g," "),y=b.join("=").replace(/\+/g," ");g.append(decodeURIComponent(f),decodeURIComponent(y))}}),g}function m(p){var g=new Headers;if(typeof p=="string"){var h=p.trim().split(` -`);h.forEach(function(f){var y=f.trim().split(":"),v=y.shift().trim(),T=y.join(":").trim();g.append(v,T)})}else if(typeof p=="object")for(var b in p)Array.isArray(p[b])&&p[b].forEach(function(f){g.append(b,f)});return g}self.Headers=Headers,self.Request=Request,self.Response=Response,self.GM_fetch=function(p,g){var h,b;return g||(typeof p=="string"?g={}:p=g.url),Request&&Request.prototype&&Request.prototype.isPrototypeOf&&Request.prototype.isPrototypeOf(g)?h=g:(g.body&&(b=g.body),h=new Request(p,g)),new e(function(f,y){var v={};g&&g.extra&&(v=g.extra);var T;function S(E,C){if(E)return E;if(C.get("X-Request-URL"))return C.get("X-Request-URL")}v.method=h.method||"GET",v.timeout=6e4,h.timeout&&(v.timeout=h.timeout),v.url=h.url,v.synchronous=!1,v.onload=function(E){var C=E.status;if(C<100||C>599){y(new TypeError("Network request failed"));return}var k=E.responseHeaders;T=m(k);var D=S(E.finalUrl||E.responseURL,T);T.set("X-Final-URL",D);var R={status:C,statusText:E.statusText,headers:T,url:D},F=E.responseText;C===204&&(F=void 0);let P=new Response(F,R);f(P)},v.onerror=function(E){y(new TypeError("Network request failed"))},v.ontimeout=function(E){y(new TypeError("Network request timeout"))},v.onabort=function(E){y(new TypeError("Network request abort"))},v.headers={},h.headers.forEach(function(E,C){v.headers[C]=E}),b&&(v.data=b),t(v)})},self.GM_fetch.polyfill=!0})();var Qm=/iPhone/i,V1=/iPod/i,$1=/iPad/i,K1=/\biOS-universal(?:.+)Mac\b/i,ep=/\bAndroid(?:.+)Mobile\b/i,Y1=/Android/i,co=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ic=/Silk/i,ga=/Windows Phone/i,Z1=/\bWindows(?:.+)ARM\b/i,J1=/BlackBerry/i,X1=/BB10/i,Q1=/Opera Mini/i,e2=/\b(CriOS|Chrome)(?:.+)Mobile/i,t2=/Mobile(?:.+)Firefox\b/i,n2=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function P7(e){return t=>t.test(e)}function Ve(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=P7(n),i={apple:{phone:a(Qm)&&!a(ga),ipod:a(V1),tablet:!a(Qm)&&(a($1)||n2(t))&&!a(ga),universal:a(K1),device:(a(Qm)||a(V1)||a($1)||a(K1)||n2(t))&&!a(ga)},amazon:{phone:a(co),tablet:!a(co)&&a(ic),device:a(co)||a(ic)},android:{phone:!a(ga)&&a(co)||!a(ga)&&a(ep),tablet:!a(ga)&&!a(co)&&!a(ep)&&(a(ic)||a(Y1)),device:!a(ga)&&(a(co)||a(ic)||a(ep)||a(Y1))||a(/\bokhttp\b/i)},windows:{phone:a(ga),tablet:a(Z1),device:a(ga)||a(Z1)},other:{blackberry:a(J1),blackberry10:a(X1),opera:a(Q1),firefox:a(t2),chrome:a(e2),device:a(J1)||a(X1)||a(Q1)||a(t2)||a(e2)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var tp="DENO",oc="CHROME",sc="FIREFOX";function r2(e){let t=oc;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=sc:/deno/i.test(n)&&(t=tp)}catch{}return e===oc&&t===oc||e===sc&&t===sc||e===tp&&t===tp}function a2(){return r2(oc)}function i2(){return typeof Deno<"u"}function Sr(){return be().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:r2(sc)}function Jn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function $s(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var o2={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},s2={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:o2,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:o2,query:()=>{},sendMessage:()=>{}}};var ne;i2()?ne=s2:ne=globalThis.immersiveTranslateBrowserAPI;var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],np={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},u2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},rp={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},ap={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function Q(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return Q(document?.documentElement?.lang||"en")}var Ei=$+"CacheKey_";function Ai(e,t){let n=Ei+e;return ne.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function _7(){let e=ne.storage.local.refresh;e&&e()}function ip(e,t){let n=Ei+e;return ne.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ei)).filter(r=>r!==Ei+dt);if(n.length>0)return ne.storage.local.remove(n)}}var mt={get:Ai,set:ki,getExpired:ip,setExpired:op,remove:sp,clear:up,refresh:_7};function ft(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function l2(e){if(e){let t=new Date(e.createTime),n=R7(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function R7(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ks(e){if(e?.isPro)return!0;let t=await mt.get(dt,null);return ft(t)}var c2=$+"SyncStoreKey_";function jt(e,t){let n=c2+e;return ne.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function ot(e,t){let n=c2+e;return ne.storage.sync.set({[n]:t})}var d2=$+"StoreKey_";function Di(e,t){let n=d2+e;return ne.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function m2(e,t){let n=d2+e;return ne.storage.local.set({[n]:t})}function Ia(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function F7(e,t){return e<>>32-t}function lc(e,t,n,r,a,i){return Ia(F7(Ia(Ia(t,e),Ia(r,i)),a),n)}function bn(e,t,n,r,a,i,o){return lc(t&n|~t&r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return lc(t&r|n&~r,e,t,a,i,o)}function xn(e,t,n,r,a,i,o){return lc(t^n^r,e,t,a,i,o)}function vn(e,t,n,r,a,i,o){return lc(n^(t|~r),e,t,a,i,o)}function uc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function lp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=uc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=uc(a.concat(lp(t)),512+t.length*8),p2(uc(i.concat(o),512+128))}function g2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function cp(e){return unescape(encodeURIComponent(e))}function f2(e){return I7(cp(e))}function O7(e){return g2(f2(e))}function h2(e,t){return B7(cp(e),cp(t))}function N7(e,t){return g2(h2(e,t))}function Qn(e,t,n){return t?n?h2(t,e):N7(t,e):n?f2(e):O7(e)}var cc=["caiyun","cai"],b2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],mo={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:ae+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`+h+"]"}return r.pop(),a=h,f}},ME={parse:CE,stringify:LE},PE=ME,Cl=PE;var a3=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function _E(e,t){return!!(e===t||a3(e)&&a3(t))}function RE(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),UE=(e,t)=>{for(var n in t)gm(e,n,{get:t[n],enumerable:!0})},pm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of BE(t))!NE.call(e,a)&&a!==n&&gm(e,a,{get:()=>t[a],enumerable:!(r=IE(t,a))||r.enumerable});return e},HE=(e,t,n)=>(pm(e,t,"default"),n&&pm(n,t,"default")),o3=(e,t,n)=>(n=e!=null?FE(OE(e)):{},pm(t||!e||!e.__esModule?gm(n,"default",{value:e,enumerable:!0}):n,e)),s3=jE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof wl=="object"&&wl&&wl.Object===Object&&wl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(k,D,R){var F,P,O,_,I,B,W=0,te=!1,se=!1,je=!0;if(typeof k!="function")throw new TypeError(n);D=w(D)||0,T(R)&&(te=!!R.leading,se="maxWait"in R,O=se?h(w(R.maxWait)||0,D):O,je="trailing"in R?!!R.trailing:je);function Le(me){var fe=F,Se=P;return F=P=void 0,W=me,_=k.apply(Se,fe),_}function N(me){return W=me,I=setTimeout(Ee,D),te?Le(me):_}function q(me){var fe=me-B,Se=me-W,Ue=D-fe;return se?b(Ue,O-Se):Ue}function Z(me){var fe=me-B,Se=me-W;return B===void 0||fe>=D||fe<0||se&&Se>=O}function Ee(){var me=f();if(Z(me))return pe(me);I=setTimeout(Ee,q(me))}function pe(me){return I=void 0,je&&F?Le(me):(F=P=void 0,_)}function Ge(){I!==void 0&&clearTimeout(I),W=0,F=B=P=I=void 0}function de(){return I===void 0?_:pe(f())}function ge(){var me=f(),fe=Z(me);if(F=arguments,P=this,B=me,fe){if(I===void 0)return N(B);if(se)return I=setTimeout(Ee,D),Le(B)}return I===void 0&&(I=setTimeout(Ee,D)),_}return ge.cancel=Ge,ge.flush=de,ge}function v(k,D,R){var F=!0,P=!0;if(typeof k!="function")throw new TypeError(n);return T(R)&&(F="leading"in R?!!R.leading:F,P="trailing"in R?!!R.trailing:P),y(k,D,{leading:F,maxWait:D,trailing:P})}function T(k){var D=typeof k;return!!k&&(D=="object"||D=="function")}function S(k){return!!k&&typeof k=="object"}function E(k){return typeof k=="symbol"||S(k)&&g.call(k)==a}function w(k){if(typeof k=="number")return k;if(E(k))return r;if(T(k)){var D=typeof k.valueOf=="function"?k.valueOf():k;k=T(D)?D+"":D}if(typeof k!="string")return k===0?k:+k;k=k.replace(i,"");var R=s.test(k);return R||u.test(k)?l(k.slice(2),R?2:8):o.test(k)?r:+k}t.exports=v}),u3={};UE(u3,{default:()=>Kn});var qE=o3(s3());HE(u3,o3(s3()));var{default:i3,...zE}=qE,Kn=i3!==void 0?i3:zE;var El=globalThis||(typeof window<"u"?window:self),WE=Object.create,hm=Object.defineProperty,GE=Object.getOwnPropertyDescriptor,VE=Object.getOwnPropertyNames,$E=Object.getPrototypeOf,KE=Object.prototype.hasOwnProperty,YE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ZE=(e,t)=>{for(var n in t)hm(e,n,{get:t[n],enumerable:!0})},fm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of VE(t))!KE.call(e,a)&&a!==n&&hm(e,a,{get:()=>t[a],enumerable:!(r=GE(t,a))||r.enumerable});return e},JE=(e,t,n)=>(fm(e,t,"default"),n&&fm(n,t,"default")),c3=(e,t,n)=>(n=e!=null?WE($E(e)):{},fm(t||!e||!e.__esModule?hm(n,"default",{value:e,enumerable:!0}):n,e)),d3=YE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof El=="object"&&El&&El.Object===Object&&El,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(w,k,D){var R,F,P,O,_,I,B=0,W=!1,te=!1,se=!0;if(typeof w!="function")throw new TypeError(n);k=E(k)||0,v(D)&&(W=!!D.leading,te="maxWait"in D,P=te?h(E(D.maxWait)||0,k):P,se="trailing"in D?!!D.trailing:se);function je(ge){var me=R,fe=F;return R=F=void 0,B=ge,O=w.apply(fe,me),O}function Le(ge){return B=ge,_=setTimeout(Z,k),W?je(ge):O}function N(ge){var me=ge-I,fe=ge-B,Se=k-me;return te?b(Se,P-fe):Se}function q(ge){var me=ge-I,fe=ge-B;return I===void 0||me>=k||me<0||te&&fe>=P}function Z(){var ge=f();if(q(ge))return Ee(ge);_=setTimeout(Z,N(ge))}function Ee(ge){return _=void 0,se&&R?je(ge):(R=F=void 0,O)}function pe(){_!==void 0&&clearTimeout(_),B=0,R=I=F=_=void 0}function Ge(){return _===void 0?O:Ee(f())}function de(){var ge=f(),me=q(ge);if(R=arguments,F=this,I=ge,me){if(_===void 0)return Le(I);if(te)return _=setTimeout(Z,k),je(I)}return _===void 0&&(_=setTimeout(Z,k)),O}return de.cancel=pe,de.flush=Ge,de}function v(w){var k=typeof w;return!!w&&(k=="object"||k=="function")}function T(w){return!!w&&typeof w=="object"}function S(w){return typeof w=="symbol"||T(w)&&g.call(w)==a}function E(w){if(typeof w=="number")return w;if(S(w))return r;if(v(w)){var k=typeof w.valueOf=="function"?w.valueOf():w;w=v(k)?k+"":k}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var D=s.test(w);return D||u.test(w)?l(w.slice(2),D?2:8):o.test(w)?r:+w}t.exports=y}),m3={};ZE(m3,{default:()=>Mn});var XE=c3(d3());JE(m3,c3(d3()));var{default:l3,...QE}=XE,Mn=l3!==void 0?l3:QE;var e8=Object.create,ym=Object.defineProperty,t8=Object.getOwnPropertyDescriptor,n8=Object.getOwnPropertyNames,r8=Object.getPrototypeOf,a8=Object.prototype.hasOwnProperty,i8=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),o8=(e,t)=>{for(var n in t)ym(e,n,{get:t[n],enumerable:!0})},bm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of n8(t))!a8.call(e,a)&&a!==n&&ym(e,a,{get:()=>t[a],enumerable:!(r=t8(t,a))||r.enumerable});return e},s8=(e,t,n)=>(bm(e,t,"default"),n&&bm(n,t,"default")),g3=(e,t,n)=>(n=e!=null?e8(r8(e)):{},bm(t||!e||!e.__esModule?ym(n,"default",{value:e,enumerable:!0}):n,e)),f3=i8((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,q){var Z={};for(var Ee in N)q.indexOf(Ee)>=0||Object.prototype.hasOwnProperty.call(N,Ee)&&(Z[Ee]=N[Ee]);return Z}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},h=Object.assign||function(N){for(var q=1;q'+Ee+"",Se.onclick=function(){return P(Ue,fe)},Se.listener=function(G){(D(G)||R(G))&&I()},F(Se,fe),Ge&&Ge<1&&(Ge=1),!ge&&Ge&&T(Ge).then(function(){return P(Ue,fe)})},W=d.force=function(N,q){var Z=N.type,Ee=Z===void 0?5:Z,pe=N.text,Ge=N.buttonText,de=Ge===void 0?"OK":Ge,ge=N.callback,me=N.position,fe=me===void 0?f.positions.force||fe.top:me;S(),I();var Se=document.createElement("div"),Ue=E();Se.id=Ue;var G=document.createElement("div");G.classList.add(f.classes.textbox),G.classList.add(f.classes.backgroundInfo),G.innerHTML='
'+pe+"
";var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(w[Ee]),xe.innerHTML=de,xe.onclick=function(){P(Ue,fe),_(),ge?ge():q&&q()},Se.appendChild(G),Se.appendChild(xe),Se.listener=function(at){D(at)&&xe.click()},F(Se,fe),O()},te=d.confirm=function(N,q,Z){var Ee=N.text,pe=N.submitText,Ge=pe===void 0?"Yes":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.confirm||Ue.top:Se;S(),I();var G=document.createElement("div"),xe=E();G.id=xe;var at=document.createElement("div");at.classList.add(f.classes.textbox),at.classList.add(f.classes.backgroundInfo),at.innerHTML='
'+Ee+"
";var Ze=document.createElement("div");Ze.classList.add(f.classes.button),Ze.classList.add(f.classes.elementHalf),Ze.classList.add(f.classes.backgroundSuccess),Ze.innerHTML=Ge,Ze.onclick=function(){P(xe,Ue),_(),me?me():q&&q()};var Te=document.createElement("div");Te.classList.add(f.classes.button),Te.classList.add(f.classes.elementHalf),Te.classList.add(f.classes.backgroundError),Te.innerHTML=ge,Te.onclick=function(){P(xe,Ue),_(),fe?fe():Z&&Z()},G.appendChild(at),G.appendChild(Ze),G.appendChild(Te),G.listener=function(vt){D(vt)?Ze.click():R(vt)&&Te.click()},F(G,Ue),O(G,Ue)},se=function(N,q,Z){var Ee=N.text,pe=N.submitText,Ge=pe===void 0?"Submit":pe,de=N.cancelText,ge=de===void 0?"Cancel":de,me=N.submitCallback,fe=N.cancelCallback,Se=N.position,Ue=Se===void 0?f.positions.input||Ue.top:Se,G=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);S(),I();var xe=document.createElement("div"),at=E();xe.id=at;var Ze=document.createElement("div");Ze.classList.add(f.classes.textbox),Ze.classList.add(f.classes.backgroundInfo),Ze.innerHTML='
'+Ee+"
";var Te=document.createElement("input");Te.classList.add(f.classes.inputField),Te.setAttribute("autocapitalize",G.autocapitalize||"none"),Te.setAttribute("autocomplete",G.autocomplete||"off"),Te.setAttribute("autocorrect",G.autocorrect||"off"),Te.setAttribute("autofocus",G.autofocus||"true"),Te.setAttribute("inputmode",G.inputmode||"verbatim"),Te.setAttribute("max",G.max||""),Te.setAttribute("maxlength",G.maxlength||""),Te.setAttribute("min",G.min||""),Te.setAttribute("minlength",G.minlength||""),Te.setAttribute("placeholder",G.placeholder||""),Te.setAttribute("spellcheck",G.spellcheck||"default"),Te.setAttribute("step",G.step||"any"),Te.setAttribute("type",G.type||"text"),Te.value=G.value||"",G.allowed&&(Te.oninput=function(){var Dt=void 0;if(Array.isArray(G.allowed)){for(var It="",An=G.allowed,sr=0;sr'+Z+"",fe.appendChild(Ue),de.forEach(function(xe,at){var Ze=xe.type,Te=Ze===void 0?1:Ze,vt=xe.text,Vt=xe.handler,Dt=document.createElement("div");Dt.classList.add(w[Te]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var It=de[at+1];It&&!It.type&&(It.type=1),It&&It.type===Te&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){P(Se,me),_(),Vt()},fe.appendChild(Dt)});var G=document.createElement("div");G.classList.add(f.classes.backgroundNeutral),G.classList.add(f.classes.button),G.innerHTML=pe,G.onclick=function(){P(Se,me),_(),Ge?Ge():q&&q()},fe.appendChild(G),fe.listener=function(xe){R(xe)&&G.click()},F(fe,me),O(fe,me)},Le=d.date=function(N,q,Z){var Ee=N.value,pe=Ee===void 0?new Date:Ee,Ge=N.submitText,de=Ge===void 0?"OK":Ge,ge=N.cancelText,me=ge===void 0?"Cancel":ge,fe=N.submitCallback,Se=N.cancelCallback,Ue=N.position,G=Ue===void 0?f.positions.date||G.top:Ue;S(),I();var xe="▾",at=document.createElement("div"),Ze=document.createElement("div"),Te=document.createElement("div"),vt=function(Tt){at.innerHTML=f.dateMonths[Tt.getMonth()],Ze.innerHTML=Tt.getDate(),Te.innerHTML=Tt.getFullYear()},Vt=function(Tt){var nt=new Date(pe.getFullYear(),pe.getMonth()+1,0).getDate(),$n=Tt.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number($n)>nt&&($n=nt.toString()),Tt.target.textContent=$n,Number($n)<1&&($n="1"),pe.setDate(Number($n))},Dt=function(Tt){var nt=Tt.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Tt.target.textContent=nt,pe.setFullYear(Number(nt))},It=function(Tt){vt(pe)},An=function(Tt){var nt=new Date(pe.getFullYear(),pe.getMonth()+Tt+1,0).getDate();pe.getDate()>nt&&pe.setDate(nt),pe.setMonth(pe.getMonth()+Tt),vt(pe)},sr=function(Tt){pe.setDate(pe.getDate()+Tt),vt(pe)},ws=function(Tt){var nt=pe.getFullYear()+Tt;nt<0?pe.setFullYear(0):pe.setFullYear(pe.getFullYear()+Tt),vt(pe)},jr=document.createElement("div"),fi=E();jr.id=fi;var Ji=document.createElement("div");Ji.classList.add(f.classes.backgroundInfo);var gn=document.createElement("div");gn.classList.add(f.classes.dateSelectorInner);var fr=document.createElement("div");fr.classList.add(f.classes.button),fr.classList.add(f.classes.elementThird),fr.classList.add(f.classes.dateSelectorUp),fr.innerHTML=xe;var fn=document.createElement("div");fn.classList.add(f.classes.button),fn.classList.add(f.classes.elementThird),fn.classList.add(f.classes.dateSelectorUp),fn.innerHTML=xe;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=xe,at.classList.add(f.classes.element),at.classList.add(f.classes.elementThird),at.innerHTML=f.dateMonths[pe.getMonth()],Ze.classList.add(f.classes.element),Ze.classList.add(f.classes.elementThird),Ze.setAttribute("contentEditable",!0),Ze.addEventListener("input",Vt),Ze.addEventListener("blur",It),Ze.innerHTML=pe.getDate(),Te.classList.add(f.classes.element),Te.classList.add(f.classes.elementThird),Te.setAttribute("contentEditable",!0),Te.addEventListener("input",Dt),Te.addEventListener("blur",It),Te.innerHTML=pe.getFullYear();var na=document.createElement("div");na.classList.add(f.classes.button),na.classList.add(f.classes.elementThird),na.innerHTML=xe;var ra=document.createElement("div");ra.classList.add(f.classes.button),ra.classList.add(f.classes.elementThird),ra.innerHTML=xe;var hi=document.createElement("div");hi.classList.add(f.classes.button),hi.classList.add(f.classes.elementThird),hi.innerHTML=xe,fr.onclick=function(){return An(1)},fn.onclick=function(){return sr(1)},Vn.onclick=function(){return ws(1)},na.onclick=function(){return An(-1)},ra.onclick=function(){return sr(-1)},hi.onclick=function(){return ws(-1)};var kn=document.createElement("div");kn.classList.add(f.classes.button),kn.classList.add(f.classes.elementHalf),kn.classList.add(f.classes.backgroundSuccess),kn.innerHTML=de,kn.onclick=function(){P(fi,G),_(),fe?fe(pe):q&&q(pe)};var aa=document.createElement("div");aa.classList.add(f.classes.button),aa.classList.add(f.classes.elementHalf),aa.classList.add(f.classes.backgroundError),aa.innerHTML=me,aa.onclick=function(){P(fi,G),_(),Se?Se(pe):Z&&Z(pe)},gn.appendChild(fr),gn.appendChild(fn),gn.appendChild(Vn),gn.appendChild(at),gn.appendChild(Ze),gn.appendChild(Te),gn.appendChild(na),gn.appendChild(ra),gn.appendChild(hi),Ji.appendChild(gn),jr.appendChild(Ji),jr.appendChild(kn),jr.appendChild(aa),jr.listener=function(Tt){D(Tt)?kn.click():R(Tt)&&aa.click()},F(jr,G),O(jr,G)};d.default={alert:B,force:W,confirm:te,input:se,select:je,date:Le,setOptions:y,hideAlerts:I}}])})}).call(r,a(0)(n))}])})}),h3={};o8(h3,{default:()=>Al});var u8=g3(f3());s8(h3,g3(f3()));var{default:p3,...l8}=u8,Al=p3!==void 0?p3:l8;var kl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ls(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function xm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function b3(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ito[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),c8=e=>Object.keys(to).find(t=>to[t]===e),d8=e=>Object.keys(yr).find(t=>yr[t]===e);function C3(e){T3=e||"all"}function Ms(){return T3||"all"}function m8(){return st.slice(0)}function p8(){return st.map(e=>c8(e)||d8(e)||String.fromCharCode(e))}function g8(){let e=[];return Object.keys(St).forEach(t=>{St[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Ps(o))})})}),e}function f8(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function h8(e){return typeof e=="string"&&(e=Ps(e)),st.indexOf(e)!==-1}function b8(e,t){let n,r;e||(e=Ms());for(let a in St)if(Object.prototype.hasOwnProperty.call(St,a))for(n=St[a],r=0;r=0&&st.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&st.splice(0,st.length),(t===93||t===224)&&(t=91),t in nn){nn[t]=!1;for(let r in yr)yr[r]===t&&(ca[r]=!1)}}function w3(e,...t){if(typeof e>"u")Object.keys(St).forEach(n=>delete St[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&Tm(n)});else if(typeof e=="object")e.key&&Tm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),Tm({key:e,scope:n,method:r,splitKey:"+"})}}var Tm=({key:e,scope:t,method:n,splitKey:r="+"})=>{vm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Ps(u);if(!St[l])return;t||(t=Ms());let c=s>1?xm(yr,o):[];St[l]=St[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&b3(d.mods,c)))})};function x3(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in nn)Object.prototype.hasOwnProperty.call(nn,i)&&(!nn[i]&&t.mods.indexOf(+i)>-1||nn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!nn[16]&&!nn[18]&&!nn[17]&&!nn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(st),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function v3(e,t){let n=St["*"],r=e.keyCode||e.which||e.charCode;if(!ca.filter.call(this,e))return;if((r===93||r===224)&&(r=91),st.indexOf(r)===-1&&r!==229&&st.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Dl[i];e[i]&&st.indexOf(o)===-1?st.push(o):!e[i]&&st.indexOf(o)>-1?st.splice(st.indexOf(o),1):i==="metaKey"&&e[i]&&st.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(st=st.slice(st.indexOf(o))))}),r in nn){nn[r]=!0;for(let i in yr)yr[i]===r&&(ca[i]=!0);if(!n)return}for(let i in nn)Object.prototype.hasOwnProperty.call(nn,i)&&(nn[i]=e[Dl[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(st.indexOf(17)===-1&&st.push(17),st.indexOf(18)===-1&&st.push(18),nn[17]=!0,nn[18]=!0);let a=Ms();if(n)for(let i=0;i-1}function ca(e,t,n){st=[];let r=vm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&w3(e,i);s1&&(a=xm(yr,e)),e=e[e.length-1],e=e==="*"?"*":Ps(e),e in St||(St[e]=[]),St[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!x8(o)&&window&&(S3.push(o),Ls(o,"keydown",p=>{v3(p,o)},d),y3||(y3=!0,Ls(window,"focus",()=>{st=[]},d),Ls(window,"click",()=>{st=[]},!1)),Ls(o,"keyup",p=>{v3(p,o),y8(p)},d))}function v8(e,t="all"){Object.keys(St).forEach(n=>{St[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Sm={getPressedKeyString:p8,setScope:C3,getScope:Ms,deleteScope:b8,getPressedKeyCodes:m8,getAllKeyCodes:g8,isPressed:h8,filter:f8,trigger:v8,unbind:w3,keyMap:to,modifier:yr,modifierMap:Dl};for(let e in Sm)Object.prototype.hasOwnProperty.call(Sm,e)&&(ca[e]=Sm[e]);if(typeof window<"u"){let e=window.hotkeys;ca.noConflict=t=>(t&&window.hotkeys===ca&&(window.hotkeys=e),ca),window.hotkeys=ca}var jn=ca;var T8={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},A3={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Pn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Pa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},H=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=H.getVersionPrecision(e),a=H.getVersionPrecision(t),i=Math.max(r,a),o=0,s=H.map([e,t],u=>{let l=i-H.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return H.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return T8[e]}static getBrowserTypeByAlias(e){return A3[e]||""}},ut=/version\/(\d+(\.?_?\d+)+)/i,S8=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=H.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=H.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=H.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=H.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=H.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=H.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=H.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=H.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=H.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=H.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=H.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=H.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=H.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=H.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=H.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=H.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=H.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=H.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=H.getFirstMatch(ut,e)||H.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=H.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=H.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=H.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=H.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=H.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=H.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=H.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=H.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=H.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=H.getFirstMatch(ut,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:H.getFirstMatch(r,e),version:H.getSecondMatch(r,e)}}}],C8=S8,w8=[{test:[/Roku\/DVP/],describe(e){let t=H.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Pn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=H.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Pn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=H.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=H.getWindowsVersionName(t);return{name:Pn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Pn.iOS},n=H.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=H.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=H.getMacOSVersionName(t),r={name:Pn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=H.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Pn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=H.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=H.getAndroidVersionName(t),r={name:Pn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=H.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Pn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=H.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||H.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||H.getFirstMatch(/\bbb(\d+)/i,e);return{name:Pn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=H.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Pn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=H.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Pn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Pn.Linux}}},{test:[/CrOS/],describe(){return{name:Pn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=H.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Pn.PlayStation4,version:t}}}],E8=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=H.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=H.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],A8=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Pa.Blink};let t=H.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Pa.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Pa.Trident},n=H.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Pa.Presto},n=H.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Pa.Gecko},n=H.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Pa.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Pa.WebKit},n=H.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],k8=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=H.find(C8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=H.find(w8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=H.find(E8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=H.find(A8,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return H.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=H.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=H.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=H.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=H.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(H.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},E3=k8,D8=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new E3(e,t)}static parse(e){return new E3(e).getResult()}static get BROWSER_MAP(){return A3}static get ENGINE_MAP(){return Pa}static get OS_MAP(){return Pn}static get PLATFORMS_MAP(){return Ot}},no=D8;var{entries:F3,setPrototypeOf:k3,isFrozen:L8,getPrototypeOf:M8,getOwnPropertyDescriptor:P8}=Object,{freeze:_n,seal:vr,create:_8}=Object,{apply:Dm,construct:Lm}=typeof Reflect<"u"&&Reflect;Dm||(Dm=function(e,t,n){return e.apply(t,n)});_n||(_n=function(e){return e});vr||(vr=function(e){return e});Lm||(Lm=function(e,t){return new e(...t)});var R8=lr(Array.prototype.forEach),D3=lr(Array.prototype.pop),_s=lr(Array.prototype.push),Pl=lr(String.prototype.toLowerCase),Cm=lr(String.prototype.toString),F8=lr(String.prototype.match),xr=lr(String.prototype.replace),I8=lr(String.prototype.indexOf),B8=lr(String.prototype.trim),Yn=lr(RegExp.prototype.test),Rs=O8(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),q8=vr(/\${[\w\W]*}/gm),z8=vr(/^data-[\-\w.\u00B7-\uFFFF]/),W8=vr(/^aria-[\-\w]+$/),I3=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G8=vr(/^(?:\w+script|data):/i),V8=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),B3=vr(/^html$/i),R3=Object.freeze({__proto__:null,MUSTACHE_EXPR:U8,ERB_EXPR:H8,TMPLIT_EXPR:q8,DATA_ATTR:z8,ARIA_ATTR:W8,IS_ALLOWED_URI:I3,IS_SCRIPT_OR_DATA:G8,ATTR_WHITESPACE:V8,DOCTYPE_NAME:B3}),$8=()=>typeof window>"u"?null:window,K8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function O3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$8(),t=M=>O3(M);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Ll(g,"cloneNode"),b=Ll(g,"nextSibling"),f=Ll(g,"childNodes"),y=Ll(g,"parentNode");if(typeof o=="function"){let M=a.createElement("template");M.content&&M.content.ownerDocument&&(a=M.content.ownerDocument)}let v,T="",{implementation:S,createNodeIterator:E,createDocumentFragment:w,getElementsByTagName:k}=a,{importNode:D}=n,R={};t.isSupported=typeof F3=="function"&&typeof y=="function"&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:P,TMPLIT_EXPR:O,DATA_ATTR:_,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:W}=R3,{IS_ALLOWED_URI:te}=R3,se=null,je=Oe({},[...L3,...wm,...Em,...Am,...M3]),Le=null,N=Oe({},[...P3,...km,..._3,...Ml]),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,Ee=null,pe=!0,Ge=!0,de=!1,ge=!0,me=!1,fe=!1,Se=!1,Ue=!1,G=!1,xe=!1,at=!1,Ze=!0,Te=!1,vt="user-content-",Vt=!0,Dt=!1,It={},An=null,sr=Oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ws=null,jr=Oe({},["audio","video","img","source","image","track"]),fi=null,Ji=Oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gn="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",fn="http://www.w3.org/1999/xhtml",Vn=fn,na=!1,ra=null,hi=Oe({},[gn,fr,fn],Cm),kn,aa=["application/xhtml+xml","text/html"],Tt="text/html",nt,$n=null,qw=a.createElement("form"),L4=function(M){return M instanceof RegExp||M instanceof Function},Jd=function(M){if(!($n&&$n===M)){if((!M||typeof M!="object")&&(M={}),M=ro(M),kn=aa.indexOf(M.PARSER_MEDIA_TYPE)===-1?kn=Tt:kn=M.PARSER_MEDIA_TYPE,nt=kn==="application/xhtml+xml"?Cm:Pl,se="ALLOWED_TAGS"in M?Oe({},M.ALLOWED_TAGS,nt):je,Le="ALLOWED_ATTR"in M?Oe({},M.ALLOWED_ATTR,nt):N,ra="ALLOWED_NAMESPACES"in M?Oe({},M.ALLOWED_NAMESPACES,Cm):hi,fi="ADD_URI_SAFE_ATTR"in M?Oe(ro(Ji),M.ADD_URI_SAFE_ATTR,nt):Ji,ws="ADD_DATA_URI_TAGS"in M?Oe(ro(jr),M.ADD_DATA_URI_TAGS,nt):jr,An="FORBID_CONTENTS"in M?Oe({},M.FORBID_CONTENTS,nt):sr,Z="FORBID_TAGS"in M?Oe({},M.FORBID_TAGS,nt):{},Ee="FORBID_ATTR"in M?Oe({},M.FORBID_ATTR,nt):{},It="USE_PROFILES"in M?M.USE_PROFILES:!1,pe=M.ALLOW_ARIA_ATTR!==!1,Ge=M.ALLOW_DATA_ATTR!==!1,de=M.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=M.SAFE_FOR_TEMPLATES||!1,fe=M.WHOLE_DOCUMENT||!1,G=M.RETURN_DOM||!1,xe=M.RETURN_DOM_FRAGMENT||!1,at=M.RETURN_TRUSTED_TYPE||!1,Ue=M.FORCE_BODY||!1,Ze=M.SANITIZE_DOM!==!1,Te=M.SANITIZE_NAMED_PROPS||!1,Vt=M.KEEP_CONTENT!==!1,Dt=M.IN_PLACE||!1,te=M.ALLOWED_URI_REGEXP||I3,Vn=M.NAMESPACE||fn,q=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&L4(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&L4(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Ge=!1),xe&&(G=!0),It&&(se=Oe({},[...M3]),Le=[],It.html===!0&&(Oe(se,L3),Oe(Le,P3)),It.svg===!0&&(Oe(se,wm),Oe(Le,km),Oe(Le,Ml)),It.svgFilters===!0&&(Oe(se,Em),Oe(Le,km),Oe(Le,Ml)),It.mathMl===!0&&(Oe(se,Am),Oe(Le,_3),Oe(Le,Ml))),M.ADD_TAGS&&(se===je&&(se=ro(se)),Oe(se,M.ADD_TAGS,nt)),M.ADD_ATTR&&(Le===N&&(Le=ro(Le)),Oe(Le,M.ADD_ATTR,nt)),M.ADD_URI_SAFE_ATTR&&Oe(fi,M.ADD_URI_SAFE_ATTR,nt),M.FORBID_CONTENTS&&(An===sr&&(An=ro(An)),Oe(An,M.FORBID_CONTENTS,nt)),Vt&&(se["#text"]=!0),fe&&Oe(se,["html","head","body"]),se.table&&(Oe(se,["tbody"]),delete Z.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,T=v.createHTML("")}else v===void 0&&(v=K8(p,r)),v!==null&&typeof T=="string"&&(T=v.createHTML(""));_n&&_n(M),$n=M}},M4=Oe({},["mi","mo","mn","ms","mtext"]),P4=Oe({},["foreignobject","desc","title","annotation-xml"]),zw=Oe({},["title","style","font","a","script"]),fl=Oe({},wm);Oe(fl,Em),Oe(fl,N8);let Xd=Oe({},Am);Oe(Xd,j8);let Ww=function(M){let oe=y(M);(!oe||!oe.tagName)&&(oe={namespaceURI:Vn,tagName:"template"});let K=Pl(M.tagName),Qe=Pl(oe.tagName);return ra[M.namespaceURI]?M.namespaceURI===fr?oe.namespaceURI===fn?K==="svg":oe.namespaceURI===gn?K==="svg"&&(Qe==="annotation-xml"||M4[Qe]):!!fl[K]:M.namespaceURI===gn?oe.namespaceURI===fn?K==="math":oe.namespaceURI===fr?K==="math"&&P4[Qe]:!!Xd[K]:M.namespaceURI===fn?oe.namespaceURI===fr&&!P4[Qe]||oe.namespaceURI===gn&&!M4[Qe]?!1:!Xd[K]&&(zw[K]||!fl[K]):!!(kn==="application/xhtml+xml"&&ra[M.namespaceURI]):!1},Xi=function(M){_s(t.removed,{element:M});try{M.parentNode.removeChild(M)}catch{M.remove()}},Qd=function(M,oe){try{_s(t.removed,{attribute:oe.getAttributeNode(M),from:oe})}catch{_s(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(M),M==="is"&&!Le[M])if(G||xe)try{Xi(oe)}catch{}else try{oe.setAttribute(M,"")}catch{}},_4=function(M){let oe,K;if(Ue)M=""+M;else{let Dn=F8(M,/^[\r\n\t ]+/);K=Dn&&Dn[0]}kn==="application/xhtml+xml"&&Vn===fn&&(M=''+M+"");let Qe=v?v.createHTML(M):M;if(Vn===fn)try{oe=new m().parseFromString(Qe,kn)}catch{}if(!oe||!oe.documentElement){oe=S.createDocument(Vn,"template",null);try{oe.documentElement.innerHTML=na?T:Qe}catch{}}let $t=oe.body||oe.documentElement;return M&&K&&$t.insertBefore(a.createTextNode(K),$t.childNodes[0]||null),Vn===fn?k.call(oe,fe?"html":"body")[0]:fe?oe.documentElement:$t},R4=function(M){return E.call(M.ownerDocument||M,M,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Gw=function(M){return M instanceof d&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof c)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},hl=function(M){return typeof s=="object"?M instanceof s:M&&typeof M=="object"&&typeof M.nodeType=="number"&&typeof M.nodeName=="string"},ia=function(M,oe,K){R[M]&&R8(R[M],Qe=>{Qe.call(t,oe,K,$n)})},F4=function(M){let oe;if(ia("beforeSanitizeElements",M,null),Gw(M))return Xi(M),!0;let K=nt(M.nodeName);if(ia("uponSanitizeElement",M,{tagName:K,allowedTags:se}),M.hasChildNodes()&&!hl(M.firstElementChild)&&(!hl(M.content)||!hl(M.content.firstElementChild))&&Yn(/<[/\w]/g,M.innerHTML)&&Yn(/<[/\w]/g,M.textContent))return Xi(M),!0;if(!se[K]||Z[K]){if(!Z[K]&&B4(K)&&(q.tagNameCheck instanceof RegExp&&Yn(q.tagNameCheck,K)||q.tagNameCheck instanceof Function&&q.tagNameCheck(K)))return!1;if(Vt&&!An[K]){let Qe=y(M)||M.parentNode,$t=f(M)||M.childNodes;if($t&&Qe){let Dn=$t.length;for(let Nn=Dn-1;Nn>=0;--Nn)Qe.insertBefore(h($t[Nn],!0),b(M))}}return Xi(M),!0}return M instanceof u&&!Ww(M)||(K==="noscript"||K==="noembed")&&Yn(/<\/no(script|embed)/i,M.innerHTML)?(Xi(M),!0):(me&&M.nodeType===3&&(oe=M.textContent,oe=xr(oe,F," "),oe=xr(oe,P," "),oe=xr(oe,O," "),M.textContent!==oe&&(_s(t.removed,{element:M.cloneNode()}),M.textContent=oe)),ia("afterSanitizeElements",M,null),!1)},I4=function(M,oe,K){if(Ze&&(oe==="id"||oe==="name")&&(K in a||K in qw))return!1;if(!(Ge&&!Ee[oe]&&Yn(_,oe))&&!(pe&&Yn(I,oe))){if(!Le[oe]||Ee[oe]){if(!(B4(M)&&(q.tagNameCheck instanceof RegExp&&Yn(q.tagNameCheck,M)||q.tagNameCheck instanceof Function&&q.tagNameCheck(M))&&(q.attributeNameCheck instanceof RegExp&&Yn(q.attributeNameCheck,oe)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(oe))||oe==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Yn(q.tagNameCheck,K)||q.tagNameCheck instanceof Function&&q.tagNameCheck(K))))return!1}else if(!fi[oe]&&!Yn(te,xr(K,W,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&M!=="script"&&I8(K,"data:")===0&&ws[M])&&!(de&&!Yn(B,xr(K,W,"")))&&K)return!1}return!0},B4=function(M){return M.indexOf("-")>0},O4=function(M){let oe,K,Qe,$t;ia("beforeSanitizeAttributes",M,null);let{attributes:Dn}=M;if(!Dn)return;let Nn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le};for($t=Dn.length;$t--;){oe=Dn[$t];let{name:en,namespaceURI:Qi}=oe;if(K=en==="value"?oe.value:B8(oe.value),Qe=nt(en),Nn.attrName=Qe,Nn.attrValue=K,Nn.keepAttr=!0,Nn.forceKeepAttr=void 0,ia("uponSanitizeAttribute",M,Nn),K=Nn.attrValue,Nn.forceKeepAttr||(Qd(en,M),!Nn.keepAttr))continue;if(!ge&&Yn(/\/>/i,K)){Qd(en,M);continue}me&&(K=xr(K,F," "),K=xr(K,P," "),K=xr(K,O," "));let N4=nt(M.nodeName);if(I4(N4,Qe,K)){if(Te&&(Qe==="id"||Qe==="name")&&(Qd(en,M),K=vt+K),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Qi)switch(p.getAttributeType(N4,Qe)){case"TrustedHTML":{K=v.createHTML(K);break}case"TrustedScriptURL":{K=v.createScriptURL(K);break}}try{Qi?M.setAttributeNS(Qi,en,K):M.setAttribute(en,K),D3(t.removed)}catch{}}}ia("afterSanitizeAttributes",M,null)},Vw=function M(oe){let K,Qe=R4(oe);for(ia("beforeSanitizeShadowDOM",oe,null);K=Qe.nextNode();)ia("uponSanitizeShadowNode",K,null),!F4(K)&&(K.content instanceof i&&M(K.content),O4(K));ia("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(M){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K,Qe,$t,Dn;if(na=!M,na&&(M=""),typeof M!="string"&&!hl(M))if(typeof M.toString=="function"){if(M=M.toString(),typeof M!="string")throw Rs("dirty is not a string, aborting")}else throw Rs("toString is not a function");if(!t.isSupported)return M;if(Se||Jd(oe),t.removed=[],typeof M=="string"&&(Dt=!1),Dt){if(M.nodeName){let Qi=nt(M.nodeName);if(!se[Qi]||Z[Qi])throw Rs("root node is forbidden and cannot be sanitized in-place")}}else if(M instanceof s)K=_4(""),Qe=K.ownerDocument.importNode(M,!0),Qe.nodeType===1&&Qe.nodeName==="BODY"||Qe.nodeName==="HTML"?K=Qe:K.appendChild(Qe);else{if(!G&&!me&&!fe&&M.indexOf("<")===-1)return v&&at?v.createHTML(M):M;if(K=_4(M),!K)return G?null:at?T:""}K&&Ue&&Xi(K.firstChild);let Nn=R4(Dt?M:K);for(;$t=Nn.nextNode();)F4($t)||($t.content instanceof i&&Vw($t.content),O4($t));if(Dt)return M;if(G){if(xe)for(Dn=w.call(K.ownerDocument);K.firstChild;)Dn.appendChild(K.firstChild);else Dn=K;return(Le.shadowroot||Le.shadowrootmod)&&(Dn=D.call(n,Dn,!0)),Dn}let en=fe?K.outerHTML:K.innerHTML;return fe&&se["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&Yn(B3,K.ownerDocument.doctype.name)&&(en=" +`+en),me&&(en=xr(en,F," "),en=xr(en,P," "),en=xr(en,O," ")),v&&at?v.createHTML(en):en},t.setConfig=function(M){Jd(M),Se=!0},t.clearConfig=function(){$n=null,Se=!1},t.isValidAttribute=function(M,oe,K){$n||Jd({});let Qe=nt(M),$t=nt(oe);return I4(Qe,$t,K)},t.addHook=function(M,oe){typeof oe=="function"&&(R[M]=R[M]||[],_s(R[M],oe))},t.removeHook=function(M){if(R[M])return D3(R[M])},t.removeHooks=function(M){R[M]&&(R[M]=[])},t.removeAllHooks=function(){R={}},t}var Je=O3();var Y8=Object.create,Pm=Object.defineProperty,Z8=Object.getOwnPropertyDescriptor,J8=Object.getOwnPropertyNames,X8=Object.getPrototypeOf,Q8=Object.prototype.hasOwnProperty,_m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),e7=(e,t)=>{for(var n in t)Pm(e,n,{get:t[n],enumerable:!0})},Mm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of J8(t))!Q8.call(e,a)&&a!==n&&Pm(e,a,{get:()=>t[a],enumerable:!(r=Z8(t,a))||r.enumerable});return e},t7=(e,t,n)=>(Mm(e,t,"default"),n&&Mm(n,t,"default")),j3=(e,t,n)=>(n=e!=null?Y8(X8(e)):{},Mm(t||!e||!e.__esModule?Pm(n,"default",{value:e,enumerable:!0}):n,e)),n7=_m((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(G){if(!(!G.parentNode||typeof G.parentNode.tagName>"u")){var xe=this._getInnerText(G);if(!(xe.length<25)){var at=this._getNodeAncestors(G,5);if(at.length!==0){var Ze=0;Ze+=1,Ze+=xe.split(",").length,Ze+=Math.min(Math.floor(xe.length/100),3),this._forEachNode(at,function(Te,vt){if(!(!Te.tagName||!Te.parentNode||typeof Te.parentNode.tagName>"u")){if(typeof Te.readability>"u"&&(this._initializeNode(Te),h.push(Te)),vt===0)var Vt=1;else vt===1?Vt=2:Vt=vt*3;Te.readability.contentScore+=Ze/Vt}})}}}});for(var b=[],f=0,y=h.length;fE.readability.contentScore){b.splice(S,0,v),b.length>this._nbTopCandidates&&b.pop();break}}}var w=b[0]||null,k=!1,D;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),k=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var R=[],F=1;F=.75&&R.push(this._getNodeAncestors(b[F]));var P=3;if(R.length>=P)for(D=w.parentNode;D.tagName!=="BODY";){for(var O=0,_=0;_=P){w=D;break}D=D.parentNode}w.readability||this._initializeNode(w),D=w.parentNode;for(var I=w.readability.contentScore,B=I/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var W=D.readability.contentScore;if(WI){w=D;break}I=D.readability.contentScore,D=D.parentNode}for(D=w.parentNode;D.tagName!="BODY"&&D.children.length==1;)w=D,D=w.parentNode;w.readability||this._initializeNode(w)}var te=a.createElement("DIV");i&&(te.id="readability-content");var se=Math.max(10,w.readability.contentScore*.2);D=w.parentNode;for(var je=D.children,Le=0,N=je.length;Le=se)Z=!0;else if(q.nodeName==="P"){var pe=this._getLinkDensity(q),Ge=this._getInnerText(q),de=Ge.length;(de>80&&pe<.25||de<80&&de>0&&pe===0&&Ge.search(/\.( |$)/)!==-1)&&(Z=!0)}}Z&&(this.log("Appending node:",q),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(q.nodeName)===-1&&(this.log("Altering sibling:",q,"to div."),q=this._setNodeTag(q,"DIV")),te.appendChild(q),je=D.children,Le-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+te.innerHTML),this._prepArticle(te),this._debug&&this.log("Article content post-prep: "+te.innerHTML),k)w.id="readability-page-1",w.className="page";else{var ge=a.createElement("DIV");for(ge.id="readability-page-1",ge.className="page";te.firstChild;)ge.appendChild(te.firstChild);te.appendChild(ge)}this._debug&&this.log("Article content after paging: "+te.innerHTML);var me=!0,fe=this._getInnerText(te,!0).length;if(fe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&E<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&S>.2||c>=25&&S>.5||f===1&&E<75||f>1;if(s&&w){for(var k=0;k1)return w;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),r7=_m((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),U3=_m((e,t)=>{var n=n7(),r=r7();t.exports={Readability:n,isProbablyReaderable:r}}),H3={};e7(H3,{Readability:()=>_l,default:()=>W3,isProbablyReaderable:()=>z3});var q3=j3(U3());t7(H3,j3(U3()));var{Readability:_l,isProbablyReaderable:z3}=q3,{default:N3,...a7}=q3,W3=N3!==void 0?N3:a7;var i7=Al.alert;function be(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():C}var le=be();function X(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):le.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function da(){return le.PROD==="1"}function Rm(){return le.PROD_API==="1"}function G3(){return le.HAS_CSP_ERROR=="1"}function it(){if(le.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Rl(){return typeof Deno<"u"}var hH=be().PROD==="1",ao=be().PROD!=="1";function Fl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function Il(){return le.IMMERSIVE_TRANSLATE_JSSDK==="1"}var $="immersiveTranslate",xi="Immersive Translate",L="immersive-translate",Ol="imt";var rn="immersivetranslate.com",o7=`https://config.${rn}/`,vH=`https://app.${rn}/`,ae=da()||Rm()?`https://${rn}/`:`https://test.${rn}/`,Bl=`https://dash.${rn}/`,rt=da()||Rm()?`https://api2.${rn}/`:`https://test-api2.${rn}/`,Z3=`https://github.com/${L}/${L}/`,J3=`https://s.${rn}/`,TH=`https://onboarding.${rn}/`,X3=$+"DeeplGlobalState",Fm=$+"BingGlobalState",Im=$+"YandexGlobalState",Bm=$+"BaiduQianfanGlobalConfigStorageKey",Q3=$+"SiliconCloudGlobalConfigStorageKey",e1=$+"ZhipuGlobalConfigStorageKey";var Om=$+"GoogleAccessToken",t1=$+"AuthFlow",n1=L+"-config-latest.json",s7=$+"AuthState",Nl=$+"IframeMessage",SH=$+"WaitForRateLimit",jl=$+"DocumentMessageAsk",Nt=$+"DocumentMessageTellThirdParty",Un=$+"showError",vi=$+"showModal",Ul=$+"showToast",r1=$+"DocumentMessageThirdPartyTell",a1=$+"DocumentMessageEventUpload",i1=$+"DocumentMessageTypeStopJsSDK",Hl=$+"DocumentMessageHandler",ql=$+"DocumentSetFloatBallActive",zl=`${$}Share`,Wl=`${$}ShowFloatBallGuide`,io=$+"DocumentMessageTempEnableSubtitleChanged",Fs=`${$}ToggleMouseHoverTranslateDirectly`,o1=`${$}ReqDraft`,s1=`${$}ResDraft`,u7=`${$}Container`,u1=`${$}SpecifiedContainer`,Gl="buildinConfig",Is="localConfig",Nm="openOptionsPage",l1="translateMangaMenuId",jm="openAboutPage";var Um="openEbookViewer",Hm="openEbookBuilder";var Ti=`${$}PageTranslatedStatus`,Bs=`${$}MangaTranslatedStatus`,CH=`${$}PageUrlChanged`,Tr=`${$}ReceiveCommand`,c1=$+"LastUseMouseHoverTime",qm=$+"LastUseInputTime",cr=$+"LastUseManualTranslatePageTime",wH=`${$}PopupReceiveMessage`,Si=$+"DocumentMessageEventTogglePopup",Os=`${o7}default_config.json`,EH=`${$}Mark`,Zn=`${$}Root`,d1=`${$}Walked`,AH=`data-${L}-walked`,m1=`${$}Paragraph`,p1=`data-${L}-paragraph`,oo=`data-${L}-translation-element-mark`,g1=`${$}TranslationElementMark`,kH=`${$}TranslatedMark`,Vl=`${L}-input-injected-css`,f1=`${$}LoadingId`,zm=`data-${L}-loading-id`,h1=`${$}ErrorId`,$l=`data-${L}-error-id`,l7=`${$}AtomicBlockMark`,b1=`${$}ExcludeMark`,DH=`data-${L}-exclude-mark`,c7=`${$}StayOriginalMark`,LH=`${$}PreWhitespaceMark`,Kl=`${$}InlineMark`,y1=`${$}BlockMark`,MH=`${$}Left`,PH=`${$}Right`,_H=`${$}Width`,RH=`${$}Height`,FH=`${$}Top`,IH=`${$}FontSize`,Ns="lastRunTime";var BH=`${$}GlobalStyleMark`,so=["@","#"],Yl=" --- ",x1=` +`,Lt=`${L}-target-wrapper`,OH=`${L}-pdf-target-container`,Zl=`${L}-target-inner`,NH=`${L}-source-wrapper`,Wm=`${L}-target-translation-block-wrapper`,jH=`${L}-root-translation-theme`,uo=`${$}RootTranslationTheme`,v1=`${L}-target-translation-vertical-block-wrapper`,UH=`${L}-target-translation-pdf-block-wrapper`,T1=`${L}-target-translation-pre-whitespace`,Gm=`${L}-target-translation-inline-wrapper`;var S1={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var C1=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],w1=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Bl,Bl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],_a="zh-CN",HH=ae+"docs/communities/",qH=Z3+"issues/1809",zH=Z3+"issues/1179",Jl={type:$+"ChildFrameToRootFrameIdentifier"},Vm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],js=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],E1=["ctrl","alt","shift","cmd","command","option","control"];var Xl=da()?Bl+"#general":"http://localhost:8000/dist/userscript/options/#general",$m="user_from_plugin",ct="user_info",Ql=ae+"accounts/login?from=plugin",A1=Bl+"#general",WH=ae+"accounts/login?from=plugin&return_url="+encodeURIComponent(A1),k1=Ql+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",D1=Ql+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Us=ae+"profile/",Hs=ae+"auth/pricing/",Rn=ae+"pricing/",d7=ae+"download/",m7=ae+"topup?type=open_ai&",p7=ae+"topup?type=deepl&",L1=ae+"topup?type=comics&",GH=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",M1=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",VH=d7+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",$H=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",ec=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Km=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",KH=Us+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",P1=Hs+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",_1=m7+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",R1=p7+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",F1=ae+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",g7=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",Ym=Us+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",YH=Hs+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",ZH=Hs+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",JH=Hs+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",XH=Hs+"?utm_source=extension&utm_medium=extension&utm_campaign=",I1=ae+"docs/usage/",QH=ae+"docs/communities/",qs=be().TRANSLATE_FILE_URL,eq=qs+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",B1=qs+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",O1=`${qs}download-subtitle/`,N1=`${qs}pdf-pro/`,j1=`${qs}text/`,Ci=["deepl","openai","gemini","claude"],f7="G-BHWL0KMJB8",h7="7pr-olTJR6GKAjIW48UD0Q",V3="G-MKMD9LWFTR",$3="sitc4WmvShWYwfU0dANM3Q",K3="G-V5H2F5MJFJ",Y3="UBjpGOLISEaY5LVXNj3WvQ";function tc(){return Il()?[`https://www.google-analytics.com/mp/collect?measurement_id=${f7}&api_secret=${h7}`]:da?[`https://www.google-analytics.com/mp/collect?measurement_id=${V3}&api_secret=${$3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${K3}&api_secret=${Y3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${V3}&api_secret=${$3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${K3}&api_secret=${Y3}`]}var zs=`https://analytics.${rn}/collect`,b7=`${ae}activities/components/image-pro`;function Zm(e,t){return`${b7}?utm_source=extension&utm_medium=extension&utm_campaign=${e}&lang=${t}`}var U1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",H1="0VmM83i2D1ICuYBf",nc=`[${Ol}-ctx-divider]`,rc=`${Ol}_context_preview`;var lo=console,Jm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),lo.debug(ur.dim(xi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Ws=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&lo.log(ur.dim(xi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&lo.log(ur.green(xi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&lo.warn(ur.yellow(xi+" WARN:"),...t)}error(...t){this.#e<=3&&lo.error(ur.red(xi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&lo.error(ur.red(xi+" FATAL:"),...t)}timing(){return this.level===0?new Jm:{reset:()=>{},stop:()=>{}}}},A=new Ws;var q1=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Xm=new Map(q1),y7=new Map(q1.map(([e,t])=>[t,e]));function Gs(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>y7.get(s));!t&&t!==0&&(t=25);let a=xl(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Xm.keys()]},o=G4(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return Xm.get(d)}}let[s,u]=o[0],l=Xm.get(s);if(l&&u>.9)return l}}catch(r){A.error(r)}return"auto"}if(typeof GM>"u"&&typeof GM_info<"u"&&typeof GM_getValue<"u"){let e=null;typeof GM_xmlhttpRequest<"u"?e=GM_xmlhttpRequest:typeof GM_xmlHttpRequest<"u"&&(e=GM_xmlHttpRequest);let t=null;typeof GM_registerMenuCommand<"u"&&(t=GM_registerMenuCommand),globalThis.GM={info:GM_info,getValue:GM_getValue,setValue:GM_setValue,deleteValue:GM_deleteValue,listValues:GM_listValues,xmlHttpRequest:e,registerMenuCommand:t,addStyle:typeof GM_addStyle<"u"?GM_addStyle:null,openInTab:typeof GM_openInTab<"u"?GM_openInTab:null,addElement:typeof GM_addElement<"u"?GM_addElement:null}}typeof GM<"u"&&GM&&GM.info===void 0&&typeof GM_info<"u"&&(GM.info=GM_info);var z1={get:async e=>{if(e===null){let r=await GM.listValues();Array.isArray(r)||r&&L7(r)&&(r=Object.keys(r));let a={};for(let i of r)a[i]=await GM.getValue(i);return a}let t=[];typeof e=="string"?t=[e]:Array.isArray(e)?t=e:t=Object.keys(e);let n={};for(let r of t)n[r]=await GM.getValue(r);return n},set:async e=>{for(let t in e)await GM.setValue(t,e[t])},remove:async e=>{if(typeof e=="string")await GM.deleteValue(e);else if(Array.isArray(e))for(let t of e)await GM.deleteValue(t)}};function x7(){if(typeof GM<"u"&&GM&&GM.info&&GM.info.script){let e=GM.info.script||{};return e._isUserscript=!0,e}else return{_isUserscript:!0,version:C.VERSION}}function Ra(e,t=!0){GM&&GM.openInTab?GM.openInTab(e,!1):globalThis.open(e,t?"_blank":"_self")}function v7(e=!0,t=""){let n=be();GM&&GM.info&&GM.info.scriptHandler&&GM.info.scriptHandler==="Stay"?e=!1:e=!0;let r=n.OPTIONS_URL;if(r)Ra(r+t,e);else throw new Error("options url not found")}function T7(e=!1){let n=be().OPTIONS_URL;if(n)Ra(n+"#about",e);else throw new Error("options url not found")}function S7(e=!1){let n=be().PDF_VIEWER_URL;if(n)Ra(n,e);else throw new Error("pdf url not found")}function C7(e=!1){let n=be().HTML_VIEWER_URL;if(n)Ra(n,e);else throw new Error("html url not found")}function w7(e=!1){let n=be().EBOOK_VIEWER_URL;if(n)Ra(n,e);else throw new Error("ebook url not found")}function E7(e=!1){let n=be().EBOOK_BUILDER_URL;if(n)Ra(n,e);else throw new Error("ebook url not found")}function A7(e=!1){let n=be().SUBTITLE_BUILDER_URL;if(n)Ra(n,e);else throw new Error("subtitle url not found")}function k7(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}var D7={storage:{local:z1,sync:z1},runtime:{getManifest:x7,lastError:null,openOptionsPage:v7},extra:{detectLanguage:Gs,openAboutPage:T7,openHtmlViewerPage:C7,openEbookViewerPage:w7,openEbookBuilderPage:E7,openSubtitleBuilderPage:A7,openPdfViewerPage:S7,openInTab:Ra},i18n:{getAcceptLanguages:k7,detectLanguage:Gs}};function L7(e){return e!==null&&typeof e=="object"}globalThis.immersiveTranslateBrowserAPI=D7;(function(){"use strict";var e=window.Bluebird||window.Promise;if(self.GM_fetch)return;let t;if(typeof GM<"u"&&GM.xmlHttpRequest)t=GM.xmlHttpRequest;else if(typeof GM<"u"&&GM_xmlhttpRequest)t=GM_xmlhttpRequest;else if(typeof GM_xmlhttpRequest<"u")t=GM_xmlhttpRequest;else if(typeof GM<"u"&&GM.xmlHttpRequest)t=GM.xmlHttpRequest;else return;function n(p){if(typeof p!="string"&&(p=p.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(p))throw new TypeError("Invalid character in header field name");return p.toLowerCase()}function r(p){return typeof p!="string"&&(p=p.toString()),p}function a(p){if(p.bodyUsed)return e.reject(new TypeError("Already read"));p.bodyUsed=!0}function i(p){return new e(function(g,h){p.onload=function(){g(p.result)},p.onerror=function(){h(p.error)}})}function o(p){var g=new FileReader;return g.readAsArrayBuffer(p),i(g)}function s(p){var g=new FileReader;return g.readAsText(p),i(g)}var u={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self},l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function c(p){var g=p.toUpperCase();return l.indexOf(g)>-1?g:p}function d(p){var g=new FormData;return p.trim().split("&").forEach(function(h){if(h){var b=h.split("="),f=b.shift().replace(/\+/g," "),y=b.join("=").replace(/\+/g," ");g.append(decodeURIComponent(f),decodeURIComponent(y))}}),g}function m(p){var g=new Headers;if(typeof p=="string"){var h=p.trim().split(` +`);h.forEach(function(f){var y=f.trim().split(":"),v=y.shift().trim(),T=y.join(":").trim();g.append(v,T)})}else if(typeof p=="object")for(var b in p)Array.isArray(p[b])&&p[b].forEach(function(f){g.append(b,f)});return g}self.Headers=Headers,self.Request=Request,self.Response=Response,self.GM_fetch=function(p,g){var h,b;return g||(typeof p=="string"?g={}:p=g.url),Request&&Request.prototype&&Request.prototype.isPrototypeOf&&Request.prototype.isPrototypeOf(g)?h=g:(g.body&&(b=g.body),h=new Request(p,g)),new e(function(f,y){var v={};g&&g.extra&&(v=g.extra);var T;function S(E,w){if(E)return E;if(w.get("X-Request-URL"))return w.get("X-Request-URL")}v.method=h.method||"GET",v.timeout=6e4,h.timeout&&(v.timeout=h.timeout),v.url=h.url,v.synchronous=!1,v.onload=function(E){var w=E.status;if(w<100||w>599){y(new TypeError("Network request failed"));return}var k=E.responseHeaders;T=m(k);var D=S(E.finalUrl||E.responseURL,T);T.set("X-Final-URL",D);var R={status:w,statusText:E.statusText,headers:T,url:D},F=E.responseText;w===204&&(F=void 0);let P=new Response(F,R);f(P)},v.onerror=function(E){y(new TypeError("Network request failed"))},v.ontimeout=function(E){y(new TypeError("Network request timeout"))},v.onabort=function(E){y(new TypeError("Network request abort"))},v.headers={},h.headers.forEach(function(E,w){v.headers[w]=E}),b&&(v.data=b),t(v)})},self.GM_fetch.polyfill=!0})();var Qm=/iPhone/i,W1=/iPod/i,G1=/iPad/i,V1=/\biOS-universal(?:.+)Mac\b/i,ep=/\bAndroid(?:.+)Mobile\b/i,$1=/Android/i,co=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ac=/Silk/i,ma=/Windows Phone/i,K1=/\bWindows(?:.+)ARM\b/i,Y1=/BlackBerry/i,Z1=/BB10/i,J1=/Opera Mini/i,X1=/\b(CriOS|Chrome)(?:.+)Mobile/i,Q1=/Mobile(?:.+)Firefox\b/i,e2=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function M7(e){return t=>t.test(e)}function Ve(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=M7(n),i={apple:{phone:a(Qm)&&!a(ma),ipod:a(W1),tablet:!a(Qm)&&(a(G1)||e2(t))&&!a(ma),universal:a(V1),device:(a(Qm)||a(W1)||a(G1)||a(V1)||e2(t))&&!a(ma)},amazon:{phone:a(co),tablet:!a(co)&&a(ac),device:a(co)||a(ac)},android:{phone:!a(ma)&&a(co)||!a(ma)&&a(ep),tablet:!a(ma)&&!a(co)&&!a(ep)&&(a(ac)||a($1)),device:!a(ma)&&(a(co)||a(ac)||a(ep)||a($1))||a(/\bokhttp\b/i)},windows:{phone:a(ma),tablet:a(K1),device:a(ma)||a(K1)},other:{blackberry:a(Y1),blackberry10:a(Z1),opera:a(J1),firefox:a(Q1),chrome:a(X1),device:a(Y1)||a(Z1)||a(J1)||a(Q1)||a(X1)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var tp="DENO",ic="CHROME",oc="FIREFOX";function t2(e){let t=ic;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=oc:/deno/i.test(n)&&(t=tp)}catch{}return e===ic&&t===ic||e===oc&&t===oc||e===tp&&t===tp}function n2(){return t2(ic)}function r2(){return typeof Deno<"u"}function Sr(){return be().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:t2(oc)}function Jn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Vs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var a2={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},i2={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:a2,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:a2,query:()=>{},sendMessage:()=>{}}};var ne;r2()?ne=i2:ne=globalThis.immersiveTranslateBrowserAPI;var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],np={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},o2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},rp={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},ap={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function Q(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return Q(document?.documentElement?.lang||"en")}var wi=$+"CacheKey_";function Ei(e,t){let n=wi+e;return ne.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function P7(){let e=ne.storage.local.refresh;e&&e()}function ip(e,t){let n=wi+e;return ne.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wi)).filter(r=>r!==wi+ct);if(n.length>0)return ne.storage.local.remove(n)}}var dt={get:Ei,set:Ai,getExpired:ip,setExpired:op,remove:sp,clear:up,refresh:P7};function ft(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function s2(e){if(e){let t=new Date(e.createTime),n=_7(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function _7(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function $s(e){if(e?.isPro)return!0;let t=await dt.get(ct,null);return ft(t)}var u2=$+"SyncStoreKey_";function jt(e,t){let n=u2+e;return ne.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function mt(e,t){let n=u2+e;return ne.storage.sync.set({[n]:t})}var l2=$+"StoreKey_";function ki(e,t){let n=l2+e;return ne.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function c2(e,t){let n=l2+e;return ne.storage.local.set({[n]:t})}function Fa(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function R7(e,t){return e<>>32-t}function uc(e,t,n,r,a,i){return Fa(R7(Fa(Fa(t,e),Fa(r,i)),a),n)}function hn(e,t,n,r,a,i,o){return uc(t&n|~t&r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return uc(t&r|n&~r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return uc(t^n^r,e,t,a,i,o)}function xn(e,t,n,r,a,i,o){return uc(n^(t|~r),e,t,a,i,o)}function sc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function lp(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=sc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=sc(a.concat(lp(t)),512+t.length*8),d2(sc(i.concat(o),512+128))}function m2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function cp(e){return unescape(encodeURIComponent(e))}function p2(e){return F7(cp(e))}function B7(e){return m2(p2(e))}function g2(e,t){return I7(cp(e),cp(t))}function O7(e,t){return m2(g2(e,t))}function Qn(e,t,n){return t?n?g2(t,e):O7(t,e):n?p2(e):B7(e)}var lc=["caiyun","cai"],f2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],mo={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:ae+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Cr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:ae+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: @@ -5595,19 +5595,19 @@ select.text-gray-6 { {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},gemini:{ai:!0,name:"Gemini",homepage:"https://ai.google.dev/aistudio/",docUrl:ae+"docs/services/gemini/",link2:ae+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_gemini",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:ae+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"geminiCustomDescription",descriptionLink1:"https://ai.google.dev/aistudio/",descriptionLink2:ae+"docs/services/gemini/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",providers:["custom"],options:[{label:"gemini-1.5-pro-latest",value:"gemini-1.5-pro-latest"},{label:"gemini-1.5-flash",value:"gemini-1.5-flash"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:ae+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",descriptionKey:"description.apiUrl",descriptionLink1:ae+"docs/services/gemini/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},claude:{ai:!0,name:"Claude",homepage:"https://www.anthropic.com/",docUrl:ae+"docs/services/claude/",link2:ae+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_claude",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:ae+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"claudeCustomDescription",descriptionLink1:"https://www.anthropic.com/",descriptionLink2:ae+"docs/services/claude/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"claude-3-haiku-20240307",providers:["custom"],options:[{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-5-sonnet-20240620",value:"claude-3-5-sonnet-20240620"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"claude-2.1",value:"claude-2.1"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",providers:["custom"],descriptionKey:"description.generalLimitPerSecond",descriptionLink1:ae+"docs/services/openai/",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:10,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.anthropic.com/v1/messages",descriptionKey:"description.apiUrl",descriptionLink1:ae+"docs/services/claude/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},siliconcloud:{ai:!0,name:"siliconcloud",homepage:"https://cloud.siliconflow.cn/",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],default:"Qwen/Qwen2.5-7B-Instruct",options:[{label:"Qwen/Qwen2.5-7B-Instruct",value:"Qwen/Qwen2.5-7B-Instruct"},{label:"meta-llama/Meta-Llama-3.1-8B-Instruct",value:"meta-llama/Meta-Llama-3.1-8B-Instruct"},{label:"THUDM/glm-4-9b-chat",value:"THUDM/glm-4-9b-chat"},{label:"google/gemma-2-9b-it",value:"google/gemma-2-9b-it"},{label:"01-ai/Yi-1.5-9B-Chat-16K",value:"01-ai/Yi-1.5-9B-Chat-16K"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:ae+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"APIKEY",descriptionKey:"description.siliconcloudCustomAPIKey",descriptionLink1:"https://siliconflow.cn/",providers:["custom"],required:!1,type:"password",sensitive:!0,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0,default:5},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},yandex:{name:"Yandex",homepage:"https://translate.yandex.com/"},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},lingyiwanwu:{ai:!0,name:"lingyiwanwu",homepage:"https://platform.lingyiwanwu.com/docs",docUrl:ae+"docs/services/lingyiwanwu/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"yi-large",value:"yi-large"},{label:"yi-large-turbo",value:"yi-large-turbo"},{label:"yi-large-rag",value:"yi-large-rag"},{label:"yi-medium",value:"yi-medium"},{label:"yi-medium-200k",value:"yi-medium-200k"},{label:"yi-spark",value:"yi-spark"},{label:"yi-vision",value:"yi-vision"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:ae+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:ae+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:ae+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:ae+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:ae+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:ae+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:ae+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:ae+"docs/services/custom/",docUrl:ae+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:so,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:ae+"docs/services/openL/",beta:!0,allProps:[...b2,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:b2},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:ae+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:ae+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:ae+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":mo,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:ae+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:ae+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:ae+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:ae+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:ae+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:ae+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:ae+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:ae+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:ae+"docs/services/custom/",docUrl:ae+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:so,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:ae+"docs/services/openL/",beta:!0,allProps:[...f2,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:f2},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:ae+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:ae+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:ae+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":mo,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:ae+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},"aliyun-bailian":{ai:!0,name:"aliyun-bailian",homepage:"https://bailian.console.aliyun.com/",docUrl:ae+"docs/services/aliyun-bailian/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"qwen-long",options:[{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-long",value:"qwen-long"},{label:"qwen-max",value:"qwen-max"},{label:"qwen1.5-7b-chat",value:"qwen1.5-7b-chat"},{label:"qwen1.5-14b-chat",value:"qwen1.5-14b-chat"},{label:"qwen1.5-32b-chat",value:"qwen1.5-32b-chat"},{label:"qwen1.5-72b-chat",value:"qwen1.5-72b-chat"},{label:"qwen1.5-110b-chat",value:"qwen1.5-110b-chat"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:ae+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:ae+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:ae+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function j7(e,t,n=!1){let r=[];for(let u=0;u=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function y2(e,t,n=!1){let r=j7(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function U7(e,t){let n=[],r=[];for(let a=0;a0?h=0&&u=0&&lc.length&&(c.length=g.length,c.previous=[m,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function h2(e,t,n=!1){let r=N7(e,t,n),a=[],i=0,o=0,s=0;for(;iu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function j7(e,t){let n=[],r=[];for(let a=0;a0?ht){let y=[];dp(b,t,y);for(let v=0;v0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&dp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:q7([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var dc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ft(u),c=Object.keys(Cr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&it()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=Cr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=mo);let h=mp(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function v2(e,t,n){return dc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:H7(r.config,n))}function H7(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function T2(e,t,n="en",r){return dc(e,t,n).find(o=>o.id===r)}function Ys(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function S2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function C2(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=wi.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function q7(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function z7(e,t){let n=y2(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function mc(e,t){return e?`
-
${z7(t,e)}
-
${t}
`:t}function po(e){let t=location.search.includes(ac);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var go=[],Tz=1e3*3600*24;async function pc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function w2(e){let t=`${L}-${e.service}@${e.from}->${e.to}`;return await V7(t,{...e,createAt:new Date().getTime()})}async function E2(e){let t=Qn(e.originalText),n=`${L}-${e.service}@${e.from}->${e.to}`;return await G7(n,t)}async function G7(e,t){let n=await pc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function V7(e,t){let n=await pc(e);return(await A2()).includes(e)||await $7(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function $7(e){let t="cache_list",n=await pc(L+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),go.push(e)},a.onerror=i=>{n.close()}}async function A2(){if(go&&go.length>0)return go;let e=await pc(L+"-cacheList","cache_list");return go=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),go}async function k2(){try{let t=(await A2()).map(r=>K7(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function K7(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function $e(){try{let e=[be().EBOOK_BUILDER_URL,be().EBOOK_VIEWER_URL,be().SUBTITLE_BUILDER_URL,be().HTML_VIEWER_URL,be().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+rn];pa()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var gc="Original";function Ke(){return gc}function In(e){gc=e,L2(gc);let t=new CustomEvent(Nt,{detail:JSON.stringify({type:"updatePageStatus",payload:gc})});document.dispatchEvent(t)}var D2="Original";function fo(){return D2}function dr(e,t){if(t)return;D2=e;let n=new CustomEvent(Bs,{detail:e});document.dispatchEvent(n)}var P2="auto",fc="auto",M2="auto";function _2(e){P2=e}function er(e){fc=e}function pt(){return fc!=="auto"?fc:M2!=="auto"?M2:P2}function hc(){return fc}var Zs=new Map,Oa=class{fromType;logger;constructor(t,n=!1){this.logger=new Gs,n&&this.logger.setLevel("debug"),this.fromType=t,Zs.has(t)||(Zs.set(t,new Map),ne.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),b=Zs.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let T=f(r.payload,v);i({ok:!0,data:T})}catch(T){i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.details,errorStatus:T.status})}return!1}else return f(r.payload,v).then(T=>{i({ok:!0,data:T})}).catch(T=>{i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.message,errorStatus:T.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Zs.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Zs.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await ne.runtime.sendMessage(o);return R2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await ne.tabs.sendMessage(i,o);return R2(o,s,this.logger)}}};function R2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new j(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new j("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Li(e){return e?.id?.endsWith("pdfWebPage")||!1}function Mi(e){try{if(!e||!Li(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function fp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function bc(e){return hp(JSON.stringify(e))}async function hp(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var mr,yp=0,yc=!1,Js="initial",xp=!1,F2="",I2,B2,vp=!1,bp=new Map;async function ho(e,t,n,r){if(vp=!1,B2=e.sourceProgram,I2=e.specialAiAssistant,r!=null&&xp&&mr||mr&&F2==n&&!n.trim())return;Js="initial",mr=void 0,xp=r||!1;let a=e.rule.bodyRule;if(yc=!1,!n||!a||!e.isPro||(yp=(a.contextTimeout||0)/100,yp<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(yc=i.enableAIContext||!1,!!yc&&e.user?.token)){Js="requesting";try{let o=await hp(n);if(bp.has(o)){mr=bp.get(o);return}let s=await V({url:rt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});F2=n,mr={theme:s.theme,termsRaw:s.terms,terms:Y7(s.terms)},bp.set(o,mr)}catch{}finally{Js="finished"}A.debug("requestTermsByContext contextTerms",mr)}}function O2(){xp||(Js="initial",mr=void 0)}function N2(){vp=!0}function xc(){return I2?null:{contextTerms:mr,used:vp,sourceProgram:B2}}async function j2(){if(!(!yc||Js=="initial")){for(let e=0;ee.includes(n)):[]}function Y7(e){let t=[];return e.split(` -`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Be={},Hr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Be.getIsDulSubtitle();if(n==="getPageStatus")return Ke();n==="updateContextState"&&await Be.updateContextState(r);let a=await Be.updateGlobalContext(),i=Date.now();if(A.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Be.translateTheWholePage(r),ot(cr,i);else if(n==="translateTheMainPage")await Be.translateTheMainPage(r),ot(cr,i);else if(n==="translateToThePageEndImmediately")await Be.translateToThePageEndImmediately(r),ot(cr,i);else if(n==="toggleTranslateManga")await Be.toggleTranslateManga(),ot(cr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Li(a?.rule)){let s=Mi(a.rule);bo(!0,s||o);return}await Be.toggleTranslatePage(r),ot(cr,i)}else if(n==="toggleTranslateTheWholePage")await Be.toggleTranslateTheWholePage(r),ot(cr,i);else if(n==="toggleTranslateTheMainPage")await Be.toggleTranslateTheMainPage(r),ot(cr,i);else if(n==="toggleOnlyTransation")await Be.ensureSwitchTranslationMode(r),ot(cr,i);else if(n=="toggleEnableEditTranslation")Be.toggleEnableEditTranslation();else if(n==="translatePage")await Be.translatePage(a,r),ot(cr,i);else if(n==="toggleTranslationMask")await Be.toggleTranslationMask(r);else if(n==="restorePage")Be.restorePage();else if(n==="retryFailedParagraphs")Be.retryFailedParagraphs();else if(n=="change_translate_service")Be.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Be.switchTranslationMode(r.mode),await Be.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Be.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Wl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Be.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Fs,{detail:r}));else if(n==="translateWithOpenAI")await Be.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Be.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Be.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Be.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Be.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Be.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Be.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Be.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Be.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")$e()||await Be.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!$e())return JSON.stringify(a);await st(5e3)}else if(n==="inputSelectedTextTranslate")await Be.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Be.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Be.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(Ti,{detail:{type:"webReport"}})):n===d1&&await Be.translateSelectImage(a,r)}};function H2(e){Object.assign(Be,e)}function q2(e){Object.assign(Be,e)}function z2(e){Object.assign(Be,e)}var Z7=function(e,t){let{method:n,data:r}=e;if(A.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ke();if(n==="getCurrentPageLanguage"){let a=pt();return Be.detectCurrentPageLanguage().catch(i=>{A.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return er(r),pt();if(n==="getContextString"){let a=Be.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Be.getPureGlobalContext();return Mi(a?.rule)}else if(n=="getAIContextInfo")return xc()}},vc,Tc;function W2(){let e=Sc();$e()||J7(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Sc(){return vc||(vc=new Oa("content_script",!1).getConnection("main",Hr),vc)}function J7(){return Tc||(Tc=new Oa("content_script",!1).getConnection("main_sync",Z7,{sync:!0}),Tc)}var X7=new Map;function Cc(e){let t=Q7(64),n=new CustomEvent(Ul,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{X7.set(t,(i,o)=>{i?a(i):r(o)})})}function Q7(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await V({url:wc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function eA(e,t){return Math.floor(Math.random()*(t-e+1))+e}var tA=30,Sp="RATE_LIMITER_TICKS",yo=class e{static strictTicks={};static clearStrictTicks(){wr(Sp,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Pi(Sp)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){A.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await wr(Sp,JSON.stringify(this.strictTicks))}catch(a){A.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=eA(4,tA);await st(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ct(e){return await Sc().sendMessage("background:main",e)}function V(e){return Il()?Cc({method:"request",data:e}):X()||Fl()?(e.fetchPolyfill=globalThis.GM_fetch,Ri(e)):ct({method:"fetch",data:e})}function Tn(){return X()?Pt():ct({method:"getConfig"})}function qt(e){return X()?zr(e):ct({method:"setUserConfig",data:e})}function Mt(){return X()?cn():ct({method:"getUserConfig"})}function Bn(){return X()?Kt():ct({method:"getLocalConfig"})}function ha(e){return X()?zt(e):ct({method:"setLocalConfig",data:e})}function G2(e){return X()?ab(e):ct({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=vl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(X()||it()){if(e.translateService&&!cc.includes(e.translateService))return Promise.resolve("auto");let r=Vs(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ct({method:"detectLanguage",data:e});return Promise.resolve(t)}function V2(){return ct({method:"detectTabLanguage"})}async function Ec(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(X()||it()){let n=e.substring(0,200);t=await fa.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function L2(e){let t=new CustomEvent(Si,{detail:e});if(document.dispatchEvent(t),X())return;Sc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function $2(e){return X()?E2(e):ct({method:"queryParagraphCache",data:e})}async function K2(e){if(X()){await w2(e);return}return ct({method:"setParagraphCache",data:e})}async function Y2(){if(X())return Promise.resolve();await ct({method:"mockRequest"})}function Na(e=!1,t=""){return document.querySelector(`meta[name=${L}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):X()?(ne.runtime.openOptionsPage(e,t),Promise.resolve()):ct({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function ja(e=""){return X()||it()?be().OPTIONS_URL:ne.runtime.getURL("options.html")}function Z2(e=""){return ne&&ne.runtime&&ne.runtime.getURL?ne.runtime.getURL("options.html"):""}function Ac(e=!1){return X()?(ne.extra.openAboutPage(e),Promise.resolve()):ct({method:"openAboutPage"})}function qr(e){return X()?(ne.extra.openInTab(e),Promise.resolve()):ct({method:"openInTab",data:e})}function J2(e=!1){return X()?(ne.extra.openEbookViewerPage(e),Promise.resolve()):ct({method:"openEbookViewerPage"})}function X2(e=!1){return X()?(ne.extra.openEbookBuilderPage(e),Promise.resolve()):ct({method:"openEbookBuilderPage"})}function kc(e){it()}function bo(e=!1,t){return X()?(ne.extra.openPdfViewerPage(e),Promise.resolve()):ct({method:"openPdfViewerPage",data:{url:t}})}function Q2(e=!1){return X()?(ne.extra.openSubtitleBuilderPage(e),Promise.resolve()):ct({method:"openSubtitleBuilderPage"})}function Xs(e){return X()?Promise.resolve():ct({method:"setBadge",data:{text:e}})}function eb(){return X()?(A.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ct({method:"autoSyncLatestConfig"})}function Dc(e,t=!1){return X()?ne.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function tb(e,t){return X()||le.MOCK==="1"?yo.getDelay(e,t):ct({method:"getDelay",data:{key:e,options:t}})}async function nb(){return X()?!1:ct({method:"getIsSupportIsOnToolbar"})}async function rb(){return X()?!1:ct({method:"getIsOnToolbar"})}async function Cp(){if(!X())return ct({method:"updateVideoSubtitleStatus"})}function _i({targetLanguage:e,text:t}){X()||ct({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Qs(){X()||ct({method:"updateImageMenu"})}var ib={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(b.length>t){let y=[];dp(b,t,y);for(let v=0;v0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&dp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:H7([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var cc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ft(u),c=Object.keys(Cr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&it()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=Cr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=mo);let h=mp(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function y2(e,t,n){return cc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:U7(r.config,n))}function U7(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function x2(e,t,n="en",r){return cc(e,t,n).find(o=>o.id===r)}function Ks(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function v2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function T2(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ci.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function H7(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function q7(e,t){let n=h2(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function dc(e,t){return e?`
+
${q7(t,e)}
+
${t}
`:t}function po(e){let t=location.search.includes(rc);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var go=[],Sz=1e3*3600*24;async function mc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function S2(e){let t=`${L}-${e.service}@${e.from}->${e.to}`;return await G7(t,{...e,createAt:new Date().getTime()})}async function C2(e){let t=Qn(e.originalText),n=`${L}-${e.service}@${e.from}->${e.to}`;return await W7(n,t)}async function W7(e,t){let n=await mc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function G7(e,t){let n=await mc(e);return(await w2()).includes(e)||await V7(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function V7(e){let t="cache_list",n=await mc(L+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),go.push(e)},a.onerror=i=>{n.close()}}async function w2(){if(go&&go.length>0)return go;let e=await mc(L+"-cacheList","cache_list");return go=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),go}async function E2(){try{let t=(await w2()).map(r=>$7(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function $7(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function $e(){try{let e=[be().EBOOK_BUILDER_URL,be().EBOOK_VIEWER_URL,be().SUBTITLE_BUILDER_URL,be().HTML_VIEWER_URL,be().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+rn];da()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var pc="Original";function Ke(){return pc}function Fn(e){pc=e,k2(pc);let t=new CustomEvent(Nt,{detail:JSON.stringify({type:"updatePageStatus",payload:pc})});document.dispatchEvent(t)}var A2="Original";function fo(){return A2}function dr(e,t){if(t)return;A2=e;let n=new CustomEvent(Bs,{detail:e});document.dispatchEvent(n)}var L2="auto",gc="auto",D2="auto";function M2(e){L2=e}function er(e){gc=e}function pt(){return gc!=="auto"?gc:D2!=="auto"?D2:L2}function fc(){return gc}var Ys=new Map,Ba=class{fromType;logger;constructor(t,n=!1){this.logger=new Ws,n&&this.logger.setLevel("debug"),this.fromType=t,Ys.has(t)||(Ys.set(t,new Map),ne.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=gp(s),{type:m,name:p}=d;if(m!==t)return!1;let g=gp(o),b=Ys.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let T=f(r.payload,v);i({ok:!0,data:T})}catch(T){i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.details,errorStatus:T.status})}return!1}else return f(r.payload,v).then(T=>{i({ok:!0,data:T})}).catch(T=>{i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.message,errorStatus:T.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Ys.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new pp(`${i}:${t}`,this.logger);return Ys.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},pp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=gp(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await ne.runtime.sendMessage(o);return P2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await ne.tabs.sendMessage(i,o);return P2(o,s,this.logger)}}};function P2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new j(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new j("noResponse","Unknown error")}function gp(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Di(e){return e?.id?.endsWith("pdfWebPage")||!1}function Li(e){try{if(!e||!Di(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function fp(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function hc(e){return hp(JSON.stringify(e))}async function hp(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var mr,yp=0,bc=!1,Zs="initial",xp=!1,_2="",R2,F2,vp=!1,bp=new Map;async function ho(e,t,n,r){if(vp=!1,F2=e.sourceProgram,R2=e.specialAiAssistant,r!=null&&xp&&mr||mr&&_2==n&&!n.trim())return;Zs="initial",mr=void 0,xp=r||!1;let a=e.rule.bodyRule;if(bc=!1,!n||!a||!e.isPro||(yp=(a.contextTimeout||0)/100,yp<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(bc=i.enableAIContext||!1,!!bc&&e.user?.token)){Zs="requesting";try{let o=await hp(n);if(bp.has(o)){mr=bp.get(o);return}let s=await V({url:rt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});_2=n,mr={theme:s.theme,termsRaw:s.terms,terms:K7(s.terms)},bp.set(o,mr)}catch{}finally{Zs="finished"}A.debug("requestTermsByContext contextTerms",mr)}}function I2(){xp||(Zs="initial",mr=void 0)}function B2(){vp=!0}function yc(){return R2?null:{contextTerms:mr,used:vp,sourceProgram:F2}}async function O2(){if(!(!bc||Zs=="initial")){for(let e=0;ee.includes(n)):[]}function K7(e){let t=[];return e.split(` +`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Ie={},Ur=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Ie.getIsDulSubtitle();if(n==="getPageStatus")return Ke();n==="updateContextState"&&await Ie.updateContextState(r);let a=await Ie.updateGlobalContext(),i=Date.now();if(A.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Ie.translateTheWholePage(r),mt(cr,i);else if(n==="translateTheMainPage")await Ie.translateTheMainPage(r),mt(cr,i);else if(n==="translateToThePageEndImmediately")await Ie.translateToThePageEndImmediately(r),mt(cr,i);else if(n==="toggleTranslateManga")await Ie.toggleTranslateManga(),mt(cr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Di(a?.rule)){let s=Li(a.rule);bo(!0,s||o);return}await Ie.toggleTranslatePage(r),mt(cr,i)}else if(n==="toggleTranslateTheWholePage")await Ie.toggleTranslateTheWholePage(r),mt(cr,i);else if(n==="toggleTranslateTheMainPage")await Ie.toggleTranslateTheMainPage(r),mt(cr,i);else if(n==="toggleOnlyTransation")await Ie.ensureSwitchTranslationMode(r),mt(cr,i);else if(n=="toggleEnableEditTranslation")Ie.toggleEnableEditTranslation();else if(n==="translatePage")await Ie.translatePage(a,r),mt(cr,i);else if(n==="toggleTranslationMask")await Ie.toggleTranslationMask(r);else if(n==="restorePage")Ie.restorePage();else if(n==="retryFailedParagraphs")Ie.retryFailedParagraphs();else if(n=="change_translate_service")Ie.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Ie.switchTranslationMode(r.mode),await Ie.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Ie.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(zl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Ie.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Fs,{detail:r}));else if(n==="translateWithOpenAI")await Ie.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Ie.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Ie.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Ie.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Ie.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Ie.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Ie.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Ie.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Ie.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")$e()||await Ie.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!$e())return JSON.stringify(a);await ot(5e3)}else if(n==="inputSelectedTextTranslate")await Ie.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Ie.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Ie.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}})):n===l1&&await Ie.translateSelectImage(a,r)}};function j2(e){Object.assign(Ie,e)}function U2(e){Object.assign(Ie,e)}function H2(e){Object.assign(Ie,e)}var Y7=function(e,t){let{method:n,data:r}=e;if(A.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ke();if(n==="getCurrentPageLanguage"){let a=pt();return Ie.detectCurrentPageLanguage().catch(i=>{A.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return er(r),pt();if(n==="getContextString"){let a=Ie.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Ie.getPureGlobalContext();return Li(a?.rule)}else if(n=="getAIContextInfo")return yc()}},xc,vc;function q2(){let e=Tc();$e()||Z7(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Tc(){return xc||(xc=new Ba("content_script",!1).getConnection("main",Ur),xc)}function Z7(){return vc||(vc=new Ba("content_script",!1).getConnection("main_sync",Y7,{sync:!0}),vc)}var J7=new Map;function Sc(e){let t=X7(64),n=new CustomEvent(jl,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{J7.set(t,(i,o)=>{i?a(i):r(o)})})}function X7(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await V({url:Cc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function Q7(e,t){return Math.floor(Math.random()*(t-e+1))+e}var eA=30,Sp="RATE_LIMITER_TICKS",yo=class e{static strictTicks={};static clearStrictTicks(){wr(Sp,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mi(Sp)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){A.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await wr(Sp,JSON.stringify(this.strictTicks))}catch(a){A.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=Q7(4,eA);await ot(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await Tc().sendMessage("background:main",e)}function V(e){return Fl()?Sc({method:"request",data:e}):X()||Rl()?(e.fetchPolyfill=globalThis.GM_fetch,_i(e)):lt({method:"fetch",data:e})}function vn(){return X()?Pt():lt({method:"getConfig"})}function qt(e){return X()?qr(e):lt({method:"setUserConfig",data:e})}function Mt(){return X()?cn():lt({method:"getUserConfig"})}function In(){return X()?Kt():lt({method:"getLocalConfig"})}function ga(e){return X()?zt(e):lt({method:"setLocalConfig",data:e})}function z2(e){return X()?nb(e):lt({method:"setBuildinConfig",data:e})}async function Ne(e){if(e.text){let n=xl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(X()||it()){if(e.translateService&&!lc.includes(e.translateService))return Promise.resolve("auto");let r=Gs(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function W2(){return lt({method:"detectTabLanguage"})}async function wc(e){let t=await Ne({text:e,pageLangs:["en"]});try{if(X()||it()){let n=e.substring(0,200);t=await pa.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function k2(e){let t=new CustomEvent(Ti,{detail:e});if(document.dispatchEvent(t),X())return;Tc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function G2(e){return X()?C2(e):lt({method:"queryParagraphCache",data:e})}async function V2(e){if(X()){await S2(e);return}return lt({method:"setParagraphCache",data:e})}async function $2(){if(X())return Promise.resolve();await lt({method:"mockRequest"})}function Oa(e=!1,t=""){return document.querySelector(`meta[name=${L}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):X()?(ne.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Na(e=""){return X()||it()?be().OPTIONS_URL:ne.runtime.getURL("options.html")}function K2(e=""){return ne&&ne.runtime&&ne.runtime.getURL?ne.runtime.getURL("options.html"):""}function Ec(e=!1){return X()?(ne.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Hr(e){return X()?(ne.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function Y2(e=!1){return X()?(ne.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function Z2(e=!1){return X()?(ne.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function Ac(e){it()}function bo(e=!1,t){return X()?(ne.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function J2(e=!1){return X()?(ne.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function Js(e){return X()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function X2(){return X()?(A.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function kc(e,t=!1){return X()?ne.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function Q2(e,t){return X()||le.MOCK==="1"?yo.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function eb(){return X()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function tb(){return X()?!1:lt({method:"getIsOnToolbar"})}async function Cp(){if(!X())return lt({method:"updateVideoSubtitleStatus"})}function Pi({targetLanguage:e,text:t}){X()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Xs(){X()||lt({method:"updateImageMenu"})}var rb={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5619,7 +5619,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var ob={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var ab={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5633,7 +5633,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var sb={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var ib={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5646,20 +5646,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var iA=[{code:"zh-CN",messages:ib},{code:"zh-TW",messages:ob},{code:"en",messages:sb}],ub=X()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Fi={};for(let e of iA)Fi[e.code]=e.messages;async function lb(){try{if(X())return;let e=ne.runtime.getURL("locales.json"),t=await V({url:e,responseType:"json",method:"GET",headers:{"Content-Type":"application/json"}});Object.assign(Fi,t)}catch{}}function oA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=uA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:L+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function cb(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function sA(e,t,n,r){if(!Fi.hasOwnProperty(t)&&!Fi.hasOwnProperty(n))return e;let a=cb(Fi,t,e);return a===e&&t!==n&&(a=cb(Fi,n,e)),oA(a,r)}function uA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function De(e,t,n){return sA(t,e,"en",n)}function db(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function mb(e){return new Date(e).getTime()}var j=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return wi.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=De.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Ql,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Ql,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=De.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var aA=[{code:"zh-CN",messages:rb},{code:"zh-TW",messages:ab},{code:"en",messages:ib}],ob=X()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ri={};for(let e of aA)Ri[e.code]=e.messages;async function sb(){try{if(X())return;let e=ne.runtime.getURL("locales.json"),t=await V({url:e,responseType:"json",method:"GET",headers:{"Content-Type":"application/json"}});Object.assign(Ri,t)}catch{}}function iA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=sA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:L+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function ub(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function oA(e,t,n,r){if(!Ri.hasOwnProperty(t)&&!Ri.hasOwnProperty(n))return e;let a=ub(Ri,t,e);return a===e&&t!==n&&(a=ub(Ri,n,e)),iA(a,r)}function sA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function De(e,t,n){return oA(t,e,"en",n)}function lb(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function cb(e){return new Date(e).getTime()}var j=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ci.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=De.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Xl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Xl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=De.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Ql,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(wi.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=De.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:L,href:P1})];wp(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=De.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Xl,2:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ae+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=De.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ci.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=De.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:L,href:L1})];wp(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:De.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=B1,i?o.push(r("proQuotaError.trail",{brandId:L,href:Ym})):o.push(r("proQuotaError.newPackage",{brandId:L,href:s})),wp(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:De.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=F1,i?o.push(r("proQuotaError.trail",{brandId:L,href:Ym})):o.push(r("proQuotaError.newPackage",{brandId:L,href:s})),wp(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:L,href:tc}));else{let d="";u=="AI"?d=F1:d=I1,o?l.push(r("proQuotaError.trail",{brandId:L,href:Ym})):l.push(r("proQuotaError.package",{brandId:L,href:d,translationService:u})),wp(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=De.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:L,href:ec}));else{let d="";u=="AI"?d=_1:d=R1,o?l.push(r("proQuotaError.trail",{brandId:L,href:Ym})):l.push(r("proQuotaError.package",{brandId:L,href:d,translationService:u})),wp(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function wp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||mb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:db(i,"YYYY-MM-DD HH:mm:ss")}))}function Lc(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function pb(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function gb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function Mc(e){let{mimeType:t,base64:n}=lA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await om(fb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await fb(e);return t}async function fb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Lc(e.body):r=="urlSearchParams"?a.body=pb(e.body):r=="blob"&&e.body&&(a.body=Mc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){A.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new j("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new j("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of cA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` -`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){A.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){A.error("parse response failed",h)}c&&A.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${rn}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new j("fetchError",m).initNetWork(l.status)}}async function*cA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var Pc={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var mA="";function Wt(){return mA||Pc.version}function xo(){return ne.runtime.getManifest().version}function hb(e){let t=eu(),n=xo();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}var pA="";function vo(){return pA||globalThis.navigator.userAgent}function tu(){return vo().includes("ImtFxiOS")}function bb(){let t=vo().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ep(){return vo().includes("ImtFxAndroid")}function yb(){let e=vo();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function xb(){let t=vo().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function nu(){let e=vo();if(tu()||Ep()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var _c=function(){return _c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,gA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function ru(e){return e.then(void 0,function(){}),e}function hA(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function yA(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function xA(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Ua(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function pr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function To(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function tr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];xt(e,t),pr(e,vA),t[1]=e[0]>>>1,xt(e,t),pr(e,TA),t[1]=e[0]>>>1,xt(e,t)}var Rc=[2277735313,289559509],Fc=[1291169091,658871167],Cb=[0,5],SA=[0,1390208809],CA=[0,944331445];function wA(e,t){var n=xA(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function EA(e){var t;return _c({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function AA(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function kA(e){return typeof e!="function"}function DA(e,t){var n=ru(new Promise(function(r){var a=Date.now();vb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function MA(){var e=window,t=navigator;return nr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Bb()}function Oc(){var e=window,t=navigator;return nr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Dr(){var e=window,t=navigator;return nr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Rp(){var e=window,t=e.HTMLElement,n=e.Document;return nr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function au(){var e=window;return AA(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Ob(){var e,t,n=window;return nr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function PA(){var e=window;return nr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function _A(){var e=window;return nr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function iu(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return nr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function RA(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function FA(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function IA(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Fp(){var e=Oc(),t=Ob(),n=window,r=navigator,a="connection";return e?nr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?nr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function BA(){return jA()?-4:OA()}function OA(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(NA())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=UA(a),u=s[0],l=s[1],c=ru(u.then(function(d){return HA(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function NA(){return Dr()&&!Rp()&&!_A()}function jA(){return Dr()&&iu()&&au()}function UA(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(wb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(Fb(g)&&ru(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(wb("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function HA(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function yk(){var e=new Date().getFullYear();return Math.max(kr(new Date(e,0,1).getTimezoneOffset()),kr(new Date(e,6,1).getTimezoneOffset()))}function xk(){try{return!!window.sessionStorage}catch{return!0}}function vk(){try{return!!window.localStorage}catch{return!0}}function Tk(){if(!(Bb()||MA()))try{return!!window.indexedDB}catch{return!0}}function Sk(){return!!window.openDatabase}function Ck(){return navigator.cpuClass}function wk(){var e=navigator.platform;return e==="MacIntel"&&Dr()&&!Rp()?RA()?"iPad":"iPhone":e}function Ek(){return navigator.vendor||""}function Ak(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function Mk(){return Dr()||Fp()}function Pk(e){var t;return Er(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Ar(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},Ab(r),u=0;u`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function wp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||cb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:lb(i,"YYYY-MM-DD HH:mm:ss")}))}function Dc(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function db(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function mb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function Lc(e){let{mimeType:t,base64:n}=uA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await im(pb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await pb(e);return t}async function pb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Dc(e.body):r=="urlSearchParams"?a.body=db(e.body):r=="blob"&&e.body&&(a.body=Lc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){A.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new j("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new j("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of lA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` +`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){A.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){A.error("parse response failed",h)}c&&A.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${rn}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new j("fetchError",m).initNetWork(l.status)}}async function*lA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var Mc={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var dA="";function Wt(){return dA||Mc.version}function xo(){return ne.runtime.getManifest().version}function gb(e){let t=Qs(),n=xo();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}var mA="";function vo(){return mA||globalThis.navigator.userAgent}function eu(){return vo().includes("ImtFxiOS")}function fb(){let t=vo().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ep(){return vo().includes("ImtFxAndroid")}function hb(){let e=vo();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function bb(){let t=vo().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function tu(){let e=vo();if(eu()||Ep()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Pc=function(){return Pc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,pA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function nu(e){return e.then(void 0,function(){}),e}function fA(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function bA(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function yA(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function ja(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function pr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function To(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function tr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];xt(e,t),pr(e,xA),t[1]=e[0]>>>1,xt(e,t),pr(e,vA),t[1]=e[0]>>>1,xt(e,t)}var _c=[2277735313,289559509],Rc=[1291169091,658871167],Tb=[0,5],TA=[0,1390208809],SA=[0,944331445];function CA(e,t){var n=yA(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function wA(e){var t;return Pc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function EA(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function AA(e){return typeof e!="function"}function kA(e,t){var n=nu(new Promise(function(r){var a=Date.now();yb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function LA(){var e=window,t=navigator;return nr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Fb()}function Bc(){var e=window,t=navigator;return nr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Dr(){var e=window,t=navigator;return nr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Rp(){var e=window,t=e.HTMLElement,n=e.Document;return nr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function ru(){var e=window;return EA(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Ib(){var e,t,n=window;return nr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function MA(){var e=window;return nr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function PA(){var e=window;return nr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function au(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return nr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function _A(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function RA(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function FA(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Fp(){var e=Bc(),t=Ib(),n=window,r=navigator,a="connection";return e?nr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?nr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function IA(){return NA()?-4:BA()}function BA(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(OA())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=jA(a),u=s[0],l=s[1],c=nu(u.then(function(d){return UA(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function OA(){return Dr()&&!Rp()&&!PA()}function NA(){return Dr()&&au()&&ru()}function jA(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Sb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(_b(g)&&nu(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Sb("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function UA(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function bk(){var e=new Date().getFullYear();return Math.max(kr(new Date(e,0,1).getTimezoneOffset()),kr(new Date(e,6,1).getTimezoneOffset()))}function yk(){try{return!!window.sessionStorage}catch{return!0}}function xk(){try{return!!window.localStorage}catch{return!0}}function vk(){if(!(Fb()||LA()))try{return!!window.indexedDB}catch{return!0}}function Tk(){return!!window.openDatabase}function Sk(){return navigator.cpuClass}function Ck(){var e=navigator.platform;return e==="MacIntel"&&Dr()&&!Rp()?_A()?"iPad":"iPhone":e}function wk(){return navigator.vendor||""}function Ek(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function Lk(){return Dr()||Fp()}function Mk(e){var t;return Er(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Ar(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},wb(r),u=0;u')}function Vk(){return navigator.pdfViewerEnabled}function $k(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Kk(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Yk())return-3;try{return e.canMakePayments()?1:0}catch(t){return Zk(t)}}var Yk=WA;function Zk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Jk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var jb=-1,Ub=-2,Xk=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Qk=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),eD=["FRAGMENT_SHADER","VERTEX_SHADER"],tD=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Hb="WEBGL_debug_renderer_info",nD="WEBGL_polygon_mode";function rD(e){var t,n,r,a,i,o,s=e.cache,u=qb(s);if(!u)return jb;if(!Wb(u))return Ub;var l=zb()?null:u.getExtension(Hb);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function aD(e){var t=e.cache,n=qb(t);if(!n)return jb;if(!Wb(n))return Ub;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Rb,"/npm-monitoring"),!0),e.send()}catch{}}function TD(e){var t;return e===void 0&&(e={}),Er(this,void 0,void 0,function(){var n,r,a;return Ar(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&vD(),n=e.delayFallback,r=e.debug,[4,yD(n)];case 1:return i.sent(),a=cD({cache:{},debug:r}),[2,xD(a,r)]}})})}var Ip={load:TD,hashComponents:Gb,componentsToDebugString:hD};async function ou(){let e=await jt("fakeUserId","");e||(e=await Di("fakeUserId",""),e&&await ot("fakeUserId",e));let t=new Date,n=await jt("installedAt","");return n||(n=await Di("installedAt",""),n&&await ot("installedAt",n)),e?n||(n=new Date(0).toISOString(),await ot("installedAt",n)):(e=await wD(64),await ot("fakeUserId",e)),n||(n=t.toISOString(),await ot("installedAt",n)),{fakeUserId:e,installedAt:n}}var SD=10;async function wo(){let e=await jt("userTag","");if(e)return e;let{fakeUserId:t}=await ou(),r=t.charCodeAt(0)%SD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await ot("userTag",e),e}function CD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):ED(i,e)}catch{return CD(64)}}function ED(e,t=32){let n="";for(let a=0;a{}),Hc)}async function Kb(e,t){try{let n=be(),r=n.INSTALL_FROM==="firefox_store";if(nu()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=X(),o=$e(),s=n.PROD==="1",u=Wt(),l=new Date,{fakeUserId:c,installedAt:d}=await ou(),m=await wo(),p=await Eo(),g=await Ao(),h=new Date(d),b=Ha(h),f=Ha(l),y=b===f,v=24*60*60*1e3,T=l.getTime()-h.getTime()<7*v,S=l.getTime()-h.getTime()<30*v,E=l.getTime()-h.getTime()<365*v,C=nc(),k="";typeof navigator<"u"&&(k=window.navigator.userAgent);let D=no.parse(k),R=e.map(F=>{let P=F.params||{};if(D.os&&(P.os_name=D.os.name||"unknown",P.os_version=D.os.version||"unknown",P.os_version_name=D.os.versionName||"unknown"),D.browser){P.browser_name=D.browser.name||"unknown",P.browser_version=D.browser.version||"unknown";let O=nu();O&&(P.browser_name=O.name,P.browser_version=O.version)}if(D.platform&&(P.platform_type=D.platform.type||"unknown"),D.engine&&(P.engine_name=D.engine.name||"unknown",P.engine_version=D.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),b){P.install_day=Nc(h);let O=Uc(h);P.install_week=`${O.year}${O.week}`}return P.userscript=i.toString(),y?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=T?"1":"0",P.is_new_user_this_month=S?"1":"0",P.is_new_user_this_year=E?"1":"0",o?P.main_frame=0:P.main_frame=1,m&&(P.ab_tag=m),p&&(P.ab_group=p),P.campaign=g||"none",{...F,params:P}});C.forEach(async F=>{let P=await su({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&kD(c,R)}catch{}}async function AD(e){return await Bp().sendMessage("background:main",e)}function su(e){return Il()?Cc({method:"request",data:e}):X()||Fl()?(e.fetchPolyfill=globalThis.GM_fetch,Ri(e)):AD({method:"fetch",data:e})}function kD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=jc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);su({url:Ws,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){A.debug("report self service error",n)}}var qc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function _k(){for(var e=0,t=["rec2020","p3","srgb"];e')}function Gk(){return navigator.pdfViewerEnabled}function Vk(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function $k(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Kk())return-3;try{return e.canMakePayments()?1:0}catch(t){return Yk(t)}}var Kk=zA;function Yk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Zk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Ob=-1,Nb=-2,Jk=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Xk=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Qk=["FRAGMENT_SHADER","VERTEX_SHADER"],eD=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],jb="WEBGL_debug_renderer_info",tD="WEBGL_polygon_mode";function nD(e){var t,n,r,a,i,o,s=e.cache,u=Ub(s);if(!u)return Ob;if(!qb(u))return Nb;var l=Hb()?null:u.getExtension(jb);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function rD(e){var t=e.cache,n=Ub(t);if(!n)return Ob;if(!qb(n))return Nb;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Pb,"/npm-monitoring"),!0),e.send()}catch{}}function vD(e){var t;return e===void 0&&(e={}),Er(this,void 0,void 0,function(){var n,r,a;return Ar(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&xD(),n=e.delayFallback,r=e.debug,[4,bD(n)];case 1:return i.sent(),a=lD({cache:{},debug:r}),[2,yD(a,r)]}})})}var Ip={load:vD,hashComponents:zb,componentsToDebugString:fD};async function iu(){let e=await jt("fakeUserId","");e||(e=await ki("fakeUserId",""),e&&await mt("fakeUserId",e));let t=new Date,n=await jt("installedAt","");return n||(n=await ki("installedAt",""),n&&await mt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await mt("installedAt",n)):(e=await CD(64),await mt("fakeUserId",e)),n||(n=t.toISOString(),await mt("installedAt",n)),{fakeUserId:e,installedAt:n}}var TD=10;async function wo(){let e=await jt("userTag","");if(e)return e;let{fakeUserId:t}=await iu(),r=t.charCodeAt(0)%TD;return e=String.fromCharCode(r+"a".charCodeAt(0)),await mt("userTag",e),e}function SD(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):wD(i,e)}catch{return SD(64)}}function wD(e,t=32){let n="";for(let a=0;a{}),Uc)}async function Vb(e,t){try{let n=be(),r=n.INSTALL_FROM==="firefox_store";if(tu()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=X(),o=$e(),s=n.PROD==="1",u=Wt(),l=new Date,{fakeUserId:c,installedAt:d}=await iu(),m=await wo(),p=await Eo(),g=await Ao(),h=new Date(d),b=Ua(h),f=Ua(l),y=b===f,v=24*60*60*1e3,T=l.getTime()-h.getTime()<7*v,S=l.getTime()-h.getTime()<30*v,E=l.getTime()-h.getTime()<365*v,w=tc(),k="";typeof navigator<"u"&&(k=window.navigator.userAgent);let D=no.parse(k),R=e.map(F=>{let P=F.params||{};if(D.os&&(P.os_name=D.os.name||"unknown",P.os_version=D.os.version||"unknown",P.os_version_name=D.os.versionName||"unknown"),D.browser){P.browser_name=D.browser.name||"unknown",P.browser_version=D.browser.version||"unknown";let O=tu();O&&(P.browser_name=O.name,P.browser_version=O.version)}if(D.platform&&(P.platform_type=D.platform.type||"unknown"),D.engine&&(P.engine_name=D.engine.name||"unknown",P.engine_version=D.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),b){P.install_day=Oc(h);let O=jc(h);P.install_week=`${O.year}${O.week}`}return P.userscript=i.toString(),y?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=T?"1":"0",P.is_new_user_this_month=S?"1":"0",P.is_new_user_this_year=E?"1":"0",o?P.main_frame=0:P.main_frame=1,m&&(P.ab_tag=m),p&&(P.ab_group=p),P.campaign=g||"none",{...F,params:P}});w.forEach(async F=>{let P=await ou({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:R})})}),t&&AD(c,R)}catch{}}async function ED(e){return await Bp().sendMessage("background:main",e)}function ou(e){return Fl()?Sc({method:"request",data:e}):X()||Rl()?(e.fetchPolyfill=globalThis.GM_fetch,_i(e)):ED({method:"fetch",data:e})}function AD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Nc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);ou({url:zs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){A.debug("report self service error",n)}}var Hc={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5914,18 +5914,18 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function Op(e){return e.replace(//g,">")}var zc=!1,LD=X();function Yb(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function MD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&Zb(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(qa(i,Yl)){if(a===!0)return!0;continue}if(uu(i.nodeName,t.inlineTags))return!0;if(!Np(i,t))return!1}}return!0}function jp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(uu(e.nodeName,n)||Np(e,t)){if(qa(e,v1)||uu(e.nodeName,["BR"]))return!1;if(qa(e,Yl))return!0;if(Np(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return MD(e,t)}else return qa(e,Yl);return!1}function Zb(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&qa(e,x1,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&qa(e,c1))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||uu(e.nodeName,i))}function ko(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!Xb(r)&&r.length>=n}function Jb(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(Xb(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function Xb(e){for(let t=0;t127)return!1;return!0}function Qb(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function ey(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function ty(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function ny(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function ry(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function qa(e,t,n=!1){return Up(e,t,"1",n)}function Up(e,t,n,r=!1){return zc&&!r?e[Zn]?e[Zn]?.[t]===n:!1:e.dataset?.[t]===n}function Do(e){return(e.innerText||e.textContent||"").trim()}function Hp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Wc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function wt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(zc&&!r?(e[Zn]||(e[Zn]={}),e[Zn][t]||(e[Zn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function ay(e,t,n=!1){if(zc&&!n){if(!e[Zn]||!e[Zn][t])return;delete e[Zn][t]}else delete e.dataset[t]}function iy(e,t,n=!1){return zc&&!n?!e[Zn]||!e[Zn][t]?void 0:e[Zn][t]:e.dataset[t]}function Np(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!uu(e.nodeName,n)}function Te(){if(!globalThis||!globalThis.location)return"https://example.com";if(!$e())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Sn(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else A.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){A.warn("injectCSS failed, rootDocument"+r?.message,e)}}function za(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(LD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${L}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function uu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function oy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function sy(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Zb(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return A.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function uy(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function ly(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width2&&(o.children=arguments.length>3?Yc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Gc(e,o,r,a,null)}function Gc(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++gy};return a==null&&_e.vnode!=null&&_e.vnode(i),i}function Et(e){return e.children}function Lo(e,t){this.props=e,this.context=t}function Mo(e,t){if(t==null)return e.__?Mo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Gc(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:Zc}),n.__[e]}function z(e){return mu=1,BD(Ry,e)}function BD(e,t,n){var r=pu(_o++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ry(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=_t,!_t.u)){_t.u=!0;var a=_t.shouldComponentUpdate;_t.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function Y(e,t){var n=pu(_o++,3);!_e.__s&&Vp(n.__H,t)&&(n.__=e,n.i=t,_t.__H.__h.push(n))}function gu(e,t){var n=pu(_o++,4);!_e.__s&&Vp(n.__H,t)&&(n.__=e,n.i=t,_t.__h.push(n))}function we(e){return mu=5,he(function(){return{current:e}},[])}function he(e,t){var n=pu(_o++,7);return Vp(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return mu=8,he(function(){return e},t)}function Xc(e){var t=_t.context[e.__c],n=pu(_o++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(_t)),t.props.value):e.__}function OD(){for(var e;e=_y.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Jc),e.__H.__h.forEach(Gp),e.__H.__h=[]}catch(t){e.__H.__h=[],_e.__e(t,e.__v)}}_e.__b=function(e){typeof e.type!="function"||e.o||e.type===Et?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),_t=null,Ay&&Ay(e)},_e.__r=function(e){ky&&ky(e),_o=0;var t=(_t=e.__c).__H;t&&(Wp===_t?(t.__h=[],_t.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Zc,n.__N=n.i=void 0})):(t.__h.forEach(Jc),t.__h.forEach(Gp),t.__h=[])),Wp=_t},_e.diffed=function(e){Dy&&Dy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(_y.push(t)!==1&&Ey===_e.requestAnimationFrame||((Ey=_e.requestAnimationFrame)||ND)(OD)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Zc&&(n.__=n.__V),n.i=void 0,n.__V=Zc})),Wp=_t=null},_e.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Jc),n.__h=n.__h.filter(function(r){return!r.__||Gp(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],_e.__e(r,n.__v)}}),Ly&&Ly(e,t)},_e.unmount=function(e){My&&My(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Jc(r)}catch(a){t=a}}),n.__H=void 0,t&&_e.__e(t,n.__v))};var Py=typeof requestAnimationFrame=="function";function ND(e){var t,n=function(){clearTimeout(r),Py&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Py&&(t=requestAnimationFrame(n))}function Jc(e){var t=_t,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),_t=t}function Gp(e){var t=_t;e.__c=e.__(),_t=t}function Vp(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ry(e,t){return typeof t=="function"?t(e):t}var Fy=["*://*/*","*","*://*"],By="immersive-translate-wildcard-placeholder.com";function $p(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>Fy.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(Fy.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return UD(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,By),m;try{m=new URL(d)}catch{return A.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=jD(l+":",Iy(p),Iy(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function Iy(e){return e.replaceAll(By,"*")}function jD(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function ze(e,t){return $p(e,t)!==null}function UD(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Oy=null;if(typeof trustedTypes<"u")try{Oy=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var Ny=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(Ny=!0)});function Qc(){return Ny}var Un=Oy;function Uy(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(qD(t,o))return"";i=jy(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let b of n){let f=jy(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";continue}u=f,l+=g(b)||""}h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function Op(e){return e.replace(//g,">")}var qc=!1,DD=X();function $b(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function LD(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&Kb(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Ha(i,Kl)){if(a===!0)return!0;continue}if(su(i.nodeName,t.inlineTags))return!0;if(!Np(i,t))return!1}}return!0}function jp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(su(e.nodeName,n)||Np(e,t)){if(Ha(e,y1)||su(e.nodeName,["BR"]))return!1;if(Ha(e,Kl))return!0;if(Np(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return LD(e,t)}else return Ha(e,Kl);return!1}function Kb(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Ha(e,b1,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Ha(e,u1))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||su(e.nodeName,i))}function ko(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!Zb(r)&&r.length>=n}function Yb(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(Zb(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function Zb(e){for(let t=0;t127)return!1;return!0}function Jb(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function Xb(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Qb(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function ey(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function ty(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Ha(e,t,n=!1){return Up(e,t,"1",n)}function Up(e,t,n,r=!1){return qc&&!r?e[Zn]?e[Zn]?.[t]===n:!1:e.dataset?.[t]===n}function Do(e){return(e.innerText||e.textContent||"").trim()}function Hp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function zc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function wt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(qc&&!r?(e[Zn]||(e[Zn]={}),e[Zn][t]||(e[Zn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function ny(e,t,n=!1){if(qc&&!n){if(!e[Zn]||!e[Zn][t])return;delete e[Zn][t]}else delete e.dataset[t]}function ry(e,t,n=!1){return qc&&!n?!e[Zn]||!e[Zn][t]?void 0:e[Zn][t]:e.dataset[t]}function Np(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!su(e.nodeName,n)}function ye(){if(!globalThis||!globalThis.location)return"https://example.com";if(!$e())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Tn(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else A.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){A.warn("injectCSS failed, rootDocument"+r?.message,e)}}function qa(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(DD){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${L}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function su(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function ay(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function iy(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Kb(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return A.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function oy(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function sy(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width2&&(o.children=arguments.length>3?Kc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Wc(e,o,r,a,null)}function Wc(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++my};return a==null&&_e.vnode!=null&&_e.vnode(i),i}function Et(e){return e.children}function Lo(e,t){this.props=e,this.context=t}function Mo(e,t){if(t==null)return e.__?Mo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Wc(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:Yc}),n.__[e]}function z(e){return du=1,ID(Py,e)}function ID(e,t,n){var r=mu(_o++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Py(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=_t,!_t.u)){_t.u=!0;var a=_t.shouldComponentUpdate;_t.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function Y(e,t){var n=mu(_o++,3);!_e.__s&&Vp(n.__H,t)&&(n.__=e,n.i=t,_t.__H.__h.push(n))}function pu(e,t){var n=mu(_o++,4);!_e.__s&&Vp(n.__H,t)&&(n.__=e,n.i=t,_t.__h.push(n))}function we(e){return du=5,he(function(){return{current:e}},[])}function he(e,t){var n=mu(_o++,7);return Vp(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return du=8,he(function(){return e},t)}function Jc(e){var t=_t.context[e.__c],n=mu(_o++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(_t)),t.props.value):e.__}function BD(){for(var e;e=My.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Zc),e.__H.__h.forEach(Gp),e.__H.__h=[]}catch(t){e.__H.__h=[],_e.__e(t,e.__v)}}_e.__b=function(e){typeof e.type!="function"||e.o||e.type===Et?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),_t=null,wy&&wy(e)},_e.__r=function(e){Ey&&Ey(e),_o=0;var t=(_t=e.__c).__H;t&&(Wp===_t?(t.__h=[],_t.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Yc,n.__N=n.i=void 0})):(t.__h.forEach(Zc),t.__h.forEach(Gp),t.__h=[])),Wp=_t},_e.diffed=function(e){Ay&&Ay(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(My.push(t)!==1&&Cy===_e.requestAnimationFrame||((Cy=_e.requestAnimationFrame)||OD)(BD)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Yc&&(n.__=n.__V),n.i=void 0,n.__V=Yc})),Wp=_t=null},_e.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Zc),n.__h=n.__h.filter(function(r){return!r.__||Gp(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],_e.__e(r,n.__v)}}),ky&&ky(e,t)},_e.unmount=function(e){Dy&&Dy(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Zc(r)}catch(a){t=a}}),n.__H=void 0,t&&_e.__e(t,n.__v))};var Ly=typeof requestAnimationFrame=="function";function OD(e){var t,n=function(){clearTimeout(r),Ly&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ly&&(t=requestAnimationFrame(n))}function Zc(e){var t=_t,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),_t=t}function Gp(e){var t=_t;e.__c=e.__(),_t=t}function Vp(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Py(e,t){return typeof t=="function"?t(e):t}var _y=["*://*/*","*","*://*"],Fy="immersive-translate-wildcard-placeholder.com";function $p(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>_y.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(_y.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return jD(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,Fy),m;try{m=new URL(d)}catch{return A.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=ND(l+":",Ry(p),Ry(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function Ry(e){return e.replaceAll(Fy,"*")}function ND(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function We(e,t){return $p(e,t)!==null}function jD(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Iy=null;if(typeof trustedTypes<"u")try{Iy=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var By=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(By=!0)});function Xc(){return By}var On=Iy;function Ny(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(HD(t,o))return"";i=Oy(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let b of n){let f=Oy(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";continue}u=f,l+=g(b)||""}h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` `).filter(b=>!!b.trim()).length>1)return t.innerHTML||"";return s;function p(b){return b.replace(/\s+/g,"")}function g(b){return b instanceof HTMLElement?b.innerText:b?.textContent||""}function h(){let b=p(g(u)),f=p(l);if(b==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` `)&&y?.startsWith(` `)||!c.endsWith(` `)&&y?.endsWith(` -`)){s+=l;return}s+=$y(u,a)}else s+=l}}function Hy(e,t,n,r,a){if(!e||!t)return"";let i=$y(n,a)||"";return t.replace(i,r)}var Kp=globalThis.document?.createElement("div");function HD(e){return Kp?(Kp.innerHTML=Un?.createHTML(e)||e,Kp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function qy(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||HD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function zy(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function Wy(e,t,n,r){let a="";return n?a=Gy(e,t,n):a=Vy(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function Gy(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?Gy(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function Vy(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Vy(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function $y(e,t){if(e instanceof HTMLElement){if(lu(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=Gy(u,a)}else s+=l}}function jy(e,t,n,r,a){if(!e||!t)return"";let i=Gy(n,a)||"";return t.replace(i,r)}var Kp=globalThis.document?.createElement("div");function UD(e){return Kp?(Kp.innerHTML=On?.createHTML(e)||e,Kp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function Uy(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||UD(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function Hy(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function qy(e,t,n,r){let a="";return n?a=zy(e,t,n):a=Wy(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function zy(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?zy(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function Wy(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Wy(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function Gy(e,t){if(e instanceof HTMLElement){if(uu(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` `)<0?r=Je.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=Je.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}else if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}else return e?.outerHTML;return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function qD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function jy(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function e0(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Yp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Lr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ro(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function Ky(e,t){let n=t||e.translationService;return Ro(e,n,e.config.translationServices)?Yp(e.rule):e.rule}function fu(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var zD=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function rr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Wr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(rr(e,i))return!1;if(rr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!rr(e,o)),c;function d(){return n&&n.display?!!zD.includes(n.display):rr(e,r)}}var At=rr;function Bi(e){return!!e.shadowRoot}function Va(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function hu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Gr(e,t=!1){let n=so;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Ii(e,t,n=!1){let r=e?.[t];return Gr(r,n)}function Fo(e,t){return Ba(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Zp(e){let{rule:t}=e,n=WD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function WD(e){let t=e.config.loadingTheme;return`${L}-loading-${t}`}function bu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,b1,t.toString());let i=Zp(e);return a.append(n?" ...":Je.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Io(e,t){return e.querySelector(`[${zm}='${t}']`)}function Zy(){document.querySelectorAll(`[${zm}]`).forEach(t=>{t.remove()})}function Jy(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function Xy(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{za(n)&&t.push(n)}),t}function Jp(e,t){return t?GD(e):VD(e)}function GD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Qy(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Op(p),m.replace(p,`${p}`)})})}catch(c){A.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function VD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Qy(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=Op(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){A.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Xp(e,t){return t?$D(e):KD(e)}function $D(e){let{text:t,variables:n}=e,r=fu(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function KD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Qy(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Bo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||ry(l)||Qb(l)||ny(l)||ey(l)||ty(l)||ZD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:ko(i?.trim(),n,r)}function Oi(e){return e.nodeType===Node.ELEMENT_NODE}function e9(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Mr(){return await jt("fakeUserId","")}async function YD(){return await jt("installedAt","")}async function Oo(e,t){let r=be().INSTALL_FROM,a=Wt(),i=await YD(),o=await Mr(),s=await Pt(),u=!1,l=await mt.get(dt,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await wo(),m=await Ao(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await Eo();return g&&(p.abGroup=g),p}function yu(e,t){let[n,r]=z();return Y(()=>{!e||!t||(async()=>{let a=await Qp(e,t);r(a)})()},[e,t,r]),n}async function Qp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!it()&&X()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await jt("installedAt","");new Date(o).getTime()s==n),a=JD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function JD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function n9(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function r9(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{t0[e]=setTimeout(()=>{n("")},t)})}function i9(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function $a(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new j(t,n).initNetWork(e.status)}function a0(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function ya(){return Ep()?"imtAndroid":tu()?"imtIOS":X()?"userscript":it()?"safari":Sr()?"firefox":a2()?"chrome":"other"}function Vr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function i0(e){return e?.getAttribute("imt-state")||""}function $r(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function o0(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(rr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function o9(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function s9(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function u9(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var XD={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},n0={...XD};function xa(e){n0[e]||(n0[e]=Date.now())}var Yy=!1;function l9(){if(Yy)return;Yy=!0;let e=n0.initial,t={...n0};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem($+"PerformanceData",JSON.stringify(t))}function Ya(e){if(e.beta)return!1;if(it()&&e.spVersion)return Ka(xo(),e.spVersion);if(yb()&&e.gspVersion){let t=xb();if(t)return Ka(t,e.gspVersion)}if(tu()&&e.ispVersion){let t=bb();if(t)return Ka(t,e.ispVersion)}return!1}function Ka(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function tg(e){e.message?.indexOf("token invalid")>=0&&(mt.remove(dt),Qs())}async function c9(e){let n=(await Pt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),QD(a.toString())}function QD(e){try{it()?qr(e):globalThis.open(e)}catch{globalThis.open(e)}}function d9(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;A.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function m9(e){return ft(e)}function s0(e){return Array.isArray(e)?e:e?[e]:[]}function u0(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function l0(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function p9(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function xu(e,t){let n={...e};return y9(n,t),eL(n,t),n}function b9(e,t,n){let r={...e};return Lr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Lr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function eL(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;y9(e,a)}function Lr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=g9(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=g9(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=s0(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!f9(u))return;d=ng(c,l)}else if(s=="remove_v"){if(!f9(u))return;d=h9(c,l)}else s==="add"?d=ng(c,l):s=="remove"&&(d=h9(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=ng(c,l):d=l,r(o,d)})}function y9(e,t){return Lr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function ng(e,t){let n;if(Array.isArray(e)){let r=s0(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function g9(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function f9(e){let t=Wt();return e&&Ka(t,e)}function h9(e,t){if(Array.isArray(e)){let n=s0(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var x9="userConfig",c0="userPromptPool",d0="userObjectPool";async function m0(){let e=await E9(x9)||{},t=await Pi(c0)||{},n=await Pi(d0)||{};return tL(e,t,n)}async function v9(e){let{userConfig:t,promptPool:n,objectPool:r}=await rg(e);await w9(x9,t),await wr(c0,n),await wr(d0,r)}function rg(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return T9(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),S9(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function tL(e,t,n){return T9(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),S9(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function T9(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function S9(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Za(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=C9(r);for(let o of i)delete a[o]}),n}function ag(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=C9(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function C9(e){let t=Cr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=mo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function A9(e,t){return k9(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function k9(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>k9(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Lr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),oL(l),iL(n,u,l),l=await cL(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function L9(){if(le.PROD==="1")return{};let e={};if(le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(le.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=le.DEEPL_PROXY_ENDPOINT),le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}le.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=le.IMMERSIVE_TRANSLATE_SERVICE);let t={};return le.DEBUG==="1"&&(t.debug=!0,t.cache=!1),le.MOCK==="1"&&(t.translationService="mock"),t}async function Kt(){let e=await ne.storage.local.get(Is);if(e[Is]){let t=e[Is],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await ne.storage.local.set({[Is]:e})}async function ab(e){await ne.storage.local.set({[Vl]:e})}async function M9(){return le.DEBUG==="1"?void 0:(await ne.storage.local.get(Vl))[Vl]}async function p0(){let e=await M9(),n={...eu(),...qc,buildinConfigUpdatedAt:le.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function cn(){return m0()}function zr(e){return v9(e)}async function w9(e,t){await ne.storage.sync.set({[e]:t})}async function E9(e){return(await ne.storage.sync.get(e))[e]}async function wr(e,t){await ne.storage.local.set({[e]:t})}async function Pi(e){return(await ne.storage.local.get(e))[e]}var P9={};function g0(e){return P9[e]}function _9(e,t){P9[e]=t}var nL=async()=>{let e=["zh-CN"];try{e=await ne.i18n.getAcceptLanguages()}catch(r){A.warn("get browser language error:",r)}let n=e.map(r=>Q(r)).find(r=>ub.find(a=>a===r));return n||"en"},eu=()=>{let e={...qc,buildinConfigUpdatedAt:le.BUILD_TIME};return{...e,targetLanguage:Ra,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function rL(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function aL(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ra;let n=await jt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=D9(l,r[s]))}),Lr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=D9(l,n[s]))}),Lr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function oL(e){try{let t=await jt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){A.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function D9(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function sL(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await jt("installedAt",""),p=Number(await Di("translage_page_daily",0)),g=Number(await jt(cr,0)),h;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function lL(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function cL(e,t){let n=await dL(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=xu(e[o],t[o]));else if(o==="translationServices")R9(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(X()||it()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?b9(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(le.PROD==="0"&&le.DEV_RULES){let s=JSON.parse(le.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function dL(){let e={};if(!X()&&ne.commands&&ne.commands.getAll){let t=await ne.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function F9(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!A9(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Lr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&R9(i,e),s&&(r=xu(r,s))}),r}var jo="input is invalid type",ig=typeof window=="object",Ja=ig?window:{};Ja.JS_SHA256_NO_WINDOW&&(ig=!1);var mL=!ig&&typeof self=="object",pL=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;pL?Ja=global:mL&&(Ja=self);var pK=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,gK=typeof define=="function"&&define.amd,vu=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ce="0123456789abcdef".split(""),gL=[-2147483648,8388608,32768,128],Pr=[24,16,8,0],f0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],h0=["hex","array","digest","arrayBuffer"],an=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});vu&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var I9=function(e,t){return function(n){return new on(t,!0).update(n)[e]()}},O9=function(e){var t=I9("hex",e);t.create=function(){return new on(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};on.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=gL[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};on.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+f0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+f0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+f0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+f0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};on.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ce[e>>28&15]+ce[e>>24&15]+ce[e>>20&15]+ce[e>>16&15]+ce[e>>12&15]+ce[e>>8&15]+ce[e>>4&15]+ce[e&15]+ce[t>>28&15]+ce[t>>24&15]+ce[t>>20&15]+ce[t>>16&15]+ce[t>>12&15]+ce[t>>8&15]+ce[t>>4&15]+ce[t&15]+ce[n>>28&15]+ce[n>>24&15]+ce[n>>20&15]+ce[n>>16&15]+ce[n>>12&15]+ce[n>>8&15]+ce[n>>4&15]+ce[n&15]+ce[r>>28&15]+ce[r>>24&15]+ce[r>>20&15]+ce[r>>16&15]+ce[r>>12&15]+ce[r>>8&15]+ce[r>>4&15]+ce[r&15]+ce[a>>28&15]+ce[a>>24&15]+ce[a>>20&15]+ce[a>>16&15]+ce[a>>12&15]+ce[a>>8&15]+ce[a>>4&15]+ce[a&15]+ce[i>>28&15]+ce[i>>24&15]+ce[i>>20&15]+ce[i>>16&15]+ce[i>>12&15]+ce[i>>8&15]+ce[i>>4&15]+ce[i&15]+ce[o>>28&15]+ce[o>>24&15]+ce[o>>20&15]+ce[o>>16&15]+ce[o>>12&15]+ce[o>>8&15]+ce[o>>4&15]+ce[o&15];return this.is224||(u+=ce[s>>28&15]+ce[s>>24&15]+ce[s>>20&15]+ce[s>>16&15]+ce[s>>12&15]+ce[s>>8&15]+ce[s>>4&15]+ce[s&15]),u};on.prototype.toString=on.prototype.hex;on.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};on.prototype.array=on.prototype.digest;on.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function b0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(jo);if(vu&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!vu||!ArrayBuffer.isView(e)))throw new Error(jo)}else throw new Error(jo);e.length>64&&(e=new on(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}on.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}b0.prototype=new on;b0.prototype.finalize=function(){if(on.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();on.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),on.prototype.finalize.call(this)}};var Uo=O9();Uo.sha256=Uo;Uo.sha224=O9(!0);Uo.sha256.hmac=N9();Uo.sha224.hmac=N9(!0);var j9=Uo;var U9=j9.sha256;function Hn(e){return Promise.resolve(U9(e))}function Ho(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=U9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function H9(e,t){let n=await ar(e,t);return Ho(n)}async function y0(e,t){let n=fL(t),r=await ar(e,n);return Ho(r)}function fL(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var hL={lang:"en"};function og(e){let t=Object.assign({},hL,e),[n,r]=z(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>De(n,i,o)}}var bL=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--bL,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return _e.vnode&&_e.vnode(u),u}var sg=Po(null),qo=e=>{let{t,setLang:n,lang:r}=og({lang:e.lang});return x(sg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function ie(){return Xc(sg)}function W9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function _r(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=yL(e,a)),i||(i=xL(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function yL(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=lg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function xL(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function lg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>ze(a,s.matches)&&!ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){A.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function G9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function x0(e,t,n){n=n||await Bn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&q9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&q9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await cn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ha(n),await zr(i)}catch{return!1}return a}async function V9(){return(await Bn()).aiAssistants||[]}async function vL(e,t){(await Promise.allSettled(e.map(r=>V({url:`${w.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&x0("add",a,t)}})}async function TL(e,t,n=!0){e||(e=await Pt()),t||(t=await Bn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await wL();i=await CL(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&vL(o,t)}var va=Pn(TL,1500);function q9(e){return Ka(xo(),e.extensionVersion)}function SL(e,t){return t?!Ka(e.version,t):!1}function CL(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{SL(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function wL(){return(await V({url:`${w.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var EL=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function K9(e,t,n,r,a){let i={...t},o=lg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,G9({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=W9(i,i.langOverrides,n),o||EL.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await j2();i.contextTerms=s}return i}async function Yt(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=zo(t,o),f=zo(t,g),y=s,v=Object.keys(u);for(let G of v){let ye=u[G];if(zo(t,ye)){y=G;break}}let T=l,S=Object.keys(c);for(let G of S){let ye=c[G];if(ye&&zo(t,ye)){T=G;break}}let E=zo(t,d),C=$9(t,d);C||(C=ze(t,A1)),C||(C=ze(t,n.blockUrls));let k=$9(t,n.inputTranslationUrlPattern);k||(k=ze(t,n.inputTranslationBlockUrls));let D=ze(t,n.mutationBlockUrls),R=Object.keys(p),F={};for(let G of R){let ye=p[G];if(ye&&ye.matches)for(let at of ye.matches)F[at]=G}let P=Object.keys(F),O=$p(t,P);O&&(i=F[O]??"auto",F[O]&&F[O]!=="auto"&&er(F[O]));let _=a.hostname,I=await Hn(_),B=a.pathname+a.search+a.hash,W=await Hn(B),te=`https://${I}.com/${W}`,se=await Kt(),je=await p0(),Le=n.translationStartMode,N=kL(se,n);se.aiAssistants=DL(N,n),Le==="dynamic"&&f&&(Le="immediate");let q=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(q=n.inputTranslationService);let Z=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Z=n.mouseHoverTranslationService);let Ee=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Ee=n.subtitleTranslateService);let pe=await mt.get(dt,null),Ge=!1;pe&&(Ge=ft(pe)),n.platform=ya();let de={targetLanguage:h,config:n,translationService:y,inputTranslationService:q,mouseHoverTranslationService:Z,subtitleTranslateService:Ee,isTranslateUrl:E,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:C,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:k,rule:n.generalRule,url:t,encryptedUrl:te,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},localConfig:se};pe&&(de.user=pe,Ge?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(G=>!de.config.generalRule.bodyTranslateTags.includes(G)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let ge=n.translationServices[de.translationService]||{};ge.immediateTranslationTextCount!==void 0&&AL(ge.immediateTranslationTextCount)&&ge.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCount),de.translationService==="deepl"&&(ge?.authKey?.startsWith("immersive_")||ge?.provider==="pro"&&de.user?.token)&&ge.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ge.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCountForImmersiveDeepl),ge&&ge.translationDebounce&&typeof ge.translationDebounce=="number"&&(de.state.translationDebounce=ge.translationDebounce);let me=je.immediateTranslationTextCount;n.immediateTranslationTextCount!==me&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,Se;globalThis.PDFViewerApplication?Se=fe.find(G=>G.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Se=fe.find(G=>G.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Se=fe.find(G=>G.pageType=="ebookBuilder"):Se=fe.find(G=>zo(t,G)),Se&&Se.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(Se&&(de.rule=xu(Ue,Se),de.rule=F9(n,de.rule,Se)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(G=>!de.rule.bodyTranslateTags.includes(G)&&!de.rule.forceTranslateTags.includes(G))),de.rule.mainFrameSelector){let G=document.querySelector(de.rule.mainFrameSelector);G&&(de.mainFrame=G)}return de}function zo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&ze(e,r)?!1:n&&n.length>0&&ze(e,n)?!0:i&&i.length>0&&Wc(i)?!1:!!(a&&a.length>0&&Wc(a))}function $9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&ze(e,n)||r&&r.length>0&&Wc(r))}function AL(e){return typeof e=="number"}function kL(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function DL(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=p9(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return A.error(n),e}}var Wo="imt-subtitle-inject",v0=class{from;to;constructor(t,n){this.from=t,this.to=n}sendMessages(t){globalThis.postMessage({type:Wo,to:this.to,from:this.from,action:t.action,data:t.data,id:t.id||new Date().getTime(),isAsync:!1})}getRandomId(){return(new Date().getTime()+Math.random())*Math.random()}sendAsyncMessages({action:t,data:n}){return new Promise(r=>{let a=this.getRandomId();globalThis.postMessage({type:Wo,to:this.to,from:this.from,action:t,data:n,id:a,isAsync:!0});let i=({data:o})=>{Wo===o.type&&o.id===a&&o.to===this.from&&(r(o.data),globalThis.removeEventListener("message",i))};globalThis.addEventListener("message",i)})}handleMessageOnce(t){return new Promise(n=>{let r=({data:a})=>{Wo===a.type&&a.action===t&&a.to===this.from&&(n(a.data),globalThis.removeEventListener("message",r))};globalThis.addEventListener("message",r)})}handleMessage(t,n){let r=({data:a})=>{Wo===a.type&&a.action===t&&a.to===this.from&&n(a)};return globalThis.addEventListener("message",r),()=>{globalThis.removeEventListener("message",r)}}handleMessages(t){let n=({data:r})=>{Wo===r.type&&r.to===this.from&&t(r)};return globalThis.addEventListener("message",n),()=>{globalThis.removeEventListener("message",n)}}},Ni=new v0("content-script","inject"),LL=new v0("inject","content-script"),Y9={get(e,t,n){return t in e?(...r)=>{let a=e[t];return typeof a=="function"?a.apply(e,r):Reflect.get(e,t,n)}:r=>e.sendAsyncMessages({action:t,data:r})}},yY=new Proxy(LL,Y9),T0=new Proxy(Ni,Y9);async function ML(){try{let e=await FL(Te(),{});if(e.isTranslateExcludeUrl)return;let t=e.rule.subtitleRule;t&&t.type&&!t.disabled&&t.isInject&&_L(e);let n=e.rule.imageRule;n?.enable&&n.type&&PL(e),RL(e)}catch{}}function PL(e){if(X()){let n=be().IMMERSIVE_TRANSLATE_IMAGE_INJECT,r=document.createElement("script");r.id="imt-image-inject",r.textContent=n,document.head?.appendChild(r)}else ne.storage.sync.get("open").then(()=>{let t=ne.runtime.getURL("image/inject.js");if(document.querySelector(`script[src='${t}']`))return;let r=document.createElement("script");r.src=t,r.id="imt-image-inject",document.head?.appendChild(r)})}function _L(e){if(X()){let n=be().IMMERSIVE_TRANSLATE_VIDEO_SUBTITLE_INJECT,r=document.createElement("script");r.id="imt-subtitles-inject",r.textContent=n,document.head?.appendChild(r)}else ne.storage.sync.get("open").then(()=>{let t=ne.runtime.getURL("video-subtitle/inject.js");if(document.querySelector(`script[src='${t}']`))return;let r=document.createElement("script");r.src=t,r.id="imt-subtitles-inject",document.head?.appendChild(r)})}function RL(e){Ni.handleMessages(({id:t,action:n})=>{if(n==="getConfig"){let r=e.rule.subtitleRule;Ni.sendMessages({id:t,data:r})}})}ML();var Go=null;async function FL(e,t){let n=Object.keys(t);if(Go){let r={url:e,config:Go.config,state:{...Go.state,...t}};Go=await Yt(r)}else{let r=await IL(),a=t;n.length===0&&(a=void 0),Go=await Yt({url:e,config:r,state:a})}return Go}function IL(){return X()?Pt():BL({method:"getConfig"})}async function BL(e){return await Bp().sendMessage("background:main",e)}var OL=` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function HD(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Oy(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Qc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Yp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Lr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ro(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function Vy(e,t){let n=t||e.translationService;return Ro(e,n,e.config.translationServices)?Yp(e.rule):e.rule}function gu(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var qD=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function rr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function zr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(rr(e,i))return!1;if(rr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!rr(e,o)),c;function d(){return n&&n.display?!!qD.includes(n.display):rr(e,r)}}var At=rr;function Ii(e){return!!e.shadowRoot}function Ga(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function fu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Wr(e,t=!1){let n=so;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Fi(e,t,n=!1){let r=e?.[t];return Wr(r,n)}function Fo(e,t){return Ia(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Zp(e){let{rule:t}=e,n=zD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function zD(e){let t=e.config.loadingTheme;return`${L}-loading-${t}`}function hu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Lt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,f1,t.toString());let i=Zp(e);return a.append(n?" ...":Je.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Io(e,t){return e.querySelector(`[${zm}='${t}']`)}function Ky(){document.querySelectorAll(`[${zm}]`).forEach(t=>{t.remove()})}function Yy(){document.querySelectorAll(`.${Lt}-error`).forEach(t=>{t.remove()})}function Zy(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{qa(n)&&t.push(n)}),t}function Jp(e,t){return t?WD(e):GD(e)}function WD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Jy(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Op(p),m.replace(p,`${p}`)})})}catch(c){A.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function GD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Jy(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=Op(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){A.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Xp(e,t){return t?VD(e):$D(e)}function VD(e){let{text:t,variables:n}=e,r=gu(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function $D(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Jy(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Bo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||ty(l)||Jb(l)||ey(l)||Xb(l)||Qb(l)||YD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:ko(i?.trim(),n,r)}function Bi(e){return e.nodeType===Node.ELEMENT_NODE}function Xy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Mr(){return await jt("fakeUserId","")}async function KD(){return await jt("installedAt","")}async function Oo(e,t){let r=be().INSTALL_FROM,a=Wt(),i=await KD(),o=await Mr(),s=await Pt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await wo(),m=await Ao(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await Eo();return g&&(p.abGroup=g),p}function bu(e,t){let[n,r]=z();return Y(()=>{!e||!t||(async()=>{let a=await Qp(e,t);r(a)})()},[e,t,r]),n}async function Qp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!it()&&X()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await jt("installedAt","");new Date(o).getTime()s==n),a=ZD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function ZD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function e9(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function t9(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{e0[e]=setTimeout(()=>{n("")},t)})}function r9(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Va(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new j(t,n).initNetWork(e.status)}function r0(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function ha(){return Ep()?"imtAndroid":eu()?"imtIOS":X()?"userscript":it()?"safari":Sr()?"firefox":n2()?"chrome":"other"}function Gr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function a0(e){return e?.getAttribute("imt-state")||""}function Vr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function i0(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(rr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function a9(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function i9(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function o9(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var JD={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},t0={...JD};function ba(e){t0[e]||(t0[e]=Date.now())}var $y=!1;function s9(){if($y)return;$y=!0;let e=t0.initial,t={...t0};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem($+"PerformanceData",JSON.stringify(t))}function Ka(e){if(e.beta)return!1;if(it()&&e.spVersion)return $a(xo(),e.spVersion);if(hb()&&e.gspVersion){let t=bb();if(t)return $a(t,e.gspVersion)}if(eu()&&e.ispVersion){let t=fb();if(t)return $a(t,e.ispVersion)}return!1}function $a(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function tg(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),Xs())}async function u9(e){let n=(await Pt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),XD(a.toString())}function XD(e){try{it()?Hr(e):globalThis.open(e)}catch{globalThis.open(e)}}function l9(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;A.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function c9(e){return ft(e)}function o0(e){return Array.isArray(e)?e:e?[e]:[]}function s0(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function u0(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function d9(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function yu(e,t){let n={...e};return h9(n,t),QD(n,t),n}function f9(e,t,n){let r={...e};return Lr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Lr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function QD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;h9(e,a)}function Lr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=m9(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=m9(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=o0(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!p9(u))return;d=ng(c,l)}else if(s=="remove_v"){if(!p9(u))return;d=g9(c,l)}else s==="add"?d=ng(c,l):s=="remove"&&(d=g9(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=ng(c,l):d=l,r(o,d)})}function h9(e,t){return Lr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function ng(e,t){let n;if(Array.isArray(e)){let r=o0(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function m9(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function p9(e){let t=Wt();return e&&$a(t,e)}function g9(e,t){if(Array.isArray(e)){let n=o0(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var b9="userConfig",l0="userPromptPool",c0="userObjectPool";async function d0(){let e=await C9(b9)||{},t=await Mi(l0)||{},n=await Mi(c0)||{};return eL(e,t,n)}async function y9(e){let{userConfig:t,promptPool:n,objectPool:r}=await rg(e);await S9(b9,t),await wr(l0,n),await wr(c0,r)}function rg(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return x9(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),v9(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function eL(e,t,n){return x9(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),v9(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function x9(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function v9(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ya(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=T9(r);for(let o of i)delete a[o]}),n}function ag(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=T9(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function T9(e){let t=Cr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=mo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function w9(e,t){return E9(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function E9(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>E9(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,d)=>{c!="generalRule"&&(l[c]=d)}}),Lr({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,d)=>{l.generalRule[c]=d}}),await iL(l),aL(n,u,l),l=await lL(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function k9(){if(le.PROD==="1")return{};let e={};if(le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:le.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:le.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:le.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:le.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:le.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:le.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:le.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(le.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=le.DEEPL_PROXY_ENDPOINT),le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=le.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:le.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}le.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=le.IMMERSIVE_TRANSLATE_SERVICE);let t={};return le.DEBUG==="1"&&(t.debug=!0,t.cache=!1),le.MOCK==="1"&&(t.translationService="mock"),t}async function Kt(){let e=await ne.storage.local.get(Is);if(e[Is]){let t=e[Is],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await ne.storage.local.set({[Is]:e})}async function nb(e){await ne.storage.local.set({[Gl]:e})}async function D9(){return le.DEBUG==="1"?void 0:(await ne.storage.local.get(Gl))[Gl]}async function m0(){let e=await D9(),n={...Qs(),...Hc,buildinConfigUpdatedAt:le.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function cn(){return d0()}function qr(e){return y9(e)}async function S9(e,t){await ne.storage.sync.set({[e]:t})}async function C9(e){return(await ne.storage.sync.get(e))[e]}async function wr(e,t){await ne.storage.local.set({[e]:t})}async function Mi(e){return(await ne.storage.local.get(e))[e]}var L9={};function p0(e){return L9[e]}function M9(e,t){L9[e]=t}var tL=async()=>{let e=["zh-CN"];try{e=await ne.i18n.getAcceptLanguages()}catch(r){A.warn("get browser language error:",r)}let n=e.map(r=>Q(r)).find(r=>ob.find(a=>a===r));return n||"en"},Qs=()=>{let e={...Hc,buildinConfigUpdatedAt:le.BUILD_TIME};return{...e,targetLanguage:_a,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function nL(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function rL(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return _a;let n=await jt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=A9(l,r[s]))}),Lr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=A9(l,n[s]))}),Lr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function iL(e){try{let t=await jt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){A.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function A9(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function oL(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let d=(e?.translationLanguagePattern?.matches?.length||0)>0,m=await jt("installedAt",""),p=Number(await ki("translage_page_daily",0)),g=Number(await jt(cr,0)),h;g>0&&(Date.now()-g0&&(Date.now()-pr&&(e=t)}return e}function uL(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function lL(e,t){let n=await cL(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=yu(e[o],t[o]));else if(o==="translationServices")P9(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(X()||it()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?f9(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(le.PROD==="0"&&le.DEV_RULES){let s=JSON.parse(le.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function cL(){let e={};if(!X()&&ne.commands&&ne.commands.getAll){let t=await ne.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function _9(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!w9(a,e))return;let{generalRule:s,translationServices:u,...l}=i;Lr({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,d)=>{e[c]=d}}),u&&P9(i,e),s&&(r=yu(r,s))}),r}var jo="input is invalid type",ig=typeof window=="object",Za=ig?window:{};Za.JS_SHA256_NO_WINDOW&&(ig=!1);var dL=!ig&&typeof self=="object",mL=!Za.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;mL?Za=global:dL&&(Za=self);var gK=!Za.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,fK=typeof define=="function"&&define.amd,xu=!Za.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ce="0123456789abcdef".split(""),pL=[-2147483648,8388608,32768,128],Pr=[24,16,8,0],g0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f0=["hex","array","digest","arrayBuffer"],an=[];(Za.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});xu&&(Za.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var R9=function(e,t){return function(n){return new on(t,!0).update(n)[e]()}},I9=function(e){var t=R9("hex",e);t.create=function(){return new on(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};on.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=pL[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};on.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+g0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+g0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+g0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+g0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};on.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ce[e>>28&15]+ce[e>>24&15]+ce[e>>20&15]+ce[e>>16&15]+ce[e>>12&15]+ce[e>>8&15]+ce[e>>4&15]+ce[e&15]+ce[t>>28&15]+ce[t>>24&15]+ce[t>>20&15]+ce[t>>16&15]+ce[t>>12&15]+ce[t>>8&15]+ce[t>>4&15]+ce[t&15]+ce[n>>28&15]+ce[n>>24&15]+ce[n>>20&15]+ce[n>>16&15]+ce[n>>12&15]+ce[n>>8&15]+ce[n>>4&15]+ce[n&15]+ce[r>>28&15]+ce[r>>24&15]+ce[r>>20&15]+ce[r>>16&15]+ce[r>>12&15]+ce[r>>8&15]+ce[r>>4&15]+ce[r&15]+ce[a>>28&15]+ce[a>>24&15]+ce[a>>20&15]+ce[a>>16&15]+ce[a>>12&15]+ce[a>>8&15]+ce[a>>4&15]+ce[a&15]+ce[i>>28&15]+ce[i>>24&15]+ce[i>>20&15]+ce[i>>16&15]+ce[i>>12&15]+ce[i>>8&15]+ce[i>>4&15]+ce[i&15]+ce[o>>28&15]+ce[o>>24&15]+ce[o>>20&15]+ce[o>>16&15]+ce[o>>12&15]+ce[o>>8&15]+ce[o>>4&15]+ce[o&15];return this.is224||(u+=ce[s>>28&15]+ce[s>>24&15]+ce[s>>20&15]+ce[s>>16&15]+ce[s>>12&15]+ce[s>>8&15]+ce[s>>4&15]+ce[s&15]),u};on.prototype.toString=on.prototype.hex;on.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};on.prototype.array=on.prototype.digest;on.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function h0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(jo);if(xu&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!xu||!ArrayBuffer.isView(e)))throw new Error(jo)}else throw new Error(jo);e.length>64&&(e=new on(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}on.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}h0.prototype=new on;h0.prototype.finalize=function(){if(on.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();on.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),on.prototype.finalize.call(this)}};var Uo=I9();Uo.sha256=Uo;Uo.sha224=I9(!0);Uo.sha256.hmac=B9();Uo.sha224.hmac=B9(!0);var O9=Uo;var N9=O9.sha256;function Hn(e){return Promise.resolve(N9(e))}function Ho(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=N9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function j9(e,t){let n=await ar(e,t);return Ho(n)}async function b0(e,t){let n=gL(t),r=await ar(e,n);return Ho(r)}function gL(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var fL={lang:"en"};function og(e){let t=Object.assign({},fL,e),[n,r]=z(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>De(n,i,o)}}var hL=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--hL,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return _e.vnode&&_e.vnode(u),u}var sg=Po(null),qo=e=>{let{t,setLang:n,lang:r}=og({lang:e.lang});return x(sg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function ie(){return Jc(sg)}function q9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function ya(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=bL(e,a)),i||(i=yL(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function bL(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=lg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function yL(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function lg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){A.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function z9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function y0(e,t,n){n=n||await In();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&U9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&U9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await cn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ga(n),await qr(i)}catch{return!1}return a}async function W9(){return(await In()).aiAssistants||[]}async function xL(e,t){(await Promise.allSettled(e.map(r=>V({url:`${C.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&y0("add",a,t)}})}async function vL(e,t,n=!0){e||(e=await Pt()),t||(t=await In());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await CL();i=await SL(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&xL(o,t)}var xa=Mn(vL,1500);function U9(e){return $a(xo(),e.extensionVersion)}function TL(e,t){return t?!$a(e.version,t):!1}function SL(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{TL(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function CL(){return(await V({url:`${C.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var wL=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function V9(e,t,n,r,a){let i={...t},o=lg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,z9({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=q9(i,i.langOverrides,n),o||wL.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await O2();i.contextTerms=s}return i}async function Yt(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=zo(t,o),f=zo(t,g),y=s,v=Object.keys(u);for(let G of v){let xe=u[G];if(zo(t,xe)){y=G;break}}let T=l,S=Object.keys(c);for(let G of S){let xe=c[G];if(xe&&zo(t,xe)){T=G;break}}let E=zo(t,d),w=G9(t,d);w||(w=We(t,w1)),w||(w=We(t,n.blockUrls));let k=G9(t,n.inputTranslationUrlPattern);k||(k=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),R=Object.keys(p),F={};for(let G of R){let xe=p[G];if(xe&&xe.matches)for(let at of xe.matches)F[at]=G}let P=Object.keys(F),O=$p(t,P);O&&(i=F[O]??"auto",F[O]&&F[O]!=="auto"&&er(F[O]));let _=a.hostname,I=await Hn(_),B=a.pathname+a.search+a.hash,W=await Hn(B),te=`https://${I}.com/${W}`,se=await Kt(),je=await m0(),Le=n.translationStartMode,N=AL(se,n);se.aiAssistants=kL(N,n),Le==="dynamic"&&f&&(Le="immediate");let q=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(q=n.inputTranslationService);let Z=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Z=n.mouseHoverTranslationService);let Ee=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Ee=n.subtitleTranslateService);let pe=await dt.get(ct,null),Ge=!1;pe&&(Ge=ft(pe)),n.platform=ha();let de={targetLanguage:h,config:n,translationService:y,inputTranslationService:q,mouseHoverTranslationService:Z,subtitleTranslateService:Ee,isTranslateUrl:E,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:k,rule:n.generalRule,url:t,encryptedUrl:te,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:Le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},localConfig:se};pe&&(de.user=pe,Ge?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(G=>!de.config.generalRule.bodyTranslateTags.includes(G)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let ge=n.translationServices[de.translationService]||{};ge.immediateTranslationTextCount!==void 0&&EL(ge.immediateTranslationTextCount)&&ge.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCount),de.translationService==="deepl"&&(ge?.authKey?.startsWith("immersive_")||ge?.provider==="pro"&&de.user?.token)&&ge.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ge.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=ge.immediateTranslationTextCountForImmersiveDeepl),ge&&ge.translationDebounce&&typeof ge.translationDebounce=="number"&&(de.state.translationDebounce=ge.translationDebounce);let me=je.immediateTranslationTextCount;n.immediateTranslationTextCount!==me&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,Se;globalThis.PDFViewerApplication?Se=fe.find(G=>G.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Se=fe.find(G=>G.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Se=fe.find(G=>G.pageType=="ebookBuilder"):Se=fe.find(G=>zo(t,G)),Se&&Se.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(Se&&(de.rule=yu(Ue,Se),de.rule=_9(n,de.rule,Se)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(G=>!de.rule.bodyTranslateTags.includes(G)&&!de.rule.forceTranslateTags.includes(G))),de.rule.mainFrameSelector){let G=document.querySelector(de.rule.mainFrameSelector);G&&(de.mainFrame=G)}return de}function zo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&zc(i)?!1:!!(a&&a.length>0&&zc(a))}function G9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&zc(r))}function EL(e){return typeof e=="number"}function AL(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function kL(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=d9(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return A.error(n),e}}var Wo="imt-subtitle-inject",x0=class{from;to;constructor(t,n){this.from=t,this.to=n}sendMessages(t){globalThis.postMessage({type:Wo,to:this.to,from:this.from,action:t.action,data:t.data,id:t.id||new Date().getTime(),isAsync:!1})}getRandomId(){return(new Date().getTime()+Math.random())*Math.random()}sendAsyncMessages({action:t,data:n}){return new Promise(r=>{let a=this.getRandomId();globalThis.postMessage({type:Wo,to:this.to,from:this.from,action:t,data:n,id:a,isAsync:!0});let i=({data:o})=>{Wo===o.type&&o.id===a&&o.to===this.from&&(r(o.data),globalThis.removeEventListener("message",i))};globalThis.addEventListener("message",i)})}handleMessageOnce(t){return new Promise(n=>{let r=({data:a})=>{Wo===a.type&&a.action===t&&a.to===this.from&&(n(a.data),globalThis.removeEventListener("message",r))};globalThis.addEventListener("message",r)})}handleMessage(t,n){let r=({data:a})=>{Wo===a.type&&a.action===t&&a.to===this.from&&n(a)};return globalThis.addEventListener("message",r),()=>{globalThis.removeEventListener("message",r)}}handleMessages(t){let n=({data:r})=>{Wo===r.type&&r.to===this.from&&t(r)};return globalThis.addEventListener("message",n),()=>{globalThis.removeEventListener("message",n)}}},Oi=new x0("content-script","inject"),DL=new x0("inject","content-script"),$9={get(e,t,n){return t in e?(...r)=>{let a=e[t];return typeof a=="function"?a.apply(e,r):Reflect.get(e,t,n)}:r=>e.sendAsyncMessages({action:t,data:r})}},xY=new Proxy(DL,$9),v0=new Proxy(Oi,$9);async function LL(){try{let e=await RL(ye(),{});if(e.isTranslateExcludeUrl)return;let t=e.rule.subtitleRule;t&&t.type&&!t.disabled&&t.isInject&&PL(e);let n=e.rule.imageRule;n?.enable&&n.type&&ML(e),_L(e)}catch{}}function ML(e){if(X()){let n=be().IMMERSIVE_TRANSLATE_IMAGE_INJECT,r=document.createElement("script");r.id="imt-image-inject",r.textContent=n,document.head?.appendChild(r)}else ne.storage.sync.get("open").then(()=>{let t=ne.runtime.getURL("image/inject.js");if(document.querySelector(`script[src='${t}']`))return;let r=document.createElement("script");r.src=t,r.id="imt-image-inject",document.head?.appendChild(r)})}function PL(e){if(X()){let n=be().IMMERSIVE_TRANSLATE_VIDEO_SUBTITLE_INJECT,r=document.createElement("script");r.id="imt-subtitles-inject",r.textContent=n,document.head?.appendChild(r)}else ne.storage.sync.get("open").then(()=>{let t=ne.runtime.getURL("video-subtitle/inject.js");if(document.querySelector(`script[src='${t}']`))return;let r=document.createElement("script");r.src=t,r.id="imt-subtitles-inject",document.head?.appendChild(r)})}function _L(e){Oi.handleMessages(({id:t,action:n})=>{if(n==="getConfig"){let r=e.rule.subtitleRule;Oi.sendMessages({id:t,data:r})}})}LL();var Go=null;async function RL(e,t){let n=Object.keys(t);if(Go){let r={url:e,config:Go.config,state:{...Go.state,...t}};Go=await Yt(r)}else{let r=await FL(),a=t;n.length===0&&(a=void 0),Go=await Yt({url:e,config:r,state:a})}return Go}function FL(){return X()?Pt():IL({method:"getConfig"})}async function IL(e){return await Bp().sendMessage("background:main",e)}var BL=` .toastify { padding: 12px 20px; color: #ffffff; @@ -6008,40 +6008,40 @@ Translate the content to {{to}} Language: max-width: fit-content; } } -`,cg="immersive-translate-toastify-shadow-root",dg=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(cg)){let t=document.getElementById(cg);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=cg,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=OL,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function S0(e){e=e||{},new dg({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}async function Z9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",mg(t),"AES-GCM",!0,["encrypt","decrypt"]),a=mg(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:mg(n)},r,a);return NL(i)}catch{return Promise.reject("Encryption failed")}}function NL(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let _=O.params||{};if(F.os&&(_.os_name=F.os.name||"unknown",_.os_version=F.os.version||"unknown",_.os_version_name=F.os.versionName||"unknown"),F.browser&&(_.browser_name=F.browser.name||"unknown",_.browser_version=F.browser.version||"unknown",r&&(_.browser_name=r.name,_.browser_version=r.version)),F.platform&&(_.platform_type=F.platform.type||"unknown"),F.engine&&(_.engine_name=F.engine.name||"unknown",_.engine_version=F.engine.version||"unknown"),n.translationService){_.translation_service||(_.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!_.ai_assistant&&_.translation_service&&n.specialAiAssistant?.applyTranslationService==_.translation_service&&(_.ai_assistant=n?.specialAiAssistant.id),B.enableAIContext&&(_.ai_assistant="ai_context"),B&&(B.provider&&(_.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?_.openai_is_official="1":_.openai_is_official="0":_.openai_is_official="1"),B.extends=="ai"&&!_.ai_assistant&&(_.ai_assistant="common"))}if(_.translation_service&&_.translation_service.startsWith("custom")&&(_.translation_service="custom-ai"),_.ai_assistant&&_.ai_assistant.startsWith("custom")&&(_.ai_assistant="custom"),_.ai_assistant_use&&_.ai_assistant_use.startsWith("custom")&&(_.ai_assistant_use="custom"),n.targetLanguage&&(_.target_language=n.targetLanguage),n.config.interfaceLanguage&&(_.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?_.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":_.enable_default_always_translated_urls="0",d&&(_.version=d),n.config.enableInputTranslation?_.enable_input_translation=n.config.enableInputTranslation?"1":"0":_.enable_input_translation="0",n.config.translationTheme&&(_.translation_theme=n.config.translationTheme),n.config.alpha&&(_.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?_.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):_.always_translate_languages="none",a.INSTALL_FROM&&(_.install_from=a.INSTALL_FROM),n.config.beta&&(_.beta=n.config.alpha.toString()),n.config.translationArea&&(_.translation_area=n.config.translationArea),v){_.install_day=Nc(y);let B=Uc(y);_.install_week=`${B.year}${B.week}`}if(n.user){let B=l2(n.user);B&&Object.keys(B).forEach(W=>{_[W]=B[W]})}else _.user_type="anonymous";n.config.translationMode&&(_.translation_mode=n.config.translationMode),_.userscript=o.toString(),S?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=C?"1":"0",_.is_new_user_this_month=k?"1":"0",_.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?_.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():_.temp_translate_domain_minutes="0";let I="html";if(n.rule.pageType&&(I=n.rule.pageType),_.page_type=I,s?_.main_frame=0:_.main_frame=1,!c){let B=n.url;try{let W=new URL(B);_.site_host=W.hostname}catch{_.site_host="unknown"}n.sourceLanguage&&(_.source_language=n.sourceLanguage)}return h&&(_.ab_tag=h),b&&(_.ab_group=b),_.campaign=f||"none",{...O,params:_}});if(i)return;R.forEach(async O=>{let _=await V({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&jL(p,P),n.config.enablePerformanceReport&&qL(n,P)}catch(r){A.debug("report error",r)}}function jL(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};J9(r);let a=Date.now()+(Math.random()*100).toFixed(0);V({url:Ws,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){A.debug("report self service error",n)}}var UL=Date.now(),HL=["translate_page","translate_video_subtitle"];function qL(e,t){try{t.forEach(async n=>{if(!HL.includes(n.name)||e.config.performanceBlockUrls?.some(l=>ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};J9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-UL},s=await Z9(JSON.stringify(o),q1,z1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);V({url:Ws,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){A.debug("report self service error",n)}}function J9(e){return e?.install_day&&(e.install_day=jc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Xa(e){return e!=null}function e6(e,t,n){return`${e.type}#${t}#${n}`}function t6(e,t,n,r,a){return{body:a,id:r,type:e6(e,t,n)}}function zL(e,t,n,r){return{id:n,response:r,type:e6(e,"ask",t)}}function n6(e,t,n,r){if(Xa(r)){let a=r.type;if(Xa(a)&&Xa(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function WL(e,t,n){if(Xa(n)){let r=n.type;if(Xa(r)&&Xa(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function GL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function VL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;WL(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function $L(e,t,n,r){let a=i=>{let o=i.data;n6(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function X9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(n6(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(zL(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function KL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(t6(t,"tell",n,i,r),a)}async function Q9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await VL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(t6(n,"ask",r,s,a),i),u}var Qa=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;X9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Xa(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Q9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push($L(this.thisWindow,this.protocol,t,n))}tell(t,n){KL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(X9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Q9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){GL(this.listeners)}};var r6;async function a6(){if($e()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qa.iframe(Xl,"*",{targetWindow:t});r6=n,await Qa.connect(n).catch(r=>{A.error("connect with parent frame error",r)})}}function i6(){return r6}function o6(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=x2(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let E=y instanceof j?new j(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f?.callback?.(E,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let T=p[b],S=0;for(let E=0;E{let S=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(S=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(C=>C.text),forces:f.tempSentences.map(C=>C.force),xpaths:f.tempSentences.map(C=>C.xpath||""),from:S,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let E=T1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(E=this.serviceConfig.translationTextSeparator);let C=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(C=this.serviceConfig.newlinePlaceholderDelimiters);let k=[],D=Gr(this.serviceConfig);if(f.tempSentences.forEach((B,W)=>{let te=Jp({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(te&&te.text&&te.text.trim().lengthW.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:B,from:S,to:f.to})}let R="";C&&C.length>=2?R=k.map((B,W)=>{let{item:te}=B;return W===k.length-1?te.text:te.text+C[0]+(W+1)+C[1]}).join(""):R=k.map(({item:B})=>B.text).join(E);let F=await this.translate({text:R,from:S,to:f.to,url:y,options:{...n,rawTextArrayLength:k.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:P}=F,O=[];if(C&&C.length>=2){let B=`${C[0]}\\d+${C[1]}`;C&&C.length>=3&&(B=C[2]);let W=new RegExp(B,"g");O=P.split(W)}else O=P.split(E);let _=[];if(O.length>k.length){for(let B=0;BB.text);return D=Gr(this.serviceConfig,!0),_.forEach((B,W)=>{let te=k[W],se=te.index,je=te.variables||{};Object.keys(je).length>0&&(B=Xp({text:B,delimiters:D,variables:je},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),I[se]=B}),{sourceTempSentences:f.tempSentences,text:I,from:F.from,to:F.to}}};m.push(T().then(S=>{let{text:E,sourceTempSentences:C}=S;for(let k=0;k{if(S instanceof j&&S.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let E=0;E{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Gr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Jp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){A.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Gr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Xp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var s6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Tu=class e extends Ae{static langMap=new Map(s6);maxTextGroupLength=50;static langMapReverse=new Map(s6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new j("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` +`,cg="immersive-translate-toastify-shadow-root",dg=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(cg)){let t=document.getElementById(cg);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=cg,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=BL,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function T0(e){e=e||{},new dg({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}async function K9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",mg(t),"AES-GCM",!0,["encrypt","decrypt"]),a=mg(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:mg(n)},r,a);return OL(i)}catch{return Promise.reject("Encryption failed")}}function OL(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let _=O.params||{};if(F.os&&(_.os_name=F.os.name||"unknown",_.os_version=F.os.version||"unknown",_.os_version_name=F.os.versionName||"unknown"),F.browser&&(_.browser_name=F.browser.name||"unknown",_.browser_version=F.browser.version||"unknown",r&&(_.browser_name=r.name,_.browser_version=r.version)),F.platform&&(_.platform_type=F.platform.type||"unknown"),F.engine&&(_.engine_name=F.engine.name||"unknown",_.engine_version=F.engine.version||"unknown"),n.translationService){_.translation_service||(_.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!_.ai_assistant&&_.translation_service&&n.specialAiAssistant?.applyTranslationService==_.translation_service&&(_.ai_assistant=n?.specialAiAssistant.id),B.enableAIContext&&(_.ai_assistant="ai_context"),B&&(B.provider&&(_.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?_.openai_is_official="1":_.openai_is_official="0":_.openai_is_official="1"),B.extends=="ai"&&!_.ai_assistant&&(_.ai_assistant="common"))}if(_.translation_service&&_.translation_service.startsWith("custom")&&(_.translation_service="custom-ai"),_.ai_assistant&&_.ai_assistant.startsWith("custom")&&(_.ai_assistant="custom"),_.ai_assistant_use&&_.ai_assistant_use.startsWith("custom")&&(_.ai_assistant_use="custom"),n.targetLanguage&&(_.target_language=n.targetLanguage),n.config.interfaceLanguage&&(_.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?_.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":_.enable_default_always_translated_urls="0",d&&(_.version=d),n.config.enableInputTranslation?_.enable_input_translation=n.config.enableInputTranslation?"1":"0":_.enable_input_translation="0",n.config.translationTheme&&(_.translation_theme=n.config.translationTheme),n.config.alpha&&(_.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?_.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):_.always_translate_languages="none",a.INSTALL_FROM&&(_.install_from=a.INSTALL_FROM),n.config.beta&&(_.beta=n.config.alpha.toString()),n.config.translationArea&&(_.translation_area=n.config.translationArea),v){_.install_day=Oc(y);let B=jc(y);_.install_week=`${B.year}${B.week}`}if(n.user){let B=s2(n.user);B&&Object.keys(B).forEach(W=>{_[W]=B[W]})}else _.user_type="anonymous";n.config.translationMode&&(_.translation_mode=n.config.translationMode),_.userscript=o.toString(),S?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=w?"1":"0",_.is_new_user_this_month=k?"1":"0",_.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?_.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():_.temp_translate_domain_minutes="0";let I="html";if(n.rule.pageType&&(I=n.rule.pageType),_.page_type=I,s?_.main_frame=0:_.main_frame=1,!c){let B=n.url;try{let W=new URL(B);_.site_host=W.hostname}catch{_.site_host="unknown"}n.sourceLanguage&&(_.source_language=n.sourceLanguage)}return h&&(_.ab_tag=h),b&&(_.ab_group=b),_.campaign=f||"none",{...O,params:_}});if(i)return;R.forEach(async O=>{let _=await V({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&NL(p,P),n.config.enablePerformanceReport&&HL(n,P)}catch(r){A.debug("report error",r)}}function NL(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};Y9(r);let a=Date.now()+(Math.random()*100).toFixed(0);V({url:zs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){A.debug("report self service error",n)}}var jL=Date.now(),UL=["translate_page","translate_video_subtitle"];function HL(e,t){try{t.forEach(async n=>{if(!UL.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};Y9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-jL},s=await K9(JSON.stringify(o),U1,H1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);V({url:zs,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){A.debug("report self service error",n)}}function Y9(e){return e?.install_day&&(e.install_day=Nc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Ja(e){return e!=null}function X9(e,t,n){return`${e.type}#${t}#${n}`}function Q9(e,t,n,r,a){return{body:a,id:r,type:X9(e,t,n)}}function qL(e,t,n,r){return{id:n,response:r,type:X9(e,"ask",t)}}function e6(e,t,n,r){if(Ja(r)){let a=r.type;if(Ja(a)&&Ja(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function zL(e,t,n){if(Ja(n)){let r=n.type;if(Ja(r)&&Ja(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function WL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function GL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;zL(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function VL(e,t,n,r){let a=i=>{let o=i.data;e6(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function Z9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(e6(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(qL(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function $L(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(Q9(t,"tell",n,i,r),a)}async function J9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await GL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(Q9(n,"ask",r,s,a),i),u}var Xa=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;Z9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ja(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await J9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(VL(this.thisWindow,this.protocol,t,n))}tell(t,n){$L(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Z9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return J9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){WL(this.listeners)}};var t6;async function n6(){if($e()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Xa.iframe(Jl,"*",{targetWindow:t});t6=n,await Xa.connect(n).catch(r=>{A.error("connect with parent frame error",r)})}}function r6(){return t6}function a6(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=b2(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let E=y instanceof j?new j(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f?.callback?.(E,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let T=p[b],S=0;for(let E=0;E{let S=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(S=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:S,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let E=x1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(E=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let k=[],D=Wr(this.serviceConfig);if(f.tempSentences.forEach((B,W)=>{let te=Jp({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(te&&te.text&&te.text.trim().lengthW.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:B,from:S,to:f.to})}let R="";w&&w.length>=2?R=k.map((B,W)=>{let{item:te}=B;return W===k.length-1?te.text:te.text+w[0]+(W+1)+w[1]}).join(""):R=k.map(({item:B})=>B.text).join(E);let F=await this.translate({text:R,from:S,to:f.to,url:y,options:{...n,rawTextArrayLength:k.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:f.inArticleContext}),{text:P}=F,O=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let W=new RegExp(B,"g");O=P.split(W)}else O=P.split(E);let _=[];if(O.length>k.length){for(let B=0;BB.text);return D=Wr(this.serviceConfig,!0),_.forEach((B,W)=>{let te=k[W],se=te.index,je=te.variables||{};Object.keys(je).length>0&&(B=Xp({text:B,delimiters:D,variables:je},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),I[se]=B}),{sourceTempSentences:f.tempSentences,text:I,from:F.from,to:F.to}}};m.push(T().then(S=>{let{text:E,sourceTempSentences:w}=S;for(let k=0;k{if(S instanceof j&&S.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let E=0;E{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Wr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Jp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){A.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Wr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Xp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ne({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var i6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],vu=class e extends Ae{static langMap=new Map(i6);maxTextGroupLength=50;static langMapReverse=new Map(i6.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new j("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Hn(a)].join(` `),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Hn(c)].join(` -`),p=await H9(d,`TC3${n}`),g=await y0(i,p),h=await y0("tc3_request",g),b=await y0(m,h),f=await V({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new j(f.Response.Error.Message);return f}};var u6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],YL={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Su=class e extends Ae{static langMap=new Map(u6);static langMapReverse=new Map(u6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await V({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:YL,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var l6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Cu=class e extends Ae{static langMap=new Map(l6);static langMapReverse=new Map(l6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new j("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new j("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await V({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function ZL(e,t){return t?e+(t-e%t):e}function JL(e,t){return e.split(t).length-1}function pg(e){let t=Date.now(),n=1;for(let r of e)n+=JL(r,"i");return ZL(t,n)}function XL(e,t){return Math.floor(Math.random()*(t-e+1))+e}function gg(){return XL(1e6,1e8)}var fg="https://www2.deepl.com/jsonrpc",hg="auto",c6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function QL(e=c6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function bg(e){return QL()[e.toLowerCase()]}var eM={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function tM(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function nM(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function rM(e,t,n,r,a,i,o){let s=gg(),u=nM(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=pg(t);let c=await V({retry:2,method:"POST",url:e,body:tM(u),headers:eM}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function d6(e,t,n,r=hg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:rM(e,t,bg(n),bg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var m6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Vo=class e extends Ae{static langMap=new Map(m6);static langMapReverse=new Map(m6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=fg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(fg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await d6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var wu=class e extends Ae{static langMap=new Map(Tp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=fa.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=be(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=p6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await V({url:wc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new j(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=be(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=p6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await V({url:wc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new j(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function p6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function yg(){return Math.random()>=.001}var $o=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!yg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Y2(),!yg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var f6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],xg=new Map(f6),g6=new Map(f6.map(([e,t])=>[t,e])),vg=class e extends Ae{static langMap=xg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new j("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await V({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:xg.get(r)||"auto",target_lang:xg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:g6.get(o.source_lang),to:g6.get(o.target_lang)}}else throw new j(i.msg)}},C0=vg;var Tg="https://{s}bing.com",v6=Tg+"/translator",aM=Tg+"/ttranslatev3",iM=Tg+"/tspellcheckv3",w0="bingGlobalConfig",T6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],h6=new Map(T6),b6=new Map(T6.map(([e,t])=>[t,e])),y6=1e3,Rr,Ko;function Sg(e,t){return e.replace("{s}",t?t+".":"")}async function oM(){if(!Rr){let n=await ne.storage.local.get(w0);return n&&(Rr=n[w0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Rr;return Date.now()-e>t}async function x6(){let e,t,n,r,a,i,o,s,u,l;try{let c=Sg(v6,e),d=await V({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Rr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ne.storage.local.set({[w0]:Rr}),Rr}function sM(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Rr;return Sg(e?iM:aM,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Rr.count++:"")}function uM(e,t,n,r){let{token:a,key:i}=Rr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function S6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>y6)throw new Error(`The supported maximum length of text is ${y6}. Please shorten the text.`);Ko||(Ko=x6()),await Ko,await oM()&&(Ko=x6(),await Ko),t=t||"auto",n=n||"zh-CN",t=h6.get(t)||t,n=h6.get(n)||n;let a=sM(!1),i=uM(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:Sg(v6,Rr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await V({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Rr=null,Ko=null,await ne.storage.local.remove(w0),c.ShowCaptcha)throw new Error(` +`),p=await j9(d,`TC3${n}`),g=await b0(i,p),h=await b0("tc3_request",g),b=await b0(m,h),f=await V({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new j(f.Response.Error.Message);return f}};var o6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],KL={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Tu=class e extends Ae{static langMap=new Map(o6);static langMapReverse=new Map(o6.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await V({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:KL,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var s6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Su=class e extends Ae{static langMap=new Map(s6);static langMapReverse=new Map(s6.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new j("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new j("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await V({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function YL(e,t){return t?e+(t-e%t):e}function ZL(e,t){return e.split(t).length-1}function pg(e){let t=Date.now(),n=1;for(let r of e)n+=ZL(r,"i");return YL(t,n)}function JL(e,t){return Math.floor(Math.random()*(t-e+1))+e}function gg(){return JL(1e6,1e8)}var fg="https://www2.deepl.com/jsonrpc",hg="auto",u6=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function XL(e=u6){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function bg(e){return XL()[e.toLowerCase()]}var QL={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function eM(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function tM(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function nM(e,t,n,r,a,i,o){let s=gg(),u=tM(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=pg(t);let c=await V({retry:2,method:"POST",url:e,body:eM(u),headers:QL}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function l6(e,t,n,r=hg,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:nM(e,t,bg(n),bg(r)??"auto",a,i,o):{text:[],from:r,to:n}}var c6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Vo=class e extends Ae{static langMap=new Map(c6);static langMapReverse=new Map(c6.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=fg;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(fg,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await l6(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var Cu=class e extends Ae{static langMap=new Map(Tp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=pa.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=be(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=d6());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await V({url:Cc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new j(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=be(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=d6()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await V({url:Cc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new j(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return pa.detectLanguageRemotelyByTransmart(t)}};function d6(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function yg(){return Math.random()>=.001}var $o=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!yg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await $2(),!yg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var p6=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],xg=new Map(p6),m6=new Map(p6.map(([e,t])=>[t,e])),vg=class e extends Ae{static langMap=xg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new j("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await V({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:xg.get(r)||"auto",target_lang:xg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:m6.get(o.source_lang),to:m6.get(o.target_lang)}}else throw new j(i.msg)}},S0=vg;var Tg="https://{s}bing.com",y6=Tg+"/translator",rM=Tg+"/ttranslatev3",aM=Tg+"/tspellcheckv3",C0="bingGlobalConfig",x6=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],g6=new Map(x6),f6=new Map(x6.map(([e,t])=>[t,e])),h6=1e3,_r,Ko;function Sg(e,t){return e.replace("{s}",t?t+".":"")}async function iM(){if(!_r){let n=await ne.storage.local.get(C0);return n&&(_r=n[C0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=_r;return Date.now()-e>t}async function b6(){let e,t,n,r,a,i,o,s,u,l;try{let c=Sg(y6,e),d=await V({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return _r={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ne.storage.local.set({[C0]:_r}),_r}function oM(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=_r;return Sg(e?aM:rM,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+_r.count++:"")}function sM(e,t,n,r){let{token:a,key:i}=_r,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function v6(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>h6)throw new Error(`The supported maximum length of text is ${h6}. Please shorten the text.`);Ko||(Ko=b6()),await Ko,await iM()&&(Ko=b6(),await Ko),t=t||"auto",n=n||"zh-CN",t=g6.get(t)||t,n=g6.get(n)||n;let a=oM(!1),i=sM(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:Sg(y6,_r.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await V({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(_r=null,Ko=null,await ne.storage.local.remove(C0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:b6.get(m.language),to:b6.get(d.to)}}var E0=new Map;async function Cg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Qn(e.body)),E0.has(t))return E0.get(t);let n=V(e);E0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{E0.delete(t)},3e3)}}async function C6(e){return Cg(e)}async function Kr(e){if($e()){let n=i6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw A.error("can not comunicate with root frame, use strict limiter",r),r}else return Cg(e)}else return Cg(e)}function w6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function k0(e){await sp(e)}async function Yr(e,t){let n=await ip(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return A0(e,t)}return A0(e,t)}async function A0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await op(e,n,i-1e3),n}var lM=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],wg=new Map(lM),Fr=class extends Ae{static langMap=wg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await k0(Im)}async translate(t){let{text:n,from:r,to:a}=t;return n?await S6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Yr(Im,async()=>{let t=await Kr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return w6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=wg.get(n)||"auto",o=wg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await V({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new j("Microsoft translate error "+JSON.stringify(d))}};var cM=["chinese","english","japanese","korean","french","spanish","deutsch"],Zr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},D0=e=>Zr.chinese.test(e),dM=e=>Zr.english.test(e),mM=e=>Zr.japanese.test(e),pM=e=>Zr.korean.test(e),gM=e=>Zr.french.test(e),fM=e=>Zr.deutsch.test(e),hM=e=>Zr.spanish.test(e),_X={chinese:br(D0),english:br(dM),japanese:br(mM),korean:br(pM),french:br(gM),spanish:br(hM),deutsch:br(fM)},E6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,RX=new RegExp(`^(\\d|\\s|${E6.source})+$`),bM=new RegExp(`${Zr.chinese.source}|${Zr.japanese.source}|${Zr.korean.source}`),FX=br(e=>(e.replace(new RegExp(E6,"g")," ").replace(new RegExp(bM,"g")," x ").match(/\S+/g)||"").length),IX=[...cM,"others","matchAll"];var k6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Eu=new Map(k6),yM=new Map(k6.map(([e,t])=>[t,e])),Eg=class extends Ae{static langMap=Eu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${rn}/v2/translate`;immersiveTranslateDeeplTokenUrl=rt;immersiveTranslateDeeplProApiUrl=rt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new j("authKey are required");if(!this.authKey)throw new j("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:Eu.get(n)||"",target_lang:Eu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:Eu.get(n)||"auto",target_lang:Eu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await V({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await V({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await V({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>Ag(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new Fr({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&yM.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!pa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},Yo=Eg;function Ag(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&D0(t[0])&&A6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&D0(t[t.length-1])&&A6(t,"\u300A")==1?t+"\u300B":xM(e,t)}function xM(e,t){let n=e?.richIdName;return!n||!u9(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function A6(e,t){return e.split(t).length-1}var vM=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],kg=new Map(vM),Dg=class extends Ae{static langMap=kg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:kg.get(r)||r,to:kg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await V(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new j(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},D6=Dg;var TM=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Lg=new Map(TM),Mg=class extends Ae{static langMap=Lg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Lg.get(a)||a};r!=="auto"&&(i.from=Lg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await V(c);if(d.length===0)throw new j("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},L6=Mg;var SM=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Zo=new Map(SM),Pg=class extends Ae{static langMap=Zo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:f6.get(m.language),to:f6.get(d.to)}}var w0=new Map;async function Cg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Qn(e.body)),w0.has(t))return w0.get(t);let n=V(e);w0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{w0.delete(t)},3e3)}}async function T6(e){return Cg(e)}async function $r(e){if($e()){let n=r6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw A.error("can not comunicate with root frame, use strict limiter",r),r}else return Cg(e)}else return Cg(e)}function S6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function A0(e){await sp(e)}async function Kr(e,t){let n=await ip(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return E0(e,t)}return E0(e,t)}async function E0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await op(e,n,i-1e3),n}var uM=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],wg=new Map(uM),Rr=class extends Ae{static langMap=wg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await A0(Fm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await v6(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Kr(Fm,async()=>{let t=await $r({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return S6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=wg.get(n)||"auto",o=wg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await V({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new j("Microsoft translate error "+JSON.stringify(d))}};var lM=["chinese","english","japanese","korean","french","spanish","deutsch"],Yr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},k0=e=>Yr.chinese.test(e),cM=e=>Yr.english.test(e),dM=e=>Yr.japanese.test(e),mM=e=>Yr.korean.test(e),pM=e=>Yr.french.test(e),gM=e=>Yr.deutsch.test(e),fM=e=>Yr.spanish.test(e),RX={chinese:br(k0),english:br(cM),japanese:br(dM),korean:br(mM),french:br(pM),spanish:br(fM),deutsch:br(gM)},C6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,FX=new RegExp(`^(\\d|\\s|${C6.source})+$`),hM=new RegExp(`${Yr.chinese.source}|${Yr.japanese.source}|${Yr.korean.source}`),IX=br(e=>(e.replace(new RegExp(C6,"g")," ").replace(new RegExp(hM,"g")," x ").match(/\S+/g)||"").length),BX=[...lM,"others","matchAll"];var E6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],wu=new Map(E6),bM=new Map(E6.map(([e,t])=>[t,e])),Eg=class extends Ae{static langMap=wu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${rn}/v2/translate`;immersiveTranslateDeeplTokenUrl=rt;immersiveTranslateDeeplProApiUrl=rt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new j("authKey are required");if(!this.authKey)throw new j("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:wu.get(n)||"",target_lang:wu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:wu.get(n)||"auto",target_lang:wu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await V({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await V({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await V({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>Ag(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},m=await new Rr({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&bM.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!da()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},Yo=Eg;function Ag(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&k0(t[0])&&w6(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&k0(t[t.length-1])&&w6(t,"\u300A")==1?t+"\u300B":yM(e,t)}function yM(e,t){let n=e?.richIdName;return!n||!o9(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function w6(e,t){return e.split(t).length-1}var xM=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],kg=new Map(xM),Dg=class extends Ae{static langMap=kg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:kg.get(r)||r,to:kg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await V(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new j(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},A6=Dg;var vM=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Lg=new Map(vM),Mg=class extends Ae{static langMap=Lg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Lg.get(a)||a};r!=="auto"&&(i.from=Lg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await V(c);if(d.length===0)throw new j("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},k6=Mg;var TM=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Zo=new Map(TM),Pg=class extends Ae{static langMap=Zo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Zo.get(r)?(i=(await V({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Zo.get(r)||r,target:Zo.get(a)||a})):u.body=JSON.stringify({text:s,source:Zo.get(r),target:Zo.get(a)||a});let l=await V(u);if(l.translatedText==="")throw new j("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},M6=Pg;function P6(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Zo.get(r)?(i=(await V({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Zo.get(r)||r,target:Zo.get(a)||a})):u.body=JSON.stringify({text:s,source:Zo.get(r),target:Zo.get(a)||a});let l=await V(u);if(l.translatedText==="")throw new j("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},D6=Pg;function L6(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` `+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var _g=class extends Ae{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=po()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?mc(l,s):`${s}${rc}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let b="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(e0(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let R=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let P=0;PP==="from"?c:P==="to"?d+" Language":P==="text"?r:P=="json"?b:P=="yaml"?f:m[P]===""?"":m[P]||F).replace(/{{(.+?)}}/g,(F,P)=>m[P]||F)}}async rawRequest(t){return await V(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=po()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?dc(l,s):`${s}${nc}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,d=u.get(i)||i,m=this.serviceConfig.env||{};m={...m};let p=s?.sourceProgram,g=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),g&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let b="",f="",y=l.includes("{{json}}"),v=l.includes("{{yaml}}");if(Qc(r)&&this.isRichTranslate?m.content_type="html":m.html_only="",y){let R=[],F=m.imt_json_item||"";g&&(F=m.imt_subtitle_json_item||F);for(let P=0;PP==="from"?c:P==="to"?d+" Language":P==="text"?r:P=="json"?b:P=="yaml"?f:m[P]===""?"":m[P]||F).replace(/{{(.+?)}}/g,(F,P)=>m[P]||F)}}async rawRequest(t){return await V(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;a`\`${s}\``).join(", "),A.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;s`\`${s}\``).join(", "),A.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` [theme]`,n.imt_theme,` -\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){A.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Qn(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ei=_g;function CM(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var wM=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],_6=new Map(wM),Rg=class extends ei{static langMap=_6;provider="custom";immersiveApiUrl=`https://openai-api.${rn}/v1/chat/completions`;immersiveProApiUrl=rt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return _6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Qn(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!Yo.langMap.has(n.to)||!Yo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Yo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},R6=Rg;function dn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function EM(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Ce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ti(e,t){return e<>>32-t}function Jr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Jo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function F6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Xo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Xr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var I6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?dn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Jr(a(m,r),t)},this.b64=function(m){return Qr(a(m),n)},this.any=function(m,p){return Xr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Jr(i(m,p),t)},this.b64_hmac=function(m,p){return Qr(i(m,p),n)},this.any_hmac=function(m,p,g){return Xr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?dn(m):m,F6(o(Xo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?dn(m):m,p=r?dn(p):p,g=Xo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Xo(p)),512+p.length*8),F6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,T=-271733879,S=-1732584194,E=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Ta(c)),512+c.length*8),Jo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),T=1732584193,S=-271733879,E=-1732584194,C=271733878,k=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(k=v(k,T.length*8));C<16;C+=1)D[C]=k[C]^909522486,R[C]=k[C]^1549556828;return E=v(D.concat(Ta(S)),512+S.length*8),Jo(v(R.concat(E),512+256))}function s(T,S){return T>>>S|T<<32-S}function u(T,S){return T>>>S}function l(T,S,E){return T&S^~T&E}function c(T,S,E){return T&S^T&E^S&E}function d(T){return s(T,2)^s(T,13)^s(T,22)}function m(T){return s(T,6)^s(T,11)^s(T,25)}function p(T){return s(T,7)^s(T,18)^u(T,3)}function g(T){return s(T,17)^s(T,19)^u(T,10)}function h(T){return s(T,28)^s(T,34)^s(T,39)}function b(T){return s(T,14)^s(T,18)^s(T,41)}function f(T){return s(T,1)^s(T,8)^u(T,7)}function y(T){return s(T,19)^s(T,61)^u(T,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(T,S){var E=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],C=new Array(64),k,D,R,F,P,O,_,I,B,W,te,se;for(T[S>>5]|=128<<24-S%32,T[(S+64>>9<<4)+15]=S,B=0;B32&&(T=s(T,b.length*8));v<32;v+=1)S[v]=T[v]^909522486,E[v]=T[v]^1549556828;return y=s(S.concat(Ta(f)),1024+f.length*8),Jo(s(E.concat(y),1024+512))}function s(b,f){var y,v,T,S=new Array(80),E=new Array(16),C=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],k=new u(0,0),D=new u(0,0),R=new u(0,0),F=new u(0,0),P=new u(0,0),O=new u(0,0),_=new u(0,0),I=new u(0,0),B=new u(0,0),W=new u(0,0),te=new u(0,0),se=new u(0,0),je=new u(0,0),Le=new u(0,0),N=new u(0,0),q=new u(0,0),Z=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)S[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,T=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v>>>16),S=(f.h&65535)+(y.h&65535)+(T>>>16),E=(f.h>>>16)+(y.h>>>16)+(S>>>16);b.l=v&65535|T<<16,b.h=S&65535|E<<16}function g(b,f,y,v,T){var S=(f.l&65535)+(y.l&65535)+(v.l&65535)+(T.l&65535),E=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(T.l>>>16)+(S>>>16),C=(f.h&65535)+(y.h&65535)+(v.h&65535)+(T.h&65535)+(E>>>16),k=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(T.h>>>16)+(C>>>16);b.l=S&65535|E<<16,b.h=C&65535|k<<16}function h(b,f,y,v,T,S){var E=(f.l&65535)+(y.l&65535)+(v.l&65535)+(T.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(T.l>>>16)+(S.l>>>16)+(E>>>16),k=(f.h&65535)+(y.h&65535)+(v.h&65535)+(T.h&65535)+(S.h&65535)+(C>>>16),D=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(T.h>>>16)+(S.h>>>16)+(k>>>16);b.l=E&65535|C<<16,b.h=k&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Jr(u(h,r))},this.b64=function(h){return Qr(u(h,r),n)},this.any=function(h,b){return Xr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Jr(l(h,b))},this.b64_hmac=function(h,b){return Qr(l(h,b),n)},this.any_hmac=function(h,b,f){return Xr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?dn(h):h,c(d(Xo(h),h.length*8))}function l(h,b){h=r?dn(h):h,b=r?dn(b):b;var f,y,v=Xo(h),T=Array(16),S=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)T[f]=v[f]^909522486,S[f]=v[f]^1549556828;return y=d(T.concat(Xo(b)),512+b.length*8),c(d(S.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,T,S=1732584193,E=4023233417,C=2562383102,k=271733878,D=3285377520,R,F,P,O,_,I,B,W,te,se;for(h[b>>5]|=128<>>9<<4)+14]=b,T=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new j("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new I6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await V({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new j(g.Message);return g}};var AM=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Ut={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Ig=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Fg).sort().join(`&${r}=`)}`:`${r}=${Fg(n)}`}).filter(t=>t).join("&"),Qo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Ut.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Ut.tokenHeader]=t.sessionToken),a[Ut.dateHeader]=r,a[Ut.notSignBody]="",a[Ut.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Ut.algorithmKey]=Ut.algorithm,a[Ut.signHeadersKey]="",a[Ut.signQueriesKey]=void 0,a[Ut.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Ut.signQueriesKey]=Object.keys(a).sort().join(";"),a[Ut.signatureKey]=s,Ig(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Ut.dateHeader]=n,t.sessionToken&&(this.request.headers[Ut.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Ut.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ho(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Ut.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){A.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Qn(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Qa=_g;function SM(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var CM=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],M6=new Map(CM),Rg=class extends Qa{static langMap=M6;provider="custom";immersiveApiUrl=`https://openai-api.${rn}/v1/chat/completions`;immersiveProApiUrl=rt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return M6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Qn(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!Yo.langMap.has(n.to)||!Yo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Yo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},P6=Rg;function dn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function wM(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Ce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ei(e,t){return e<>>32-t}function Zr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Jo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function _6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Xo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Jr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var R6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?dn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Zr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Jr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Zr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Jr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?dn(m):m,_6(o(Xo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?dn(m):m,p=r?dn(p):p,g=Xo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Xo(p)),512+p.length*8),_6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,T=-271733879,S=-1732584194,E=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(va(c)),512+c.length*8),Jo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),T=1732584193,S=-271733879,E=-1732584194,w=271733878,k=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(k=v(k,T.length*8));w<16;w+=1)D[w]=k[w]^909522486,R[w]=k[w]^1549556828;return E=v(D.concat(va(S)),512+S.length*8),Jo(v(R.concat(E),512+256))}function s(T,S){return T>>>S|T<<32-S}function u(T,S){return T>>>S}function l(T,S,E){return T&S^~T&E}function c(T,S,E){return T&S^T&E^S&E}function d(T){return s(T,2)^s(T,13)^s(T,22)}function m(T){return s(T,6)^s(T,11)^s(T,25)}function p(T){return s(T,7)^s(T,18)^u(T,3)}function g(T){return s(T,17)^s(T,19)^u(T,10)}function h(T){return s(T,28)^s(T,34)^s(T,39)}function b(T){return s(T,14)^s(T,18)^s(T,41)}function f(T){return s(T,1)^s(T,8)^u(T,7)}function y(T){return s(T,19)^s(T,61)^u(T,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(T,S){var E=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),k,D,R,F,P,O,_,I,B,W,te,se;for(T[S>>5]|=128<<24-S%32,T[(S+64>>9<<4)+15]=S,B=0;B32&&(T=s(T,b.length*8));v<32;v+=1)S[v]=T[v]^909522486,E[v]=T[v]^1549556828;return y=s(S.concat(va(f)),1024+f.length*8),Jo(s(E.concat(y),1024+512))}function s(b,f){var y,v,T,S=new Array(80),E=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],k=new u(0,0),D=new u(0,0),R=new u(0,0),F=new u(0,0),P=new u(0,0),O=new u(0,0),_=new u(0,0),I=new u(0,0),B=new u(0,0),W=new u(0,0),te=new u(0,0),se=new u(0,0),je=new u(0,0),Le=new u(0,0),N=new u(0,0),q=new u(0,0),Z=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)S[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,T=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),T=(f.l>>>16)+(y.l>>>16)+(v>>>16),S=(f.h&65535)+(y.h&65535)+(T>>>16),E=(f.h>>>16)+(y.h>>>16)+(S>>>16);b.l=v&65535|T<<16,b.h=S&65535|E<<16}function g(b,f,y,v,T){var S=(f.l&65535)+(y.l&65535)+(v.l&65535)+(T.l&65535),E=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(T.l>>>16)+(S>>>16),w=(f.h&65535)+(y.h&65535)+(v.h&65535)+(T.h&65535)+(E>>>16),k=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(T.h>>>16)+(w>>>16);b.l=S&65535|E<<16,b.h=w&65535|k<<16}function h(b,f,y,v,T,S){var E=(f.l&65535)+(y.l&65535)+(v.l&65535)+(T.l&65535)+(S.l&65535),w=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(T.l>>>16)+(S.l>>>16)+(E>>>16),k=(f.h&65535)+(y.h&65535)+(v.h&65535)+(T.h&65535)+(S.h&65535)+(w>>>16),D=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(T.h>>>16)+(S.h>>>16)+(k>>>16);b.l=E&65535|w<<16,b.h=k&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Zr(u(h,r))},this.b64=function(h){return Xr(u(h,r),n)},this.any=function(h,b){return Jr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Zr(l(h,b))},this.b64_hmac=function(h,b){return Xr(l(h,b),n)},this.any_hmac=function(h,b,f){return Jr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?dn(h):h,c(d(Xo(h),h.length*8))}function l(h,b){h=r?dn(h):h,b=r?dn(b):b;var f,y,v=Xo(h),T=Array(16),S=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)T[f]=v[f]^909522486,S[f]=v[f]^1549556828;return y=d(T.concat(Xo(b)),512+b.length*8),c(d(S.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,T,S=1732584193,E=4023233417,w=2562383102,k=271733878,D=3285377520,R,F,P,O,_,I,B,W,te,se;for(h[b>>5]|=128<>>9<<4)+14]=b,T=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new j("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new R6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await V({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new j(g.Message);return g}};var EM=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Ut={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Ig=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(Fg).sort().join(`&${r}=`)}`:`${r}=${Fg(n)}`}).filter(t=>t).join("&"),Qo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Ut.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Ut.tokenHeader]=t.sessionToken),a[Ut.dateHeader]=r,a[Ut.notSignBody]="",a[Ut.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Ut.algorithmKey]=Ut.algorithm,a[Ut.signHeadersKey]="",a[Ut.signQueriesKey]=void 0,a[Ut.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Ut.signQueriesKey]=Object.keys(a).sort().join(";"),a[Ut.signatureKey]=s,Ig(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Ut.dateHeader]=n,t.sessionToken&&(this.request.headers[Ut.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Ut.contentSha256Header]=await Hn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ho(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Ut.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=Ig(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new j(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[Ut.contentSha256Header]?this.request.headers[Ut.contentSha256Header]:this.request.body?await this.hexEncodedHash(Ig(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return AM.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${Ut.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(Ut.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Ut.v4Identifier].join("/")}};var O6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Bg=new Map(O6),kM=new Map(O6.map(([e,t])=>[t,e])),Og=class extends Ae{static langMap=Bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new j("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Qo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await V({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new j(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new j(s.Code,s.Message)}else throw new j("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Bg.get(r),o={TargetLanguage:Bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Qo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await V({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=kM.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new j(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new j(d.Code,d.Message)}else throw new j("response: "+JSON.stringify(c))}},N6=Og;var j6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ng=new Map(j6),DM=new Map(j6.map(([e,t])=>[t,e])),ku=class extends Ae{static langMap=Ng;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ng.get(r)||"detect",o=Ng.get(a)||a,u=await V({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=DM.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new j(l.status_code.toString(),l.status_message)}}};var LM=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],jg=new Map(LM),Du=class extends Ae{static langMap=jg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new j("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:jg.get(r)||r,target_lang:jg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await V({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Ag(this.serviceConfig,u.data,a),from:r,to:a};throw new j(u.message||u.message||"API Error")}};var U6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ug=new Map(U6),MM=new Map(U6.map(([e,t])=>[t,e])),Hg=class extends Ae{static langMap=Ug;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new j("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Qn(a+o+n+i);this.domain&&(l=Qn(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ug.get(s)||"auto",to:Ug.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await V({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new j("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:MM.get(g)||g,to:u,text:h.join(` -`)}}},H6=Hg;var ji=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await su(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new j("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await su(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?PM(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function PM(e){let t=Math.floor(Math.random()*e.length);return e[t]}var q6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],qg=class extends ji{static langMap=new Map(q6);constructor(t,n,r,a){if(!t?.token)throw new j("token are required");super({...t,isSupportList:!0,langs:q6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},z6=qg;var _M=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],L0=new Map(_M),zg=class extends Ae{static langMap=L0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!L0.get(a))throw new j(`Unsupported language: ${a}`);if(r==="auto")throw new j("Unsupported language: auto");let o=n;return{text:(await V({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${L0.get(r)||"auto"}2${L0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},W6=zg;var G6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Wg=new Map(G6),RM=new Map(G6.map(([e,t])=>[t,e]));function FM(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Gg=class extends Ae{static langMap=Wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new j("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=IM(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+FM(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Wg.get(r)||"auto",to:Wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await V({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new j(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` -`),from:RM.get(g),to:a}}};function IM(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var $g=class extends Ae{static langMap=Vg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Vg.get(r)||"auto",to:Vg.get(a)||a},o=new URLSearchParams(i),s=await V({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new j("Youdao translation failed: "+JSON.stringify(s))}},K6=$g;var Lu=class extends ji{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||so,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Kg=class extends ei{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},M0=Kg;var Y6=L+"-gemini-fake-user-key",BM=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],Z6=new Map(BM),Yg=class extends M0{static langMap=Z6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=rt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return Z6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ai(Y6,""),this.fakeId||(this.fakeId=OM(10),await ki(Y6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new j("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function OM(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Kr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Jg.get(r)+"-"}${Jg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await V({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var UM=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],ex=new Map(UM),Pu=class extends ei{static langMap=ex;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Yr(Om+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Kr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return ex}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(A0(Om+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new j("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new j(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var HM=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],tx=new Map(HM),qn=class extends ei{static langMap=tx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return tx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var P0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new j(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return Ho(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Hn(t)}async hexEncodedBodyHash(){return this.request.headers[Ut.contentSha256Header]?this.request.headers[Ut.contentSha256Header]:this.request.body?await this.hexEncodedHash(Ig(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return EM.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${Ut.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(Ut.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Ut.v4Identifier].join("/")}};var I6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Bg=new Map(I6),AM=new Map(I6.map(([e,t])=>[t,e])),Og=class extends Ae{static langMap=Bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new j("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Qo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await V({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new j(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new j(s.Code,s.Message)}else throw new j("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Bg.get(r),o={TargetLanguage:Bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Qo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await V({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=AM.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new j(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new j(d.Code,d.Message)}else throw new j("response: "+JSON.stringify(c))}},B6=Og;var O6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ng=new Map(O6),kM=new Map(O6.map(([e,t])=>[t,e])),Au=class extends Ae{static langMap=Ng;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Ng.get(r)||"detect",o=Ng.get(a)||a,u=await V({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=kM.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new j(l.status_code.toString(),l.status_message)}}};var DM=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],jg=new Map(DM),ku=class extends Ae{static langMap=jg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new j("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:jg.get(r)||r,target_lang:jg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await V({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Ag(this.serviceConfig,u.data,a),from:r,to:a};throw new j(u.message||u.message||"API Error")}};var N6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Ug=new Map(N6),LM=new Map(N6.map(([e,t])=>[t,e])),Hg=class extends Ae{static langMap=Ug;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new j("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Qn(a+o+n+i);this.domain&&(l=Qn(a+o+n+this.domain+i));let c=new URLSearchParams({from:Ug.get(s)||"auto",to:Ug.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await V({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new j("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:LM.get(g)||g,to:u,text:h.join(` +`)}}},j6=Hg;var Ni=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await ou(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new j("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await ou(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?MM(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return pa.detectLanguageRemotelyByTransmart(t)}};function MM(e){let t=Math.floor(Math.random()*e.length);return e[t]}var U6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],qg=class extends Ni{static langMap=new Map(U6);constructor(t,n,r,a){if(!t?.token)throw new j("token are required");super({...t,isSupportList:!0,langs:U6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},H6=qg;var PM=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],D0=new Map(PM),zg=class extends Ae{static langMap=D0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!D0.get(a))throw new j(`Unsupported language: ${a}`);if(r==="auto")throw new j("Unsupported language: auto");let o=n;return{text:(await V({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${D0.get(r)||"auto"}2${D0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},q6=zg;var z6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Wg=new Map(z6),_M=new Map(z6.map(([e,t])=>[t,e]));function RM(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Gg=class extends Ae{static langMap=Wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new j("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=FM(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+RM(n)+i+o+this.appSecret,u=await Hn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Wg.get(r)||"auto",to:Wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await V({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new j(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` +`),from:_M.get(g),to:a}}};function FM(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var $g=class extends Ae{static langMap=Vg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Vg.get(r)||"auto",to:Vg.get(a)||a},o=new URLSearchParams(i),s=await V({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new j("Youdao translation failed: "+JSON.stringify(s))}},V6=$g;var Du=class extends Ni{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||so,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Kg=class extends Qa{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},L0=Kg;var $6=L+"-gemini-fake-user-key",IM=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],K6=new Map(IM),Yg=class extends L0{static langMap=K6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=rt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return K6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ei($6,""),this.fakeId||(this.fakeId=BM(10),await Ai($6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new j("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function BM(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await $r({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Jg.get(r)+"-"}${Jg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await V({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var jM=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],X6=new Map(jM),Mu=class extends Qa{static langMap=X6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Kr(Bm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await $r({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return X6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(E0(Bm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new j("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new j(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var UM=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Q6=new Map(UM),qn=class extends Qa{static langMap=Q6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return Q6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var M0=class extends qn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new j(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return Ho(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Hn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` `+i}}async getCanonicalRequest(t){let n=await Hn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 @@ -6052,8 +6052,8 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var _0=class extends qn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(t1,async()=>{let t=await Kr({responseType:"json",url:`${rt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Xg=["glm-4-flash"],R0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Xg.includes(this.model)&&!this.apiKeys.length)throw new j("apiKey are required");if(!Xg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(n1,async()=>{let t=await Kr({responseType:"json",url:`${rt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Fr.langMap.has(n.to)||!Fr.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Fr(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Xg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var F0={mock:$o,mock2:$o,custom:Lu,google:Cu,transmart:wu,deepl:Yo,volc:N6,volcAlpha:ku,bing:Fr,tencent:Tu,tenAlpha:Su,baidu:H6,caiyun:z6,cai:W6,openl:C0,youdao:V6,you:K6,d:Vo,dpro:Vo,deeplx:Du,niu:D6,azure:L6,openai:R6,gemini:J6,claude:Q6,papago:M6,aliyun:Au,yandex:Mu,qianfan:Pu,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:P0,siliconcloud:_0,lingyiwanwu:qn,zhipu:R0};globalThis.TranslationServicesClass=F0;var ni={};Object.keys(Cr).forEach(e=>{ni[e]={...Cr[e],class:F0[e]}});function I0(e,t){let n=Xn;if(ni[e]&&ni[e].class&&ni[e].class.langMap&&ni[e].class.langMap.size>0){let r=ni[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function ea(e,t,n){if(!e.text)return e;let r=null,a=await Zt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new j("translateFailed","translate failed")}async function nx(e,t){for(let n of e)try{return await ea({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Qg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new ni[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function qM(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Zt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),va(a,t.localConfig,!1),d=await K9(m,d,{sourceLanguage:qM(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(k=>(g&&(k.refresh=!0),h&&(k.debug=!0),k.text&&(k.text=zM(k.text)),k))),l==="openai"&&(e.sentences=e.sentences.map(k=>({...k,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,T=ft(t.user),S;try{S=new ni[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:T,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await S.init()}catch(k){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let R of b){let F=k instanceof j?new j(k.name,k.message).initNetWork(k.status).initData(k.data||D):k;n(F,null,R)}}return{sentences:[]}}if(o.cache&&!po(a))for(let k of e.sentences){v++;let D=l;l==="openl"&&(D=l+"-"+d.codename||C0.DEFAULT_CODENAME);let R=S.getCacheKeyPrefix();R&&(D=R+"-"+D);let F=null;try{F=await Tl($2({originalText:k.text,from:k.from,to:k.to,service:D}),200)}catch(P){A.warn("query cache DB error, but it's ok",P)}if(F){let P={...k,text:F.translatedText};f.sentences[v]=P,n&&n(null,P,k)}else b.push(k)}else b.push(...e.sentences);let E=b.length;if(y-E>0&&A.debug(`use ${y-E} sentences from cache`),!b.length)return f;let C=await S.multipleTranslate({sentences:b},d,(k,D,R)=>{if(n&&n(k,D,R),!k&&D&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||C0.DEFAULT_CODENAME);let P=S.getCacheKeyPrefix();P&&(F=P+"-"+F),o.cache&&Tl(K2({translatedText:D.text,from:R.from,to:R.to,detectedFrom:D.from,key:Qn(R.text),service:F}),3e3).catch(O=>{A.warn("set cache DB error",O)})}});for(let k of C?.sentences||[]){let D=f.sentences.findIndex(R=>!R);if(D===-1)throw new j("translateFailed","can not match the result");f.sentences[D]=k}return f}function zM(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var WM=1e5;var rx=Date.now();async function Sa(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=VM(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,h=null;async function b(E){let{container:C,onFrame:k,onIgnoreElement:D,id:R,isLongHtml:F}=E,P=document.createTreeWalker(C,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,I=>{let B=_(I);return B==NodeFilter.FILTER_ACCEPT?ht.mark(I,R,m):eP(I,B,n)&&y(),B}),O=C;if(_(O)===NodeFilter.FILTER_REJECT)return;for(ht.mark(O,R,m);O;){if(a?.interruptEffectDOM)return;let I=Date.now()-rx;if(I>50&&(A.debug("taskTime",I,C),rx=Date.now(),await st(0)),s&&s.length>0){let{currentNode:B,isMatchedSelection:W}=f(P,O,s);if(B)O=B;else break;if(!W)continue}if(O.nodeType===Node.ELEMENT_NODE||O.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let B=O;if(B.nodeName==="IFRAME"){k&&k(B),y(),ef(p,!0),O=P.nextNode();continue}B.nodeType===Node.ELEMENT_NODE&&(o&&tf(B,o),c&&rf(B,c));let W=Wr(B,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},B.immersiveTranslateComputedStyle||null);if(W&&n.paragraphFirstLetterFontSize>0&&B.childNodes.length==1&&B.childNodes[0].nodeType===Node.TEXT_NODE&&B.innerText?.length==1&&B?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(W=!1),At(B,i)&&!W){v(B);let je=null;for(;!(je=P.nextSibling())&&P.parentNode(););O=je;continue}let te=Bi(B);if(!ax(p,B)||W){y(B);let je=W?B:B.parentElement;je&&je.childNodes.length>0&&T(p,je,je.immersiveTranslateComputedStyle||null)}te&&B.shadowRoot?.mode==="open"&&(W?k?.(B.shadowRoot):b({...E,container:B.shadowRoot})),B.nodeType===Node.ELEMENT_NODE&&At(B,n.likePreSelectors)&&u&&(F||ZM(B,n.advanceTransformPreTagNewLine))}else if(O.nodeType===Node.TEXT_NODE)v(O);else throw new Error("should not be here");O=P.nextNode(),p.commonAncestorContainer&&O&&O.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&O&&O.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(O)}function _(I){if(I.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Oi(I)){if(c){let se=Object.keys(c);if(se.length>0&&At(I,se))for(let Le of se){let N=c[Le];if(I.matches(Le)){let q=c[Le],Z=Object.keys(q);for(let Ee of Z){let pe=q[Ee];I.getAttribute(Ee)!==pe&&(pe===null?I.removeAttribute(Ee):I.setAttribute(Ee,pe))}break}}}if(!E.force&&ht.isMarked(I,R)||e9(I,R)||B0(I,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||I.nodeName==="IFRAME"&&!za(I))return NodeFilter.FILTER_REJECT;if(I.nodeType===Node.ELEMENT_NODE){let se=window.getComputedStyle(I);if(I.immersiveTranslateComputedStyle=se,nf(se))return D&&D(I),NodeFilter.FILTER_REJECT;let je=Wr(I,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},se||null);if(I.isBlock=je,At(I,i)&&je)return NodeFilter.FILTER_REJECT}let B=I.getBoundingClientRect(),{width:W,height:te}=B;return I.nodeName==="IMG"&&(W>48&&te>48?I.immersiveTranslateComputedStyle={display:"block"}:W>0&&te>0&&d!==!1&&(I.setAttribute("width",W),I.setAttribute("height",te))),!I.childNodes||I.childNodes&&I.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(W>0&&W<4||te>0&&te<4)&&(I.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(I.nodeType===Node.TEXT_NODE){let B=I.textContent?.trim();if(!B)return/^( )+$/.test(I.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(I.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=I.parentNode;if(W.getBoundingClientRect){let{width:te,height:se}=W.getBoundingClientRect();if(te>0&&te<4||se>0&&se<4)return NodeFilter.FILTER_REJECT}return l>0&&B.length>=l&&JM(I,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await b(e)}catch(E){A.error(E)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(E,C,k){let D=C.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(C))if(g=!1,C&&C.nodeType===Node.ELEMENT_NODE)if(_u(C,k))g=!0,h=C,y(),T(p,h,D);else return g=!1,C=E.nextNode(),{currentNode:C,isMatchedSelection:g};else return g=!1,C=E.nextNode(),{currentNode:C,isMatchedSelection:g}}else if(C&&C.nodeType===Node.ELEMENT_NODE)if(_u(C,k))g=!0,h=C,y(),T(p,h,D);else return g=!1,C=E.nextNode(),{currentNode:C,isMatchedSelection:g};else return g=!1,C=E.nextNode(),{currentNode:C,isMatchedSelection:g};return{currentNode:C,isMatchedSelection:!0}}function y(E){let C=p.flatNodes.length-1;if(n.skipTrailTextRegex&&C>0)for(let D=C;D>=0;D--){let F=p.flatNodes[D]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(D,1);continue}break}if(E&&E.nodeName==="BR"){if(E.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=tP(E,n);let D=[...p.flatNodes],R=p.flatNodes.filter(F=>E.parentNode?.contains(F));R.length>0&&D.length!=R.length&&(p.flatNodes=R,p.flatNodes.original=D)}let k=YM(p,r,n);k&&t&&t(k),ef(p)}function v(E){if(!ax(p,E)){y(),ef(p);let C=E.parentNode;C&&T(p,C,C.computedStyle)}p.flatNodes.push(E)}function T(E,C,k){E.commonAncestorContainer=C;let D=S(k);E.isPreWhitespace=D}function S(E){return E&&E.whiteSpace&&E.whiteSpace.startsWith("pre")||E&&E.whiteSpace==="break-spaces"||!1}}function ax(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Bi(t));let r=KM(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function VM(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function $M(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function tf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function KM(e){return e&&e._currentStacks?e._currentStacks.some(t=>Bi(t)):!1}function YM(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=o0(r,a,n);o||(o=a);let s=[];for(let p of r){let g=$M(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WM){A.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:i9(o)}}else return null}function ef(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function nf(e){return e.display==="none"}var ht={_marked_key:p1,isMarked(e,t){return Up(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Bi(e)))return ay(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Bi(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Bi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function ZM(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=Un?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function JM(e,t,n){let r=e.textContent||"",a=r9(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=Yb(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function ox(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||QM(p,a,i,o)||!Jb(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function rf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function B0(e,t){return XM(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function XM(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(a0(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return A.error(n),!1}}function _u(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function QM(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&B0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(ko(o,t,n))return!0}}return!1}function eP(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Wr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function tP(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Wr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function sx(e,t,n,r,a){let i=t,o=w1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${L}-theme-${i}-${d}: ${m}; -`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=oy(m);s+=`--${L}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var P0=class extends qn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Kr(Q3,async()=>{let t=await $r({responseType:"json",url:`${rt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Xg=["glm-4-flash"],_0=class extends qn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Xg.includes(this.model)&&!this.apiKeys.length)throw new j("apiKey are required");if(!Xg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Mr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Kr(e1,async()=>{let t=await $r({responseType:"json",url:`${rt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Rr.langMap.has(n.to)||!Rr.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Rr(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Xg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var R0={mock:$o,mock2:$o,custom:Du,google:Su,transmart:Cu,deepl:Yo,volc:B6,volcAlpha:Au,bing:Rr,tencent:vu,tenAlpha:Tu,baidu:j6,caiyun:H6,cai:q6,openl:S0,youdao:W6,you:V6,d:Vo,dpro:Vo,deeplx:ku,niu:A6,azure:k6,openai:P6,gemini:Y6,claude:J6,papago:D6,aliyun:Eu,yandex:Lu,qianfan:Mu,"custom-ai":qn,deepseek:qn,"aliyun-bailian":qn,doubao:qn,hunyuan:M0,siliconcloud:P0,lingyiwanwu:qn,zhipu:_0};globalThis.TranslationServicesClass=R0;var ti={};Object.keys(Cr).forEach(e=>{ti[e]={...Cr[e],class:R0[e]}});function F0(e,t){let n=Xn;if(ti[e]&&ti[e].class&&ti[e].class.langMap&&ti[e].class.langMap.size>0){let r=ti[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function ji(e,t,n){if(!e.text)return e;let r=null,a=await Zt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new j("translateFailed","translate failed")}async function ex(e,t){for(let n of e)try{return await ji({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Qg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new ti[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function HM(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Zt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),xa(a,t.localConfig,!1),d=await V9(m,d,{sourceLanguage:HM(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(k=>(g&&(k.refresh=!0),h&&(k.debug=!0),k.text&&(k.text=qM(k.text)),k))),l==="openai"&&(e.sentences=e.sentences.map(k=>({...k,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,T=ft(t.user),S;try{S=new ti[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:T,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await S.init()}catch(k){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let R of b){let F=k instanceof j?new j(k.name,k.message).initNetWork(k.status).initData(k.data||D):k;n(F,null,R)}}return{sentences:[]}}if(o.cache&&!po(a))for(let k of e.sentences){v++;let D=l;l==="openl"&&(D=l+"-"+d.codename||S0.DEFAULT_CODENAME);let R=S.getCacheKeyPrefix();R&&(D=R+"-"+D);let F=null;try{F=await vl(G2({originalText:k.text,from:k.from,to:k.to,service:D}),200)}catch(P){A.warn("query cache DB error, but it's ok",P)}if(F){let P={...k,text:F.translatedText};f.sentences[v]=P,n&&n(null,P,k)}else b.push(k)}else b.push(...e.sentences);let E=b.length;if(y-E>0&&A.debug(`use ${y-E} sentences from cache`),!b.length)return f;let w=await S.multipleTranslate({sentences:b},d,(k,D,R)=>{if(n&&n(k,D,R),!k&&D&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||S0.DEFAULT_CODENAME);let P=S.getCacheKeyPrefix();P&&(F=P+"-"+F),o.cache&&vl(V2({translatedText:D.text,from:R.from,to:R.to,detectedFrom:D.from,key:Qn(R.text),service:F}),3e3).catch(O=>{A.warn("set cache DB error",O)})}});for(let k of w?.sentences||[]){let D=f.sentences.findIndex(R=>!R);if(D===-1)throw new j("translateFailed","can not match the result");f.sentences[D]=k}return f}function qM(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var zM=1e5;var tx=Date.now();async function Ta(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=WM(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:d,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},g=!1,h=null;async function b(E){let{container:w,onFrame:k,onIgnoreElement:D,id:R,isLongHtml:F}=E,P=document.createTreeWalker(w,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,I=>{let B=_(I);return B==NodeFilter.FILTER_ACCEPT?ht.mark(I,R,m):QM(I,B,n)&&y(),B}),O=w;if(_(O)===NodeFilter.FILTER_REJECT)return;for(ht.mark(O,R,m);O;){if(a?.interruptEffectDOM)return;let I=Date.now()-tx;if(I>50&&(A.debug("taskTime",I,w),tx=Date.now(),await ot(0)),s&&s.length>0){let{currentNode:B,isMatchedSelection:W}=f(P,O,s);if(B)O=B;else break;if(!W)continue}if(O.nodeType===Node.ELEMENT_NODE||O.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let B=O;if(B.nodeName==="IFRAME"){k&&k(B),y(),ef(p,!0),O=P.nextNode();continue}B.nodeType===Node.ELEMENT_NODE&&(o&&tf(B,o),c&&rf(B,c));let W=zr(B,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},B.immersiveTranslateComputedStyle||null);if(W&&n.paragraphFirstLetterFontSize>0&&B.childNodes.length==1&&B.childNodes[0].nodeType===Node.TEXT_NODE&&B.innerText?.length==1&&B?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(W=!1),At(B,i)&&!W){v(B);let je=null;for(;!(je=P.nextSibling())&&P.parentNode(););O=je;continue}let te=Ii(B);if(!nx(p,B)||W){y(B);let je=W?B:B.parentElement;je&&je.childNodes.length>0&&T(p,je,je.immersiveTranslateComputedStyle||null)}te&&B.shadowRoot?.mode==="open"&&(W?k?.(B.shadowRoot):b({...E,container:B.shadowRoot})),B.nodeType===Node.ELEMENT_NODE&&At(B,n.likePreSelectors)&&u&&(F||YM(B,n.advanceTransformPreTagNewLine))}else if(O.nodeType===Node.TEXT_NODE)v(O);else throw new Error("should not be here");O=P.nextNode(),p.commonAncestorContainer&&O&&O.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&O&&O.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(O)}function _(I){if(I.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bi(I)){if(c){let se=Object.keys(c);if(se.length>0&&At(I,se))for(let Le of se){let N=c[Le];if(I.matches(Le)){let q=c[Le],Z=Object.keys(q);for(let Ee of Z){let pe=q[Ee];I.getAttribute(Ee)!==pe&&(pe===null?I.removeAttribute(Ee):I.setAttribute(Ee,pe))}break}}}if(!E.force&&ht.isMarked(I,R)||Xy(I,R)||I0(I,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||I.nodeName==="IFRAME"&&!qa(I))return NodeFilter.FILTER_REJECT;if(I.nodeType===Node.ELEMENT_NODE){let se=window.getComputedStyle(I);if(I.immersiveTranslateComputedStyle=se,nf(se))return D&&D(I),NodeFilter.FILTER_REJECT;let je=zr(I,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},se||null);if(I.isBlock=je,At(I,i)&&je)return NodeFilter.FILTER_REJECT}let B=I.getBoundingClientRect(),{width:W,height:te}=B;return I.nodeName==="IMG"&&(W>48&&te>48?I.immersiveTranslateComputedStyle={display:"block"}:W>0&&te>0&&d!==!1&&(I.setAttribute("width",W),I.setAttribute("height",te))),!I.childNodes||I.childNodes&&I.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(W>0&&W<4||te>0&&te<4)&&(I.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(I.nodeType===Node.TEXT_NODE){let B=I.textContent?.trim();if(!B)return/^( )+$/.test(I.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(I.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=I.parentNode;if(W.getBoundingClientRect){let{width:te,height:se}=W.getBoundingClientRect();if(te>0&&te<4||se>0&&se<4)return NodeFilter.FILTER_REJECT}return l>0&&B.length>=l&&ZM(I,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await b(e)}catch(E){A.error(E)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&y();function f(E,w,k){let D=w.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(w))if(g=!1,w&&w.nodeType===Node.ELEMENT_NODE)if(Pu(w,k))g=!0,h=w,y(),T(p,h,D);else return g=!1,w=E.nextNode(),{currentNode:w,isMatchedSelection:g};else return g=!1,w=E.nextNode(),{currentNode:w,isMatchedSelection:g}}else if(w&&w.nodeType===Node.ELEMENT_NODE)if(Pu(w,k))g=!0,h=w,y(),T(p,h,D);else return g=!1,w=E.nextNode(),{currentNode:w,isMatchedSelection:g};else return g=!1,w=E.nextNode(),{currentNode:w,isMatchedSelection:g};return{currentNode:w,isMatchedSelection:!0}}function y(E){let w=p.flatNodes.length-1;if(n.skipTrailTextRegex&&w>0)for(let D=w;D>=0;D--){let F=p.flatNodes[D]?.textContent?.trim()||"";if(!F||new RegExp(n.skipTrailTextRegex).test(F)){p.flatNodes.splice(D,1);continue}break}if(E&&E.nodeName==="BR"){if(E.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=eP(E,n);let D=[...p.flatNodes],R=p.flatNodes.filter(F=>E.parentNode?.contains(F));R.length>0&&D.length!=R.length&&(p.flatNodes=R,p.flatNodes.original=D)}let k=KM(p,r,n);k&&t&&t(k),ef(p)}function v(E){if(!nx(p,E)){y(),ef(p);let w=E.parentNode;w&&T(p,w,w.computedStyle)}p.flatNodes.push(E)}function T(E,w,k){E.commonAncestorContainer=w;let D=S(k);E.isPreWhitespace=D}function S(E){return E&&E.whiteSpace&&E.whiteSpace.startsWith("pre")||E&&E.whiteSpace==="break-spaces"||!1}}function nx(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Ii(t));let r=$M(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function WM(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function VM(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function tf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function $M(e){return e&&e._currentStacks?e._currentStacks.some(t=>Ii(t)):!1}function KM(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=i0(r,a,n);o||(o=a);let s=[];for(let p of r){let g=VM(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>zM){A.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:r9(o)}}else return null}function ef(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function nf(e){return e.display==="none"}var ht={_marked_key:d1,isMarked(e,t){return Up(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Ii(e)))return ny(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Ii(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Ii(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function YM(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let d=document.createElement("br");d.setAttribute("data-imt","1");let m=document.createTextNode(c);l.parentNode.insertBefore(d,l.nextSibling),l.parentNode.insertBefore(m,d.nextSibling),l=m,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=On?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function ZM(e,t,n){let r=e.textContent||"",a=t9(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=$b(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function ax(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||XM(p,a,i,o)||!Yb(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function rf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function I0(e,t){return JM(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function JM(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(r0(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return A.error(n),!1}}function Pu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function XM(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&I0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(ko(o,t,n))return!0}}return!1}function QM(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&zr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eP(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&zr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function ix(e,t,n,r,a){let i=t,o=S1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${L}-theme-${i}-${d}: ${m}; +`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=ay(m);s+=`--${L}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; `}}}),r||(r="inherit"),e&&(s+=` .${L}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -6066,17 +6066,17 @@ x-tc-action:`+this.action.toLowerCase()+` [imt-state="dual"] .${L}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?Sn(e,l,L+"-user-custom-style"):a&&Sn(e,"",L+"-user-custom-style")}function es(e,t){let r=be().IMMERSIVE_TRANSLATE_INJECTED_CSS;Sn(e,r,L+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};sx(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?Tn(e,l,L+"-user-custom-style"):a&&Tn(e,"",L+"-user-custom-style")}function es(e,t){let r=be().IMMERSIVE_TRANSLATE_INJECTED_CSS;Tn(e,r,L+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};ix(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&Sn(e,s,L+"-dynamic-injected-css")}async function ux(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ie({text:Do(document.body),pageLangs:t})),e}function af(e,t,n=[],r){let a=["notranslate"];return r&&a.push(C1),e&&(a.push(`${L}-target-translation-theme-${e}`),t?a.push(`${Gm}-theme-${e}`):a.push(`${Wm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Gm):a.push(Wm),a}function of(e){let t=["notranslate",Jl];return e&&t.push(`${L}-target-translation-theme-${e}-inner`),t}function lx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Ii(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,T=>{let S=f.indexOf(T),E=f[S-1]===" ",C=f[S+T.length]===" ",D=T.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),R=Number(D);if(isNaN(R))return T;let F=o[R];if(F&&F.type==="element"){let P=Je.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return E||(P=" "+P),C||(P=P+" "),P}else A.error("variable type not supported",F,T);return T}));let y=af(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(S1);let v=of(i);return sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:oo,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function O0(e,t,n,r,a){let i=t.original||t,o=Uy(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(T=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function cx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function dx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=po(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=fu(e.targetText):e.targetText=Je.sanitize(fu(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=mc(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Wy(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` -`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Ii(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return nP({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=lx(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function nP(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),T=p[v-1]===" ",S=p[v+y.length]===" ",E=y.match(h);if(!E)return y;let C=E[1],k=Number(C);if(isNaN(k))return y;let D=o[Number(k)];if(D&&D.type==="element"){let R=Je.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return T||(R=" "+R),S||(R=R+" "),R}else if(D&&D.type==="text"){let R=D.value;return T||(R=" "+R),S||(R=R+" "),R}else A.error("variable type not supported",D,y);return y}));let b=af(l,n,r||[],s),f=of(l);return sf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:oo,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function lf(e){let t=e[e.length-1];return t?t.text:""}function mx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return A.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return A.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Rl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=aP(u.content,t),n&&oP(a,n)&&(r=n)}catch(o){A.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:o9(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function px(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&A.debug("update article node",n),e.articleNode=n)}function rP(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` -`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rP(o,20),u=iP(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return o0(i,document.body,t)}function iP(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function oP(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function gx(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Zl)||cf(e).catch(i=>{A.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Ru="";async function cf(e){let t=document.title;if(!t||t.includes(Zl))return;Ru!==t&&(Ru=t);let n=await Ie({text:t,pageLangs:[pt(),"en"]});if(!Fo(e,n))try{let r=await ea({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Ru,document.title=r.text+Zl+Ru)}catch(r){throw r}}function fx(e){e.rule.isTranslateTitle&&(document.title=Ru)}function ts(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function N0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?eg():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`+t.rule.additionalInjectedCss)),s&&Tn(e,s,L+"-dynamic-injected-css")}async function ox(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ne({text:Do(document.body),pageLangs:t})),e}function af(e,t,n=[],r){let a=["notranslate"];return r&&a.push(T1),e&&(a.push(`${L}-target-translation-theme-${e}`),t?a.push(`${Gm}-theme-${e}`):a.push(`${Wm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Gm):a.push(Wm),a}function of(e){let t=["notranslate",Zl];return e&&t.push(`${L}-target-translation-theme-${e}-inner`),t}function sx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Fi(n.config.translationServices,n.translationService,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,T=>{let S=f.indexOf(T),E=f[S-1]===" ",w=f[S+T.length]===" ",D=T.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),R=Number(D);if(isNaN(R))return T;let F=o[R];if(F&&F.type==="element"){let P=Je.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return E||(P=" "+P),w||(P=P+" "),P}else A.error("variable type not supported",F,T);return T}));let y=af(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(v1);let v=of(i);return sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:oo,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function B0(e,t,n,r,a){let i=t.original||t,o=Ny(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(T=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function ux(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function lx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=po(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=gu(e.targetText):e.targetText=Je.sanitize(gu(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let g=0;g/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=dc(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=qy(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` +`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let d={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},m=Fi(t.config.translationServices,t.translationService);if(m.length>2){let p=m[2];return tP({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=sx(d,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function uf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tP(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),T=p[v-1]===" ",S=p[v+y.length]===" ",E=y.match(h);if(!E)return y;let w=E[1],k=Number(w);if(isNaN(k))return y;let D=o[Number(k)];if(D&&D.type==="element"){let R=Je.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return T||(R=" "+R),S||(R=R+" "),R}else if(D&&D.type==="text"){let R=D.value;return T||(R=" "+R),S||(R=R+" "),R}else A.error("variable type not supported",D,y);return y}));let b=af(l,n,r||[],s),f=of(l);return sf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:oo,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function lf(e){let t=e[e.length-1];return t?t.text:""}function cx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return A.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return A.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new _l(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=rP(u.content,t),n&&iP(a,n)&&(r=n)}catch(o){A.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:a9(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function dx(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&A.debug("update article node",n),e.articleNode=n)}function nP(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` +`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=nP(o,20),u=aP(o),l=null;for(let c of u){let d=document.body.querySelectorAll(c);if(d.length&&(d.forEach(m=>{let p=m.textContent?.trim().length||0,g=l?.textContent?.trim().length||0;p>g&&(s?m.innerText?.includes(s)&&(l=m):l=m)}),l)){i.push(l);break}}}),!!i.length)return i0(i,document.body,t)}function aP(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function iP(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function mx(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(Yl)||cf(e).catch(i=>{A.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var _u="";async function cf(e){let t=document.title;if(!t||t.includes(Yl))return;_u!==t&&(_u=t);let n=await Ne({text:t,pageLangs:[pt(),"en"]});if(!Fo(e,n))try{let r=await ji({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=_u,document.title=r.text+Yl+_u)}catch(r){throw r}}function px(e){e.rule.isTranslateTitle&&(document.title=_u)}function ts(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function O0(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?eg():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function hx(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?eg():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function gx(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?eg():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${L}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function j0(e){let t=Ky(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function sn(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Yp(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var sP={sanitize:e=>e};async function gf(e,t){if(e.interruptEffectDOM)return;xa("consumeContainer");let n=sn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Hi.bind(null,e),onFrame:r=>{df(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),ao&&wt(t,"consumeContainer",e.id)}function df(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!za(t))return;A.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${$l}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Vr(t.contentWindow?.document.documentElement,e.translateState),ai(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(A.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ai(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ai(e,t,n=!0){xa("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=sn(t.ctx),o=0;if(l(t,e,n))return;if(Oi(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(A.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Oi(d)&&(a&&tf(d,a),i&&rf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await gf(t,c);let d=Date.now()-r;d>100&&(A.debug("batchTaskTime",d,c),r=Date.now(),await st(0))}else ao&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return df(t,c.shadowRoot,n),!1;if(d==="iframe")return df(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return _u(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&_u(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){px(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=sn(c.ctx);return!!(B0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Fu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ui(t.rootNodes),r=="original"&&n=="translation"){let s=ns(e,t.rootNodes);if(mf(s))return;ri(e,s,a,t.targetNodes||[]),Ui(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=ns(e,t.targetNodes,s);ri(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=ns(e,t.rootNodes);if(mf(s))return;ri(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=ns(e,t.targetNodes);ri(e,s,a,t.rootNodes||[]),Ui(t.targetNodes)}r=="dual"&&n=="original"&&Ui(t.targetNodes),bf(t)}catch(s){A.error(s)}xa("inserted"),l9()}}function mf(e){return!e||!Oi(e)?!1:e.classList.contains(Lt)}function ns(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ui(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ri(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var uP=Kn(U0,300);async function Hi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;xa("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||lP(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ao&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Ii(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=O0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:j0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await hf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Gr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(A.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),cP(e,t.text),ff(e,t,r)):(ao&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function lP(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Oi(t)&&t.classList.contains(Lt):!1}function cP(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function ff(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;xa("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),ao&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,g1,"1",!0),n=="hover"){U0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";uP.call(e,e.ctx,a)}async function U0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await H0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function H0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=bu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;ri(t,u,i.commonAncestorContainer,[s]),bf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Zt(a,t,(i,o,s)=>{let u=s.id,l=dP(e,u.toString());l&&mP.call(null,i,o,s,l,t,n)})}catch(i){A.error("translateCurrentQueue error",i);return}}function dP(e,t){return e.find(n=>n.id===t)}function mP(e,t,n,r,a,i){xa("translated");let o=!1,s=r;Io(s.commonAncestorContainer,n.id)?.remove(),bf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){A.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(oo,"1");let p=dx(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),ts(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=sP.sanitize(p);m.innerHTML=Un?.createHTML(g)||g,c.targetNodes=[m],Fu(a,c,i)}o=!0}function l(c){c||(A.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,y1,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(mf(g)||ri(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=pP(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${L}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function N0(e){let t=Vy(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function sn(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=Yp(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var oP={sanitize:e=>e};async function gf(e,t){if(e.interruptEffectDOM)return;ba("consumeContainer");let n=sn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Hi.bind(null,e),onFrame:r=>{df(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),ao&&wt(t,"consumeContainer",e.id)}function df(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!qa(t))return;A.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Vl}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Gr(t.contentWindow?.document.documentElement,e.translateState),ri(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(A.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ri(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ri(e,t,n=!0){ba("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=sn(t.ctx),o=0;if(l(t,e,n))return;if(Bi(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(A.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Bi(d)&&(a&&tf(d,a),i&&rf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await gf(t,c);let d=Date.now()-r;d>100&&(A.debug("batchTaskTime",d,c),r=Date.now(),await ot(0))}else ao&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return df(t,c.shadowRoot,n),!1;if(d==="iframe")return df(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Pu(c,m.selectors);if(t.ctx.rule.enableSkipBuildContainer||m.containerSelectors&&Pu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){dx(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=sn(c.ctx);return!!(I0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Ru(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ui(t.rootNodes),r=="original"&&n=="translation"){let s=ns(e,t.rootNodes);if(mf(s))return;ni(e,s,a,t.targetNodes||[]),Ui(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=ns(e,t.targetNodes,s);ni(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=ns(e,t.rootNodes);if(mf(s))return;ni(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=ns(e,t.targetNodes);ni(e,s,a,t.rootNodes||[]),Ui(t.targetNodes)}r=="dual"&&n=="original"&&Ui(t.targetNodes),bf(t)}catch(s){A.error(s)}ba("inserted"),s9()}}function mf(e){return!e||!Bi(e)?!1:e.classList.contains(Lt)}function ns(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ui(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ni(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var sP=Kn(j0,300);async function Hi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;ba("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||uP(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ao&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Fi(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=B0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:N0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await hf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Wr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(A.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),lP(e,t.text),ff(e,t,r)):(ao&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function uP(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bi(t)&&t.classList.contains(Lt):!1}function lP(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function ff(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;ba("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),ao&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,m1,"1",!0),n=="hover"){j0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";sP.call(e,e.ctx,a)}async function j0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await U0(o,{...e,translationService:this.translationService},this.translateState,t)})}async function U0(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=hu(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;ni(t,u,i.commonAncestorContainer,[s]),bf(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await Zt(a,t,(i,o,s)=>{let u=s.id,l=cP(e,u.toString());l&&dP.call(null,i,o,s,l,t,n)})}catch(i){A.error("translateCurrentQueue error",i);return}}function cP(e,t){return e.find(n=>n.id===t)}function dP(e,t,n,r,a,i){ba("translated");let o=!1,s=r;Io(s.commonAncestorContainer,n.id)?.remove(),bf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){A.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Lt),m.setAttribute(oo,"1");let p=lx(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),ts(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=oP.sanitize(p);m.innerHTML=On?.createHTML(g)||g,c.targetNodes=[m],Ru(a,c,i)}o=!0}function l(c){c||(A.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,h1,m.toString()),p.classList.add("notranslate",Lt,Lt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(mf(g)||ni(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=mP(a,c).replaceAll(` `,"").replaceAll('"',"""),b=c.message.replaceAll(` `,"").replaceAll('"',"""),f=De(a.config.interfaceLanguage,"retryAllButton"),y=De(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,v=De(a.config.interfaceLanguage,"error.retry"),T=De(a.config.interfaceLanguage,"error.reason"),S=`
<${d.targetWrapperTag} class="${L}-error notranslate"> <${d.targetWrapperTag} class="${L}-error-wrapper"> @@ -6093,18 +6093,18 @@ ${s}} ${T}
- `;p.innerHTML=Un?.createHTML(S)||S}}}var bx="";async function hf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=bx.slice(0,e.rule?.detectTextBufferLength)+" "+o),bx=s;let u=await Ie({text:s,minLength:15,pageLangs:[pt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Bo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Bo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=hc();r.isDetectParagraphLanguage&&(m="auto");let p=pt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!cc.includes(e.translationService)&&(X()||it())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return Ba(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Ba(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Iu(){pf=0}var pf=0;function pP(e,t){pf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new j("contextInvalidated",n)),t instanceof j){let r=t.uiConfig(e);if(n=JSON.stringify(r),pf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(hn,{detail:r}))}return n}function bf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,gP(t,`[${f1}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function gP(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}var fP=[];function yx(e){fP.push(e)}var yf;function xx(e){let t=e.ctx.rule.aiRule;if(A.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=sn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Bu(e,i,t,r)}),yf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&rr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||vf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Bu(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Wr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=No(r,u.parentElement);c&&(ht.clearToParentMark(u,c),Bu(e,c,t,r));continue}Bu(e,u,t,r)}catch(u){A.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ht.isMarked(o,e.id)||Bu(e,o,t,r)})}),yf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Bu(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&xf(t),Sa({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Hi(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function vx(){yf?.disconnect()}function rs({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&Sn(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}Ga(x(qo,{lang:t.config.interfaceLanguage,children:x(n,{...r})}),d)}function Tx(e){let t=document.createElement("span");return t.innerHTML=e,(t.textContent||"").trim()}function qe(e,t,n){Fe("translate_video_subtitle",[{name:"translate_video_subtitle",params:{video_platform:n||e.rule.id||""}}],{...e,sourceLanguage:t||"auto"})}function Xe(e,t){return e==t}function Ca(e,t){return!e||!t?!1:e.startsWith("zh")&&t.startsWith("zh")}function Sx(e){let{url:t,method:n,headers:r,body:a}=e,i=new Headers;for(let[u,l]of Object.entries(r))i.append(u,l);let o;return typeof a=="object"?(delete a._formatBodyType,o=JSON.stringify(a)):typeof a=="string"&&(o=a),new Request(t,{method:n,headers:i,body:o})}function Cx(e){return e?Object.entries(e).reduce((t,[n,r])=>{if(r==null||r==null||typeof r=="object"&&Object.keys(r).length===0)return t;if(n=="body"&&typeof r=="object"&&r._formatBodyType=="FormData"){let a=new FormData;for(let[i,o]of Object.entries(r))i!=="_formatBodyType"&&a.append(i,o);return t[n]=a,t}return t[n]=r,t},{}):null}function Tf(e){return e.replace(/\n/g," ")}function wx(e){let t;return e instanceof URL?t=e.href:typeof e=="string"?t=e:e instanceof Request?t=e.url:t=String(e),t}function q0(e,t,n){let r="translationServices."+n,a=t("translationServices."+n);return a!=r?a:e.config.translationServices[n]?.name||a}function as(e){return is(e).subtitles}function is(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${zf.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},s_=e=>/]*>[\s\S]*]*>/.test(e),cv=ln({name:lv,build:o_,detect:s_,helper:zf,parse:i_});var u_="srt",qu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},l_=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=qu.toMilliseconds(s[2]),u.end=qu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},c_=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${qu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},d_=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),dv=ln({name:u_,build:c_,detect:d_,helper:qu,parse:l_});var m_="sub",Wf=25,p_=(e,t)=>{t.fps||=Wf;let n=t.fps>0?t.fps:Wf,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Wf,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},f_=e=>/^\{\d+\}\{\d+\}.*/.test(e),mv=ln({name:m_,build:g_,detect:f_,parse:p_});var h_="vtt",zu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},b_=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=zu.toMilliseconds(s[2]),l.end=zu.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},y_=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${zu.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},x_=e=>/^\s*WEBVTT\r?\n/.test(e),pv=ln({name:h_,build:y_,detect:x_,helper:zu,parse:b_});var v_={vtt:pv,lrc:sv,smi:cv,ssa:av,ass:iv,sub:mv,srt:dv,sbv:uv,json:ov},gv=v_;var T_=e=>JSON.parse(JSON.stringify(e)),Gf=class{format=gv;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),Ni.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];ts(this.ctx)&&this.isEnableSubtitle()&&(wt(document.documentElement,$+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${L}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&Sn(document,`${t.join(` -`)}`,L+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await We(Te(),{});if(this.initConfig(n),await st(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(Sx(r),Cx(a));return u&&this.setMemoryCache(o,u),u}catch(r){return A.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!ze(Te(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return De(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:q0(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function jP(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:G0}})}function UP(){return x("span",{class:"logo",dangerouslySetInnerHTML:{__html:Ux}})}function HP(){return x("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:x("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function qP(){return x("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:x("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function zP(){return x("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:x("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var Nf=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},ln=e=>new Nf(e);var WP="ssa",qi={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},jf=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sS.split(E,w).join(E).length)(b,",",r.length-1)+1;y.content=b.substring(T),y.data.Text=y.content,y.text=y.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(y)}}}}}t.verbose}return a},Uf=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,nv=ln({name:WP,build:Uf,detect:Hf,helper:qi,parse:jf});var GP="ass",rv=ln({name:GP,build:Uf,detect:Hf,helper:qi,parse:jf});var VP="json",$P=(e,t)=>JSON.parse(e),KP=(e,t)=>JSON.stringify(e,void 0,2),YP=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},av=ln({name:VP,build:KP,detect:YP,parse:$P});var ZP="lrc",qf={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},JP=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),iv=ln({name:ZP,build:XP,detect:QP,helper:qf,parse:JP});var e_="sbv",Uu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},t_=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},n_=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),ov=ln({name:e_,build:n_,detect:r_,helper:Uu,parse:t_});var sv="smi",zf={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},a_=(e,t)=>{if(t.format&&t.format!==sv)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(d){let m={};m.type="caption",m.start=parseInt(d[1]),m.end=m.start+2e3,m.duration=m.end-m.start,m.content=d[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,g=/^([\s\S]*)/i.exec(m.content)||/^]*)>([\s\S]*)/i.exec(m.content);if(g){let h=g[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),h=h.replace(/^\s+/g,"").replace(/\s+$/g,""),p=h.replace(/ /gi," ").replace(/\s+/g,"").length===0,m.text=zf.htmlDecode(h,r)}!t.preserveSpaces&&p?t.verbose:n.push(m),s&&(s.end=m.start,s.duration=s.end-s.start),s=m;continue}t.verbose}return n},i_=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${zf.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},o_=e=>/]*>[\s\S]*]*>/.test(e),uv=ln({name:sv,build:i_,detect:o_,helper:zf,parse:a_});var s_="srt",Hu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},u_=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Hu.toMilliseconds(s[2]),u.end=Hu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},l_=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Hu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},c_=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),lv=ln({name:s_,build:l_,detect:c_,helper:Hu,parse:u_});var d_="sub",Wf=25,m_=(e,t)=>{t.fps||=Wf;let n=t.fps>0?t.fps:Wf,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Wf,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},g_=e=>/^\{\d+\}\{\d+\}.*/.test(e),cv=ln({name:d_,build:p_,detect:g_,parse:m_});var f_="vtt",qu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},h_=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=qu.toMilliseconds(s[2]),l.end=qu.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},b_=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${qu.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},y_=e=>/^\s*WEBVTT\r?\n/.test(e),dv=ln({name:f_,build:b_,detect:y_,helper:qu,parse:h_});var x_={vtt:dv,lrc:iv,smi:uv,ssa:nv,ass:rv,sub:cv,srt:lv,sbv:ov,json:av},mv=x_;var v_=e=>JSON.parse(JSON.stringify(e)),Gf=class{format=mv;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),Oi.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];ts(this.ctx)&&this.isEnableSubtitle()&&(wt(document.documentElement,$+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${L}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&Tn(document,`${t.join(` +`)}`,L+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await He(ye(),{});if(this.initConfig(n),await ot(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(vx(r),Tx(a));return u&&this.setMemoryCache(o,u),u}catch(r){return A.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!We(ye(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return De(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:H0(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=Je.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Zt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=G0(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),ju(this.ctx,n,r)}getTranslationMode(t){return Ca(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=L+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;qe(this.ctx,n);let r=t.filter(a=>a.text);wa(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Uu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Pn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&rs({id:L+"quick-button",parent:n,ctx:this.ctx,Component:nv,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:rv+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?zi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return Ec(t.slice(0,50).map(n=>n.text).join(" "))}};function hv(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var $0=class extends tt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!ze(Te(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Xe(Q(r),this.ctx.targetLanguage);if(a||Ca(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(Hx(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=Ux(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return A.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${rt}subtitles/yt-asr-subs`;try{let a=await bc(t),o=(await V({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(A.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){A.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Xe(Q(o),r)&&!Ca(Q(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Xe(Q(d.languageCode),r)&&!Ca(Q(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>Q(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=Q(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=hv(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>Q(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>Q(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return Q(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=L+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Xe(Q(a[u]),this.ctx.targetLanguage)&&!Ca(Q(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:Tx(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await We(Te(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Uu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await We(Te(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=z0(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Ie({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Xe(Q(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Te()&&(this.lastReportUrl=Te(),qe(this.ctx,Q(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),W0(a.arrayBuffer,a.document))}catch{}}};var K0=class extends tt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe(Q(i),this.ctx.targetLanguage))return null;qe(this.ctx,Q(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:Q(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,Q(i));return}this.downloadSubtitle(o,Q(i),[]);let u=await this.requestHumanSubtitle(o,Q(i),r);if(u)return this.handleIOSFullScreen(u,Q(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,Q(i));return l?(this.handleIOSFullScreen(l,Q(i)),l.documentElement.outerHTML):null}catch(n){return A.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){A.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[Q(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return A.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=os(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!X()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Ou(a,n,i,this.ctx)}catch(a){A.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Te()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var oi=class extends tt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Xe(Q(t.language),this.ctx.targetLanguage))return;let r=a=>{if(A.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),Q(i.language)),i.isTranslated=!0;return}qe(this.ctx,Q(i.language)),this.translateSubtitle([...i.cues||[]],Q(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>S_(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){A.error("download subtitle error",i)}return t}catch(r){A.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function S_(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var ta=class extends oi{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&qe(this.ctx,Q(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Xe(Q(t.language),this.ctx.targetLanguage))return;let r=a=>{A.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,Q(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var us=class extends ta{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=is(r),i=await Ie({text:a.subtitles.map(l=>l.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Xe(Q(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,Q(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){A.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ii(a)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var Y0=class extends tt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Xe(Q(a),this.ctx.targetLanguage))return null;qe(this.ctx,Q(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,Q(a));return JSON.stringify(o)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:Tf(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){A.debug("translate subtitle:",o,s,u);return}let l=Ir(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${Tf(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Z0=class extends oi{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe(Q(i),this.ctx.targetLanguage))return null;qe(this.ctx,Q(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,Q(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,Q(i))}catch(n){return A.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=as(t),s=as(i),u=os(o,s);return{text:ii(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=as(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){A.debug("translate subtitle:",i,o,s);return}let u=Ir(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),ii(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[Q(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Te()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var J0=class extends tt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=bv(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=bv(o,r.itemsPath):s=w_(o,r),!s?.length)continue;let u=await Ie({text:s.map(l=>Wu(l,r.textKey)).join(` -`),pageLangs:[Ct(),"en"]});if(Xe(Q(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Wu(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),qe(this.ctx,Q(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Wu(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=C_(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function bv(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=No(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,qe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return rr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Zp(t);o.append(Je.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Ie({text:n,pageLangs:[pt(),"en"]});return Fo(t,r)?void 0:(await ea({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ke(),n=await We(Te(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await We(Te(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var X0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=E_(r),o=await Ie({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(Xe(Q(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=yv(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),qe(this.ctx,Q(o));let s=await this.translateSubtitle(a,i,Q(o));if(this.config.enableHookDownload)try{let u=yv(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){A.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),Q(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Ir(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(Gu,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},Gu="http://www.w3.org/ns/ttml";function E_(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Gu,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Gu,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Gu,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function yv(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Gu,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:xv(i),end:xv(o),text:s})}),r}function xv(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Q0=class extends tt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=is(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Xe(o,this.ctx.targetLanguage))return null;if(qe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,Q(o))}catch(n){return A.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=os(n.subtitles,as(u));return n.subtitles=l,ii(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){A.debug("translate subtitle:",a,i,o);return}let s=Ir(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),ii(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>Q(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=D_(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return Ie({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Te()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=k_(r),i=A_(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function A_(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function k_(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function D_(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var ed=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=z0(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Ie({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Xe(Q(s),this.ctx.targetLanguage)?null:(qe(this.ctx,Q(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),W0(a.arrayBuffer,a.document))}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var td=class extends tt{async requestSubtitle(t){let n=await We(Te(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new us(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Sf(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}Ax(a),kf(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var nd=class extends tt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(vv).forEach(n=>{vv[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Xe(Q(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return A.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(qe(this.ctx,t),wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=wx(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},vv={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var rd=class extends ta{constructor(t){super(t),new ls(t)}};var ad=class extends ta{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=zi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Ie({text:i.map(c=>c.text).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Xe(Q(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,Q(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){A.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),zi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var id=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Ie({text:a.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Xe(Q(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),qe(this.ctx,Q(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),Q(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){A.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",b=wf(g,l),f=wf(h,l),y=un(b),v=un(f);u==="duration"&&(v=y+v);let T=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(T||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var od=class extends tt{hasSubtitle=!1;async mutationVideoChange(){let t=L_(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(qe(this.ctx,"ja","av"),this.hasSubtitle=!0,wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await V({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return zi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){A.error("fetchSubtitle",n);return}}};function L_(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var sd=class extends tt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(qe(this.ctx,n.language_code),wa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var M_={youtube:$0,netflix:K0,webvtt:us,khanacademy:Y0,udemy:Z0,hulu:td,mubi:sd,text_track:oi,text_track_dynamic:ta,general:J0,live:ls,ebutt:X0,disneyplus:Q0,"fmp4.xml":ed,multi_attach_vtt:nd,twitter:rd,subsrt:ad,xml:id,av:od},ud;async function Tv(e){try{X()&&await st(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=M_[t.type];if(!n)return;ud=new n(e)}catch(t){A.error(t)}}async function Vf(){ud?.onPageStatusChange()}async function P_(e,t){if(ud?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&$e())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Fe("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function __(){ud?.onTranslationModeChanged()}z2({autoEnableSubtitleChanged:P_,reloadSubtitleWithTranslationModeChanged:__});var ue=null;function Vu(){return ue||null}function cd(e){es(document,e),R_(e),U_(e),O_(e),j_(e),B_(ue),In("Translated"),N_(ue),yx(cs),F_(ue),Vf(),Y_()}function R_(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=sn(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}ox(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}ts(e)&&wt(document.documentElement,$+"_rtl",e.targetLanguage)}function F_(e){let t=e.ctx;Mv(t,!0),xx(e),n9(window.location.href)}function I_(e){let t=e.ctx;Mv(t,!1),vx()}async function B_(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await Ev(e.ctx,sn(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ai(s,e);await ai(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ai(s,e)}function Ev(e,t){O2(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=mx(e,t);return A.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(A.debug("requestTermsByContext contextTerms articleNode",r),ho({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function O_(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Kt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await zt({...t,tempTranslationUrlMatches:[...i]})}}function N_(e){e.ctx.rule.isTranslateTitle&&(cf(e.ctx),e.titleDynamicObserver=gx(e.ctx))}function j_(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function $f(e,t){ue&&(e.filterRule=sn(e,!0),e.isRichTranslate=Ro(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=sn(e)),ue.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},ue.translationService=e.translationService,ue.urlChangeDelay=e.rule.urlChangeDelay,ue.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ue.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Vr(document.documentElement,ue.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function U_(e){let t=Ys();ue&&(t=ue.id),ue=ue||{},ue.ctx=e,ue.id=t,ue.paragraphQueue=ue.paragraphQueue||[],$f(e),ue.currentUrl=window.location.href,ue.paragraphEntities=ue.paragraphEntities||{},ue.autoIncreaseParagraphId=ue.autoIncreaseParagraphId||1,ue.interruptEffectDOM=!1,ue.observeContainers=ue.observeContainers||[],ue.observeParagraphs=ue.observeParagraphs||[],ue.dynamicContainerObserver=ue.dynamicContainerObserver||$_(ue),ue.ignoreResizeObserver=ue.ignoreResizeObserver||K_(ue),ue.containerVisibleObserver=ue.containerVisibleObserver||z_(ue),ue.paragraphVisibleObserver=ue.paragraphVisibleObserver||W_(ue),ue.injectCssToDocument=ld,ue.walkContainer=Sa,e.specialAiAssistant=_r(e,e.translationService,!0),window.onerror=q_(ue,e),window.immersiveTranslateSwitchTranslateState=Yf.bind(ue)}function Av(e,t){t.getRootNode()instanceof ShadowRoot?ld(t.getRootNode(),e):ld(t.ownerDocument,e),H_(e)}function H_(e){ue||(ue={},ue.ctx=e,ue.id=Ys(),Kf(ue,e))}function Kf(e,t){let n={...e};n.injectCssToDocument=ld,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=Yf.bind(n);let r=_r(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Ro(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function cs(e=!0){ue&&(In("Original"),Vf(),I_(ue),Iu(),ue.interruptEffectDOM=!0,ue.ignoreResizeObserver?.disconnect(),ue.dynamicContainerObserver?.disconnect(),ue.containerVisibleObserver?.disconnect(),ue.paragraphVisibleObserver?.disconnect(),ue.titleDynamicObserver?.disconnect(),fx(ue.ctx),Zy(),Jy(),e&&Yf.call(ue,"original"),Object.values(ue.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ue=null)}function q_(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),cs(),n=setTimeout(()=>{cd(t)},e.urlChangeDelay||2e3)),!0}}function z_(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await gf(e,r.target),n.unobserve(r.target))})}function W_(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{ff(e,o)}),n.unobserve(a)}})})}var Sv;function G_(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function V_(e){if(e.urlChangeDelay<=0||(clearTimeout(Sv),e.translateState=="original"))return!1;cs(e.urlChangeDelay>20),Sv=setTimeout(()=>{let t=e.ctx;cd(t)},e.urlChangeDelay)}function $_(e){let t=e.ctx.rule,n=sn(e.ctx);return new MutationObserver(r=>{if(G_(e)&&(Ev(e.ctx,n),t.mutationConfig.enableUrlChange&&V_(e))||e.interruptEffectDOM)return;let a=i0(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!rr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&rr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Jl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Cv(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&vf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Cv(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ht.isSkipMarkEle(i.target)&&!ht.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Wr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=No(n,o.parentElement);l&&(ht.clearToParentMark(o,l),wv(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&wv(e,i.target)}catch(o){A.error(o)}}})}function Cv(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{xf(n),Sa({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{Hi(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function wv(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ht.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ai(t,e,n),i.timer=null},a)}function xf(e){e.paragraphs=[],ht.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${L}-walked]`).forEach(t=>{t.paragraphs=void 0,ht.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function vf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function K_(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);nf(i)||(n.unobserve(r.target),ht.clearMark(a),ai(a,e))}})}async function Yf(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Br(),await st(50),Jt({method:"translatePage"});return}this.translateState=e,Vr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Vr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Fu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function ld(e,t){if(e instanceof HTMLIFrameElement){es(e.contentDocument,t);return}es(e,t)}async function kv(e){let t=$e(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=Hp(e.mainFrame),n=await Ie({text:r,pageLangs:["en"]})):(r=Do(e.mainFrame).slice(0,1e3),n=await Ie({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Ie({text:Do(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=Hp(e.mainFrame),n=await Ie({text:r,pageLangs:["en"]})}else n=await V2();return n==="auto"&&(n=await ux()),_2(n),n}async function Dv(){if(!ue)return;Iu(),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ue.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){ue.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Kl}='${n}']`);i&&i.remove()}}U0.call(ue,ue.ctx)}async function Zf(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Fe("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:pt()});let r=ue?.ctx||t,a=await Kt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:hx(r)},await zt(a);let o=be().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}qr(o)}catch(i){A.error(i)}}async function Lv(){let e=await Kt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(l1,{detail:JSON.stringify(e.draft)}))}async function Y_(){try{if(await Pi("reportActive")||"")return;A.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Mr();await V({url:rt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),wr("reportActive","1")}catch(e){A.error(e)}}function Mv(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(io,{detail:{tempEnableSubtitle:t}}))}function Jf(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&jn(o,s=>{s.preventDefault();let u=r[i];Jt({method:u,data:{trigger:"shortcut"}})})}}var Z_="imt-fb";function Rt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${Z_}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function Pv(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var dd="DROP_DOWN_DEFAULT_VALUE";function Xf(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=we(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:dd,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==dd){s.current.value=dd,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:dd,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function ds(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var J_=({date:e})=>{let{t}=ie(),[n,r]=z(!1);return Y(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},X_=({minVersion:e})=>{let{t}=ie();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},Q_=()=>{let{t:e}=ie();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ae+"docs/installation/"})}})},eR=({message:e,handleSyncing:t,date:n})=>{let{t:r}=ie();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function Qf(e){let{isShowError:t,request:n}=e,[r,a]=z(null),{t:i}=ie(),[o,s]=z(null),[u,l]=z(null),[c,d]=z(""),[m,p]=z(!1),[g,h]=z(!1),[b,f]=z(!1),[y,v]=z(null),[T,S]=z(null),E=Wt(),C=async()=>{d("");let k=o;if(o===null)try{let D=await n({url:Ns});D?(s(D),k=D,p(!0)):(d(i("unknownError")),l(null))}catch(D){l(null),d(D.message);return}k!==null?(e.setStorageBuildinConfig(k),l(!1),a(k.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return Y(()=>{le.DEBUG||Pt().then(k=>{let D=k.buildinConfigUpdatedAt;v(k);let R=new Date(D);if(a(D),E==="0.0.0"){f(!0);return}n({url:Ns}).then(F=>{let P=F,O=P.minVersion,_=E;s(P);let I=P.latestVersion;if(I&&(ds(_,I)?S(!0):S(!1)),ds(_,O)){let B=P.buildinConfigUpdatedAt;new Date(B)>R?(l(!0),C()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),Y(()=>{Pt().then(k=>{v(k),va(k)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x(Q_,{}):c?t===!1?null:x(eR,{handleSyncing:C,message:c,date:r||""}):g?t===!1?null:x(X_,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(J_,{date:r}):null}):null}function tR(){return navigator.userAgent.indexOf("Mac")!==-1}var _v={Alt:"\u2325"};function ms(e=""){return tR()?Object.keys(_v).reduce((t,n)=>t.replace(n,_v[n]),e):e}var Rv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var Fv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Iv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),Bv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),Ov=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var Nv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),jv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),Uv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),Hv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function ps(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function qv(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=ie();return Ya(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Hs,`${e.type}_user_info`);return}e.onOpenUrl(ec,`${e.type}_user_info`)},children:[x("img",{src:n?Wx:zx}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(nR,{...e})]})}function nR(e){let{t}=ie(),n=he(()=>ps(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Hs,`${e.type}_pro_logo`)},children:x("img",{src:ss})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Fn)},children:[x(Rt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Fn,`${e.type}_user_upgrade`)},children:[jv,x("span",{children:t("popup.upgrade")})]})}var si=(e,t,n,r)=>{let a=u2[e]||e,i=np[e]||e,o=rp[e],s=ap[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function eh(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=rp,a="zh-CN"):n==="zh-TW"?(r=ap,a="zh-TW"):(r=np,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function zv({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=ie();if(!t)return null;let o=I0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(rR,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:Gx,style:{maxWidth:"unset"},class:"mx-2"}),x(aR,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function rR(e){let{t}=ie(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=si(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=si(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function aR(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=si(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ui(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=ie();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var th;function dh(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Xv(e,t=","){return e.map(dh).join(t)}var Qv=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function pd(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function gd(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function iR(){}var pn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function eT(e){return e.match(/[-=:;]/g)?.length||0}function sh(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(eT(e),15)<<18}var oR=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function mh({n:e,i:t,v:n=[]},r,a,i){e&&(e=dh({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&gd(u)||r.v(s))){var o;i.push(l),a|=u?67108864|sh(l):s=="dark"?1073741824:l[0]=="@"?sh(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~oR.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var ph=new Map;function Wv(e){if(e.d){let t=[],n=nh(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?nh(r,i=>nh(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):rh(i,o)}return rh(o,i)})):r,"&"),r=>rh(r,e.n?"."+Qv(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function nh(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function rh(e,t){return e.replace(/&/g,t)}var Gv=new Intl.Collator("en",{numeric:!0});function sR(e,t){for(var n=0,r=e.length;n>1;0>=tT(e[a],t)?n=a+1:r=a}return r}function tT(e,t){let n=e.p&pn.o;return n==(t.p&pn.o)&&(n==pn.b||n==pn.o)?0:e.p-t.p||e.o-t.o||Gv.compare(Vv(e.n),Vv(t.n))||Gv.compare($v(e.n),$v(t.n))}function Vv(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function $v(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ah(e,t){return Math.round(parseInt(e,16)*t)}function li(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ah(e.substr(1,i),o),ah(e.substr(1+i,i),o),ah(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function nT(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...aT(s,u,fh(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let T of ir(v))m.push(...i(T,{n:s,p:(b=pn[y[7]],u&~pn.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(v).map(T=>({p:-1,o:0,r:[],d:y+" "+T})));continue}if(y[1]=="k"){m.push({p:pn.d,o:0,r:[y],d:i(v,{p:pn.d},d).map(Wv).join("")});continue}if(y[1]=="f"){m.push(...ir(v).map(T=>({p:pn.d,o:0,r:[y],d:i(T,{p:pn.d},d).map(Wv).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+pd(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:eT(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(v).map(T=>d.s(y,rT(""+T,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let T=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(S,E)=>{let C=d.theme("screens",E);return C?(T|=67108864,gd(C,"")):S}),T|=sh(y)),m.push(...i(v,{n:s,p:T,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(tT)}(e,mh(t,n,r,a),n)}function rT(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?li(s):""+ir(s).filter(u=>Object(u)!==u)})}function gh(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function uh(e,t,n=pn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=ph.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=mh(u,l,c,d),gh(uh(fh(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(h=c,b=g.p??c,h&~pn.o|b)}}):nT(p,u,l,c,d):[{c:dh(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(sR(i,s),0,s);return i}function aT(e,t,n,r,a,i,o,s){return gh((s?n.flatMap(u=>uh([u],r,a,i,o)):uh(n,r,a,i,o)).map(u=>u.p&pn.o&&(u.n||t==pn.b)?{...u,p:u.p&~pn.o|t,o:0}:u),e)}function uR(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=mh(i,o,t);return n&&aT(s,t,n,o,u,l,c,r)},ph.set(e,a),e}function ih(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(lR),i:a}))}}function lR(e,t,n){return n.indexOf(e)==t}var Kv=new Map;function fh(e){let t=Kv.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&ih(n,r)),a=s+1};for(;s1?d.slice(0,-1)+pd(JSON.stringify([d,m])):d+"("+Xv(m)+")",pn.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Kv.set(e,t=r[0])}return t}function iT(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function oT(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?iT(e,t,n=>oh(n).trim()):t.filter(Boolean).reduce((n,r)=>n+oh(r),e?oh(e):"")}function oh(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=oT(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var Dme=sT("@"),Lme=sT("~");function sT(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return Xv(fh(n+e+"("+oT(r,a)+")"))}}function lh(e,t){return Array.isArray(e)?Yv(iT(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Yv(e):[e]}var cR=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Yv(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=cR.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function uT(e,...t){var n;let r=lh(e,t),a=(r.find(i=>i.label)?.label||"css")+pd(JSON.stringify(r));return n=(i,o)=>gh(r.flatMap(s=>nT(s,i,o,pn.o)),a),ph.set(a,n),a}var Mme=new Proxy(function(e,t){return Zv("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Zv(t,n,r)}}});function Zv(e,t,n){return{toString(){return uT({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function J(e,t,n){return[e,dR(t,n)]}function dR(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ch(n,1)}):n=>e||{[n[1]]:ch(n,2)}}function ch(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,mR(t,n,r)]}function mR(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=lT(e||a[1]),s=i.theme(o,a.$$)??gs(a.$$,o,i);if(s!=null)return a._=ch(a,0,s),r(a,i,o)}}function Xt(e,t={},n){return[e,pR(t,n)]}function pR(e={},t){return(n,r)=>{let{section:a=lT(n[0]).replace("-","")+"Color"}=e,[i,o]=gR(n.$$);if(!i)return;let s=r.theme(a,i)||gs(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&gs(o,l,r),p=t||(({_:h})=>{let b=$u(c,h);return d?{[d]:b}:b});n._={value:li(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>li(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:li(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>li(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function gR(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function $u(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function gs(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=md(rT(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function lT(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function md(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>md(n)+r+md(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Pme=Symbol();var cT=new Proxy(iR,{apply(e,t,n){return th(n[0])},get(e,t){let n=th[t];return typeof n=="function"?function(){return n.apply(th,arguments)}:n}});var _me=function e(t){return new Proxy(function(n,...r){return Jv(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return Jv(t,r,a,i)}}})}();function Jv(e,t,n,r){return{toString(){let a=lh(n,r),i=Qv(t+pd(JSON.stringify([t,a])));return(typeof e=="function"?e:cT)(uT({[`@keyframes ${i}`]:lh(n,r)})),i}}}var dT={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ye("blur"),backdropBrightness:Ye("brightness"),backdropContrast:Ye("contrast"),backdropGrayscale:Ye("grayscale"),backdropHueRotate:Ye("hueRotate"),backdropInvert:Ye("invert"),backdropOpacity:Ye("opacity"),backdropSaturate:Ye("saturate"),backdropSepia:Ye("sepia"),backgroundColor:Ye("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ye("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ye("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ye("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ye("colors"),caretColor:Ye("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ye("borderColor"),divideOpacity:Ye("borderOpacity"),divideWidth:Ye("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Ku(2,6),...Ku(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ye("spacing"),gradientColorStops:Ye("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Ku(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Ku(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ye("spacing"),placeholderColor:Ye("colors"),placeholderOpacity:Ye("opacity"),outlineColor:Ye("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ye("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ye("spacing"),scrollPadding:Ye("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Ye("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Ye("colors"),textDecorationColor:Ye("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Ye("spacing"),textOpacity:Ye("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ye("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Ku(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function Ku(e,t){let n={};do for(var r=1;rt(e)}var Zme={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${dT.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${dT.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},Xme=[J("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:gs(`[${t}]`,"",n)}}})),J("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),J("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[gd(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),J("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),J("box-(border|content)","boxSizing",({1:e})=>e+"-box"),J("hidden",{display:"none"}),J("table-(auto|fixed)","tableLayout"),J(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",J("isolate","isolation"),J("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),J("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",fd),J("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),J("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),J("(visible|collapse)","visibility"),J("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),J("flex-((row|col)(-reverse)?)","flexDirection",mT),J("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),J("grid-cols-(\\d+)","gridTemplateColumns",hT),ee("col-","gridColumn"),J("col-(span)-(\\d+)","gridColumn",fT),ee("col-start-","gridColumnStart"),J("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),J("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),J("grid-rows-(\\d+)","gridTemplateRows",hT),ee("row-","gridRow"),J("row-(span)-(\\d+)","gridRow",fT),ee("row-start-","gridRowStart"),J("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),J("row-end-(auto|\\d+)","gridRowEnd"),J("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>fd(mT(e))),J("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",J("justify-","justifyContent",pT),J("(content|items|self)-",e=>({["align-"+e[1]]:pT(e)})),J("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",fs("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",fs("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),J("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:Or(e)}:{fontFamily:Or(e[0]),...e[1]}),J("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),J("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),J("italic","fontStyle"),J("not-italic",{fontStyle:"normal"}),J("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ci({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),J("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),J("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Xt("placeholder-",{property:"color",selector:"&::placeholder"}),J("text-(left|center|right|justify|start|end)","textAlign"),J("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Xt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),J("(overline|underline|line-through)","textDecorationLine"),J("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Xt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),J("decoration-","textDecorationStyle"),J("(uppercase|lowercase|capitalize)","textTransform"),J("normal-case",{textTransform:"none"}),J("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),J("align-","verticalAlign"),J("whitespace-","whiteSpace"),J("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),J("break-words",{overflowWrap:"break-word"}),J("break-all",{wordBreak:"break-all"}),J("break-keep",{wordBreak:"keep-all"}),Xt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Xt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),J("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Wi(e," ")},var(--tw-gradient-stops))`),Xt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Xt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Xt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),J("bg-(fixed|local|scroll)","backgroundAttachment"),J("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),J(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),J("bg-blend-","backgroundBlendMode"),J("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Xt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),J("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",fd),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Wi(n[0])}-radius`]:t,[`border-${Wi(n[1])}-radius`]:t}}),J("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),J("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ci({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Xt("border-([xytrbl])-",{section:"borderColor"},fs("border","Color")),Xt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",fs("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),J("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),J("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Wi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Wi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Xt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Xt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),J("ring-inset",{"--tw-ring-inset":"inset"}),Xt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":li(t("ringOffsetColor","","#fff")),"--tw-ring-color":li(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Xt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...ci({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Or(e),"--tw-shadow-colored":Or(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),J("mix-blend-","mixBlendMode"),...gT(),...gT("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Or(e),transitionTimingFunction:e._=="none"?void 0:Or(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Or(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",Or),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Or),ee("delay(?:$|-)","transitionDelay","transitionDelay",Or),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Or(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",J("transform",bh),J("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":bT(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...bh()})),ee("-?(rotate)-","rotate",hh),ee("-?(translate-[xy])-","translate",hh),ee("-?(skew-[xy])-","skew",hh),J("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",fd),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",J("snap-(none)","scroll-snap-type"),J("snap-(x|y|both)",({1:e})=>({...ci({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),J("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),J("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),J("snap-(normal|always)","scroll-snap-stop"),J("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",fs("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",fs("scroll-margin")),J("touch-(auto|none|manipulation)","touch-action"),J("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ci({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),J("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),J("outline",{outlineStyle:"solid"}),J("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Xt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],J("select-(none|text|all|auto)","userSelect"),Xt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Xt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),J("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),J("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function fd(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function mT(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Wi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Or(e){return e&&""+(e._||e)}function pT({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function fs(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...$u(e+"-"+Wi(a[0])+t,r),...$u(e+"-"+Wi(a[1])+t,r)}:$u(e+t,r)}}function gT(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ci(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,J(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function hh({1:e,_:t}){return{["--tw-"+e]:t,...bh()}}function bh(){return{...ci({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":bT()}),transform:"var(--tw-transform)"}}function bT(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function fT({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function hT({1:e}){return`repeat(${e},minmax(0,1fr))`}function ci(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var hd=globalThis||(typeof window<"u"?window:self),bR=Object.create,xh=Object.defineProperty,yR=Object.getOwnPropertyDescriptor,xR=Object.getOwnPropertyNames,vR=Object.getPrototypeOf,TR=Object.prototype.hasOwnProperty,SR=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),CR=(e,t)=>{for(var n in t)xh(e,n,{get:t[n],enumerable:!0})},yh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of xR(t))!TR.call(e,a)&&a!==n&&xh(e,a,{get:()=>t[a],enumerable:!(r=yR(t,a))||r.enumerable});return e},wR=(e,t,n)=>(yh(e,t,"default"),n&&yh(n,t,"default")),xT=(e,t,n)=>(n=e!=null?bR(vR(e)):{},yh(t||!e||!e.__esModule?xh(n,"default",{value:e,enumerable:!0}):n,e)),vT=SR((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof hd=="object"&&hd.global===hd?hd:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),TT={};CR(TT,{default:()=>bd});var ER=xT(vT());wR(TT,xT(vT()));var{default:yT,...AR}=ER,bd=yT!==void 0?yT:AR;function OT(e){return typeof e>"u"||e===null}function kR(e){return typeof e=="object"&&e!==null}function DR(e){return Array.isArray(e)?e:OT(e)?[]:[e]}function LR(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Th(e,t){return Qt.repeat(" ",t-e.length)+e}function NR(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=vh(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Qt.repeat(" ",t.indent)+Th((e.line-u+1).toString(),c)+" | "+l.str+` +`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Zt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=W0(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Nu(this.ctx,n,r)}getTranslationMode(t){return Sa(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=L+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;ze(this.ctx,n);let r=t.filter(a=>a.text);Ca(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(ju(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Mn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&rs({id:L+"quick-button",parent:n,ctx:this.ctx,Component:ev,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:tv+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?zi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return wc(t.slice(0,50).map(n=>n.text).join(" "))}};function gv(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var V0=class extends tt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!We(ye(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Xe(Q(r),this.ctx.targetLanguage);if(a||Sa(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(jx(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=Nx(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return A.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${rt}subtitles/yt-asr-subs`;try{let a=await hc(t),o=(await V({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(A.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){A.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Xe(Q(o),r)&&!Sa(Q(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Xe(Q(d.languageCode),r)&&!Sa(Q(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>Q(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=Q(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=gv(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>Q(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>Q(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return Q(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=L+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Xe(Q(a[u]),this.ctx.targetLanguage)&&!Sa(Q(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:xx(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await He(ye(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&ju(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await He(ye(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=q0(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Ne({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Xe(Q(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==ye()&&(this.lastReportUrl=ye(),ze(this.ctx,Q(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),z0(a.arrayBuffer,a.document))}catch{}}};var $0=class extends tt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe(Q(i),this.ctx.targetLanguage))return null;ze(this.ctx,Q(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:Q(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,Q(i));return}this.downloadSubtitle(o,Q(i),[]);let u=await this.requestHumanSubtitle(o,Q(i),r);if(u)return this.handleIOSFullScreen(u,Q(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,Q(i));return l?(this.handleIOSFullScreen(l,Q(i)),l.documentElement.outerHTML):null}catch(n){return A.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){A.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[Q(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return A.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=os(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!X()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Bu(a,n,i,this.ctx)}catch(a){A.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(ye()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ii=class extends tt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Xe(Q(t.language),this.ctx.targetLanguage))return;let r=a=>{if(A.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),Q(i.language)),i.isTranslated=!0;return}ze(this.ctx,Q(i.language)),this.translateSubtitle([...i.cues||[]],Q(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>T_(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){A.error("download subtitle error",i)}return t}catch(r){A.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function T_(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var Qr=class extends ii{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&ze(this.ctx,Q(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Xe(Q(t.language),this.ctx.targetLanguage))return;let r=a=>{A.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,Q(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var us=class extends Qr{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=is(r),i=await Ne({text:a.subtitles.map(l=>l.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(Xe(Q(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,Q(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){A.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ai(a)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}};var K0=class extends tt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Xe(Q(a),this.ctx.targetLanguage))return null;ze(this.ctx,Q(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,Q(a));return JSON.stringify(o)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:Tf(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){A.debug("translate subtitle:",o,s,u);return}let l=Fr(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${Tf(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Y0=class extends ii{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe(Q(i),this.ctx.targetLanguage))return null;ze(this.ctx,Q(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,Q(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,Q(i))}catch(n){return A.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=as(t),s=as(i),u=os(o,s);return{text:ai(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=as(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){A.debug("translate subtitle:",i,o,s);return}let u=Fr(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),ai(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[Q(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(ye()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Z0=class extends tt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=fv(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=fv(o,r.itemsPath):s=C_(o,r),!s?.length)continue;let u=await Ne({text:s.map(l=>zu(l,r.textKey)).join(` +`),pageLangs:[Ct(),"en"]});if(Xe(Q(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:zu(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),ze(this.ctx,Q(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>zu(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=S_(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function fv(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=No(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,ze(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Lt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Lt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return rr(t,["."+Lt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Lt);if(!a){let o=document.createElement("font");o.classList.add(Lt),o.classList.add("notranslate");let s=Zp(t);o.append(Je.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Ne({text:n,pageLangs:[pt(),"en"]});return Fo(t,r)?void 0:(await ji({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ke(),n=await He(ye(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await He(ye(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var J0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=w_(r),o=await Ne({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(Xe(Q(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=hv(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,Q(o));let s=await this.translateSubtitle(a,i,Q(o));if(this.config.enableHookDownload)try{let u=hv(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){A.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),Q(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Fr(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(Wu,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},Wu="http://www.w3.org/ns/ttml";function w_(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Wu,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Wu,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Wu,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function hv(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Wu,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:bv(i),end:bv(o),text:s})}),r}function bv(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var X0=class extends tt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=is(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Xe(o,this.ctx.targetLanguage))return null;if(ze(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,Q(o))}catch(n){return A.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=os(n.subtitles,as(u));return n.subtitles=l,ai(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){A.debug("translate subtitle:",a,i,o);return}let s=Fr(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),ai(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>Q(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=k_(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return Ne({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(ye()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=A_(r),i=E_(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function E_(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function A_(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function k_(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Q0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=q0(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Ne({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Xe(Q(s),this.ctx.targetLanguage)?null:(ze(this.ctx,Q(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),z0(a.arrayBuffer,a.document))}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var ed=class extends tt{async requestSubtitle(t){let n=await He(ye(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new us(this.ctx).loadSubtitle(i.url);if(!s)return;let u=Sf(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}wx(a),kf(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var td=class extends tt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(yv).forEach(n=>{yv[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Xe(Q(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return A.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(ze(this.ctx,t),Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=Sx(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},yv={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var nd=class extends Qr{constructor(t){super(t),new ls(t)}};var rd=class extends Qr{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=zi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Ne({text:i.map(c=>c.text).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(Xe(Q(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,Q(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){A.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),zi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var ad=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Ne({text:a.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(Xe(Q(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),ze(this.ctx,Q(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),Q(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){A.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return A.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",b=wf(g,l),f=wf(h,l),y=un(b),v=un(f);u==="duration"&&(v=y+v);let T=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(T||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var id=class extends tt{hasSubtitle=!1;async mutationVideoChange(){let t=D_(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(ze(this.ctx,"ja","av"),this.hasSubtitle=!0,Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await V({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return zi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){A.error("fetchSubtitle",n);return}}};function D_(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var od=class extends tt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(ze(this.ctx,n.language_code),Ca(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var L_={youtube:V0,netflix:$0,webvtt:us,khanacademy:K0,udemy:Y0,hulu:ed,mubi:od,text_track:ii,text_track_dynamic:Qr,general:Z0,live:ls,ebutt:J0,disneyplus:X0,"fmp4.xml":Q0,multi_attach_vtt:td,twitter:nd,subsrt:rd,xml:ad,av:id},sd;async function xv(e){try{X()&&await ot(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=L_[t.type];if(!n)return;sd=new n(e)}catch(t){A.error(t)}}async function Vf(){sd?.onPageStatusChange()}async function M_(e,t){if(sd?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&$e())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Re("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function P_(){sd?.onTranslationModeChanged()}H2({autoEnableSubtitleChanged:M_,reloadSubtitleWithTranslationModeChanged:P_});var ue=null;function Gu(){return ue||null}function ld(e){es(document,e),__(e),j_(e),B_(e),N_(e),I_(ue),Fn("Translated"),O_(ue),hx(cs),R_(ue),Vf(),K_()}function __(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=sn(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}ax(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}ts(e)&&wt(document.documentElement,$+"_rtl",e.targetLanguage)}function R_(e){let t=e.ctx;Dv(t,!0),bx(e),e9(window.location.href)}function F_(e){let t=e.ctx;Dv(t,!1),yx()}async function I_(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await Cv(e.ctx,sn(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ri(s,e);await ri(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ri(s,e)}function Cv(e,t){I2(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=cx(e,t);return A.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(A.debug("requestTermsByContext contextTerms articleNode",r),ho({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function B_(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Kt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await zt({...t,tempTranslationUrlMatches:[...i]})}}function O_(e){e.ctx.rule.isTranslateTitle&&(cf(e.ctx),e.titleDynamicObserver=mx(e.ctx))}function N_(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function $f(e,t){ue&&(e.filterRule=sn(e,!0),e.isRichTranslate=Ro(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=sn(e)),ue.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},ue.translationService=e.translationService,ue.urlChangeDelay=e.rule.urlChangeDelay,ue.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ue.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Gr(document.documentElement,ue.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function j_(e){let t=Ks();ue&&(t=ue.id),ue=ue||{},ue.ctx=e,ue.id=t,ue.paragraphQueue=ue.paragraphQueue||[],$f(e),ue.currentUrl=window.location.href,ue.paragraphEntities=ue.paragraphEntities||{},ue.autoIncreaseParagraphId=ue.autoIncreaseParagraphId||1,ue.interruptEffectDOM=!1,ue.observeContainers=ue.observeContainers||[],ue.observeParagraphs=ue.observeParagraphs||[],ue.dynamicContainerObserver=ue.dynamicContainerObserver||V_(ue),ue.ignoreResizeObserver=ue.ignoreResizeObserver||$_(ue),ue.containerVisibleObserver=ue.containerVisibleObserver||q_(ue),ue.paragraphVisibleObserver=ue.paragraphVisibleObserver||z_(ue),ue.injectCssToDocument=ud,ue.walkContainer=Ta,e.specialAiAssistant=ya(e,e.translationService,!0),window.onerror=H_(ue,e),window.immersiveTranslateSwitchTranslateState=Yf.bind(ue)}function wv(e,t){t.getRootNode()instanceof ShadowRoot?ud(t.getRootNode(),e):ud(t.ownerDocument,e),U_(e)}function U_(e){ue||(ue={},ue.ctx=e,ue.id=Ks(),Kf(ue,e))}function Kf(e,t){let n={...e};n.injectCssToDocument=ud,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=Yf.bind(n);let r=ya(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Ro(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function cs(e=!0){ue&&(Fn("Original"),Vf(),F_(ue),Fu(),ue.interruptEffectDOM=!0,ue.ignoreResizeObserver?.disconnect(),ue.dynamicContainerObserver?.disconnect(),ue.containerVisibleObserver?.disconnect(),ue.paragraphVisibleObserver?.disconnect(),ue.titleDynamicObserver?.disconnect(),px(ue.ctx),Ky(),Yy(),e&&Yf.call(ue,"original"),Object.values(ue.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ue=null)}function H_(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),cs(),n=setTimeout(()=>{ld(t)},e.urlChangeDelay||2e3)),!0}}function q_(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await gf(e,r.target),n.unobserve(r.target))})}function z_(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{ff(e,o)}),n.unobserve(a)}})})}var vv;function W_(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function G_(e){if(e.urlChangeDelay<=0||(clearTimeout(vv),e.translateState=="original"))return!1;cs(e.urlChangeDelay>20),vv=setTimeout(()=>{let t=e.ctx;ld(t)},e.urlChangeDelay)}function V_(e){let t=e.ctx.rule,n=sn(e.ctx);return new MutationObserver(r=>{if(W_(e)&&(Cv(e.ctx,n),t.mutationConfig.enableUrlChange&&G_(e))||e.interruptEffectDOM)return;let a=a0(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!rr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&rr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Zl)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Tv(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&vf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Tv(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ht.isSkipMarkEle(i.target)&&!ht.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!At(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||zr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=No(n,o.parentElement);l&&(ht.clearToParentMark(o,l),Sv(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||At(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Lt])?!1:o.contains(l)).length&&Sv(e,i.target)}catch(o){A.error(o)}}})}function Tv(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(At(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{xf(n),Ta({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{Hi(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function Sv(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ht.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ri(t,e,n),i.timer=null},a)}function xf(e){e.paragraphs=[],ht.clearMark(e),e.querySelectorAll("."+Lt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${L}-walked]`).forEach(t=>{t.paragraphs=void 0,ht.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function vf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||At(n,["."+Lt]))).length==0}function $_(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);nf(i)||(n.unobserve(r.target),ht.clearMark(a),ri(a,e))}})}async function Yf(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Ir(),await ot(50),Jt({method:"translatePage"});return}this.translateState=e,Gr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Gr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Ru(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Lt}`).forEach(t=>t.remove())}function ud(e,t){if(e instanceof HTMLIFrameElement){es(e.contentDocument,t);return}es(e,t)}async function Ev(e){let t=$e(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=Hp(e.mainFrame),n=await Ne({text:r,pageLangs:["en"]})):(r=Do(e.mainFrame).slice(0,1e3),n=await Ne({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Ne({text:Do(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=Hp(e.mainFrame),n=await Ne({text:r,pageLangs:["en"]})}else n=await W2();return n==="auto"&&(n=await ox()),M2(n),n}async function Av(){if(!ue)return;Fu(),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ue.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){ue.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${$l}='${n}']`);i&&i.remove()}}j0.call(ue,ue.ctx)}async function Zf(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Re("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:pt()});let r=ue?.ctx||t,a=await Kt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:gx(r)},await zt(a);let o=be().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Hr(o)}catch(i){A.error(i)}}async function kv(){let e=await Kt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(s1,{detail:JSON.stringify(e.draft)}))}async function K_(){try{if(await Mi("reportActive")||"")return;A.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Mr();await V({url:rt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),wr("reportActive","1")}catch(e){A.error(e)}}function Dv(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(io,{detail:{tempEnableSubtitle:t}}))}function Jf(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&jn(o,s=>{s.preventDefault();let u=r[i];Jt({method:u,data:{trigger:"shortcut"}})})}}var Y_="imt-fb";function Rt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${Y_}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function Lv(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var cd="DROP_DOWN_DEFAULT_VALUE";function Xf(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=we(null);return x("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:cd,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==cd){s.current.value=cd,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:cd,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function ds(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Z_=({date:e})=>{let{t}=ie(),[n,r]=z(!1);return Y(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},J_=({minVersion:e})=>{let{t}=ie();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},X_=()=>{let{t:e}=ie();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ae+"docs/installation/"})}})},Q_=({message:e,handleSyncing:t,date:n})=>{let{t:r}=ie();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function Qf(e){let{isShowError:t,request:n}=e,[r,a]=z(null),{t:i}=ie(),[o,s]=z(null),[u,l]=z(null),[c,d]=z(""),[m,p]=z(!1),[g,h]=z(!1),[b,f]=z(!1),[y,v]=z(null),[T,S]=z(null),E=Wt(),w=async()=>{d("");let k=o;if(o===null)try{let D=await n({url:Os});D?(s(D),k=D,p(!0)):(d(i("unknownError")),l(null))}catch(D){l(null),d(D.message);return}k!==null?(e.setStorageBuildinConfig(k),l(!1),a(k.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return Y(()=>{le.DEBUG||Pt().then(k=>{let D=k.buildinConfigUpdatedAt;v(k);let R=new Date(D);if(a(D),E==="0.0.0"){f(!0);return}n({url:Os}).then(F=>{let P=F,O=P.minVersion,_=E;s(P);let I=P.latestVersion;if(I&&(ds(_,I)?S(!0):S(!1)),ds(_,O)){let B=P.buildinConfigUpdatedAt;new Date(B)>R?(l(!0),w()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),Y(()=>{Pt().then(k=>{v(k),xa(k)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x(X_,{}):c?t===!1?null:x(Q_,{handleSyncing:w,message:c,date:r||""}):g?t===!1?null:x(J_,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(Z_,{date:r}):null}):null}function eR(){return navigator.userAgent.indexOf("Mac")!==-1}var Mv={Alt:"\u2325"};function ms(e=""){return eR()?Object.keys(Mv).reduce((t,n)=>t.replace(n,Mv[n]),e):e}var Pv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var _v=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Rv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),Fv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),Iv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var Bv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),Ov=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),Nv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),jv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function ps(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function Uv(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=ie();return Ka(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Us,`${e.type}_user_info`);return}e.onOpenUrl(Ql,`${e.type}_user_info`)},children:[x("img",{src:n?qx:Hx}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(tR,{...e})]})}function tR(e){let{t}=ie(),n=he(()=>ps(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Us,`${e.type}_pro_logo`)},children:x("img",{src:ss})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Rn)},children:[x(Rt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Rn,`${e.type}_user_upgrade`)},children:[Ov,x("span",{children:t("popup.upgrade")})]})}var oi=(e,t,n,r)=>{let a=o2[e]||e,i=np[e]||e,o=rp[e],s=ap[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function eh(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=rp,a="zh-CN"):n==="zh-TW"?(r=ap,a="zh-TW"):(r=np,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function Hv({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=ie();if(!t)return null;let o=F0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(nR,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:zx,style:{maxWidth:"unset"},class:"mx-2"}),x(rR,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function nR(e){let{t}=ie(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=oi(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=oi(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function rR(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:eh(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=oi(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function si(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=ie();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var th;function dh(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Zv(e,t=","){return e.map(dh).join(t)}var Jv=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function md(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function pd(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function aR(){}var pn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Xv(e){return e.match(/[-=:;]/g)?.length||0}function sh(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Xv(e),15)<<18}var iR=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function mh({n:e,i:t,v:n=[]},r,a,i){e&&(e=dh({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&pd(u)||r.v(s))){var o;i.push(l),a|=u?67108864|sh(l):s=="dark"?1073741824:l[0]=="@"?sh(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~iR.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var ph=new Map;function qv(e){if(e.d){let t=[],n=nh(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?nh(r,i=>nh(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):rh(i,o)}return rh(o,i)})):r,"&"),r=>rh(r,e.n?"."+Jv(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function nh(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function rh(e,t){return e.replace(/&/g,t)}var zv=new Intl.Collator("en",{numeric:!0});function oR(e,t){for(var n=0,r=e.length;n>1;0>=Qv(e[a],t)?n=a+1:r=a}return r}function Qv(e,t){let n=e.p&pn.o;return n==(t.p&pn.o)&&(n==pn.b||n==pn.o)?0:e.p-t.p||e.o-t.o||zv.compare(Wv(e.n),Wv(t.n))||zv.compare(Gv(e.n),Gv(t.n))}function Wv(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Gv(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ah(e,t){return Math.round(parseInt(e,16)*t)}function ui(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ah(e.substr(1,i),o),ah(e.substr(1+i,i),o),ah(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function eT(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...nT(s,u,fh(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let T of ir(v))m.push(...i(T,{n:s,p:(b=pn[y[7]],u&~pn.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(v).map(T=>({p:-1,o:0,r:[],d:y+" "+T})));continue}if(y[1]=="k"){m.push({p:pn.d,o:0,r:[y],d:i(v,{p:pn.d},d).map(qv).join("")});continue}if(y[1]=="f"){m.push(...ir(v).map(T=>({p:pn.d,o:0,r:[y],d:i(T,{p:pn.d},d).map(qv).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+md(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:Xv(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(v).map(T=>d.s(y,tT(""+T,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let T=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(S,E)=>{let w=d.theme("screens",E);return w?(T|=67108864,pd(w,"")):S}),T|=sh(y)),m.push(...i(v,{n:s,p:T,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(Qv)}(e,mh(t,n,r,a),n)}function tT(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?ui(s):""+ir(s).filter(u=>Object(u)!==u)})}function gh(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function uh(e,t,n=pn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=ph.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=mh(u,l,c,d),gh(uh(fh(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(h=c,b=g.p??c,h&~pn.o|b)}}):eT(p,u,l,c,d):[{c:dh(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(oR(i,s),0,s);return i}function nT(e,t,n,r,a,i,o,s){return gh((s?n.flatMap(u=>uh([u],r,a,i,o)):uh(n,r,a,i,o)).map(u=>u.p&pn.o&&(u.n||t==pn.b)?{...u,p:u.p&~pn.o|t,o:0}:u),e)}function sR(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=mh(i,o,t);return n&&nT(s,t,n,o,u,l,c,r)},ph.set(e,a),e}function ih(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(uR),i:a}))}}function uR(e,t,n){return n.indexOf(e)==t}var Vv=new Map;function fh(e){let t=Vv.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&ih(n,r)),a=s+1};for(;s1?d.slice(0,-1)+md(JSON.stringify([d,m])):d+"("+Zv(m)+")",pn.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Vv.set(e,t=r[0])}return t}function rT(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function aT(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?rT(e,t,n=>oh(n).trim()):t.filter(Boolean).reduce((n,r)=>n+oh(r),e?oh(e):"")}function oh(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=aT(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var Lme=iT("@"),Mme=iT("~");function iT(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return Zv(fh(n+e+"("+aT(r,a)+")"))}}function lh(e,t){return Array.isArray(e)?$v(rT(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?$v(e):[e]}var lR=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function $v(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=lR.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function oT(e,...t){var n;let r=lh(e,t),a=(r.find(i=>i.label)?.label||"css")+md(JSON.stringify(r));return n=(i,o)=>gh(r.flatMap(s=>eT(s,i,o,pn.o)),a),ph.set(a,n),a}var Pme=new Proxy(function(e,t){return Kv("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Kv(t,n,r)}}});function Kv(e,t,n){return{toString(){return oT({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function J(e,t,n){return[e,cR(t,n)]}function cR(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ch(n,1)}):n=>e||{[n[1]]:ch(n,2)}}function ch(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ee(e,t,n,r){return[e,dR(t,n,r)]}function dR(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=sT(e||a[1]),s=i.theme(o,a.$$)??gs(a.$$,o,i);if(s!=null)return a._=ch(a,0,s),r(a,i,o)}}function Xt(e,t={},n){return[e,mR(t,n)]}function mR(e={},t){return(n,r)=>{let{section:a=sT(n[0]).replace("-","")+"Color"}=e,[i,o]=pR(n.$$);if(!i)return;let s=r.theme(a,i)||gs(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&gs(o,l,r),p=t||(({_:h})=>{let b=Vu(c,h);return d?{[d]:b}:b});n._={value:ui(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>ui(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:ui(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>ui(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function pR(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Vu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function gs(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=dd(tT(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function sT(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function dd(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>dd(n)+r+dd(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var _me=Symbol();var uT=new Proxy(aR,{apply(e,t,n){return th(n[0])},get(e,t){let n=th[t];return typeof n=="function"?function(){return n.apply(th,arguments)}:n}});var Rme=function e(t){return new Proxy(function(n,...r){return Yv(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return Yv(t,r,a,i)}}})}();function Yv(e,t,n,r){return{toString(){let a=lh(n,r),i=Jv(t+md(JSON.stringify([t,a])));return(typeof e=="function"?e:uT)(oT({[`@keyframes ${i}`]:lh(n,r)})),i}}}var lT={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ye("blur"),backdropBrightness:Ye("brightness"),backdropContrast:Ye("contrast"),backdropGrayscale:Ye("grayscale"),backdropHueRotate:Ye("hueRotate"),backdropInvert:Ye("invert"),backdropOpacity:Ye("opacity"),backdropSaturate:Ye("saturate"),backdropSepia:Ye("sepia"),backgroundColor:Ye("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ye("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ye("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ye("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ye("colors"),caretColor:Ye("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ye("borderColor"),divideOpacity:Ye("borderOpacity"),divideWidth:Ye("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...$u(2,6),...$u(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ye("spacing"),gradientColorStops:Ye("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...$u(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...$u(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ye("spacing"),placeholderColor:Ye("colors"),placeholderOpacity:Ye("opacity"),outlineColor:Ye("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ye("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ye("spacing"),scrollPadding:Ye("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Ye("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Ye("colors"),textDecorationColor:Ye("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Ye("spacing"),textOpacity:Ye("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ye("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...$u(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function $u(e,t){let n={};do for(var r=1;rt(e)}var Jme={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${lT.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${lT.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},Qme=[J("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:gs(`[${t}]`,"",n)}}})),J("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ee("aspect-","aspectRatio"),J("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[pd(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ee("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),J("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),J("box-(border|content)","boxSizing",({1:e})=>e+"-box"),J("hidden",{display:"none"}),J("table-(auto|fixed)","tableLayout"),J(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",J("isolate","isolation"),J("object-(contain|cover|fill|none|scale-down)","objectFit"),ee("object-","objectPosition"),J("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",gd),J("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),J("(static|fixed|absolute|relative|sticky)","position"),ee("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ee("-?(top|bottom|left|right)(?:$|-)","inset"),J("(visible|collapse)","visibility"),J("invisible",{visibility:"hidden"}),ee("-?z-","zIndex"),J("flex-((row|col)(-reverse)?)","flexDirection",cT),J("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ee("(flex-(?:grow|shrink))(?:$|-)"),ee("(flex)-"),ee("grow(?:$|-)","flexGrow"),ee("shrink(?:$|-)","flexShrink"),ee("basis-","flexBasis"),ee("-?(order)-"),"-?(order)-(\\d+)",ee("grid-cols-","gridTemplateColumns"),J("grid-cols-(\\d+)","gridTemplateColumns",gT),ee("col-","gridColumn"),J("col-(span)-(\\d+)","gridColumn",pT),ee("col-start-","gridColumnStart"),J("col-start-(auto|\\d+)","gridColumnStart"),ee("col-end-","gridColumnEnd"),J("col-end-(auto|\\d+)","gridColumnEnd"),ee("grid-rows-","gridTemplateRows"),J("grid-rows-(\\d+)","gridTemplateRows",gT),ee("row-","gridRow"),J("row-(span)-(\\d+)","gridRow",pT),ee("row-start-","gridRowStart"),J("row-start-(auto|\\d+)","gridRowStart"),ee("row-end-","gridRowEnd"),J("row-end-(auto|\\d+)","gridRowEnd"),J("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>gd(cT(e))),J("grid-flow-(dense)","gridAutoFlow"),ee("auto-cols-","gridAutoColumns"),ee("auto-rows-","gridAutoRows"),ee("gap-x(?:$|-)","gap","columnGap"),ee("gap-y(?:$|-)","gap","rowGap"),ee("gap(?:$|-)","gap"),"(justify-(?:items|self))-",J("justify-","justifyContent",dT),J("(content|items|self)-",e=>({["align-"+e[1]]:dT(e)})),J("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ee("p([xytrbl])?(?:$|-)","padding",fs("padding")),ee("-?m([xytrbl])?(?:$|-)","margin",fs("margin")),ee("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),J("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ee("w-","width"),ee("min-w-","minWidth"),ee("max-w-","maxWidth"),ee("h-","height"),ee("min-h-","minHeight"),ee("max-h-","maxHeight"),ee("font-","fontWeight"),ee("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:Br(e)}:{fontFamily:Br(e[0]),...e[1]}),J("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),J("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),J("italic","fontStyle"),J("not-italic",{fontStyle:"normal"}),J("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...li({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ee("tracking-","letterSpacing"),ee("leading-","lineHeight"),J("list-(inside|outside)","listStylePosition"),ee("list-","listStyleType"),J("list-","listStyleType"),ee("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Xt("placeholder-",{property:"color",selector:"&::placeholder"}),J("text-(left|center|right|justify|start|end)","textAlign"),J("text-(ellipsis|clip)","textOverflow"),ee("text-opacity-","textOpacity","--tw-text-opacity"),Xt("text-",{property:"color"}),ee("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ee("indent-","textIndent"),J("(overline|underline|line-through)","textDecorationLine"),J("no-underline",{textDecorationLine:"none"}),ee("underline-offset-","textUnderlineOffset"),Xt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ee("decoration-","textDecorationThickness"),J("decoration-","textDecorationStyle"),J("(uppercase|lowercase|capitalize)","textTransform"),J("normal-case",{textTransform:"none"}),J("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),J("align-","verticalAlign"),J("whitespace-","whiteSpace"),J("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),J("break-words",{overflowWrap:"break-word"}),J("break-all",{wordBreak:"break-all"}),J("break-keep",{wordBreak:"keep-all"}),Xt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Xt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),J("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Wi(e," ")},var(--tw-gradient-stops))`),Xt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Xt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Xt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),J("bg-(fixed|local|scroll)","backgroundAttachment"),J("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),J(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),J("bg-blend-","backgroundBlendMode"),J("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ee("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Xt("bg-",{section:"backgroundColor"}),ee("bg-","backgroundImage"),ee("bg-","backgroundPosition"),J("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",gd),ee("bg-","backgroundSize"),ee("rounded(?:$|-)","borderRadius"),ee("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Wi(n[0])}-radius`]:t,[`border-${Wi(n[1])}-radius`]:t}}),J("border-(collapse|separate)","borderCollapse"),ee("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),J("border-(solid|dashed|dotted|double|none)","borderStyle"),ee("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...li({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Xt("border-([xytrbl])-",{section:"borderColor"},fs("border","Color")),Xt("border-"),ee("border-([xytrbl])(?:$|-)","borderWidth",fs("border","Width")),ee("border(?:$|-)","borderWidth"),ee("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),J("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),J("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ee("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Wi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Wi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Xt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ee("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Xt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ee("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),J("ring-inset",{"--tw-ring-inset":"inset"}),Xt("ring-",{property:"--tw-ring-color"}),ee("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...li({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ui(t("ringOffsetColor","","#fff")),"--tw-ring-color":ui(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Xt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ee("shadow(?:$|-)","boxShadow",({_:e})=>({...li({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Br(e),"--tw-shadow-colored":Br(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ee("(opacity)-"),J("mix-blend-","mixBlendMode"),...mT(),...mT("backdrop-"),ee("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Br(e),transitionTimingFunction:e._=="none"?void 0:Br(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Br(t("transitionDuration",""))})),ee("duration(?:$|-)","transitionDuration","transitionDuration",Br),ee("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Br),ee("delay(?:$|-)","transitionDelay","transitionDelay",Br),ee("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Br(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",J("transform",bh),J("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":fT(e=="gpu")})),ee("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...bh()})),ee("-?(rotate)-","rotate",hh),ee("-?(translate-[xy])-","translate",hh),ee("-?(skew-[xy])-","skew",hh),J("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",gd),"(appearance)-",ee("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ee("(cursor)-"),"(cursor)-",J("snap-(none)","scroll-snap-type"),J("snap-(x|y|both)",({1:e})=>({...li({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),J("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),J("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),J("snap-(normal|always)","scroll-snap-stop"),J("scroll-(auto|smooth)","scroll-behavior"),ee("scroll-p([xytrbl])?(?:$|-)","padding",fs("scroll-padding")),ee("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",fs("scroll-margin")),J("touch-(auto|none|manipulation)","touch-action"),J("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...li({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),J("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),J("outline",{outlineStyle:"solid"}),J("outline-(dashed|dotted|double)","outlineStyle"),ee("-?(outline-offset)-"),Xt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ee("outline-","outlineWidth"),"(pointer-events)-",ee("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],J("select-(none|text|all|auto)","userSelect"),Xt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Xt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ee("stroke-","strokeWidth"),J("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),J("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function gd(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function cT(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Wi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Br(e){return e&&""+(e._||e)}function dT({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function fs(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Vu(e+"-"+Wi(a[0])+t,r),...Vu(e+"-"+Wi(a[1])+t,r)}:Vu(e+t,r)}}function mT(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...li(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,J(`${e}filter`,n),...t.map(r=>ee(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function hh({1:e,_:t}){return{["--tw-"+e]:t,...bh()}}function bh(){return{...li({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":fT()}),transform:"var(--tw-transform)"}}function fT(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function pT({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function gT({1:e}){return`repeat(${e},minmax(0,1fr))`}function li(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var fd=globalThis||(typeof window<"u"?window:self),hR=Object.create,xh=Object.defineProperty,bR=Object.getOwnPropertyDescriptor,yR=Object.getOwnPropertyNames,xR=Object.getPrototypeOf,vR=Object.prototype.hasOwnProperty,TR=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),SR=(e,t)=>{for(var n in t)xh(e,n,{get:t[n],enumerable:!0})},yh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yR(t))!vR.call(e,a)&&a!==n&&xh(e,a,{get:()=>t[a],enumerable:!(r=bR(t,a))||r.enumerable});return e},CR=(e,t,n)=>(yh(e,t,"default"),n&&yh(n,t,"default")),bT=(e,t,n)=>(n=e!=null?hR(xR(e)):{},yh(t||!e||!e.__esModule?xh(n,"default",{value:e,enumerable:!0}):n,e)),yT=TR((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof fd=="object"&&fd.global===fd?fd:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),xT={};SR(xT,{default:()=>hd});var wR=bT(yT());CR(xT,bT(yT()));var{default:hT,...ER}=wR,hd=hT!==void 0?hT:ER;function IT(e){return typeof e>"u"||e===null}function AR(e){return typeof e=="object"&&e!==null}function kR(e){return Array.isArray(e)?e:IT(e)?[]:[e]}function DR(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Th(e,t){return Qt.repeat(" ",t-e.length)+e}function OR(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=vh(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Qt.repeat(" ",t.indent)+Th((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=vh(e.buffer,r[o],a[o],e.position,d),s+=Qt.repeat(" ",t.indent)+Th((e.line+1).toString(),c)+" | "+l.str+` `,s+=Qt.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=vh(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=Qt.repeat(" ",t.indent)+Th((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var jR=NR,UR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],HR=["scalar","sequence","mapping"];function qR(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function zR(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(UR.indexOf(n)===-1)throw new zn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=qR(t.styleAliases||null),HR.indexOf(this.kind)===-1)throw new zn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var wn=zR;function ST(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function WR(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),dF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mF(e){return!(e===null||!dF.test(e)||e[e.length-1]==="_")}function pF(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var gF=/^[-+]?[0-9]+e/;function fF(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Qt.isNegativeZero(e))return"-0.0";return n=e.toString(10),gF.test(n)?n.replace("e",".e"):n}function hF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Qt.isNegativeZero(e))}var bF=new wn("tag:yaml.org,2002:float",{kind:"scalar",resolve:mF,construct:pF,predicate:hF,represent:fF,defaultStyle:"lowercase"}),yF=YR.extend({implicit:[QR,rF,cF,bF]}),xF=yF,jT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),UT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function vF(e){return e===null?!1:jT.exec(e)!==null||UT.exec(e)!==null}function TF(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=jT.exec(e),t===null&&(t=UT.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function SF(e){return e.toISOString()}var CF=new wn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:vF,construct:TF,instanceOf:Date,represent:SF});function wF(e){return e==="<<"||e===null}var EF=new wn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wF}),Dh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function AF(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Dh;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function kF(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Dh,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function DF(e){var t="",n=0,r,a,i=e.length,o=Dh;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function LF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var MF=new wn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:AF,construct:kF,predicate:LF,represent:DF}),PF=Object.prototype.hasOwnProperty,_F=Object.prototype.toString;function RF(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var VT=new Array(256),$T=new Array(256);for(Gi=0;Gi<256;Gi++)VT[Gi]=ET(Gi)?1:0,$T[Gi]=ET(Gi);var Gi;function XF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||HT,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function KT(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=jR(n),new zn(t,n)}function xe(e,t){throw KT(e,t)}function vd(e,t){e.onWarning&&e.onWarning.call(null,KT(e,t))}var AT={YAML:function(e,t,n){var r,a,i;e.version!==null&&xe(e,"duplication of %YAML directive"),n.length!==1&&xe(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&xe(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&xe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&vd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&xe(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],WT.test(r)||xe(e,"ill-formed tag handle (first argument) of the TAG directive"),mi.call(e.tagMap,r)&&xe(e,'there is a previously declared suffix for "'+r+'" tag handle'),GT.test(a)||xe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{xe(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function di(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Qt.repeat(` -`,t-1))}function QF(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||bs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&bs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&bs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&Cd(e)||n&&bs(p))break;if(na(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,Gt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(di(e,i,o,!1),Mh(e,e.line-u),i=o=e.position,s=!1),Vi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return di(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function eI(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(di(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else na(n)?(di(e,r,a,!0),Mh(e,Gt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&Cd(e)?xe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);xe(e,"unexpected end of the stream within a single quoted scalar")}function tI(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return di(e,n,e.position,!0),e.position++,!0;if(s===92){if(di(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),na(s))Gt(e,!1,t);else if(s<256&&VT[s])e.result+=$T[s],e.position++;else if((o=YF(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=KF(s))>=0?i=(i<<4)+o:xe(e,"expected hexadecimal character");e.result+=JF(i),e.position++}else xe(e,"unknown escape sequence");n=r=e.position}else na(s)?(di(e,n,r,!0),Mh(e,Gt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Cd(e)?xe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}xe(e,"unexpected end of the stream within a double quoted scalar")}function nI(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&xe(e,"expected the node content, but found ','"):xe(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,Gt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,xs(e,t,yd,!1,!0),b=e.tag,h=e.result,Gt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),Gt(e,!0,t),xs(e,t,yd,!1,!0),f=e.result),p?ys(e,s,g,b,h,f,r,a,i):d?s.push(ys(e,null,g,b,h,f,r,a,i)):s.push(h),Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}xe(e,"unexpected end of the stream within a flow collection")}function rI(e,t){var n,r,a=Sh,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Sh===a?a=d===43?CT:WF:xe(e,"repeat of a chomping mode identifier");else if((c=ZF(d))>=0)c===0?xe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?xe(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Vi(d)){do d=e.input.charCodeAt(++e.position);while(Vi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!na(d)&&d!==0)}for(;d!==0;){for(Lh(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),na(d)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function dF(e){return!(e===null||!cF.test(e)||e[e.length-1]==="_")}function mF(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var pF=/^[-+]?[0-9]+e/;function gF(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Qt.isNegativeZero(e))return"-0.0";return n=e.toString(10),pF.test(n)?n.replace("e",".e"):n}function fF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Qt.isNegativeZero(e))}var hF=new Cn("tag:yaml.org,2002:float",{kind:"scalar",resolve:dF,construct:mF,predicate:fF,represent:gF,defaultStyle:"lowercase"}),bF=KR.extend({implicit:[XR,nF,lF,hF]}),yF=bF,OT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),NT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function xF(e){return e===null?!1:OT.exec(e)!==null||NT.exec(e)!==null}function vF(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=OT.exec(e),t===null&&(t=NT.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function TF(e){return e.toISOString()}var SF=new Cn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:xF,construct:vF,instanceOf:Date,represent:TF});function CF(e){return e==="<<"||e===null}var wF=new Cn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:CF}),Dh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function EF(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Dh;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function AF(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Dh,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function kF(e){var t="",n=0,r,a,i=e.length,o=Dh;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function DF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var LF=new Cn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:EF,construct:AF,predicate:DF,represent:kF}),MF=Object.prototype.hasOwnProperty,PF=Object.prototype.toString;function _F(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var WT=new Array(256),GT=new Array(256);for(Gi=0;Gi<256;Gi++)WT[Gi]=CT(Gi)?1:0,GT[Gi]=CT(Gi);var Gi;function JF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jT,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function VT(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=NR(n),new zn(t,n)}function ve(e,t){throw VT(e,t)}function xd(e,t){e.onWarning&&e.onWarning.call(null,VT(e,t))}var wT={YAML:function(e,t,n){var r,a,i;e.version!==null&&ve(e,"duplication of %YAML directive"),n.length!==1&&ve(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ve(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ve(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&xd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ve(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],qT.test(r)||ve(e,"ill-formed tag handle (first argument) of the TAG directive"),di.call(e.tagMap,r)&&ve(e,'there is a previously declared suffix for "'+r+'" tag handle'),zT.test(a)||ve(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function ci(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Qt.repeat(` +`,t-1))}function XF(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Wn(p)||bs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&bs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Wn(a)||n&&bs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wn(r))break}else{if(e.position===e.lineStart&&Sd(e)||n&&bs(p))break;if(ea(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,Gt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(ci(e,i,o,!1),Mh(e,e.line-u),i=o=e.position,s=!1),Vi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ci(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function QF(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ci(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ea(n)?(ci(e,r,a,!0),Mh(e,Gt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&Sd(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function eI(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ci(e,n,e.position,!0),e.position++,!0;if(s===92){if(ci(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ea(s))Gt(e,!1,t);else if(s<256&&WT[s])e.result+=GT[s],e.position++;else if((o=KF(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=$F(s))>=0?i=(i<<4)+o:ve(e,"expected hexadecimal character");e.result+=ZF(i),e.position++}else ve(e,"unknown escape sequence");n=r=e.position}else ea(s)?(ci(e,n,r,!0),Mh(e,Gt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Sd(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function tI(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wn(l)&&(d=m=!0,e.position++,Gt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,xs(e,t,bd,!1,!0),b=e.tag,h=e.result,Gt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),Gt(e,!0,t),xs(e,t,bd,!1,!0),f=e.result),p?ys(e,s,g,b,h,f,r,a,i):d?s.push(ys(e,null,g,b,h,f,r,a,i)):s.push(h),Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ve(e,"unexpected end of the stream within a flow collection")}function nI(e,t){var n,r,a=Sh,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Sh===a?a=d===43?TT:zF:ve(e,"repeat of a chomping mode identifier");else if((c=YF(d))>=0)c===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Vi(d)){do d=e.input.charCodeAt(++e.position);while(Vi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ea(d)&&d!==0)}for(;d!==0;){for(Lh(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ea(d)){u++;continue}if(e.lineIndentt)&&u!==0)xe(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),xs(e,t,xd,!0,a)&&(b?g=e.result:h=e.result),b||(ys(e,d,m,p,g,h,o,s,u),p=g=h=null),Gt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)xe(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&xe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):xe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function uI(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Gt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&xe(e,"directive name must not be less than one character in length");o!==0;){for(;Vi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!na(o));break}if(na(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Lh(e),mi.call(AT,r)?AT[r](e,r,a):vd(e,'unknown document directive "'+r+'"')}if(Gt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Gt(e,!0,-1)):i&&xe(e,"directives end mark is expected"),xs(e,e.lineIndent-1,xd,!1,!0),Gt(e,!0,-1),e.checkLineBreaks&&VF.test(e.input.slice(t,e.position))&&vd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Cd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Gt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=YT(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),xs(e,t,yd,!0,a)&&(b?g=e.result:h=e.result),b||(ys(e,d,m,p,g,h,o,s,u),p=g=h=null),Gt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function sI(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Gt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;Vi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ea(o));break}if(ea(o))break;for(n=e.position;o!==0&&!Wn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Lh(e),di.call(wT,r)?wT[r](e,r,a):xd(e,'unknown document directive "'+r+'"')}if(Gt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Gt(e,!0,-1)):i&&ve(e,"directives end mark is expected"),xs(e,e.lineIndent-1,yd,!1,!0),Gt(e,!0,-1),e.checkLineBreaks&&GF.test(e.input.slice(t,e.position))&&xd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Sd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Gt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=$T(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function aS(e){var t=/^\n* /;return t.test(e)}var iS=1,Ah=2,oS=3,sS=4,hs=5;function NI(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=BI(Yu(e,0))&&OI(Yu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Yu(e,u),!Qu(l))return hs;h=h&&PT(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Yu(e,u),l===Ju)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Qu(l))return hs;h=h&&PT(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?iS:i===Xu?hs:Ah:n>9&&aS(e)?hs:o?i===Xu?hs:Ah:m?sS:oS}function jI(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Xu?'""':"''";if(!e.noCompatMode&&(LI.indexOf(t)!==-1||MI.test(t)))return e.quotingType===Xu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return II(e,l)}switch(NI(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case iS:return t;case Ah:return"'"+t.replace(/'/g,"''")+"'";case oS:return"|"+_T(t,e.indent)+RT(LT(t,i));case sS:return">"+_T(t,e.indent)+RT(LT(UI(t,o),i));case hs:return'"'+HI(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function _T(e,t){var n=aS(e)?String(t):"",r=e[e.length-1]===` +`+Qt.repeat(" ",e.indent*t)}function FI(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function nS(e){var t=/^\n* /;return t.test(e)}var rS=1,Ah=2,aS=3,iS=4,hs=5;function OI(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=II(Ku(e,0))&&BI(Ku(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Ku(e,u),!Xu(l))return hs;h=h&<(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Ku(e,u),l===Zu)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Xu(l))return hs;h=h&<(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?rS:i===Ju?hs:Ah:n>9&&nS(e)?hs:o?i===Ju?hs:Ah:m?iS:aS}function NI(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Ju?'""':"''";if(!e.noCompatMode&&(DI.indexOf(t)!==-1||LI.test(t)))return e.quotingType===Ju?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return FI(e,l)}switch(OI(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case rS:return t;case Ah:return"'"+t.replace(/'/g,"''")+"'";case aS:return"|"+MT(t,e.indent)+PT(kT(t,i));case iS:return">"+MT(t,e.indent)+PT(kT(jI(t,o),i));case hs:return'"'+UI(t)+'"';default:throw new zn("impossible error: invalid scalar style")}}()}function MT(e,t){var n=nS(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function RT(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function UI(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,FT(e.slice(0,l),t)}(),a=e[0]===` +`}function PT(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function jI(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,_T(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+FT(u,t),a=i}return r}function FT(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+_T(u,t),a=i}return r}function _T(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function HI(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Yu(e,a),r=En[n],!r&&Qu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||_I(n);return t}function qI(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Ea(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function IT(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Ea(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Eh(e,t)),e.dump&&Ju===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function zI(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ea(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function WI(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Ju===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Eh(e,t)),Ea(e,t+1,c,!0,d)&&(e.dump&&Ju===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function BT(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ea(e,t,n,r,a,i,o){e.tag=null,e.dump=n,BT(e,n,!1)||BT(e,n,!0);var s=JT.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(WI(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(zI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?IT(e,t-1,e.dump,a):IT(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(qI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&jI(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function GI(e,t){var n=[],r=[],a,i;for(kh(e,n,r),a=0,i=r.length;ac.selected),[r,a]=z(!1),i=we(null),[o,s]=z(uS),[u,l]=z(0);return gu(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,T=g+d.height;if(v>m.clientHeight-T){let S=Math.min(y,v);l(m.clientHeight-g-S-h)}else l(0);s(Math.max(uS,y))}},[i.current,r,t]),Y(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(cS,{item:n,isDefault:!0}),Hv]}),x(ZI,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function ZI(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=we(null);return Y(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(cS,{item:o,onClick:e.onClick},o.value))})}function cS(e){let t=e.item,{t:n}=ie();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:ss}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}function dS(e){let{t}=ie(),{translationServiceItems:n,translationServiceOptions:r}=eB(e),a=he(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(mS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(JI,{...e,currentTranslationService:a})]}):null}function mS(e){let{t}=ie(),n=he(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=_r(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(lS,{className:"translate-service",items:n}):x(ui,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function JI({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=ie(),u=QI(e,o),l=XI(e,o),c=ke((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=he(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Et,{children:d.map(({label:m,items:p},g)=>x(mS,{label:m,items:p,ctx:e},"field-"+g))})}function XI(e,t){return he(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function QI(e,t){let{lang:n}=ie();return he(()=>{let a=T2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Cr,mp,e,n,t])}function eB({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=ie(),d=he(()=>t?v2(t,"translationService",c):[],[t,c]),m=ke(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=he(()=>{let g=Ya(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=C2(f,e,g,l,!0),v=(f.id,void 0);f.id.startsWith("custom-ai")&&(v=void 0),f.id.startsWith("mock")&&(v="");let T=wi.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:T,isShowGoSetting:!f.ok&&!T}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:void 0,onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function pS(e){let t;try{t=new URL(e)}catch{return!1}let n=Z2(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(tB(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function tB(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function gS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function fS(e){let{t}=ie(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=nB(e),[o,s]=z(()=>a?"excludeMatches":"matches"),u=he(()=>r||a||!1,[r,a]),l=ke(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(ui,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function nB({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=he(()=>new URL(e||""),[e]),t.config&&e&&pS(e)){c=gS(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>ze(e,v)),m=!!y.find(v=>ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=ke(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(S=>S.match!==f),T=!1;v.length!==y.length&&(T=!0),T&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=ke((f,y)=>{if(f==="default"){s(S=>{let E={...S.translationUrlPattern};return{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,matches:Rh(e,E.matches),excludeMatches:Rh(e,E.excludeMatches)}}}),h();return}let v=f,T=v==="matches"?"excludeMatches":"matches";l&&s(S=>{let E={...S.translationUrlPattern};return E[T]=Rh(e,E[T]),E[v]=u0(y,E[v]),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,...E}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function Rh(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!ze(e,n)):t):[]}var Fh={};function pi(e){let t=wd(e)||{};Fh[e.sourceUrl+"_"+e.to]={...t,...e}}function wd(e){return Fh[e.sourceUrl+"_"+e.to]}async function hS(e,t){let n=location.href,r=Object.values(Fh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ve().any,platform:ya(),images:[],version:Wt()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=N0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Za(!1,o)}return a}async function bS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await $a(l,"web"),l.json()))}var el={width:94,height:80};function yS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?yS(e.parentElement,t+1):e}function vs(e,t,n,r){let a=De.bind(null,e.config.interfaceLanguage),i=yS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=el.width+"px",c.style.height=el.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-el.width)/2+"px",c.style.top=l.top-u.top+(l.height-el.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-el.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function UI(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Ku(e,a),r=wn[n],!r&&Xu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||PI(n);return t}function HI(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&wa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function RT(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Eh(e,t)),e.dump&&Zu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function qI(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function zI(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Zu===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Eh(e,t)),wa(e,t+1,c,!0,d)&&(e.dump&&Zu===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function FT(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function wa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,FT(e,n,!1)||FT(e,n,!0);var s=YT.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(zI(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(qI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?RT(e,t-1,e.dump,a):RT(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(HI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&NI(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new zn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function WI(e,t){var n=[],r=[],a,i;for(kh(e,n,r),a=0,i=r.length;ac.selected),[r,a]=z(!1),i=we(null),[o,s]=z(oS),[u,l]=z(0);return pu(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,T=g+d.height;if(v>m.clientHeight-T){let S=Math.min(y,v);l(m.clientHeight-g-S-h)}else l(0);s(Math.max(oS,y))}},[i.current,r,t]),Y(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(uS,{item:n,isDefault:!0}),jv]}),x(YI,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function YI(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=we(null);return Y(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(uS,{item:o,onClick:e.onClick},o.value))})}function uS(e){let t=e.item,{t:n}=ie();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:ss}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}function lS(e){let{t}=ie(),{translationServiceItems:n,translationServiceOptions:r}=QI(e),a=he(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(cS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(ZI,{...e,currentTranslationService:a})]}):null}function cS(e){let{t}=ie(),n=he(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=ya(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(sS,{className:"translate-service",items:n}):x(si,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function ZI({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=ie(),u=XI(e,o),l=JI(e,o),c=ke((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=he(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Et,{children:d.map(({label:m,items:p},g)=>x(cS,{label:m,items:p,ctx:e},"field-"+g))})}function JI(e,t){return he(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function XI(e,t){let{lang:n}=ie();return he(()=>{let a=x2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Cr,mp,e,n,t])}function QI({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=ie(),d=he(()=>t?y2(t,"translationService",c):[],[t,c]),m=ke(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=he(()=>{let g=Ka(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=T2(f,e,g,l,!0),v=(f.id,void 0);f.id.startsWith("custom-ai")&&(v=void 0),f.id.startsWith("mock")&&(v="");let T=Ci.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:T,isShowGoSetting:!f.ok&&!T}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:void 0,onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function dS(e){let t;try{t=new URL(e)}catch{return!1}let n=K2(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(eB(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function eB(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function mS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function pS(e){let{t}=ie(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=tB(e),[o,s]=z(()=>a?"excludeMatches":"matches"),u=he(()=>r||a||!1,[r,a]),l=ke(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(si,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function tB({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=he(()=>new URL(e||""),[e]),t.config&&e&&dS(e)){c=mS(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>We(e,v)),m=!!y.find(v=>We(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=ke(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(S=>S.match!==f),T=!1;v.length!==y.length&&(T=!0),T&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=ke((f,y)=>{if(f==="default"){s(S=>{let E={...S.translationUrlPattern};return{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,matches:Rh(e,E.matches),excludeMatches:Rh(e,E.excludeMatches)}}}),h();return}let v=f,T=v==="matches"?"excludeMatches":"matches";l&&s(S=>{let E={...S.translationUrlPattern};return E[T]=Rh(e,E[T]),E[v]=s0(y,E[v]),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,...E}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function Rh(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!We(e,n)):t):[]}var Fh={};function mi(e){let t=Cd(e)||{};Fh[e.sourceUrl+"_"+e.to]={...t,...e}}function Cd(e){return Fh[e.sourceUrl+"_"+e.to]}async function gS(e,t){let n=location.href,r=Object.values(Fh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ve().any,platform:ha(),images:[],version:Wt()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=O0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=Ya(!1,o)}return a}async function fS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Va(l,"web"),l.json()))}var Qu={width:94,height:80};function hS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?hS(e.parentElement,t+1):e}function vs(e,t,n,r){let a=De.bind(null,e.config.interfaceLanguage),i=hS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Qu.width+"px",c.style.height=Qu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Qu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Qu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Qu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let d=a("translateFail");r==="gif_not_supported"&&(d=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6353,7 +6353,7 @@ ${s}`)}),ii(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s= - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function Ih(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=De.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var tl=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};var Ed=[],xS=[];async function Oh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(Nh()||Ed.includes(t))return"";if(Ed.length>=s)return new Promise((l,c)=>{xS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});Ed.push(t);try{let u=await oB(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await vS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw A.error("err",u),u}finally{Ed.shift(),(async()=>{let u=xS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Oh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function rB(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${rt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${TS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await V({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function aB(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function iB(e,t,n){let r=await aB(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):V({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await gb(a)})}async function oB(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=sB(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await bc(u);pi({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await rB(e,r,l,n.type);if(c.objectKey&&pi({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await iB(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return X()?d=await fetch(Bh()+"/trigger",{method:"POST",body:Lc(u),headers:{token:e.user?.token||""}}).then(async m=>(await $a(m,"manga"),m.json())):d=await V({url:Bh()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),pi({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function vS(e,t,n,r,a){let i=Nh();if(i)return;dr("Translating",i);let o=await V({url:Bh()+`/${t}/task-state?comicHash=${n}&domain=${TS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){A.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await a9(t,r.queryIntervalTime||100),vS(e,t,n,r,a))}function Bh(){return rt+"comics"}function sB(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=F0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function TS(e){return e.replaceAll(".","_")}function Ts(e,t){return X(t)?!1:uB(e.config,e.isPro)}function uB(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function Ad(e){let t=ya();return!(e?.platforms&&!e.platforms.includes(t))}function kd(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function SS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var kt,jh,Ld,rl,Ht=!1;function Nh(){return Ht}var CS=!1;function AS(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ht=!1,!CS&&kt.injectedCss&&(Sn(document,`${kt.injectedCss}`,L+"-image-injected-css"),CS=!0);let t=!1,n=Pn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=LS(kt);for(let i of a){if(Ht)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await st(20),await r(i,t))}},100);if(Fe("translate_manga",[{name:"translate_manga"}],e),n(),jh=new MutationObserver(a=>{n()}),jh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;rl=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Aa(e,o.target),rl?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}Ld=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(rl?.unobserve(a),rl?.observe(a)):await Aa(e,a)))}}async function Aa(e,t,n,r){let a=e.rule.imageRule.type||"common",i=fo();if(n&&(Ht=!1),Ht||bB(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=cB(e,t);u||(s=vs(e,t,"translating")),n&&Fe("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await dB(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await lB(e,t,o,a,s)),Ht&&!n)return;l?(t.translationStatus="success",u||vs(e,t,"success")):(u||vs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&dr("Error",Ht))}catch(l){if(Ht&&!n||(t.translationStatus="error",a=="manga"&&dr("Error",Ht),hB(e,l),u))return;if(l instanceof tl)return vs(e,t,"error",l.type);vs(e,t,"error")}finally{n&&dr(i,Ht),s?.remove()}}function kS(){if(!kt)return;Ht=!0,jh?.disconnect(),Ld?.disconnect(),rl?.disconnect();let e=LS(kt);for(let t of e)gi(t)}function gi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&gi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function lB(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await mB(l,c,t.cloneNode(!0))}else o=await MS(t);if(Ht)return;if(!o||o.size<6*1e4){Ld?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await fp(o);return await Uh(e,t,s)?!0:s?DS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function DS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await gB(n)||n,u=r||a;try{if(Ht)return;dr("Translating",Ht),Ih(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};pi(l);let d=await Oh(e,u,s,a,i,m=>{Ih(e,o,m)});return d?(l.targetUrl=d,pi(l),await PS(kt,t,d),dr("Translated",Ht),!0):!1}catch(l){if(pi({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ht)return;throw l}}async function Uh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=wd(r);return a&&a?.targetUrl?(await PS(kt,t,a.targetUrl||""),dr("Translated",Ht),!0):!1}function cB(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=wd(r);return a&&a?.targetUrl}return!1}async function dB(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!fB(a,i)){Ld?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await Uh(e,t,o))return!0;let s=null;if(dr("Translating",Ht),Ht)return;if(i.startsWith("blob:")){let d=await fetch(i);await $a(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await pB(i);else{let d=await V({url:i,responseType:"base64"});s=await Mc(d)}if(Ht)return;if(await SS(s))throw new tl("GIFs not supported","gif_not_supported");let l=await fp(s);if(!o&&(o=l,await Uh(e,t,o)))return!0;if(!o)return!1;return DS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function LS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function MS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function mB(e,t,n){return new Promise((r,a)=>{V({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await MS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function PS(e,t,n){try{return await wS(e,t,n)}catch{let a=await yB(n);return wS(e,t,a)}}async function wS(e,t,n){return new Promise((a,i)=>{if(Ht)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function pB(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function gB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function fB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!a0(e.inValidSrcRegex,t):!0}var Dd=0,nl=0;function hB(e,t){if(Dd!=0){nl++;return}if(t.message.indexOf("quota exceeded")>0){ES(e,t);return}nl++,Dd=setTimeout(()=>{if(nl<(kt.errorTimes||3)){Dd=0,nl=0;return}ES(e,t),nl=0,Dd=0},kt.errorInterval||3e3)}function ES(e,t){let r=new j("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(hn,{detail:r}))}function Md(e){return e.classList.contains("imt-img")||e.hasTranslate}function bB(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function yB(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var al=null,Hh="showImagePricingModal";function _S(e){let t=we(null),n=we(!1),[r,a]=z(null),[i,o]=z({}),[s,u]=z(0);Y(()=>{let d=e.rule.imageRule,m=d?.toolsMinHeight||100,p=d?.toolsMinWidth||100,g=null,h=f=>{f.isHoverMarked||(f.isHoverMarked=!0,!kd(f.src)&&(f.addEventListener("mouseover",()=>{g&&clearTimeout(g),!f.closest('[contenteditable="true"]')&&(f.width{a(f)},d.toolsDelayTime):a(f)))}),f.addEventListener("mouseout",()=>{g&&clearTimeout(g),setTimeout(()=>{n.current||a(null)},10)})))};al&&al.disconnect();let b=Pn(()=>{document.querySelectorAll("img").forEach(f=>{h(f)})},200);return al=new MutationObserver(()=>{b()}),al.observe(document,{subtree:!0,childList:!0}),()=>{al?.disconnect()}},[n,e]),Y(()=>{let d=document.querySelector("#monica-content-root");if(!r){o({});return}let m=()=>{let p=r.getBoundingClientRect(),g=d?56:16,h=p.top+p.height-50,b=p.left+p.width-30-g;o({top:h+"px",left:b+"px"})};return m(),globalThis.addEventListener("wheel",m),()=>{globalThis.removeEventListener("wheel",m)}},[r]),Y(()=>{if(!r)return;let d=new IntersectionObserver((m,p)=>{m.forEach(g=>{g.isIntersecting||a(null)})});return d.observe(r),()=>{d.disconnect()}},[r]),Y(()=>{t.current&&(t.current.addEventListener("mouseover",()=>{n.current=!0}),t.current.addEventListener("mouseout",()=>{n.current=!1}))},[t]);let l=ke(async d=>{if(d.translationStatus==="translating")return;if(Md(d)){gi(d),u(p=>p+1);return}if(setTimeout(()=>{u(p=>p+1)},100),!e.isPro){let p=await mt.get(dt,null);if(ft(p)){e.user=p,e.isPro=!0,await Aa(e,d,!0,"image_tools"),u(g=>g+1);return}il("image_tools");return}await Aa(e,d,!0,"image_tools"),u(p=>p+1)},[e]),c=he(()=>{if(!r)return null;if(r.translationStatus=="translating")return"translating";if(r.translationStatus=="success"||r.classList.contains("imt-img"))return"success"},[r,s]);return{hoveImage:r,hoveImageStyles:i,containerRef:t,activeRef:n,imageStatus:c,handleTranslate:l}}function RS(e){let[t,n]=z(!1),[r,a]=z("");return Y(()=>{if(!e)return;let i=o=>{let u=JSON.parse(o.detail);Fe("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:u.trigger}}],e),u.trigger&&a(u.trigger),n(!0)};return document.addEventListener(Hh,i),()=>{document.removeEventListener(Hh,i)}},[n,e]),{trigger:r,showPricingModal:t,setShowPricingModal:n}}function FS(e){let[t,n]=z(!0),r=ke(async a=>{if(a==="UntilNext"){n(!1);return}let i=await cn(),o=i.generalRule?.["imageRule.add"]||{};if(a=="AlwaysClose")await zr({...i,generalRule:{...i.generalRule,"imageRule.add":{...i.generalRule?.["imageRule.add"],enableTools:!1}}});else if(a=="CurrentWebsite"){let s=o.blockToolsUrls||[];await zr({...i,generalRule:{...i.generalRule,"imageRule.add":{...o,blockToolsUrls:[...s,globalThis.location.hostname]}}})}n(!1)},[]);return Y(()=>{let a=ze(e.url,e.rule.imageRule.blockToolsUrls);(!e.rule.imageRule.enableTools||a)&&n(!1)},[e]),{enable:t,handleCloseConfirm:r}}function il(e){document.dispatchEvent(new CustomEvent(Hh,{detail:JSON.stringify({trigger:e})}))}function Pd(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!za(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var xB=new AbortController,{signal:vB}=xB,sl=0,ul=0,$i=!1,fi,IS=0,ka=[];function Gh(e){TB(),Pd().forEach(t=>{_d(e,t)})}function _d(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&AB(n,t);function s(){o=!o,o?(A.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,_d(n,t)):(A.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,_d(n,t))}t.document.addEventListener(Fs,s),ka.push(()=>{t.document.removeEventListener(Fs,s)});let u=Kn(m=>{if(!(Math.abs(m.clientX-sl)+Math.abs(m.clientY-ul)<=3)&&(sl=m.clientX,ul=m.clientY,$i&&!fi&&Wh(n,!1,t),o||$i&&!fi)){let p=jS(n.rule,t);if(p){if(zh(p))return;Rd(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;zh(p)||(Rd(n,!0,t),Wh(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=jn.getPressedKeyCodes();if(g.length>1&&jn[p]&&(IS=Date.now(),$i=!1),g.length===1&&jn[p]){let h=Date.now();$i=!0,fi&&clearTimeout(fi),fi=setTimeout(()=>{let b=IS-h;b>0&&b<=i?$i=!1:l(m),fi=void 0},i)}};if(ka.push(()=>{fi&&clearTimeout(fi)}),a)return;ol("mousemove",u,t),ka.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():$i=!1}if(ol("blur",d,t),ka.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=k1;ol("keyup",BS,t),ka.push(()=>{t.removeEventListener("keyup",BS)}),p.includes(m)?jn("*",{scope:"mouseHover",element:t.document},c):jn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),jn.setScope("mouseHover"),ka.push(()=>{jn.deleteScope("mouseHover")})}}function TB(){try{ka.forEach(e=>e())}catch{}ka=[],jn.setScope("all")}function BS(e){$i=!1}function ol(e,t,n=window){return n.addEventListener(e,t,{signal:vB})}function Rd(e,t,n,r){if(r=r||jS(e.rule,n),!r){A.debug("can not find selection part!");return}if(CB(e,r,t))return;if(zh(r)){A.debug("exclude dom");return}Av(e,r);let i=Vu();i&&(i.setupMouseHoverListener=_d);let o=sn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=Kf(i,e);Sa({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{i0(n.document.documentElement)!==l.state.translationMode&&Vr(n.document.documentElement,l.state.translationMode),Hi(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();ot(m1,p);let g={translation_service:u?.translationService||""};Fe("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function jS(e,t){return SB(sl,ul,e,t)}function SB(e,t,n,r){let a=sy(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=uy(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:NS(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){A.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{EB(e,a)}),!0}function wB(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(L+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${L}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function EB(e,t){let n=Vu();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Fu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function qh(e){return!!(e.host&&e.mode)}function OS(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||qh(n))return e;for(;n&&n.nodeName!=="BODY"&&!qh(n)&&jp(n,t);){let r=n.parentNode;if(r&&qh(r))break;n=r}return n}function NS(e,t){return e.nodeType===Node.TEXT_NODE||jp(e,t)?OS(e,t):e}function US(e,t,n){sl=t.clientX,ul=t.clientY,Rd(e,!0,n),Wh(e,!0,n)}async function Wh(e,t,n,r){if(!Ts(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=ly(sl,ul,e.rule,n);if(!a||kd(a.src)||a.translationStatus==="translating")return;let i=Md(a);if(i&&!t||i&&!r)return;if(i){gi(a);return}if(!await Ks(e)){il("image_mouse_hover");return}Aa(e,a,!0,"image_mouse_hover")}function AB(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Rd(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};ol("mousedown",i,t),ol("mouseup",o,t),ka.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var An=!1,Vh,HS=!1,Fd=null,kB=` + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function Ih(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=De.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var el=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};var wd=[],bS=[];async function Oh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(Nh()||wd.includes(t))return"";if(wd.length>=s)return new Promise((l,c)=>{bS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});wd.push(t);try{let u=await iB(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await yS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw A.error("err",u),u}finally{wd.shift(),(async()=>{let u=bS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Oh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function nB(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${rt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${xS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await V({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function rB(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function aB(e,t,n){let r=await rB(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):V({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await mb(a)})}async function iB(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=oB(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await hc(u);mi({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await nB(e,r,l,n.type);if(c.objectKey&&mi({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await aB(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return X()?d=await fetch(Bh()+"/trigger",{method:"POST",body:Dc(u),headers:{token:e.user?.token||""}}).then(async m=>(await Va(m,"manga"),m.json())):d=await V({url:Bh()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),mi({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function yS(e,t,n,r,a){let i=Nh();if(i)return;dr("Translating",i);let o=await V({url:Bh()+`/${t}/task-state?comicHash=${n}&domain=${xS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){A.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await n9(t,r.queryIntervalTime||100),yS(e,t,n,r,a))}function Bh(){return rt+"comics"}function oB(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=R0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function xS(e){return e.replaceAll(".","_")}function Ts(e,t){return X(t)?!1:sB(e.config,e.isPro)}function sB(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function Ed(e){let t=ha();return!(e?.platforms&&!e.platforms.includes(t))}function Ad(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function vS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var kt,jh,Dd,nl,Ht=!1;function Nh(){return Ht}var TS=!1;function wS(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;Ht=!1,!TS&&kt.injectedCss&&(Tn(document,`${kt.injectedCss}`,L+"-image-injected-css"),TS=!0);let t=!1,n=Mn(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=kS(kt);for(let i of a){if(Ht)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await ot(20),await r(i,t))}},100);if(Re("translate_manga",[{name:"translate_manga"}],e),n(),jh=new MutationObserver(a=>{n()}),jh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;nl=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Ea(e,o.target),nl?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}Dd=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(nl?.unobserve(a),nl?.observe(a)):await Ea(e,a)))}}async function Ea(e,t,n,r){let a=e.rule.imageRule.type||"common",i=fo();if(n&&(Ht=!1),Ht||hB(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=lB(e,t);u||(s=vs(e,t,"translating")),n&&Re("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await cB(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await uB(e,t,o,a,s)),Ht&&!n)return;l?(t.translationStatus="success",u||vs(e,t,"success")):(u||vs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&dr("Error",Ht))}catch(l){if(Ht&&!n||(t.translationStatus="error",a=="manga"&&dr("Error",Ht),fB(e,l),u))return;if(l instanceof el)return vs(e,t,"error",l.type);vs(e,t,"error")}finally{n&&dr(i,Ht),s?.remove()}}function ES(){if(!kt)return;Ht=!0,jh?.disconnect(),Dd?.disconnect(),nl?.disconnect();let e=kS(kt);for(let t of e)pi(t)}function pi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&pi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function uB(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await dB(l,c,t.cloneNode(!0))}else o=await DS(t);if(Ht)return;if(!o||o.size<6*1e4){Dd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await fp(o);return await Uh(e,t,s)?!0:s?AS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function AS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await pB(n)||n,u=r||a;try{if(Ht)return;dr("Translating",Ht),Ih(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};mi(l);let d=await Oh(e,u,s,a,i,m=>{Ih(e,o,m)});return d?(l.targetUrl=d,mi(l),await LS(kt,t,d),dr("Translated",Ht),!0):!1}catch(l){if(mi({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ht)return;throw l}}async function Uh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Cd(r);return a&&a?.targetUrl?(await LS(kt,t,a.targetUrl||""),dr("Translated",Ht),!0):!1}function lB(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Cd(r);return a&&a?.targetUrl}return!1}async function cB(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!gB(a,i)){Dd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await Uh(e,t,o))return!0;let s=null;if(dr("Translating",Ht),Ht)return;if(i.startsWith("blob:")){let d=await fetch(i);await Va(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await mB(i);else{let d=await V({url:i,responseType:"base64"});s=await Lc(d)}if(Ht)return;if(await vS(s))throw new el("GIFs not supported","gif_not_supported");let l=await fp(s);if(!o&&(o=l,await Uh(e,t,o)))return!0;if(!o)return!1;return AS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function kS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function DS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function dB(e,t,n){return new Promise((r,a)=>{V({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await DS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function LS(e,t,n){try{return await SS(e,t,n)}catch{let a=await bB(n);return SS(e,t,a)}}async function SS(e,t,n){return new Promise((a,i)=>{if(Ht)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function mB(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function pB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function gB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!r0(e.inValidSrcRegex,t):!0}var kd=0,tl=0;function fB(e,t){if(kd!=0){tl++;return}if(t.message.indexOf("quota exceeded")>0){CS(e,t);return}tl++,kd=setTimeout(()=>{if(tl<(kt.errorTimes||3)){kd=0,tl=0;return}CS(e,t),tl=0,kd=0},kt.errorInterval||3e3)}function CS(e,t){let r=new j("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(Un,{detail:r}))}function Ld(e){return e.classList.contains("imt-img")||e.hasTranslate}function hB(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function bB(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var rl=null,Hh="showImagePricingModal";function MS(e){let t=we(null),n=we(!1),[r,a]=z(null),[i,o]=z({}),[s,u]=z(0);Y(()=>{let d=e.rule.imageRule,m=d?.toolsMinHeight||100,p=d?.toolsMinWidth||100,g=null,h=f=>{f.isHoverMarked||(f.isHoverMarked=!0,!Ad(f.src)&&(f.addEventListener("mouseover",()=>{g&&clearTimeout(g),!f.closest('[contenteditable="true"]')&&(f.width{a(f)},d.toolsDelayTime):a(f)))}),f.addEventListener("mouseout",()=>{g&&clearTimeout(g),setTimeout(()=>{n.current||a(null)},10)})))};rl&&rl.disconnect();let b=Mn(()=>{document.querySelectorAll("img").forEach(f=>{h(f)})},200);return rl=new MutationObserver(()=>{b()}),rl.observe(document,{subtree:!0,childList:!0}),()=>{rl?.disconnect()}},[n,e]),Y(()=>{let d=document.querySelector("#monica-content-root");if(!r){o({});return}let m=()=>{let p=r.getBoundingClientRect(),g=d?56:16,h=p.top+p.height-50,b=p.left+p.width-30-g;o({top:h+"px",left:b+"px"})};return m(),globalThis.addEventListener("wheel",m),()=>{globalThis.removeEventListener("wheel",m)}},[r]),Y(()=>{if(!r)return;let d=new IntersectionObserver((m,p)=>{m.forEach(g=>{g.isIntersecting||a(null)})});return d.observe(r),()=>{d.disconnect()}},[r]),Y(()=>{t.current&&(t.current.addEventListener("mouseover",()=>{n.current=!0}),t.current.addEventListener("mouseout",()=>{n.current=!1}))},[t]);let l=ke(async d=>{if(d.translationStatus==="translating")return;if(Ld(d)){pi(d),u(p=>p+1);return}if(setTimeout(()=>{u(p=>p+1)},100),!e.isPro){let p=await dt.get(ct,null);if(ft(p)){e.user=p,e.isPro=!0,await Ea(e,d,!0,"image_tools"),u(g=>g+1);return}al("image_tools");return}await Ea(e,d,!0,"image_tools"),u(p=>p+1)},[e]),c=he(()=>{if(!r)return null;if(r.translationStatus=="translating")return"translating";if(r.translationStatus=="success"||r.classList.contains("imt-img"))return"success"},[r,s]);return{hoveImage:r,hoveImageStyles:i,containerRef:t,activeRef:n,imageStatus:c,handleTranslate:l}}function PS(e){let[t,n]=z(!1),[r,a]=z("");return Y(()=>{if(!e)return;let i=o=>{let u=JSON.parse(o.detail);Re("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:u.trigger}}],e),u.trigger&&a(u.trigger),n(!0)};return document.addEventListener(Hh,i),()=>{document.removeEventListener(Hh,i)}},[n,e]),{trigger:r,showPricingModal:t,setShowPricingModal:n}}function _S(e){let[t,n]=z(!0),r=ke(async a=>{if(a==="UntilNext"){n(!1);return}let i=await cn(),o=i.generalRule?.["imageRule.add"]||{};if(a=="AlwaysClose")await qr({...i,generalRule:{...i.generalRule,"imageRule.add":{...i.generalRule?.["imageRule.add"],enableTools:!1}}});else if(a=="CurrentWebsite"){let s=o.blockToolsUrls||[];await qr({...i,generalRule:{...i.generalRule,"imageRule.add":{...o,blockToolsUrls:[...s,globalThis.location.hostname]}}})}n(!1)},[]);return Y(()=>{let a=We(e.url,e.rule.imageRule.blockToolsUrls);(!e.rule.imageRule.enableTools||a)&&n(!1)},[e]),{enable:t,handleCloseConfirm:r}}function al(e){document.dispatchEvent(new CustomEvent(Hh,{detail:JSON.stringify({trigger:e})}))}function Md(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!qa(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var yB=new AbortController,{signal:xB}=yB,ol=0,sl=0,$i=!1,gi,RS=0,Aa=[];function Gh(e){vB(),Md().forEach(t=>{Pd(e,t)})}function Pd(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&EB(n,t);function s(){o=!o,o?(A.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Pd(n,t)):(A.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Pd(n,t))}t.document.addEventListener(Fs,s),Aa.push(()=>{t.document.removeEventListener(Fs,s)});let u=Kn(m=>{if(!(Math.abs(m.clientX-ol)+Math.abs(m.clientY-sl)<=3)&&(ol=m.clientX,sl=m.clientY,$i&&!gi&&Wh(n,!1,t),o||$i&&!gi)){let p=OS(n.rule,t);if(p){if(zh(p))return;_d(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;zh(p)||(_d(n,!0,t),Wh(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=jn.getPressedKeyCodes();if(g.length>1&&jn[p]&&(RS=Date.now(),$i=!1),g.length===1&&jn[p]){let h=Date.now();$i=!0,gi&&clearTimeout(gi),gi=setTimeout(()=>{let b=RS-h;b>0&&b<=i?$i=!1:l(m),gi=void 0},i)}};if(Aa.push(()=>{gi&&clearTimeout(gi)}),a)return;il("mousemove",u,t),Aa.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():$i=!1}if(il("blur",d,t),Aa.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=E1;il("keyup",FS,t),Aa.push(()=>{t.removeEventListener("keyup",FS)}),p.includes(m)?jn("*",{scope:"mouseHover",element:t.document},c):jn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),jn.setScope("mouseHover"),Aa.push(()=>{jn.deleteScope("mouseHover")})}}function vB(){try{Aa.forEach(e=>e())}catch{}Aa=[],jn.setScope("all")}function FS(e){$i=!1}function il(e,t,n=window){return n.addEventListener(e,t,{signal:xB})}function _d(e,t,n,r){if(r=r||OS(e.rule,n),!r){A.debug("can not find selection part!");return}if(SB(e,r,t))return;if(zh(r)){A.debug("exclude dom");return}wv(e,r);let i=Gu();i&&(i.setupMouseHoverListener=Pd);let o=sn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=Kf(i,e);Ta({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{a0(n.document.documentElement)!==l.state.translationMode&&Gr(n.document.documentElement,l.state.translationMode),Hi(u,c,!0,"hover").then(m=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,m&&!s){s=!0;let p=Date.now();mt(c1,p);let g={translation_service:u?.translationService||""};Re("mouse_hover_translate",[{name:"mouse_hover_translate",params:g}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function OS(e,t){return TB(ol,sl,e,t)}function TB(e,t,n,r){let a=iy(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=oy(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:BS(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){A.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{wB(e,a)}),!0}function CB(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(L+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${L}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function wB(e,t){let n=Gu();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Ru(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function qh(e){return!!(e.host&&e.mode)}function IS(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||qh(n))return e;for(;n&&n.nodeName!=="BODY"&&!qh(n)&&jp(n,t);){let r=n.parentNode;if(r&&qh(r))break;n=r}return n}function BS(e,t){return e.nodeType===Node.TEXT_NODE||jp(e,t)?IS(e,t):e}function NS(e,t,n){ol=t.clientX,sl=t.clientY,_d(e,!0,n),Wh(e,!0,n)}async function Wh(e,t,n,r){if(!Ts(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=sy(ol,sl,e.rule,n);if(!a||Ad(a.src)||a.translationStatus==="translating")return;let i=Ld(a);if(i&&!t||i&&!r)return;if(i){pi(a);return}if(!await $s(e)){al("image_mouse_hover");return}Ea(e,a,!0,"image_mouse_hover")}function EB(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&_d(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};il("mousedown",i,t),il("mouseup",o,t),Aa.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}function AB(){let e=document.querySelector(`#${L}-modal-input-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-modal`);t&&(t.style.display="block")}}function jS(e){let t=`${L}-modal-input-root`,n=`${L}-modal`,r=`${L}-modal-title`,a=`${L}-modal-body`,i=`${L}-modal-footer`,o=document.querySelector(`#${t}`),s,u,l,c;return setTimeout(()=>{AB()},100),new Promise(d=>{let m=d;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let O=s.querySelector(`.${r}`),_=s.querySelector(`.${i}`),I=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${L}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let O=P.attachShadow({mode:"open"}),_=document.createElement("style"),I=be();_.textContent=I.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,O.appendChild(_),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let B=document.createElement("div");B.className=L+"-modal-content notranslate "+L+"-modal-content-in-input",s.appendChild(B);let W=document.createElement("span");W.textContent="\xD7",W.className=L+"-close",B.appendChild(W),u=document.createElement("div"),u.className=r+" notranslate",B.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",B.appendChild(c),l=document.createElement("div"),l.className=i,B.appendChild(l),O.appendChild(s),W.onclick=function(){k(),d("close")},O.addEventListener("click",te=>{te.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=De.bind(null,e.config.interfaceLanguage),g=`
${G0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=On?.createHTML(g)||g,c.innerHTML=On?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:ae+"docs/input/"});h.innerHTML=On?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=Je.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=On?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P{DB(e,t)})}function DB(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){A.debug("exclude url for input");return}if(Fd===!1){A.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;Ve().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(An||Fd===!1)return;let p=Od(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(RB(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&qS(t,o,m.target)&&(s=0,Zh(m,e,t,o))}function d(){Vh=l,t.removeEventListener("keyup",Vh),t.addEventListener("keyup",Vh,!0)}FB(e)}function zS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Id(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var Ss;function Kh(e){let t=e.parentElement;if(!t)return;Ss=document.createElement("div"),Ss.className=L+"-input";let n=`
`;Ss.innerHTML=Un?.createHTML(n)||n,t.appendChild(Ss);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=kB,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Yh(){Ss&&Ss.remove()}async function LB(e,t=window){if(An)return;let r=globalThis.getSelection()?.toString();if(r){Qh(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let v=m.split(" ")[0];v&&v[0]&&(v=v[0].toLowerCase()+v.slice(1)),v.trim()&&u.flatAlias.includes(v)?(p=Id(v,u.codeAlias),d=m.slice(v.length+1)):d=m},y=function(){p="";let v=zS(u),T=m.split(v);if(T.length<2)return;if(d=T[T.length-1],c=T[0],T.length>2){let E=m.lastIndexOf(d),C=m.slice(0,E).lastIndexOf(T[T.length-2]);c=m.slice(0,C+T[T.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let S=m.slice(c.length+1,m.indexOf(d)).trim();if(p=Id(S,u.codeAlias),!p){A.warn("not found alias",S);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(v=>i[v]=[v,...i[v]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;Ve().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;An=!0;let c="",d="",m=jr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=WS(d,u),h=await Ie({text:g,pageLangs:["en"]});A.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;Kh(l),ot(Os,Date.now());try{e.specialAiAssistant=_r(e,e.inputTranslationService,!0);let v=await ea(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});Xh(e),ZS(e,t,l,c+v.text)}catch(v){if(v instanceof j){let T=v.uiConfig(e);e4(T.action)&&(T.action="none"),t.document.dispatchEvent(new CustomEvent(hn,{detail:T}))}}finally{An=!1}}catch(a){throw An=!1,a}finally{An=!1,Yh()}}async function Zh(e,t,n,r){if(!An)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=Id(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=zS(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Id(b,r.codeAlias),!u){A.warn("not found alias",b);return}},a=Od(n.document,t.rule.enableInputDeepActive);if(!a)return;An=!0;let i="",o="",s=jr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=WS(o,r),c=await Ie({text:l,pageLangs:["en"]});A.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!HS){HS=!0;let g=await IB(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(Fd=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await qt(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await qt(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(Fd=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await qt(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await qt(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await qt(h)}}Kh(a),ot(Os,Date.now());try{t.specialAiAssistant=_r(t,t.inputTranslationService,!0);let g=await ea(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});Xh(t),ZS(t,n,a,i+g.text)}catch(g){if(g instanceof j){let h=g.uiConfig(t);e4(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(hn,{detail:h}))}}finally{An=!1}}catch(a){throw An=!1,a}finally{An=!1,Yh()}}function qS(e,t,n){if(!n)return!1;if(Jh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;A.debug("cursorPosition",r,"textLength",a),A.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return A.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=MB(i,n);A.debug("Current text node:",i.textContent),A.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=it()?u[0]||u[1]:u[0];A.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else A.debug("Cursor is not within a text node.")}}return!1}function MB(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function WS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function GS(e,t){let n=t.innerHTML,r=jr(t);return{html:n.replace(r,e),text:e}}function Bd(e,t,n=!1){let r=jr(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function jr(e){return e.value||e.innerText||e.textContent}async function Nr(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function PB(e,t,n){await Nr(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Nr(10)}async function VS(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Nr(10))}async function $S(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Nr(20),(t.value||t.value==="")&&(t.value=e.text)}async function KS(e,t){Jh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Nr(20))}var YS=[PB.bind(null,["plain"])];function Jh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function _B(e,t){if(Jh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function ZS(e,t,n,r){await Nr(50),await _B(t,n),await Nr(50);let a=e.rule.inputConfig,i=GS(r,n);try{await Nr(50),a?.execCommandDeleteEnable&&!Sr()&&jr(n)?.trim()!=""&&(t.document.execCommand("delete"),await Nr(50)),A.debug("clearContent",jr(n))}catch(o){A.error(o)}for(let o of[...YS,$S,KS,VS]){await o(i,n);let s=JS(t);if(!s)return;if(A.debug("setContent",o.name,Bd(i,s),jr(s),i),Bd(i,s))break}}function JS(e){return e.document.activeElement}function Xh(e,t=""){Fe("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function RB(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function FB(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await jt(t,"")||Number(await jt(Os,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{BB()},100),new Promise(d=>{let m=d;if(o){let P=o.shadowRoot;if(!P)return;s=P.querySelector(`.${n}`);let O=s.querySelector(`.${r}`),_=s.querySelector(`.${i}`),I=s.querySelector(`.${a}`)}else{let P=document.createElement("div");P.setAttribute("translate","no"),P.className=`no-translate ${L}-error-modal-input-shadow-root`,P.id=t,P.style.all="initial",P.style.zIndex="2147483647",document.body.appendChild(P);let O=P.attachShadow({mode:"open"}),_=document.createElement("style"),I=be();_.textContent=I.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,O.appendChild(_),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let B=document.createElement("div");B.className=L+"-modal-content notranslate "+L+"-modal-content-in-input",s.appendChild(B);let W=document.createElement("span");W.textContent="\xD7",W.className=L+"-close",B.appendChild(W),u=document.createElement("div"),u.className=r+" notranslate",B.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",B.appendChild(c),l=document.createElement("div"),l.className=i,B.appendChild(l),O.appendChild(s),W.onclick=function(){k(),d("close")},O.addEventListener("click",te=>{te.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=De.bind(null,e.config.interfaceLanguage),g=`
${V0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Un?.createHTML(g)||g,c.innerHTML=Un?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:ae+"docs/input/"});h.innerHTML=Un?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=Je.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=Un?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let P=0;P0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function Qh(e,t,n,r){if(An)return;try{let o=Od(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;An=!0;let u=e.config.inputTargetLanguage,l=await Ie({text:n,pageLangs:["en"]});A.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;Kh(o),ot(Os,Date.now());try{if(e.specialAiAssistant=_r(e,e.inputTranslationService,!0),Xh(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await ea(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await ea(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof j){let m=d.uiConfig(e);e4(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(hn,{detail:m}))}}finally{An=!1}}catch(o){throw An=!1,o}finally{An=!1,Yh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=GS(l,u);try{await Nr(50),c?.execCommandDeleteEnable&&!Sr()&&jr(u)?.trim()!=""&&(s.document.execCommand("delete"),await Nr(50)),A.debug("clearContent",jr(u))}catch(m){A.error(m)}for(let m of[...YS,$S,KS,VS]){await m(d,u);let p=JS(s);if(!p)return;if(A.debug("setContent",m.name,Bd(d,p),jr(p),d),Bd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function e4(e){return e==="retry"||e==="changeService"}var ll=[];function t4(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),ll.push(()=>{document.removeEventListener("click",i)})}function XS(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),ll.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Nd(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),ll.push(()=>{document.removeEventListener("touchstart",r)})}var n4={touchShortcutsOff:()=>{},"multipleClick.2":t4,"multipleClick.3":t4,"multipleClick.4":t4,"slide.left":XS,"slide.right":XS,"fingers.2":Nd,"fingers.3":Nd,"fingers.4":Nd,"fingers.5":Nd};async function eC(e,t=window){try{zB();let n=await cn(),r=E1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=NB(e,n,a.command),o=n4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{qB(a.command,e,t,l)})})}catch(n){A.error(n)}}function NB(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var jB=()=>{r4();let e=new CustomEvent(Tr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},UB=()=>{i4();let e=new CustomEvent(Tr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},HB=()=>{a4();let e=new CustomEvent(Tr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},QS=0,qB=(e,t,n,r)=>{if(!(new Date().getTime()-QS<200)){if(QS=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")jB();else if(e==="touchShortcutsToggleTranslationMask")HB();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")UB();else if(e==="touchShortcutsToggleTranslateTouchElement")US(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Zh(r,t,n,s)}}};function zB(){ll.forEach(e=>{e()}),ll=[]}function tC(e){let{t}=ie(),{ctx:n,setSettings:r}=e,a=WB(e);return $s(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(ui,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Us[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(GB,{...e})}function WB({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=ie(),a=he(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=he(()=>Us.filter(s=>!(s==="Off"||Us.includes(a)&&s==="OtherCustom")),[e,a]);return he(()=>i.map(s=>{let u=r("mouseHoldKey",{key:ms(s)}),l=Us.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function GB(e){let{ctx:t,setSettings:n}=e,{t:r}=ie(),a=t.config.generalRule,i=Object.keys(n4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(ui,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function nC(e){let{isAlwaysTranslateLang:t}=VB({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=ie();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:si(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:l0(e.currentLang,u.matches),excludeMatches:l0(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=u0(e.currentLang,u[i]),u[o]=l0(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function VB({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function aC({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=ie(),i=be(),o=he(()=>{let s=[{title:a("widget.translateFile"),icon:Rv,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:Nv,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(H1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:Uv,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(U1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(mn,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(rC,{...s})}):x(rC,{...s}))})}function rC(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}async function o4(){let e=["bingGlobalConfig","baiduGlobalConfig",e1,Nm];for(let t of e)await ne.storage.local.remove(t);X()||await k2(),await up()}var $B=["bing","transmart","google","yandex"];function oC(e){let{t}=ie();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:ss,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Fn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Fn,`${e.type}_trial_pro_service`)}})]}):null}var iC="popup_trial_pro_show_count";function sC(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=z(null),s=we(!1);Y(()=>{Ai(iC,0).then(l=>{o(l)})},[]);let u=he(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!$B.includes(d)},[t,n,r,i]);return Y(()=>{!u||i==null||s.current||(s.current=!0,ki(iC,i+1))},[u,i,s,a]),{showTrialPro:u}}function uC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function lC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function s4(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=z(""),[c,d]=z(null),[m,p]=z(null);Y(()=>{mt.get(dt,null).then(y=>{y?(d(y),p(ft(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,h=it();n&&h&&(g=n.generalRule.showSponsorOnSafari);let b=Ya(n),{showTrialPro:f}=sC({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[b&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(qv,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(eO,{openSharePage:r})]}),x(zv,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(dS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(oC,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(ZB,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(XB,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x(tO,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x(Qf,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(fS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(tC,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(nC,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(YB,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(KB,{ctx:a})]}),x(aC,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),x(JB,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function KB({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Ad(e.rule.imageRule))return null;let{t}=ie();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function YB(e){let{t}=ie(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!he(()=>!i.disabled&&Vm.includes(i.type||""),[n,Vm,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Qc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function ZB(e){let{t}=ie(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(mn,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Iv:Bv})})}function JB(e){let{t,lang:n}=ie(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ke(y=>{i&&(o(v=>r0({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=yu(i,s.rawUserConfig),d=be(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[Fv,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(QB,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(Xf,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(Fn),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?h():y.value==="changeToTranslateTheMainPage"?b():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(Fn,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(O1,m):y.value==="cleanCache"?o4().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function h(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function b(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function XB({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=ie(),l=r.config,c=he(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");Li(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?Sr()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):X()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Jn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${ms(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function QB({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=ie(),o=Wt();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${L}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),c9(`${ae}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[hb(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function eO(e){let{t}=ie();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),Ov]})}function tO({aiContextInfo:e,curUrl:t}){let{t:n}=ie();if(!e?.visible)return null;let r=he(()=>{let a=new URL(t);return a.searchParams.append(ac,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[uC(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(mn,{text:n("contextDiffPreview",{1:r}),children:lC()})]})}var u4={get:(e,t,n)=>ne.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>ne.storage[n].set({[e]:t})};function jd(e,t,n){let[r]=z(()=>typeof t=="function"?t():t),[a]=z(n),[i,o]=z(r),[s,u]=z(!1),[l,c]=z("");Y(()=>{u4.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=ke(m=>{let p=typeof m=="function"?m(i):m;A.debug("new settings",p),u4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function l4(e,t,n){let r=[];return function(){let[i,o,s,u]=jd(e,t,n),l=ke(c=>{for(let d of r)d(c)},[]);return Y(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function cC(e,t){return l4(e,t,"sync")}var nO="userConfig",rO=null,aO=cC(nO,rO);function Da(e){let[t,n,r,a]=aO(),[i,o]=z();Y(()=>{(async function(){let u=await m0();o(u)})()},[t]);let s=ke(async u=>{let l=typeof u=="function"?u(i):u;l&&c4(l);let{userConfig:c,promptPool:d,objectPool:m}=await rg(l);A.debug("userConfig size",JSON.stringify(c).length,c),A.debug("promptPool size",JSON.stringify(d).length,d),A.debug("objectPool size",JSON.stringify(m).length,m),await wr(c0,d),await wr(d0,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function c4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Y3e=1e3*3600*24;async function Ud(e){try{let t=new Date;A.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ne.storage.local.set({[js]:t.toISOString()}),await d4(),X()||await eb()}catch(t){A.error("run cron task failed",t)}}async function dC(){let t=(await Tn()).interval;if(t){let n=await ne.storage.local.get(js);if(n&&n[js]){let r=n[js];if(Date.now()-new Date(r).getTime()r?(await ne.storage.local.set({buildinConfig:t}),A.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Hr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{A.error("send content message request failed from cron task",u)})):A.debug(`no need to sync rules, latest: ${r}`):A.info(`local version is too old, please update to ${o} or later`)}catch(e){A.error("sync rules error: ",e)}}var c1e=be().REDIRECT_URL;var V1e=Po([]);function pC(e){let[t,n]=z(null);return Y(()=>{Pt().then(r=>{n(r),A.debug("current config",r)})},[]),Y(()=>{Pt().then(r=>{n(r)})},[e]),t}function gC(){let[e,t]=z(null);return Y(()=>{Kt().then(r=>{t(r)})},[]),[e,r=>{t(r),zt(r)}]}var cO=Pn(dO,1e3);async function dO(e,t,n){try{if(t===null)return"noupdate";let r=await Kt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Za(t.proSyncAPIKey,t);return await m4(e,c),await zt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await hC(e);r.accountLastSyncedAt=Date.now(),A.debug("settings",t),A.debug("remoteSettings",a),A.debug("local settings.updatedAt",t.updatedAt),A.debug("remote settings.updatedAt",a.updatedAt),A.debug("last synced at",r.accountLastSyncedAt),d9(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),A.debug("isUpload",o),o){let u=Za(t.proSyncAPIKey,t);return await m4(e,u),await zt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||m9(n)&&cO(n.token,e,t)},[e,n])}function mO(){let[e,t]=z(null);return Y(()=>{mt.get(dt,null).then(n=>{t(n)})},[t]),e}function hC(e){return(location.href?.indexOf("popup.html")>0?Ri:V)({responseType:"json",url:rt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function m4(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Ri:V)({responseType:"json",url:rt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function qd(e){let{onClose:t}=e,[n,r]=z("Original"),[a,i,o,s]=Da(()=>{setTimeout(()=>{C("updateGlobalContext",!1)()},250)});Hd(a,i);let[u,l]=z(null),[c,d]=z(globalThis.location.href),[m,p]=z("auto"),[g,h]=z(null),[b,f]=z({visible:!1,preview:!1}),y=we(!1);Y(()=>{!g||y.current||(y.current=!0,Fe("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=I=>{r(I.detail)};Y(()=>(document.addEventListener(Si,v,!1),Tn().then(I=>{l(I);let B=pt();p(B);let W=Ke();r(W),Ud(I.interval)}),document.addEventListener("urlChange",E),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",E)}),[]),Y(()=>{Tn().then(I=>{l(I)})},[a]),Y(()=>{c&&u&&zd().then(I=>{h(I)})},[c,u]),Y(()=>{let I=xc();f({visible:!!I?.used,preview:I?.sourceProgram=="html"})},[]);let T=ke((I,B)=>{C("change_translate_service",!1,{translation_service:`${I}_${B}`})()},[]);if(!u||!g)return null;return x(s4,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:I=>{C("switchTranslationMode",!0,{mode:I})()},aiContextInfo:b,request:V,onClose:k,onToggleEnabled:D,onChangeService:T,onTranslateTheWholePage:C("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:C("toggleTranslatePage",!0),onTranslateTheMainPage:C("translateTheMainPage",!0),onTranslateToThePageEndImmediately:C("translateToThePageEndImmediately",!0),onTranslatePage:C("translatePage",!0),onRestorePage:C("restorePage",!1),onWebReport:C("webReport",!0),onTranslatePdf:()=>{F(Mi(g.rule)||c)},openAboutPage:O,openSharePage:C("shareToDraft",!0),onSetPageLanguage:S,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:ha,onSetBuildinConfig:G2,onAutoEnableSubtitleChanged:C("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:C("toggleEnableEditTranslation",!0),updateContextState:I=>C("updateContextState",!0,I)(),onOpenUrl:R,onUpdateFloatBallEnable:C("updateFloatBallEnable",!0)});function S(I){p(I);let B=Pv(c,I,u.sourceLanguageUrlPattern);i(W=>({...W,sourceLanguageUrlPattern:B})),er(I)}function E(){d(globalThis.location.href)}function C(I,B,W={}){let te={trigger:"page_popup",...W};return()=>{Jt({method:I,data:te}),B&&t()}}function k(){t()}function D(){i(I=>({...I,enabled:!I.enabled})),setTimeout(()=>{k()},50)}function R(I,B){let W=I;B&&(W=`${I}?utm_source=extension&utm_medium=extension&utm_campaign=${B}`),Dc(W,!0),setTimeout(()=>{k()},50)}function F(I){I&&(bo(!1,I),setTimeout(()=>{k()},50))}function P(I=!0,B=""){Na(I,B),setTimeout(()=>{t()},50)}function O(){Ac(),setTimeout(()=>{t()},50)}function _(){Q2(),setTimeout(()=>{t()},50)}}function SC(){let[e,t]=z("Original");return Y(()=>{let n=Ke();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Si,r),()=>{document.removeEventListener(Si,r)}},[]),{pageStatus:e}}function CC(){let[e,t]=z("Original");return Y(()=>{let n=fo();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Bs,r),()=>{document.removeEventListener(Bs,r)}},[]),{mangaStatus:e}}var bC=6,pO={position:"right",top:335};function wC({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=we(null),o=we(null),[s,u]=z(!1),l=we(!1);l.current=s;let c=we(null),d=we(!1),m=we(n.floatBallConfig||pO),p=we(0),g=we(0),h=we(0),b=we(!1),f=we(0),y=we(0),v=we(0),T=we(0),S=we(!1),E=ke(C=>{if(!a)if(clearTimeout(c.current),C)u(C);else{let k=Ve().any||Jn();c.current=setTimeout(()=>{u(C),b.current=!1},k?3e3:0)}},[u,c,b,a]);return Y(()=>{a||u(!1)},[a]),Y(()=>{if(i.current&&m.current){let C=p4(m.current.top);m.current.top=C,i.current.style.top=`${C}px`,i.current.style.display="flex"}},[t,i]),Y(()=>{if(!o.current||!i.current)return;let C=_=>{_.preventDefault&&_.preventDefault(),p.current=_.clientX,g.current=_.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),E(!0),v.current=_.clientX,T.current=_.clientY,S.current=!1,(Ve().any||Jn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{yC({startX:p.current,startY:g.current,endX:v.current,endY:T.current})||(S.current=!0,r())},500)),document.addEventListener("mousemove",k),document.addEventListener("touchmove",F),document.addEventListener("mouseup",D),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},k=_=>{if(_.preventDefault&&_.preventDefault(),!d.current||!i.current||(v.current=_.clientX,T.current=_.clientY,S.current))return;let I=_.clientY-g.current+h.current,B=p4(I);i.current.style.top=`${B}px`},D=async _=>{if(_.preventDefault&&_.preventDefault(),O(),d.current=!1,clearTimeout(c.current),b.current||E(!1),S.current)return;yC({startX:p.current,startY:g.current,endX:_.clientX,endY:_.clientY})||(clearTimeout(y.current),e());let B=p4(_.clientY-30);m.current.top=B;let W=await Bn();ha({...W,floatBallConfig:m.current})},R=_=>{_.preventDefault&&_.preventDefault(),C(_.changedTouches[0])},F=_=>{_.preventDefault&&_.preventDefault(),k(_.changedTouches[0])},P=_=>{_.preventDefault&&_.preventDefault(),D(_.changedTouches[0])},O=()=>{document.removeEventListener("mousemove",k),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",C),o.current.addEventListener("touchstart",R),()=>{o.current&&(o.current.removeEventListener("mousedown",C),o.current.removeEventListener("touchstart",R))}},[t,o,i,c,d,n,E,e]),Y(()=>{if(Ve().any)return;let C=D=>{D.target===i.current&&!b.current||!l.current&&vC(D)&&c.current||(b.current=!0,E(!0),clearTimeout(c.current))},k=D=>{if(!(!l.current&&vC(D)&&c.current)){if(d.current){b.current=!1;return}D.target===i.current&&!b.current||E(!1)}};return i.current?.addEventListener("mouseover",C),i.current?.addEventListener("mouseout",k),()=>{i.current?.removeEventListener("mouseover",C),i.current?.removeEventListener("mouseout",k)}},[i,d,E,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:E}}function yC({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>bC||i>bC}function EC(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=he(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=he(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=he(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=he(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function AC(){let[e,t]=z(!1);return Y(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var xC="hasShownFloatingBallGuide",gO="2024-01-06";function kC(e,t){let[n,r]=z(!1),a=ke(()=>{ot(xC,new Date().toISOString()),r(!0)},[r]);Y(()=>{if(!e.config.enableShowFloatingBallGuide||pt()==e.targetLanguage)return;let o=ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await jt(xC,""),u=await jt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Gl,o),()=>{document.removeEventListener(Gl,o)}},[]);let i=ke(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function DC(){document.dispatchEvent(new CustomEvent(Gl))}function LC(e,t){let n=we(0),[r,a]=z(!0),[i,o]=z(!1),s=Da(),[u,l]=s,{t:c}=ie(),d=ke(()=>{e?.config.floatBallTooltipRule&&(Ve().any||Jn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);Y(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ve().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=ke(async()=>{if(!e)return;n.current=n.current+1,d();let h=await cn();l(b=>{let f={...h};return Ve().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=he(()=>Ve().any||!r||Jn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=he(()=>{if(Ve().any||Jn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:si(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${ms(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function p4(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var g4=0;function vC(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(g4=Date.now(),!0):Date.now()-g4<100}function MC(e,t){Y(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Ci,n),()=>{globalThis.document.addEventListener(Ci,n)}},[e,t])}function PC(e,t){let n=we(e);n.current=e,Y(()=>{!n.current||!t||Fe("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var TC="imt-float-ball-active";function _C(e){Y(()=>{let t=!!document.querySelector(`meta[name='${TC}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(TC)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(zl,n),()=>{document.removeEventListener(zl,n)}},[])}function RC(e){document.dispatchEvent(new CustomEvent(zl,{detail:{active:e}}))}function fO({isOpen:e,onClose:t,children:n}){let[r,a]=z(e);return Y(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Et,{children:[e&&x("div",{className:`${L}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${L}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${L}-sheet-content`,children:n})})]})}var Wd=fO;var Ki="imt-fb";function Gd(e){if(globalThis.innerWidth<=385)return x(Wd,{isOpen:e.visible,onClose:e.onClose,children:x(FC,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${L}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${L}-popup-overlay`,class:`${L}-popup-overlay`,children:x("div",{class:`${L}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(FC,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function FC(e){let{t}=ie(),[n,r]=z("UntilNext"),a=ja()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Ki}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Ki}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Rt,{type:"modal-close"})})]}),x("div",{class:`${Ki}-close-radio-content mt-3`,children:o.map(s=>x(hO,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{qr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Ki}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Ki}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function hO(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=bO(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Ki}-radio-sel`:`${Ki}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function bO(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}function IC(e){return le.ASSETS_BASE_URL+e}var Yi="imt-fb";function BC(e){let{t}=ie(),n=a=>{a?.target?.id===L+"-popup-overlay"&&e.onClose()},r=he(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:L+"-popup-overlay",class:`${L}-popup-overlay`,children:x("div",{class:`${Yi}-guide-container`,style:r,children:[x("img",{class:`${Yi}-guide-bg ${e.fixedPosition}`,src:yO}),x("div",{class:`${Yi}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Yi}-guide-img`,src:IC("images/float_ball_intro.png")}),x("div",{class:`${Yi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ve().any?` -${t("floatBall.longPress")}`:""]}),x("div",{class:`${Yi}-primary-btn ${Yi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var yO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var OC="imt-manga";function NC({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=ie(),o=d=>{d?.target?.id===L+"-popup-overlay"&&t()},s=he(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ke(()=>{if(t(),!a.isPro){if(a.user)return window.open(_1);window.open(M1)}},[a,t]);return e?x("div",{onClick:o,id:L+"-popup-overlay",class:`${L}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${OC}-guide-bg ${r}`,src:`${Q3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${OC}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Rt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var La="imt-fb";function f4(e){let{t}=ie(),n=Da(),[r,a,i,o]=n;Hd(r,a);let s=pC(r),u=e.ctx,{isFullScreen:l}=AC(),[c,d]=z(!1),m=we(c);m.current=c;let[p,g]=z(!0),{pageStatus:h}=SC(),b=yu(u,r),f=ke(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Jt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Jt,d]),y=ke(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:T,active:S,ballRef:E,floatBallConfigRef:C,setActive:k}=wC({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),D=b?.fixedPosition||"right",R=D==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:P}=kC(e.ctx,b),{closeTransform:O,logoContainerTransform:_,settingTransform:I,mangaTransform:B}=EC(b,S||F);PC(u,S);let{tooltipDelay:W,disableTooltip:te,tooltipText:se,handleShowTooltip:je}=LC(u,h);MC(d,m),_C(k);let N=globalThis.innerWidth<=385;return v?x(Et,{children:x("div",{class:`${La}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:S||F||c?"all":"none"},ref:T,children:[x(xO,{ctx:u,setVisible:g,closeTransform:O,setActive:k,getModalStyle:()=>jC(C.current.top,300,D)}),x(mn,{enableMobile:!0,text:se,position:R,delay:W,onShow:je,disable:te,children:x("div",{class:`${La}-btn ${D} btn-animate `,ref:E,style:{transform:_,opacity:S||F?1:.5},children:x("div",{children:[x(Rt,{type:"logo"}),x(Rt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(SO,{ctx:u,mangaTransform:B,floatBallConfigRef:C,fixedPosition:D,hidden:F}),x("div",{style:{marginTop:"12px",transform:I},class:`${La}-more-buttons btn-animate`,children:[x(mn,{text:t("translateFileTooltip"),multiple:!0,position:R,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{Dc(N1,!0)},children:x(Rt,{type:"file"})})}),x(mn,{text:t("floatBall.setting"),position:R,containerClass:"btn-animate",children:x("div",{class:`${La}-more-button`,onClick:()=>{k(!0),d(!0)},children:x(Rt,{type:"setting"})})}),x(wO,{ctx:u,tooltipPosition:R,rule:b,active:S})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:I},class:`${La}-more-buttons btn-animate`,children:x(mn,{text:t("reportTip"),position:R,containerClass:"btn-animate",children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(Ti,{detail:{type:"webReport"}}))}})})}),x(h4,{onClose:()=>{k(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>jC(C.current.top,500,D)}),x(BC,{visible:F,top:C.current.top,fixedPosition:D,onClose:()=>{P(),k(!1)}})]})}):null}function xO(e){let{t}=ie(),[n,r]=z(!1),a=Da(),[i,o,s,u]=a,l=yu(e.ctx,i),c=ke(m=>{e.ctx&&o(p=>r0({...p},m))},[e.ctx,o]),d=ke(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Rt,{type:"close"})}),x(Gd,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function h4(e){let t=n=>{n?.target?.id===L+"-popup-overlay"&&e.onClose()};return e.isSheet?x(Wd,{isOpen:e.visible,onClose:e.onClose,children:x(qd,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:L+"-popup-overlay",class:`${L}-popup-overlay`,children:x("div",{class:`${L}-popup-wrapper`,style:e.getModalStyle(),children:x(qd,{onClose:e.onClose})})}):null}function vO(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var jC=(e,t,n)=>{let a=vO().height,i={position:"fixed"},o=0;return $3()&&(e=TO.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},TO={position:"right",right:0,top:335};function SO({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=z(!1),{mangaStatus:u}=CC(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=ie();Y(()=>{c||Bn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),zt(p))})},[c,s]);let m=ke(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await mt.get(dt,null);if(ft(g)){e.user=g,e.isPro=!0,Jt({method:"toggleTranslateManga"});return}s(!0);return}Jt({method:"toggleTranslateManga"})},[]);return!Ad(l)||r||!l?.enable?null:x(Et,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Rt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Rt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Rt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(mn,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(Ti,{detail:{type:"mangaReport"}}))}})})]}),x(NC,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var CO="float_ball_upgrade_show_count";function wO(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=ie(),o=Ya(n.config),s=we(!1),[u,l]=z(null),c=he(()=>ps(n.config),[n]),d=p=>ps(p)?.upgradeShowCountCacheKey||CO;Y(()=>{Ai(d(n.config),0).then(p=>{l(p)})},[n]);let m=he(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=ps(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return Y(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,ki(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(mn,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Km,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${La}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Rt,{type:"upgrade"})})})}):x(mn,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${La}-more-button`,onClick:()=>{globalThis.open(Km,"_blank")},children:x(Rt,{type:"upgrade"})})})}async function UC(){try{let e=await Pt(),t={url:globalThis.location.href,config:e},n=await Yt(t),r=document.createElement("div");r.id=L+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});EO(a,e,n),document.documentElement.appendChild(r)}catch{}}function EO(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=be(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);AO(e,[i]),e.appendChild(r),Ga(x(qo,{lang:t.interfaceLanguage,children:x(kO,{ctx:n})}),r)}function AO(e,t){for(let n of t){if(X()&&!Sr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function kO(e){let[t,n]=z(!1),r=we(t);r.current=t;let a=we(""),i=we("");Y(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Ci,u),()=>{globalThis.document.addEventListener(Ci,u)}},[r]);let o=globalThis.innerWidth,s=Ve().any&&o<=450;return x(h4,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Vd(e){document.dispatchEvent(new CustomEvent(Ci,{detail:e||{}}))}function DO(e,t){for(let n of t){if(X()&&!Sr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function $d(){let e=await Tn(),t=await cn(),n={url:globalThis.location.href,config:e},r=await Yt(n),a=await Qp(r,t),i=ze(r.url,a?.blockUrls),o=await Kt();if(!a?.enable||i)return UC();let s=document.createElement("div");s.id=L+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return LO(u,e,o,r),document.documentElement.appendChild(s),s}function HC(){let e=document.getElementById(L+"-popup");e&&e.remove(),$d()}function LO(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=be(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);DO(e,[o]),e.appendChild(a),Ga(x(qo,{lang:t.interfaceLanguage,children:x(f4,{localConfig:n,ctx:r})}),a)}var b4=!1;async function qC(e){if(!e){let t=await Tn(),n={url:globalThis.location.href,config:t};e=await Yt(n)}e.config.debug&&A.setLevel("debug"),e.isTranslateExcludeUrl?A.debug("detect exclude url, do not inject anything."):(b4=!0,$d().catch(t=>{A.debug("init popup error",t)}))}async function zC(){b4||(b4=!0,$d().catch(e=>{A.error("init popup error",e)}))}async function WC(e,t){let n,r;if(t){let a=N0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Za(!1,r)}return{siteUrl:location.href,pluginVersion:Wt(),isMobile:Ve().any,platform:ya(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function GC(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await $a(l,"web"),l.json()))}function VC(e,t,n){if(e=="manga")return hS(t,n);if(e=="web")return WC(t,n)}function $C(e,t,n,r,a,i){if(e=="manga")return bS(t,n,a,i,r);if(e=="web")return GC(t,n,a,i,r)}function Kd(e,t,n,r,a,i,o){let s=De.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; +`;function $h(e){Md().forEach(t=>{DB(e,t)})}function DB(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){A.debug("exclude url for input");return}if(Rd===!1){A.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;Ve().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(En||Rd===!1)return;let p=Bd(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(IB(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&HS(t,o,m.target)&&(s=0,Yh(m,e,t,o))}function d(){Vh=l,t.removeEventListener("keyup",Vh),t.addEventListener("keyup",Vh,!0)}BB(e)}function qS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Fd(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var Ss;function LB(e){let t=e.parentElement;if(!t)return;Ss=document.createElement("div"),Ss.className=L+"-input";let n=`
`;Ss.innerHTML=On?.createHTML(n)||n,t.appendChild(Ss);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=kB,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Kh(){Ss&&Ss.remove()}async function MB(e,t=window){if(En)return;let r=globalThis.getSelection()?.toString();if(r){Jh(e,t,r,"shortcutKey");return}try{let b=function(){p=e.config.inputTargetLanguage;let y=m.split(" ")[0];y&&y[0]&&(y=y[0].toLowerCase()+y.slice(1)),y.trim()&&u.flatAlias.includes(y)?(p=Fd(y,u.codeAlias),d=m.slice(y.length+1)):d=m},f=function(){p="";let y=qS(u),v=m.split(y);if(v.length<2)return;if(d=v[v.length-1],c=v[0],v.length>2){let S=m.lastIndexOf(d),E=m.slice(0,S).lastIndexOf(v[v.length-2]);c=m.slice(0,E+v[v.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let T=m.slice(c.length+1,m.indexOf(d)).trim();if(p=Fd(T,u.codeAlias),!p){A.warn("not found alias",T);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(y=>i[y]=[y,...i[y]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;Ve().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;En=!0;let c="",d="",m=Nr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?b():(f(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&b());let g=zS(d,u)||"";if(!g||g.length>5e3)return;let h=await Xh({translateContent:g,targetLang:p,ele:l,selfWindow:t});h&&YS(e,t,l,c+h),En=!1}catch(a){throw En=!1,a}finally{En=!1,Kh()}}async function Yh(e,t,n,r){if(!En)try{let d=function(){u=t.config.inputTargetLanguage;let p=s.split(" ")[0];p&&p[0]&&(p=p[0].toLowerCase()+p.slice(1)),p.trim()&&r.flatAlias.includes(p)?(u=Fd(p,r.codeAlias),o=s.slice(p.length+1)):o=s},m=function(){u="";let p=qS(r),g=s.split(p);if(g.length<2)return;if(o=g[g.length-1],i=g[0],g.length>2){let b=s.lastIndexOf(o),f=s.slice(0,b).lastIndexOf(g[g.length-2]);i=s.slice(0,f+g[g.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let h=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Fd(h,r.codeAlias),!u){A.warn("not found alias",h);return}},a=Bd(n.document,t.rule.enableInputDeepActive);if(!a)return;En=!0;let i="",o="",s=Nr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?d():(m(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&d());let l=zS(o,r)||"";if(!l)return;if(t.config.isShowInputTranslationConsent&&!US){US=!0;let p=await jS(t);if(e.target&&e.target.focus(),p==="disable_once"||p==="disable_forever"){if(Rd=!1,p==="disable_forever"){let g=await Mt();g.enableInputTranslation=!1,g.isShowInputTranslationConsent=!1,await qt(g)}else if(p==="disable_once"){let g=await Mt();g.isShowInputTranslationConsent=!1,await qt(g)}return}else if(p==="close_disable_once"||p==="close_disable_forever"){if(Rd=!1,p==="close_disable_forever"){let g=await Mt();g.enableInputTranslation=!1,g.isShowInputTranslationConsent=!1,await qt(g)}return}else if(p==="enable"){let g=await Mt();g.enableInputTranslation=!0,g.isShowInputTranslationConsent=!1,await qt(g)}else if(p==="close_enable"){let g=await Mt();g.enableInputTranslation=!0,await qt(g)}}let c=await Xh({translateContent:l,targetLang:u,ele:a,selfWindow:n});c&&YS(t,n,a,i+c),En=!1}catch(a){throw En=!1,a}finally{En=!1,Kh()}}function HS(e,t,n){if(!n)return!1;if(Zh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` +`).reverse()[0],o=i.trim(),s=a<=r;A.debug("cursorPosition",r,"textLength",a),A.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return A.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=PB(i,n);A.debug("Current text node:",i.textContent),A.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` +`).reverse(),l=it()?u[0]||u[1]:u[0];A.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else A.debug("Cursor is not within a text node.")}}return!1}function PB(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function zS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function WS(e,t){let n=t.innerHTML,r=Nr(t);return{html:n.replace(r,e),text:e}}function Id(e,t,n=!1){let r=Nr(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Nr(e){return e.value||e.innerText||e.textContent}async function Or(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function _B(e,t,n){await Or(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Or(10)}async function GS(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Or(10))}async function VS(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Or(20),(t.value||t.value==="")&&(t.value=e.text)}async function $S(e,t){Zh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Or(20))}var KS=[_B.bind(null,["plain"])];function Zh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function RB(e,t){if(Zh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function YS(e,t,n,r){await Or(50),await RB(t,n),await Or(50);let a=e.rule.inputConfig,i=WS(r,n);try{await Or(50),a?.execCommandDeleteEnable&&!Sr()&&Nr(n)?.trim()!=""&&(t.document.execCommand("delete"),await Or(50)),A.debug("clearContent",Nr(n))}catch(o){A.error(o)}for(let o of[...KS,VS,$S,GS]){await o(i,n);let s=ZS(t);if(!s)return;if(A.debug("setContent",o.name,Id(i,s),Nr(s),i),Id(i,s))break}}function ZS(e){return e.document.activeElement}function FB(e,t=""){Re("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function IB(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function BB(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await jt(t,"")||Number(await jt(qm,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function Jh(e,t,n,r){if(En)return;try{let o=Bd(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;En=!0;let u=e.config.inputTargetLanguage;if(!n)return;let l=await Xh({translateContent:n,targetLang:u,ele:o,selfWindow:t,trigger:r});if(!l)return;o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement?i(t,o,l):a(e,t,o,l)}catch(o){throw En=!1,o}finally{En=!1,Kh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=WS(l,u);try{await Or(50),c?.execCommandDeleteEnable&&!Sr()&&Nr(u)?.trim()!=""&&(s.document.execCommand("delete"),await Or(50)),A.debug("clearContent",Nr(u))}catch(m){A.error(m)}for(let m of[...KS,VS,$S,GS]){await m(d,u);let p=ZS(s);if(!p)return;if(A.debug("setContent",m.name,Id(d,p),Nr(p),d),Id(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function NB(e){return e==="retry"||e==="changeService"}async function Xh(e){let{translateContent:t,targetLang:n,ele:r,selfWindow:a,trigger:i}=e,o=await He(ye(),{}),s=await Ne({text:t,pageLangs:["en"]});A.debug("translateContent",t,s);let u={text:t||"",id:0,from:s,to:n,url:"https://google.com",fromByClient:s,force:!0};LB(r),mt(qm,Date.now());try{o.specialAiAssistant=ya(o,o.inputTranslationService,!0);let l=await ji(u,{...o,isRichTranslate:!1,translationService:o.inputTranslationService});return FB(o,i),l.text}catch(l){if(l instanceof j){let c=l.uiConfig(o);NB(c.action)&&(c.action="none"),a.document.dispatchEvent(new CustomEvent(Un,{detail:c}))}}finally{En=!1}}var ul=[];function Qh(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),ul.push(()=>{document.removeEventListener("click",i)})}function JS(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),ul.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Od(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),ul.push(()=>{document.removeEventListener("touchstart",r)})}var e4={touchShortcutsOff:()=>{},"multipleClick.2":Qh,"multipleClick.3":Qh,"multipleClick.4":Qh,"slide.left":JS,"slide.right":JS,"fingers.2":Od,"fingers.3":Od,"fingers.4":Od,"fingers.5":Od};async function QS(e,t=window){try{WB();let n=await cn(),r=C1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=jB(e,n,a.command),o=e4[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{zB(a.command,e,t,l)})})}catch(n){A.error(n)}}function jB(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var UB=()=>{t4();let e=new CustomEvent(Tr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},HB=()=>{r4();let e=new CustomEvent(Tr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},qB=()=>{n4();let e=new CustomEvent(Tr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},XS=0,zB=(e,t,n,r)=>{if(!(new Date().getTime()-XS<200)){if(XS=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")UB();else if(e==="touchShortcutsToggleTranslationMask")qB();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")HB();else if(e==="touchShortcutsToggleTranslateTouchElement")NS(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Yh(r,t,n,s)}}};function WB(){ul.forEach(e=>{e()}),ul=[]}function eC(e){let{t}=ie(),{ctx:n,setSettings:r}=e,a=GB(e);return Vs(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(si,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),x("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||js[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(VB,{...e})}function GB({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=ie(),a=he(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=he(()=>js.filter(s=>!(s==="Off"||js.includes(a)&&s==="OtherCustom")),[e,a]);return he(()=>i.map(s=>{let u=r("mouseHoldKey",{key:ms(s)}),l=js.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function VB(e){let{ctx:t,setSettings:n}=e,{t:r}=ie(),a=t.config.generalRule,i=Object.keys(e4).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(si,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function tC(e){let{isAlwaysTranslateLang:t}=$B({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=ie();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:oi(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:u0(e.currentLang,u.matches),excludeMatches:u0(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=s0(e.currentLang,u[i]),u[o]=u0(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function $B({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function rC({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=ie(),i=be(),o=he(()=>{let s=[{title:a("widget.translateFile"),icon:Pv,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:Bv,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(j1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:Nv,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(N1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(mn,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(nC,{...s})}):x(nC,{...s}))})}function nC(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}async function a4(){let e=["bingGlobalConfig","baiduGlobalConfig",X3,Om];for(let t of e)await ne.storage.local.remove(t);X()||await E2(),await up()}var KB=["bing","transmart","google","yandex"];function iC(e){let{t}=ie();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:ss,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Rn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Rn,`${e.type}_trial_pro_service`)}})]}):null}var aC="popup_trial_pro_show_count";function oC(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=z(null),s=we(!1);Y(()=>{Ei(aC,0).then(l=>{o(l)})},[]);let u=he(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!KB.includes(d)},[t,n,r,i]);return Y(()=>{!u||i==null||s.current||(s.current=!0,Ai(aC,i+1))},[u,i,s,a]),{showTrialPro:u}}function sC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_20007_2576)",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),x("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),x("defs",{children:x("clipPath",{id:"clip0_20007_2576",children:x("rect",{width:"16",height:"16",fill:"white"})})})]})}function uC(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function i4(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=z(""),[c,d]=z(null),[m,p]=z(null);Y(()=>{dt.get(ct,null).then(y=>{y?(d(y),p(ft(y))):p(!1)}).catch(y=>{p(!1)})},[]);let g=!0,h=it();n&&h&&(g=n.generalRule.showSponsorOnSafari);let b=Ka(n),{showTrialPro:f}=oC({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[b&&!m?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(Uv,{isLogin:!!c,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(tO,{openSharePage:r})]}),x(Hv,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(lS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:f}),x(iC,{showTrialPro:f,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(JB,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(QB,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x(nO,{aiContextInfo:s,curUrl:a.url}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x(Qf,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(pS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(eC,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(tC,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(ZB,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(YB,{ctx:a})]}),x(rC,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),x(XB,{...e,isProUser:!!m,isShowPricing:g,setMessage:l})]})}function YB({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Ed(e.rule.imageRule))return null;let{t}=ie();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function ZB(e){let{t}=ie(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!he(()=>!i.disabled&&Vm.includes(i.type||""),[n,Vm,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Xc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function JB(e){let{t}=ie(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(mn,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Rv:Fv})})}function XB(e){let{t,lang:n}=ie(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ke(y=>{i&&(o(v=>n0({...v},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=bu(i,s.rawUserConfig),d=be(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[_v,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(eO,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(Xf,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(Rn),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?h():y.value==="changeToTranslateTheMainPage"?b():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(Rn,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(I1,m):y.value==="cleanCache"?a4().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function h(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function b(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(v=>(setTimeout(()=>e.onTranslatePage(),100),{...v,generalRule:{...v.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function QB({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=ie(),l=r.config,c=he(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");Di(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?Sr()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):X()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Jn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${ms(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function eO({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=ie(),o=Wt();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${L}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),u9(`${ae}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[gb(e.config),e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function tO(e){let{t}=ie();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),Iv]})}function nO({aiContextInfo:e,curUrl:t}){let{t:n}=ie();if(!e?.visible)return null;let r=he(()=>{let a=new URL(t);return a.searchParams.append(rc,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return x("div",{class:"flex flex-row mt-3 items-center",children:[sC(),x("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&x(mn,{text:n("contextDiffPreview",{1:r}),children:uC()})]})}var o4={get:(e,t,n)=>ne.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>ne.storage[n].set({[e]:t})};function Nd(e,t,n){let[r]=z(()=>typeof t=="function"?t():t),[a]=z(n),[i,o]=z(r),[s,u]=z(!1),[l,c]=z("");Y(()=>{o4.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=ke(m=>{let p=typeof m=="function"?m(i):m;A.debug("new settings",p),o4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function s4(e,t,n){let r=[];return function(){let[i,o,s,u]=Nd(e,t,n),l=ke(c=>{for(let d of r)d(c)},[]);return Y(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function lC(e,t){return s4(e,t,"sync")}var rO="userConfig",aO=null,iO=lC(rO,aO);function ka(e){let[t,n,r,a]=iO(),[i,o]=z();Y(()=>{(async function(){let u=await d0();o(u)})()},[t]);let s=ke(async u=>{let l=typeof u=="function"?u(i):u;l&&u4(l);let{userConfig:c,promptPool:d,objectPool:m}=await rg(l);A.debug("userConfig size",JSON.stringify(c).length,c),A.debug("promptPool size",JSON.stringify(d).length,d),A.debug("objectPool size",JSON.stringify(m).length,m),await wr(l0,d),await wr(c0,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function u4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var s1e=1e3*3600*24;async function jd(e){try{let t=new Date;A.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ne.storage.local.set({[Ns]:t.toISOString()}),await l4(),X()||await X2()}catch(t){A.error("run cron task failed",t)}}async function cC(){let t=(await vn()).interval;if(t){let n=await ne.storage.local.get(Ns);if(n&&n[Ns]){let r=n[Ns];if(Date.now()-new Date(r).getTime()r?(await ne.storage.local.set({buildinConfig:t}),A.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ur({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{A.error("send content message request failed from cron task",u)})):A.debug(`no need to sync rules, latest: ${r}`):A.info(`local version is too old, please update to ${o} or later`)}catch(e){A.error("sync rules error: ",e)}}var S1e=be().REDIRECT_URL;var a2e=Po([]);function mC(e){let[t,n]=z(null);return Y(()=>{Pt().then(r=>{n(r),A.debug("current config",r)})},[]),Y(()=>{Pt().then(r=>{n(r)})},[e]),t}function pC(){let[e,t]=z(null);return Y(()=>{Kt().then(r=>{t(r)})},[]),[e,r=>{t(r),zt(r)}]}var dO=Mn(mO,1e3);async function mO(e,t,n){try{if(t===null)return"noupdate";let r=await Kt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ya(t.proSyncAPIKey,t);return await c4(e,c),await zt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await fC(e);r.accountLastSyncedAt=Date.now(),A.debug("settings",t),A.debug("remoteSettings",a),A.debug("local settings.updatedAt",t.updatedAt),A.debug("remote settings.updatedAt",a.updatedAt),A.debug("last synced at",r.accountLastSyncedAt),l9(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),A.debug("isUpload",o),o){let u=Ya(t.proSyncAPIKey,t);return await c4(e,u),await zt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||c9(n)&&dO(n.token,e,t)},[e,n])}function pO(){let[e,t]=z(null);return Y(()=>{dt.get(ct,null).then(n=>{t(n)})},[t]),e}function fC(e){return(location.href?.indexOf("popup.html")>0?_i:V)({responseType:"json",url:rt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function c4(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?_i:V)({responseType:"json",url:rt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Hd(e){let{onClose:t}=e,[n,r]=z("Original"),[a,i,o,s]=ka(()=>{setTimeout(()=>{w("updateGlobalContext",!1)()},250)});Ud(a,i);let[u,l]=z(null),[c,d]=z(globalThis.location.href),[m,p]=z("auto"),[g,h]=z(null),[b,f]=z({visible:!1,preview:!1}),y=we(!1);Y(()=>{!g||y.current||(y.current=!0,Re("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,y]);let v=I=>{r(I.detail)};Y(()=>(document.addEventListener(Ti,v,!1),vn().then(I=>{l(I);let B=pt();p(B);let W=Ke();r(W),jd(I.interval)}),document.addEventListener("urlChange",E),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",E)}),[]),Y(()=>{vn().then(I=>{l(I)})},[a]),Y(()=>{c&&u&&qd().then(I=>{h(I)})},[c,u]),Y(()=>{let I=yc();f({visible:!!I?.used,preview:I?.sourceProgram=="html"})},[]);let T=ke((I,B)=>{w("change_translate_service",!1,{translation_service:`${I}_${B}`})()},[]);if(!u||!g)return null;return x(i4,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:I=>{w("switchTranslationMode",!0,{mode:I})()},aiContextInfo:b,request:V,onClose:k,onToggleEnabled:D,onChangeService:T,onTranslateTheWholePage:w("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:w("toggleTranslatePage",!0),onTranslateTheMainPage:w("translateTheMainPage",!0),onTranslateToThePageEndImmediately:w("translateToThePageEndImmediately",!0),onTranslatePage:w("translatePage",!0),onRestorePage:w("restorePage",!1),onWebReport:w("webReport",!0),onTranslatePdf:()=>{F(Li(g.rule)||c)},openAboutPage:O,openSharePage:w("shareToDraft",!0),onSetPageLanguage:S,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:ga,onSetBuildinConfig:z2,onAutoEnableSubtitleChanged:w("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:w("toggleEnableEditTranslation",!0),updateContextState:I=>w("updateContextState",!0,I)(),onOpenUrl:R,onUpdateFloatBallEnable:w("updateFloatBallEnable",!0)});function S(I){p(I);let B=Lv(c,I,u.sourceLanguageUrlPattern);i(W=>({...W,sourceLanguageUrlPattern:B})),er(I)}function E(){d(globalThis.location.href)}function w(I,B,W={}){let te={trigger:"page_popup",...W};return()=>{Jt({method:I,data:te}),B&&t()}}function k(){t()}function D(){i(I=>({...I,enabled:!I.enabled})),setTimeout(()=>{k()},50)}function R(I,B){let W=I;B&&(W=`${I}?utm_source=extension&utm_medium=extension&utm_campaign=${B}`),kc(W,!0),setTimeout(()=>{k()},50)}function F(I){I&&(bo(!1,I),setTimeout(()=>{k()},50))}function P(I=!0,B=""){Oa(I,B),setTimeout(()=>{t()},50)}function O(){Ec(),setTimeout(()=>{t()},50)}function _(){J2(),setTimeout(()=>{t()},50)}}function TC(){let[e,t]=z("Original");return Y(()=>{let n=Ke();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ti,r),()=>{document.removeEventListener(Ti,r)}},[]),{pageStatus:e}}function SC(){let[e,t]=z("Original");return Y(()=>{let n=fo();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Bs,r),()=>{document.removeEventListener(Bs,r)}},[]),{mangaStatus:e}}var hC=6,gO={position:"right",top:335};function CC({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=we(null),o=we(null),[s,u]=z(!1),l=we(!1);l.current=s;let c=we(null),d=we(!1),m=we(n.floatBallConfig||gO),p=we(0),g=we(0),h=we(0),b=we(!1),f=we(0),y=we(0),v=we(0),T=we(0),S=we(!1),E=ke(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let k=Ve().any||Jn();c.current=setTimeout(()=>{u(w),b.current=!1},k?3e3:0)}},[u,c,b,a]);return Y(()=>{a||u(!1)},[a]),Y(()=>{if(i.current&&m.current){let w=d4(m.current.top);m.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),Y(()=>{if(!o.current||!i.current)return;let w=_=>{_.preventDefault&&_.preventDefault(),p.current=_.clientX,g.current=_.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),E(!0),v.current=_.clientX,T.current=_.clientY,S.current=!1,(Ve().any||Jn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{bC({startX:p.current,startY:g.current,endX:v.current,endY:T.current})||(S.current=!0,r())},500)),document.addEventListener("mousemove",k),document.addEventListener("touchmove",F),document.addEventListener("mouseup",D),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},k=_=>{if(_.preventDefault&&_.preventDefault(),!d.current||!i.current||(v.current=_.clientX,T.current=_.clientY,S.current))return;let I=_.clientY-g.current+h.current,B=d4(I);i.current.style.top=`${B}px`},D=async _=>{if(_.preventDefault&&_.preventDefault(),O(),d.current=!1,clearTimeout(c.current),b.current||E(!1),S.current)return;bC({startX:p.current,startY:g.current,endX:_.clientX,endY:_.clientY})||(clearTimeout(y.current),e());let B=d4(_.clientY-30);m.current.top=B;let W=await In();ga({...W,floatBallConfig:m.current})},R=_=>{_.preventDefault&&_.preventDefault(),w(_.changedTouches[0])},F=_=>{_.preventDefault&&_.preventDefault(),k(_.changedTouches[0])},P=_=>{_.preventDefault&&_.preventDefault(),D(_.changedTouches[0])},O=()=>{document.removeEventListener("mousemove",k),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",R),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",R))}},[t,o,i,c,d,n,E,e]),Y(()=>{if(Ve().any)return;let w=D=>{D.target===i.current&&!b.current||!l.current&&xC(D)&&c.current||(b.current=!0,E(!0),clearTimeout(c.current))},k=D=>{if(!(!l.current&&xC(D)&&c.current)){if(d.current){b.current=!1;return}D.target===i.current&&!b.current||E(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",k),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",k)}},[i,d,E,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:E}}function bC({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>hC||i>hC}function wC(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=he(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=he(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=he(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=he(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function EC(){let[e,t]=z(!1);return Y(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var yC="hasShownFloatingBallGuide",fO="2024-01-06";function AC(e,t){let[n,r]=z(!1),a=ke(()=>{mt(yC,new Date().toISOString()),r(!0)},[r]);Y(()=>{if(!e.config.enableShowFloatingBallGuide||pt()==e.targetLanguage)return;let o=We(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await jt(yC,""),u=await jt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Wl,o),()=>{document.removeEventListener(Wl,o)}},[]);let i=ke(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function kC(){document.dispatchEvent(new CustomEvent(Wl))}function DC(e,t){let n=we(0),[r,a]=z(!0),[i,o]=z(!1),s=ka(),[u,l]=s,{t:c}=ie(),d=ke(()=>{e?.config.floatBallTooltipRule&&(Ve().any||Jn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);Y(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ve().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=ke(async()=>{if(!e)return;n.current=n.current+1,d();let h=await cn();l(b=>{let f={...h};return Ve().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=he(()=>Ve().any||!r||Jn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=he(()=>{if(Ve().any||Jn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:oi(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${ms(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function d4(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var m4=0;function xC(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(m4=Date.now(),!0):Date.now()-m4<100}function LC(e,t){Y(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(Si,n),()=>{globalThis.document.addEventListener(Si,n)}},[e,t])}function MC(e,t){let n=we(e);n.current=e,Y(()=>{!n.current||!t||Re("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var vC="imt-float-ball-active";function PC(e){Y(()=>{let t=!!document.querySelector(`meta[name='${vC}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(vC)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(ql,n),()=>{document.removeEventListener(ql,n)}},[])}function _C(e){document.dispatchEvent(new CustomEvent(ql,{detail:{active:e}}))}function hO({isOpen:e,onClose:t,children:n}){let[r,a]=z(e);return Y(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Et,{children:[e&&x("div",{className:`${L}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${L}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${L}-sheet-content`,children:n})})]})}var zd=hO;var Ki="imt-fb";function Wd(e){if(globalThis.innerWidth<=385)return x(zd,{isOpen:e.visible,onClose:e.onClose,children:x(RC,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${L}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${L}-popup-overlay`,class:`${L}-popup-overlay`,children:x("div",{class:`${L}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(RC,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function RC(e){let{t}=ie(),[n,r]=z("UntilNext"),a=Na()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Ki}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Ki}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Rt,{type:"modal-close"})})]}),x("div",{class:`${Ki}-close-radio-content mt-3`,children:o.map(s=>x(bO,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Hr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Ki}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Ki}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function bO(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=yO(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Ki}-radio-sel`:`${Ki}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function yO(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}function FC(e){return le.ASSETS_BASE_URL+e}var Yi="imt-fb";function IC(e){let{t}=ie(),n=a=>{a?.target?.id===L+"-popup-overlay"&&e.onClose()},r=he(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:L+"-popup-overlay",class:`${L}-popup-overlay`,children:x("div",{class:`${Yi}-guide-container`,style:r,children:[x("img",{class:`${Yi}-guide-bg ${e.fixedPosition}`,src:xO}),x("div",{class:`${Yi}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Yi}-guide-img`,src:FC("images/float_ball_intro.png")}),x("div",{class:`${Yi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ve().any?` +${t("floatBall.longPress")}`:""]}),x("div",{class:`${Yi}-primary-btn ${Yi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var xO="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var BC="imt-manga";function OC({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=ie(),o=d=>{d?.target?.id===L+"-popup-overlay"&&t()},s=he(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ke(()=>{if(t(),!a.isPro){if(a.user)return window.open(M1);window.open(D1)}},[a,t]);return e?x("div",{onClick:o,id:L+"-popup-overlay",class:`${L}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${BC}-guide-bg ${r}`,src:`${J3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${BC}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Rt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var Da="imt-fb";function p4(e){let{t}=ie(),n=ka(),[r,a,i,o]=n;Ud(r,a);let s=mC(r),u=e.ctx,{isFullScreen:l}=EC(),[c,d]=z(!1),m=we(c);m.current=c;let[p,g]=z(!0),{pageStatus:h}=TC(),b=bu(u,r),f=ke(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Jt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Jt,d]),y=ke(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:T,active:S,ballRef:E,floatBallConfigRef:w,setActive:k}=CC({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),D=b?.fixedPosition||"right",R=D==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:P}=AC(e.ctx,b),{closeTransform:O,logoContainerTransform:_,settingTransform:I,mangaTransform:B}=wC(b,S||F);MC(u,S);let{tooltipDelay:W,disableTooltip:te,tooltipText:se,handleShowTooltip:je}=DC(u,h);LC(d,m),PC(k);let N=globalThis.innerWidth<=385;return v?x(Et,{children:x("div",{class:`${Da}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:S||F||c?"all":"none"},ref:T,children:[x(vO,{ctx:u,setVisible:g,closeTransform:O,setActive:k,getModalStyle:()=>NC(w.current.top,300,D)}),x(mn,{enableMobile:!0,text:se,position:R,delay:W,onShow:je,disable:te,children:x("div",{class:`${Da}-btn ${D} btn-animate `,ref:E,style:{transform:_,opacity:S||F?1:.5},children:x("div",{children:[x(Rt,{type:"logo"}),x(Rt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(CO,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:D,hidden:F}),x("div",{style:{marginTop:"12px",transform:I},class:`${Da}-more-buttons btn-animate`,children:[x(mn,{text:t("translateFileTooltip"),multiple:!0,position:R,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{kc(B1,!0)},children:x(Rt,{type:"file"})})}),x(mn,{text:t("floatBall.setting"),position:R,containerClass:"btn-animate",children:x("div",{class:`${Da}-more-button`,onClick:()=>{k(!0),d(!0)},children:x(Rt,{type:"setting"})})}),x(EO,{ctx:u,tooltipPosition:R,rule:b,active:S})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:I},class:`${Da}-more-buttons btn-animate`,children:x(mn,{text:t("reportTip"),position:R,containerClass:"btn-animate",children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"webReport"}}))}})})}),x(g4,{onClose:()=>{k(!1),d(!1)},isSheet:N,visible:c,getModalStyle:()=>NC(w.current.top,500,D)}),x(IC,{visible:F,top:w.current.top,fixedPosition:D,onClose:()=>{P(),k(!1)}})]})}):null}function vO(e){let{t}=ie(),[n,r]=z(!1),a=ka(),[i,o,s,u]=a,l=bu(e.ctx,i),c=ke(m=>{e.ctx&&o(p=>n0({...p},m))},[e.ctx,o]),d=ke(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Rt,{type:"close"})}),x(Wd,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function g4(e){let t=n=>{n?.target?.id===L+"-popup-overlay"&&e.onClose()};return e.isSheet?x(zd,{isOpen:e.visible,onClose:e.onClose,children:x(Hd,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:L+"-popup-overlay",class:`${L}-popup-overlay`,children:x("div",{class:`${L}-popup-wrapper`,style:e.getModalStyle(),children:x(Hd,{onClose:e.onClose})})}):null}function TO(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var NC=(e,t,n)=>{let a=TO().height,i={position:"fixed"},o=0;return G3()&&(e=SO.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},SO={position:"right",right:0,top:335};function CO({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=z(!1),{mangaStatus:u}=SC(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=ie();Y(()=>{c||In().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),zt(p))})},[c,s]);let m=ke(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await dt.get(ct,null);if(ft(g)){e.user=g,e.isPro=!0,Jt({method:"toggleTranslateManga"});return}s(!0);return}Jt({method:"toggleTranslateManga"})},[]);return!Ed(l)||r||!l?.enable?null:x(Et,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Rt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Rt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Rt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(mn,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vi,{detail:{type:"mangaReport"}}))}})})]}),x(OC,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var wO="float_ball_upgrade_show_count";function EO(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=ie(),o=Ka(n.config),s=we(!1),[u,l]=z(null),c=he(()=>ps(n.config),[n]),d=p=>ps(p)?.upgradeShowCountCacheKey||wO;Y(()=>{Ei(d(n.config),0).then(p=>{l(p)})},[n]);let m=he(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=ps(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return Y(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ai(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(mn,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Km,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${Da}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Rt,{type:"upgrade"})})})}):x(mn,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${Da}-more-button`,onClick:()=>{globalThis.open(Km,"_blank")},children:x(Rt,{type:"upgrade"})})})}async function jC(){try{let e=await Pt(),t={url:globalThis.location.href,config:e},n=await Yt(t),r=document.createElement("div");r.id=L+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});AO(a,e,n),document.documentElement.appendChild(r)}catch{}}function AO(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=be(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);kO(e,[i]),e.appendChild(r),Wa(x(qo,{lang:t.interfaceLanguage,children:x(DO,{ctx:n})}),r)}function kO(e,t){for(let n of t){if(X()&&!Sr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function DO(e){let[t,n]=z(!1),r=we(t);r.current=t;let a=we(""),i=we("");Y(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(Si,u),()=>{globalThis.document.addEventListener(Si,u)}},[r]);let o=globalThis.innerWidth,s=Ve().any&&o<=450;return x(g4,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Gd(e){document.dispatchEvent(new CustomEvent(Si,{detail:e||{}}))}function LO(e,t){for(let n of t){if(X()&&!Sr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Vd(){let e=await vn(),t=await cn(),n={url:globalThis.location.href,config:e},r=await Yt(n),a=await Qp(r,t),i=We(r.url,a?.blockUrls),o=await Kt();if(!a?.enable||i)return jC();let s=document.createElement("div");s.id=L+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return MO(u,e,o,r),document.documentElement.appendChild(s),s}function UC(){let e=document.getElementById(L+"-popup");e&&e.remove(),Vd()}function MO(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=be(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);LO(e,[o]),e.appendChild(a),Wa(x(qo,{lang:t.interfaceLanguage,children:x(p4,{localConfig:n,ctx:r})}),a)}var f4=!1;async function HC(e){if(!e){let t=await vn(),n={url:globalThis.location.href,config:t};e=await Yt(n)}e.config.debug&&A.setLevel("debug"),e.isTranslateExcludeUrl?A.debug("detect exclude url, do not inject anything."):(f4=!0,Vd().catch(t=>{A.debug("init popup error",t)}))}async function qC(){f4||(f4=!0,Vd().catch(e=>{A.error("init popup error",e)}))}async function zC(e,t){let n,r;if(t){let a=O0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=Ya(!1,r)}return{siteUrl:location.href,pluginVersion:Wt(),isMobile:Ve().any,platform:ha(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function WC(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Mr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${rt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Va(l,"web"),l.json()))}function GC(e,t,n){if(e=="manga")return gS(t,n);if(e=="web")return zC(t,n)}function VC(e,t,n,r,a,i){if(e=="manga")return fS(t,n,a,i,r);if(e=="web")return WC(t,n,a,i,r)}function $d(e,t,n,r,a,i,o){let s=De.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; @@ -6418,20 +6418,20 @@ ${t("floatBall.longPress")}`:""]}),x("div",{class:`${Yi}-primary-btn ${Yi}-guide flex: 1;`),p.addEventListener("input",function(){E.disabled=c(),k&&(k.style.display=this.value.trim()===""?"block":"none")}),m.append(p),a.append(m);let g=document.createElement("input");g.type="email",g.id="emailReport",g.size=30,g.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";mt.get(dt,null).then(D=>{D&&(h=D.email,g.value=D.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let D=l(this.value);E.disabled=c(),D?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let T=document.createElement("label");T.htmlFor=v.id,T.innerText=s("reportInfo.attachLog"),T.setAttribute("style","margin-left:8px");let S=document.createElement("div");S.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),S.append(v),S.append(T),a.append(S);let E=document.createElement("button");E.className=L+"-btn",E.innerText=s("reportInfo.submit"),E.disabled=!0,E.onclick=async()=>{if(E.uploading||p.value.trim()===""||!l(g.value))return;let D=await VC(e,t,v.checked);E.uploading=!0;try{KC(E,!0),await $C(e,t,p.value,g.value!==h?g.value:"",v.checked,D),MO(s,r,a,i,o)}catch{PO(t,n,s,r,a,i,o,e)}finally{E.uploading=!1,KC(E,!1)}},i.appendChild(E);let C=document.createElement("div");C.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(C);let k=document.createElement("p");k.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),k.textContent=s("reportInfo.tip"),i.appendChild(k)}function KC(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(L+"-loading-spinner"),e.appendChild(n))}function MO(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let h="";dt.get(ct,null).then(D=>{D&&(h=D.email,g.value=D.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let D=l(this.value);E.disabled=c(),D?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let T=document.createElement("label");T.htmlFor=v.id,T.innerText=s("reportInfo.attachLog"),T.setAttribute("style","margin-left:8px");let S=document.createElement("div");S.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),S.append(v),S.append(T),a.append(S);let E=document.createElement("button");E.className=L+"-btn",E.innerText=s("reportInfo.submit"),E.disabled=!0,E.onclick=async()=>{if(E.uploading||p.value.trim()===""||!l(g.value))return;let D=await GC(e,t,v.checked);E.uploading=!0;try{$C(E,!0),await VC(e,t,p.value,g.value!==h?g.value:"",v.checked,D),PO(s,r,a,i,o)}catch{_O(t,n,s,r,a,i,o,e)}finally{E.uploading=!1,$C(E,!1)}},i.appendChild(E);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let k=document.createElement("p");k.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),k.textContent=s("reportInfo.tip"),i.appendChild(k)}function $C(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(L+"-loading-spinner"),e.appendChild(n))}function PO(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=L+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function PO(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=L+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function _O(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=L+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Kd(s,e,t,r,a,i,o)},i.append(d)}var ra=null;async function YC(e,{srcUrl:t}){if(!Ts(e))return;if(!await Ks(e)){il("image_right_menu");return}if(!ra){A.error("rightMenu image ele not found",t,ra);return}if(ra.translationStatus!=="translating"){if(ra.hasTranslate){gi(ra);return}if(t!==ra.src)try{let r=new URL(t),a=new URL(ra.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){A.error("rightMenu image srcUrl not match",r,a);return}}catch(r){A.error("rightMenu image srcUrl not invalid",t,ra.src,r);return}Aa(e,ra,!0,"image_right_menu")}}function ZC(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ra=e.target)})}var JC=0;function dl(e){let t=Date.now();if(t-JC<2e3||(JC=t,_O()))return;let n=`${L}-modal-root`,r=`${L}-modal`,a=document.getElementById(n),i=`${L}-modal-title`,o=`${L}-modal-body`,s=`${L}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,cl)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${L}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=be();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=L+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=L+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,cl)}setTimeout(()=>{RO()},100)}function _O(){let e=document.querySelector(`#${L}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${L}-modal`)?.style.display=="block":!1}function RO(){let e=document.querySelector(`#${L}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-modal`);t&&(t.style.display="block")}}function cl(e,t=!1){let n=document.querySelector(`#${L}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${L}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function XC(e,t,n="sameLang",r,a,i,o){let s=De.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await cn();qt({...l,sameLangCheck:!1}),o(i,!0)})}var QC=0;async function ew(e){let t=Date.now();if(t-QC<2e3||(QC=t,FO()))return;let n=`${L}-toast-root`,r=`${L}-toast`,a=document.getElementById(n),i=`${L}-toast-msg`,o=`${L}-toast-content`,s=`${L}-toast-hidden`,u,l,c=()=>{l&&y4(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,y4);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${L}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=be();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=L+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",T=>{T.target==m&&(m.style.display="none")}),e(m,u,l,y4)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{IO()},100),d=setTimeout(c,2500)}function FO(){let e=document.querySelector(`#${L}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${L}-toast`)?.style.display=="flex":!1}function IO(){let e=document.querySelector(`#${L}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-toast`);t&&(t.style.display="flex")}}function y4(e,t=!1){let n=document.querySelector(`#${L}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${L}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function x4(e,t,n,r="retry",a,i,o,s,u){let l=De.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=Je.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${L}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",tw({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(L1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(tc)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(R1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)},v4(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=Je.sanitize(m),p.onclick=()=>{nw(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=Je.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await qt(g),tw({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=L+"-btn",p.innerHTML+=Je.sanitize(m),s.appendChild(p)}function tw(e){Hr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{A.error("send content message request failed",e,n)});let t=new CustomEvent(Tr,{detail:e});globalThis.document.dispatchEvent(t)}var rw=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},iw=[()=>{jn.unbind()}],aw=[...iw],BO=Kn(async()=>{await Na()},50),OO=Kn(async()=>{await Ac()},50),NO=Kn(async()=>{await X2()},50),jO=Kn(async()=>{await J2()},50),ow=Kn(e=>{Jt({method:e,data:{trigger:"userscript_menu"}})},50),T4=!1,UO=Pn(()=>{let e=globalThis.getSelection()?.toString().trim();!T4&&e&&e.length>0?_i({text:e}):_i({})},50),HO=()=>{T4=!0,setTimeout(()=>{T4=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(rw)return;rw=!0,X()||W2(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener($+"DocumentMessageUser",cw),document.addEventListener($+"DocumentMessageUpdateUser",dw),document.addEventListener($+"ChangeSuccessService",mw.bind(null,t)),document.addEventListener($+"ChangeService",pw.bind(null,t)),document.addEventListener(hn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(Hl,Ft.showToastByEvent.bind(null,t)),document.addEventListener(Ti,Ft.showModal.bind(null,t)),n.addEventListener($+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(i1,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(o1,Ft.eventUpload.bind(null,t)),n.addEventListener(Wl,a=>{$e()||Zf(a,t)}),n.addEventListener(u1,Lv),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",UO),document.addEventListener("contextmenu",HO),ZC(),$e()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),X()&&($e()||n.addEventListener(Tr,Ft.handlePopupInit)),$e()||Qa.rootIframe(Xl).handleAsk("throttleRequest",C6)};function pl(e,t){WO(),Ft.SetupDomListenersForOnce(t,e),X()&&($e()||(Jf(e.config),GO(e.config))),Jn()&&eC(e,t),it()&&Jf(e.config)}Ft.handlePopupInit=e=>{zC()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===jl&&Hr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){cl(n);return}let r=n.getAttribute(`data-${L}-event`);r&&Fe(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${L}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),sw({method:"retryFailedParagraphs"}),cl(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${L}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}dl(x4.bind(null,t,o,i,s));return}}};async function qO(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await qt(e)}async function zO(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await qt(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;ew(XC.bind(null,e,a,i))}catch(r){A.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;dl(x4.bind(null,e,a,i,o))}catch(r){A.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?dl(Kd.bind(null,"manga",e)):r=="webReport"&&dl(Kd.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;A.debug("receive third party message",n);let r=C4()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")sw({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")kc(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")qO();else if(i.type==="toggleEnableInputTranslation")zO();else if(i.type==="syncAppSetting")uw(i.data);else if(i.type==="translatePage")VO(i.data);else if(i.type==="getAsyncTranslationServiceList")a=dc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=I0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await $O(i.data,o)}catch(s){ml(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await KO(o,i.data)}catch(s){ml(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await Ec(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await Dx();else if(i.type==="sharePage")Zf({detail:i.data},r);else if(i.type==="switchTranslationMode")S4(i.data);else if(i.type=="getAsyncAiAssistants")a=await V9();else if(i.type=="addAiAssistantAsync")a=await x0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await x0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await E4(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await w4(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Oo("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await Vb(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await nb());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await rb());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await $b(i.data));else if(i.type==="openPopup")Vd({...i.data,open:!0});else if(i.type==="closePopup")Vd({...i.data,open:!1});else if(i.type==="togglePopup")Vd({...i.data});else if(i.type==="getPageStatusAsync")a=Ke();else if(i.type==="restorePage")YO();else if(i.type==="getPageLanguageAsync")a=pt();else if(i.type==="showFloatBallGuide")DC();else if(i.type=="getAsyncDetectAndSetLanguage")a=await lw(i.data);else if(i.type=="setFloatBallActive")RC(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;ho(r,s,o,!0)}else ow(i.type);a!=null&&i.id&&ml(i.type,a,i.id)}}catch(i){A.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{Yd()},10)};Ft.handleSecurityPolicyViolation=e=>{le.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Fe(n.name,[{name:n.name}],{...e})};function WO(){aw.forEach(e=>{e()}),aw=iw}function GO(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Pc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=De(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Hm,title:De(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:qm,title:De(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:jm,title:De(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Um,title:De(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===jm?BO():i.id===Um?OO():i.id===qm?NO():i.id===Hm?jO():ow(i.id)},i.key)}}function sw(e){Hr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{A.error("send content message request failed",e,n)});let t=new CustomEvent(Tr,{detail:e});globalThis.document.dispatchEvent(t)}async function uw(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await We(Te(),t)}async function VO(e){let t=await uw(e);Gn(t)}function ml(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function $O({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Zt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function KO(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Zt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof j?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof j?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function YO(){Ke()!=="Original"&&Br()}var Zi={};async function A4(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ie({text:t,minLength:200,pageLangs:[Ct(),"en"]});return er(n),n}async function gw(e){let t=0,n=0;In("Translating");let r=pt(),a=hc(),i=[...document.querySelectorAll(".source-text")];if(Fo(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");wt(c.node,"id",c.id+""),d&&(Io(d,c.id)?.remove(),d.appendChild(bu(e,c.id,!0)))}),await s(l),await st(0)}}catch(u){throw u}finally{t=0,n=0,In("Translated")}async function s(u){await Zt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Io(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=Je.sanitize(`${l.message}`),Zi[m]={ok:!1,sentence:d},hw(u,e,t,n,l)):c&&(g.innerHTML=Je.sanitize(c.text),Zi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function fw(e){let t=0,n=0;In("Translating"),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Zi),a=[],i=[];for(let o of r){let s=Zi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Zi[o],c.appendChild(bu(e,o)),i.push(s.sentence))}}}try{await Zt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Io(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=Je.sanitize(`${o.message}`),Zi[l]={ok:!1,sentence:u},hw(i,e,t,n,o)):s&&(d.innerHTML=Je.sanitize(s.text),Zi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,In("Translated")}}function k4(){In("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function hw(e,t,n,r,a){if(!(a instanceof j))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(hn,{detail:i}))}var Zd={};async function bw(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ie({text:t,pageLangs:["en"]});return er(n),n}async function yw(e){In("Translating"),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Zd),n=[];for(let r of t){let a=Zd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Kl}='${r}']`);o&&o.remove(),n.push(a)}}try{Iu(),await H0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{In("Translated")}}function xw(e){Object.values(Zd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=ns(e,t.targetNodes);ri(e,i,r,t.rootNodes||[]),Ui(t.targetNodes)}else n==="dual"&&Ui(t.targetNodes)}),In("Original")}async function vw(e){In("Translating");let t=Ys(),n=Gr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;es(l,e);let c=l.body;if(!c)continue;Vr(l.documentElement,e.state.translationMode);let d=sn(e);d.isModifyImage=!1;let m=[];await Sa({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await st(0)}o(a),In("Translated");function o(u){document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ro(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=O0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:j0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await hf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),Zd[p.id]=p)}H0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}var re=null,Jd={},Cs,Tw=!1;async function Yd(){yo.clearStrictTicks();let e=await We(Te(),{}),t=await Bn();if(A.debug("init page ctx",e),Tv(e),e.rule.pageType=="subtitleBuilder"){A4();return}if(e.rule.pageType=="ebookBuilder"){bw();return}if(Cs||(Cs=e.state.translationTheme),e.rule.urlChangeDelay&&await st(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await uN(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let s=ja(),u=document.createElement("meta");u.name=L+"-options-url",u.content=s;try{document.head?.appendChild?.(u)}catch(l){A.warn("inject options url failed",l)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(u=>{let l=document.createElement("meta");l.name=u,l.content=e.rule.globalMeta[u],document.head?.appendChild?.(l)}),e.rule.initialGlobalAttributes&&ix(document.body,e.rule.initialGlobalAttributes),pN(e),e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let s=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");s&&(s.value="helloworld",s.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),s.dispatchEvent(new Event("change")))}Tw||(Tw=!0,$e()&&e.rule.useIframePostMessage&&await a6());let n=e.sourceLanguage;n==="auto"?n=await Sw():er(n);let r=t9(e,n);if(r&&(e=await We(Te(),{translationMode:r})),e.rule.isInjectMeta)try{let s=await Oo(n,e.targetLanguage),u=document.createElement("meta");u.name=L+"-meta",u.content=As(JSON.stringify(s)),document.head?.appendChild?.(u)}catch(s){A.warn("inject meta failed",s)}let a=new URL(e.url);(a.searchParams.get("imt_refresh_rule")==="1"||a.searchParams.get("imt_refresh_rule")==="true")&&await d4(),await mN(e);let o=dN(e);if(!o&&!e.isTranslateExcludeUrl&&(A.debug(`detect page language: ${e.url} ${n}`),Ba(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto"||o6(n,e.config.translationLanguagePattern)&&(o=!0,A.debug(`match language pattern ${n}, auto translate`))),e.rule.pageType=="ebookBuilder"&&(o=!1),e.rule.pageType!=="pdfReader"&&$s(t)&&Gh(e),o)re.state.isAutoTranslate=!0,Gn(re);else if(A.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Ba(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Jd[e.translationService]||(Jd[e.translationService]=!0,$e()||Qg(e).catch(s=>{A.warn("init translation engine error",s)})))}}async function r4(e){if(Ke()==="Original"){let t={};Cs&&(t.translationTheme=Cs),re&&(t={...re.state,...t});let n=await We(Te(),t);if(e?.trigger=="right_menu"&&Li(n?.rule)){let r=Mi(n.rule);if(r){bo(!0,r||Te());return}}await Gn({...re,sourceProgram:"html"},e)}else(Ke()==="Translated"||Ke()==="Error")&&Br()}async function ZO(){let e=fo();re||(re=await We(Te(),{})),e=="Original"?AS(re):(kS(),dr("Original"))}function JO(){_9("enableEditTranslation",!re?.config.enableEditTranslation);let e=g0("enableEditTranslation");re&&(re.config.enableEditTranslation=e);let t=Vu();t&&(t.ctx.config.enableEditTranslation=e),document.querySelectorAll(`font.notranslate.${Lt}`).forEach(n=>{e?n.setAttribute("contenteditable","true"):n.removeAttribute("contenteditable")})}async function XO(){if(re=await We(Te(),{}),re.rule.pageType=="ebookBuilder")return yw(re);if(re.rule.pageType=="subtitleBuilder")return fw(re);Dv()}async function a4(e){if(Ke()==="Original"){re=await We(Te(),{}),Cs||(Cs=re.state.translationTheme);let t="mask";re.state.translationTheme==="opacity"&&(t="opacity"),re=await We(Te(),{translationTheme:t}),await Gn(re,e)}else if(Ke()==="Translated"){let t="mask";re?.state?.translationTheme==="opacity"&&(t="opacity");let n=Xy().filter(i=>i.contentDocument?.body).map(i=>i.contentDocument.body),r=[re.mainFrame,...n],a=re?.state.translationTheme;for(let i of r){let o=iy(i,uo,!0);a==="mask"||a==="opacity"?o!=="none"?wt(i,uo,"none",!0):wt(i,uo,t,!0):o!=="mask"&&o!=="opacity"?wt(i,uo,t,!0):wt(i,uo,"none",!0)}}}async function Sw(){let e=await We(Te(),{});return e.rule.pageType=="subtitleBuilder"?A4():kv(e)}function QO(e){Ke()==="Original"?gw(e):k4()}function eN(e){Ke()==="Original"?cd(e):cs()}async function Br(){Xs(""),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"restorePage",payload:{}})}));let e=await We(Te(),{});if(e.rule.pageType=="subtitleBuilder"){k4();return}else e.rule.pageType=="ebookBuilder"&&xw(e);cs()}function tN(e){e.config.sameLangCheck&&!(e.rule.detectParagraphLanguage||e.state.isDetectParagraphLanguage)&&pt()==e.targetLanguage&&document.dispatchEvent(new CustomEvent(Hl,{detail:{type:"sameLang"}}))}async function Gn(e,t){if(xa("initial"),tN(e),Ke()!=="Original"&&await Br(),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Jd[e.translationService]||(Jd[e.translationService]=!0,$e()||Qg(e).catch(r=>{A.warn("init translation engine error",r)})),e.specialAiAssistant=_r(e,e.translationService,!0),cN(e,t),e.rule.pageType=="subtitleBuilder"){QO(e),Xs("yes");return}if(e.rule.pageType=="ebookBuilder"){vw(e),Xs("yes");return}eN(e),Xs("yes")}async function nN(e,t){let n=re?.translationService;if(Ke()==="Original"||n!=e){re=await We(Te(),{translationService:e});let r=De(re.config.interfaceLanguage,`translationServices.${e}`);e.startsWith("custom-ai")&&(r=re.config.translationServices[e].name);let a=De(re.config.interfaceLanguage,"tempChangeTransToService",{service:r});S0({text:a}),await Gn(re,t)}else{Br();let r=await Tn(),a={url:Te(),config:r,state:{}},i=await Yt(a);re=await We(Te(),{translationService:i.translationService})}}async function rN(e){Ke()==="Original"?await D4(e):(Ke()==="Translated"||Ke()==="Error")&&(re=await We(Te(),{}),re.state.translationArea!=="main"?await D4(e):Br())}async function D4(e){re=await We(Te(),{translationArea:"main"}),await Gn(re,e)}async function Cw(e){re=await We(Te(),{translationArea:"body"}),await Gn(re,e)}async function lw(e){let t=[Ct(),"en"],n=await Ie({text:e,pageLangs:t});return er(n),n}async function i4(e){let t=await We(Te(),{}),n=t.state.translationMode=="dual"?"translation":"dual";if(t=await We(Te(),{translationMode:n}),Ke()==="Original"){Gn(t,e);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(n)}async function S4(e){if(re=await We(Te(),{translationMode:e}),Fe("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...re,sourceLanguage:"unknown"}),Ke()==="Original"){Gn(re);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function aN(e){if(Ke()==="Original")await Cw(e);else if(Ke()==="Translated"||Ke()==="Error"){let t={};re&&re.state&&(t=re.state),re=await We(Te(),t),re.state.translationArea!=="body"?(re.state.translationArea="body",re=await We(Te(),re.state),await Gn(re,e)):Br()}}async function ww(e){re=await We(Te(),{translationStartMode:"immediate"}),await Gn(re,e)}async function iN(e){Ke()==="Original"?await ww(e):(Ke()==="Translated"||Ke()==="Error")&&Br()}async function Ew(){let e=await We(Te(),{});if(!ze(e.url,e.config.inputStyleBlockUrls)){let n=be().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;Sn(document,n,$l)}e.rule.pageType&&e.rule.pageType!=="html"||e.config.enableInputTranslation&&$h(e)}function C4(){return re}async function We(e,t){let n=Object.keys(t);if(re){let r={url:e,config:re.config,state:{...re.state,...t}};re=await Yt(r)}else{let r=await Tn(),a=t;n.length===0&&(a=void 0),re=await Yt({url:e,config:r,state:a})}return re.state&&re.state.translationService&&(re.translationService=re.state.translationService),re.state&&re.state.targetLanguage&&(re.targetLanguage=re.state.targetLanguage),re}async function oN(){let e=await Mt()||{},t=e.generalRule||{},n=t["subtitleRule.add"]||{},r=!n.preTranslation;await qt({...e,generalRule:{...t,"subtitleRule.add":{...n,preTranslation:r}}}),r?S0({text:De(re.config.interfaceLanguage,"videoSubtitlePreTranslationOn")}):S0({text:De(re.config.interfaceLanguage,"videoSubtitlePreTranslationOff")}),setTimeout(()=>{window.location.reload()},1e3)}async function zd(){let e=await Tn();g0("enableEditTranslation")!=null&&(e.enableEditTranslation=g0("enableEditTranslation"));let t;re&&re.state&&(t=re.state);let n={url:Te(),config:e,state:t},r=await Yt(n);return r.state&&r.state.translationService&&(r.translationService=r.state.translationService),re=r,$f(re),await sN(re),r}async function sN(e){let t=await Bn();pl(e,window),$s(t)&&Gh(e),e.config.enableInputTranslation&&$h(e)}function uN(e,t=3e3){return new Promise((n,r)=>{let a=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,i=setInterval(()=>{e.every(s=>document.querySelector(s)!==null)&&(clearInterval(i),a&&clearTimeout(a),n(null))},50)})}async function cw(e){let t=e.detail,n=Mt();ft(t)&&await fC(t.token,n,qt),mt.set(dt,t);let r=await mt.get($m,!1);mt.set($m,!1),document.dispatchEvent(new CustomEvent($+"DocumentMessageUserResult",{detail:r?"close":"success"})),Qs()}function dw(e){A.debug("update user info",e);let t=e.detail;mt.set(dt,t),Qs()}async function mw(e){let t=await Mt();if(t.translationService)return;let n=e.config.translationService,r=await v4(e,n);if(e.translationService!==r){if(!r){Fe("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}],e);return}t.translationService=r,qt(t),e.translationService=r,Fe("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}],e)}}async function pw(e,t){let n=t.detail;if(!e.rule.allowInnerInvoke)return;let r=n.translateService;if(!r)return;let a=n.provider,i=await Mt();i.translationService=r,a&&i?.translationServices?.[r]?.provider&&(i.translationServices[r].provider=a),i.translationServiceChangedbyUserAt=new Date().toISOString(),qt(i)}async function v4(e,t,n=!0,r){let a=r||e.rule.detectionServiceOrder||["google","bing","transmart","yandex"];return a.sort((i,o)=>i===t?n?-1:1:o===t?n?1:-1:0),await nx(a,e)}async function nw(e){let t=await Mt();t.translationService=e,await qt(t);let n=await We(Te(),{});n.translationService=e,await Gn(n)}var L4={interfaceLanguage:"",targetLanguage:"",translationService:"",aiAssistantIds:[],subtitleTranslateService:"",inputTranslationService:"",mouseHoverTranslationService:""};async function w4(e,t){let n=await Mt(),r=!1;return Object.keys(L4).forEach(a=>{let i=t[a];i!=null&&((a==="targetLanguage"||a==="interfaceLanguage")&&(i=Q(i)),n[a]=i,r=!0)}),r&&(c4(n),await qt(n),e=await zd()),E4(e)}function E4(e){let t=e.config,n={};return Object.keys(L4).forEach(r=>{t[r]!=null&&(n[r]=t[r])}),n}function lN(e){We(Te(),e),ml("syncContextState",e),e?.targetLanguage&&_i({targetLanguage:e.targetLanguage})}function cN(e,t){let n={};t&&t.trigger&&(n.trigger=t.trigger),Fe("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Fe("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()});let r=e.config.translationServices?.[e.translationService];r.assistantId&&Fe("assistant_translate_page",[{name:"assistant_translate_page",params:{...n,ai_assistant:r.assistantId,ai_assistant_use:e.specialAiAssistant?.id||"common"}}],{...e,sourceLanguage:pt()})}function dN(e){let t=new URL(e.url).searchParams;return!!e.config.autoTranslateParams?.find(r=>{let a=t.get(r)||"";if(r=="crosearch_translate"){let i=t.get("output_locale");i&&(re.state.targetLanguage=Q(i),re.targetLanguage=Q(i))}return["1","true"].includes(a)})||e.state.isAutoTranslate||e.isTranslateUrl}async function mN(e){let t=Nl+"_set_";try{let n=[];new URL(location.href).searchParams.forEach((i,o)=>{o.startsWith(t)&&n.push([o,i])});let a={};for(let[i,o]of n){let s=i.replace(t,"");if(L4[s]==null)return;a[s]=o}if(!Object.keys(a).length)return;await w4(e,a)}catch(n){A.error(n)}}async function pN(e){let t=e.config.arxivRule;if(!t?.matches||!ze(e.url,t.matches))return;let r=document.querySelector(t.injectContainerSelector);if(!r)return;let o=new URL(e.url).pathname.split("/").pop();for(let s of t.detectOrders)try{await V({url:`${s}/`+o,responseType:"HEAD",method:"HEAD"});let u=document.createElement("li");u.innerHTML=`${De(e.config.interfaceLanguage,"viewWithImmersiveTranslate")}`,r.appendChild(u);break}catch{}}function gN(e,{text:t,trigger:n}){let r=document.activeElement;r&&(r.tagName!=="INPUT"&&r.tagName!=="TEXTAREA"&&!r.isContentEditable||Qh(e,window,t,n))}function fN(e,{translation_service:t}){Fe("change_translate_service",[{name:"change_translate_service",params:{translation_service:t}}],e)}function hN(e,{key:t,events:n}){Fe(t,n,e)}H2({detectCurrentPageLanguage:Sw,ensureSwitchTranslationMode:i4,restorePage:Br,retryFailedParagraphs:XO,switchTranslationMode:S4,toggleTranslateManga:ZO,toggleTranslatePage:r4,toggleTranslateTheMainPage:rN,toggleTranslateTheWholePage:aN,toggleTranslationMask:a4,toggleEnableEditTranslation:JO,toggleVideoSubtitlePreTranslation:oN,translatePage:Gn,translatePageWithTranslationService:nN,translateTheMainPage:D4,translateTheWholePage:Cw,translateToThePageEndImmediately:ww,toggleTranslateToThePageEndImmediately:iN,updateGlobalContext:zd,getPureGlobalContext:C4,getIsDulSubtitle:Nx,updateContextState:lN,inputSelectedTextTranslate:gN,reportTranslateService:fN,popupEventReport:hN,updateFloatBallEnable:HC,translateSelectImage:YC});var bN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return x("div",{style:a,onClick:s=>{s?.target?.id===`${L}-modal-overlay`&&r()},id:`${L}-modal-overlay`,children:x("div",{style:i,children:t})})},Aw=bN;function kw(e){let t=we(null),[n,r]=z(468),[a,i]=z(!1);if(Y(()=>{let s=new URL(Zm(e.trigger,e.interfaceLang)),u=l=>{if(l.origin===s.origin)try{let c=l.data;if(!c)return;let d=JSON.parse(c);d.type==="imtClosePricing"?e.onClose():d.type==="imtPricingResize"?d.height&&r(d.height):d.type==="imtGetUserToken"&&t.current?.contentWindow?.postMessage(JSON.stringify({type:"imtUpdateToken",token:e.ctx.user?.token}),l.origin)}catch{}};return globalThis.addEventListener("message",u),()=>{globalThis.removeEventListener("message",u)}},[t,e.ctx]),Y(()=>{e.visible||i(!1)},[e.visible]),!e.visible)return null;let o={padding:0,borderRadius:26,transform:"unset",left:"calc(50% - 370px)",top:`calc(50% - ${n/2}px)`,width:740,height:n,overflow:"hidden"};return globalThis.innerWidth<740&&(o={padding:0,borderRadius:26,transform:"unset",left:16,top:`calc(50% - ${n/2}px)`,width:"calc(100% - 32px)",height:n,overflow:"hidden"}),x(Aw,{isOpen:e.visible,closeModal:e.onClose,contentStyles:o,children:[x("iframe",{ref:t,src:Zm(e.trigger,e.interfaceLang),style:{width:"100%",height:"100%"},onLoad:()=>{i(!0)}}),x(yN,{hidden:a})]})}function yN(e){return e.hidden?null:x("div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:x("div",{className:`${L}-loading-spinner`,style:"width: 30px !important; height: 30px !important;"})})}function xN(e){let{showPricingModal:t,trigger:n,setShowPricingModal:r}=RS(e.ctx);return x(Et,{children:[x(vN,{ctx:e.ctx}),x(kw,{ctx:e.ctx,visible:t,trigger:n,interfaceLang:e.ctx.config.interfaceLanguage,onClose:()=>{r(!1)}})]})}function vN({ctx:e}){let{hoveImage:t,hoveImageStyles:n,containerRef:r,activeRef:a,imageStatus:i,handleTranslate:o}=_S(e),{t:s}=ie(),{enable:u,handleCloseConfirm:l}=FS(e),c=he(()=>s(i==="translating"?"imageState.translating":i==="success"?"imageTools.resetImage":"imageTools.translateImage"),[t,i]);return u?x("div",{class:"imt-image-tools notranslate",ref:r,style:n,children:t&&x(Et,{children:[x(mn,{enableMobile:!0,text:c,tipStyle:{left:"unset",right:0,transform:"unset"},position:"top",children:x("div",{class:"imt-image-translate-button",onClick:()=>{o(t)},children:[x(Rt,{type:"logo",className:"logo",style:{width:14,height:14}}),x(Rt,{type:"translated",className:"translated-icon",hidden:i!=="success"})]})}),x(TN,{imgElement:t,setActive:d=>{a.current=d},onCloseConfirm:l})]})}):null}function TN(e){let{t}=ie(),[n,r]=z(!1),[a,i]=z({});Y(()=>{let s=document.querySelector("#monica-content-root"),u=()=>{if(!e.imgElement)return i({});let l=e.imgElement.getBoundingClientRect(),c=s?56:16,d=l.right-c-360,m=l.top+l.height-100,p=globalThis.innerHeight-260;i({position:"fixed",left:d+"px",top:Math.min(m,p)+"px"})};return u(),globalThis.addEventListener("scroll",u),()=>{globalThis.removeEventListener("scroll",u)}},[e.imgElement]);let o=ja()+"#manga";return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"close-button",onClick:()=>{e.setActive(!0),r(!0)},children:x(SN,{})}),x(Gd,{title:t("closeImageTools.title"),visible:n,settingUrl:o,onClose:()=>{e.setActive(!1),r(!1)},style:a,onCloseConfirm:e.onCloseConfirm})]})}function Dw(e){if(!Ts(e))return null;let n=L+"-image-tools";if(document.getElementById(n))return;let r=[le.IMMERSIVE_TRANSLATE_PICO_CSS,le.IMMERSIVE_TRANSLATE_COMMON_CSS,le.IMMERSIVE_TRANSLATE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_IMAGE_TOOLS_CSS].join(` -`);rs({id:n,parent:document.body,ctx:e,Component:xN,props:{ctx:e},style:r,isInsertMount:!0})}function SN(){return x("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_14556_6069)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.8"})}),x("defs",{children:x("clipPath",{id:"clip0_14556_6069",children:x("rect",{width:"14",height:"14",fill:"white"})})})]})}async function Lw(e){if(!e){let n=await Tn();e=await Yt({config:n,url:Te()})}if(e.config.debug?A.setLevel("debug"):A.setLevel("info"),!e.isTranslateExcludeUrl){if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){if(e.rule.isInjectMeta){try{let n=await Oo("auto",e.targetLanguage),r=document.createElement("meta");r.name=L+"-meta",r.content=As(JSON.stringify(n)),document.head?.appendChild?.(r)}catch(n){A.warn("inject meta failed",n)}if(e.rule.isInjectOptionsUrl){let n=ja(),r=document.createElement("meta");r.name=L+"-options-url",r.content=n;try{document.head?.appendChild?.(r)}catch(a){A.warn("inject options url failed",a)}}if(e.rule.isInjectVersion){let n=Wt(),r=document.createElement("meta");r.name=L+"-version",r.content=n;try{document.head?.appendChild?.(r)}catch(a){A.warn("inject version failed",a)}}}}else await Yd();$e()||await qC().catch(n=>{A.error(`init popup page error: ${n}`)}),$e()||dC()}await Ew(),Dw(e)}var gl={capture:!0,once:!0,passive:!0},_w=()=>document.readyState==="interactive"||document.readyState==="complete",CN=e=>document.readyState===e,fl=(e,t)=>CN(e)||_w()?(t(e),!0):!1,wN=()=>new Promise(e=>{fl("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},gl)}),EN=()=>new Promise(e=>{fl("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},gl)}),AN=()=>new Promise(e=>{fl("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},gl)}),Mw=()=>new Promise(e=>{fl("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},gl)}),Pw=()=>new Promise(e=>{fl("load",e)||window.addEventListener("load",()=>{e("load")},gl)}),Rw={};Object.defineProperties(Rw,{state:{get:function(){return document.readyState}},loading:{get:function(){return wN()}},interactive:{get:function(){return EN()}},complete:{get:function(){return AN()}},window:{get:function(){return Pw()}},load:{get:function(){return Pw()}},domready:{get:function(){return Mw()}},dom:{get:function(){return Mw()}},ready:{get:function(){return _w()}}});var Fw=Rw;var Iw={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function kN(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function DN(e){if(typeof e!="function")throw new Error(Iw.NOT_FUNCTION)}var M4=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:r=!1,verbose:a=!1,backoffFactor:i=1,backoffMaxInterval:o,message:s=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=r,this._isWaiting=!1,this._isResolved=!1,this._verbose=a,this._userMessage=s,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=i,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),DN(t),this._executeFn=kN(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${Iw.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=L+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",$d(s,e,t,r,a,i,o)},i.append(d)}var ta=null;async function KC(e,{srcUrl:t}){if(!Ts(e))return;if(!await $s(e)){al("image_right_menu");return}if(!ta){A.error("rightMenu image ele not found",t,ta);return}if(ta.translationStatus!=="translating"){if(ta.hasTranslate){pi(ta);return}if(t!==ta.src)try{let r=new URL(t),a=new URL(ta.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){A.error("rightMenu image srcUrl not match",r,a);return}}catch(r){A.error("rightMenu image srcUrl not invalid",t,ta.src,r);return}Ea(e,ta,!0,"image_right_menu")}}function YC(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(ta=e.target)})}var ZC=0;function cl(e){let t=Date.now();if(t-ZC<2e3||(ZC=t,RO()))return;let n=`${L}-modal-root`,r=`${L}-modal`,a=document.getElementById(n),i=`${L}-modal-title`,o=`${L}-modal-body`,s=`${L}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,ll)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${L}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=be();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=L+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=L+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,ll)}setTimeout(()=>{FO()},100)}function RO(){let e=document.querySelector(`#${L}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${L}-modal`)?.style.display=="block":!1}function FO(){let e=document.querySelector(`#${L}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-modal`);t&&(t.style.display="block")}}function ll(e,t=!1){let n=document.querySelector(`#${L}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${L}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function JC(e,t,n="sameLang",r,a,i,o){let s=De.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await cn();qt({...l,sameLangCheck:!1}),o(i,!0)})}var XC=0;async function QC(e){let t=Date.now();if(t-XC<2e3||(XC=t,IO()))return;let n=`${L}-toast-root`,r=`${L}-toast`,a=document.getElementById(n),i=`${L}-toast-msg`,o=`${L}-toast-content`,s=`${L}-toast-hidden`,u,l,c=()=>{l&&h4(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,h4);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${L}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=be();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=L+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",T=>{T.target==m&&(m.style.display="none")}),e(m,u,l,h4)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{BO()},100),d=setTimeout(c,2500)}function IO(){let e=document.querySelector(`#${L}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${L}-toast`)?.style.display=="flex":!1}function BO(){let e=document.querySelector(`#${L}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${L}-toast`);t&&(t.style.display="flex")}}function h4(e,t=!1){let n=document.querySelector(`#${L}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${L}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function b4(e,t,n,r="retry",a,i,o,s,u){let l=De.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=Je.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${L}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",ew({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(k1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(ec)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(P1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(le.OPTIONS_URL)},y4(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=Je.sanitize(m),p.onclick=()=>{tw(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=Je.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await qt(g),ew({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=L+"-btn",p.innerHTML+=Je.sanitize(m),s.appendChild(p)}function ew(e){Ur(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{A.error("send content message request failed",e,n)});let t=new CustomEvent(Tr,{detail:e});globalThis.document.dispatchEvent(t)}var nw=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},aw=[()=>{jn.unbind()}],rw=[...aw],OO=Kn(async()=>{await Oa()},50),NO=Kn(async()=>{await Ec()},50),jO=Kn(async()=>{await Z2()},50),UO=Kn(async()=>{await Y2()},50),iw=Kn(e=>{Jt({method:e,data:{trigger:"userscript_menu"}})},50),x4=!1,HO=Mn(()=>{let e=globalThis.getSelection()?.toString().trim();!x4&&e&&e.length>0?Pi({text:e}):Pi({})},50),qO=()=>{x4=!0,setTimeout(()=>{x4=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(nw)return;nw=!0,X()||q2(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener($+"DocumentMessageUser",lw),document.addEventListener($+"DocumentMessageUpdateUser",cw),document.addEventListener($+"ChangeSuccessService",dw.bind(null,t)),document.addEventListener($+"ChangeService",mw.bind(null,t)),document.addEventListener(Un,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(Ul,Ft.showToastByEvent.bind(null,t)),document.addEventListener(vi,Ft.showModal.bind(null,t)),n.addEventListener($+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(r1,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(a1,Ft.eventUpload.bind(null,t)),n.addEventListener(zl,a=>{$e()||Zf(a,t)}),n.addEventListener(o1,kv),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",HO),document.addEventListener("contextmenu",qO),YC(),$e()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),X()&&($e()||n.addEventListener(Tr,Ft.handlePopupInit)),$e()||Xa.rootIframe(Jl).handleAsk("throttleRequest",T6)};function ml(e,t){GO(),Ft.SetupDomListenersForOnce(t,e),X()&&($e()||(Jf(e.config),VO(e.config))),Jn()&&QS(e,t),it()&&Jf(e.config)}Ft.handlePopupInit=e=>{qC()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Nl&&Ur(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){ll(n);return}let r=n.getAttribute(`data-${L}-event`);r&&Re(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${L}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),ow({method:"retryFailedParagraphs"}),ll(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${L}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}cl(b4.bind(null,t,o,i,s));return}}};async function zO(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await qt(e)}async function WO(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await qt(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;QC(JC.bind(null,e,a,i))}catch(r){A.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;cl(b4.bind(null,e,a,i,o))}catch(r){A.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?cl($d.bind(null,"manga",e)):r=="webReport"&&cl($d.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;A.debug("receive third party message",n);let r=T4()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")ow({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")Ac(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")zO();else if(i.type==="toggleEnableInputTranslation")WO();else if(i.type==="syncAppSetting")sw(i.data);else if(i.type==="translatePage")$O(i.data);else if(i.type==="getAsyncTranslationServiceList")a=cc(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=F0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await KO(i.data,o)}catch(s){dl(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await YO(o,i.data)}catch(s){dl(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await wc(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await Ax();else if(i.type==="sharePage")Zf({detail:i.data},r);else if(i.type==="switchTranslationMode")v4(i.data);else if(i.type=="getAsyncAiAssistants")a=await W9();else if(i.type=="addAiAssistantAsync")a=await y0("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await y0("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await C4(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await S4(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Oo("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await Wb(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await eb());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await tb());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await Gb(i.data));else if(i.type==="openPopup")Gd({...i.data,open:!0});else if(i.type==="closePopup")Gd({...i.data,open:!1});else if(i.type==="togglePopup")Gd({...i.data});else if(i.type==="getPageStatusAsync")a=Ke();else if(i.type==="restorePage")ZO();else if(i.type==="getPageLanguageAsync")a=pt();else if(i.type==="showFloatBallGuide")kC();else if(i.type=="getAsyncDetectAndSetLanguage")a=await uw(i.data);else if(i.type=="setFloatBallActive")_C(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;ho(r,s,o,!0)}else iw(i.type);a!=null&&i.id&&dl(i.type,a,i.id)}}catch(i){A.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{Kd()},10)};Ft.handleSecurityPolicyViolation=e=>{le.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Re(n.name,[{name:n.name}],{...e})};function GO(){rw.forEach(e=>{e()}),rw=aw}function VO(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Mc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=De(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Um,title:De(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Hm,title:De(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Nm,title:De(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:jm,title:De(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Nm?OO():i.id===jm?NO():i.id===Hm?jO():i.id===Um?UO():iw(i.id)},i.key)}}function ow(e){Ur(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{A.error("send content message request failed",e,n)});let t=new CustomEvent(Tr,{detail:e});globalThis.document.dispatchEvent(t)}async function sw(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await He(ye(),t)}async function $O(e){let t=await sw(e);Gn(t)}function dl(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function KO({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Zt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function YO(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Zt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof j?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof j?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function ZO(){Ke()!=="Original"&&Ir()}var Zi={};async function w4(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ne({text:t,minLength:200,pageLangs:[Ct(),"en"]});return er(n),n}async function pw(e){let t=0,n=0;Fn("Translating");let r=pt(),a=fc(),i=[...document.querySelectorAll(".source-text")];if(Fo(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");wt(c.node,"id",c.id+""),d&&(Io(d,c.id)?.remove(),d.appendChild(hu(e,c.id,!0)))}),await s(l),await ot(0)}}catch(u){throw u}finally{t=0,n=0,Fn("Translated")}async function s(u){await Zt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Io(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=Je.sanitize(`${l.message}`),Zi[m]={ok:!1,sentence:d},fw(u,e,t,n,l)):c&&(g.innerHTML=Je.sanitize(c.text),Zi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function gw(e){let t=0,n=0;Fn("Translating"),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Zi),a=[],i=[];for(let o of r){let s=Zi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Zi[o],c.appendChild(hu(e,o)),i.push(s.sentence))}}}try{await Zt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Io(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=Je.sanitize(`${o.message}`),Zi[l]={ok:!1,sentence:u},fw(i,e,t,n,o)):s&&(d.innerHTML=Je.sanitize(s.text),Zi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Fn("Translated")}}function E4(){Fn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function fw(e,t,n,r,a){if(!(a instanceof j))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(Un,{detail:i}))}var Yd={};async function hw(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ne({text:t,pageLangs:["en"]});return er(n),n}async function bw(e){Fn("Translating"),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Yd),n=[];for(let r of t){let a=Yd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${$l}='${r}']`);o&&o.remove(),n.push(a)}}try{Fu(),await U0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Fn("Translated")}}function yw(e){Object.values(Yd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=ns(e,t.targetNodes);ni(e,i,r,t.rootNodes||[]),Ui(t.targetNodes)}else n==="dual"&&Ui(t.targetNodes)}),Fn("Original")}async function xw(e){Fn("Translating");let t=Ks(),n=Wr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;es(l,e);let c=l.body;if(!c)continue;Gr(l.documentElement,e.state.translationMode);let d=sn(e);d.isModifyImage=!1;let m=[];await Ta({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await ot(0)}o(a),Fn("Translated");function o(u){document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ro(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=B0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:N0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await hf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),Yd[p.id]=p)}U0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}var re=null,Zd={},Cs,vw=!1;async function Kd(){yo.clearStrictTicks();let e=await He(ye(),{}),t=await In();if(A.debug("init page ctx",e),xv(e),e.rule.pageType=="subtitleBuilder"){w4();return}if(e.rule.pageType=="ebookBuilder"){hw();return}if(Cs||(Cs=e.state.translationTheme),e.rule.urlChangeDelay&&await ot(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await lN(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let s=Na(),u=document.createElement("meta");u.name=L+"-options-url",u.content=s;try{document.head?.appendChild?.(u)}catch(l){A.warn("inject options url failed",l)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(u=>{let l=document.createElement("meta");l.name=u,l.content=e.rule.globalMeta[u],document.head?.appendChild?.(l)}),e.rule.initialGlobalAttributes&&rx(document.body,e.rule.initialGlobalAttributes),gN(e),e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let s=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");s&&(s.value="helloworld",s.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),s.dispatchEvent(new Event("change")))}vw||(vw=!0,$e()&&e.rule.useIframePostMessage&&await n6());let n=e.sourceLanguage;n==="auto"?n=await Tw():er(n);let r=Qy(e,n);if(r&&(e=await He(ye(),{translationMode:r})),e.rule.isInjectMeta)try{let s=await Oo(n,e.targetLanguage),u=document.createElement("meta");u.name=L+"-meta",u.content=As(JSON.stringify(s)),document.head?.appendChild?.(u)}catch(s){A.warn("inject meta failed",s)}let a=new URL(e.url);(a.searchParams.get("imt_refresh_rule")==="1"||a.searchParams.get("imt_refresh_rule")==="true")&&await l4(),await pN(e);let o=mN(e);if(!o&&!e.isTranslateExcludeUrl&&(A.debug(`detect page language: ${e.url} ${n}`),Ia(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto"||a6(n,e.config.translationLanguagePattern)&&(o=!0,A.debug(`match language pattern ${n}, auto translate`))),e.rule.pageType=="ebookBuilder"&&(o=!1),e.rule.pageType!=="pdfReader"&&Vs(t)&&Gh(e),o)re.state.isAutoTranslate=!0,Gn(re);else if(A.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Ia(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Zd[e.translationService]||(Zd[e.translationService]=!0,$e()||Qg(e).catch(s=>{A.warn("init translation engine error",s)})))}}async function t4(e){if(Ke()==="Original"){let t={};Cs&&(t.translationTheme=Cs),re&&(t={...re.state,...t});let n=await He(ye(),t);if(e?.trigger=="right_menu"&&Di(n?.rule)){let r=Li(n.rule);if(r){bo(!0,r||ye());return}}await Gn({...re,sourceProgram:"html"},e)}else(Ke()==="Translated"||Ke()==="Error")&&Ir()}async function JO(){let e=fo();re||(re=await He(ye(),{})),e=="Original"?wS(re):(ES(),dr("Original"))}function XO(){M9("enableEditTranslation",!re?.config.enableEditTranslation);let e=p0("enableEditTranslation");re&&(re.config.enableEditTranslation=e);let t=Gu();t&&(t.ctx.config.enableEditTranslation=e),document.querySelectorAll(`font.notranslate.${Lt}`).forEach(n=>{e?n.setAttribute("contenteditable","true"):n.removeAttribute("contenteditable")})}async function QO(){if(re=await He(ye(),{}),re.rule.pageType=="ebookBuilder")return bw(re);if(re.rule.pageType=="subtitleBuilder")return gw(re);Av()}async function n4(e){if(Ke()==="Original"){re=await He(ye(),{}),Cs||(Cs=re.state.translationTheme);let t="mask";re.state.translationTheme==="opacity"&&(t="opacity"),re=await He(ye(),{translationTheme:t}),await Gn(re,e)}else if(Ke()==="Translated"){let t="mask";re?.state?.translationTheme==="opacity"&&(t="opacity");let n=Zy().filter(i=>i.contentDocument?.body).map(i=>i.contentDocument.body),r=[re.mainFrame,...n],a=re?.state.translationTheme;for(let i of r){let o=ry(i,uo,!0);a==="mask"||a==="opacity"?o!=="none"?wt(i,uo,"none",!0):wt(i,uo,t,!0):o!=="mask"&&o!=="opacity"?wt(i,uo,t,!0):wt(i,uo,"none",!0)}}}async function Tw(){let e=await He(ye(),{});return e.rule.pageType=="subtitleBuilder"?w4():Ev(e)}function eN(e){Ke()==="Original"?pw(e):E4()}function tN(e){Ke()==="Original"?ld(e):cs()}async function Ir(){Js(""),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"restorePage",payload:{}})}));let e=await He(ye(),{});if(e.rule.pageType=="subtitleBuilder"){E4();return}else e.rule.pageType=="ebookBuilder"&&yw(e);cs()}function nN(e){e.config.sameLangCheck&&!(e.rule.detectParagraphLanguage||e.state.isDetectParagraphLanguage)&&pt()==e.targetLanguage&&document.dispatchEvent(new CustomEvent(Ul,{detail:{type:"sameLang"}}))}async function Gn(e,t){if(ba("initial"),nN(e),Ke()!=="Original"&&await Ir(),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Zd[e.translationService]||(Zd[e.translationService]=!0,$e()||Qg(e).catch(r=>{A.warn("init translation engine error",r)})),e.specialAiAssistant=ya(e,e.translationService,!0),dN(e,t),e.rule.pageType=="subtitleBuilder"){eN(e),Js("yes");return}if(e.rule.pageType=="ebookBuilder"){xw(e),Js("yes");return}tN(e),Js("yes")}async function rN(e,t){let n=re?.translationService;if(Ke()==="Original"||n!=e){re=await He(ye(),{translationService:e});let r=De(re.config.interfaceLanguage,`translationServices.${e}`);e.startsWith("custom-ai")&&(r=re.config.translationServices[e].name);let a=De(re.config.interfaceLanguage,"tempChangeTransToService",{service:r});T0({text:a}),await Gn(re,t)}else{Ir();let r=await vn(),a={url:ye(),config:r,state:{}},i=await Yt(a);re=await He(ye(),{translationService:i.translationService})}}async function aN(e){Ke()==="Original"?await A4(e):(Ke()==="Translated"||Ke()==="Error")&&(re=await He(ye(),{}),re.state.translationArea!=="main"?await A4(e):Ir())}async function A4(e){re=await He(ye(),{translationArea:"main"}),await Gn(re,e)}async function Sw(e){re=await He(ye(),{translationArea:"body"}),await Gn(re,e)}async function uw(e){let t=[Ct(),"en"],n=await Ne({text:e,pageLangs:t});return er(n),n}async function r4(e){let t=await He(ye(),{}),n=t.state.translationMode=="dual"?"translation":"dual";if(t=await He(ye(),{translationMode:n}),Ke()==="Original"){Gn(t,e);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(n)}async function v4(e){if(re=await He(ye(),{translationMode:e}),Re("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...re,sourceLanguage:"unknown"}),Ke()==="Original"){Gn(re);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function iN(e){if(Ke()==="Original")await Sw(e);else if(Ke()==="Translated"||Ke()==="Error"){let t={};re&&re.state&&(t=re.state),re=await He(ye(),t),re.state.translationArea!=="body"?(re.state.translationArea="body",re=await He(ye(),re.state),await Gn(re,e)):Ir()}}async function Cw(e){re=await He(ye(),{translationStartMode:"immediate"}),await Gn(re,e)}async function oN(e){Ke()==="Original"?await Cw(e):(Ke()==="Translated"||Ke()==="Error")&&Ir()}async function ww(){let e=await He(ye(),{});if(!We(e.url,e.config.inputStyleBlockUrls)){let n=be().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;Tn(document,n,Vl)}e.rule.pageType&&e.rule.pageType!=="html"||e.config.enableInputTranslation&&$h(e)}function T4(){return re}async function He(e,t){let n=Object.keys(t);if(re){let r={url:e,config:re.config,state:{...re.state,...t}};re=await Yt(r)}else{let r=await vn(),a=t;n.length===0&&(a=void 0),re=await Yt({url:e,config:r,state:a})}return re.state&&re.state.translationService&&(re.translationService=re.state.translationService),re.state&&re.state.targetLanguage&&(re.targetLanguage=re.state.targetLanguage),re}async function sN(){let e=await Mt()||{},t=e.generalRule||{},n=t["subtitleRule.add"]||{},r=!n.preTranslation;await qt({...e,generalRule:{...t,"subtitleRule.add":{...n,preTranslation:r}}}),r?T0({text:De(re.config.interfaceLanguage,"videoSubtitlePreTranslationOn")}):T0({text:De(re.config.interfaceLanguage,"videoSubtitlePreTranslationOff")}),setTimeout(()=>{window.location.reload()},1e3)}async function qd(){let e=await vn();p0("enableEditTranslation")!=null&&(e.enableEditTranslation=p0("enableEditTranslation"));let t;re&&re.state&&(t=re.state);let n={url:ye(),config:e,state:t},r=await Yt(n);return r.state&&r.state.translationService&&(r.translationService=r.state.translationService),re=r,$f(re),await uN(re),r}async function uN(e){let t=await In();ml(e,window),Vs(t)&&Gh(e),e.config.enableInputTranslation&&$h(e)}function lN(e,t=3e3){return new Promise((n,r)=>{let a=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,i=setInterval(()=>{e.every(s=>document.querySelector(s)!==null)&&(clearInterval(i),a&&clearTimeout(a),n(null))},50)})}async function lw(e){let t=e.detail,n=Mt();ft(t)&&await gC(t.token,n,qt),dt.set(ct,t);let r=await dt.get($m,!1);dt.set($m,!1),document.dispatchEvent(new CustomEvent($+"DocumentMessageUserResult",{detail:r?"close":"success"})),Xs()}function cw(e){A.debug("update user info",e);let t=e.detail;dt.set(ct,t),Xs()}async function dw(e){let t=await Mt();if(t.translationService)return;let n=e.config.translationService,r=await y4(e,n);if(e.translationService!==r){if(!r){Re("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}],e);return}t.translationService=r,qt(t),e.translationService=r,Re("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}],e)}}async function mw(e,t){let n=t.detail;if(!e.rule.allowInnerInvoke)return;let r=n.translateService;if(!r)return;let a=n.provider,i=await Mt();i.translationService=r,a&&i?.translationServices?.[r]?.provider&&(i.translationServices[r].provider=a),i.translationServiceChangedbyUserAt=new Date().toISOString(),qt(i)}async function y4(e,t,n=!0,r){let a=r||e.rule.detectionServiceOrder||["google","bing","transmart","yandex"];return a.sort((i,o)=>i===t?n?-1:1:o===t?n?1:-1:0),await ex(a,e)}async function tw(e){let t=await Mt();t.translationService=e,await qt(t);let n=await He(ye(),{});n.translationService=e,await Gn(n)}var k4={interfaceLanguage:"",targetLanguage:"",translationService:"",aiAssistantIds:[],subtitleTranslateService:"",inputTranslationService:"",mouseHoverTranslationService:""};async function S4(e,t){let n=await Mt(),r=!1;return Object.keys(k4).forEach(a=>{let i=t[a];i!=null&&((a==="targetLanguage"||a==="interfaceLanguage")&&(i=Q(i)),n[a]=i,r=!0)}),r&&(u4(n),await qt(n),e=await qd()),C4(e)}function C4(e){let t=e.config,n={};return Object.keys(k4).forEach(r=>{t[r]!=null&&(n[r]=t[r])}),n}function cN(e){He(ye(),e),dl("syncContextState",e),e?.targetLanguage&&Pi({targetLanguage:e.targetLanguage})}function dN(e,t){let n={};t&&t.trigger&&(n.trigger=t.trigger),Re("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Re("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()});let r=e.config.translationServices?.[e.translationService];r.assistantId&&Re("assistant_translate_page",[{name:"assistant_translate_page",params:{...n,ai_assistant:r.assistantId,ai_assistant_use:e.specialAiAssistant?.id||"common"}}],{...e,sourceLanguage:pt()})}function mN(e){let t=new URL(e.url).searchParams;return!!e.config.autoTranslateParams?.find(r=>{let a=t.get(r)||"";if(r=="crosearch_translate"){let i=t.get("output_locale");i&&(re.state.targetLanguage=Q(i),re.targetLanguage=Q(i))}return["1","true"].includes(a)})||e.state.isAutoTranslate||e.isTranslateUrl}async function pN(e){let t=Ol+"_set_";try{let n=[];new URL(location.href).searchParams.forEach((i,o)=>{o.startsWith(t)&&n.push([o,i])});let a={};for(let[i,o]of n){let s=i.replace(t,"");if(k4[s]==null)return;a[s]=o}if(!Object.keys(a).length)return;await S4(e,a)}catch(n){A.error(n)}}async function gN(e){let t=e.config.arxivRule;if(!t?.matches||!We(e.url,t.matches))return;let r=document.querySelector(t.injectContainerSelector);if(!r)return;let o=new URL(e.url).pathname.split("/").pop();for(let s of t.detectOrders)try{await V({url:`${s}/`+o,responseType:"HEAD",method:"HEAD"});let u=document.createElement("li");u.innerHTML=`${De(e.config.interfaceLanguage,"viewWithImmersiveTranslate")}`,r.appendChild(u);break}catch{}}function fN(e,{text:t,trigger:n}){let r=document.activeElement;r&&(r.tagName!=="INPUT"&&r.tagName!=="TEXTAREA"&&!r.isContentEditable||Jh(e,window,t,n))}function hN(e,{translation_service:t}){Re("change_translate_service",[{name:"change_translate_service",params:{translation_service:t}}],e)}function bN(e,{key:t,events:n}){Re(t,n,e)}j2({detectCurrentPageLanguage:Tw,ensureSwitchTranslationMode:r4,restorePage:Ir,retryFailedParagraphs:QO,switchTranslationMode:v4,toggleTranslateManga:JO,toggleTranslatePage:t4,toggleTranslateTheMainPage:aN,toggleTranslateTheWholePage:iN,toggleTranslationMask:n4,toggleEnableEditTranslation:XO,toggleVideoSubtitlePreTranslation:sN,translatePage:Gn,translatePageWithTranslationService:rN,translateTheMainPage:A4,translateTheWholePage:Sw,translateToThePageEndImmediately:Cw,toggleTranslateToThePageEndImmediately:oN,updateGlobalContext:qd,getPureGlobalContext:T4,getIsDulSubtitle:Bx,updateContextState:cN,inputSelectedTextTranslate:fN,reportTranslateService:hN,popupEventReport:bN,updateFloatBallEnable:UC,translateSelectImage:KC});var yN=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return x("div",{style:a,onClick:s=>{s?.target?.id===`${L}-modal-overlay`&&r()},id:`${L}-modal-overlay`,children:x("div",{style:i,children:t})})},Ew=yN;function Aw(e){let t=we(null),[n,r]=z(468),[a,i]=z(!1);if(Y(()=>{let s=new URL(Zm(e.trigger,e.interfaceLang)),u=l=>{if(l.origin===s.origin)try{let c=l.data;if(!c)return;let d=JSON.parse(c);d.type==="imtClosePricing"?e.onClose():d.type==="imtPricingResize"?d.height&&r(d.height):d.type==="imtGetUserToken"&&t.current?.contentWindow?.postMessage(JSON.stringify({type:"imtUpdateToken",token:e.ctx.user?.token}),l.origin)}catch{}};return globalThis.addEventListener("message",u),()=>{globalThis.removeEventListener("message",u)}},[t,e.ctx]),Y(()=>{e.visible||i(!1)},[e.visible]),!e.visible)return null;let o={padding:0,borderRadius:26,transform:"unset",left:"calc(50% - 370px)",top:`calc(50% - ${n/2}px)`,width:740,height:n,overflow:"hidden"};return globalThis.innerWidth<740&&(o={padding:0,borderRadius:26,transform:"unset",left:16,top:`calc(50% - ${n/2}px)`,width:"calc(100% - 32px)",height:n,overflow:"hidden"}),x(Ew,{isOpen:e.visible,closeModal:e.onClose,contentStyles:o,children:[x("iframe",{ref:t,src:Zm(e.trigger,e.interfaceLang),style:{width:"100%",height:"100%"},onLoad:()=>{i(!0)}}),x(xN,{hidden:a})]})}function xN(e){return e.hidden?null:x("div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:x("div",{className:`${L}-loading-spinner`,style:"width: 30px !important; height: 30px !important;"})})}function vN(e){let{showPricingModal:t,trigger:n,setShowPricingModal:r}=PS(e.ctx);return x(Et,{children:[x(TN,{ctx:e.ctx}),x(Aw,{ctx:e.ctx,visible:t,trigger:n,interfaceLang:e.ctx.config.interfaceLanguage,onClose:()=>{r(!1)}})]})}function TN({ctx:e}){let{hoveImage:t,hoveImageStyles:n,containerRef:r,activeRef:a,imageStatus:i,handleTranslate:o}=MS(e),{t:s}=ie(),{enable:u,handleCloseConfirm:l}=_S(e),c=he(()=>s(i==="translating"?"imageState.translating":i==="success"?"imageTools.resetImage":"imageTools.translateImage"),[t,i]);return u?x("div",{class:"imt-image-tools notranslate",ref:r,style:n,children:t&&x(Et,{children:[x(mn,{enableMobile:!0,text:c,tipStyle:{left:"unset",right:0,transform:"unset"},position:"top",children:x("div",{class:"imt-image-translate-button",onClick:()=>{o(t)},children:[x(Rt,{type:"logo",className:"logo",style:{width:14,height:14}}),x(Rt,{type:"translated",className:"translated-icon",hidden:i!=="success"})]})}),x(SN,{imgElement:t,setActive:d=>{a.current=d},onCloseConfirm:l})]})}):null}function SN(e){let{t}=ie(),[n,r]=z(!1),[a,i]=z({});Y(()=>{let s=document.querySelector("#monica-content-root"),u=()=>{if(!e.imgElement)return i({});let l=e.imgElement.getBoundingClientRect(),c=s?56:16,d=l.right-c-360,m=l.top+l.height-100,p=globalThis.innerHeight-260;i({position:"fixed",left:d+"px",top:Math.min(m,p)+"px"})};return u(),globalThis.addEventListener("scroll",u),()=>{globalThis.removeEventListener("scroll",u)}},[e.imgElement]);let o=Na()+"#manga";return x(Et,{children:[x("div",{title:t("floatBall.close"),class:"close-button",onClick:()=>{e.setActive(!0),r(!0)},children:x(CN,{})}),x(Wd,{title:t("closeImageTools.title"),visible:n,settingUrl:o,onClose:()=>{e.setActive(!1),r(!1)},style:a,onCloseConfirm:e.onCloseConfirm})]})}function kw(e){if(!Ts(e))return null;let n=L+"-image-tools";if(document.getElementById(n))return;let r=[le.IMMERSIVE_TRANSLATE_PICO_CSS,le.IMMERSIVE_TRANSLATE_COMMON_CSS,le.IMMERSIVE_TRANSLATE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS,le.IMMERSIVE_TRANSLATE_IMAGE_TOOLS_CSS].join(` +`);rs({id:n,parent:document.body,ctx:e,Component:vN,props:{ctx:e},style:r,isInsertMount:!0})}function CN(){return x("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_14556_6069)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.8"})}),x("defs",{children:x("clipPath",{id:"clip0_14556_6069",children:x("rect",{width:"14",height:"14",fill:"white"})})})]})}async function Dw(e){if(!e){let n=await vn();e=await Yt({config:n,url:ye()})}if(e.config.debug?A.setLevel("debug"):A.setLevel("info"),!e.isTranslateExcludeUrl){if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){if(e.rule.isInjectMeta){try{let n=await Oo("auto",e.targetLanguage),r=document.createElement("meta");r.name=L+"-meta",r.content=As(JSON.stringify(n)),document.head?.appendChild?.(r)}catch(n){A.warn("inject meta failed",n)}if(e.rule.isInjectOptionsUrl){let n=Na(),r=document.createElement("meta");r.name=L+"-options-url",r.content=n;try{document.head?.appendChild?.(r)}catch(a){A.warn("inject options url failed",a)}}if(e.rule.isInjectVersion){let n=Wt(),r=document.createElement("meta");r.name=L+"-version",r.content=n;try{document.head?.appendChild?.(r)}catch(a){A.warn("inject version failed",a)}}}}else await Kd();$e()||await HC().catch(n=>{A.error(`init popup page error: ${n}`)}),$e()||cC()}await ww(),kw(e)}var pl={capture:!0,once:!0,passive:!0},Pw=()=>document.readyState==="interactive"||document.readyState==="complete",wN=e=>document.readyState===e,gl=(e,t)=>wN(e)||Pw()?(t(e),!0):!1,EN=()=>new Promise(e=>{gl("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},pl)}),AN=()=>new Promise(e=>{gl("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},pl)}),kN=()=>new Promise(e=>{gl("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},pl)}),Lw=()=>new Promise(e=>{gl("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},pl)}),Mw=()=>new Promise(e=>{gl("load",e)||window.addEventListener("load",()=>{e("load")},pl)}),_w={};Object.defineProperties(_w,{state:{get:function(){return document.readyState}},loading:{get:function(){return EN()}},interactive:{get:function(){return AN()}},complete:{get:function(){return kN()}},window:{get:function(){return Mw()}},load:{get:function(){return Mw()}},domready:{get:function(){return Lw()}},dom:{get:function(){return Lw()}},ready:{get:function(){return Pw()}}});var Rw=_w;var Fw={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function DN(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function LN(e){if(typeof e!="function")throw new Error(Fw.NOT_FUNCTION)}var D4=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:r=!1,verbose:a=!1,backoffFactor:i=1,backoffMaxInterval:o,message:s=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=r,this._isWaiting=!1,this._isResolved=!1,this._verbose=a,this._userMessage=s,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=i,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),LN(t),this._executeFn=DN(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${Fw.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} ${this._lastError.message}`;let n=this.originalStacktraceError.stack;n&&(this._lastError.stack+=n.substring(n.indexOf(` -`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},Bw=(e,t)=>new M4(t).execute(e);async function Ow(e){try{let t=e.config.domReadyDetectTimeout;return await Bw(()=>{let r=e.mainFrame.innerText||"";if(ko(r,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:t!==void 0?t:3e3}),!0}catch(t){if($e())throw t;return A.debug("check dom element ready failed:",t,e),!0}}function Nw(){let e=document.querySelector(`meta[name=${L}-options]`);return!!(e&&e.getAttribute("content")==="true")}async function Uw(){if(!document.getElementById(L+"-status")){A.error("Could not find status element");return}await jw("local"),await jw("sync"),MN();let t=document.getElementById(L+"-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function LN(e,t){let n;try{n=JSON.parse(e.detail)}catch(a){A.error("parse detail failed",a);return}let r=n.id||"default";try{let a=n.data||{},i=await t(a),o={id:r,ok:!0,data:i};document.dispatchEvent(new CustomEvent(ql,{detail:JSON.stringify({...o,type:"answer"})}))}catch(a){let i={ok:!1,errorName:a.name,errorMessage:a.message,errorDetails:a.details||a.detail};document.dispatchEvent(new CustomEvent(ql,{detail:JSON.stringify({...i,id:r,type:"answer"})}))}}function MN(){document.addEventListener(Ul,r=>{let a=r;if(A.debug("document message",a),a&&a.detail){let i;try{i=JSON.parse(a.detail)}catch(o){A.error("parse detail failed",o);return}i.type==="ask"?i.method==="request"&&LN(a,V):i.type==="tell"&&i.method==="updateCommands"&&kc(i.data)}});let e=document.getElementById(L+"-manifest");if(!e){A.error("Could not find manifest element");return}let t=ne.runtime.getManifest();it()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById(`${L}-message`).addEventListener("change",r=>{try{let a=JSON.parse(r.target.value);a&&a.method==="removeStorageKey"&&a.data&&a.data.area&&a.data.keys&&ne.storage[a.data.area].remove(a.data.keys)}catch(a){A.error("parse message error",a)}})}async function jw(e){let t=document.getElementById(L+"-status"),n=document.getElementById(`${L}-${e}-storage`);if(n){A.debug("init storage");let r=await ne.storage[e].get(null);n.value=JSON.stringify(r),n.dispatchEvent(new Event("change")),n.addEventListener("change",a=>{try{let i=JSON.parse(a.target.value);ne.storage[e].set(i)}catch(i){A.error("save to storage error",i)}}),n.addEventListener("refresh-"+e,async a=>{let i=await ne.storage[e].get(null);n.value=JSON.stringify(i),A.debug("refresh ",e,"storage")})}else{A.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}function PN(){try{document.dispatchEvent(new Event(s1))}catch{}}function Hw(){Bl()||PN()}var qw=["textarea","input","button","select","option","iframe","strong","form","body"];async function _N(){Hw(),await lb();let e=await Pt();e.excludeTranslationHtmlTags&&(qw=e.excludeTranslationHtmlTags),_i({}),Je.addHook("beforeSanitizeElements",function(r,a,i){let o=(r.nodeName||"").toLowerCase();if(qw.includes(o)){let u=`<${o}>${r.textContent||""}`,l=document.createTextNode(u);return r.replaceWith(l),r}return r}),Je.addHook("uponSanitizeElement",function(r,a){let i=r.nodeName||"";/\d+$/.test(i)&&(a.allowedTags[a.tagName]=!0),lu(r.tagName)&&(a.allowedTags[r.tagName.toLowerCase()]=!0)}),Je.addHook("uponSanitizeAttribute",function(r,a){lu(r.tagName)&&(a.allowedAttributes[a.attrName.toLowerCase()]=!0)});let t=Te(),n=await Yt({config:e,url:t});Fe("init_page_daily",[{name:"init_page_daily"}],n),Fw.domready.then(()=>{if(n.isTranslateExcludeUrl&&Nw())A.debug("detect web options page"),pl(n,window),Uw();else{if(!n.config.enabled)return;if(n.rule.isInjectVersion){let a=Wt(),i=document.createElement("meta");i.name=L+"-version",i.content=a;try{document.head?.appendChild?.(i)}catch(o){A.warn("inject version failed",o)}}if(ze(n.url,n.config.blockUrls))return;pl(n,window),Ow(n).then(()=>{Lw(n).catch(a=>{a&&A.debug("translate page error",a.name,a.message,a)})}).catch(a=>{A.debug("can not detect a valid body: ",a)})}}).catch(r=>{r&&A.debug("translate dom ready detect error",r)})}_N().catch(e=>{A.debug("init error",e)});})(); +`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},Iw=(e,t)=>new D4(t).execute(e);async function Bw(e){try{let t=e.config.domReadyDetectTimeout;return await Iw(()=>{let r=e.mainFrame.innerText||"";if(ko(r,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:t!==void 0?t:3e3}),!0}catch(t){if($e())throw t;return A.debug("check dom element ready failed:",t,e),!0}}function Ow(){let e=document.querySelector(`meta[name=${L}-options]`);return!!(e&&e.getAttribute("content")==="true")}async function jw(){if(!document.getElementById(L+"-status")){A.error("Could not find status element");return}await Nw("local"),await Nw("sync"),PN();let t=document.getElementById(L+"-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function MN(e,t){let n;try{n=JSON.parse(e.detail)}catch(a){A.error("parse detail failed",a);return}let r=n.id||"default";try{let a=n.data||{},i=await t(a),o={id:r,ok:!0,data:i};document.dispatchEvent(new CustomEvent(Hl,{detail:JSON.stringify({...o,type:"answer"})}))}catch(a){let i={ok:!1,errorName:a.name,errorMessage:a.message,errorDetails:a.details||a.detail};document.dispatchEvent(new CustomEvent(Hl,{detail:JSON.stringify({...i,id:r,type:"answer"})}))}}function PN(){document.addEventListener(jl,r=>{let a=r;if(A.debug("document message",a),a&&a.detail){let i;try{i=JSON.parse(a.detail)}catch(o){A.error("parse detail failed",o);return}i.type==="ask"?i.method==="request"&&MN(a,V):i.type==="tell"&&i.method==="updateCommands"&&Ac(i.data)}});let e=document.getElementById(L+"-manifest");if(!e){A.error("Could not find manifest element");return}let t=ne.runtime.getManifest();it()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById(`${L}-message`).addEventListener("change",r=>{try{let a=JSON.parse(r.target.value);a&&a.method==="removeStorageKey"&&a.data&&a.data.area&&a.data.keys&&ne.storage[a.data.area].remove(a.data.keys)}catch(a){A.error("parse message error",a)}})}async function Nw(e){let t=document.getElementById(L+"-status"),n=document.getElementById(`${L}-${e}-storage`);if(n){A.debug("init storage");let r=await ne.storage[e].get(null);n.value=JSON.stringify(r),n.dispatchEvent(new Event("change")),n.addEventListener("change",a=>{try{let i=JSON.parse(a.target.value);ne.storage[e].set(i)}catch(i){A.error("save to storage error",i)}}),n.addEventListener("refresh-"+e,async a=>{let i=await ne.storage[e].get(null);n.value=JSON.stringify(i),A.debug("refresh ",e,"storage")})}else{A.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}function _N(){try{document.dispatchEvent(new Event(i1))}catch{}}function Uw(){Il()||_N()}var Hw=["textarea","input","button","select","option","iframe","strong","form","body"];async function RN(){Uw(),await sb();let e=await Pt();e.excludeTranslationHtmlTags&&(Hw=e.excludeTranslationHtmlTags),Pi({}),Je.addHook("beforeSanitizeElements",function(r,a,i){let o=(r.nodeName||"").toLowerCase();if(Hw.includes(o)){let u=`<${o}>${r.textContent||""}`,l=document.createTextNode(u);return r.replaceWith(l),r}return r}),Je.addHook("uponSanitizeElement",function(r,a){let i=r.nodeName||"";/\d+$/.test(i)&&(a.allowedTags[a.tagName]=!0),uu(r.tagName)&&(a.allowedTags[r.tagName.toLowerCase()]=!0)}),Je.addHook("uponSanitizeAttribute",function(r,a){uu(r.tagName)&&(a.allowedAttributes[a.attrName.toLowerCase()]=!0)});let t=ye(),n=await Yt({config:e,url:t});Re("init_page_daily",[{name:"init_page_daily"}],n),Rw.domready.then(()=>{if(n.isTranslateExcludeUrl&&Ow())A.debug("detect web options page"),ml(n,window),jw();else{if(!n.config.enabled)return;if(n.rule.isInjectVersion){let a=Wt(),i=document.createElement("meta");i.name=L+"-version",i.content=a;try{document.head?.appendChild?.(i)}catch(o){A.warn("inject version failed",o)}}if(We(n.url,n.config.blockUrls))return;ml(n,window),Bw(n).then(()=>{Dw(n).catch(a=>{a&&A.debug("translate page error",a.name,a.message,a)})}).catch(a=>{A.debug("can not detect a valid body: ",a)})}}).catch(r=>{r&&A.debug("translate dom ready detect error",r)})}RN().catch(e=>{A.debug("init error",e)});})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/docs/options/options.js b/docs/options/options.js index fa77092..146a304 100644 --- a/docs/options/options.js +++ b/docs/options/options.js @@ -1,4 +1,4 @@ -(()=>{var mE=Object.defineProperty;var gE=(e,t)=>{for(var n in t)mE(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-24T04:05:03.000Z",VERSION:"1.12.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var dE=Object.defineProperty;var mE=(e,t)=>{for(var n in t)dE(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-12-26T09:01:35.000Z",VERSION:"1.12.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,8 +5447,8 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};function Te(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var Se=Te();function Q(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):Se.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Ca(){return Se.PROD==="1"}function Wg(){return Se.PROD_API==="1"}function S2(){return Se.HAS_CSP_ERROR=="1"}function je(){if(Se.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function ts(){return Se.IMMERSIVE_TRANSLATE_SAFARI==="1"}function zc(){return typeof Deno<"u"}var oW=Te().PROD==="1",ns=Te().PROD!=="1";function Wc(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function _u(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}function Vg(){return Se.IMMERSIVE_TRANSLATE_JSSDK==="1"}var ne="immersiveTranslate",co="Immersive Translate",P="immersive-translate",Yc="imt",mo="immersivetranslate",w2="pdf/index.html";var et="immersivetranslate.com",fE=`https://config.${et}/`,cW=`https://app.${et}/`,$=Ca()||Wg()?`https://${et}/`:`https://test.${et}/`,rs=`https://dash.${et}/`,lt=Ca()||Wg()?`https://api2.${et}/`:`https://test-api2.${et}/`,Ru=`https://github.com/${P}/${P}/`,Xt=`https://s.${et}/`,dW=`https://onboarding.${et}/`,E2=ne+"DeeplGlobalState",Kg=ne+"BingGlobalState",Gg=ne+"YandexGlobalState",$g=ne+"BaiduQianfanGlobalConfigStorageKey",A2=ne+"SiliconCloudGlobalConfigStorageKey",k2=ne+"ZhipuGlobalConfigStorageKey",Zc="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",vi=ne+"GoogleAccessToken",Iu=ne+"AuthFlow",Jc=P+"-config-latest.json",Yg=ne+"AuthState",Qc=ne+"IframeMessage",mW=ne+"WaitForRateLimit",D2=ne+"DocumentMessageAsk",en=ne+"DocumentMessageTellThirdParty",In=ne+"showError",go=ne+"showModal",Xc=ne+"showToast",L2=ne+"DocumentMessageThirdPartyTell",M2=ne+"DocumentMessageEventUpload",gW=ne+"DocumentMessageTypeStopJsSDK",P2=ne+"DocumentMessageHandler",e0=ne+"DocumentSetFloatBallActive",t0=`${ne}Share`,n0=`${ne}ShowFloatBallGuide`,as=ne+"DocumentMessageTempEnableSubtitleChanged",Fu=`${ne}ToggleMouseHoverTranslateDirectly`,_2=`${ne}ReqDraft`,R2=`${ne}ResDraft`,hE=`${ne}Container`,I2=`${ne}SpecifiedContainer`,r0="buildinConfig",is="localConfig",Bu="openOptionsPage",Ou="translateMangaMenuId",Zg="openAboutPage",F2="translateLocalPdfFile",Nu="openEbookViewer",Uu="openEbookBuilder";var po=`${ne}PageTranslatedStatus`,ju=`${ne}MangaTranslatedStatus`,pW=`${ne}PageUrlChanged`,Hr=`${ne}ReceiveCommand`,B2=ne+"LastUseMouseHoverTime",Hu=ne+"LastUseInputTime",Lr=ne+"LastUseManualTranslatePageTime",fW=`${ne}PopupReceiveMessage`,fo=ne+"DocumentMessageEventTogglePopup",Ci=`${fE}default_config.json`,hW=`${ne}Mark`,br=`${ne}Root`,O2=`${ne}Walked`,bW=`data-${P}-walked`,N2=`${ne}Paragraph`,U2=`data-${P}-paragraph`,os=`data-${P}-translation-element-mark`,j2=`${ne}TranslationElementMark`,yW=`${ne}TranslatedMark`,Jg=`${P}-input-injected-css`,H2=`${ne}LoadingId`,Qg=`data-${P}-loading-id`,q2=`${ne}ErrorId`,a0=`data-${P}-error-id`,bE=`${ne}AtomicBlockMark`,z2=`${ne}ExcludeMark`,vW=`data-${P}-exclude-mark`,yE=`${ne}StayOriginalMark`,CW=`${ne}PreWhitespaceMark`,i0=`${ne}InlineMark`,W2=`${ne}BlockMark`,xW=`${ne}Left`,TW=`${ne}Right`,SW=`${ne}Width`,wW=`${ne}Height`,EW=`${ne}Top`,AW=`${ne}FontSize`,V2="lastRunTime";var kW=`${ne}GlobalStyleMark`,ss=["@","#"],o0=" --- ",K2=` -`,Kt=`${P}-target-wrapper`,DW=`${P}-pdf-target-container`,s0=`${P}-target-inner`,LW=`${P}-source-wrapper`,Xg=`${P}-target-translation-block-wrapper`,MW=`${P}-root-translation-theme`,us=`${ne}RootTranslationTheme`,G2=`${P}-target-translation-vertical-block-wrapper`,PW=`${P}-target-translation-pdf-block-wrapper`,$2=`${P}-target-translation-pre-whitespace`,ep=`${P}-target-translation-inline-wrapper`,tp=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],qu={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var u0=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],Y2=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",rs,rs+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],xi="zh-CN",zu=$+"docs/communities/",Z2=Ru+"issues/1809",J2=Ru+"issues/1179",l0={type:ne+"ChildFrameToRootFrameIdentifier"},np=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Za=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],Q2=["ctrl","alt","shift","cmd","command","option","control"],c0=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],d0=Ca()?rs+"#general":"http://localhost:8000/dist/userscript/options/#general",Wu="user_from_plugin",pt="user_info",ls=$+"accounts/login?from=plugin",rp=rs+"#general",X2=$+"accounts/login?from=plugin&return_url="+encodeURIComponent(rp),eb=ls+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",tb=ls+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Ti=$+"profile/",Vu=$+"auth/pricing/",Dn=$+"pricing/",vE=$+"download/",CE=$+"topup?type=open_ai&",xE=$+"topup?type=deepl&",nb=$+"topup?type=comics&",_W=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",rb=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",ab=vE+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",RW=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",m0=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",ap=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",IW=Ti+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",ib=Vu+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",ob=CE+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",sb=xE+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",ub=$+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",lb=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",ip=Ti+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",op=Vu+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",sp=Vu+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",Ku=Vu+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",cb=Vu+"?utm_source=extension&utm_medium=extension&utm_campaign=",Gu=$+"docs/usage/",up=$+"docs/communities/",$u=Te().TRANSLATE_FILE_URL,db=$u+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",mb=$u+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",gb=`${$u}download-subtitle/`,pb=`${$u}pdf-pro/`,Yu=`${$u}text/`,Ja=["deepl","openai","gemini","claude"],fb="G-BHWL0KMJB8",hb="7pr-olTJR6GKAjIW48UD0Q",Vc="G-MKMD9LWFTR",Kc="sitc4WmvShWYwfU0dANM3Q",Gc="G-V5H2F5MJFJ",$c="UBjpGOLISEaY5LVXNj3WvQ",bb="G-0LPWNREXBB",yb="JVF4YeOaTVyDV27CTLhPtQ";function vb(){return Vg()?[{measurementId:fb,apiSecret:hb}]:Ca?[{measurementId:Vc,apiSecret:Kc},{measurementId:Gc,apiSecret:$c}]:[{measurementId:Vc,apiSecret:Kc},{measurementId:Gc,apiSecret:$c}]}function Zu(){return Vg()?[`https://www.google-analytics.com/mp/collect?measurement_id=${fb}&api_secret=${hb}`]:Ca?[`https://www.google-analytics.com/mp/collect?measurement_id=${Vc}&api_secret=${Kc}`,`https://www.google-analytics.com/mp/collect?measurement_id=${Gc}&api_secret=${$c}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Vc}&api_secret=${Kc}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Gc}&api_secret=${$c}`]}var Ju=`https://analytics.${et}/collect`,FW=`${$}activities/components/image-pro`;var Cb="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",xb="0VmM83i2D1ICuYBf",g0=`[${Yc}-ctx-divider]`,p0=`${Yc}_context_preview`,Tb=`\u{1F44B} \u563F\uFF0C\u4F60\u53D1\u73B0\u4E86\u5F69\u86CB\uFF01 +}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};function Te(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var Se=Te();function Q(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):Se.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function va(){return Se.PROD==="1"}function zg(){return Se.PROD_API==="1"}function x2(){return Se.HAS_CSP_ERROR=="1"}function je(){if(Se.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function ts(){return Se.IMMERSIVE_TRANSLATE_SAFARI==="1"}function qc(){return typeof Deno<"u"}var sW=Te().PROD==="1",ns=Te().PROD!=="1";function zc(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function _u(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}function Wg(){return Se.IMMERSIVE_TRANSLATE_JSSDK==="1"}var ne="immersiveTranslate",co="Immersive Translate",P="immersive-translate",$c="imt",mo="immersivetranslate",T2="pdf/index.html";var et="immersivetranslate.com",pE=`https://config.${et}/`,dW=`https://app.${et}/`,$=va()||zg()?`https://${et}/`:`https://test.${et}/`,rs=`https://dash.${et}/`,lt=va()||zg()?`https://api2.${et}/`:`https://test-api2.${et}/`,Ru=`https://github.com/${P}/${P}/`,Xt=`https://s.${et}/`,mW=`https://onboarding.${et}/`,S2=ne+"DeeplGlobalState",Vg=ne+"BingGlobalState",Kg=ne+"YandexGlobalState",Gg=ne+"BaiduQianfanGlobalConfigStorageKey",w2=ne+"SiliconCloudGlobalConfigStorageKey",E2=ne+"ZhipuGlobalConfigStorageKey",Yc="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",vi=ne+"GoogleAccessToken",Iu=ne+"AuthFlow",Zc=P+"-config-latest.json",$g=ne+"AuthState",Jc=ne+"IframeMessage",gW=ne+"WaitForRateLimit",A2=ne+"DocumentMessageAsk",en=ne+"DocumentMessageTellThirdParty",or=ne+"showError",go=ne+"showModal",Qc=ne+"showToast",k2=ne+"DocumentMessageThirdPartyTell",D2=ne+"DocumentMessageEventUpload",pW=ne+"DocumentMessageTypeStopJsSDK",L2=ne+"DocumentMessageHandler",Xc=ne+"DocumentSetFloatBallActive",e0=`${ne}Share`,t0=`${ne}ShowFloatBallGuide`,as=ne+"DocumentMessageTempEnableSubtitleChanged",Fu=`${ne}ToggleMouseHoverTranslateDirectly`,M2=`${ne}ReqDraft`,P2=`${ne}ResDraft`,fE=`${ne}Container`,_2=`${ne}SpecifiedContainer`,n0="buildinConfig",is="localConfig",Bu="openOptionsPage",Ou="translateMangaMenuId",Yg="openAboutPage",R2="translateLocalPdfFile",Nu="openEbookViewer",Uu="openEbookBuilder";var po=`${ne}PageTranslatedStatus`,ju=`${ne}MangaTranslatedStatus`,fW=`${ne}PageUrlChanged`,jr=`${ne}ReceiveCommand`,I2=ne+"LastUseMouseHoverTime",Zg=ne+"LastUseInputTime",Dr=ne+"LastUseManualTranslatePageTime",hW=`${ne}PopupReceiveMessage`,fo=ne+"DocumentMessageEventTogglePopup",Ci=`${pE}default_config.json`,bW=`${ne}Mark`,hr=`${ne}Root`,F2=`${ne}Walked`,yW=`data-${P}-walked`,B2=`${ne}Paragraph`,O2=`data-${P}-paragraph`,os=`data-${P}-translation-element-mark`,N2=`${ne}TranslationElementMark`,vW=`${ne}TranslatedMark`,Jg=`${P}-input-injected-css`,U2=`${ne}LoadingId`,Qg=`data-${P}-loading-id`,j2=`${ne}ErrorId`,r0=`data-${P}-error-id`,hE=`${ne}AtomicBlockMark`,H2=`${ne}ExcludeMark`,CW=`data-${P}-exclude-mark`,bE=`${ne}StayOriginalMark`,xW=`${ne}PreWhitespaceMark`,a0=`${ne}InlineMark`,q2=`${ne}BlockMark`,TW=`${ne}Left`,SW=`${ne}Right`,wW=`${ne}Width`,EW=`${ne}Height`,AW=`${ne}Top`,kW=`${ne}FontSize`,z2="lastRunTime";var DW=`${ne}GlobalStyleMark`,ss=["@","#"],i0=" --- ",W2=` +`,Kt=`${P}-target-wrapper`,LW=`${P}-pdf-target-container`,o0=`${P}-target-inner`,MW=`${P}-source-wrapper`,Xg=`${P}-target-translation-block-wrapper`,PW=`${P}-root-translation-theme`,us=`${ne}RootTranslationTheme`,V2=`${P}-target-translation-vertical-block-wrapper`,_W=`${P}-target-translation-pdf-block-wrapper`,K2=`${P}-target-translation-pre-whitespace`,ep=`${P}-target-translation-inline-wrapper`,tp=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],Hu={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var s0=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],G2=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",rs,rs+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],xi="zh-CN",qu=$+"docs/communities/",$2=Ru+"issues/1809",Y2=Ru+"issues/1179",u0={type:ne+"ChildFrameToRootFrameIdentifier"},np=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ya=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],Z2=["ctrl","alt","shift","cmd","command","option","control"],l0=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],c0=va()?rs+"#general":"http://localhost:8000/dist/userscript/options/#general",zu="user_from_plugin",pt="user_info",ls=$+"accounts/login?from=plugin",rp=rs+"#general",J2=$+"accounts/login?from=plugin&return_url="+encodeURIComponent(rp),Q2=ls+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",X2=ls+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Ti=$+"profile/",Wu=$+"auth/pricing/",Dn=$+"pricing/",yE=$+"download/",vE=$+"topup?type=open_ai&",CE=$+"topup?type=deepl&",eb=$+"topup?type=comics&",RW=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",tb=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",nb=yE+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",IW=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",d0=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",ap=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",FW=Ti+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",rb=Wu+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",ab=vE+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",ib=CE+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",ob=$+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",sb=Dn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",ip=Ti+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",op=Wu+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",sp=Wu+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",Vu=Wu+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",ub=Wu+"?utm_source=extension&utm_medium=extension&utm_campaign=",Ku=$+"docs/usage/",up=$+"docs/communities/",Gu=Te().TRANSLATE_FILE_URL,lb=Gu+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",cb=Gu+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",db=`${Gu}download-subtitle/`,mb=`${Gu}pdf-pro/`,$u=`${Gu}text/`,Za=["deepl","openai","gemini","claude"],gb="G-BHWL0KMJB8",pb="7pr-olTJR6GKAjIW48UD0Q",Wc="G-MKMD9LWFTR",Vc="sitc4WmvShWYwfU0dANM3Q",Kc="G-V5H2F5MJFJ",Gc="UBjpGOLISEaY5LVXNj3WvQ",fb="G-0LPWNREXBB",hb="JVF4YeOaTVyDV27CTLhPtQ";function bb(){return Wg()?[{measurementId:gb,apiSecret:pb}]:va?[{measurementId:Wc,apiSecret:Vc},{measurementId:Kc,apiSecret:Gc}]:[{measurementId:Wc,apiSecret:Vc},{measurementId:Kc,apiSecret:Gc}]}function Yu(){return Wg()?[`https://www.google-analytics.com/mp/collect?measurement_id=${gb}&api_secret=${pb}`]:va?[`https://www.google-analytics.com/mp/collect?measurement_id=${Wc}&api_secret=${Vc}`,`https://www.google-analytics.com/mp/collect?measurement_id=${Kc}&api_secret=${Gc}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Wc}&api_secret=${Vc}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Kc}&api_secret=${Gc}`]}var Zu=`https://analytics.${et}/collect`,BW=`${$}activities/components/image-pro`;var yb="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",vb="0VmM83i2D1ICuYBf",m0=`[${$c}-ctx-divider]`,g0=`${$c}_context_preview`,Cb=`\u{1F44B} \u563F\uFF0C\u4F60\u53D1\u73B0\u4E86\u5F69\u86CB\uFF01 \u65E2\u7136\u88AB\u4F60\u53D1\u73B0\u4E86\uFF0C\u4E0D\u5982\u770B\u770B\u6211\u4EEC\u7684\u804C\u4F4D\uFF1F \u5173\u4E8E\u6211\u4EEC: @@ -5463,73 +5463,73 @@ select.text-gray-6 { \u6B22\u8FCE\u52A0\u5165\u6211\u4EEC\uFF01 \u{1F4EE} \u6295\u9012\u7B80\u5386: hr@immersivetranslate.com - \u{1FAE1} \u4E86\u89E3\u66F4\u591A: https://immersivetranslate.com/zh-Hans/docs/joinUs/`;(function(){function e(o){let s=document.getElementById(`${P}-${o}-storage`);if(!s)throw new Error("Storage element not found");let u=s.value,l={};if(u)try{l=JSON.parse(u)}catch(c){throw c}return l}function t(o){let s=document.getElementById(`${P}-${o}-storage`);if(!s)throw new Error("Storage element not found");s.dispatchEvent(new Event("refresh-"+o))}function n(o){return{refresh:()=>t(o),get:u=>{if(u===null)return Promise.resolve(e(o));let l=[],c=e(o);typeof u=="string"?l=[u]:Array.isArray(u)?l=u:l=Object.keys(u);let m={};for(let g of l)m[g]=c[g];return Promise.resolve(m)},set:u=>{let l=r(),c=e(o);for(let p in u)c[p]=u[p];let m=document.getElementById(`${P}-sync-storage`),g=document.getElementById(`${P}-local-storage`);if(!m||!g)throw new Error("Storage element not found");if(o==="sync"||l._isUserscript){m.value=JSON.stringify(c);let p=new Event("change");m.dispatchEvent(p)}return(o==="local"||l._isUserscript)&&(g.value=JSON.stringify(c),g.dispatchEvent(new Event("change"))),Promise.resolve()},remove:u=>{let l=r(),c=document.getElementById(`${P}-message`);if(!c)throw new Error("Message element not found");let m={method:"removeStorageKey",data:{area:o,keys:u}};return new Promise((g,p)=>{c.value=JSON.stringify(m);let f=new Event("change");c.dispatchEvent(f),l._isUserscript?setTimeout(()=>{c.value=JSON.stringify({...m,data:{...m.data,area:m.data.area==="sync"?"local":"sync"}}),c.dispatchEvent(new Event("change")),g(null)},10):g(null)})}}}function r(){let o=document.getElementById(P+"-manifest");if(!o)throw new Error("Manifest element not found");let s=o.value,u={};if(s){try{u=JSON.parse(s)}catch(l){throw l}return u}else return{}}function a(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}let i={storage:{local:n("local"),sync:n("sync")},runtime:{getManifest:r,lastError:null,getURL:o=>o},contextMenus:{update:()=>{}},i18n:{getAcceptLanguages:a}};globalThis.immersiveTranslateBrowserAPI=i})();var v0,Ue,kb,TE,Qu,Sb,Db,h0={},Lb=[],SE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Si(e,t){for(var n in t)e[n]=t[n];return e}function Mb(e){var t=e.parentNode;t&&t.removeChild(e)}function bo(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?v0.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return f0(e,o,r,a,null)}function f0(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++kb};return a==null&&Ue.vnode!=null&&Ue.vnode(i),i}function le(e){return e.children}function ho(e,t){this.props=e,this.context=t}function cs(e,t){if(t==null)return e.__?cs(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?f0(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=b[c])===null||g&&p.key==g.key&&p.type===g.type)b[c]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:C0}),n.__[e]}function O(e){return Xu=1,kE(Kb,e)}function kE(e,t,n){var r=el(ms++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Kb(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Gt,!Gt.u)){Gt.u=!0;var a=Gt.shouldComponentUpdate;Gt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,m!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function q(e,t){var n=el(ms++,3);!Ue.__s&&gp(n.__H,t)&&(n.__=e,n.i=t,Gt.__H.__h.push(n))}function tl(e,t){var n=el(ms++,4);!Ue.__s&&gp(n.__H,t)&&(n.__=e,n.i=t,Gt.__h.push(n))}function Ce(e){return Xu=5,te(function(){return{current:e}},[])}function te(e,t){var n=el(ms++,7);return gp(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ue(e,t){return Xu=8,te(function(){return e},t)}function we(e){var t=Gt.context[e.__c],n=el(ms++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Gt)),t.props.value):e.__}function DE(){for(var e;e=Vb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(x0),e.__H.__h.forEach(mp),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){typeof e.type!="function"||e.o||e.type===le?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Gt=null,Ub&&Ub(e)},Ue.__r=function(e){jb&&jb(e),ms=0;var t=(Gt=e.__c).__H;t&&(dp===Gt?(t.__h=[],Gt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=C0,n.__N=n.i=void 0})):(t.__h.forEach(x0),t.__h.forEach(mp),t.__h=[])),dp=Gt},Ue.diffed=function(e){Hb&&Hb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Vb.push(t)!==1&&Nb===Ue.requestAnimationFrame||((Nb=Ue.requestAnimationFrame)||LE)(DE)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==C0&&(n.__=n.__V),n.i=void 0,n.__V=C0})),dp=Gt=null},Ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach(x0),n.__h=n.__h.filter(function(r){return!r.__||mp(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Ue.__e(r,n.__v)}}),qb&&qb(e,t)},Ue.unmount=function(e){zb&&zb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{x0(r)}catch(a){t=a}}),n.__H=void 0,t&&Ue.__e(t,n.__v))};var Wb=typeof requestAnimationFrame=="function";function LE(e){var t,n=function(){clearTimeout(r),Wb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Wb&&(t=requestAnimationFrame(n))}function x0(e){var t=Gt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Gt=t}function mp(e){var t=Gt;e.__c=e.__(),Gt=t}function gp(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Kb(e,t){return typeof t=="function"?t(e):t}var nl;function Ep(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n9(e,t=","){return e.map(Ep).join(t)}var Ap=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function gs(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function S0(e,t="@media "){return t+wt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function wt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function Gb(e){return e}function al(){}var sn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function r9(e){return e.match(/[-=:;]/g)?.length||0}function vp(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(r9(e),15)<<18}var ME=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function kp({n:e,i:t,v:n=[]},r,a,i){e&&(e=Ep({n:e,i:t,v:n})),i=[...wt(i)];for(let s of n){let u=r.theme("screens",s);for(let l of wt(u&&S0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|vp(l):s=="dark"?1073741824:l[0]=="@"?vp(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~ME.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var Dp=new Map;function Cp(e){if(e.d){let t=[],n=pp(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?pp(r,i=>pp(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):fp(i,o)}return fp(o,i)})):r,"&"),r=>fp(r,e.n?"."+Ap(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function pp(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function fp(e,t){return e.replace(/&/g,t)}var $b=new Intl.Collator("en",{numeric:!0});function a9(e,t){for(var n=0,r=e.length;n>1;0>=i9(e[a],t)?n=a+1:r=a}return r}function i9(e,t){let n=e.p&sn.o;return n==(t.p&sn.o)&&(n==sn.b||n==sn.o)?0:e.p-t.p||e.o-t.o||$b.compare(Yb(e.n),Yb(t.n))||$b.compare(Zb(e.n),Zb(t.n))}function Yb(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Zb(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function hp(e,t){return Math.round(parseInt(e,16)*t)}function Qa(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[hp(e.substr(1,i),o),hp(e.substr(1+i,i),o),hp(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Lp(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},m){let g=[],p="",f=0,h=0;for(let v in o||{}){var y,b;let C=o[v];if(v[0]=="@"){if(!C)continue;if(v[1]=="a"){g.push(..._p(s,u,rl(""+C),m,u,l,c,!0));continue}if(v[1]=="l"){for(let x of wt(C))g.push(...i(x,{n:s,p:(y=sn[v[7]],u&~sn.o|y),r:v[7]=="d"?[]:l,i:c},m));continue}if(v[1]=="i"){g.push(...wt(C).map(x=>({p:-1,o:0,r:[],d:v+" "+x})));continue}if(v[1]=="k"){g.push({p:sn.d,o:0,r:[v],d:i(C,{p:sn.d},m).map(Cp).join("")});continue}if(v[1]=="f"){g.push(...wt(C).map(x=>({p:sn.d,o:0,r:[v],d:i(x,{p:sn.d},m).map(Cp).join("")})));continue}}if(typeof C!="object"||Array.isArray(C))v=="label"&&C?s=C+gs(JSON.stringify([u,c,o])):(C||C===0)&&(v=v.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),h+=1,f=Math.max(f,(b=v)[0]=="-"?0:r9(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+wt(C).map(x=>m.s(v,Mp(""+x,m.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let x=u;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(T,w)=>{let S=m.theme("screens",w);return S?(x|=67108864,S0(S,"")):T}),x|=vp(v)),g.push(...i(C,{n:s,p:x,r:[...l,v],i:c},m))}else g.push(...i(C,{p:u,r:[...l,v]},m))}return g.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(f||15,15),r:l,d:p}),g.sort(i9)}(e,kp(t,n,r,a),n)}function Mp(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?Qa(s):""+wt(s).filter(u=>Object(u)!==u)})}function Pp(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function T0(e,t,n=sn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,m,g){u={...u,i:u.i||g};let p=function(f,h){let y=Dp.get(f.n);return y?y(f,h):h.r(f.n,f.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:m,p:c}=kp(u,l,c,m),Pp(T0(rl(p),l,c,m,u.i),u.n)):Array.isArray(p)?p.map(f=>{var h,y;return{o:0,...f,r:[...wt(m),...wt(f.r)],p:(h=c,y=f.p??c,h&~sn.o|y)}}):Lp(p,u,l,c,m):[{c:Ep(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(a9(i,s),0,s);return i}function _p(e,t,n,r,a,i,o,s){return Pp((s?n.flatMap(u=>T0([u],r,a,i,o)):T0(n,r,a,i,o)).map(u=>u.p&sn.o&&(u.n||t==sn.b)?{...u,p:u.p&~sn.o|t,o:0}:u),e)}function PE(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=kp(i,o,t);return n&&_p(s,t,n,o,u,l,c,r)},Dp.set(e,a),e}function bp(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(_E),i:a}))}}function _E(e,t,n){return n.indexOf(e)==t}var Jb=new Map;function rl(e){let t=Jb.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&bp(n,r)),a=s+1};for(;s1?m.slice(0,-1)+gs(JSON.stringify([m,g])):m+"("+n9(g)+")",sn.a,g,/@$/.test(m))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Jb.set(e,t=r[0])}return t}function o9(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function s9(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?o9(e,t,n=>yp(n).trim()):t.filter(Boolean).reduce((n,r)=>n+yp(r),e?yp(e):"")}function yp(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=s9(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var nV=u9("@"),rV=u9("~");function u9(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return n9(rl(n+e+"("+s9(r,a)+")"))}}function xp(e,t){return Array.isArray(e)?Qb(o9(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Qb(e):[e]}var RE=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Qb(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=RE.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function l9(e,...t){var n;let r=xp(e,t),a=(r.find(i=>i.label)?.label||"css")+gs(JSON.stringify(r));return n=(i,o)=>Pp(r.flatMap(s=>Lp(s,i,o,sn.o)),a),Dp.set(a,n),a}var aV=new Proxy(function(e,t){return Xb("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Xb(t,n,r)}}});function Xb(e,t,n){return{toString(){return l9({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function oe(e,t,n){return[e,Tp(t,n)]}function Tp(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Sp(n,1)}):n=>e||{[n[1]]:Sp(n,2)}}function Sp(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function se(e,t,n,r){return[e,IE(t,n,r)]}function IE(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=c9(e||a[1]),s=i.theme(o,a.$$)??Ta(a.$$,o,i);if(s!=null)return a._=Sp(a,0,s),r(a,i,o)}}function pn(e,t={},n){return[e,FE(t,n)]}function FE(e={},t){return(n,r)=>{let{section:a=c9(n[0]).replace("-","")+"Color"}=e,[i,o]=BE(n.$$);if(!i)return;let s=r.theme(a,i)||Ta(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:m}=e,g=r.theme(l,o||"DEFAULT")||o&&Ta(o,l,r),p=t||(({_:h})=>{let y=il(c,h);return m?{[m]:y}:y});n._={value:Qa(s,{opacityVariable:u||void 0,opacityValue:g||void 0}),color:h=>Qa(s,h),opacityVariable:u||void 0,opacityValue:g||void 0};let f=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:Qa(h,{opacityVariable:u||void 0,opacityValue:g||"1"}),color:y=>Qa(h,y),opacityVariable:u||void 0,opacityValue:g||void 0},f={"&":f,[r.v("dark")]:p(n,r)})}return f}}function BE(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function il(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ta(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=ps(Mp(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function c9(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function ps(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>ps(n)+r+ps(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var iV=Symbol();function ol({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:wt(t.variants),rules:wt(t.rules),ignorelist:wt(t.ignorelist),hash:void 0,stringify:(r,a)=>r+":"+a,finalize:[]};for(let r of wt([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&wt(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:a,darkMode:i=n.darkMode,darkColor:o=n.darkColor,theme:s,variants:u,rules:l,ignorelist:c,hash:m=n.hash,stringify:g=n.stringify,finalize:p}=typeof r=="function"?r(n):r;n={preflight:n.preflight!==!1&&a!==!1&&[...n.preflight,...wt(a)],darkMode:i,darkColor:o,theme:{...n.theme,...s,extend:{...n.theme.extend,...s?.extend}},variants:[...n.variants,...wt(u)],rules:[...n.rules,...wt(l)],ignorelist:[...n.ignorelist,...wt(c)],hash:m,stringify:g,finalize:[...n.finalize,...wt(p)]}}return n}function e9(e,t,n,r,a,i){for(let o of t){let s=n.get(o);s||n.set(o,s=r(o));let u=s(e,a,i);if(u)return u}}function OE(e){var t;return wp(e[0],typeof(t=e[1])=="function"?t:()=>t)}function NE(e){var t,n;return Array.isArray(e)?wp(e[0],Tp(e[1],e[2])):wp(e,Tp(t,n))}function wp(e,t){return d9(e,(n,r,a,i)=>{let o=r.exec(n);if(o)return o.$$=n.slice(o[0].length),o.dark=i,t(o,a)})}function d9(e,t){let n=wt(e).map(UE);return(r,a,i)=>{for(let o of n){let s=t(r,o,a,i);if(s)return s}}}function UE(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function jE(e,t){let n=ol(e),r=function({theme:u,darkMode:l,darkColor:c=al,variants:m,rules:g,hash:p,stringify:f,ignorelist:h,finalize:y}){let b=new Map,v=new Map,C=new Map,x=new Map,T=d9(h,(A,D)=>D.test(A));m.push(["dark",Array.isArray(l)||l=="class"?`${wt(l)[1]||".dark"} &`:typeof l=="string"&&l!="media"?l:"@media (prefers-color-scheme:dark)"]);let w=typeof p=="function"?A=>p(A,gs):p?gs:Gb;w!==Gb&&y.push(A=>({...A,n:A.n&&w(A.n),d:A.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,M)=>"--"+w(M).replace("#",""))}));let S={theme:function({extend:A={},...D}){let M={},R={get colors(){return _("colors")},theme:_,negative(){return{}},breakpoints(L){let N={};for(let U in L)typeof L[U]=="string"&&(N["screen-"+U]=L[U]);return N}};return _;function _(L,N,U,V){if(L){if({1:L,2:V}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let xe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,W,ee=W)=>xe.push(ee)),L=xe.shift(),U=N,N=xe.join("-")}let ae=M[L]||Object.assign(Object.assign(M[L]={},B(D,L)),B(A,L));if(N==null)return ae;N||="DEFAULT";let _e=ae[N]??N.split("-").reduce((xe,H)=>xe?.[H],ae)??U;return V?Qa(_e,{opacityValue:Mp(V,_)}):_e}let Y={};for(let ae of[...Object.keys(D),...Object.keys(A)])Y[ae]=_(ae);return Y}function B(L,N){let U=L[N];return typeof U=="function"&&(U=U(R)),U&&/color|fill|stroke/i.test(N)?function V(Y,ae=[]){let _e={};for(let xe in Y){let H=Y[xe],W=[...ae,xe];_e[W.join("-")]=H,xe=="DEFAULT"&&(W=ae,_e[ae.join("-")]=H),typeof H=="object"&&Object.assign(_e,V(H,W))}return _e}(U):U}}(u),e:Ap,h:w,s(A,D){return f(A,D,S)},d(A,D,M){return c(A,D,S,M)},v(A){return b.has(A)||b.set(A,e9(A,m,v,OE,S)||"&:"+A),b.get(A)},r(A,D){let M=JSON.stringify([A,D]);return C.has(M)||C.set(M,!T(A,S)&&e9(A,g,x,NE,S,D)),C.get(M)},f(A){return y.reduce((D,M)=>M(D,S),A)}};return S}(n),a=new Map,i=[],o=new Set;t.resume(u=>a.set(u,u),(u,l)=>{t.insert(u,i.length,l),i.push(l),o.add(u)});function s(u){let l=r.f(u),c=Cp(l);if(c&&!o.has(c)){o.add(c);let m=a9(i,u);t.insert(c,m,u),i.splice(m,0,u)}return l.n}return Object.defineProperties(function(u){if(!a.size)for(let c of wt(n.preflight))typeof c=="function"&&(c=c(r)),c&&(typeof c=="string"?_p("",sn.b,rl(c),r,sn.b,[],!1,!0):Lp(c,{},r,sn.b)).forEach(s);u=""+u;let l=a.get(u);if(!l){let c=new Set;for(let m of T0(rl(u),r))c.add(m.c).add(s(m));l=[...c].filter(Boolean).join(" "),a.set(u,l).set(l,l)}return l},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let u=t.snapshot(),l=new Set(o),c=new Map(a),m=[...i];return()=>{u(),o=l,a=c,i=m}},clear(){t.clear(),o=new Set,a=new Map,i=[]},destroy(){this.clear(),t.destroy()}}))}function HE(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function qE(e){let t=new MutationObserver(n);return{observe(a){t.observe(a,{attributeFilter:["class"],subtree:!0,childList:!0}),r(a),n([{target:a,type:""}])},disconnect(){t.disconnect()}};function n(a){for(let{type:i,target:o}of a)if(i[0]=="a")r(o);else for(let s of o.querySelectorAll("[class]"))r(s);t.takeRecords()}function r(a){let i,o=a.getAttribute?.("class");o&&HE(o,i=e(o))&&a.setAttribute("class",i)}}function zE(e=Rp,t=typeof document<"u"&&document.documentElement){if(t){let n=qE(e);n.observe(t);let{destroy:r}=e;e.destroy=()=>{n.disconnect(),r.call(e)}}return e}function m9(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function WE(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:m9(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,r=>r.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,r){try{t.insertRule(n,r)}catch{t.insertRule(":root{}",r)}},resume:al}}function VE(e){let t=e&&typeof e!="string"?e:m9(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,r=>r.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,r){t.insertBefore(document.createTextNode(n),t.childNodes[r]||null)},resume:al}}function KE(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,a){t.splice(r,0,e?`/*!${a.p.toString(36)},${(2*a.o).toString(36)}${a.n?","+a.n:""}*/${n}`:n)},resume:al}}function g9(e,t){let n=typeof document>"u"?KE(!t):e?VE():WE();return t||(n.resume=$E),n}function GE(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):wt(e)).join("")}function $E(e,t){let n=GE(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var a;let i;if(r.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;a=r.exec(n),i&&t(n.slice(i.index+i[0].length,a?.index),{p:parseInt(i[1],36),o:parseInt(i[2],36)/2,n:i[3]}),i=a;);}}var Rp=new Proxy(al,{apply(e,t,n){return nl(n[0])},get(e,t){let n=nl[t];return typeof n=="function"?function(){return n.apply(nl,arguments)}:n}});function p9(e={},t=g9,n){return nl?.destroy(),nl=zE(jE(e,typeof t=="function"?t():t),n)}function Ip(e,t=!0){let n=ol(e);return p9({...n,hash:n.hash??t},()=>g9(!t))}var oV=function e(t){return new Proxy(function(n,...r){return t9(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return t9(t,r,a,i)}}})}();function t9(e,t,n,r){return{toString(){let a=xp(n,r),i=Ap(t+gs(JSON.stringify([t,a])));return(typeof e=="function"?e:Rp)(l9({[`@keyframes ${i}`]:xp(n,r)})),i}}}var YE=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function f9(e){return YE.get(e)}function h9(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function b9(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var ZE=[["-webkit-",1],["-moz-",2],["-ms-",4]];function w0(){return({stringify:e})=>({stringify(t,n,r){let a="",i=f9(t);i&&(a+=e(i,n,r)+";");let o=h9(t),s=b9(t,n);for(let u of ZE)o&u[1]&&(a+=e(u[0]+t,n,r)+";"),s&u[1]&&(a+=e(t,u[0]+n,r)+";");return a+e(t,n,r)}})}var Bp={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...yr(4,"rem",4,.5,.5),...yr(12,"rem",4,5),14:"3.5rem",...yr(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:ot("blur"),backdropBrightness:ot("brightness"),backdropContrast:ot("contrast"),backdropGrayscale:ot("grayscale"),backdropHueRotate:ot("hueRotate"),backdropInvert:ot("invert"),backdropOpacity:ot("opacity"),backdropSaturate:ot("saturate"),backdropSepia:ot("sepia"),backgroundColor:ot("colors"),backgroundImage:{none:"none"},backgroundOpacity:ot("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...yr(200,"",100,0,50),...yr(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:ot("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:ot("spacing"),borderWidth:{DEFAULT:"1px",...Mr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:ot("colors"),caretColor:ot("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...yr(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:ot("borderColor"),divideOpacity:ot("borderOpacity"),divideWidth:ot("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...sl(2,6),...sl(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:ot("spacing"),gradientColorStops:ot("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...sl(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...sl(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...yr(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...yr(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:ot("spacing"),placeholderColor:ot("colors"),placeholderOpacity:ot("opacity"),outlineColor:ot("colors"),outlineOffset:Mr(8,"px"),outlineWidth:Mr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:ot("colors"),ringOffsetWidth:Mr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...Mr(8,"px")},rotate:{...Mr(2,"deg"),...Mr(12,"deg",3),...Mr(180,"deg",45)},saturate:yr(200,"",100,0,50),scale:{...yr(150,"",100,0,50),...yr(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:ot("spacing"),scrollPadding:ot("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...Mr(2,"deg"),...Mr(12,"deg",3)},space:ot("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:yr(2),textColor:ot("colors"),textDecorationColor:ot("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...Mr(8,"px")},textUnderlineOffset:{auto:"auto",...Mr(8,"px")},textIndent:ot("spacing"),textOpacity:ot("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:ot("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...sl(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...yr(50,"",1,0,10),auto:"auto"}};function sl(e,t){let n={};do for(var r=1;rt(e)}var JE={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Bp.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Bp.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},QE=[oe("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ta(`[${t}]`,"",n)}}})),oe("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),se("aspect-","aspectRatio"),oe("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[S0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),se("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),oe("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),oe("box-(border|content)","boxSizing",({1:e})=>e+"-box"),oe("hidden",{display:"none"}),oe("table-(auto|fixed)","tableLayout"),oe(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",oe("isolate","isolation"),oe("object-(contain|cover|fill|none|scale-down)","objectFit"),se("object-","objectPosition"),oe("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",E0),oe("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),oe("(static|fixed|absolute|relative|sticky)","position"),se("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),se("-?(top|bottom|left|right)(?:$|-)","inset"),oe("(visible|collapse)","visibility"),oe("invisible",{visibility:"hidden"}),se("-?z-","zIndex"),oe("flex-((row|col)(-reverse)?)","flexDirection",y9),oe("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),se("(flex-(?:grow|shrink))(?:$|-)"),se("(flex)-"),se("grow(?:$|-)","flexGrow"),se("shrink(?:$|-)","flexShrink"),se("basis-","flexBasis"),se("-?(order)-"),"-?(order)-(\\d+)",se("grid-cols-","gridTemplateColumns"),oe("grid-cols-(\\d+)","gridTemplateColumns",T9),se("col-","gridColumn"),oe("col-(span)-(\\d+)","gridColumn",x9),se("col-start-","gridColumnStart"),oe("col-start-(auto|\\d+)","gridColumnStart"),se("col-end-","gridColumnEnd"),oe("col-end-(auto|\\d+)","gridColumnEnd"),se("grid-rows-","gridTemplateRows"),oe("grid-rows-(\\d+)","gridTemplateRows",T9),se("row-","gridRow"),oe("row-(span)-(\\d+)","gridRow",x9),se("row-start-","gridRowStart"),oe("row-start-(auto|\\d+)","gridRowStart"),se("row-end-","gridRowEnd"),oe("row-end-(auto|\\d+)","gridRowEnd"),oe("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>E0(y9(e))),oe("grid-flow-(dense)","gridAutoFlow"),se("auto-cols-","gridAutoColumns"),se("auto-rows-","gridAutoRows"),se("gap-x(?:$|-)","gap","columnGap"),se("gap-y(?:$|-)","gap","rowGap"),se("gap(?:$|-)","gap"),"(justify-(?:items|self))-",oe("justify-","justifyContent",v9),oe("(content|items|self)-",e=>({["align-"+e[1]]:v9(e)})),oe("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),se("p([xytrbl])?(?:$|-)","padding",fs("padding")),se("-?m([xytrbl])?(?:$|-)","margin",fs("margin")),se("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),oe("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),se("w-","width"),se("min-w-","minWidth"),se("max-w-","maxWidth"),se("h-","height"),se("min-h-","minHeight"),se("max-h-","maxHeight"),se("font-","fontWeight"),se("font-","fontFamily",({_:e})=>typeof(e=wt(e))[1]=="string"?{fontFamily:qr(e)}:{fontFamily:qr(e[0]),...e[1]}),oe("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),oe("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),oe("italic","fontStyle"),oe("not-italic",{fontStyle:"normal"}),oe("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...wi({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),se("tracking-","letterSpacing"),se("leading-","lineHeight"),oe("list-(inside|outside)","listStylePosition"),se("list-","listStyleType"),oe("list-","listStyleType"),se("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),pn("placeholder-",{property:"color",selector:"&::placeholder"}),oe("text-(left|center|right|justify|start|end)","textAlign"),oe("text-(ellipsis|clip)","textOverflow"),se("text-opacity-","textOpacity","--tw-text-opacity"),pn("text-",{property:"color"}),se("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),se("indent-","textIndent"),oe("(overline|underline|line-through)","textDecorationLine"),oe("no-underline",{textDecorationLine:"none"}),se("underline-offset-","textUnderlineOffset"),pn("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),se("decoration-","textDecorationThickness"),oe("decoration-","textDecorationStyle"),oe("(uppercase|lowercase|capitalize)","textTransform"),oe("normal-case",{textTransform:"none"}),oe("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),oe("align-","verticalAlign"),oe("whitespace-","whiteSpace"),oe("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),oe("break-words",{overflowWrap:"break-word"}),oe("break-all",{wordBreak:"break-all"}),oe("break-keep",{wordBreak:"keep-all"}),pn("caret-",{opacityVariable:!1,opacitySection:"opacity"}),pn("accent-",{opacityVariable:!1,opacitySection:"opacity"}),oe("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${yo(e," ")},var(--tw-gradient-stops))`),pn("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),pn("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),pn("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),oe("bg-(fixed|local|scroll)","backgroundAttachment"),oe("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),oe(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),oe("bg-blend-","backgroundBlendMode"),oe("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),se("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),pn("bg-",{section:"backgroundColor"}),se("bg-","backgroundImage"),se("bg-","backgroundPosition"),oe("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",E0),se("bg-","backgroundSize"),se("rounded(?:$|-)","borderRadius"),se("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${yo(n[0])}-radius`]:t,[`border-${yo(n[1])}-radius`]:t}}),oe("border-(collapse|separate)","borderCollapse"),se("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),oe("border-(solid|dashed|dotted|double|none)","borderStyle"),se("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...wi({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),pn("border-([xytrbl])-",{section:"borderColor"},fs("border","Color")),pn("border-"),se("border-([xytrbl])(?:$|-)","borderWidth",fs("border","Width")),se("border(?:$|-)","borderWidth"),se("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),oe("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),oe("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),se("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${yo(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${yo(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),pn("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),se("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),pn("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),se("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),oe("ring-inset",{"--tw-ring-inset":"inset"}),pn("ring-",{property:"--tw-ring-color"}),se("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...wi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Qa(t("ringOffsetColor","","#fff")),"--tw-ring-color":Qa(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),pn("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),se("shadow(?:$|-)","boxShadow",({_:e})=>({...wi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":qr(e),"--tw-shadow-colored":qr(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),se("(opacity)-"),oe("mix-blend-","mixBlendMode"),...C9(),...C9("backdrop-"),se("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:qr(e),transitionTimingFunction:e._=="none"?void 0:qr(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:qr(t("transitionDuration",""))})),se("duration(?:$|-)","transitionDuration","transitionDuration",qr),se("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",qr),se("delay(?:$|-)","transitionDelay","transitionDelay",qr),se("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=qr(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",oe("transform",Op),oe("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":S9(e=="gpu")})),se("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Op()})),se("-?(rotate)-","rotate",Fp),se("-?(translate-[xy])-","translate",Fp),se("-?(skew-[xy])-","skew",Fp),oe("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",E0),"(appearance)-",se("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",se("(cursor)-"),"(cursor)-",oe("snap-(none)","scroll-snap-type"),oe("snap-(x|y|both)",({1:e})=>({...wi({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),oe("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),oe("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),oe("snap-(normal|always)","scroll-snap-stop"),oe("scroll-(auto|smooth)","scroll-behavior"),se("scroll-p([xytrbl])?(?:$|-)","padding",fs("scroll-padding")),se("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",fs("scroll-margin")),oe("touch-(auto|none|manipulation)","touch-action"),oe("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...wi({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),oe("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),oe("outline",{outlineStyle:"solid"}),oe("outline-(dashed|dotted|double)","outlineStyle"),se("-?(outline-offset)-"),pn("outline-",{opacityVariable:!1,opacitySection:"opacity"}),se("outline-","outlineWidth"),"(pointer-events)-",se("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],oe("select-(none|text|all|auto)","userSelect"),pn("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),pn("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),se("stroke-","strokeWidth"),oe("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),oe("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function E0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function y9(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function yo(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function qr(e){return e&&""+(e._||e)}function v9({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function fs(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...il(e+"-"+yo(a[0])+t,r),...il(e+"-"+yo(a[1])+t,r)}:il(e+t,r)}}function C9(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...wi(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,oe(`${e}filter`,n),...t.map(r=>se(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:wt(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function Fp({1:e,_:t}){return{["--tw-"+e]:t,...Op()}}function Op(){return{...wi({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":S9()}),transform:"var(--tw-transform)"}}function S9(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function x9({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function T9({1:e}){return`repeat(${e},minmax(0,1fr))`}function wi(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var XE=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Ta(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:a=t},{e:i,h:o,v:s})=>{let u=ps(r)||(n[0]=="["?n:s(n.slice(1)));return`${(u.includes("&")?u:"&"+u).replace(/&/g,`:merge(.${i(o(e+a))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Ta(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Ta(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Ta(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&ps(e).replace(/[}]+$/,"").split("{")]];function eA({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:JE,theme:{...Bp,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:XE,rules:QE,finalize(n){return n.n&&n.d&&n.r.some(r=>/^&::(before|after)$/.test(r))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var tA={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},nA={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},rA={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},aA={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},iA={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},oA={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},sA={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},uA={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},lA={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},cA={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},dA={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},mA={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},gA={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},pA={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},fA={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},hA={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},bA={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},yA={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},vA={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},CA={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},xA={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},TA={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},SA={__proto__:null,slate:tA,gray:nA,zinc:rA,neutral:aA,stone:iA,red:oA,orange:sA,amber:uA,yellow:lA,lime:cA,green:dA,emerald:mA,teal:gA,cyan:pA,sky:fA,blue:hA,indigo:bA,violet:yA,purple:vA,fuchsia:CA,pink:xA,rose:TA};function A0({disablePreflight:e}={}){return eA({colors:SA,disablePreflight:e})}var k0=globalThis||(typeof window<"u"?window:self),wA=Object.create,Up=Object.defineProperty,EA=Object.getOwnPropertyDescriptor,AA=Object.getOwnPropertyNames,kA=Object.getPrototypeOf,DA=Object.prototype.hasOwnProperty,LA=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),MA=(e,t)=>{for(var n in t)Up(e,n,{get:t[n],enumerable:!0})},Np=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of AA(t))!DA.call(e,a)&&a!==n&&Up(e,a,{get:()=>t[a],enumerable:!(r=EA(t,a))||r.enumerable});return e},PA=(e,t,n)=>(Np(e,t,"default"),n&&Np(n,t,"default")),E9=(e,t,n)=>(n=e!=null?wA(kA(e)):{},Np(t||!e||!e.__esModule?Up(n,"default",{value:e,enumerable:!0}):n,e)),A9=LA((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,m){var g=new XMLHttpRequest;g.open("GET",l),g.responseType="blob",g.onload=function(){u(g.response,c,m)},g.onerror=function(){},g.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof k0=="object"&&k0.global===k0?k0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,m){var g=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,m):i(p,p.target="_blank")):(p.href=g.createObjectURL(l),setTimeout(function(){g.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,m){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,m),c);else if(a(l))r(l,c,m);else{var g=document.createElement("a");g.href=l,g.target="_blank",setTimeout(function(){i(g)})}}:function(l,c,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,m);var p=l.type==="application/octet-stream",f=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&f||s)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var C=y.result;C=h?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=C:location=C,g=null},y.readAsDataURL(l)}else{var b=o.URL||o.webkitURL,v=b.createObjectURL(l);g?g.location=v:location.href=v,g=null,setTimeout(function(){b.revokeObjectURL(v)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),k9={};MA(k9,{default:()=>vo});var _A=E9(A9());PA(k9,E9(A9()));var{default:w9,...RA}=_A,vo=w9!==void 0?w9:RA;function z9(e){return typeof e>"u"||e===null}function IA(e){return typeof e=="object"&&e!==null}function FA(e){return Array.isArray(e)?e:z9(e)?[]:[e]}function BA(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;nt(o),get:u=>{if(u===null)return Promise.resolve(e(o));let l=[],c=e(o);typeof u=="string"?l=[u]:Array.isArray(u)?l=u:l=Object.keys(u);let m={};for(let g of l)m[g]=c[g];return Promise.resolve(m)},set:u=>{let l=r(),c=e(o);for(let p in u)c[p]=u[p];let m=document.getElementById(`${P}-sync-storage`),g=document.getElementById(`${P}-local-storage`);if(!m||!g)throw new Error("Storage element not found");if(o==="sync"||l._isUserscript){m.value=JSON.stringify(c);let p=new Event("change");m.dispatchEvent(p)}return(o==="local"||l._isUserscript)&&(g.value=JSON.stringify(c),g.dispatchEvent(new Event("change"))),Promise.resolve()},remove:u=>{let l=r(),c=document.getElementById(`${P}-message`);if(!c)throw new Error("Message element not found");let m={method:"removeStorageKey",data:{area:o,keys:u}};return new Promise((g,p)=>{c.value=JSON.stringify(m);let f=new Event("change");c.dispatchEvent(f),l._isUserscript?setTimeout(()=>{c.value=JSON.stringify({...m,data:{...m.data,area:m.data.area==="sync"?"local":"sync"}}),c.dispatchEvent(new Event("change")),g(null)},10):g(null)})}}}function r(){let o=document.getElementById(P+"-manifest");if(!o)throw new Error("Manifest element not found");let s=o.value,u={};if(s){try{u=JSON.parse(s)}catch(l){throw l}return u}else return{}}function a(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}let i={storage:{local:n("local"),sync:n("sync")},runtime:{getManifest:r,lastError:null,getURL:o=>o},contextMenus:{update:()=>{}},i18n:{getAcceptLanguages:a}};globalThis.immersiveTranslateBrowserAPI=i})();var y0,Ue,Eb,xE,Ju,xb,Ab,f0={},kb=[],TE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Si(e,t){for(var n in t)e[n]=t[n];return e}function Db(e){var t=e.parentNode;t&&t.removeChild(e)}function bo(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?y0.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return p0(e,o,r,a,null)}function p0(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++Eb};return a==null&&Ue.vnode!=null&&Ue.vnode(i),i}function le(e){return e.children}function ho(e,t){this.props=e,this.context=t}function cs(e,t){if(t==null)return e.__?cs(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?p0(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=h[c])===null||g&&p.key==g.key&&p.type===g.type)h[c]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:v0}),n.__[e]}function O(e){return Qu=1,AE(Wb,e)}function AE(e,t,n){var r=Xu(ms++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Wb(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Gt,!Gt.u)){Gt.u=!0;var a=Gt.shouldComponentUpdate;Gt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,m!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function q(e,t){var n=Xu(ms++,3);!Ue.__s&&gp(n.__H,t)&&(n.__=e,n.i=t,Gt.__H.__h.push(n))}function el(e,t){var n=Xu(ms++,4);!Ue.__s&&gp(n.__H,t)&&(n.__=e,n.i=t,Gt.__h.push(n))}function Ce(e){return Qu=5,te(function(){return{current:e}},[])}function te(e,t){var n=Xu(ms++,7);return gp(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ue(e,t){return Qu=8,te(function(){return e},t)}function we(e){var t=Gt.context[e.__c],n=Xu(ms++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Gt)),t.props.value):e.__}function kE(){for(var e;e=zb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(C0),e.__H.__h.forEach(mp),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){typeof e.type!="function"||e.o||e.type===le?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Gt=null,Ob&&Ob(e)},Ue.__r=function(e){Nb&&Nb(e),ms=0;var t=(Gt=e.__c).__H;t&&(dp===Gt?(t.__h=[],Gt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=v0,n.__N=n.i=void 0})):(t.__h.forEach(C0),t.__h.forEach(mp),t.__h=[])),dp=Gt},Ue.diffed=function(e){Ub&&Ub(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(zb.push(t)!==1&&Bb===Ue.requestAnimationFrame||((Bb=Ue.requestAnimationFrame)||DE)(kE)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==v0&&(n.__=n.__V),n.i=void 0,n.__V=v0})),dp=Gt=null},Ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach(C0),n.__h=n.__h.filter(function(r){return!r.__||mp(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Ue.__e(r,n.__v)}}),jb&&jb(e,t)},Ue.unmount=function(e){Hb&&Hb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{C0(r)}catch(a){t=a}}),n.__H=void 0,t&&Ue.__e(t,n.__v))};var qb=typeof requestAnimationFrame=="function";function DE(e){var t,n=function(){clearTimeout(r),qb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);qb&&(t=requestAnimationFrame(n))}function C0(e){var t=Gt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Gt=t}function mp(e){var t=Gt;e.__c=e.__(),Gt=t}function gp(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Wb(e,t){return typeof t=="function"?t(e):t}var tl;function Ep(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function e9(e,t=","){return e.map(Ep).join(t)}var Ap=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function gs(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function T0(e,t="@media "){return t+wt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function wt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function Vb(e){return e}function rl(){}var sn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function t9(e){return e.match(/[-=:;]/g)?.length||0}function vp(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(t9(e),15)<<18}var LE=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function kp({n:e,i:t,v:n=[]},r,a,i){e&&(e=Ep({n:e,i:t,v:n})),i=[...wt(i)];for(let s of n){let u=r.theme("screens",s);for(let l of wt(u&&T0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|vp(l):s=="dark"?1073741824:l[0]=="@"?vp(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~LE.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var Dp=new Map;function Cp(e){if(e.d){let t=[],n=pp(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?pp(r,i=>pp(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):fp(i,o)}return fp(o,i)})):r,"&"),r=>fp(r,e.n?"."+Ap(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function pp(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function fp(e,t){return e.replace(/&/g,t)}var Kb=new Intl.Collator("en",{numeric:!0});function n9(e,t){for(var n=0,r=e.length;n>1;0>=r9(e[a],t)?n=a+1:r=a}return r}function r9(e,t){let n=e.p&sn.o;return n==(t.p&sn.o)&&(n==sn.b||n==sn.o)?0:e.p-t.p||e.o-t.o||Kb.compare(Gb(e.n),Gb(t.n))||Kb.compare($b(e.n),$b(t.n))}function Gb(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function $b(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function hp(e,t){return Math.round(parseInt(e,16)*t)}function Ja(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[hp(e.substr(1,i),o),hp(e.substr(1+i,i),o),hp(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Lp(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},m){let g=[],p="",f=0,b=0;for(let v in o||{}){var y,h;let C=o[v];if(v[0]=="@"){if(!C)continue;if(v[1]=="a"){g.push(..._p(s,u,nl(""+C),m,u,l,c,!0));continue}if(v[1]=="l"){for(let x of wt(C))g.push(...i(x,{n:s,p:(y=sn[v[7]],u&~sn.o|y),r:v[7]=="d"?[]:l,i:c},m));continue}if(v[1]=="i"){g.push(...wt(C).map(x=>({p:-1,o:0,r:[],d:v+" "+x})));continue}if(v[1]=="k"){g.push({p:sn.d,o:0,r:[v],d:i(C,{p:sn.d},m).map(Cp).join("")});continue}if(v[1]=="f"){g.push(...wt(C).map(x=>({p:sn.d,o:0,r:[v],d:i(x,{p:sn.d},m).map(Cp).join("")})));continue}}if(typeof C!="object"||Array.isArray(C))v=="label"&&C?s=C+gs(JSON.stringify([u,c,o])):(C||C===0)&&(v=v.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),b+=1,f=Math.max(f,(h=v)[0]=="-"?0:t9(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+wt(C).map(x=>m.s(v,Mp(""+x,m.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let x=u;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(T,S)=>{let w=m.theme("screens",S);return w?(x|=67108864,T0(w,"")):T}),x|=vp(v)),g.push(...i(C,{n:s,p:x,r:[...l,v],i:c},m))}else g.push(...i(C,{p:u,r:[...l,v]},m))}return g.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(f||15,15),r:l,d:p}),g.sort(r9)}(e,kp(t,n,r,a),n)}function Mp(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?Ja(s):""+wt(s).filter(u=>Object(u)!==u)})}function Pp(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function x0(e,t,n=sn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,m,g){u={...u,i:u.i||g};let p=function(f,b){let y=Dp.get(f.n);return y?y(f,b):b.r(f.n,f.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:m,p:c}=kp(u,l,c,m),Pp(x0(nl(p),l,c,m,u.i),u.n)):Array.isArray(p)?p.map(f=>{var b,y;return{o:0,...f,r:[...wt(m),...wt(f.r)],p:(b=c,y=f.p??c,b&~sn.o|y)}}):Lp(p,u,l,c,m):[{c:Ep(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(n9(i,s),0,s);return i}function _p(e,t,n,r,a,i,o,s){return Pp((s?n.flatMap(u=>x0([u],r,a,i,o)):x0(n,r,a,i,o)).map(u=>u.p&sn.o&&(u.n||t==sn.b)?{...u,p:u.p&~sn.o|t,o:0}:u),e)}function ME(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=kp(i,o,t);return n&&_p(s,t,n,o,u,l,c,r)},Dp.set(e,a),e}function bp(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(PE),i:a}))}}function PE(e,t,n){return n.indexOf(e)==t}var Yb=new Map;function nl(e){let t=Yb.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&bp(n,r)),a=s+1};for(;s1?m.slice(0,-1)+gs(JSON.stringify([m,g])):m+"("+e9(g)+")",sn.a,g,/@$/.test(m))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Yb.set(e,t=r[0])}return t}function a9(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function i9(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?a9(e,t,n=>yp(n).trim()):t.filter(Boolean).reduce((n,r)=>n+yp(r),e?yp(e):"")}function yp(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=i9(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var rV=o9("@"),aV=o9("~");function o9(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return e9(nl(n+e+"("+i9(r,a)+")"))}}function xp(e,t){return Array.isArray(e)?Zb(a9(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Zb(e):[e]}var _E=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Zb(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=_E.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function s9(e,...t){var n;let r=xp(e,t),a=(r.find(i=>i.label)?.label||"css")+gs(JSON.stringify(r));return n=(i,o)=>Pp(r.flatMap(s=>Lp(s,i,o,sn.o)),a),Dp.set(a,n),a}var iV=new Proxy(function(e,t){return Jb("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Jb(t,n,r)}}});function Jb(e,t,n){return{toString(){return s9({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function oe(e,t,n){return[e,Tp(t,n)]}function Tp(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Sp(n,1)}):n=>e||{[n[1]]:Sp(n,2)}}function Sp(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function se(e,t,n,r){return[e,RE(t,n,r)]}function RE(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=u9(e||a[1]),s=i.theme(o,a.$$)??xa(a.$$,o,i);if(s!=null)return a._=Sp(a,0,s),r(a,i,o)}}function pn(e,t={},n){return[e,IE(t,n)]}function IE(e={},t){return(n,r)=>{let{section:a=u9(n[0]).replace("-","")+"Color"}=e,[i,o]=FE(n.$$);if(!i)return;let s=r.theme(a,i)||xa(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:m}=e,g=r.theme(l,o||"DEFAULT")||o&&xa(o,l,r),p=t||(({_:b})=>{let y=al(c,b);return m?{[m]:y}:y});n._={value:Ja(s,{opacityVariable:u||void 0,opacityValue:g||void 0}),color:b=>Ja(s,b),opacityVariable:u||void 0,opacityValue:g||void 0};let f=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:Ja(b,{opacityVariable:u||void 0,opacityValue:g||"1"}),color:y=>Ja(b,y),opacityVariable:u||void 0,opacityValue:g||void 0},f={"&":f,[r.v("dark")]:p(n,r)})}return f}}function FE(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function al(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function xa(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=ps(Mp(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function u9(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function ps(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>ps(n)+r+ps(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var oV=Symbol();function il({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:wt(t.variants),rules:wt(t.rules),ignorelist:wt(t.ignorelist),hash:void 0,stringify:(r,a)=>r+":"+a,finalize:[]};for(let r of wt([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&wt(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:a,darkMode:i=n.darkMode,darkColor:o=n.darkColor,theme:s,variants:u,rules:l,ignorelist:c,hash:m=n.hash,stringify:g=n.stringify,finalize:p}=typeof r=="function"?r(n):r;n={preflight:n.preflight!==!1&&a!==!1&&[...n.preflight,...wt(a)],darkMode:i,darkColor:o,theme:{...n.theme,...s,extend:{...n.theme.extend,...s?.extend}},variants:[...n.variants,...wt(u)],rules:[...n.rules,...wt(l)],ignorelist:[...n.ignorelist,...wt(c)],hash:m,stringify:g,finalize:[...n.finalize,...wt(p)]}}return n}function Qb(e,t,n,r,a,i){for(let o of t){let s=n.get(o);s||n.set(o,s=r(o));let u=s(e,a,i);if(u)return u}}function BE(e){var t;return wp(e[0],typeof(t=e[1])=="function"?t:()=>t)}function OE(e){var t,n;return Array.isArray(e)?wp(e[0],Tp(e[1],e[2])):wp(e,Tp(t,n))}function wp(e,t){return l9(e,(n,r,a,i)=>{let o=r.exec(n);if(o)return o.$$=n.slice(o[0].length),o.dark=i,t(o,a)})}function l9(e,t){let n=wt(e).map(NE);return(r,a,i)=>{for(let o of n){let s=t(r,o,a,i);if(s)return s}}}function NE(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function UE(e,t){let n=il(e),r=function({theme:u,darkMode:l,darkColor:c=rl,variants:m,rules:g,hash:p,stringify:f,ignorelist:b,finalize:y}){let h=new Map,v=new Map,C=new Map,x=new Map,T=l9(b,(A,D)=>D.test(A));m.push(["dark",Array.isArray(l)||l=="class"?`${wt(l)[1]||".dark"} &`:typeof l=="string"&&l!="media"?l:"@media (prefers-color-scheme:dark)"]);let S=typeof p=="function"?A=>p(A,gs):p?gs:Vb;S!==Vb&&y.push(A=>({...A,n:A.n&&S(A.n),d:A.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,M)=>"--"+S(M).replace("#",""))}));let w={theme:function({extend:A={},...D}){let M={},R={get colors(){return _("colors")},theme:_,negative(){return{}},breakpoints(L){let N={};for(let U in L)typeof L[U]=="string"&&(N["screen-"+U]=L[U]);return N}};return _;function _(L,N,U,V){if(L){if({1:L,2:V}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let xe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,W,ee=W)=>xe.push(ee)),L=xe.shift(),U=N,N=xe.join("-")}let ae=M[L]||Object.assign(Object.assign(M[L]={},B(D,L)),B(A,L));if(N==null)return ae;N||="DEFAULT";let _e=ae[N]??N.split("-").reduce((xe,H)=>xe?.[H],ae)??U;return V?Ja(_e,{opacityValue:Mp(V,_)}):_e}let Y={};for(let ae of[...Object.keys(D),...Object.keys(A)])Y[ae]=_(ae);return Y}function B(L,N){let U=L[N];return typeof U=="function"&&(U=U(R)),U&&/color|fill|stroke/i.test(N)?function V(Y,ae=[]){let _e={};for(let xe in Y){let H=Y[xe],W=[...ae,xe];_e[W.join("-")]=H,xe=="DEFAULT"&&(W=ae,_e[ae.join("-")]=H),typeof H=="object"&&Object.assign(_e,V(H,W))}return _e}(U):U}}(u),e:Ap,h:S,s(A,D){return f(A,D,w)},d(A,D,M){return c(A,D,w,M)},v(A){return h.has(A)||h.set(A,Qb(A,m,v,BE,w)||"&:"+A),h.get(A)},r(A,D){let M=JSON.stringify([A,D]);return C.has(M)||C.set(M,!T(A,w)&&Qb(A,g,x,OE,w,D)),C.get(M)},f(A){return y.reduce((D,M)=>M(D,w),A)}};return w}(n),a=new Map,i=[],o=new Set;t.resume(u=>a.set(u,u),(u,l)=>{t.insert(u,i.length,l),i.push(l),o.add(u)});function s(u){let l=r.f(u),c=Cp(l);if(c&&!o.has(c)){o.add(c);let m=n9(i,u);t.insert(c,m,u),i.splice(m,0,u)}return l.n}return Object.defineProperties(function(u){if(!a.size)for(let c of wt(n.preflight))typeof c=="function"&&(c=c(r)),c&&(typeof c=="string"?_p("",sn.b,nl(c),r,sn.b,[],!1,!0):Lp(c,{},r,sn.b)).forEach(s);u=""+u;let l=a.get(u);if(!l){let c=new Set;for(let m of x0(nl(u),r))c.add(m.c).add(s(m));l=[...c].filter(Boolean).join(" "),a.set(u,l).set(l,l)}return l},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let u=t.snapshot(),l=new Set(o),c=new Map(a),m=[...i];return()=>{u(),o=l,a=c,i=m}},clear(){t.clear(),o=new Set,a=new Map,i=[]},destroy(){this.clear(),t.destroy()}}))}function jE(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function HE(e){let t=new MutationObserver(n);return{observe(a){t.observe(a,{attributeFilter:["class"],subtree:!0,childList:!0}),r(a),n([{target:a,type:""}])},disconnect(){t.disconnect()}};function n(a){for(let{type:i,target:o}of a)if(i[0]=="a")r(o);else for(let s of o.querySelectorAll("[class]"))r(s);t.takeRecords()}function r(a){let i,o=a.getAttribute?.("class");o&&jE(o,i=e(o))&&a.setAttribute("class",i)}}function qE(e=Rp,t=typeof document<"u"&&document.documentElement){if(t){let n=HE(e);n.observe(t);let{destroy:r}=e;e.destroy=()=>{n.disconnect(),r.call(e)}}return e}function c9(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function zE(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:c9(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,r=>r.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,r){try{t.insertRule(n,r)}catch{t.insertRule(":root{}",r)}},resume:rl}}function WE(e){let t=e&&typeof e!="string"?e:c9(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,r=>r.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,r){t.insertBefore(document.createTextNode(n),t.childNodes[r]||null)},resume:rl}}function VE(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,a){t.splice(r,0,e?`/*!${a.p.toString(36)},${(2*a.o).toString(36)}${a.n?","+a.n:""}*/${n}`:n)},resume:rl}}function d9(e,t){let n=typeof document>"u"?VE(!t):e?WE():zE();return t||(n.resume=GE),n}function KE(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):wt(e)).join("")}function GE(e,t){let n=KE(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var a;let i;if(r.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;a=r.exec(n),i&&t(n.slice(i.index+i[0].length,a?.index),{p:parseInt(i[1],36),o:parseInt(i[2],36)/2,n:i[3]}),i=a;);}}var Rp=new Proxy(rl,{apply(e,t,n){return tl(n[0])},get(e,t){let n=tl[t];return typeof n=="function"?function(){return n.apply(tl,arguments)}:n}});function m9(e={},t=d9,n){return tl?.destroy(),tl=qE(UE(e,typeof t=="function"?t():t),n)}function Ip(e,t=!0){let n=il(e);return m9({...n,hash:n.hash??t},()=>d9(!t))}var sV=function e(t){return new Proxy(function(n,...r){return Xb(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return Xb(t,r,a,i)}}})}();function Xb(e,t,n,r){return{toString(){let a=xp(n,r),i=Ap(t+gs(JSON.stringify([t,a])));return(typeof e=="function"?e:Rp)(s9({[`@keyframes ${i}`]:xp(n,r)})),i}}}var $E=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function g9(e){return $E.get(e)}function p9(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function f9(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var YE=[["-webkit-",1],["-moz-",2],["-ms-",4]];function S0(){return({stringify:e})=>({stringify(t,n,r){let a="",i=g9(t);i&&(a+=e(i,n,r)+";");let o=p9(t),s=f9(t,n);for(let u of YE)o&u[1]&&(a+=e(u[0]+t,n,r)+";"),s&u[1]&&(a+=e(t,u[0]+n,r)+";");return a+e(t,n,r)}})}var Bp={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...br(4,"rem",4,.5,.5),...br(12,"rem",4,5),14:"3.5rem",...br(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:ot("blur"),backdropBrightness:ot("brightness"),backdropContrast:ot("contrast"),backdropGrayscale:ot("grayscale"),backdropHueRotate:ot("hueRotate"),backdropInvert:ot("invert"),backdropOpacity:ot("opacity"),backdropSaturate:ot("saturate"),backdropSepia:ot("sepia"),backgroundColor:ot("colors"),backgroundImage:{none:"none"},backgroundOpacity:ot("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...br(200,"",100,0,50),...br(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:ot("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:ot("spacing"),borderWidth:{DEFAULT:"1px",...Lr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:ot("colors"),caretColor:ot("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...br(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:ot("borderColor"),divideOpacity:ot("borderOpacity"),divideWidth:ot("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...ol(2,6),...ol(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:ot("spacing"),gradientColorStops:ot("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...ol(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...ol(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...br(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...br(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:ot("spacing"),placeholderColor:ot("colors"),placeholderOpacity:ot("opacity"),outlineColor:ot("colors"),outlineOffset:Lr(8,"px"),outlineWidth:Lr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:ot("colors"),ringOffsetWidth:Lr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...Lr(8,"px")},rotate:{...Lr(2,"deg"),...Lr(12,"deg",3),...Lr(180,"deg",45)},saturate:br(200,"",100,0,50),scale:{...br(150,"",100,0,50),...br(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:ot("spacing"),scrollPadding:ot("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...Lr(2,"deg"),...Lr(12,"deg",3)},space:ot("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:br(2),textColor:ot("colors"),textDecorationColor:ot("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...Lr(8,"px")},textUnderlineOffset:{auto:"auto",...Lr(8,"px")},textIndent:ot("spacing"),textOpacity:ot("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:ot("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...ol(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...br(50,"",1,0,10),auto:"auto"}};function ol(e,t){let n={};do for(var r=1;rt(e)}var ZE={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Bp.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Bp.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},JE=[oe("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:xa(`[${t}]`,"",n)}}})),oe("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),se("aspect-","aspectRatio"),oe("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[T0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),se("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),oe("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),oe("box-(border|content)","boxSizing",({1:e})=>e+"-box"),oe("hidden",{display:"none"}),oe("table-(auto|fixed)","tableLayout"),oe(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",oe("isolate","isolation"),oe("object-(contain|cover|fill|none|scale-down)","objectFit"),se("object-","objectPosition"),oe("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",w0),oe("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),oe("(static|fixed|absolute|relative|sticky)","position"),se("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),se("-?(top|bottom|left|right)(?:$|-)","inset"),oe("(visible|collapse)","visibility"),oe("invisible",{visibility:"hidden"}),se("-?z-","zIndex"),oe("flex-((row|col)(-reverse)?)","flexDirection",h9),oe("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),se("(flex-(?:grow|shrink))(?:$|-)"),se("(flex)-"),se("grow(?:$|-)","flexGrow"),se("shrink(?:$|-)","flexShrink"),se("basis-","flexBasis"),se("-?(order)-"),"-?(order)-(\\d+)",se("grid-cols-","gridTemplateColumns"),oe("grid-cols-(\\d+)","gridTemplateColumns",C9),se("col-","gridColumn"),oe("col-(span)-(\\d+)","gridColumn",v9),se("col-start-","gridColumnStart"),oe("col-start-(auto|\\d+)","gridColumnStart"),se("col-end-","gridColumnEnd"),oe("col-end-(auto|\\d+)","gridColumnEnd"),se("grid-rows-","gridTemplateRows"),oe("grid-rows-(\\d+)","gridTemplateRows",C9),se("row-","gridRow"),oe("row-(span)-(\\d+)","gridRow",v9),se("row-start-","gridRowStart"),oe("row-start-(auto|\\d+)","gridRowStart"),se("row-end-","gridRowEnd"),oe("row-end-(auto|\\d+)","gridRowEnd"),oe("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>w0(h9(e))),oe("grid-flow-(dense)","gridAutoFlow"),se("auto-cols-","gridAutoColumns"),se("auto-rows-","gridAutoRows"),se("gap-x(?:$|-)","gap","columnGap"),se("gap-y(?:$|-)","gap","rowGap"),se("gap(?:$|-)","gap"),"(justify-(?:items|self))-",oe("justify-","justifyContent",b9),oe("(content|items|self)-",e=>({["align-"+e[1]]:b9(e)})),oe("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),se("p([xytrbl])?(?:$|-)","padding",fs("padding")),se("-?m([xytrbl])?(?:$|-)","margin",fs("margin")),se("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),oe("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),se("w-","width"),se("min-w-","minWidth"),se("max-w-","maxWidth"),se("h-","height"),se("min-h-","minHeight"),se("max-h-","maxHeight"),se("font-","fontWeight"),se("font-","fontFamily",({_:e})=>typeof(e=wt(e))[1]=="string"?{fontFamily:Hr(e)}:{fontFamily:Hr(e[0]),...e[1]}),oe("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),oe("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),oe("italic","fontStyle"),oe("not-italic",{fontStyle:"normal"}),oe("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...wi({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),se("tracking-","letterSpacing"),se("leading-","lineHeight"),oe("list-(inside|outside)","listStylePosition"),se("list-","listStyleType"),oe("list-","listStyleType"),se("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),pn("placeholder-",{property:"color",selector:"&::placeholder"}),oe("text-(left|center|right|justify|start|end)","textAlign"),oe("text-(ellipsis|clip)","textOverflow"),se("text-opacity-","textOpacity","--tw-text-opacity"),pn("text-",{property:"color"}),se("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),se("indent-","textIndent"),oe("(overline|underline|line-through)","textDecorationLine"),oe("no-underline",{textDecorationLine:"none"}),se("underline-offset-","textUnderlineOffset"),pn("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),se("decoration-","textDecorationThickness"),oe("decoration-","textDecorationStyle"),oe("(uppercase|lowercase|capitalize)","textTransform"),oe("normal-case",{textTransform:"none"}),oe("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),oe("align-","verticalAlign"),oe("whitespace-","whiteSpace"),oe("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),oe("break-words",{overflowWrap:"break-word"}),oe("break-all",{wordBreak:"break-all"}),oe("break-keep",{wordBreak:"keep-all"}),pn("caret-",{opacityVariable:!1,opacitySection:"opacity"}),pn("accent-",{opacityVariable:!1,opacitySection:"opacity"}),oe("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${yo(e," ")},var(--tw-gradient-stops))`),pn("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),pn("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),pn("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),oe("bg-(fixed|local|scroll)","backgroundAttachment"),oe("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),oe(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),oe("bg-blend-","backgroundBlendMode"),oe("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),se("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),pn("bg-",{section:"backgroundColor"}),se("bg-","backgroundImage"),se("bg-","backgroundPosition"),oe("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",w0),se("bg-","backgroundSize"),se("rounded(?:$|-)","borderRadius"),se("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${yo(n[0])}-radius`]:t,[`border-${yo(n[1])}-radius`]:t}}),oe("border-(collapse|separate)","borderCollapse"),se("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),oe("border-(solid|dashed|dotted|double|none)","borderStyle"),se("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...wi({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),pn("border-([xytrbl])-",{section:"borderColor"},fs("border","Color")),pn("border-"),se("border-([xytrbl])(?:$|-)","borderWidth",fs("border","Width")),se("border(?:$|-)","borderWidth"),se("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),oe("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),oe("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),se("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${yo(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${yo(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),pn("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),se("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),pn("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),se("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),oe("ring-inset",{"--tw-ring-inset":"inset"}),pn("ring-",{property:"--tw-ring-color"}),se("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...wi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Ja(t("ringOffsetColor","","#fff")),"--tw-ring-color":Ja(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),pn("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),se("shadow(?:$|-)","boxShadow",({_:e})=>({...wi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Hr(e),"--tw-shadow-colored":Hr(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),se("(opacity)-"),oe("mix-blend-","mixBlendMode"),...y9(),...y9("backdrop-"),se("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Hr(e),transitionTimingFunction:e._=="none"?void 0:Hr(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Hr(t("transitionDuration",""))})),se("duration(?:$|-)","transitionDuration","transitionDuration",Hr),se("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Hr),se("delay(?:$|-)","transitionDelay","transitionDelay",Hr),se("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Hr(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",oe("transform",Op),oe("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":x9(e=="gpu")})),se("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Op()})),se("-?(rotate)-","rotate",Fp),se("-?(translate-[xy])-","translate",Fp),se("-?(skew-[xy])-","skew",Fp),oe("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",w0),"(appearance)-",se("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",se("(cursor)-"),"(cursor)-",oe("snap-(none)","scroll-snap-type"),oe("snap-(x|y|both)",({1:e})=>({...wi({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),oe("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),oe("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),oe("snap-(normal|always)","scroll-snap-stop"),oe("scroll-(auto|smooth)","scroll-behavior"),se("scroll-p([xytrbl])?(?:$|-)","padding",fs("scroll-padding")),se("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",fs("scroll-margin")),oe("touch-(auto|none|manipulation)","touch-action"),oe("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...wi({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),oe("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),oe("outline",{outlineStyle:"solid"}),oe("outline-(dashed|dotted|double)","outlineStyle"),se("-?(outline-offset)-"),pn("outline-",{opacityVariable:!1,opacitySection:"opacity"}),se("outline-","outlineWidth"),"(pointer-events)-",se("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],oe("select-(none|text|all|auto)","userSelect"),pn("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),pn("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),se("stroke-","strokeWidth"),oe("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),oe("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function w0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function h9(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function yo(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Hr(e){return e&&""+(e._||e)}function b9({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function fs(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...al(e+"-"+yo(a[0])+t,r),...al(e+"-"+yo(a[1])+t,r)}:al(e+t,r)}}function y9(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...wi(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,oe(`${e}filter`,n),...t.map(r=>se(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:wt(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function Fp({1:e,_:t}){return{["--tw-"+e]:t,...Op()}}function Op(){return{...wi({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":x9()}),transform:"var(--tw-transform)"}}function x9(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function v9({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function C9({1:e}){return`repeat(${e},minmax(0,1fr))`}function wi(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var QE=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||xa(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:a=t},{e:i,h:o,v:s})=>{let u=ps(r)||(n[0]=="["?n:s(n.slice(1)));return`${(u.includes("&")?u:"&"+u).replace(/&/g,`:merge(.${i(o(e+a))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||xa(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||xa(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=xa(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&ps(e).replace(/[}]+$/,"").split("{")]];function XE({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:ZE,theme:{...Bp,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:QE,rules:JE,finalize(n){return n.n&&n.d&&n.r.some(r=>/^&::(before|after)$/.test(r))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var eA={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},tA={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},nA={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},rA={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},aA={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},iA={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},oA={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},sA={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},uA={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lA={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},cA={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},dA={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},mA={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},gA={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},pA={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},fA={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},hA={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},bA={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},yA={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},vA={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},CA={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},xA={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},TA={__proto__:null,slate:eA,gray:tA,zinc:nA,neutral:rA,stone:aA,red:iA,orange:oA,amber:sA,yellow:uA,lime:lA,green:cA,emerald:dA,teal:mA,cyan:gA,sky:pA,blue:fA,indigo:hA,violet:bA,purple:yA,fuchsia:vA,pink:CA,rose:xA};function E0({disablePreflight:e}={}){return XE({colors:TA,disablePreflight:e})}var A0=globalThis||(typeof window<"u"?window:self),SA=Object.create,Up=Object.defineProperty,wA=Object.getOwnPropertyDescriptor,EA=Object.getOwnPropertyNames,AA=Object.getPrototypeOf,kA=Object.prototype.hasOwnProperty,DA=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),LA=(e,t)=>{for(var n in t)Up(e,n,{get:t[n],enumerable:!0})},Np=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of EA(t))!kA.call(e,a)&&a!==n&&Up(e,a,{get:()=>t[a],enumerable:!(r=wA(t,a))||r.enumerable});return e},MA=(e,t,n)=>(Np(e,t,"default"),n&&Np(n,t,"default")),S9=(e,t,n)=>(n=e!=null?SA(AA(e)):{},Np(t||!e||!e.__esModule?Up(n,"default",{value:e,enumerable:!0}):n,e)),w9=DA((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,m){var g=new XMLHttpRequest;g.open("GET",l),g.responseType="blob",g.onload=function(){u(g.response,c,m)},g.onerror=function(){},g.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof A0=="object"&&A0.global===A0?A0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,m){var g=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,m):i(p,p.target="_blank")):(p.href=g.createObjectURL(l),setTimeout(function(){g.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,m){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,m),c);else if(a(l))r(l,c,m);else{var g=document.createElement("a");g.href=l,g.target="_blank",setTimeout(function(){i(g)})}}:function(l,c,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,m);var p=l.type==="application/octet-stream",f=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&f||s)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var C=y.result;C=b?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=C:location=C,g=null},y.readAsDataURL(l)}else{var h=o.URL||o.webkitURL,v=h.createObjectURL(l);g?g.location=v:location.href=v,g=null,setTimeout(function(){h.revokeObjectURL(v)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),E9={};LA(E9,{default:()=>vo});var PA=S9(w9());MA(E9,S9(w9()));var{default:T9,..._A}=PA,vo=T9!==void 0?T9:_A;function H9(e){return typeof e>"u"||e===null}function RA(e){return typeof e=="object"&&e!==null}function IA(e){return Array.isArray(e)?e:H9(e)?[]:[e]}function FA(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Hp(e,t){return fn.repeat(" ",t-e.length)+e}function VA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,m=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=jp(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),m),s=fn.repeat(" ",t.indent)+Hp((e.line-u+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),r+" "+n):r}function ul(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=q9(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ul.prototype=Object.create(Error.prototype);ul.prototype.constructor=ul;ul.prototype.toString=function(e){return this.name+": "+q9(this,e)};var Gn=ul;function jp(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Hp(e,t){return fn.repeat(" ",t-e.length)+e}function WA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,m=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=jp(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),m),s=fn.repeat(" ",t.indent)+Hp((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=jp(e.buffer,r[o],a[o],e.position,m),s+=fn.repeat(" ",t.indent)+Hp((e.line+1).toString(),c)+" | "+l.str+` `,s+=fn.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=jp(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),m),s+=fn.repeat(" ",t.indent)+Hp((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var KA=VA,GA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$A=["scalar","sequence","mapping"];function YA(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function ZA(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(GA.indexOf(n)===-1)throw new $n('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=YA(t.styleAliases||null),$A.indexOf(this.kind)===-1)throw new $n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ln=ZA;function D9(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function JA(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ck=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function dk(e){return!(e===null||!ck.test(e)||e[e.length-1]==="_")}function mk(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var gk=/^[-+]?[0-9]+e/;function pk(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(fn.isNegativeZero(e))return"-0.0";return n=e.toString(10),gk.test(n)?n.replace("e",".e"):n}function fk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||fn.isNegativeZero(e))}var X9=new Ln("tag:yaml.org,2002:float",{kind:"scalar",resolve:dk,construct:mk,predicate:fk,represent:pk,defaultStyle:"lowercase"}),e6=Y9.extend({implicit:[Z9,J9,Q9,X9]}),t6=e6,n6=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r6=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function hk(e){return e===null?!1:n6.exec(e)!==null||r6.exec(e)!==null}function bk(e){var t,n,r,a,i,o,s,u=0,l=null,c,m,g;if(t=n6.exec(e),t===null&&(t=r6.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],m=+(t[11]||0),l=(c*60+m)*6e4,t[9]==="-"&&(l=-l)),g=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&g.setTime(g.getTime()-l),g}function yk(e){return e.toISOString()}var a6=new Ln("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:hk,construct:bk,instanceOf:Date,represent:yk});function vk(e){return e==="<<"||e===null}var i6=new Ln("tag:yaml.org,2002:merge",{kind:"scalar",resolve:vk}),$p=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function Ck(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=$p;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function xk(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=$p,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function Tk(e){var t="",n=0,r,a,i=e.length,o=$p;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Sk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var o6=new Ln("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ck,construct:xk,predicate:Sk,represent:Tk}),wk=Object.prototype.hasOwnProperty,Ek=Object.prototype.toString;function Ak(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var p6=new Array(256),f6=new Array(256);for(Co=0;Co<256;Co++)p6[Co]=P9(Co)?1:0,f6[Co]=P9(Co);var Co;function qk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Yp,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function h6(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=KA(n),new $n(t,n)}function Ae(e,t){throw h6(e,t)}function M0(e,t){e.onWarning&&e.onWarning.call(null,h6(e,t))}var _9={YAML:function(e,t,n){var r,a,i;e.version!==null&&Ae(e,"duplication of %YAML directive"),n.length!==1&&Ae(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&Ae(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&Ae(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&M0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&Ae(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],m6.test(r)||Ae(e,"ill-formed tag handle (first argument) of the TAG directive"),Ai.call(e.tagMap,r)&&Ae(e,'there is a previously declared suffix for "'+r+'" tag handle'),g6.test(a)||Ae(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Ae(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function Ei(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=fn.repeat(` -`,t-1))}function zk(e,t,n){var r,a,i,o,s,u,l,c,m=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),or(p)||bs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),or(a)||n&&bs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),or(a)||n&&bs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),or(r))break}else{if(e.position===e.lineStart&&R0(e)||n&&bs(p))break;if(Sa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,un(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(Ei(e,i,o,!1),Jp(e,e.line-u),i=o=e.position,s=!1),xo(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ei(e,i,o,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function Wk(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ei(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else Sa(n)?(Ei(e,r,a,!0),Jp(e,un(e,!1,t)),r=a=e.position):e.position===e.lineStart&&R0(e)?Ae(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Ae(e,"unexpected end of the stream within a single quoted scalar")}function Vk(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return Ei(e,n,e.position,!0),e.position++,!0;if(s===92){if(Ei(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Sa(s))un(e,!1,t);else if(s<256&&p6[s])e.result+=f6[s],e.position++;else if((o=Uk(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=Nk(s))>=0?i=(i<<4)+o:Ae(e,"expected hexadecimal character");e.result+=Hk(i),e.position++}else Ae(e,"unknown escape sequence");n=r=e.position}else Sa(s)?(Ei(e,n,r,!0),Jp(e,un(e,!1,t)),n=r=e.position):e.position===e.lineStart&&R0(e)?Ae(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Ae(e,"unexpected end of the stream within a double quoted scalar")}function Kk(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,m,g,p,f=Object.create(null),h,y,b,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,p=!1,s=[];else if(v===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(un(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?v===44&&Ae(e,"expected the node content, but found ','"):Ae(e,"missed comma between flow collection entries"),y=h=b=null,m=g=!1,v===63&&(l=e.input.charCodeAt(e.position+1),or(l)&&(m=g=!0,e.position++,un(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,vs(e,t,D0,!1,!0),y=e.tag,h=e.result,un(e,!0,t),v=e.input.charCodeAt(e.position),(g||e.line===r)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),un(e,!0,t),vs(e,t,D0,!1,!0),b=e.result),p?ys(e,s,f,y,h,b,r,a,i):m?s.push(ys(e,null,f,y,h,b,r,a,i)):s.push(h),un(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}Ae(e,"unexpected end of the stream within a flow collection")}function Gk(e,t){var n,r,a=qp,i=!1,o=!1,s=t,u=0,l=!1,c,m;if(m=e.input.charCodeAt(e.position),m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)qp===a?a=m===43?L9:Ik:Ae(e,"repeat of a chomping mode identifier");else if((c=jk(m))>=0)c===0?Ae(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Ae(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(xo(m)){do m=e.input.charCodeAt(++e.position);while(xo(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!Sa(m)&&m!==0)}for(;m!==0;){for(Zp(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),Sa(m)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),lk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ck(e){return!(e===null||!lk.test(e)||e[e.length-1]==="_")}function dk(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var mk=/^[-+]?[0-9]+e/;function gk(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(fn.isNegativeZero(e))return"-0.0";return n=e.toString(10),mk.test(n)?n.replace("e",".e"):n}function pk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||fn.isNegativeZero(e))}var J9=new Ln("tag:yaml.org,2002:float",{kind:"scalar",resolve:ck,construct:dk,predicate:pk,represent:gk,defaultStyle:"lowercase"}),Q9=G9.extend({implicit:[$9,Y9,Z9,J9]}),X9=Q9,e6=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t6=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function fk(e){return e===null?!1:e6.exec(e)!==null||t6.exec(e)!==null}function hk(e){var t,n,r,a,i,o,s,u=0,l=null,c,m,g;if(t=e6.exec(e),t===null&&(t=t6.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],m=+(t[11]||0),l=(c*60+m)*6e4,t[9]==="-"&&(l=-l)),g=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&g.setTime(g.getTime()-l),g}function bk(e){return e.toISOString()}var n6=new Ln("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fk,construct:hk,instanceOf:Date,represent:bk});function yk(e){return e==="<<"||e===null}var r6=new Ln("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yk}),$p=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function vk(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=$p;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function Ck(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=$p,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function xk(e){var t="",n=0,r,a,i=e.length,o=$p;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Tk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var a6=new Ln("tag:yaml.org,2002:binary",{kind:"scalar",resolve:vk,construct:Ck,predicate:Tk,represent:xk}),Sk=Object.prototype.hasOwnProperty,wk=Object.prototype.toString;function Ek(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var m6=new Array(256),g6=new Array(256);for(Co=0;Co<256;Co++)m6[Co]=L9(Co)?1:0,g6[Co]=L9(Co);var Co;function Hk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Yp,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function p6(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=VA(n),new Gn(t,n)}function Ae(e,t){throw p6(e,t)}function L0(e,t){e.onWarning&&e.onWarning.call(null,p6(e,t))}var M9={YAML:function(e,t,n){var r,a,i;e.version!==null&&Ae(e,"duplication of %YAML directive"),n.length!==1&&Ae(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&Ae(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&Ae(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&L0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&Ae(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],c6.test(r)||Ae(e,"ill-formed tag handle (first argument) of the TAG directive"),Ai.call(e.tagMap,r)&&Ae(e,'there is a previously declared suffix for "'+r+'" tag handle'),d6.test(a)||Ae(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Ae(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function Ei(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=fn.repeat(` +`,t-1))}function qk(e,t,n){var r,a,i,o,s,u,l,c,m=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),sr(p)||bs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),sr(a)||n&&bs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),sr(a)||n&&bs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),sr(r))break}else{if(e.position===e.lineStart&&_0(e)||n&&bs(p))break;if(Ta(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,un(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(Ei(e,i,o,!1),Jp(e,e.line-u),i=o=e.position,s=!1),xo(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ei(e,i,o,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function zk(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ei(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else Ta(n)?(Ei(e,r,a,!0),Jp(e,un(e,!1,t)),r=a=e.position):e.position===e.lineStart&&_0(e)?Ae(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Ae(e,"unexpected end of the stream within a single quoted scalar")}function Wk(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return Ei(e,n,e.position,!0),e.position++,!0;if(s===92){if(Ei(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Ta(s))un(e,!1,t);else if(s<256&&m6[s])e.result+=g6[s],e.position++;else if((o=Nk(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=Ok(s))>=0?i=(i<<4)+o:Ae(e,"expected hexadecimal character");e.result+=jk(i),e.position++}else Ae(e,"unknown escape sequence");n=r=e.position}else Ta(s)?(Ei(e,n,r,!0),Jp(e,un(e,!1,t)),n=r=e.position):e.position===e.lineStart&&_0(e)?Ae(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Ae(e,"unexpected end of the stream within a double quoted scalar")}function Vk(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,m,g,p,f=Object.create(null),b,y,h,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,p=!1,s=[];else if(v===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(un(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?v===44&&Ae(e,"expected the node content, but found ','"):Ae(e,"missed comma between flow collection entries"),y=b=h=null,m=g=!1,v===63&&(l=e.input.charCodeAt(e.position+1),sr(l)&&(m=g=!0,e.position++,un(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,vs(e,t,k0,!1,!0),y=e.tag,b=e.result,un(e,!0,t),v=e.input.charCodeAt(e.position),(g||e.line===r)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),un(e,!0,t),vs(e,t,k0,!1,!0),h=e.result),p?ys(e,s,f,y,b,h,r,a,i):m?s.push(ys(e,null,f,y,b,h,r,a,i)):s.push(b),un(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}Ae(e,"unexpected end of the stream within a flow collection")}function Kk(e,t){var n,r,a=qp,i=!1,o=!1,s=t,u=0,l=!1,c,m;if(m=e.input.charCodeAt(e.position),m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)qp===a?a=m===43?k9:Rk:Ae(e,"repeat of a chomping mode identifier");else if((c=Uk(m))>=0)c===0?Ae(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Ae(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(xo(m)){do m=e.input.charCodeAt(++e.position);while(xo(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!Ta(m)&&m!==0)}for(;m!==0;){for(Zp(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),Ta(m)){u++;continue}if(e.lineIndentt)&&u!==0)Ae(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(y&&(o=e.line,s=e.lineStart,u=e.position),vs(e,t,L0,!0,a)&&(y?f=e.result:h=e.result),y||(ys(e,m,g,p,f,h,o,s,u),p=f=h=null),un(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&v!==0)Ae(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),m=0,g=e.implicitTypes.length;m"),e.result!==null&&f.kind!==e.kind&&Ae(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ae(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function Qk(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(un(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&Ae(e,"directive name must not be less than one character in length");o!==0;){for(;xo(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Sa(o));break}if(Sa(o))break;for(n=e.position;o!==0&&!or(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Zp(e),Ai.call(_9,r)?_9[r](e,r,a):M0(e,'unknown document directive "'+r+'"')}if(un(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,un(e,!0,-1)):i&&Ae(e,"directives end mark is expected"),vs(e,e.lineIndent-1,L0,!1,!0),un(e,!0,-1),e.checkLineBreaks&&Bk.test(e.input.slice(t,e.position))&&M0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&R0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,un(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=b6(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)Ae(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(y&&(o=e.line,s=e.lineStart,u=e.position),vs(e,t,D0,!0,a)&&(y?f=e.result:b=e.result),y||(ys(e,m,g,p,f,b,o,s,u),p=f=b=null),un(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&v!==0)Ae(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),m=0,g=e.implicitTypes.length;m"),e.result!==null&&f.kind!==e.kind&&Ae(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ae(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function Jk(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(un(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!sr(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&Ae(e,"directive name must not be less than one character in length");o!==0;){for(;xo(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Ta(o));break}if(Ta(o))break;for(n=e.position;o!==0&&!sr(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Zp(e),Ai.call(M9,r)?M9[r](e,r,a):L0(e,'unknown document directive "'+r+'"')}if(un(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,un(e,!0,-1)):i&&Ae(e,"directives end mark is expected"),vs(e,e.lineIndent-1,D0,!1,!0),un(e,!0,-1),e.checkLineBreaks&&Fk.test(e.input.slice(t,e.position))&&L0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&_0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,un(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=f6(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function A6(e){var t=/^\n* /;return t.test(e)}var k6=1,Kp=2,D6=3,L6=4,hs=5;function DD(e,t,n,r,a,i,o,s){var u,l=0,c=null,m=!1,g=!1,p=r!==-1,f=-1,h=AD(ul(e,0))&&kD(ul(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=ul(e,u),!ml(l))return hs;h=h&&O9(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=ul(e,u),l===cl)m=!0,p&&(g=g||u-f-1>r&&e[f+1]!==" ",f=u);else if(!ml(l))return hs;h=h&&O9(l,c,s),c=l}g=g||p&&u-f-1>r&&e[f+1]!==" "}return!m&&!g?h&&!o&&!a(e)?k6:i===dl?hs:Kp:n>9&&A6(e)?hs:o?i===dl?hs:Kp:g?L6:D6}function LD(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===dl?'""':"''";if(!e.noCompatMode&&(vD.indexOf(t)!==-1||CD.test(t)))return e.quotingType===dl?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return ED(e,l)}switch(DD(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case k6:return t;case Kp:return"'"+t.replace(/'/g,"''")+"'";case D6:return"|"+N9(t,e.indent)+U9(F9(t,i));case L6:return">"+N9(t,e.indent)+U9(F9(MD(t,o),i));case hs:return'"'+PD(t)+'"';default:throw new $n("impossible error: invalid scalar style")}}()}function N9(e,t){var n=A6(e)?String(t):"",r=e[e.length-1]===` +`+fn.repeat(" ",e.indent*t)}function wD(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function w6(e){var t=/^\n* /;return t.test(e)}var E6=1,Kp=2,A6=3,k6=4,hs=5;function kD(e,t,n,r,a,i,o,s){var u,l=0,c=null,m=!1,g=!1,p=r!==-1,f=-1,b=ED(sl(e,0))&&AD(sl(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=sl(e,u),!dl(l))return hs;b=b&&F9(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=sl(e,u),l===ll)m=!0,p&&(g=g||u-f-1>r&&e[f+1]!==" ",f=u);else if(!dl(l))return hs;b=b&&F9(l,c,s),c=l}g=g||p&&u-f-1>r&&e[f+1]!==" "}return!m&&!g?b&&!o&&!a(e)?E6:i===cl?hs:Kp:n>9&&w6(e)?hs:o?i===cl?hs:Kp:g?k6:A6}function DD(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===cl?'""':"''";if(!e.noCompatMode&&(yD.indexOf(t)!==-1||vD.test(t)))return e.quotingType===cl?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return wD(e,l)}switch(kD(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case E6:return t;case Kp:return"'"+t.replace(/'/g,"''")+"'";case A6:return"|"+B9(t,e.indent)+O9(R9(t,i));case k6:return">"+B9(t,e.indent)+O9(R9(LD(t,o),i));case hs:return'"'+MD(t)+'"';default:throw new Gn("impossible error: invalid scalar style")}}()}function B9(e,t){var n=w6(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function U9(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function MD(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,j9(e.slice(0,l),t)}(),a=e[0]===` +`}function O9(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function LD(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,N9(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+j9(u,t),a=i}return r}function j9(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+N9(u,t),a=i}return r}function N9(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function PD(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=ul(e,a),r=Fn[n],!r&&ml(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||TD(n);return t}function _D(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Xa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function H9(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Xa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Vp(e,t)),e.dump&&cl===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function RD(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Xa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function ID(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,m,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new $n("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,m&&(e.dump&&cl===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,m&&(g+=Vp(e,t)),Xa(e,t+1,c,!0,m)&&(e.dump&&cl===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=i,e.dump=a||"{}"}function q9(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Xa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,q9(e,n,!1)||q9(e,n,!0);var s=v6.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",m,g;if(c&&(m=e.duplicates.indexOf(n),g=m!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(c&&g&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(ID(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(RD(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?H9(e,t-1,e.dump,a):H9(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(_D(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&LD(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new $n("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function FD(e,t){var n=[],r=[],a,i;for(Gp(e,n,r),a=0,i=r.length;a{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var ef=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function I0(e,t){let n=Cs(),r=setTimeout(()=>n.reject(new ef),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function tt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var M6=class{#e=0;#t=[];#n=[];#r=Cs();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tAL,bgBlue:()=>ML,bgBrightBlack:()=>IL,bgBrightBlue:()=>NL,bgBrightCyan:()=>jL,bgBrightGreen:()=>BL,bgBrightMagenta:()=>UL,bgBrightRed:()=>FL,bgBrightWhite:()=>HL,bgBrightYellow:()=>OL,bgCyan:()=>_L,bgGreen:()=>DL,bgMagenta:()=>PL,bgRed:()=>kL,bgRgb24:()=>VL,bgRgb8:()=>zL,bgWhite:()=>RL,bgYellow:()=>LL,black:()=>cL,blue:()=>pL,bold:()=>rL,brightBlack:()=>R6,brightBlue:()=>TL,brightCyan:()=>wL,brightGreen:()=>CL,brightMagenta:()=>SL,brightRed:()=>vL,brightWhite:()=>EL,brightYellow:()=>xL,cyan:()=>hL,dim:()=>aL,getColorEnabled:()=>tL,gray:()=>yL,green:()=>mL,hidden:()=>uL,inverse:()=>sL,italic:()=>iL,magenta:()=>fL,red:()=>dL,reset:()=>nL,rgb24:()=>WL,rgb8:()=>qL,setColorEnabled:()=>eL,strikethrough:()=>lL,stripColor:()=>GL,underline:()=>oL,white:()=>bL,yellow:()=>gL});var{Deno:P6}=globalThis,_6=typeof P6?.noColor=="boolean"?P6.noColor:!0,tf=!_6;function eL(e){_6||(tf=e)}function tL(){return tf}function Fe(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Be(e,t){return tf?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function nL(e){return Be(e,Fe([0],0))}function rL(e){return Be(e,Fe([1],22))}function aL(e){return Be(e,Fe([2],22))}function iL(e){return Be(e,Fe([3],23))}function oL(e){return Be(e,Fe([4],24))}function sL(e){return Be(e,Fe([7],27))}function uL(e){return Be(e,Fe([8],28))}function lL(e){return Be(e,Fe([9],29))}function cL(e){return Be(e,Fe([30],39))}function dL(e){return Be(e,Fe([31],39))}function mL(e){return Be(e,Fe([32],39))}function gL(e){return Be(e,Fe([33],39))}function pL(e){return Be(e,Fe([34],39))}function fL(e){return Be(e,Fe([35],39))}function hL(e){return Be(e,Fe([36],39))}function bL(e){return Be(e,Fe([37],39))}function yL(e){return R6(e)}function R6(e){return Be(e,Fe([90],39))}function vL(e){return Be(e,Fe([91],39))}function CL(e){return Be(e,Fe([92],39))}function xL(e){return Be(e,Fe([93],39))}function TL(e){return Be(e,Fe([94],39))}function SL(e){return Be(e,Fe([95],39))}function wL(e){return Be(e,Fe([96],39))}function EL(e){return Be(e,Fe([97],39))}function AL(e){return Be(e,Fe([40],49))}function kL(e){return Be(e,Fe([41],49))}function DL(e){return Be(e,Fe([42],49))}function LL(e){return Be(e,Fe([43],49))}function ML(e){return Be(e,Fe([44],49))}function PL(e){return Be(e,Fe([45],49))}function _L(e){return Be(e,Fe([46],49))}function RL(e){return Be(e,Fe([47],49))}function IL(e){return Be(e,Fe([100],49))}function FL(e){return Be(e,Fe([101],49))}function BL(e){return Be(e,Fe([102],49))}function OL(e){return Be(e,Fe([103],49))}function NL(e){return Be(e,Fe([104],49))}function UL(e){return Be(e,Fe([105],49))}function jL(e){return Be(e,Fe([106],49))}function HL(e){return Be(e,Fe([107],49))}function ki(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function qL(e,t){return Be(e,Fe([38,5,ki(t)],39))}function zL(e,t){return Be(e,Fe([48,5,ki(t)],49))}function WL(e,t){return typeof t=="number"?Be(e,Fe([38,2,t>>16&255,t>>8&255,t&255],39)):Be(e,Fe([38,2,ki(t.r),ki(t.g),ki(t.b)],39))}function VL(e,t){return typeof t=="number"?Be(e,Fe([48,2,t>>16&255,t>>8&255,t&255],49)):Be(e,Fe([48,2,ki(t.r),ki(t.g),ki(t.b)],49))}var KL=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function GL(e){return e.replace(KL,"")}var nf=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},$L={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function rf(e,t){let n={...$L,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new nf(a,n.maxAttempts)}var ei=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function af(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=ei[(t[r-2]&3)<<4|t[r-1]>>4],n+=ei[(t[r-1]&15)<<2|t[r]>>6],n+=ei[t[r]&63];return r===a+1&&(n+=ei[t[r-2]>>2],n+=ei[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=ei[t[r-2]>>2],n+=ei[(t[r-2]&3)<<4|t[r-1]>>4],n+=ei[(t[r-1]&15)<<2],n+="="),n}var YL=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ZL=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,JL=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,of={Space_Separator:YL,ID_Start:ZL,ID_Continue:JL},tn={isSpaceSeparator(e){return typeof e=="string"&&of.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||of.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||of.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},uf,Yn,ni,B0,Di,zr,Cn,df,fl,QL=function(e,t){uf=String(e),Yn="start",ni=[],B0=0,Di=1,zr=0,Cn=void 0,df=void 0,fl=void 0;do Cn=XL(),nM[Yn]();while(Cn.type!=="eof");return typeof t=="function"?lf({"":fl},"",t):fl};function lf(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ri();if(!tn.isHexDigit(n))throw It(K());e+=K()}return String.fromCodePoint(parseInt(e,16))}var nM={start(){if(Cn.type==="eof")throw So();sf()},beforePropertyName(){switch(Cn.type){case"identifier":case"string":df=Cn.value,Yn="afterPropertyName";return;case"punctuator":F0();return;case"eof":throw So()}},afterPropertyName(){if(Cn.type==="eof")throw So();Yn="beforePropertyValue"},beforePropertyValue(){if(Cn.type==="eof")throw So();sf()},beforeArrayValue(){if(Cn.type==="eof")throw So();if(Cn.type==="punctuator"&&Cn.value==="]"){F0();return}sf()},afterPropertyValue(){if(Cn.type==="eof")throw So();switch(Cn.value){case",":Yn="beforePropertyName";return;case"}":F0()}},afterArrayValue(){if(Cn.type==="eof")throw So();switch(Cn.value){case",":Yn="beforeArrayValue";return;case"]":F0()}},end(){}};function sf(){let e;switch(Cn.type){case"punctuator":switch(Cn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Cn.value;break}if(fl===void 0)fl=e;else{let t=ni[ni.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,df,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ni.push(e),Array.isArray(e)?Yn="beforeArrayValue":Yn="beforePropertyName";else{let t=ni[ni.length-1];t==null?Yn="end":Array.isArray(t)?Yn="afterArrayValue":Yn="afterPropertyValue"}}function F0(){ni.pop();let e=ni[ni.length-1];e==null?Yn="end":Array.isArray(e)?Yn="afterArrayValue":Yn="afterPropertyValue"}function It(e){return mf(e===void 0?`JSON5: invalid end of input at ${Di}:${zr}`:`JSON5: invalid character '${rM(e)}' at ${Di}:${zr}`)}function So(){return mf(`JSON5: invalid end of input at ${Di}:${zr}`)}function I6(){return zr-=5,mf(`JSON5: invalid identifier character at ${Di}:${zr}`)}function rM(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function mf(e){let t=new SyntaxError(e);return t.lineNumber=Di,t.columnNumber=zr,t}var aM=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let f of t){let h;typeof f=="string"?h=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(h=String(f)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(f,h){let y=h[f];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(f):typeof y.toJSON=="function"&&(y=y.toJSON(f))),o&&(y=o.call(h,f,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return c(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?p(y):m(y)}function c(f){let h={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},b="";for(let C=0;Ch[C]=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let h=a;a=a+s;let y=i||Object.keys(f),b=[];for(let C of y){let x=l(C,f);if(x!==void 0){let T=g(C)+":";s!==""&&(T+=" "),T+=x,b.push(T)}}let v;if(b.length===0)v="{}";else{let C;if(s==="")C=b.join(","),v="{"+C+"}";else{let x=`, -`+a;C=b.join(x),v=`{ +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function MD(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=sl(e,a),r=In[n],!r&&dl(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||xD(n);return t}function PD(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Qa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function U9(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Qa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Vp(e,t)),e.dump&&ll===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function _D(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Qa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function RD(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,m,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Gn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,m&&(e.dump&&ll===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,m&&(g+=Vp(e,t)),Qa(e,t+1,c,!0,m)&&(e.dump&&ll===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=i,e.dump=a||"{}"}function j9(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Qa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,j9(e,n,!1)||j9(e,n,!0);var s=b6.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",m,g;if(c&&(m=e.duplicates.indexOf(n),g=m!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(c&&g&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(RD(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(_D(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?U9(e,t-1,e.dump,a):U9(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(PD(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&DD(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Gn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function ID(e,t){var n=[],r=[],a,i;for(Gp(e,n,r),a=0,i=r.length;a{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var ef=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function R0(e,t){let n=Cs(),r=setTimeout(()=>n.reject(new ef),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function tt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var D6=class{#e=0;#t=[];#n=[];#r=Cs();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tEL,bgBlue:()=>LL,bgBrightBlack:()=>RL,bgBrightBlue:()=>OL,bgBrightCyan:()=>UL,bgBrightGreen:()=>FL,bgBrightMagenta:()=>NL,bgBrightRed:()=>IL,bgBrightWhite:()=>jL,bgBrightYellow:()=>BL,bgCyan:()=>PL,bgGreen:()=>kL,bgMagenta:()=>ML,bgRed:()=>AL,bgRgb24:()=>WL,bgRgb8:()=>qL,bgWhite:()=>_L,bgYellow:()=>DL,black:()=>lL,blue:()=>gL,bold:()=>nL,brightBlack:()=>P6,brightBlue:()=>xL,brightCyan:()=>SL,brightGreen:()=>vL,brightMagenta:()=>TL,brightRed:()=>yL,brightWhite:()=>wL,brightYellow:()=>CL,cyan:()=>fL,dim:()=>rL,getColorEnabled:()=>eL,gray:()=>bL,green:()=>dL,hidden:()=>sL,inverse:()=>oL,italic:()=>aL,magenta:()=>pL,red:()=>cL,reset:()=>tL,rgb24:()=>zL,rgb8:()=>HL,setColorEnabled:()=>XD,strikethrough:()=>uL,stripColor:()=>KL,underline:()=>iL,white:()=>hL,yellow:()=>mL});var{Deno:L6}=globalThis,M6=typeof L6?.noColor=="boolean"?L6.noColor:!0,tf=!M6;function XD(e){M6||(tf=e)}function eL(){return tf}function Be(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Oe(e,t){return tf?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function tL(e){return Oe(e,Be([0],0))}function nL(e){return Oe(e,Be([1],22))}function rL(e){return Oe(e,Be([2],22))}function aL(e){return Oe(e,Be([3],23))}function iL(e){return Oe(e,Be([4],24))}function oL(e){return Oe(e,Be([7],27))}function sL(e){return Oe(e,Be([8],28))}function uL(e){return Oe(e,Be([9],29))}function lL(e){return Oe(e,Be([30],39))}function cL(e){return Oe(e,Be([31],39))}function dL(e){return Oe(e,Be([32],39))}function mL(e){return Oe(e,Be([33],39))}function gL(e){return Oe(e,Be([34],39))}function pL(e){return Oe(e,Be([35],39))}function fL(e){return Oe(e,Be([36],39))}function hL(e){return Oe(e,Be([37],39))}function bL(e){return P6(e)}function P6(e){return Oe(e,Be([90],39))}function yL(e){return Oe(e,Be([91],39))}function vL(e){return Oe(e,Be([92],39))}function CL(e){return Oe(e,Be([93],39))}function xL(e){return Oe(e,Be([94],39))}function TL(e){return Oe(e,Be([95],39))}function SL(e){return Oe(e,Be([96],39))}function wL(e){return Oe(e,Be([97],39))}function EL(e){return Oe(e,Be([40],49))}function AL(e){return Oe(e,Be([41],49))}function kL(e){return Oe(e,Be([42],49))}function DL(e){return Oe(e,Be([43],49))}function LL(e){return Oe(e,Be([44],49))}function ML(e){return Oe(e,Be([45],49))}function PL(e){return Oe(e,Be([46],49))}function _L(e){return Oe(e,Be([47],49))}function RL(e){return Oe(e,Be([100],49))}function IL(e){return Oe(e,Be([101],49))}function FL(e){return Oe(e,Be([102],49))}function BL(e){return Oe(e,Be([103],49))}function OL(e){return Oe(e,Be([104],49))}function NL(e){return Oe(e,Be([105],49))}function UL(e){return Oe(e,Be([106],49))}function jL(e){return Oe(e,Be([107],49))}function ki(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function HL(e,t){return Oe(e,Be([38,5,ki(t)],39))}function qL(e,t){return Oe(e,Be([48,5,ki(t)],49))}function zL(e,t){return typeof t=="number"?Oe(e,Be([38,2,t>>16&255,t>>8&255,t&255],39)):Oe(e,Be([38,2,ki(t.r),ki(t.g),ki(t.b)],39))}function WL(e,t){return typeof t=="number"?Oe(e,Be([48,2,t>>16&255,t>>8&255,t&255],49)):Oe(e,Be([48,2,ki(t.r),ki(t.g),ki(t.b)],49))}var VL=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function KL(e){return e.replace(VL,"")}var nf=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},GL={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function rf(e,t){let n={...GL,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new nf(a,n.maxAttempts)}var Xa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function af(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=Xa[(t[r-2]&3)<<4|t[r-1]>>4],n+=Xa[(t[r-1]&15)<<2|t[r]>>6],n+=Xa[t[r]&63];return r===a+1&&(n+=Xa[t[r-2]>>2],n+=Xa[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=Xa[t[r-2]>>2],n+=Xa[(t[r-2]&3)<<4|t[r-1]>>4],n+=Xa[(t[r-1]&15)<<2],n+="="),n}var $L=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,YL=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ZL=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,of={Space_Separator:$L,ID_Start:YL,ID_Continue:ZL},tn={isSpaceSeparator(e){return typeof e=="string"&&of.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||of.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||of.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},uf,$n,ti,F0,Di,qr,Cn,df,pl,JL=function(e,t){uf=String(e),$n="start",ti=[],F0=0,Di=1,qr=0,Cn=void 0,df=void 0,pl=void 0;do Cn=QL(),tM[$n]();while(Cn.type!=="eof");return typeof t=="function"?lf({"":pl},"",t):pl};function lf(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ni();if(!tn.isHexDigit(n))throw It(K());e+=K()}return String.fromCodePoint(parseInt(e,16))}var tM={start(){if(Cn.type==="eof")throw So();sf()},beforePropertyName(){switch(Cn.type){case"identifier":case"string":df=Cn.value,$n="afterPropertyName";return;case"punctuator":I0();return;case"eof":throw So()}},afterPropertyName(){if(Cn.type==="eof")throw So();$n="beforePropertyValue"},beforePropertyValue(){if(Cn.type==="eof")throw So();sf()},beforeArrayValue(){if(Cn.type==="eof")throw So();if(Cn.type==="punctuator"&&Cn.value==="]"){I0();return}sf()},afterPropertyValue(){if(Cn.type==="eof")throw So();switch(Cn.value){case",":$n="beforePropertyName";return;case"}":I0()}},afterArrayValue(){if(Cn.type==="eof")throw So();switch(Cn.value){case",":$n="beforeArrayValue";return;case"]":I0()}},end(){}};function sf(){let e;switch(Cn.type){case"punctuator":switch(Cn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Cn.value;break}if(pl===void 0)pl=e;else{let t=ti[ti.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,df,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ti.push(e),Array.isArray(e)?$n="beforeArrayValue":$n="beforePropertyName";else{let t=ti[ti.length-1];t==null?$n="end":Array.isArray(t)?$n="afterArrayValue":$n="afterPropertyValue"}}function I0(){ti.pop();let e=ti[ti.length-1];e==null?$n="end":Array.isArray(e)?$n="afterArrayValue":$n="afterPropertyValue"}function It(e){return mf(e===void 0?`JSON5: invalid end of input at ${Di}:${qr}`:`JSON5: invalid character '${nM(e)}' at ${Di}:${qr}`)}function So(){return mf(`JSON5: invalid end of input at ${Di}:${qr}`)}function _6(){return qr-=5,mf(`JSON5: invalid identifier character at ${Di}:${qr}`)}function nM(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function mf(e){let t=new SyntaxError(e);return t.lineNumber=Di,t.columnNumber=qr,t}var rM=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let f of t){let b;typeof f=="string"?b=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(b=String(f)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(f,b){let y=b[f];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(f):typeof y.toJSON=="function"&&(y=y.toJSON(f))),o&&(y=o.call(b,f,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return c(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?p(y):m(y)}function c(f){let b={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},h="";for(let C=0;Cb[C]=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=i||Object.keys(f),h=[];for(let C of y){let x=l(C,f);if(x!==void 0){let T=g(C)+":";s!==""&&(T+=" "),T+=x,h.push(T)}}let v;if(h.length===0)v="{}";else{let C;if(s==="")C=h.join(","),v="{"+C+"}";else{let x=`, +`+a;C=h.join(x),v=`{ `+a+C+`, -`+h+"}"}}return r.pop(),a=h,v}function g(f){if(f.length===0)return c(f,!0);let h=String.fromCodePoint(f.codePointAt(0));if(!tn.isIdStartChar(h))return c(f,!0);for(let y=h.length;y=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let h=a;a=a+s;let y=[];for(let v=0;v=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=[];for(let v=0;v()=>(t||e((t={exports:{}}).exports,t),t.exports),fM=(e,t)=>{for(var n in t)pf(e,n,{get:t[n],enumerable:!0})},gf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of dM(t))!gM.call(e,a)&&a!==n&&pf(e,a,{get:()=>t[a],enumerable:!(r=cM(t,a))||r.enumerable});return e},hM=(e,t,n)=>(gf(e,t,"default"),n&&gf(n,t,"default")),N6=(e,t,n)=>(n=e!=null?lM(mM(e)):{},gf(t||!e||!e.__esModule?pf(n,"default",{value:e,enumerable:!0}):n,e)),U6=pM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof N0=="object"&&N0&&N0.Object===Object&&N0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,h=Math.max,y=Math.min,b=function(){return g.Date.now()};function v(A,D,M){var R,_,B,L,N,U,V=0,Y=!1,ae=!1,_e=!0;if(typeof A!="function")throw new TypeError(n);D=S(D)||0,x(M)&&(Y=!!M.leading,ae="maxWait"in M,B=ae?h(S(M.maxWait)||0,D):B,_e="trailing"in M?!!M.trailing:_e);function xe(he){var pe=R,ke=_;return R=_=void 0,V=he,L=A.apply(ke,pe),L}function H(he){return V=he,N=setTimeout(Me,D),Y?xe(he):L}function W(he){var pe=he-U,ke=he-V,We=D-pe;return ae?y(We,B-ke):We}function ee(he){var pe=he-U,ke=he-V;return U===void 0||pe>=D||pe<0||ae&&ke>=B}function Me(){var he=b();if(ee(he))return ve(he);N=setTimeout(Me,W(he))}function ve(he){return N=void 0,_e&&R?xe(he):(R=_=void 0,L)}function Xe(){N!==void 0&&clearTimeout(N),V=0,R=U=_=N=void 0}function J(){return N===void 0?L:ve(b())}function ce(){var he=b(),pe=ee(he);if(R=arguments,_=this,U=he,pe){if(N===void 0)return H(U);if(ae)return N=setTimeout(Me,D),xe(U)}return N===void 0&&(N=setTimeout(Me,D)),L}return ce.cancel=Xe,ce.flush=J,ce}function C(A,D,M){var R=!0,_=!0;if(typeof A!="function")throw new TypeError(n);return x(M)&&(R="leading"in M?!!M.leading:R,_="trailing"in M?!!M.trailing:_),v(A,D,{leading:R,maxWait:D,trailing:_})}function x(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function T(A){return!!A&&typeof A=="object"}function w(A){return typeof A=="symbol"||T(A)&&f.call(A)==a}function S(A){if(typeof A=="number")return A;if(w(A))return r;if(x(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=x(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=C}),j6={};fM(j6,{default:()=>vr});var bM=N6(U6());hM(j6,N6(U6()));var{default:O6,...yM}=bM,vr=O6!==void 0?O6:yM;var U0=globalThis||(typeof window<"u"?window:self),vM=Object.create,hf=Object.defineProperty,CM=Object.getOwnPropertyDescriptor,xM=Object.getOwnPropertyNames,TM=Object.getPrototypeOf,SM=Object.prototype.hasOwnProperty,wM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),EM=(e,t)=>{for(var n in t)hf(e,n,{get:t[n],enumerable:!0})},ff=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of xM(t))!SM.call(e,a)&&a!==n&&hf(e,a,{get:()=>t[a],enumerable:!(r=CM(t,a))||r.enumerable});return e},AM=(e,t,n)=>(ff(e,t,"default"),n&&ff(n,t,"default")),q6=(e,t,n)=>(n=e!=null?vM(TM(e)):{},ff(t||!e||!e.__esModule?hf(n,"default",{value:e,enumerable:!0}):n,e)),z6=wM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof U0=="object"&&U0&&U0.Object===Object&&U0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,h=Math.max,y=Math.min,b=function(){return g.Date.now()};function v(S,A,D){var M,R,_,B,L,N,U=0,V=!1,Y=!1,ae=!0;if(typeof S!="function")throw new TypeError(n);A=w(A)||0,C(D)&&(V=!!D.leading,Y="maxWait"in D,_=Y?h(w(D.maxWait)||0,A):_,ae="trailing"in D?!!D.trailing:ae);function _e(ce){var he=M,pe=R;return M=R=void 0,U=ce,B=S.apply(pe,he),B}function xe(ce){return U=ce,L=setTimeout(ee,A),V?_e(ce):B}function H(ce){var he=ce-N,pe=ce-U,ke=A-he;return Y?y(ke,_-pe):ke}function W(ce){var he=ce-N,pe=ce-U;return N===void 0||he>=A||he<0||Y&&pe>=_}function ee(){var ce=b();if(W(ce))return Me(ce);L=setTimeout(ee,H(ce))}function Me(ce){return L=void 0,ae&&M?_e(ce):(M=R=void 0,B)}function ve(){L!==void 0&&clearTimeout(L),U=0,M=N=R=L=void 0}function Xe(){return L===void 0?B:Me(b())}function J(){var ce=b(),he=W(ce);if(M=arguments,R=this,N=ce,he){if(L===void 0)return xe(N);if(Y)return L=setTimeout(ee,A),_e(N)}return L===void 0&&(L=setTimeout(ee,A)),B}return J.cancel=ve,J.flush=Xe,J}function C(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function x(S){return!!S&&typeof S=="object"}function T(S){return typeof S=="symbol"||x(S)&&f.call(S)==a}function w(S){if(typeof S=="number")return S;if(T(S))return r;if(C(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=C(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(i,"");var D=s.test(S);return D||u.test(S)?l(S.slice(2),D?2:8):o.test(S)?r:+S}t.exports=v}),W6={};EM(W6,{default:()=>Bn});var kM=q6(z6());AM(W6,q6(z6()));var{default:H6,...DM}=kM,Bn=H6!==void 0?H6:DM;var LM=Object.create,yf=Object.defineProperty,MM=Object.getOwnPropertyDescriptor,PM=Object.getOwnPropertyNames,_M=Object.getPrototypeOf,RM=Object.prototype.hasOwnProperty,IM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),FM=(e,t)=>{for(var n in t)yf(e,n,{get:t[n],enumerable:!0})},bf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of PM(t))!RM.call(e,a)&&a!==n&&yf(e,a,{get:()=>t[a],enumerable:!(r=MM(t,a))||r.enumerable});return e},BM=(e,t,n)=>(bf(e,t,"default"),n&&bf(n,t,"default")),K6=(e,t,n)=>(n=e!=null?LM(_M(e)):{},bf(t||!e||!e.__esModule?yf(n,"default",{value:e,enumerable:!0}):n,e)),G6=IM((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,m){l(r)==="object"&&l(i)==="object"?i.exports=m():(s=[],o=m,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function m(p){if(g[p])return g[p].exports;var f=g[p]={i:p,l:!1,exports:{}};return c[p].call(f.exports,f,f.exports,m),f.l=!0,f.exports}var g={};return m.m=c,m.c=g,m.i=function(p){return p},m.d=function(p,f,h){m.o(p,f)||Object.defineProperty(p,f,{configurable:!1,enumerable:!0,get:h})},m.n=function(p){var f=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(f,"a",f),f},m.o=function(p,f){return Object.prototype.hasOwnProperty.call(p,f)},m.p="",m(m.s=0)}([function(c,m,g){function p(H,W){var ee={};for(var Me in H)W.indexOf(Me)>=0||Object.prototype.hasOwnProperty.call(H,Me)&&(ee[Me]=H[Me]);return ee}Object.defineProperty(m,"__esModule",{value:!0});var f=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":l(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":l(H)},h=Object.assign||function(H){for(var W=1;W'+Me+"
",ke.onclick=function(){return _(We,pe)},ke.listener=function(Z){(D(Z)||M(Z))&&N()},R(ke,pe),Xe&&Xe<1&&(Xe=1),!ce&&Xe&&x(Xe).then(function(){return _(We,pe)})},V=m.force=function(H,W){var ee=H.type,Me=ee===void 0?5:ee,ve=H.text,Xe=H.buttonText,J=Xe===void 0?"OK":Xe,ce=H.callback,he=H.position,pe=he===void 0?b.positions.force||pe.top:he;T(),N();var ke=document.createElement("div"),We=w();ke.id=We;var Z=document.createElement("div");Z.classList.add(b.classes.textbox),Z.classList.add(b.classes.backgroundInfo),Z.innerHTML='
'+ve+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(S[Me]),Ee.innerHTML=J,Ee.onclick=function(){_(We,pe),L(),ce?ce():W&&W()},ke.appendChild(Z),ke.appendChild(Ee),ke.listener=function(Ct){D(Ct)&&Ee.click()},R(ke,pe),B()},Y=m.confirm=function(H,W,ee){var Me=H.text,ve=H.submitText,Xe=ve===void 0?"Yes":ve,J=H.cancelText,ce=J===void 0?"Cancel":J,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,We=ke===void 0?b.positions.confirm||We.top:ke;T(),N();var Z=document.createElement("div"),Ee=w();Z.id=Ee;var Ct=document.createElement("div");Ct.classList.add(b.classes.textbox),Ct.classList.add(b.classes.backgroundInfo),Ct.innerHTML='
'+Me+"
";var ut=document.createElement("div");ut.classList.add(b.classes.button),ut.classList.add(b.classes.elementHalf),ut.classList.add(b.classes.backgroundSuccess),ut.innerHTML=Xe,ut.onclick=function(){_(Ee,We),L(),he?he():W&&W()};var De=document.createElement("div");De.classList.add(b.classes.button),De.classList.add(b.classes.elementHalf),De.classList.add(b.classes.backgroundError),De.innerHTML=ce,De.onclick=function(){_(Ee,We),L(),pe?pe():ee&&ee()},Z.appendChild(Ct),Z.appendChild(ut),Z.appendChild(De),Z.listener=function(Nt){D(Nt)?ut.click():M(Nt)&&De.click()},R(Z,We),B(Z,We)},ae=function(H,W,ee){var Me=H.text,ve=H.submitText,Xe=ve===void 0?"Submit":ve,J=H.cancelText,ce=J===void 0?"Cancel":J,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,We=ke===void 0?b.positions.input||We.top:ke,Z=p(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);T(),N();var Ee=document.createElement("div"),Ct=w();Ee.id=Ct;var ut=document.createElement("div");ut.classList.add(b.classes.textbox),ut.classList.add(b.classes.backgroundInfo),ut.innerHTML='
'+Me+"
";var De=document.createElement("input");De.classList.add(b.classes.inputField),De.setAttribute("autocapitalize",Z.autocapitalize||"none"),De.setAttribute("autocomplete",Z.autocomplete||"off"),De.setAttribute("autocorrect",Z.autocorrect||"off"),De.setAttribute("autofocus",Z.autofocus||"true"),De.setAttribute("inputmode",Z.inputmode||"verbatim"),De.setAttribute("max",Z.max||""),De.setAttribute("maxlength",Z.maxlength||""),De.setAttribute("min",Z.min||""),De.setAttribute("minlength",Z.minlength||""),De.setAttribute("placeholder",Z.placeholder||""),De.setAttribute("spellcheck",Z.spellcheck||"default"),De.setAttribute("step",Z.step||"any"),De.setAttribute("type",Z.type||"text"),De.value=Z.value||"",Z.allowed&&(De.oninput=function(){var Vt=void 0;if(Array.isArray(Z.allowed)){for(var Qt="",Vn=Z.allowed,Dr=0;Dr'+ee+"
",pe.appendChild(We),J.forEach(function(Ee,Ct){var ut=Ee.type,De=ut===void 0?1:ut,Nt=Ee.text,mn=Ee.handler,Vt=document.createElement("div");Vt.classList.add(S[De]),Vt.classList.add(b.classes.button),Vt.classList.add(b.classes.selectChoice);var Qt=J[Ct+1];Qt&&!Qt.type&&(Qt.type=1),Qt&&Qt.type===De&&Vt.classList.add(b.classes.selectChoiceRepeated),Vt.innerHTML=Nt,Vt.onclick=function(){_(ke,he),L(),mn()},pe.appendChild(Vt)});var Z=document.createElement("div");Z.classList.add(b.classes.backgroundNeutral),Z.classList.add(b.classes.button),Z.innerHTML=ve,Z.onclick=function(){_(ke,he),L(),Xe?Xe():W&&W()},pe.appendChild(Z),pe.listener=function(Ee){M(Ee)&&Z.click()},R(pe,he),B(pe,he)},xe=m.date=function(H,W,ee){var Me=H.value,ve=Me===void 0?new Date:Me,Xe=H.submitText,J=Xe===void 0?"OK":Xe,ce=H.cancelText,he=ce===void 0?"Cancel":ce,pe=H.submitCallback,ke=H.cancelCallback,We=H.position,Z=We===void 0?b.positions.date||Z.top:We;T(),N();var Ee="▾",Ct=document.createElement("div"),ut=document.createElement("div"),De=document.createElement("div"),Nt=function(Ut){Ct.innerHTML=b.dateMonths[Ut.getMonth()],ut.innerHTML=Ut.getDate(),De.innerHTML=Ut.getFullYear()},mn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+1,0).getDate(),hr=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(hr)>xt&&(hr=xt.toString()),Ut.target.textContent=hr,Number(hr)<1&&(hr="1"),ve.setDate(Number(hr))},Vt=function(Ut){var xt=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ut.target.textContent=xt,ve.setFullYear(Number(xt))},Qt=function(Ut){Nt(ve)},Vn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+Ut+1,0).getDate();ve.getDate()>xt&&ve.setDate(xt),ve.setMonth(ve.getMonth()+Ut),Nt(ve)},Dr=function(Ut){ve.setDate(ve.getDate()+Ut),Nt(ve)},Pu=function(Ut){var xt=ve.getFullYear()+Ut;xt<0?ve.setFullYear(0):ve.setFullYear(ve.getFullYear()+Ut),Nt(ve)},va=document.createElement("div"),uo=w();va.id=uo;var Qo=document.createElement("div");Qo.classList.add(b.classes.backgroundInfo);var _n=document.createElement("div");_n.classList.add(b.classes.dateSelectorInner);var jr=document.createElement("div");jr.classList.add(b.classes.button),jr.classList.add(b.classes.elementThird),jr.classList.add(b.classes.dateSelectorUp),jr.innerHTML=Ee;var Rn=document.createElement("div");Rn.classList.add(b.classes.button),Rn.classList.add(b.classes.elementThird),Rn.classList.add(b.classes.dateSelectorUp),Rn.innerHTML=Ee;var fr=document.createElement("div");fr.classList.add(b.classes.button),fr.classList.add(b.classes.elementThird),fr.classList.add(b.classes.dateSelectorUp),fr.innerHTML=Ee,Ct.classList.add(b.classes.element),Ct.classList.add(b.classes.elementThird),Ct.innerHTML=b.dateMonths[ve.getMonth()],ut.classList.add(b.classes.element),ut.classList.add(b.classes.elementThird),ut.setAttribute("contentEditable",!0),ut.addEventListener("input",mn),ut.addEventListener("blur",Qt),ut.innerHTML=ve.getDate(),De.classList.add(b.classes.element),De.classList.add(b.classes.elementThird),De.setAttribute("contentEditable",!0),De.addEventListener("input",Vt),De.addEventListener("blur",Qt),De.innerHTML=ve.getFullYear();var Ka=document.createElement("div");Ka.classList.add(b.classes.button),Ka.classList.add(b.classes.elementThird),Ka.innerHTML=Ee;var Ga=document.createElement("div");Ga.classList.add(b.classes.button),Ga.classList.add(b.classes.elementThird),Ga.innerHTML=Ee;var lo=document.createElement("div");lo.classList.add(b.classes.button),lo.classList.add(b.classes.elementThird),lo.innerHTML=Ee,jr.onclick=function(){return Vn(1)},Rn.onclick=function(){return Dr(1)},fr.onclick=function(){return Pu(1)},Ka.onclick=function(){return Vn(-1)},Ga.onclick=function(){return Dr(-1)},lo.onclick=function(){return Pu(-1)};var Kn=document.createElement("div");Kn.classList.add(b.classes.button),Kn.classList.add(b.classes.elementHalf),Kn.classList.add(b.classes.backgroundSuccess),Kn.innerHTML=J,Kn.onclick=function(){_(uo,Z),L(),pe?pe(ve):W&&W(ve)};var $a=document.createElement("div");$a.classList.add(b.classes.button),$a.classList.add(b.classes.elementHalf),$a.classList.add(b.classes.backgroundError),$a.innerHTML=he,$a.onclick=function(){_(uo,Z),L(),ke?ke(ve):ee&&ee(ve)},_n.appendChild(jr),_n.appendChild(Rn),_n.appendChild(fr),_n.appendChild(Ct),_n.appendChild(ut),_n.appendChild(De),_n.appendChild(Ka),_n.appendChild(Ga),_n.appendChild(lo),Qo.appendChild(_n),va.appendChild(Qo),va.appendChild(Kn),va.appendChild($a),va.listener=function(Ut){D(Ut)?Kn.click():M(Ut)&&$a.click()},R(va,Z),B(va,Z)};m.default={alert:U,force:V,confirm:Y,input:ae,select:_e,date:xe,setOptions:v,hideAlerts:N}}])})}).call(r,a(0)(n))}])})}),$6={};FM($6,{default:()=>j0});var OM=K6(G6());BM($6,K6(G6()));var{default:V6,...NM}=OM,j0=V6!==void 0?V6:NM;var H0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function hl(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function vf(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Y6(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ixs[e.toLowerCase()]||Vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),UM=e=>Object.keys(xs).find(t=>xs[t]===e),jM=e=>Object.keys(Vr).find(t=>Vr[t]===e);function ty(e){X6=e||"all"}function bl(){return X6||"all"}function HM(){return Et.slice(0)}function qM(){return Et.map(e=>UM(e)||jM(e)||String.fromCharCode(e))}function zM(){let e=[];return Object.keys(jt).forEach(t=>{jt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>yl(o))})})}),e}function WM(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function VM(e){return typeof e=="string"&&(e=yl(e)),Et.indexOf(e)!==-1}function KM(e,t){let n,r;e||(e=bl());for(let a in jt)if(Object.prototype.hasOwnProperty.call(jt,a))for(n=jt[a],r=0;r=0&&Et.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Et.splice(0,Et.length),(t===93||t===224)&&(t=91),t in xn){xn[t]=!1;for(let r in Vr)Vr[r]===t&&(ai[r]=!1)}}function ny(e,...t){if(typeof e>"u")Object.keys(jt).forEach(n=>delete jt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&xf(n)});else if(typeof e=="object")e.key&&xf(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),xf({key:e,scope:n,method:r,splitKey:"+"})}}var xf=({key:e,scope:t,method:n,splitKey:r="+"})=>{Cf(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":yl(u);if(!jt[l])return;t||(t=bl());let c=s>1?vf(Vr,o):[];jt[l]=jt[l].filter(m=>!((n?m.method===n:!0)&&m.scope===t&&Y6(m.mods,c)))})};function J6(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in xn)Object.prototype.hasOwnProperty.call(xn,i)&&(!xn[i]&&t.mods.indexOf(+i)>-1||xn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!xn[16]&&!xn[18]&&!xn[17]&&!xn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Et),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Q6(e,t){let n=jt["*"],r=e.keyCode||e.which||e.charCode;if(!ai.filter.call(this,e))return;if((r===93||r===224)&&(r=91),Et.indexOf(r)===-1&&r!==229&&Et.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=q0[i];e[i]&&Et.indexOf(o)===-1?Et.push(o):!e[i]&&Et.indexOf(o)>-1?Et.splice(Et.indexOf(o),1):i==="metaKey"&&e[i]&&Et.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Et=Et.slice(Et.indexOf(o))))}),r in xn){xn[r]=!0;for(let i in Vr)Vr[i]===r&&(ai[i]=!0);if(!n)return}for(let i in xn)Object.prototype.hasOwnProperty.call(xn,i)&&(xn[i]=e[q0[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Et.indexOf(17)===-1&&Et.push(17),Et.indexOf(18)===-1&&Et.push(18),xn[17]=!0,xn[18]=!0);let a=bl();if(n)for(let i=0;i-1}function ai(e,t,n){Et=[];let r=Cf(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",m=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&ny(e,i);s1&&(a=vf(Vr,e)),e=e[e.length-1],e=e==="*"?"*":yl(e),e in jt||(jt[e]=[]),jt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!YM(o)&&window&&(ey.push(o),hl(o,"keydown",p=>{Q6(p,o)},m),Z6||(Z6=!0,hl(window,"focus",()=>{Et=[]},m),hl(window,"click",()=>{Et=[]},!1)),hl(o,"keyup",p=>{Q6(p,o),$M(p)},m))}function ZM(e,t="all"){Object.keys(jt).forEach(n=>{jt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Tf={getPressedKeyString:qM,setScope:ty,getScope:bl,deleteScope:KM,getPressedKeyCodes:HM,getAllKeyCodes:zM,isPressed:VM,filter:WM,trigger:ZM,unbind:ny,keyMap:xs,modifier:Vr,modifierMap:q0};for(let e in Tf)Object.prototype.hasOwnProperty.call(Tf,e)&&(ai[e]=Tf[e]);if(typeof window<"u"){let e=window.hotkeys;ai.noConflict=t=>(t&&window.hotkeys===ai&&(window.hotkeys=e),ai),window.hotkeys=ai}var $t=ai;var JM={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},ay={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},nn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Zn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Li={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=G.getVersionPrecision(e),a=G.getVersionPrecision(t),i=Math.max(r,a),o=0,s=G.map([e,t],u=>{let l=i-G.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return G.map(c.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return JM[e]}static getBrowserTypeByAlias(e){return ay[e]||""}},At=/version\/(\d+(\.?_?\d+)+)/i,QM=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(r,e),version:G.getSecondMatch(r,e)}}}],XM=QM,eP=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Zn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Zn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:Zn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Zn.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),r={name:Zn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Zn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),r={name:Zn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Zn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:Zn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Zn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Zn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Zn.Linux}}},{test:[/CrOS/],describe(){return{name:Zn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Zn.PlayStation4,version:t}}}],tP=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:nn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:nn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:nn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:nn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:nn.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:nn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:nn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:nn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:nn.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:nn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:nn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:nn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:nn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:nn.tv}}}],nP=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Li.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Li.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Li.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Li.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Li.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Li.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Li.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],rP=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(XM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(eP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(tP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(nP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=G.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=G.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=G.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=G.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(G.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},ry=rP,aP=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new ry(e,t)}static parse(e){return new ry(e).getResult()}static get BROWSER_MAP(){return ay}static get ENGINE_MAP(){return Li}static get OS_MAP(){return Zn}static get PLATFORMS_MAP(){return nn}},Ts=aP;var{entries:my,setPrototypeOf:iy,isFrozen:iP,getPrototypeOf:oP,getOwnPropertyDescriptor:sP}=Object,{freeze:Jn,seal:Gr,create:uP}=Object,{apply:Df,construct:Lf}=typeof Reflect<"u"&&Reflect;Df||(Df=function(e,t,n){return e.apply(t,n)});Jn||(Jn=function(e){return e});Gr||(Gr=function(e){return e});Lf||(Lf=function(e,t){return new e(...t)});var lP=_r(Array.prototype.forEach),oy=_r(Array.prototype.pop),vl=_r(Array.prototype.push),V0=_r(String.prototype.toLowerCase),Sf=_r(String.prototype.toString),cP=_r(String.prototype.match),Kr=_r(String.prototype.replace),dP=_r(String.prototype.indexOf),mP=_r(String.prototype.trim),Cr=_r(RegExp.prototype.test),Cl=gP(TypeError);function _r(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),yP=Gr(/\${[\w\W]*}/gm),vP=Gr(/^data-[\-\w.\u00B7-\uFFFF]/),CP=Gr(/^aria-[\-\w]+$/),gy=Gr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xP=Gr(/^(?:\w+script|data):/i),TP=Gr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),py=Gr(/^html$/i),dy=Object.freeze({__proto__:null,MUSTACHE_EXPR:hP,ERB_EXPR:bP,TMPLIT_EXPR:yP,DATA_ATTR:vP,ARIA_ATTR:CP,IS_ALLOWED_URI:gy,IS_SCRIPT_OR_DATA:xP,ATTR_WHITESPACE:TP,DOCTYPE_NAME:py}),SP=()=>typeof window>"u"?null:window,wP=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function fy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SP(),t=I=>fy(I);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:p}=e,f=u.prototype,h=z0(f,"cloneNode"),y=z0(f,"nextSibling"),b=z0(f,"childNodes"),v=z0(f,"parentNode");if(typeof o=="function"){let I=a.createElement("template");I.content&&I.content.ownerDocument&&(a=I.content.ownerDocument)}let C,x="",{implementation:T,createNodeIterator:w,createDocumentFragment:S,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof my=="function"&&typeof v=="function"&&T&&T.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:_,TMPLIT_EXPR:B,DATA_ATTR:L,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:V}=dy,{IS_ALLOWED_URI:Y}=dy,ae=null,_e=Ge({},[...sy,...wf,...Ef,...Af,...uy]),xe=null,H=Ge({},[...ly,...kf,...cy,...W0]),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,Me=null,ve=!0,Xe=!0,J=!1,ce=!0,he=!1,pe=!1,ke=!1,We=!1,Z=!1,Ee=!1,Ct=!1,ut=!0,De=!1,Nt="user-content-",mn=!0,Vt=!1,Qt={},Vn=null,Dr=Ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Pu=null,va=Ge({},["audio","video","img","source","image","track"]),uo=null,Qo=Ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_n="http://www.w3.org/1998/Math/MathML",jr="http://www.w3.org/2000/svg",Rn="http://www.w3.org/1999/xhtml",fr=Rn,Ka=!1,Ga=null,lo=Ge({},[_n,jr,Rn],Sf),Kn,$a=["application/xhtml+xml","text/html"],Ut="text/html",xt,hr=null,sE=a.createElement("form"),g2=function(I){return I instanceof RegExp||I instanceof Function},Hg=function(I){if(!(hr&&hr===I)){if((!I||typeof I!="object")&&(I={}),I=Ss(I),Kn=$a.indexOf(I.PARSER_MEDIA_TYPE)===-1?Kn=Ut:Kn=I.PARSER_MEDIA_TYPE,xt=Kn==="application/xhtml+xml"?Sf:V0,ae="ALLOWED_TAGS"in I?Ge({},I.ALLOWED_TAGS,xt):_e,xe="ALLOWED_ATTR"in I?Ge({},I.ALLOWED_ATTR,xt):H,Ga="ALLOWED_NAMESPACES"in I?Ge({},I.ALLOWED_NAMESPACES,Sf):lo,uo="ADD_URI_SAFE_ATTR"in I?Ge(Ss(Qo),I.ADD_URI_SAFE_ATTR,xt):Qo,Pu="ADD_DATA_URI_TAGS"in I?Ge(Ss(va),I.ADD_DATA_URI_TAGS,xt):va,Vn="FORBID_CONTENTS"in I?Ge({},I.FORBID_CONTENTS,xt):Dr,ee="FORBID_TAGS"in I?Ge({},I.FORBID_TAGS,xt):{},Me="FORBID_ATTR"in I?Ge({},I.FORBID_ATTR,xt):{},Qt="USE_PROFILES"in I?I.USE_PROFILES:!1,ve=I.ALLOW_ARIA_ATTR!==!1,Xe=I.ALLOW_DATA_ATTR!==!1,J=I.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=I.SAFE_FOR_TEMPLATES||!1,pe=I.WHOLE_DOCUMENT||!1,Z=I.RETURN_DOM||!1,Ee=I.RETURN_DOM_FRAGMENT||!1,Ct=I.RETURN_TRUSTED_TYPE||!1,We=I.FORCE_BODY||!1,ut=I.SANITIZE_DOM!==!1,De=I.SANITIZE_NAMED_PROPS||!1,mn=I.KEEP_CONTENT!==!1,Vt=I.IN_PLACE||!1,Y=I.ALLOWED_URI_REGEXP||gy,fr=I.NAMESPACE||Rn,W=I.CUSTOM_ELEMENT_HANDLING||{},I.CUSTOM_ELEMENT_HANDLING&&g2(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=I.CUSTOM_ELEMENT_HANDLING.tagNameCheck),I.CUSTOM_ELEMENT_HANDLING&&g2(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),I.CUSTOM_ELEMENT_HANDLING&&typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(Xe=!1),Ee&&(Z=!0),Qt&&(ae=Ge({},[...uy]),xe=[],Qt.html===!0&&(Ge(ae,sy),Ge(xe,ly)),Qt.svg===!0&&(Ge(ae,wf),Ge(xe,kf),Ge(xe,W0)),Qt.svgFilters===!0&&(Ge(ae,Ef),Ge(xe,kf),Ge(xe,W0)),Qt.mathMl===!0&&(Ge(ae,Af),Ge(xe,cy),Ge(xe,W0))),I.ADD_TAGS&&(ae===_e&&(ae=Ss(ae)),Ge(ae,I.ADD_TAGS,xt)),I.ADD_ATTR&&(xe===H&&(xe=Ss(xe)),Ge(xe,I.ADD_ATTR,xt)),I.ADD_URI_SAFE_ATTR&&Ge(uo,I.ADD_URI_SAFE_ATTR,xt),I.FORBID_CONTENTS&&(Vn===Dr&&(Vn=Ss(Vn)),Ge(Vn,I.FORBID_CONTENTS,xt)),mn&&(ae["#text"]=!0),pe&&Ge(ae,["html","head","body"]),ae.table&&(Ge(ae,["tbody"]),delete ee.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw Cl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Cl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=I.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else C===void 0&&(C=wP(p,r)),C!==null&&typeof x=="string"&&(x=C.createHTML(""));Jn&&Jn(I),hr=I}},p2=Ge({},["mi","mo","mn","ms","mtext"]),f2=Ge({},["foreignobject","desc","title","annotation-xml"]),uE=Ge({},["title","style","font","a","script"]),Hc=Ge({},wf);Ge(Hc,Ef),Ge(Hc,pP);let qg=Ge({},Af);Ge(qg,fP);let lE=function(I){let ge=v(I);(!ge||!ge.tagName)&&(ge={namespaceURI:fr,tagName:"template"});let ie=V0(I.tagName),gt=V0(ge.tagName);return Ga[I.namespaceURI]?I.namespaceURI===jr?ge.namespaceURI===Rn?ie==="svg":ge.namespaceURI===_n?ie==="svg"&&(gt==="annotation-xml"||p2[gt]):!!Hc[ie]:I.namespaceURI===_n?ge.namespaceURI===Rn?ie==="math":ge.namespaceURI===jr?ie==="math"&&f2[gt]:!!qg[ie]:I.namespaceURI===Rn?ge.namespaceURI===jr&&!f2[gt]||ge.namespaceURI===_n&&!p2[gt]?!1:!qg[ie]&&(uE[ie]||!Hc[ie]):!!(Kn==="application/xhtml+xml"&&Ga[I.namespaceURI]):!1},Xo=function(I){vl(t.removed,{element:I});try{I.parentNode.removeChild(I)}catch{I.remove()}},zg=function(I,ge){try{vl(t.removed,{attribute:ge.getAttributeNode(I),from:ge})}catch{vl(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(I),I==="is"&&!xe[I])if(Z||Ee)try{Xo(ge)}catch{}else try{ge.setAttribute(I,"")}catch{}},h2=function(I){let ge,ie;if(We)I=""+I;else{let Gn=cP(I,/^[\r\n\t ]+/);ie=Gn&&Gn[0]}Kn==="application/xhtml+xml"&&fr===Rn&&(I=''+I+"");let gt=C?C.createHTML(I):I;if(fr===Rn)try{ge=new g().parseFromString(gt,Kn)}catch{}if(!ge||!ge.documentElement){ge=T.createDocument(fr,"template",null);try{ge.documentElement.innerHTML=Ka?x:gt}catch{}}let gn=ge.body||ge.documentElement;return I&&ie&&gn.insertBefore(a.createTextNode(ie),gn.childNodes[0]||null),fr===Rn?A.call(ge,pe?"html":"body")[0]:pe?ge.documentElement:gn},b2=function(I){return w.call(I.ownerDocument||I,I,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},cE=function(I){return I instanceof m&&(typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||!(I.attributes instanceof c)||typeof I.removeAttribute!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function")},qc=function(I){return typeof s=="object"?I instanceof s:I&&typeof I=="object"&&typeof I.nodeType=="number"&&typeof I.nodeName=="string"},Ya=function(I,ge,ie){M[I]&&lP(M[I],gt=>{gt.call(t,ge,ie,hr)})},y2=function(I){let ge;if(Ya("beforeSanitizeElements",I,null),cE(I))return Xo(I),!0;let ie=xt(I.nodeName);if(Ya("uponSanitizeElement",I,{tagName:ie,allowedTags:ae}),I.hasChildNodes()&&!qc(I.firstElementChild)&&(!qc(I.content)||!qc(I.content.firstElementChild))&&Cr(/<[/\w]/g,I.innerHTML)&&Cr(/<[/\w]/g,I.textContent))return Xo(I),!0;if(!ae[ie]||ee[ie]){if(!ee[ie]&&C2(ie)&&(W.tagNameCheck instanceof RegExp&&Cr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie)))return!1;if(mn&&!Vn[ie]){let gt=v(I)||I.parentNode,gn=b(I)||I.childNodes;if(gn&>){let Gn=gn.length;for(let ir=Gn-1;ir>=0;--ir)gt.insertBefore(h(gn[ir],!0),y(I))}}return Xo(I),!0}return I instanceof u&&!lE(I)||(ie==="noscript"||ie==="noembed")&&Cr(/<\/no(script|embed)/i,I.innerHTML)?(Xo(I),!0):(he&&I.nodeType===3&&(ge=I.textContent,ge=Kr(ge,R," "),ge=Kr(ge,_," "),ge=Kr(ge,B," "),I.textContent!==ge&&(vl(t.removed,{element:I.cloneNode()}),I.textContent=ge)),Ya("afterSanitizeElements",I,null),!1)},v2=function(I,ge,ie){if(ut&&(ge==="id"||ge==="name")&&(ie in a||ie in sE))return!1;if(!(Xe&&!Me[ge]&&Cr(L,ge))&&!(ve&&Cr(N,ge))){if(!xe[ge]||Me[ge]){if(!(C2(I)&&(W.tagNameCheck instanceof RegExp&&Cr(W.tagNameCheck,I)||W.tagNameCheck instanceof Function&&W.tagNameCheck(I))&&(W.attributeNameCheck instanceof RegExp&&Cr(W.attributeNameCheck,ge)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(ge))||ge==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Cr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie))))return!1}else if(!uo[ge]&&!Cr(Y,Kr(ie,V,""))&&!((ge==="src"||ge==="xlink:href"||ge==="href")&&I!=="script"&&dP(ie,"data:")===0&&Pu[I])&&!(J&&!Cr(U,Kr(ie,V,"")))&&ie)return!1}return!0},C2=function(I){return I.indexOf("-")>0},x2=function(I){let ge,ie,gt,gn;Ya("beforeSanitizeAttributes",I,null);let{attributes:Gn}=I;if(!Gn)return;let ir={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(gn=Gn.length;gn--;){ge=Gn[gn];let{name:vn,namespaceURI:es}=ge;if(ie=vn==="value"?ge.value:mP(ge.value),gt=xt(vn),ir.attrName=gt,ir.attrValue=ie,ir.keepAttr=!0,ir.forceKeepAttr=void 0,Ya("uponSanitizeAttribute",I,ir),ie=ir.attrValue,ir.forceKeepAttr||(zg(vn,I),!ir.keepAttr))continue;if(!ce&&Cr(/\/>/i,ie)){zg(vn,I);continue}he&&(ie=Kr(ie,R," "),ie=Kr(ie,_," "),ie=Kr(ie,B," "));let T2=xt(I.nodeName);if(v2(T2,gt,ie)){if(De&&(gt==="id"||gt==="name")&&(zg(vn,I),ie=Nt+ie),C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!es)switch(p.getAttributeType(T2,gt)){case"TrustedHTML":{ie=C.createHTML(ie);break}case"TrustedScriptURL":{ie=C.createScriptURL(ie);break}}try{es?I.setAttributeNS(es,vn,ie):I.setAttribute(vn,ie),oy(t.removed)}catch{}}}Ya("afterSanitizeAttributes",I,null)},dE=function I(ge){let ie,gt=b2(ge);for(Ya("beforeSanitizeShadowDOM",ge,null);ie=gt.nextNode();)Ya("uponSanitizeShadowNode",ie,null),!y2(ie)&&(ie.content instanceof i&&I(ie.content),x2(ie));Ya("afterSanitizeShadowDOM",ge,null)};return t.sanitize=function(I){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie,gt,gn,Gn;if(Ka=!I,Ka&&(I=""),typeof I!="string"&&!qc(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw Cl("dirty is not a string, aborting")}else throw Cl("toString is not a function");if(!t.isSupported)return I;if(ke||Hg(ge),t.removed=[],typeof I=="string"&&(Vt=!1),Vt){if(I.nodeName){let es=xt(I.nodeName);if(!ae[es]||ee[es])throw Cl("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof s)ie=h2(""),gt=ie.ownerDocument.importNode(I,!0),gt.nodeType===1&>.nodeName==="BODY"||gt.nodeName==="HTML"?ie=gt:ie.appendChild(gt);else{if(!Z&&!he&&!pe&&I.indexOf("<")===-1)return C&&Ct?C.createHTML(I):I;if(ie=h2(I),!ie)return Z?null:Ct?x:""}ie&&We&&Xo(ie.firstChild);let ir=b2(Vt?I:ie);for(;gn=ir.nextNode();)y2(gn)||(gn.content instanceof i&&dE(gn.content),x2(gn));if(Vt)return I;if(Z){if(Ee)for(Gn=S.call(ie.ownerDocument);ie.firstChild;)Gn.appendChild(ie.firstChild);else Gn=ie;return(xe.shadowroot||xe.shadowrootmod)&&(Gn=D.call(n,Gn,!0)),Gn}let vn=pe?ie.outerHTML:ie.innerHTML;return pe&&ae["!doctype"]&&ie.ownerDocument&&ie.ownerDocument.doctype&&ie.ownerDocument.doctype.name&&Cr(py,ie.ownerDocument.doctype.name)&&(vn=" -`+vn),he&&(vn=Kr(vn,R," "),vn=Kr(vn,_," "),vn=Kr(vn,B," ")),C&&Ct?C.createHTML(vn):vn},t.setConfig=function(I){Hg(I),ke=!0},t.clearConfig=function(){hr=null,ke=!1},t.isValidAttribute=function(I,ge,ie){hr||Hg({});let gt=xt(I),gn=xt(ge);return v2(gt,gn,ie)},t.addHook=function(I,ge){typeof ge=="function"&&(M[I]=M[I]||[],vl(M[I],ge))},t.removeHook=function(I){if(M[I])return oy(M[I])},t.removeHooks=function(I){M[I]&&(M[I]=[])},t.removeAllHooks=function(){M={}},t}var ct=fy();var EP=Object.create,Pf=Object.defineProperty,AP=Object.getOwnPropertyDescriptor,kP=Object.getOwnPropertyNames,DP=Object.getPrototypeOf,LP=Object.prototype.hasOwnProperty,_f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),MP=(e,t)=>{for(var n in t)Pf(e,n,{get:t[n],enumerable:!0})},Mf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kP(t))!LP.call(e,a)&&a!==n&&Pf(e,a,{get:()=>t[a],enumerable:!(r=AP(t,a))||r.enumerable});return e},PP=(e,t,n)=>(Mf(e,t,"default"),n&&Mf(n,t,"default")),by=(e,t,n)=>(n=e!=null?EP(DP(e)):{},Mf(t||!e||!e.__esModule?Pf(n,"default",{value:e,enumerable:!0}):n,e)),_P=_f((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var m=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(m,l)}else{for(var g=this._doc.createElement("span");l.firstChild;)g.appendChild(l.firstChild);l.parentNode.replaceChild(g,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),m=l.getAttribute("poster"),g=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),m&&l.setAttribute("poster",o(m)),g){var p=g.replace(this.REGEXPS.srcsetUrl,function(f,h,y,b){return o(h)+(y||"")+b});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var m=r.getElementsByTagName("h1");m.length===1&&(a=this._getInnerText(m[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var g=s(a);return g<=4&&(!o||g!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let We=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(We&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),We=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var m=null,g=l.firstChild;g;){var p=g.nextSibling;if(this._isPhrasingContent(g))m!==null?m.appendChild(g):this._isWhitespace(g)||(m=a.createElement("p"),l.replaceChild(m,g),m.appendChild(g));else if(m!==null){for(;m.lastChild&&this._isWhitespace(m.lastChild);)m.removeChild(m.lastChild);m=null}g=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var f=l.children[0];l.parentNode.replaceChild(f,l),l=f,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(Z){if(!(!Z.parentNode||typeof Z.parentNode.tagName>"u")){var Ee=this._getInnerText(Z);if(!(Ee.length<25)){var Ct=this._getNodeAncestors(Z,5);if(Ct.length!==0){var ut=0;ut+=1,ut+=Ee.split(",").length,ut+=Math.min(Math.floor(Ee.length/100),3),this._forEachNode(Ct,function(De,Nt){if(!(!De.tagName||!De.parentNode||typeof De.parentNode.tagName>"u")){if(typeof De.readability>"u"&&(this._initializeNode(De),h.push(De)),Nt===0)var mn=1;else Nt===1?mn=2:mn=Nt*3;De.readability.contentScore+=ut/mn}})}}}});for(var y=[],b=0,v=h.length;bw.readability.contentScore){y.splice(T,0,C),y.length>this._nbTopCandidates&&y.pop();break}}}var S=y[0]||null,A=!1,D;if(S===null||S.tagName==="BODY"){for(S=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),S.appendChild(r.firstChild);r.appendChild(S),this._initializeNode(S)}else if(S){for(var M=[],R=1;R=.75&&M.push(this._getNodeAncestors(y[R]));var _=3;if(M.length>=_)for(D=S.parentNode;D.tagName!=="BODY";){for(var B=0,L=0;L=_){S=D;break}D=D.parentNode}S.readability||this._initializeNode(S),D=S.parentNode;for(var N=S.readability.contentScore,U=N/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var V=D.readability.contentScore;if(VN){S=D;break}N=D.readability.contentScore,D=D.parentNode}for(D=S.parentNode;D.tagName!="BODY"&&D.children.length==1;)S=D,D=S.parentNode;S.readability||this._initializeNode(S)}var Y=a.createElement("DIV");i&&(Y.id="readability-content");var ae=Math.max(10,S.readability.contentScore*.2);D=S.parentNode;for(var _e=D.children,xe=0,H=_e.length;xe=ae)ee=!0;else if(W.nodeName==="P"){var ve=this._getLinkDensity(W),Xe=this._getInnerText(W),J=Xe.length;(J>80&&ve<.25||J<80&&J>0&&ve===0&&Xe.search(/\.( |$)/)!==-1)&&(ee=!0)}}ee&&(this.log("Appending node:",W),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(W.nodeName)===-1&&(this.log("Altering sibling:",W,"to div."),W=this._setNodeTag(W,"DIV")),Y.appendChild(W),_e=D.children,xe-=1,H-=1)}if(this._debug&&this.log("Article content pre-prep: "+Y.innerHTML),this._prepArticle(Y),this._debug&&this.log("Article content post-prep: "+Y.innerHTML),A)S.id="readability-page-1",S.className="page";else{var ce=a.createElement("DIV");for(ce.id="readability-page-1",ce.className="page";Y.firstChild;)ce.appendChild(Y.firstChild);Y.appendChild(ce)}this._debug&&this.log("Article content after paging: "+Y.innerHTML);var he=!0,pe=this._getInnerText(Y,!0).length;if(pe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(g){return(g["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,m=this._textSimilarity(u.headline,l)>.75;m&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(g){return g&&typeof g.name=="string"}).map(function(g){return g.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(g){this.log(g.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),m=l.getAttribute("property"),g=l.getAttribute("content");if(g){var p=null,f=null;m&&(p=m.match(s),p&&(f=p[0].toLowerCase().replace(/\s/g,""),i[f]=g.trim())),!p&&c&&u.test(c)&&(f=c,g&&(f=f.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[f]=g.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var m=["col","colgroup","tfoot","thead","th"],g=function(f){return!!o.getElementsByTagName(f)[0]};if(m.some(g)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var m=0;if(c+m<0)return!0;if(this._getCharCount(i,",")<10){for(var g=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,f=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,y=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),b=0,v=this._getAllNodesWithTag(i,["object","embed","iframe"]),C=0;C1&&g/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&f>g||h>Math.floor(g/3)||!s&&y<.9&&w<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&T>.2||c>=25&&T>.5||b===1&&w<75||b>1;if(s&&S){for(var A=0;A1)return S;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return S}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),RP=_f((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(g){c.add(g.parentNode)}),u=Array.from(c)}var m=0;return[].some.call(u,function(g){if(!o.visibilityChecker(g))return!1;var p=g.className+" "+g.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||g.matches("li p"))return!1;var f=g.textContent.trim().length;return fo.minScore)})}typeof t=="object"&&(t.exports=a)}),yy=_f((e,t)=>{var n=_P(),r=RP();t.exports={Readability:n,isProbablyReaderable:r}}),vy={};MP(vy,{Readability:()=>K0,default:()=>Ty,isProbablyReaderable:()=>xy});var Cy=by(yy());PP(vy,by(yy()));var{Readability:K0,isProbablyReaderable:xy}=Cy,{default:hy,...IP}=Cy,Ty=hy!==void 0?hy:IP;var Rf=j0.alert;var ws=console,If=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=Pr.green;r>1e4?a=Pr.red:r>1e3&&(a=Pr.yellow),ws.debug(Pr.dim(co+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},xl=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&ws.log(Pr.dim(co+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&ws.log(Pr.green(co+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&ws.warn(Pr.yellow(co+" WARN:"),...t)}error(...t){this.#e<=3&&ws.error(Pr.red(co+" ERROR:"),...t)}fatal(...t){this.#e<=4&&ws.error(Pr.red(co+" FATAL:"),...t)}timing(){return this.level===0?new If:{reset:()=>{},stop:()=>{}}}},k=new xl;function Tt(){try{let e=[Te().EBOOK_BUILDER_URL,Te().EBOOK_VIEWER_URL,Te().SUBTITLE_BUILDER_URL,Te().HTML_VIEWER_URL,Te().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+et];Ca()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var sr=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Ff={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},Sy={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Bf={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Of={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function re(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sr.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":sr[a]}else return"auto";else return sr[r]}function Ht(){return re(document?.documentElement?.lang||"en")}var Nf=/iPhone/i,wy=/iPod/i,Ey=/iPad/i,Ay=/\biOS-universal(?:.+)Mac\b/i,Uf=/\bAndroid(?:.+)Mobile\b/i,ky=/Android/i,Es=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,G0=/Silk/i,ii=/Windows Phone/i,Dy=/\bWindows(?:.+)ARM\b/i,Ly=/BlackBerry/i,My=/BB10/i,Py=/Opera Mini/i,_y=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ry=/Mobile(?:.+)Firefox\b/i,Iy=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function FP(e){return t=>t.test(e)}function qe(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=FP(n),i={apple:{phone:a(Nf)&&!a(ii),ipod:a(wy),tablet:!a(Nf)&&(a(Ey)||Iy(t))&&!a(ii),universal:a(Ay),device:(a(Nf)||a(wy)||a(Ey)||a(Ay)||Iy(t))&&!a(ii)},amazon:{phone:a(Es),tablet:!a(Es)&&a(G0),device:a(Es)||a(G0)},android:{phone:!a(ii)&&a(Es)||!a(ii)&&a(Uf),tablet:!a(ii)&&!a(Es)&&!a(Uf)&&(a(G0)||a(ky)),device:!a(ii)&&(a(Es)||a(G0)||a(Uf)||a(ky))||a(/\bokhttp\b/i)},windows:{phone:a(ii),tablet:a(Dy),device:a(ii)||a(Dy)},other:{blackberry:a(Ly),blackberry10:a(My),opera:a(Py),firefox:a(Ry),chrome:a(_y),device:a(Ly)||a(My)||a(Py)||a(Ry)||a(_y)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var jf="DENO",$0="CHROME",Y0="FIREFOX";function Fy(e){let t=$0;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Y0:/deno/i.test(n)&&(t=jf)}catch{}return e===$0&&t===$0||e===Y0&&t===Y0||e===jf&&t===jf}function Z0(){return Fy($0)}function By(){return typeof Deno<"u"}function Qn(){return Te().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:Fy(Y0)}function xr(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Oy(){return!!globalThis.matchMedia("(pointer:fine)").matches}function $r(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var Ny={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Uy={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Ny,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:Ny,query:()=>{},sendMessage:()=>{}}};var j;By()?j=Uy:j=globalThis.immersiveTranslateBrowserAPI;var wo=ne+"CacheKey_";function Eo(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function BP(){let e=j.storage.local.refresh;e&&e()}function Hf(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wo)).filter(r=>r!==wo+pt);if(n.length>0)return j.storage.local.remove(n)}}var nt={get:Eo,set:Ao,getExpired:Hf,setExpired:qf,remove:zf,clear:Wf,refresh:BP};function kt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function jy(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function Hy(e){if(e){let t=new Date(e.createTime),n=OP(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function OP(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function As(e){if(e?.isPro)return!0;let t=await nt.get(pt,null);return kt(t)}var qy=ne+"SyncStoreKey_";function Pt(e,t){let n=qy+e;return j.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function Ye(e,t){let n=qy+e;return j.storage.sync.set({[n]:t})}var zy=ne+"StoreKey_";function ko(e,t){let n=zy+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Wy(e,t){let n=zy+e;return j.storage.local.set({[n]:t})}var eY=Ky(2),Vy=Ky(3);function Ky(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var NP=/\s+/g,UP=/[\t\n\v\f\r ]+/g;function Gy(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?jP:HP;return String(e).replace(t.style==="html"?UP:NP,t.trim?qP(n):n)}function jP(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function HP(){return" "}function qP(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var $y={}.hasOwnProperty;function zP(e){return e==null?"":Gy(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function WP(e){return Vy(" "+zP(e)+" ")}function VP(e){let t=WP(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function QP(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function XP(e,t,n,r){t=t_(t,n,r);let a=[],i;if(t)for(i in t)J0.call(t,i)&&a.push([i,e_(e,t[i])]);return a.length===0?Kf():a.sort(n_)}function e_(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of m_){let u=s[1],l=s[0],c=e.match(u),m=c?c.length:0;o[l]=m,m>n&&(n=m,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?nv(e)?"zh-TW":"zh-CN":t:"auto"}var av=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Gf=new Map(av),g_=new Map(av.map(([e,t])=>[t,e]));function iv(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>g_.get(s));!t&&t!==0&&(t=25);let a=X0(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Gf.keys()]},o=Jy(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(m=="eng"&&g<.95)break;return Gf.get(m)}}let[s,u]=o[0],l=Gf.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}function Mi(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function p_(e,t){return e<>>32-t}function td(e,t,n,r,a,i){return Mi(p_(Mi(Mi(t,e),Mi(r,i)),a),n)}function On(e,t,n,r,a,i,o){return td(t&n|~t&r,e,t,a,i,o)}function Nn(e,t,n,r,a,i,o){return td(t&r|n&~r,e,t,a,i,o)}function Un(e,t,n,r,a,i,o){return td(t^n^r,e,t,a,i,o)}function jn(e,t,n,r,a,i,o){return td(n^(t|~r),e,t,a,i,o)}function ed(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function $f(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=ed(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=ed(a.concat($f(t)),512+t.length*8),ov(ed(i.concat(o),512+128))}function sv(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Yf(e){return unescape(encodeURIComponent(e))}function uv(e){return f_(Yf(e))}function b_(e){return sv(uv(e))}function lv(e,t){return h_(Yf(e),Yf(t))}function y_(e,t){return sv(lv(e,t))}function Tr(e,t,n){return t?n?lv(t,e):y_(t,e):n?uv(e):b_(e)}var nd=["caiyun","cai"],cv=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],ks={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:$+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`+b+"]"}return r.pop(),a=b,h}},aM={parse:JL,stringify:rM},iM=aM,B0=iM;var I6=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function oM(e,t){return!!(e===t||I6(e)&&I6(t))}function sM(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),pM=(e,t)=>{for(var n in t)pf(e,n,{get:t[n],enumerable:!0})},gf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of cM(t))!mM.call(e,a)&&a!==n&&pf(e,a,{get:()=>t[a],enumerable:!(r=lM(t,a))||r.enumerable});return e},fM=(e,t,n)=>(gf(e,t,"default"),n&&gf(n,t,"default")),B6=(e,t,n)=>(n=e!=null?uM(dM(e)):{},gf(t||!e||!e.__esModule?pf(n,"default",{value:e,enumerable:!0}):n,e)),O6=gM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof O0=="object"&&O0&&O0.Object===Object&&O0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(A,D,M){var R,_,B,L,N,U,V=0,Y=!1,ae=!1,_e=!0;if(typeof A!="function")throw new TypeError(n);D=w(D)||0,x(M)&&(Y=!!M.leading,ae="maxWait"in M,B=ae?b(w(M.maxWait)||0,D):B,_e="trailing"in M?!!M.trailing:_e);function xe(he){var pe=R,ke=_;return R=_=void 0,V=he,L=A.apply(ke,pe),L}function H(he){return V=he,N=setTimeout(Me,D),Y?xe(he):L}function W(he){var pe=he-U,ke=he-V,ze=D-pe;return ae?y(ze,B-ke):ze}function ee(he){var pe=he-U,ke=he-V;return U===void 0||pe>=D||pe<0||ae&&ke>=B}function Me(){var he=h();if(ee(he))return ve(he);N=setTimeout(Me,W(he))}function ve(he){return N=void 0,_e&&R?xe(he):(R=_=void 0,L)}function Xe(){N!==void 0&&clearTimeout(N),V=0,R=U=_=N=void 0}function J(){return N===void 0?L:ve(h())}function ce(){var he=h(),pe=ee(he);if(R=arguments,_=this,U=he,pe){if(N===void 0)return H(U);if(ae)return N=setTimeout(Me,D),xe(U)}return N===void 0&&(N=setTimeout(Me,D)),L}return ce.cancel=Xe,ce.flush=J,ce}function C(A,D,M){var R=!0,_=!0;if(typeof A!="function")throw new TypeError(n);return x(M)&&(R="leading"in M?!!M.leading:R,_="trailing"in M?!!M.trailing:_),v(A,D,{leading:R,maxWait:D,trailing:_})}function x(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function T(A){return!!A&&typeof A=="object"}function S(A){return typeof A=="symbol"||T(A)&&f.call(A)==a}function w(A){if(typeof A=="number")return A;if(S(A))return r;if(x(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=x(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=C}),N6={};pM(N6,{default:()=>yr});var hM=B6(O6());fM(N6,B6(O6()));var{default:F6,...bM}=hM,yr=F6!==void 0?F6:bM;var N0=globalThis||(typeof window<"u"?window:self),yM=Object.create,hf=Object.defineProperty,vM=Object.getOwnPropertyDescriptor,CM=Object.getOwnPropertyNames,xM=Object.getPrototypeOf,TM=Object.prototype.hasOwnProperty,SM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wM=(e,t)=>{for(var n in t)hf(e,n,{get:t[n],enumerable:!0})},ff=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of CM(t))!TM.call(e,a)&&a!==n&&hf(e,a,{get:()=>t[a],enumerable:!(r=vM(t,a))||r.enumerable});return e},EM=(e,t,n)=>(ff(e,t,"default"),n&&ff(n,t,"default")),j6=(e,t,n)=>(n=e!=null?yM(xM(e)):{},ff(t||!e||!e.__esModule?hf(n,"default",{value:e,enumerable:!0}):n,e)),H6=SM((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof N0=="object"&&N0&&N0.Object===Object&&N0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(w,A,D){var M,R,_,B,L,N,U=0,V=!1,Y=!1,ae=!0;if(typeof w!="function")throw new TypeError(n);A=S(A)||0,C(D)&&(V=!!D.leading,Y="maxWait"in D,_=Y?b(S(D.maxWait)||0,A):_,ae="trailing"in D?!!D.trailing:ae);function _e(ce){var he=M,pe=R;return M=R=void 0,U=ce,B=w.apply(pe,he),B}function xe(ce){return U=ce,L=setTimeout(ee,A),V?_e(ce):B}function H(ce){var he=ce-N,pe=ce-U,ke=A-he;return Y?y(ke,_-pe):ke}function W(ce){var he=ce-N,pe=ce-U;return N===void 0||he>=A||he<0||Y&&pe>=_}function ee(){var ce=h();if(W(ce))return Me(ce);L=setTimeout(ee,H(ce))}function Me(ce){return L=void 0,ae&&M?_e(ce):(M=R=void 0,B)}function ve(){L!==void 0&&clearTimeout(L),U=0,M=N=R=L=void 0}function Xe(){return L===void 0?B:Me(h())}function J(){var ce=h(),he=W(ce);if(M=arguments,R=this,N=ce,he){if(L===void 0)return xe(N);if(Y)return L=setTimeout(ee,A),_e(N)}return L===void 0&&(L=setTimeout(ee,A)),B}return J.cancel=ve,J.flush=Xe,J}function C(w){var A=typeof w;return!!w&&(A=="object"||A=="function")}function x(w){return!!w&&typeof w=="object"}function T(w){return typeof w=="symbol"||x(w)&&f.call(w)==a}function S(w){if(typeof w=="number")return w;if(T(w))return r;if(C(w)){var A=typeof w.valueOf=="function"?w.valueOf():w;w=C(A)?A+"":A}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var D=s.test(w);return D||u.test(w)?l(w.slice(2),D?2:8):o.test(w)?r:+w}t.exports=v}),q6={};wM(q6,{default:()=>Fn});var AM=j6(H6());EM(q6,j6(H6()));var{default:U6,...kM}=AM,Fn=U6!==void 0?U6:kM;var DM=Object.create,yf=Object.defineProperty,LM=Object.getOwnPropertyDescriptor,MM=Object.getOwnPropertyNames,PM=Object.getPrototypeOf,_M=Object.prototype.hasOwnProperty,RM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),IM=(e,t)=>{for(var n in t)yf(e,n,{get:t[n],enumerable:!0})},bf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of MM(t))!_M.call(e,a)&&a!==n&&yf(e,a,{get:()=>t[a],enumerable:!(r=LM(t,a))||r.enumerable});return e},FM=(e,t,n)=>(bf(e,t,"default"),n&&bf(n,t,"default")),W6=(e,t,n)=>(n=e!=null?DM(PM(e)):{},bf(t||!e||!e.__esModule?yf(n,"default",{value:e,enumerable:!0}):n,e)),V6=RM((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,m){l(r)==="object"&&l(i)==="object"?i.exports=m():(s=[],o=m,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function m(p){if(g[p])return g[p].exports;var f=g[p]={i:p,l:!1,exports:{}};return c[p].call(f.exports,f,f.exports,m),f.l=!0,f.exports}var g={};return m.m=c,m.c=g,m.i=function(p){return p},m.d=function(p,f,b){m.o(p,f)||Object.defineProperty(p,f,{configurable:!1,enumerable:!0,get:b})},m.n=function(p){var f=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(f,"a",f),f},m.o=function(p,f){return Object.prototype.hasOwnProperty.call(p,f)},m.p="",m(m.s=0)}([function(c,m,g){function p(H,W){var ee={};for(var Me in H)W.indexOf(Me)>=0||Object.prototype.hasOwnProperty.call(H,Me)&&(ee[Me]=H[Me]);return ee}Object.defineProperty(m,"__esModule",{value:!0});var f=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":l(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":l(H)},b=Object.assign||function(H){for(var W=1;W'+Me+"",ke.onclick=function(){return _(ze,pe)},ke.listener=function(Z){(D(Z)||M(Z))&&N()},R(ke,pe),Xe&&Xe<1&&(Xe=1),!ce&&Xe&&x(Xe).then(function(){return _(ze,pe)})},V=m.force=function(H,W){var ee=H.type,Me=ee===void 0?5:ee,ve=H.text,Xe=H.buttonText,J=Xe===void 0?"OK":Xe,ce=H.callback,he=H.position,pe=he===void 0?h.positions.force||pe.top:he;T(),N();var ke=document.createElement("div"),ze=S();ke.id=ze;var Z=document.createElement("div");Z.classList.add(h.classes.textbox),Z.classList.add(h.classes.backgroundInfo),Z.innerHTML='
'+ve+"
";var Ee=document.createElement("div");Ee.classList.add(h.classes.button),Ee.classList.add(w[Me]),Ee.innerHTML=J,Ee.onclick=function(){_(ze,pe),L(),ce?ce():W&&W()},ke.appendChild(Z),ke.appendChild(Ee),ke.listener=function(Ct){D(Ct)&&Ee.click()},R(ke,pe),B()},Y=m.confirm=function(H,W,ee){var Me=H.text,ve=H.submitText,Xe=ve===void 0?"Yes":ve,J=H.cancelText,ce=J===void 0?"Cancel":J,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,ze=ke===void 0?h.positions.confirm||ze.top:ke;T(),N();var Z=document.createElement("div"),Ee=S();Z.id=Ee;var Ct=document.createElement("div");Ct.classList.add(h.classes.textbox),Ct.classList.add(h.classes.backgroundInfo),Ct.innerHTML='
'+Me+"
";var ut=document.createElement("div");ut.classList.add(h.classes.button),ut.classList.add(h.classes.elementHalf),ut.classList.add(h.classes.backgroundSuccess),ut.innerHTML=Xe,ut.onclick=function(){_(Ee,ze),L(),he?he():W&&W()};var De=document.createElement("div");De.classList.add(h.classes.button),De.classList.add(h.classes.elementHalf),De.classList.add(h.classes.backgroundError),De.innerHTML=ce,De.onclick=function(){_(Ee,ze),L(),pe?pe():ee&&ee()},Z.appendChild(Ct),Z.appendChild(ut),Z.appendChild(De),Z.listener=function(Nt){D(Nt)?ut.click():M(Nt)&&De.click()},R(Z,ze),B(Z,ze)},ae=function(H,W,ee){var Me=H.text,ve=H.submitText,Xe=ve===void 0?"Submit":ve,J=H.cancelText,ce=J===void 0?"Cancel":J,he=H.submitCallback,pe=H.cancelCallback,ke=H.position,ze=ke===void 0?h.positions.input||ze.top:ke,Z=p(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);T(),N();var Ee=document.createElement("div"),Ct=S();Ee.id=Ct;var ut=document.createElement("div");ut.classList.add(h.classes.textbox),ut.classList.add(h.classes.backgroundInfo),ut.innerHTML='
'+Me+"
";var De=document.createElement("input");De.classList.add(h.classes.inputField),De.setAttribute("autocapitalize",Z.autocapitalize||"none"),De.setAttribute("autocomplete",Z.autocomplete||"off"),De.setAttribute("autocorrect",Z.autocorrect||"off"),De.setAttribute("autofocus",Z.autofocus||"true"),De.setAttribute("inputmode",Z.inputmode||"verbatim"),De.setAttribute("max",Z.max||""),De.setAttribute("maxlength",Z.maxlength||""),De.setAttribute("min",Z.min||""),De.setAttribute("minlength",Z.minlength||""),De.setAttribute("placeholder",Z.placeholder||""),De.setAttribute("spellcheck",Z.spellcheck||"default"),De.setAttribute("step",Z.step||"any"),De.setAttribute("type",Z.type||"text"),De.value=Z.value||"",Z.allowed&&(De.oninput=function(){var Vt=void 0;if(Array.isArray(Z.allowed)){for(var Qt="",Wn=Z.allowed,kr=0;kr'+ee+"",pe.appendChild(ze),J.forEach(function(Ee,Ct){var ut=Ee.type,De=ut===void 0?1:ut,Nt=Ee.text,mn=Ee.handler,Vt=document.createElement("div");Vt.classList.add(w[De]),Vt.classList.add(h.classes.button),Vt.classList.add(h.classes.selectChoice);var Qt=J[Ct+1];Qt&&!Qt.type&&(Qt.type=1),Qt&&Qt.type===De&&Vt.classList.add(h.classes.selectChoiceRepeated),Vt.innerHTML=Nt,Vt.onclick=function(){_(ke,he),L(),mn()},pe.appendChild(Vt)});var Z=document.createElement("div");Z.classList.add(h.classes.backgroundNeutral),Z.classList.add(h.classes.button),Z.innerHTML=ve,Z.onclick=function(){_(ke,he),L(),Xe?Xe():W&&W()},pe.appendChild(Z),pe.listener=function(Ee){M(Ee)&&Z.click()},R(pe,he),B(pe,he)},xe=m.date=function(H,W,ee){var Me=H.value,ve=Me===void 0?new Date:Me,Xe=H.submitText,J=Xe===void 0?"OK":Xe,ce=H.cancelText,he=ce===void 0?"Cancel":ce,pe=H.submitCallback,ke=H.cancelCallback,ze=H.position,Z=ze===void 0?h.positions.date||Z.top:ze;T(),N();var Ee="▾",Ct=document.createElement("div"),ut=document.createElement("div"),De=document.createElement("div"),Nt=function(Ut){Ct.innerHTML=h.dateMonths[Ut.getMonth()],ut.innerHTML=Ut.getDate(),De.innerHTML=Ut.getFullYear()},mn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+1,0).getDate(),fr=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(fr)>xt&&(fr=xt.toString()),Ut.target.textContent=fr,Number(fr)<1&&(fr="1"),ve.setDate(Number(fr))},Vt=function(Ut){var xt=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ut.target.textContent=xt,ve.setFullYear(Number(xt))},Qt=function(Ut){Nt(ve)},Wn=function(Ut){var xt=new Date(ve.getFullYear(),ve.getMonth()+Ut+1,0).getDate();ve.getDate()>xt&&ve.setDate(xt),ve.setMonth(ve.getMonth()+Ut),Nt(ve)},kr=function(Ut){ve.setDate(ve.getDate()+Ut),Nt(ve)},Pu=function(Ut){var xt=ve.getFullYear()+Ut;xt<0?ve.setFullYear(0):ve.setFullYear(ve.getFullYear()+Ut),Nt(ve)},ya=document.createElement("div"),uo=S();ya.id=uo;var Qo=document.createElement("div");Qo.classList.add(h.classes.backgroundInfo);var _n=document.createElement("div");_n.classList.add(h.classes.dateSelectorInner);var Ur=document.createElement("div");Ur.classList.add(h.classes.button),Ur.classList.add(h.classes.elementThird),Ur.classList.add(h.classes.dateSelectorUp),Ur.innerHTML=Ee;var Rn=document.createElement("div");Rn.classList.add(h.classes.button),Rn.classList.add(h.classes.elementThird),Rn.classList.add(h.classes.dateSelectorUp),Rn.innerHTML=Ee;var pr=document.createElement("div");pr.classList.add(h.classes.button),pr.classList.add(h.classes.elementThird),pr.classList.add(h.classes.dateSelectorUp),pr.innerHTML=Ee,Ct.classList.add(h.classes.element),Ct.classList.add(h.classes.elementThird),Ct.innerHTML=h.dateMonths[ve.getMonth()],ut.classList.add(h.classes.element),ut.classList.add(h.classes.elementThird),ut.setAttribute("contentEditable",!0),ut.addEventListener("input",mn),ut.addEventListener("blur",Qt),ut.innerHTML=ve.getDate(),De.classList.add(h.classes.element),De.classList.add(h.classes.elementThird),De.setAttribute("contentEditable",!0),De.addEventListener("input",Vt),De.addEventListener("blur",Qt),De.innerHTML=ve.getFullYear();var Va=document.createElement("div");Va.classList.add(h.classes.button),Va.classList.add(h.classes.elementThird),Va.innerHTML=Ee;var Ka=document.createElement("div");Ka.classList.add(h.classes.button),Ka.classList.add(h.classes.elementThird),Ka.innerHTML=Ee;var lo=document.createElement("div");lo.classList.add(h.classes.button),lo.classList.add(h.classes.elementThird),lo.innerHTML=Ee,Ur.onclick=function(){return Wn(1)},Rn.onclick=function(){return kr(1)},pr.onclick=function(){return Pu(1)},Va.onclick=function(){return Wn(-1)},Ka.onclick=function(){return kr(-1)},lo.onclick=function(){return Pu(-1)};var Vn=document.createElement("div");Vn.classList.add(h.classes.button),Vn.classList.add(h.classes.elementHalf),Vn.classList.add(h.classes.backgroundSuccess),Vn.innerHTML=J,Vn.onclick=function(){_(uo,Z),L(),pe?pe(ve):W&&W(ve)};var Ga=document.createElement("div");Ga.classList.add(h.classes.button),Ga.classList.add(h.classes.elementHalf),Ga.classList.add(h.classes.backgroundError),Ga.innerHTML=he,Ga.onclick=function(){_(uo,Z),L(),ke?ke(ve):ee&&ee(ve)},_n.appendChild(Ur),_n.appendChild(Rn),_n.appendChild(pr),_n.appendChild(Ct),_n.appendChild(ut),_n.appendChild(De),_n.appendChild(Va),_n.appendChild(Ka),_n.appendChild(lo),Qo.appendChild(_n),ya.appendChild(Qo),ya.appendChild(Vn),ya.appendChild(Ga),ya.listener=function(Ut){D(Ut)?Vn.click():M(Ut)&&Ga.click()},R(ya,Z),B(ya,Z)};m.default={alert:U,force:V,confirm:Y,input:ae,select:_e,date:xe,setOptions:v,hideAlerts:N}}])})}).call(r,a(0)(n))}])})}),K6={};IM(K6,{default:()=>U0});var BM=W6(V6());FM(K6,W6(V6()));var{default:z6,...OM}=BM,U0=z6!==void 0?z6:OM;var j0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function fl(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function vf(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function G6(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ixs[e.toLowerCase()]||Wr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),NM=e=>Object.keys(xs).find(t=>xs[t]===e),UM=e=>Object.keys(Wr).find(t=>Wr[t]===e);function X6(e){J6=e||"all"}function hl(){return J6||"all"}function jM(){return Et.slice(0)}function HM(){return Et.map(e=>NM(e)||UM(e)||String.fromCharCode(e))}function qM(){let e=[];return Object.keys(jt).forEach(t=>{jt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>bl(o))})})}),e}function zM(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function WM(e){return typeof e=="string"&&(e=bl(e)),Et.indexOf(e)!==-1}function VM(e,t){let n,r;e||(e=hl());for(let a in jt)if(Object.prototype.hasOwnProperty.call(jt,a))for(n=jt[a],r=0;r=0&&Et.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Et.splice(0,Et.length),(t===93||t===224)&&(t=91),t in xn){xn[t]=!1;for(let r in Wr)Wr[r]===t&&(ri[r]=!1)}}function ey(e,...t){if(typeof e>"u")Object.keys(jt).forEach(n=>delete jt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&xf(n)});else if(typeof e=="object")e.key&&xf(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),xf({key:e,scope:n,method:r,splitKey:"+"})}}var xf=({key:e,scope:t,method:n,splitKey:r="+"})=>{Cf(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":bl(u);if(!jt[l])return;t||(t=hl());let c=s>1?vf(Wr,o):[];jt[l]=jt[l].filter(m=>!((n?m.method===n:!0)&&m.scope===t&&G6(m.mods,c)))})};function Y6(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in xn)Object.prototype.hasOwnProperty.call(xn,i)&&(!xn[i]&&t.mods.indexOf(+i)>-1||xn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!xn[16]&&!xn[18]&&!xn[17]&&!xn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Et),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Z6(e,t){let n=jt["*"],r=e.keyCode||e.which||e.charCode;if(!ri.filter.call(this,e))return;if((r===93||r===224)&&(r=91),Et.indexOf(r)===-1&&r!==229&&Et.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=H0[i];e[i]&&Et.indexOf(o)===-1?Et.push(o):!e[i]&&Et.indexOf(o)>-1?Et.splice(Et.indexOf(o),1):i==="metaKey"&&e[i]&&Et.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Et=Et.slice(Et.indexOf(o))))}),r in xn){xn[r]=!0;for(let i in Wr)Wr[i]===r&&(ri[i]=!0);if(!n)return}for(let i in xn)Object.prototype.hasOwnProperty.call(xn,i)&&(xn[i]=e[H0[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Et.indexOf(17)===-1&&Et.push(17),Et.indexOf(18)===-1&&Et.push(18),xn[17]=!0,xn[18]=!0);let a=hl();if(n)for(let i=0;i-1}function ri(e,t,n){Et=[];let r=Cf(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",m=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&ey(e,i);s1&&(a=vf(Wr,e)),e=e[e.length-1],e=e==="*"?"*":bl(e),e in jt||(jt[e]=[]),jt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!$M(o)&&window&&(Q6.push(o),fl(o,"keydown",p=>{Z6(p,o)},m),$6||($6=!0,fl(window,"focus",()=>{Et=[]},m),fl(window,"click",()=>{Et=[]},!1)),fl(o,"keyup",p=>{Z6(p,o),KM(p)},m))}function YM(e,t="all"){Object.keys(jt).forEach(n=>{jt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Tf={getPressedKeyString:HM,setScope:X6,getScope:hl,deleteScope:VM,getPressedKeyCodes:jM,getAllKeyCodes:qM,isPressed:WM,filter:zM,trigger:YM,unbind:ey,keyMap:xs,modifier:Wr,modifierMap:H0};for(let e in Tf)Object.prototype.hasOwnProperty.call(Tf,e)&&(ri[e]=Tf[e]);if(typeof window<"u"){let e=window.hotkeys;ri.noConflict=t=>(t&&window.hotkeys===ri&&(window.hotkeys=e),ri),window.hotkeys=ri}var $t=ri;var ZM={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},ny={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},nn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Yn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Li={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=G.getVersionPrecision(e),a=G.getVersionPrecision(t),i=Math.max(r,a),o=0,s=G.map([e,t],u=>{let l=i-G.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return G.map(c.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return ZM[e]}static getBrowserTypeByAlias(e){return ny[e]||""}},At=/version\/(\d+(\.?_?\d+)+)/i,JM=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(At,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(r,e),version:G.getSecondMatch(r,e)}}}],QM=JM,XM=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Yn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Yn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:Yn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Yn.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),r={name:Yn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Yn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),r={name:Yn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Yn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:Yn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Yn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Yn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Yn.Linux}}},{test:[/CrOS/],describe(){return{name:Yn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Yn.PlayStation4,version:t}}}],eP=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:nn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:nn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:nn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:nn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:nn.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:nn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:nn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:nn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:nn.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:nn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:nn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:nn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:nn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:nn.tv}}}],tP=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Li.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Li.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Li.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Li.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Li.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Li.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Li.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],nP=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(QM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(XM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(eP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(tP,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=G.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=G.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=G.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=G.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(G.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},ty=nP,rP=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new ty(e,t)}static parse(e){return new ty(e).getResult()}static get BROWSER_MAP(){return ny}static get ENGINE_MAP(){return Li}static get OS_MAP(){return Yn}static get PLATFORMS_MAP(){return nn}},Ts=rP;var{entries:cy,setPrototypeOf:ry,isFrozen:aP,getPrototypeOf:iP,getOwnPropertyDescriptor:oP}=Object,{freeze:Zn,seal:Kr,create:sP}=Object,{apply:Df,construct:Lf}=typeof Reflect<"u"&&Reflect;Df||(Df=function(e,t,n){return e.apply(t,n)});Zn||(Zn=function(e){return e});Kr||(Kr=function(e){return e});Lf||(Lf=function(e,t){return new e(...t)});var uP=Pr(Array.prototype.forEach),ay=Pr(Array.prototype.pop),yl=Pr(Array.prototype.push),W0=Pr(String.prototype.toLowerCase),Sf=Pr(String.prototype.toString),lP=Pr(String.prototype.match),Vr=Pr(String.prototype.replace),cP=Pr(String.prototype.indexOf),dP=Pr(String.prototype.trim),vr=Pr(RegExp.prototype.test),vl=mP(TypeError);function Pr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),bP=Kr(/\${[\w\W]*}/gm),yP=Kr(/^data-[\-\w.\u00B7-\uFFFF]/),vP=Kr(/^aria-[\-\w]+$/),dy=Kr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),CP=Kr(/^(?:\w+script|data):/i),xP=Kr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),my=Kr(/^html$/i),ly=Object.freeze({__proto__:null,MUSTACHE_EXPR:fP,ERB_EXPR:hP,TMPLIT_EXPR:bP,DATA_ATTR:yP,ARIA_ATTR:vP,IS_ALLOWED_URI:dy,IS_SCRIPT_OR_DATA:CP,ATTR_WHITESPACE:xP,DOCTYPE_NAME:my}),TP=()=>typeof window>"u"?null:window,SP=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function gy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TP(),t=I=>gy(I);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:p}=e,f=u.prototype,b=q0(f,"cloneNode"),y=q0(f,"nextSibling"),h=q0(f,"childNodes"),v=q0(f,"parentNode");if(typeof o=="function"){let I=a.createElement("template");I.content&&I.content.ownerDocument&&(a=I.content.ownerDocument)}let C,x="",{implementation:T,createNodeIterator:S,createDocumentFragment:w,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof cy=="function"&&typeof v=="function"&&T&&T.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:_,TMPLIT_EXPR:B,DATA_ATTR:L,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:V}=ly,{IS_ALLOWED_URI:Y}=ly,ae=null,_e=Ke({},[...iy,...wf,...Ef,...Af,...oy]),xe=null,H=Ke({},[...sy,...kf,...uy,...z0]),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,Me=null,ve=!0,Xe=!0,J=!1,ce=!0,he=!1,pe=!1,ke=!1,ze=!1,Z=!1,Ee=!1,Ct=!1,ut=!0,De=!1,Nt="user-content-",mn=!0,Vt=!1,Qt={},Wn=null,kr=Ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Pu=null,ya=Ke({},["audio","video","img","source","image","track"]),uo=null,Qo=Ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_n="http://www.w3.org/1998/Math/MathML",Ur="http://www.w3.org/2000/svg",Rn="http://www.w3.org/1999/xhtml",pr=Rn,Va=!1,Ka=null,lo=Ke({},[_n,Ur,Rn],Sf),Vn,Ga=["application/xhtml+xml","text/html"],Ut="text/html",xt,fr=null,oE=a.createElement("form"),d2=function(I){return I instanceof RegExp||I instanceof Function},jg=function(I){if(!(fr&&fr===I)){if((!I||typeof I!="object")&&(I={}),I=Ss(I),Vn=Ga.indexOf(I.PARSER_MEDIA_TYPE)===-1?Vn=Ut:Vn=I.PARSER_MEDIA_TYPE,xt=Vn==="application/xhtml+xml"?Sf:W0,ae="ALLOWED_TAGS"in I?Ke({},I.ALLOWED_TAGS,xt):_e,xe="ALLOWED_ATTR"in I?Ke({},I.ALLOWED_ATTR,xt):H,Ka="ALLOWED_NAMESPACES"in I?Ke({},I.ALLOWED_NAMESPACES,Sf):lo,uo="ADD_URI_SAFE_ATTR"in I?Ke(Ss(Qo),I.ADD_URI_SAFE_ATTR,xt):Qo,Pu="ADD_DATA_URI_TAGS"in I?Ke(Ss(ya),I.ADD_DATA_URI_TAGS,xt):ya,Wn="FORBID_CONTENTS"in I?Ke({},I.FORBID_CONTENTS,xt):kr,ee="FORBID_TAGS"in I?Ke({},I.FORBID_TAGS,xt):{},Me="FORBID_ATTR"in I?Ke({},I.FORBID_ATTR,xt):{},Qt="USE_PROFILES"in I?I.USE_PROFILES:!1,ve=I.ALLOW_ARIA_ATTR!==!1,Xe=I.ALLOW_DATA_ATTR!==!1,J=I.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=I.SAFE_FOR_TEMPLATES||!1,pe=I.WHOLE_DOCUMENT||!1,Z=I.RETURN_DOM||!1,Ee=I.RETURN_DOM_FRAGMENT||!1,Ct=I.RETURN_TRUSTED_TYPE||!1,ze=I.FORCE_BODY||!1,ut=I.SANITIZE_DOM!==!1,De=I.SANITIZE_NAMED_PROPS||!1,mn=I.KEEP_CONTENT!==!1,Vt=I.IN_PLACE||!1,Y=I.ALLOWED_URI_REGEXP||dy,pr=I.NAMESPACE||Rn,W=I.CUSTOM_ELEMENT_HANDLING||{},I.CUSTOM_ELEMENT_HANDLING&&d2(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=I.CUSTOM_ELEMENT_HANDLING.tagNameCheck),I.CUSTOM_ELEMENT_HANDLING&&d2(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),I.CUSTOM_ELEMENT_HANDLING&&typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(Xe=!1),Ee&&(Z=!0),Qt&&(ae=Ke({},[...oy]),xe=[],Qt.html===!0&&(Ke(ae,iy),Ke(xe,sy)),Qt.svg===!0&&(Ke(ae,wf),Ke(xe,kf),Ke(xe,z0)),Qt.svgFilters===!0&&(Ke(ae,Ef),Ke(xe,kf),Ke(xe,z0)),Qt.mathMl===!0&&(Ke(ae,Af),Ke(xe,uy),Ke(xe,z0))),I.ADD_TAGS&&(ae===_e&&(ae=Ss(ae)),Ke(ae,I.ADD_TAGS,xt)),I.ADD_ATTR&&(xe===H&&(xe=Ss(xe)),Ke(xe,I.ADD_ATTR,xt)),I.ADD_URI_SAFE_ATTR&&Ke(uo,I.ADD_URI_SAFE_ATTR,xt),I.FORBID_CONTENTS&&(Wn===kr&&(Wn=Ss(Wn)),Ke(Wn,I.FORBID_CONTENTS,xt)),mn&&(ae["#text"]=!0),pe&&Ke(ae,["html","head","body"]),ae.table&&(Ke(ae,["tbody"]),delete ee.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw vl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw vl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=I.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else C===void 0&&(C=SP(p,r)),C!==null&&typeof x=="string"&&(x=C.createHTML(""));Zn&&Zn(I),fr=I}},m2=Ke({},["mi","mo","mn","ms","mtext"]),g2=Ke({},["foreignobject","desc","title","annotation-xml"]),sE=Ke({},["title","style","font","a","script"]),jc=Ke({},wf);Ke(jc,Ef),Ke(jc,gP);let Hg=Ke({},Af);Ke(Hg,pP);let uE=function(I){let ge=v(I);(!ge||!ge.tagName)&&(ge={namespaceURI:pr,tagName:"template"});let ie=W0(I.tagName),gt=W0(ge.tagName);return Ka[I.namespaceURI]?I.namespaceURI===Ur?ge.namespaceURI===Rn?ie==="svg":ge.namespaceURI===_n?ie==="svg"&&(gt==="annotation-xml"||m2[gt]):!!jc[ie]:I.namespaceURI===_n?ge.namespaceURI===Rn?ie==="math":ge.namespaceURI===Ur?ie==="math"&&g2[gt]:!!Hg[ie]:I.namespaceURI===Rn?ge.namespaceURI===Ur&&!g2[gt]||ge.namespaceURI===_n&&!m2[gt]?!1:!Hg[ie]&&(sE[ie]||!jc[ie]):!!(Vn==="application/xhtml+xml"&&Ka[I.namespaceURI]):!1},Xo=function(I){yl(t.removed,{element:I});try{I.parentNode.removeChild(I)}catch{I.remove()}},qg=function(I,ge){try{yl(t.removed,{attribute:ge.getAttributeNode(I),from:ge})}catch{yl(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(I),I==="is"&&!xe[I])if(Z||Ee)try{Xo(ge)}catch{}else try{ge.setAttribute(I,"")}catch{}},p2=function(I){let ge,ie;if(ze)I=""+I;else{let Kn=lP(I,/^[\r\n\t ]+/);ie=Kn&&Kn[0]}Vn==="application/xhtml+xml"&&pr===Rn&&(I=''+I+"");let gt=C?C.createHTML(I):I;if(pr===Rn)try{ge=new g().parseFromString(gt,Vn)}catch{}if(!ge||!ge.documentElement){ge=T.createDocument(pr,"template",null);try{ge.documentElement.innerHTML=Va?x:gt}catch{}}let gn=ge.body||ge.documentElement;return I&&ie&&gn.insertBefore(a.createTextNode(ie),gn.childNodes[0]||null),pr===Rn?A.call(ge,pe?"html":"body")[0]:pe?ge.documentElement:gn},f2=function(I){return S.call(I.ownerDocument||I,I,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},lE=function(I){return I instanceof m&&(typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||!(I.attributes instanceof c)||typeof I.removeAttribute!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function")},Hc=function(I){return typeof s=="object"?I instanceof s:I&&typeof I=="object"&&typeof I.nodeType=="number"&&typeof I.nodeName=="string"},$a=function(I,ge,ie){M[I]&&uP(M[I],gt=>{gt.call(t,ge,ie,fr)})},h2=function(I){let ge;if($a("beforeSanitizeElements",I,null),lE(I))return Xo(I),!0;let ie=xt(I.nodeName);if($a("uponSanitizeElement",I,{tagName:ie,allowedTags:ae}),I.hasChildNodes()&&!Hc(I.firstElementChild)&&(!Hc(I.content)||!Hc(I.content.firstElementChild))&&vr(/<[/\w]/g,I.innerHTML)&&vr(/<[/\w]/g,I.textContent))return Xo(I),!0;if(!ae[ie]||ee[ie]){if(!ee[ie]&&y2(ie)&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie)))return!1;if(mn&&!Wn[ie]){let gt=v(I)||I.parentNode,gn=h(I)||I.childNodes;if(gn&>){let Kn=gn.length;for(let ir=Kn-1;ir>=0;--ir)gt.insertBefore(b(gn[ir],!0),y(I))}}return Xo(I),!0}return I instanceof u&&!uE(I)||(ie==="noscript"||ie==="noembed")&&vr(/<\/no(script|embed)/i,I.innerHTML)?(Xo(I),!0):(he&&I.nodeType===3&&(ge=I.textContent,ge=Vr(ge,R," "),ge=Vr(ge,_," "),ge=Vr(ge,B," "),I.textContent!==ge&&(yl(t.removed,{element:I.cloneNode()}),I.textContent=ge)),$a("afterSanitizeElements",I,null),!1)},b2=function(I,ge,ie){if(ut&&(ge==="id"||ge==="name")&&(ie in a||ie in oE))return!1;if(!(Xe&&!Me[ge]&&vr(L,ge))&&!(ve&&vr(N,ge))){if(!xe[ge]||Me[ge]){if(!(y2(I)&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,I)||W.tagNameCheck instanceof Function&&W.tagNameCheck(I))&&(W.attributeNameCheck instanceof RegExp&&vr(W.attributeNameCheck,ge)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(ge))||ge==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&vr(W.tagNameCheck,ie)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ie))))return!1}else if(!uo[ge]&&!vr(Y,Vr(ie,V,""))&&!((ge==="src"||ge==="xlink:href"||ge==="href")&&I!=="script"&&cP(ie,"data:")===0&&Pu[I])&&!(J&&!vr(U,Vr(ie,V,"")))&&ie)return!1}return!0},y2=function(I){return I.indexOf("-")>0},v2=function(I){let ge,ie,gt,gn;$a("beforeSanitizeAttributes",I,null);let{attributes:Kn}=I;if(!Kn)return;let ir={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(gn=Kn.length;gn--;){ge=Kn[gn];let{name:vn,namespaceURI:es}=ge;if(ie=vn==="value"?ge.value:dP(ge.value),gt=xt(vn),ir.attrName=gt,ir.attrValue=ie,ir.keepAttr=!0,ir.forceKeepAttr=void 0,$a("uponSanitizeAttribute",I,ir),ie=ir.attrValue,ir.forceKeepAttr||(qg(vn,I),!ir.keepAttr))continue;if(!ce&&vr(/\/>/i,ie)){qg(vn,I);continue}he&&(ie=Vr(ie,R," "),ie=Vr(ie,_," "),ie=Vr(ie,B," "));let C2=xt(I.nodeName);if(b2(C2,gt,ie)){if(De&&(gt==="id"||gt==="name")&&(qg(vn,I),ie=Nt+ie),C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!es)switch(p.getAttributeType(C2,gt)){case"TrustedHTML":{ie=C.createHTML(ie);break}case"TrustedScriptURL":{ie=C.createScriptURL(ie);break}}try{es?I.setAttributeNS(es,vn,ie):I.setAttribute(vn,ie),ay(t.removed)}catch{}}}$a("afterSanitizeAttributes",I,null)},cE=function I(ge){let ie,gt=f2(ge);for($a("beforeSanitizeShadowDOM",ge,null);ie=gt.nextNode();)$a("uponSanitizeShadowNode",ie,null),!h2(ie)&&(ie.content instanceof i&&I(ie.content),v2(ie));$a("afterSanitizeShadowDOM",ge,null)};return t.sanitize=function(I){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie,gt,gn,Kn;if(Va=!I,Va&&(I=""),typeof I!="string"&&!Hc(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw vl("dirty is not a string, aborting")}else throw vl("toString is not a function");if(!t.isSupported)return I;if(ke||jg(ge),t.removed=[],typeof I=="string"&&(Vt=!1),Vt){if(I.nodeName){let es=xt(I.nodeName);if(!ae[es]||ee[es])throw vl("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof s)ie=p2(""),gt=ie.ownerDocument.importNode(I,!0),gt.nodeType===1&>.nodeName==="BODY"||gt.nodeName==="HTML"?ie=gt:ie.appendChild(gt);else{if(!Z&&!he&&!pe&&I.indexOf("<")===-1)return C&&Ct?C.createHTML(I):I;if(ie=p2(I),!ie)return Z?null:Ct?x:""}ie&&ze&&Xo(ie.firstChild);let ir=f2(Vt?I:ie);for(;gn=ir.nextNode();)h2(gn)||(gn.content instanceof i&&cE(gn.content),v2(gn));if(Vt)return I;if(Z){if(Ee)for(Kn=w.call(ie.ownerDocument);ie.firstChild;)Kn.appendChild(ie.firstChild);else Kn=ie;return(xe.shadowroot||xe.shadowrootmod)&&(Kn=D.call(n,Kn,!0)),Kn}let vn=pe?ie.outerHTML:ie.innerHTML;return pe&&ae["!doctype"]&&ie.ownerDocument&&ie.ownerDocument.doctype&&ie.ownerDocument.doctype.name&&vr(my,ie.ownerDocument.doctype.name)&&(vn=" +`+vn),he&&(vn=Vr(vn,R," "),vn=Vr(vn,_," "),vn=Vr(vn,B," ")),C&&Ct?C.createHTML(vn):vn},t.setConfig=function(I){jg(I),ke=!0},t.clearConfig=function(){fr=null,ke=!1},t.isValidAttribute=function(I,ge,ie){fr||jg({});let gt=xt(I),gn=xt(ge);return b2(gt,gn,ie)},t.addHook=function(I,ge){typeof ge=="function"&&(M[I]=M[I]||[],yl(M[I],ge))},t.removeHook=function(I){if(M[I])return ay(M[I])},t.removeHooks=function(I){M[I]&&(M[I]=[])},t.removeAllHooks=function(){M={}},t}var ct=gy();var wP=Object.create,Pf=Object.defineProperty,EP=Object.getOwnPropertyDescriptor,AP=Object.getOwnPropertyNames,kP=Object.getPrototypeOf,DP=Object.prototype.hasOwnProperty,_f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),LP=(e,t)=>{for(var n in t)Pf(e,n,{get:t[n],enumerable:!0})},Mf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of AP(t))!DP.call(e,a)&&a!==n&&Pf(e,a,{get:()=>t[a],enumerable:!(r=EP(t,a))||r.enumerable});return e},MP=(e,t,n)=>(Mf(e,t,"default"),n&&Mf(n,t,"default")),fy=(e,t,n)=>(n=e!=null?wP(kP(e)):{},Mf(t||!e||!e.__esModule?Pf(n,"default",{value:e,enumerable:!0}):n,e)),PP=_f((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var m=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(m,l)}else{for(var g=this._doc.createElement("span");l.firstChild;)g.appendChild(l.firstChild);l.parentNode.replaceChild(g,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),m=l.getAttribute("poster"),g=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),m&&l.setAttribute("poster",o(m)),g){var p=g.replace(this.REGEXPS.srcsetUrl,function(f,b,y,h){return o(b)+(y||"")+h});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var m=r.getElementsByTagName("h1");m.length===1&&(a=this._getInnerText(m[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var g=s(a);return g<=4&&(!o||g!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let ze=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(ze&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),ze=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var m=null,g=l.firstChild;g;){var p=g.nextSibling;if(this._isPhrasingContent(g))m!==null?m.appendChild(g):this._isWhitespace(g)||(m=a.createElement("p"),l.replaceChild(m,g),m.appendChild(g));else if(m!==null){for(;m.lastChild&&this._isWhitespace(m.lastChild);)m.removeChild(m.lastChild);m=null}g=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var f=l.children[0];l.parentNode.replaceChild(f,l),l=f,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(Z){if(!(!Z.parentNode||typeof Z.parentNode.tagName>"u")){var Ee=this._getInnerText(Z);if(!(Ee.length<25)){var Ct=this._getNodeAncestors(Z,5);if(Ct.length!==0){var ut=0;ut+=1,ut+=Ee.split(",").length,ut+=Math.min(Math.floor(Ee.length/100),3),this._forEachNode(Ct,function(De,Nt){if(!(!De.tagName||!De.parentNode||typeof De.parentNode.tagName>"u")){if(typeof De.readability>"u"&&(this._initializeNode(De),b.push(De)),Nt===0)var mn=1;else Nt===1?mn=2:mn=Nt*3;De.readability.contentScore+=ut/mn}})}}}});for(var y=[],h=0,v=b.length;hS.readability.contentScore){y.splice(T,0,C),y.length>this._nbTopCandidates&&y.pop();break}}}var w=y[0]||null,A=!1,D;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var M=[],R=1;R=.75&&M.push(this._getNodeAncestors(y[R]));var _=3;if(M.length>=_)for(D=w.parentNode;D.tagName!=="BODY";){for(var B=0,L=0;L=_){w=D;break}D=D.parentNode}w.readability||this._initializeNode(w),D=w.parentNode;for(var N=w.readability.contentScore,U=N/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var V=D.readability.contentScore;if(VN){w=D;break}N=D.readability.contentScore,D=D.parentNode}for(D=w.parentNode;D.tagName!="BODY"&&D.children.length==1;)w=D,D=w.parentNode;w.readability||this._initializeNode(w)}var Y=a.createElement("DIV");i&&(Y.id="readability-content");var ae=Math.max(10,w.readability.contentScore*.2);D=w.parentNode;for(var _e=D.children,xe=0,H=_e.length;xe=ae)ee=!0;else if(W.nodeName==="P"){var ve=this._getLinkDensity(W),Xe=this._getInnerText(W),J=Xe.length;(J>80&&ve<.25||J<80&&J>0&&ve===0&&Xe.search(/\.( |$)/)!==-1)&&(ee=!0)}}ee&&(this.log("Appending node:",W),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(W.nodeName)===-1&&(this.log("Altering sibling:",W,"to div."),W=this._setNodeTag(W,"DIV")),Y.appendChild(W),_e=D.children,xe-=1,H-=1)}if(this._debug&&this.log("Article content pre-prep: "+Y.innerHTML),this._prepArticle(Y),this._debug&&this.log("Article content post-prep: "+Y.innerHTML),A)w.id="readability-page-1",w.className="page";else{var ce=a.createElement("DIV");for(ce.id="readability-page-1",ce.className="page";Y.firstChild;)ce.appendChild(Y.firstChild);Y.appendChild(ce)}this._debug&&this.log("Article content after paging: "+Y.innerHTML);var he=!0,pe=this._getInnerText(Y,!0).length;if(pe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(g){return(g["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,m=this._textSimilarity(u.headline,l)>.75;m&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(g){return g&&typeof g.name=="string"}).map(function(g){return g.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(g){this.log(g.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),m=l.getAttribute("property"),g=l.getAttribute("content");if(g){var p=null,f=null;m&&(p=m.match(s),p&&(f=p[0].toLowerCase().replace(/\s/g,""),i[f]=g.trim())),!p&&c&&u.test(c)&&(f=c,g&&(f=f.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[f]=g.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var m=["col","colgroup","tfoot","thead","th"],g=function(f){return!!o.getElementsByTagName(f)[0]};if(m.some(g)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var m=0;if(c+m<0)return!0;if(this._getCharCount(i,",")<10){for(var g=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,f=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,y=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),h=0,v=this._getAllNodesWithTag(i,["object","embed","iframe"]),C=0;C1&&g/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&f>g||b>Math.floor(g/3)||!s&&y<.9&&S<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&T>.2||c>=25&&T>.5||h===1&&S<75||h>1;if(s&&w){for(var A=0;A1)return w;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),_P=_f((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(g){c.add(g.parentNode)}),u=Array.from(c)}var m=0;return[].some.call(u,function(g){if(!o.visibilityChecker(g))return!1;var p=g.className+" "+g.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||g.matches("li p"))return!1;var f=g.textContent.trim().length;return fo.minScore)})}typeof t=="object"&&(t.exports=a)}),hy=_f((e,t)=>{var n=PP(),r=_P();t.exports={Readability:n,isProbablyReaderable:r}}),by={};LP(by,{Readability:()=>V0,default:()=>Cy,isProbablyReaderable:()=>vy});var yy=fy(hy());MP(by,fy(hy()));var{Readability:V0,isProbablyReaderable:vy}=yy,{default:py,...RP}=yy,Cy=py!==void 0?py:RP;var Rf=U0.alert;var ws=console,If=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=Mr.green;r>1e4?a=Mr.red:r>1e3&&(a=Mr.yellow),ws.debug(Mr.dim(co+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Cl=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&ws.log(Mr.dim(co+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&ws.log(Mr.green(co+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&ws.warn(Mr.yellow(co+" WARN:"),...t)}error(...t){this.#e<=3&&ws.error(Mr.red(co+" ERROR:"),...t)}fatal(...t){this.#e<=4&&ws.error(Mr.red(co+" FATAL:"),...t)}timing(){return this.level===0?new If:{reset:()=>{},stop:()=>{}}}},k=new Cl;function Tt(){try{let e=[Te().EBOOK_BUILDER_URL,Te().EBOOK_VIEWER_URL,Te().SUBTITLE_BUILDER_URL,Te().HTML_VIEWER_URL,Te().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+et];va()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var ur=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Ff={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},xy={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Bf={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Of={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function re(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=ur.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":ur[a]}else return"auto";else return ur[r]}function Ht(){return re(document?.documentElement?.lang||"en")}var Nf=/iPhone/i,Ty=/iPod/i,Sy=/iPad/i,wy=/\biOS-universal(?:.+)Mac\b/i,Uf=/\bAndroid(?:.+)Mobile\b/i,Ey=/Android/i,Es=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,K0=/Silk/i,ai=/Windows Phone/i,Ay=/\bWindows(?:.+)ARM\b/i,ky=/BlackBerry/i,Dy=/BB10/i,Ly=/Opera Mini/i,My=/\b(CriOS|Chrome)(?:.+)Mobile/i,Py=/Mobile(?:.+)Firefox\b/i,_y=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function IP(e){return t=>t.test(e)}function qe(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=IP(n),i={apple:{phone:a(Nf)&&!a(ai),ipod:a(Ty),tablet:!a(Nf)&&(a(Sy)||_y(t))&&!a(ai),universal:a(wy),device:(a(Nf)||a(Ty)||a(Sy)||a(wy)||_y(t))&&!a(ai)},amazon:{phone:a(Es),tablet:!a(Es)&&a(K0),device:a(Es)||a(K0)},android:{phone:!a(ai)&&a(Es)||!a(ai)&&a(Uf),tablet:!a(ai)&&!a(Es)&&!a(Uf)&&(a(K0)||a(Ey)),device:!a(ai)&&(a(Es)||a(K0)||a(Uf)||a(Ey))||a(/\bokhttp\b/i)},windows:{phone:a(ai),tablet:a(Ay),device:a(ai)||a(Ay)},other:{blackberry:a(ky),blackberry10:a(Dy),opera:a(Ly),firefox:a(Py),chrome:a(My),device:a(ky)||a(Dy)||a(Ly)||a(Py)||a(My)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var jf="DENO",G0="CHROME",$0="FIREFOX";function Ry(e){let t=G0;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=$0:/deno/i.test(n)&&(t=jf)}catch{}return e===G0&&t===G0||e===$0&&t===$0||e===jf&&t===jf}function Y0(){return Ry(G0)}function Iy(){return typeof Deno<"u"}function Jn(){return Te().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:Ry($0)}function Cr(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Fy(){return!!globalThis.matchMedia("(pointer:fine)").matches}function Gr(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var By={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Oy={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:By,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:By,query:()=>{},sendMessage:()=>{}}};var j;Iy()?j=Oy:j=globalThis.immersiveTranslateBrowserAPI;var wo=ne+"CacheKey_";function Eo(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function FP(){let e=j.storage.local.refresh;e&&e()}function Hf(e,t){let n=wo+e;return j.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(wo)).filter(r=>r!==wo+pt);if(n.length>0)return j.storage.local.remove(n)}}var nt={get:Eo,set:Ao,getExpired:Hf,setExpired:qf,remove:zf,clear:Wf,refresh:FP};function kt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Ny(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function Uy(e){if(e){let t=new Date(e.createTime),n=BP(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function BP(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function As(e){if(e?.isPro)return!0;let t=await nt.get(pt,null);return kt(t)}var jy=ne+"SyncStoreKey_";function Pt(e,t){let n=jy+e;return j.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function rt(e,t){let n=jy+e;return j.storage.sync.set({[n]:t})}var Hy=ne+"StoreKey_";function ko(e,t){let n=Hy+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function qy(e,t){let n=Hy+e;return j.storage.local.set({[n]:t})}var tY=Wy(2),zy=Wy(3);function Wy(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var OP=/\s+/g,NP=/[\t\n\v\f\r ]+/g;function Vy(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?UP:jP;return String(e).replace(t.style==="html"?NP:OP,t.trim?HP(n):n)}function UP(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function jP(){return" "}function HP(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var Ky={}.hasOwnProperty;function qP(e){return e==null?"":Vy(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function zP(e){return zy(" "+qP(e)+" ")}function WP(e){let t=zP(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function JP(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function QP(e,t,n,r){t=e_(t,n,r);let a=[],i;if(t)for(i in t)Z0.call(t,i)&&a.push([i,XP(e,t[i])]);return a.length===0?Kf():a.sort(t_)}function XP(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of d_){let u=s[1],l=s[0],c=e.match(u),m=c?c.length:0;o[l]=m,m>n&&(n=m,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?ev(e)?"zh-TW":"zh-CN":t:"auto"}var nv=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Gf=new Map(nv),m_=new Map(nv.map(([e,t])=>[t,e]));function rv(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>m_.get(s));!t&&t!==0&&(t=25);let a=Q0(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Gf.keys()]},o=Yy(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(m=="eng"&&g<.95)break;return Gf.get(m)}}let[s,u]=o[0],l=Gf.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}function Mi(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function g_(e,t){return e<>>32-t}function ed(e,t,n,r,a,i){return Mi(g_(Mi(Mi(t,e),Mi(r,i)),a),n)}function Bn(e,t,n,r,a,i,o){return ed(t&n|~t&r,e,t,a,i,o)}function On(e,t,n,r,a,i,o){return ed(t&r|n&~r,e,t,a,i,o)}function Nn(e,t,n,r,a,i,o){return ed(t^n^r,e,t,a,i,o)}function Un(e,t,n,r,a,i,o){return ed(n^(t|~r),e,t,a,i,o)}function X0(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function $f(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=X0(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=X0(a.concat($f(t)),512+t.length*8),av(X0(i.concat(o),512+128))}function iv(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Yf(e){return unescape(encodeURIComponent(e))}function ov(e){return p_(Yf(e))}function h_(e){return iv(ov(e))}function sv(e,t){return f_(Yf(e),Yf(t))}function b_(e,t){return iv(sv(e,t))}function xr(e,t,n){return t?n?sv(t,e):b_(t,e):n?ov(e):h_(e)}var td=["caiyun","cai"],uv=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],ks={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:$+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Yr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:$+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},$r={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:$+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:$+"docs/services/deepL/",link1:"https://www.deepl.com/zh/whydeepl",link2:$+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_deepl",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:$+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:$+"docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password",sensitive:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!1}]},openai:{ai:!0,name:"Open AI",homepage:"https://openai.com/api/",docUrl:$+"docs/services/openai/",link1:"https://readit.plus/a/GKQas/understanding-chatgpt",link2:$+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_openai",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:$+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:$+"docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo-1106",providers:["custom"],options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom"],label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{providers:["custom","pro"],label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4-1106-preview",value:"gpt-4-1106-preview"},{providers:["custom"],label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{providers:["custom"],label:"gpt-4o",value:"gpt-4o"},{providers:["custom"],label:"gpt-4o-mini",value:"gpt-4o-mini"},{providers:["custom"],label:"gpt-4-turbo",value:"gpt-4-turbo"},{providers:["custom"],label:"gpt-4",value:"gpt-4"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:$+"docs/services/openai/",type:"number",default:10,providers:["custom"]},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",descriptionLink1:$+"docs/services/openai/",optional:!0,providers:["custom"]},{name:"enableAIContext",labelKey:"field.enableAIContext",descriptionKey:"description.enableAIContext",required:!1,type:"boolean",default:!1,optional:!1},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},gemini:{ai:!0,name:"Gemini",homepage:"https://ai.google.dev/aistudio/",docUrl:$+"docs/services/gemini/",link2:$+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_gemini",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:$+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"geminiCustomDescription",descriptionLink1:"https://ai.google.dev/aistudio/",descriptionLink2:$+"docs/services/gemini/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",providers:["custom"],options:[{label:"gemini-1.5-pro-latest",value:"gemini-1.5-pro-latest"},{label:"gemini-1.5-flash",value:"gemini-1.5-flash"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:$+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",descriptionKey:"description.apiUrl",descriptionLink1:$+"docs/services/gemini/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},claude:{ai:!0,name:"Claude",homepage:"https://www.anthropic.com/",docUrl:$+"docs/services/claude/",link2:$+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_claude",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:$+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"claudeCustomDescription",descriptionLink1:"https://www.anthropic.com/",descriptionLink2:$+"docs/services/claude/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"claude-3-haiku-20240307",providers:["custom"],options:[{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-5-sonnet-20240620",value:"claude-3-5-sonnet-20240620"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"claude-2.1",value:"claude-2.1"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",providers:["custom"],descriptionKey:"description.generalLimitPerSecond",descriptionLink1:$+"docs/services/openai/",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:10,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.anthropic.com/v1/messages",descriptionKey:"description.apiUrl",descriptionLink1:$+"docs/services/claude/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},siliconcloud:{ai:!0,name:"siliconcloud",homepage:"https://cloud.siliconflow.cn/",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],default:"Qwen/Qwen2.5-7B-Instruct",options:[{label:"Qwen/Qwen2.5-7B-Instruct",value:"Qwen/Qwen2.5-7B-Instruct"},{label:"meta-llama/Meta-Llama-3.1-8B-Instruct",value:"meta-llama/Meta-Llama-3.1-8B-Instruct"},{label:"THUDM/glm-4-9b-chat",value:"THUDM/glm-4-9b-chat"},{label:"google/gemma-2-9b-it",value:"google/gemma-2-9b-it"},{label:"01-ai/Yi-1.5-9B-Chat-16K",value:"01-ai/Yi-1.5-9B-Chat-16K"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:$+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"APIKEY",descriptionKey:"description.siliconcloudCustomAPIKey",descriptionLink1:"https://siliconflow.cn/",providers:["custom"],required:!1,type:"password",sensitive:!0,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0,default:5},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},yandex:{name:"Yandex",homepage:"https://translate.yandex.com/"},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},lingyiwanwu:{ai:!0,name:"lingyiwanwu",homepage:"https://platform.lingyiwanwu.com/docs",docUrl:$+"docs/services/lingyiwanwu/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"yi-large",value:"yi-large"},{label:"yi-large-turbo",value:"yi-large-turbo"},{label:"yi-large-rag",value:"yi-large-rag"},{label:"yi-medium",value:"yi-medium"},{label:"yi-medium-200k",value:"yi-medium-200k"},{label:"yi-spark",value:"yi-spark"},{label:"yi-vision",value:"yi-vision"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:$+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:$+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:$+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:$+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:$+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:$+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:$+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:$+"docs/services/custom/",docUrl:$+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ss,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:$+"docs/services/openL/",beta:!0,allProps:[...cv,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:cv},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:$+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:$+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:$+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":ks,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:$+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:$+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:$+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:$+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:$+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:$+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:$+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:$+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:$+"docs/services/custom/",docUrl:$+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ss,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:$+"docs/services/openL/",beta:!0,allProps:[...uv,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:uv},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:$+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:$+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:$+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":ks,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:$+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},"aliyun-bailian":{ai:!0,name:"aliyun-bailian",homepage:"https://bailian.console.aliyun.com/",docUrl:$+"docs/services/aliyun-bailian/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"qwen-long",options:[{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-long",value:"qwen-long"},{label:"qwen-max",value:"qwen-max"},{label:"qwen1.5-7b-chat",value:"qwen1.5-7b-chat"},{label:"qwen1.5-14b-chat",value:"qwen1.5-14b-chat"},{label:"qwen1.5-32b-chat",value:"qwen1.5-32b-chat"},{label:"qwen1.5-72b-chat",value:"qwen1.5-72b-chat"},{label:"qwen1.5-110b-chat",value:"qwen1.5-110b-chat"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:$+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:$+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:$+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function v_(e,t,n=!1){let r=[];for(let u=0;u=0&&u=0&&lc.length&&(c.length=f.length,c.previous=[g,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function dv(e,t,n=!1){let r=v_(e,t,n),a=[],i=0,o=0,s=0;for(;i=1024&&ru+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function C_(e,t){let n=[],r=[];for(let a=0;a0?h=0&&u=0&&lc.length&&(c.length=f.length,c.previous=[g,p])}}(e[u]===t[l]||n&&e[u].toLowerCase()===t[l].toLowerCase())&&(u>0&&l>0&&r[u-1][l-1].length+1>c.length?(c.length=r[u-1][l-1].length+1,c.previous=[u-1,l-1],c.character=t[l]):(u==0||l==0)&&(c.character=t[l],c.length=1,c.previous=[-1,-1])),r[u][l]=c}let o=r[e.length-1][t.length-1],s="";for(;o.length!==0&&(o.character!==null&&(s=o.character+s),o.previous[0]!=-1);)o=r[o.previous[0]][o.previous[1]];return s}function lv(e,t,n=!1){let r=y_(e,t,n),a=[],i=0,o=0,s=0;for(;i=1024&&ru+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url,inArticleContext:e[0].inArticleContext}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function v_(e,t){let n=[],r=[];for(let a=0;a0?bt){let v=[];Zf(y,t,v);for(let C=0;C0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&Zf(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:b.i18n?.[r]?.name||b.name,value:b.id}))?.filter(b=>b.label&&b.value)||[];if(y.length>0){let b=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];y.length>1&&b.push({label:"aiAssistant.auto",value:"auto"});let v={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:x_([...b,...y,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(v),o.props=[v]}}let f=[],h=[];if(l||m==="pro"&&(c=!1),p.length>0){p.forEach(b=>{g.length>0&&b.providers&&b.providers.length>0&&!b.providers.includes(m)||(b.optional?h.push(b):f.push(b))});let y=h.concat(f).filter(b=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(b.name,s.model,b.required)));if(y.length>0){for(let b of y)if(!s[b.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:m,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:f}}var Ds=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=kt(u),c=Object.keys(Yr);t!=="translationService"&&c.unshift("inherit");let m=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...m].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&je()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let f=Yr[p];e.config.translationServices[p]?.type=="custom-ai"&&(f=ks);let h=Jf(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||g(f,p)?h:null}).filter(p=>!!p);function g(p,f){let h=!!p.canary,y=!!p.alpha,b=!!p.beta;return f===e[t]||h&&o||y&&(a||o)||b&&(i||a||o)?!0:!y&&!b&&!h}};function Ls(e,t,n){return Ds(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:Qf(r.config,n))}function Qf(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Ms(e,t,n="en",r){return Ds(e,t,n).find(o=>o.id===r)}function wl(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function gv(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function rd(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ja.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function x_(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function T_(e,t){let n=dv(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function ad(e,t){return e?`
-
${T_(t,e)}
-
${t}
`:t}function Ps(e){let t=location.search.includes(p0);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var _s=[],GY=1e3*3600*24;async function El(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function id(e){let t=`${P}-${e.service}@${e.from}->${e.to}`;return await w_(t,{...e,createAt:new Date().getTime()})}async function od(e){let t=Tr(e.originalText),n=`${P}-${e.service}@${e.from}->${e.to}`;return await S_(n,t)}async function S_(e,t){let n=await El(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function w_(e,t){let n=await El(e);return(await Xf()).includes(e)||await E_(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function E_(e){let t="cache_list",n=await El(P+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),_s.push(e)},a.onerror=i=>{n.close()}}async function Xf(){if(_s&&_s.length>0)return _s;let e=await El(P+"-cacheList","cache_list");return _s=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),_s}async function sd(){try{let e=[];(await Xf()).forEach(r=>{e.push(A_(r))});let n=await Promise.all(e);return Sl(n.reduce((r,a)=>r+a,0))}catch{return Sl(0)}}async function A_(e){let t=await El(e),r=[...t.objectStoreNames].reduce((o,s)=>{let u=k_(t,s);return o.push(u),o},[]),a=await Promise.all(r);return t.close(),a.reduce((o,s)=>o+s,0)}async function k_(e,t){return await new Promise((n,r)=>{try{if(e==null)return r();let a=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=o=>{try{let s=i.result;if(s){let u=s.value,l=JSON.stringify(u);a+=l.length,s.continue()}else n(a)}catch(s){r(s)}},i.onerror=o=>r("error in "+t+": "+o)}catch(a){r(a)}})}async function pv(){try{let t=(await Xf()).map(r=>D_(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function D_(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var ud="Original";function st(){return ud}function Xn(e){ud=e,hv(ud);let t=new CustomEvent(en,{detail:JSON.stringify({type:"updatePageStatus",payload:ud})});document.dispatchEvent(t)}var fv="Original";function Rs(){return fv}function Rr(e,t){if(t)return;fv=e;let n=new CustomEvent(ju,{detail:e});document.dispatchEvent(n)}var yv="auto",ld="auto",bv="auto";function vv(e){yv=e}function Sr(e){ld=e}function Lt(){return ld!=="auto"?ld:bv!=="auto"?bv:yv}function cd(){return ld}var Al=new Map,wa=class{fromType;logger;constructor(t,n=!1){this.logger=new xl,n&&this.logger.setLevel("debug"),this.fromType=t,Al.has(t)||(Al.set(t,new Map),j.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let m=t4(s),{type:g,name:p}=m;if(g!==t)return!1;let f=t4(o),y=Al.get(g).get(p);if(!y)return this.logger.debug(`no message handler for ${g}:${s}, but it's ok`),!1;let{messageHandler:b,sync:v}=y,C={type:t,name:f.name,id:u,url:l,active:c};if(v){try{let x=b(r.payload,C);i({ok:!0,data:x})}catch(x){i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.details,errorStatus:x.status})}return!1}else return b(r.payload,C).then(x=>{i({ok:!0,data:x})}).catch(x=>{i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.message,errorStatus:x.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Al.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new e4(`${i}:${t}`,this.logger);return Al.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},e4=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=t4(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await j.runtime.sendMessage(o);return Cv(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await j.tabs.sendMessage(i,o);return Cv(o,s,this.logger)}}};function Cv(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new z(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new z("noResponse","Unknown error")}function t4(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Do(e){return e?.id?.endsWith("pdfWebPage")||!1}function Lo(e){try{if(!e||!Do(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function n4(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function dd(e){return r4(JSON.stringify(e))}async function r4(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var Ir,i4=0,md=!1,kl="initial",o4=!1,xv="",Tv,Sv,s4=!1,a4=new Map;async function Is(e,t,n,r){if(s4=!1,Sv=e.sourceProgram,Tv=e.specialAiAssistant,r!=null&&o4&&Ir||Ir&&xv==n&&!n.trim())return;kl="initial",Ir=void 0,o4=r||!1;let a=e.rule.bodyRule;if(md=!1,!n||!a||!e.isPro||(i4=(a.contextTimeout||0)/100,i4<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(md=i.enableAIContext||!1,!!md&&e.user?.token)){kl="requesting";try{let o=await r4(n);if(a4.has(o)){Ir=a4.get(o);return}let s=await X({url:lt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});xv=n,Ir={theme:s.theme,termsRaw:s.terms,terms:L_(s.terms)},a4.set(o,Ir)}catch{}finally{kl="finished"}k.debug("requestTermsByContext contextTerms",Ir)}}function wv(){o4||(kl="initial",Ir=void 0)}function Ev(){s4=!0}function gd(){return Tv?null:{contextTerms:Ir,used:s4,sourceProgram:Sv}}async function Av(){if(!(!md||kl=="initial")){for(let e=0;ee.includes(n)):[]}function L_(e){let t=[];return e.split(` -`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var Ve={},Ea=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Ve.getIsDulSubtitle();if(n==="getPageStatus")return st();n==="updateContextState"&&await Ve.updateContextState(r);let a=await Ve.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Ve.translateTheWholePage(r),Ye(Lr,i);else if(n==="translateTheMainPage")await Ve.translateTheMainPage(r),Ye(Lr,i);else if(n==="translateToThePageEndImmediately")await Ve.translateToThePageEndImmediately(r),Ye(Lr,i);else if(n==="toggleTranslateManga")await Ve.toggleTranslateManga(),Ye(Lr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Do(a?.rule)){let s=Lo(a.rule);Fs(!0,s||o);return}await Ve.toggleTranslatePage(r),Ye(Lr,i)}else if(n==="toggleTranslateTheWholePage")await Ve.toggleTranslateTheWholePage(r),Ye(Lr,i);else if(n==="toggleTranslateTheMainPage")await Ve.toggleTranslateTheMainPage(r),Ye(Lr,i);else if(n==="toggleOnlyTransation")await Ve.ensureSwitchTranslationMode(r),Ye(Lr,i);else if(n=="toggleEnableEditTranslation")Ve.toggleEnableEditTranslation();else if(n==="translatePage")await Ve.translatePage(a,r),Ye(Lr,i);else if(n==="toggleTranslationMask")await Ve.toggleTranslationMask(r);else if(n==="restorePage")Ve.restorePage();else if(n==="retryFailedParagraphs")Ve.retryFailedParagraphs();else if(n=="change_translate_service")Ve.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Ve.switchTranslationMode(r.mode),await Ve.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Ve.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(t0,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Ve.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Fu,{detail:r}));else if(n==="translateWithOpenAI")await Ve.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Ve.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Ve.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Ve.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Ve.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Ve.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Ve.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Ve.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Ve.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Tt()||await Ve.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Tt())return JSON.stringify(a);await tt(5e3)}else if(n==="inputSelectedTextTranslate")await Ve.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Ve.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Ve.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(go,{detail:{type:"webReport"}})):n===Ou&&await Ve.translateSelectImage(a,r)}};function Dv(e){Object.assign(Ve,e)}function Lv(e){Object.assign(Ve,e)}function Mv(e){Object.assign(Ve,e)}var M_=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return st();if(n==="getCurrentPageLanguage"){let a=Lt();return Ve.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Sr(r),Lt();if(n==="getContextString"){let a=Ve.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Ve.getPureGlobalContext();return Lo(a?.rule)}else if(n=="getAIContextInfo")return gd()}},pd,fd;function Pv(){let e=hd();Tt()||P_(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function hd(){return pd||(pd=new wa("content_script",!1).getConnection("main",Ea),pd)}function P_(){return fd||(fd=new wa("content_script",!1).getConnection("main_sync",M_,{sync:!0}),fd)}var Dl=new Map;function _v(){document.addEventListener(P2,e=>{let t=e;if(t&&t.detail){let n;try{n=JSON.parse(t.detail),Dl.has(n.id)&&(n.ok?Dl.get(n.id)(null,n.data):Dl.get(n.id)(new Error(n.errorMessage),null),Dl.delete(n.id))}catch{}}})}function bd(e){let t=__(64),n=new CustomEvent(D2,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{Dl.set(t,(i,o)=>{i?a(i):r(o)})})}function __(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await X({url:yd,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function R_(e,t){return Math.floor(Math.random()*(t-e+1))+e}var I_=30,l4="RATE_LIMITER_TICKS",_i=class e{static strictTicks={};static clearStrictTicks(){Zr(l4,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mo(l4)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Zr(l4,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=R_(4,I_);await tt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function St(e){return await hd().sendMessage("background:main",e)}function X(e){return Wc()?bd({method:"request",data:e}):Q()||zc()?(e.fetchPolyfill=globalThis.GM_fetch,Or(e)):St({method:"fetch",data:e})}function Rv(e){return Q()?Promise.resolve():St({method:"reportOptionsPageView",data:e})}function Fr(){return Q()?Ze():St({method:"getConfig"})}function ln(e){return Q()?ur(e):St({method:"setUserConfig",data:e})}function Yt(){return Q()?cn():St({method:"getUserConfig"})}function Mn(){return Q()?_t():St({method:"getLocalConfig"})}function Br(e){return Q()?Dt(e):St({method:"setLocalConfig",data:e})}function Iv(e){return Q()?$v(e):St({method:"setBuildinConfig",data:e})}async function ze(e){if(e.text){let n=X0(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(Q()||je()){if(e.translateService&&!nd.includes(e.translateService))return Promise.resolve("auto");let r=iv(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await St({method:"detectLanguage",data:e});return Promise.resolve(t)}function Fv(){return St({method:"detectTabLanguage"})}async function vd(e){let t=await ze({text:e,pageLangs:["en"]});try{if(Q()||je()){let n=e.substring(0,200);t=await oi.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function hv(e){let t=new CustomEvent(po,{detail:e});if(document.dispatchEvent(t),Q())return;hd().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function Bv(e){return Q()?od(e):St({method:"queryParagraphCache",data:e})}async function Ov(e){if(Q()){await id(e);return}return St({method:"setParagraphCache",data:e})}async function Nv(){if(Q())return Promise.resolve();await St({method:"mockRequest"})}function Aa(e=!1,t=""){return document.querySelector(`meta[name=${P}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):Q()?(j.runtime.openOptionsPage(e,t),Promise.resolve()):St({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Cd(e=""){return Q()||je()?Te().OPTIONS_URL:j.runtime.getURL("options.html")}function Uv(e=""){return j&&j.runtime&&j.runtime.getURL?j.runtime.getURL("options.html"):""}function xd(e=!1){return Q()?(j.extra.openAboutPage(e),Promise.resolve()):St({method:"openAboutPage"})}function ka(e){return Q()?(j.extra.openInTab(e),Promise.resolve()):St({method:"openInTab",data:e})}function jv(e=!1){return Q()?(j.extra.openEbookViewerPage(e),Promise.resolve()):St({method:"openEbookViewerPage"})}function Hv(e=!1){return Q()?(j.extra.openEbookBuilderPage(e),Promise.resolve()):St({method:"openEbookBuilderPage"})}function qv(e){je()}function Fs(e=!1,t){return Q()?(j.extra.openPdfViewerPage(e),Promise.resolve()):St({method:"openPdfViewerPage",data:{url:t}})}function zv(e=!1){return Q()?(j.extra.openSubtitleBuilderPage(e),Promise.resolve()):St({method:"openSubtitleBuilderPage"})}function Ll(e){return Q()?Promise.resolve():St({method:"setBadge",data:{text:e}})}function Wv(){return Q()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):St({method:"autoSyncLatestConfig"})}function Td(e,t=!1){return Q()?j.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function Vv(e,t){return Q()||Se.MOCK==="1"?_i.getDelay(e,t):St({method:"getDelay",data:{key:e,options:t}})}async function Kv(){return Q()?!1:St({method:"getIsSupportIsOnToolbar"})}async function Gv(){return Q()?!1:St({method:"getIsOnToolbar"})}async function c4(){if(!Q())return St({method:"updateVideoSubtitleStatus"})}function Ml({targetLanguage:e,text:t}){Q()||St({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Pl(){Q()||St({method:"updateImageMenu"})}var Yv={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(y.length>t){let v=[];Zf(y,t,v);for(let C=0;C0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&Zf(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:h.i18n?.[r]?.name||h.name,value:h.id}))?.filter(h=>h.label&&h.value)||[];if(y.length>0){let h=[{label:s.enableAIContext?"aiAssistant.commonContext":"aiAssistant.common",value:"common"}];y.length>1&&h.push({label:"aiAssistant.auto",value:"auto"});let v={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:C_([...h,...y,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(v),o.props=[v]}}let f=[],b=[];if(l||m==="pro"&&(c=!1),p.length>0){p.forEach(h=>{g.length>0&&h.providers&&h.providers.length>0&&!h.providers.includes(m)||(h.optional?b.push(h):f.push(h))});let y=b.concat(f).filter(h=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(h.name,s.model,h.required)));if(y.length>0){for(let h of y)if(!s[h.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:m,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:f}}var Ds=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=kt(u),c=Object.keys($r);t!=="translationService"&&c.unshift("inherit");let m=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...m].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&je()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let f=$r[p];e.config.translationServices[p]?.type=="custom-ai"&&(f=ks);let b=Jf(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||g(f,p)?b:null}).filter(p=>!!p);function g(p,f){let b=!!p.canary,y=!!p.alpha,h=!!p.beta;return f===e[t]||b&&o||y&&(a||o)||h&&(i||a||o)?!0:!y&&!h&&!b}};function Ls(e,t,n){return Ds(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:Qf(r.config,n))}function Qf(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function Ms(e,t,n="en",r){return Ds(e,t,n).find(o=>o.id===r)}function Sl(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function dv(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function nd(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Za.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function C_(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}function x_(e,t){let n=lv(e,t),r="",a="";for(let o of n)o.wasAdded?a+=o.character:o.wasRemoved||(i(),r+=o.character);return i(),r;function i(){!a.trim()||r.trim().endsWith("{{")||r.trim().endsWith("<")?(r+=a,a=""):(r+=`
${a}
`,a="")}}function rd(e,t){return e?`
+
${x_(t,e)}
+
${t}
`:t}function Ps(e){let t=location.search.includes(g0);if(!e)return{queryEnable:t};let n=e.enableContextDiffPreview;return!t&&!n?null:{queryEnable:t,configEnable:n}}var _s=[],$Y=1e3*3600*24;async function wl(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function ad(e){let t=`${P}-${e.service}@${e.from}->${e.to}`;return await S_(t,{...e,createAt:new Date().getTime()})}async function id(e){let t=xr(e.originalText),n=`${P}-${e.service}@${e.from}->${e.to}`;return await T_(n,t)}async function T_(e,t){let n=await wl(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function S_(e,t){let n=await wl(e);return(await Xf()).includes(e)||await w_(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function w_(e){let t="cache_list",n=await wl(P+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),_s.push(e)},a.onerror=i=>{n.close()}}async function Xf(){if(_s&&_s.length>0)return _s;let e=await wl(P+"-cacheList","cache_list");return _s=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),_s}async function od(){try{let e=[];(await Xf()).forEach(r=>{e.push(E_(r))});let n=await Promise.all(e);return Tl(n.reduce((r,a)=>r+a,0))}catch{return Tl(0)}}async function E_(e){let t=await wl(e),r=[...t.objectStoreNames].reduce((o,s)=>{let u=A_(t,s);return o.push(u),o},[]),a=await Promise.all(r);return t.close(),a.reduce((o,s)=>o+s,0)}async function A_(e,t){return await new Promise((n,r)=>{try{if(e==null)return r();let a=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=o=>{try{let s=i.result;if(s){let u=s.value,l=JSON.stringify(u);a+=l.length,s.continue()}else n(a)}catch(s){r(s)}},i.onerror=o=>r("error in "+t+": "+o)}catch(a){r(a)}})}async function mv(){try{let t=(await Xf()).map(r=>k_(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function k_(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var sd="Original";function st(){return sd}function Qn(e){sd=e,pv(sd);let t=new CustomEvent(en,{detail:JSON.stringify({type:"updatePageStatus",payload:sd})});document.dispatchEvent(t)}var gv="Original";function Rs(){return gv}function _r(e,t){if(t)return;gv=e;let n=new CustomEvent(ju,{detail:e});document.dispatchEvent(n)}var hv="auto",ud="auto",fv="auto";function bv(e){hv=e}function Tr(e){ud=e}function Lt(){return ud!=="auto"?ud:fv!=="auto"?fv:hv}function ld(){return ud}var El=new Map,Sa=class{fromType;logger;constructor(t,n=!1){this.logger=new Cl,n&&this.logger.setLevel("debug"),this.fromType=t,El.has(t)||(El.set(t,new Map),j.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let m=t4(s),{type:g,name:p}=m;if(g!==t)return!1;let f=t4(o),y=El.get(g).get(p);if(!y)return this.logger.debug(`no message handler for ${g}:${s}, but it's ok`),!1;let{messageHandler:h,sync:v}=y,C={type:t,name:f.name,id:u,url:l,active:c};if(v){try{let x=h(r.payload,C);i({ok:!0,data:x})}catch(x){i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.details,errorStatus:x.status})}return!1}else return h(r.payload,C).then(x=>{i({ok:!0,data:x})}).catch(x=>{i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.message,errorStatus:x.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=El.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new e4(`${i}:${t}`,this.logger);return El.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},e4=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=t4(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await j.runtime.sendMessage(o);return yv(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await j.tabs.sendMessage(i,o);return yv(o,s,this.logger)}}};function yv(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new z(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new z("noResponse","Unknown error")}function t4(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Do(e){return e?.id?.endsWith("pdfWebPage")||!1}function Lo(e){try{if(!e||!Do(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}function n4(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function cd(e){return r4(JSON.stringify(e))}async function r4(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var Rr,i4=0,dd=!1,Al="initial",o4=!1,vv="",Cv,xv,s4=!1,a4=new Map;async function Is(e,t,n,r){if(s4=!1,xv=e.sourceProgram,Cv=e.specialAiAssistant,r!=null&&o4&&Rr||Rr&&vv==n&&!n.trim())return;Al="initial",Rr=void 0,o4=r||!1;let a=e.rule.bodyRule;if(dd=!1,!n||!a||!e.isPro||(i4=(a.contextTimeout||0)/100,i4<=0))return;let i=e.config.translationServices?.[t];if(i?.extends?.includes("ai")&&(dd=i.enableAIContext||!1,!!dd&&e.user?.token)){Al="requesting";try{let o=await r4(n);if(a4.has(o)){Rr=a4.get(o);return}let s=await X({url:lt+"transai/summary-context",method:"POST",body:JSON.stringify({target:"Simplified Chinese",source:"English",body:n}),headers:{"Content-Type":"application/json",token:e.user.token}});vv=n,Rr={theme:s.theme,termsRaw:s.terms,terms:D_(s.terms)},a4.set(o,Rr)}catch{}finally{Al="finished"}k.debug("requestTermsByContext contextTerms",Rr)}}function Tv(){o4||(Al="initial",Rr=void 0)}function Sv(){s4=!0}function md(){return Cv?null:{contextTerms:Rr,used:s4,sourceProgram:xv}}async function wv(){if(!(!dd||Al=="initial")){for(let e=0;ee.includes(n)):[]}function D_(e){let t=[];return e.split(` +`).forEach(n=>{let r=[n];n.split(":").length==2?r=n.split(":").map(a=>a.trim()):n.split("**").length==3&&(r=n.split("**").slice(1)),r?.[0]&&(r[0]=r[0].replace(/\*\*/ig,"").replace("- ","").trim()),r?.[1]&&(r[1]=r[1].replace("- ","").trim()),r[0]?.trim()&&t.push(r[0])}),t}var We={},wa=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return We.getIsDulSubtitle();if(n==="getPageStatus")return st();n==="updateContextState"&&await We.updateContextState(r);let a=await We.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await We.translateTheWholePage(r),rt(Dr,i);else if(n==="translateTheMainPage")await We.translateTheMainPage(r),rt(Dr,i);else if(n==="translateToThePageEndImmediately")await We.translateToThePageEndImmediately(r),rt(Dr,i);else if(n==="toggleTranslateManga")await We.toggleTranslateManga(),rt(Dr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Do(a?.rule)){let s=Lo(a.rule);Fs(!0,s||o);return}await We.toggleTranslatePage(r),rt(Dr,i)}else if(n==="toggleTranslateTheWholePage")await We.toggleTranslateTheWholePage(r),rt(Dr,i);else if(n==="toggleTranslateTheMainPage")await We.toggleTranslateTheMainPage(r),rt(Dr,i);else if(n==="toggleOnlyTransation")await We.ensureSwitchTranslationMode(r),rt(Dr,i);else if(n=="toggleEnableEditTranslation")We.toggleEnableEditTranslation();else if(n==="translatePage")await We.translatePage(a,r),rt(Dr,i);else if(n==="toggleTranslationMask")await We.toggleTranslationMask(r);else if(n==="restorePage")We.restorePage();else if(n==="retryFailedParagraphs")We.retryFailedParagraphs();else if(n=="change_translate_service")We.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await We.switchTranslationMode(r.mode),await We.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")We.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(e0,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await We.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Fu,{detail:r}));else if(n==="translateWithOpenAI")await We.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await We.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await We.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await We.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await We.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await We.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await We.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await We.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await We.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Tt()||await We.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Tt())return JSON.stringify(a);await tt(5e3)}else if(n==="inputSelectedTextTranslate")await We.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return We.popupEventReport(a,r);if(n==="updateFloatBallEnable")return We.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(go,{detail:{type:"webReport"}})):n===Ou&&await We.translateSelectImage(a,r)}};function Av(e){Object.assign(We,e)}function kv(e){Object.assign(We,e)}function Dv(e){Object.assign(We,e)}var L_=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return st();if(n==="getCurrentPageLanguage"){let a=Lt();return We.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Tr(r),Lt();if(n==="getContextString"){let a=We.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=We.getPureGlobalContext();return Lo(a?.rule)}else if(n=="getAIContextInfo")return md()}},gd,pd;function Lv(){let e=fd();Tt()||M_(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function fd(){return gd||(gd=new Sa("content_script",!1).getConnection("main",wa),gd)}function M_(){return pd||(pd=new Sa("content_script",!1).getConnection("main_sync",L_,{sync:!0}),pd)}var kl=new Map;function Mv(){document.addEventListener(L2,e=>{let t=e;if(t&&t.detail){let n;try{n=JSON.parse(t.detail),kl.has(n.id)&&(n.ok?kl.get(n.id)(null,n.data):kl.get(n.id)(new Error(n.errorMessage),null),kl.delete(n.id))}catch{}}})}function hd(e){let t=P_(64),n=new CustomEvent(A2,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{kl.set(t,(i,o)=>{i?a(i):r(o)})})}function P_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await X({url:bd,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function __(e,t){return Math.floor(Math.random()*(t-e+1))+e}var R_=30,l4="RATE_LIMITER_TICKS",_i=class e{static strictTicks={};static clearStrictTicks(){Yr(l4,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Mo(l4)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Yr(l4,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=__(4,R_);await tt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function St(e){return await fd().sendMessage("background:main",e)}function X(e){return zc()?hd({method:"request",data:e}):Q()||qc()?(e.fetchPolyfill=globalThis.GM_fetch,Br(e)):St({method:"fetch",data:e})}function Pv(e){return Q()?Promise.resolve():St({method:"reportOptionsPageView",data:e})}function Ir(){return Q()?Ye():St({method:"getConfig"})}function ln(e){return Q()?lr(e):St({method:"setUserConfig",data:e})}function Yt(){return Q()?cn():St({method:"getUserConfig"})}function Mn(){return Q()?_t():St({method:"getLocalConfig"})}function Fr(e){return Q()?Dt(e):St({method:"setLocalConfig",data:e})}function _v(e){return Q()?Kv(e):St({method:"setBuildinConfig",data:e})}async function Ge(e){if(e.text){let n=Q0(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(Q()||je()){if(e.translateService&&!td.includes(e.translateService))return Promise.resolve("auto");let r=rv(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await St({method:"detectLanguage",data:e});return Promise.resolve(t)}function Rv(){return St({method:"detectTabLanguage"})}async function yd(e){let t=await Ge({text:e,pageLangs:["en"]});try{if(Q()||je()){let n=e.substring(0,200);t=await ii.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function pv(e){let t=new CustomEvent(po,{detail:e});if(document.dispatchEvent(t),Q())return;fd().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function Iv(e){return Q()?id(e):St({method:"queryParagraphCache",data:e})}async function Fv(e){if(Q()){await ad(e);return}return St({method:"setParagraphCache",data:e})}async function Bv(){if(Q())return Promise.resolve();await St({method:"mockRequest"})}function Ea(e=!1,t=""){return document.querySelector(`meta[name=${P}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):Q()?(j.runtime.openOptionsPage(e,t),Promise.resolve()):St({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function vd(e=""){return Q()||je()?Te().OPTIONS_URL:j.runtime.getURL("options.html")}function Ov(e=""){return j&&j.runtime&&j.runtime.getURL?j.runtime.getURL("options.html"):""}function Cd(e=!1){return Q()?(j.extra.openAboutPage(e),Promise.resolve()):St({method:"openAboutPage"})}function Aa(e){return Q()?(j.extra.openInTab(e),Promise.resolve()):St({method:"openInTab",data:e})}function Nv(e=!1){return Q()?(j.extra.openEbookViewerPage(e),Promise.resolve()):St({method:"openEbookViewerPage"})}function Uv(e=!1){return Q()?(j.extra.openEbookBuilderPage(e),Promise.resolve()):St({method:"openEbookBuilderPage"})}function jv(e){je()}function Fs(e=!1,t){return Q()?(j.extra.openPdfViewerPage(e),Promise.resolve()):St({method:"openPdfViewerPage",data:{url:t}})}function Hv(e=!1){return Q()?(j.extra.openSubtitleBuilderPage(e),Promise.resolve()):St({method:"openSubtitleBuilderPage"})}function Dl(e){return Q()?Promise.resolve():St({method:"setBadge",data:{text:e}})}function qv(){return Q()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):St({method:"autoSyncLatestConfig"})}function xd(e,t=!1){return Q()?j.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function zv(e,t){return Q()||Se.MOCK==="1"?_i.getDelay(e,t):St({method:"getDelay",data:{key:e,options:t}})}async function Wv(){return Q()?!1:St({method:"getIsSupportIsOnToolbar"})}async function Vv(){return Q()?!1:St({method:"getIsOnToolbar"})}async function c4(){if(!Q())return St({method:"updateVideoSubtitleStatus"})}function Ll({targetLanguage:e,text:t}){Q()||St({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ml(){Q()||St({method:"updateImageMenu"})}var Gv={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",theLocalExtensionUpdatePreview:"\u5F53\u524D\u6269\u5C55\u662F\u6700\u65B0\u9884\u89C8\u7248\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5541,7 +5541,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var Zv={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528","aiAssistant.context":"AI\u4E0A\u4E0B\u6587","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",noPermissionForLocalFile:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u672C\u5730\u6587\u4EF6\uFF08\u68C0\u67E5\u662F\u5426\u6388\u6743\u8BBF\u95EE\u672C\u5730\u6587\u4EF6\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u7AD9\u70B9\u7981\u6B62\u63D2\u4EF6\u8BBF\u95EE\u56FE\u7247\uFF0C\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A",onlyProUseProTooltip:"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49","field.enableAIContext":"\u542F\u7528 AI \u667A\u80FD\u4E0A\u4E0B\u6587\u7FFB\u8BD1","description.enableAIContext":"\u4E3A\u4E86\u7FFB\u8BD1\u5F97\u66F4\u51C6\u786E\uFF0C\u7CFB\u7EDF\u4F1A\u5148\u7406\u89E3\u5168\u6587\u5185\u5BB9\u548C\u4E13\u4E1A\u672F\u8BED\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1\u3002\u652F\u6301\u6587\u7AE0\u7C7B\u7F51\u9875\uFF08\u5982\u535A\u5BA2\u3001\u65B0\u95FB\uFF09\uFF0C\u7535\u5B50\u4E66\uFF0CPDF Pro\uFF0C\u53CC\u8BED\u5B57\u5E55\u3002\u6B64\u4E3A\u5B9E\u9A8C\u529F\u80FD\uFF0C\u4EC5<1>Pro \u4F1A\u5458\u53EF\u7528\uFF08\u5F53\u524D\u4EC5\u652F\u6301OpenAI\uFF09",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F","subtitle.noSubtitle":"\u8BE5\u89C6\u9891\u6CA1\u6709\u5B57\u5E55\uFF0C\u65E0\u6CD5\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",applyUseContextTranslate:"\u5F53\u524D\u9875\u9762\u5DF2\u5E94\u7528\u4E0A\u4E0B\u6587\u7FFB\u8BD1",contextDiffPreview:"<1>\u67E5\u770B\u8BD1\u6587\u5BF9\u6BD4","description.enableAIContextTip":"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F00\u542F\u4E0A\u4E0B\u6587\u7FFB\u8BD1\u529F\u80FD\u5C06\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7EA6\u4F1A\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1 (Beta)","mangaQuotaError.solvedTitle":"\u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B/\u56FE\u7247\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9009\u62E9"\u901A\u7528"AI\u4E13\u5BB6\u540E\u624D\u80FD\u5F00\u542F'};var $v={nologin:"\u672A\u767B\u5165",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u8A3B\u518A",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u767B\u51FA",curentPlan:"\u7576\u524D\u8A08\u756B",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u7D04",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u5E6B\u52A9\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5555,7 +5555,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var Jv={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u76EE\u524D\u7DB2\u7AD9\u7981\u6B62\u63D2\u4EF6\u5B58\u53D6\u5716\u7247\uFF0C\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6",onlyProUseProTooltip:"\u6B64\u529F\u80FD\u50C5 Pro \u7528\u6236\u53EF\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u555F\u52D5\u5074\u908A\u6B04\u7FFB\u8B6F","subtitle.noSubtitle":"\u8A72\u5F71\u7247\u6C92\u6709\u5B57\u5E55\uFF0C\u7121\u6CD5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",applyUseContextTranslate:"\u76EE\u524D\u9801\u9762\u5DF2\u5957\u7528\u4E0A\u4E0B\u6587\u7FFB\u8B6F",contextDiffPreview:"<1>\u770B\u8B6F\u6587\u6BD4\u8F03","field.enableAIContext":"\u555F\u7528 AI \u667A\u6167\u4E0A\u4E0B\u6587\u7FFB\u8B6F","description.enableAIContext":"\u70BA\u4E86\u7FFB\u8B6F\u5F97\u66F4\u6E96\u78BA\uFF0C\u7CFB\u7D71\u6703\u5148\u7406\u89E3\u5168\u6587\u5167\u5BB9\u548C\u5C08\u696D\u8853\u8A9E\uFF0C\u7136\u5F8C\u518D\u958B\u59CB\u7FFB\u8B6F\u3002\u652F\u63F4\u6587\u7AE0\u985E\u7DB2\u9801\uFF08\u5982\u90E8\u843D\u683C\u3001\u65B0\u805E\uFF09\uFF0C\u96FB\u5B50\u66F8\uFF0CPDF Pro\uFF0C\u96D9\u8A9E\u5B57\u5E55\u3002\u6B64\u70BA\u5BE6\u9A57\u529F\u80FD\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\uFF08\u76EE\u524D\u50C5\u652F\u63F4OpenAI\uFF09","aiAssistant.commonContext":"\u901A\u7528 (AI\u4E0A\u4E0B\u6587)","aiAssistant.context":"AI\u60C5\u5883","description.enableAIContextTip":"\u6EAB\u99A8\u63D0\u793A\uFF1A\u958B\u555F\u4E0A\u4E0B\u6587\u7FFB\u8B6F\u529F\u80FD\u5C07\u589E\u52A0 Token \u4F7F\u7528\u91CF\uFF0C\u5927\u7D04\u6703\u662F\u666E\u901A\u7528\u91CF\u7684 1-2 \u500D","intro.mangaImageTitle":"Pro \u6F2B\u756B/\u5716\u7247\u7FFB\u8B6F (Beta)",noPermissionForLocalFile:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u672C\u6A5F\u6A94\u6848\uFF08\u6AA2\u67E5\u662F\u5426\u6388\u6B0A\u5B58\u53D6\u672C\u6A5F\u6A94\u6848\uFF09","enableAIContext.aiAssistantDisableTips":'\u6B64\u529F\u80FD\u9700\u8981\u9078\u64C7"\u901A\u7528"AI\u5C08\u5BB6\u5F8C\u624D\u80FD\u958B\u555F\u3002',theLocalExtensionUpdatePreview:"\u76EE\u524D\u64F4\u5145\u662F\u6700\u65B0\u9810\u89BD\u7248\u3002"};var Yv={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5568,20 +5568,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var N_=[{code:"zh-CN",messages:Yv},{code:"zh-TW",messages:Zv},{code:"en",messages:Jv}],Sd=Q()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ri={};for(let e of N_)Ri[e.code]=e.messages;function U_(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=H_(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:P+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let m=n.substring(u+s.length,c),g=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${m}`,`<${l} ${g}>${m}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function Qv(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function j_(e,t,n,r){if(!Ri.hasOwnProperty(t)&&!Ri.hasOwnProperty(n))return e;let a=Qv(Ri,t,e);return a===e&&t!==n&&(a=Qv(Ri,n,e)),U_(a,r)}function H_(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return j_(t,e,"en",n)}function Xv(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function e5(e){return new Date(e).getTime()}var z=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ja.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:d0,2:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:d0,2:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)","field.enableAIContext":"Enable AI Context-Aware Translation","description.enableAIContext":"AI-powered contextual translation for better accuracy. Works with articles, e-books, PDFs, and subtitles. <1>Pro members only (OpenAI)",disableNavTranslate:"Disable sidebar translation",enableNavTranslate:"Enable sidebar translation","subtitle.noSubtitle":"This video has no subtitles and cannot be turned on with bilingual subtitles",applyUseContextTranslate:"Context translation applied",contextDiffPreview:"<1>Translation Comparison",onlyProUseProTooltip:"This feature is only available to Pro users, <1>Upgrade to Pro.","description.enableAIContextTip":"Note: Enabling context translation will use 1-2 times more tokens.","aiAssistant.context":"AI Context","aiAssistant.commonContext":"Generic (AI context)","intro.mangaImageTitle":"Pro Comics/Images Translation (Beta)","mangaQuotaError.solvedTitle":"Comics/Images translation quota is exceeded, you can choose the following ways to solve the problem:","mangaQuotaError.package":'Buy Extra Traffic Pack for Comics/Images Translation',noPermissionForLocalFile:"\u26A0\uFE0F No permission to translate local files at this time (check if access to local files is authorized)","enableAIContext.aiAssistantDisableTips":'This function can be enabled only after selecting the "General" AI expert.',theLocalExtensionUpdatePreview:"The current extension is the latest preview version."};var O_=[{code:"zh-CN",messages:Gv},{code:"zh-TW",messages:$v},{code:"en",messages:Yv}],Td=Q()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","he","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ri={};for(let e of O_)Ri[e.code]=e.messages;function N_(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=j_(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:P+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let m=n.substring(u+s.length,c),g=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${m}`,`<${l} ${g}>${m}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function Zv(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function U_(e,t,n,r){if(!Ri.hasOwnProperty(t)&&!Ri.hasOwnProperty(n))return e;let a=Zv(Ri,t,e);return a===e&&t!==n&&(a=Zv(Ri,n,e)),N_(a,r)}function j_(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return U_(t,e,"en",n)}function Jv(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function Qv(e){return new Date(e).getTime()}var z=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Za.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:c0,2:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:c0,2:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:d0,2:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ja.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:P,href:nb})];d4(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:c0,2:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:$+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Za.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:P,href:eb})];d4(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=ub,i?o.push(r("proQuotaError.trail",{brandId:P,href:ip})):o.push(r("proQuotaError.newPackage",{brandId:P,href:s})),d4(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaImageTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaImageTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=ob,i?o.push(r("proQuotaError.trail",{brandId:P,href:ip})):o.push(r("proQuotaError.newPackage",{brandId:P,href:s})),d4(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:P,href:m0}));else{let m="";u=="AI"?m=ob:m=sb,o?l.push(r("proQuotaError.trail",{brandId:P,href:ip})):l.push(r("proQuotaError.package",{brandId:P,href:m,translationService:u})),d4(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:P,href:d0}));else{let m="";u=="AI"?m=ab:m=ib,o?l.push(r("proQuotaError.trail",{brandId:P,href:ip})):l.push(r("proQuotaError.package",{brandId:P,href:m,translationService:u})),d4(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((m,g)=>`${g+1}. ${m}`).join("
")}`;return r("errorReason",{message:c})}};function d4(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||e5(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:Xv(i,"YYYY-MM-DD HH:mm:ss")}))}function wd(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function t5(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function n5(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function Ed(e){let{mimeType:t,base64:n}=q_(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await rf(r5.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await r5(e);return t}async function r5(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=wd(e.body):r=="urlSearchParams"?a.body=t5(e.body):r=="blob"&&e.body&&(a.body=Ed(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,m=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=m}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let m=c.message||"Unknown Error";throw new z("fetchError",m).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new z("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),m=Object.fromEntries([...l.headers.entries()]),g=l.url;return g||(l.headers.get("X-Final-URL")?g=l.headers.get("X-Final-URL"):g=t),{body:c,headers:m,status:l.status,statusText:l.statusText,url:g}}else if(n==="base64"){let c=await l.blob(),m=new FileReader,g=new Promise((p,f)=>{m.onload=function(){let h=m.result;p(h)},m.onerror=function(){f(m.error)}});return m.readAsDataURL(c),g}else if(n==="stream"){let c="",m;if(l.body&&l.body instanceof ReadableStream)for await(let g of z_(l.body)){let p=new TextDecoder().decode(g);c+=p;let f;for(;(f=c.indexOf(` -`))>=0;){let h=c.slice(0,f).trim();if(c=c.slice(f+1),h.startsWith("event:")||h==="")continue;let y="";if(h.startsWith("data:")&&(y=h.slice(5).trim()),y==="[DONE]")break;let b;try{b=JSON.parse(y??"")}catch(v){k.debug("json error",v);continue}m=b}}return m}}else{let c;try{c=await l.text()}catch(h){k.error("parse response failed",h)}c&&k.error("fail response",c);let m="";c&&(m=c.slice(0,500));let g=m,f=new URL(t).hostname.endsWith(`.${et}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(g="bingAuth:"+m),f&&(m.includes("quota exceeded")&&(g="ProQuota:"+m),m.includes("translation quota reached")&&(g="NewProQuota:"+m)),new z("fetchError",g).initNetWork(l.status)}}async function*z_(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var W_="";function Bs(){return W_||globalThis.navigator.userAgent}function _l(){return Bs().includes("ImtFxiOS")}function a5(){let t=Bs().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function m4(){return Bs().includes("ImtFxAndroid")}function i5(){let e=Bs();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function o5(){let t=Bs().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ii(){let e=Bs();if(_l()||m4()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Ad=function(){return Ad=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,V_()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Rl(e){return e.then(void 0,function(){}),e}function G_(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function Y_(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(g,p){o[g]=o[g]||[],o[g].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(m)u(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function Z_(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Fi(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i+l,g+=p>>>16,p&=65535,g+=a+u,m+=g>>>16,g&=65535,m+=r+s,c+=m>>>16,m&=65535,c+=n+o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Nr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i*l,g+=p>>>16,p&=65535,g+=a*l,m+=g>>>16,g&=65535,g+=i*u,m+=g>>>16,g&=65535,m+=r*l,c+=m>>>16,m&=65535,m+=a*u,c+=m>>>16,m&=65535,m+=i*s,c+=m>>>16,m&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Os(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function wr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Bt(e,t),Nr(e,J_),t[1]=e[0]>>>1,Bt(e,t),Nr(e,Q_),t[1]=e[0]>>>1,Bt(e,t)}var kd=[2277735313,289559509],Dd=[1291169091,658871167],c5=[0,5],X_=[0,1390208809],eR=[0,944331445];function tR(e,t){var n=Z_(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function nR(e){var t;return Ad({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function rR(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function aR(e){return typeof e!="function"}function iR(e,t){var n=Rl(new Promise(function(r){var a=Date.now();s5(e.bind(null,t),function(){for(var i=[],o=0;o=4}function sR(){var e=window,t=navigator;return Er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!S5()}function Pd(){var e=window,t=navigator;return Er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function ea(){var e=window,t=navigator;return Er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function C4(){var e=window,t=e.HTMLElement,n=e.Document;return Er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Il(){var e=window;return rR(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function w5(){var e,t,n=window;return Er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function uR(){var e=window;return Er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function lR(){var e=window;return Er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Fl(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return Er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function cR(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function dR(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function mR(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function x4(){var e=Pd(),t=w5(),n=window,r=navigator,a="connection";return e?Er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?Er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function gR(){return hR()?-4:pR()}function pR(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(fR())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=bR(a),u=s[0],l=s[1],c=Rl(u.then(function(m){return yR(m.getChannelData(0).subarray(n))},function(m){if(m.name==="timeout"||m.name==="suspended")return-3;throw m}));return function(){return l(),c}}function fR(){return ea()&&!C4()&&!lR()}function hR(){return ea()&&Fl()&&Il()}function bR(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,m=0;e.oncomplete=function(f){return s(f.renderedBuffer)};var g=function(){setTimeout(function(){return u(d5("timeout"))},Math.min(r,m+a-Date.now()))},p=function(){try{var f=e.startRendering();switch(x5(f)&&Rl(f),e.state){case"running":m=Date.now(),l&&g();break;case"suspended":document.hidden||c++,l&&c>=t?u(d5("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,m>0&&g())}});return[o,i]}function yR(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function YR(){var e=new Date().getFullYear();return Math.max(Xr(new Date(e,0,1).getTimezoneOffset()),Xr(new Date(e,6,1).getTimezoneOffset()))}function ZR(){try{return!!window.sessionStorage}catch{return!0}}function JR(){try{return!!window.localStorage}catch{return!0}}function QR(){if(!(S5()||sR()))try{return!!window.indexedDB}catch{return!0}}function XR(){return!!window.openDatabase}function eI(){return navigator.cpuClass}function tI(){var e=navigator.platform;return e==="MacIntel"&&ea()&&!C4()?cR()?"iPad":"iPhone":e}function nI(){return navigator.vendor||""}function rI(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tm.length*.6}),s.sort(),[2,s]}})})}function sI(){return ea()||x4()}function uI(e){var t;return Jr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Qr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},g5(r),u=0;u`${g+1}. ${m}`).join("
")}`;return r("errorReason",{message:c})}};function d4(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||Qv(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:Jv(i,"YYYY-MM-DD HH:mm:ss")}))}function Sd(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function Xv(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function e5(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function wd(e){let{mimeType:t,base64:n}=H_(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await rf(t5.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await t5(e);return t}async function t5(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Sd(e.body):r=="urlSearchParams"?a.body=Xv(e.body):r=="blob"&&e.body&&(a.body=wd(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,m=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=m}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let m=c.message||"Unknown Error";throw new z("fetchError",m).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new z("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),m=Object.fromEntries([...l.headers.entries()]),g=l.url;return g||(l.headers.get("X-Final-URL")?g=l.headers.get("X-Final-URL"):g=t),{body:c,headers:m,status:l.status,statusText:l.statusText,url:g}}else if(n==="base64"){let c=await l.blob(),m=new FileReader,g=new Promise((p,f)=>{m.onload=function(){let b=m.result;p(b)},m.onerror=function(){f(m.error)}});return m.readAsDataURL(c),g}else if(n==="stream"){let c="",m;if(l.body&&l.body instanceof ReadableStream)for await(let g of q_(l.body)){let p=new TextDecoder().decode(g);c+=p;let f;for(;(f=c.indexOf(` +`))>=0;){let b=c.slice(0,f).trim();if(c=c.slice(f+1),b.startsWith("event:")||b==="")continue;let y="";if(b.startsWith("data:")&&(y=b.slice(5).trim()),y==="[DONE]")break;let h;try{h=JSON.parse(y??"")}catch(v){k.debug("json error",v);continue}m=h}}return m}}else{let c;try{c=await l.text()}catch(b){k.error("parse response failed",b)}c&&k.error("fail response",c);let m="";c&&(m=c.slice(0,500));let g=m,f=new URL(t).hostname.endsWith(`.${et}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(g="bingAuth:"+m),f&&(m.includes("quota exceeded")&&(g="ProQuota:"+m),m.includes("translation quota reached")&&(g="NewProQuota:"+m)),new z("fetchError",g).initNetWork(l.status)}}async function*q_(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var z_="";function Bs(){return z_||globalThis.navigator.userAgent}function Pl(){return Bs().includes("ImtFxiOS")}function n5(){let t=Bs().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function m4(){return Bs().includes("ImtFxAndroid")}function r5(){let e=Bs();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function a5(){let t=Bs().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Ii(){let e=Bs();if(Pl()||m4()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Ed=function(){return Ed=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,W_()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function _l(e){return e.then(void 0,function(){}),e}function K_(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function $_(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(g,p){o[g]=o[g]||[],o[g].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(m)u(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function Y_(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Fi(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i+l,g+=p>>>16,p&=65535,g+=a+u,m+=g>>>16,g&=65535,m+=r+s,c+=m>>>16,m&=65535,c+=n+o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Or(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i*l,g+=p>>>16,p&=65535,g+=a*l,m+=g>>>16,g&=65535,g+=i*u,m+=g>>>16,g&=65535,m+=r*l,c+=m>>>16,m&=65535,m+=a*u,c+=m>>>16,m&=65535,m+=i*s,c+=m>>>16,m&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Os(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function Sr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Bt(e,t),Or(e,Z_),t[1]=e[0]>>>1,Bt(e,t),Or(e,J_),t[1]=e[0]>>>1,Bt(e,t)}var Ad=[2277735313,289559509],kd=[1291169091,658871167],u5=[0,5],Q_=[0,1390208809],X_=[0,944331445];function eR(e,t){var n=Y_(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function tR(e){var t;return Ed({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function nR(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function rR(e){return typeof e!="function"}function aR(e,t){var n=_l(new Promise(function(r){var a=Date.now();i5(e.bind(null,t),function(){for(var i=[],o=0;o=4}function oR(){var e=window,t=navigator;return wr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!x5()}function Md(){var e=window,t=navigator;return wr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Xr(){var e=window,t=navigator;return wr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function C4(){var e=window,t=e.HTMLElement,n=e.Document;return wr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Rl(){var e=window;return nR(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function T5(){var e,t,n=window;return wr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function sR(){var e=window;return wr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function uR(){var e=window;return wr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Il(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return wr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function lR(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return wr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function cR(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function dR(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function x4(){var e=Md(),t=T5(),n=window,r=navigator,a="connection";return e?wr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?wr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function mR(){return fR()?-4:gR()}function gR(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(pR())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=hR(a),u=s[0],l=s[1],c=_l(u.then(function(m){return bR(m.getChannelData(0).subarray(n))},function(m){if(m.name==="timeout"||m.name==="suspended")return-3;throw m}));return function(){return l(),c}}function pR(){return Xr()&&!C4()&&!uR()}function fR(){return Xr()&&Il()&&Rl()}function hR(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,m=0;e.oncomplete=function(f){return s(f.renderedBuffer)};var g=function(){setTimeout(function(){return u(l5("timeout"))},Math.min(r,m+a-Date.now()))},p=function(){try{var f=e.startRendering();switch(v5(f)&&_l(f),e.state){case"running":m=Date.now(),l&&g();break;case"suspended":document.hidden||c++,l&&c>=t?u(l5("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,m>0&&g())}});return[o,i]}function bR(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function $R(){var e=new Date().getFullYear();return Math.max(Qr(new Date(e,0,1).getTimezoneOffset()),Qr(new Date(e,6,1).getTimezoneOffset()))}function YR(){try{return!!window.sessionStorage}catch{return!0}}function ZR(){try{return!!window.localStorage}catch{return!0}}function JR(){if(!(x5()||oR()))try{return!!window.indexedDB}catch{return!0}}function QR(){return!!window.openDatabase}function XR(){return navigator.cpuClass}function eI(){var e=navigator.platform;return e==="MacIntel"&&Xr()&&!C4()?lR()?"iPad":"iPhone":e}function tI(){return navigator.vendor||""}function nI(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tm.length*.6}),s.sort(),[2,s]}})})}function oI(){return Xr()||x4()}function sI(e){var t;return Zr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Jr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},d5(r),u=0;u')}function SI(){return navigator.pdfViewerEnabled}function wI(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function EI(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(AI())return-3;try{return e.canMakePayments()?1:0}catch(t){return kI(t)}}var AI=xR;function kI(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function DI(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var A5=-1,k5=-2,LI=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),MI=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),PI=["FRAGMENT_SHADER","VERTEX_SHADER"],_I=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],D5="WEBGL_debug_renderer_info",RI="WEBGL_polygon_mode";function II(e){var t,n,r,a,i,o,s=e.cache,u=L5(s);if(!u)return A5;if(!P5(u))return k5;var l=M5()?null:u.getExtension(D5);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function FI(e){var t=e.cache,n=L5(t);if(!n)return A5;if(!P5(n))return k5;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,m=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(C5,"/npm-monitoring"),!0),e.send()}catch{}}function QI(e){var t;return e===void 0&&(e={}),Jr(this,void 0,void 0,function(){var n,r,a;return Qr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&JI(),n=e.delayFallback,r=e.debug,[4,YI(n)];case 1:return i.sent(),a=HI({cache:{},debug:r}),[2,ZI(a,r)]}})})}var T4={load:QI,hashComponents:_5,componentsToDebugString:GI};async function Bi(){let e=await Pt("fakeUserId","");e||(e=await ko("fakeUserId",""),e&&await Ye("fakeUserId",e));let t=new Date,n=await Pt("installedAt","");return n||(n=await ko("installedAt",""),n&&await Ye("installedAt",n)),e?n||(n=new Date(0).toISOString(),await Ye("installedAt",n)):(e=await eF(64),await Ye("fakeUserId",e)),n||(n=t.toISOString(),await Ye("installedAt",n)),{fakeUserId:e,installedAt:n}}var XI=10;async function js(){let e=await Pt("userTag","");if(e)return e;let{fakeUserId:t}=await Bi(),r=t.charCodeAt(0)%XI;return e=String.fromCharCode(r+"a".charCodeAt(0)),await Ye("userTag",e),e}function Bl(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):tF(i,e)}catch{return Bl(64)}}function tF(e,t=32){let n="";for(let a=0;a{}),Fd)}async function F5(e,t){try{let n=Te(),r=n.INSTALL_FROM==="firefox_store";if(Ii()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=Q(),o=Tt(),s=n.PROD==="1",u=Hn(),l=new Date,{fakeUserId:c,installedAt:m}=await Bi(),g=await js(),p=await Hs(),f=await qs(),h=new Date(m),y=Oi(h),b=Oi(l),v=y===b,C=24*60*60*1e3,x=l.getTime()-h.getTime()<7*C,T=l.getTime()-h.getTime()<30*C,w=l.getTime()-h.getTime()<365*C,S=Zu(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=Ts.parse(A),M=e.map(R=>{let _=R.params||{};if(D.os&&(_.os_name=D.os.name||"unknown",_.os_version=D.os.version||"unknown",_.os_version_name=D.os.versionName||"unknown"),D.browser){_.browser_name=D.browser.name||"unknown",_.browser_version=D.browser.version||"unknown";let B=Ii();B&&(_.browser_name=B.name,_.browser_version=B.version)}if(D.platform&&(_.platform_type=D.platform.type||"unknown"),D.engine&&(_.engine_name=D.engine.name||"unknown",_.engine_version=D.engine.version||"unknown"),u&&(_.version=u),n.INSTALL_FROM&&(_.install_from=n.INSTALL_FROM),y){_.install_day=_d(h);let B=Id(h);_.install_week=`${B.year}${B.week}`}return _.userscript=i.toString(),v?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=x?"1":"0",_.is_new_user_this_month=T?"1":"0",_.is_new_user_this_year=w?"1":"0",o?_.main_frame=0:_.main_frame=1,g&&(_.ab_tag=g),p&&(_.ab_group=p),_.campaign=f||"none",{...R,params:_}});S.forEach(async R=>{let _=await Ol({responseType:"text",url:R,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&aF(c,M)}catch{}}async function rF(e){return await nF().sendMessage("background:main",e)}function Ol(e){return Wc()?bd({method:"request",data:e}):Q()||zc()?(e.fetchPolyfill=globalThis.GM_fetch,Or(e)):rF({method:"fetch",data:e})}function aF(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Rd(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Ol({url:Ju,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var Bd={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function lI(){for(var e=0,t=["rec2020","p3","srgb"];e')}function TI(){return navigator.pdfViewerEnabled}function SI(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function wI(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(EI())return-3;try{return e.canMakePayments()?1:0}catch(t){return AI(t)}}var EI=CR;function AI(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function kI(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var w5=-1,E5=-2,DI=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),LI=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),MI=["FRAGMENT_SHADER","VERTEX_SHADER"],PI=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],A5="WEBGL_debug_renderer_info",_I="WEBGL_polygon_mode";function RI(e){var t,n,r,a,i,o,s=e.cache,u=k5(s);if(!u)return w5;if(!L5(u))return E5;var l=D5()?null:u.getExtension(A5);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function II(e){var t=e.cache,n=k5(t);if(!n)return w5;if(!L5(n))return E5;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,m=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(y5,"/npm-monitoring"),!0),e.send()}catch{}}function JI(e){var t;return e===void 0&&(e={}),Zr(this,void 0,void 0,function(){var n,r,a;return Jr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&ZI(),n=e.delayFallback,r=e.debug,[4,$I(n)];case 1:return i.sent(),a=jI({cache:{},debug:r}),[2,YI(a,r)]}})})}var T4={load:JI,hashComponents:M5,componentsToDebugString:KI};async function Bi(){let e=await Pt("fakeUserId","");e||(e=await ko("fakeUserId",""),e&&await rt("fakeUserId",e));let t=new Date,n=await Pt("installedAt","");return n||(n=await ko("installedAt",""),n&&await rt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await rt("installedAt",n)):(e=await XI(64),await rt("fakeUserId",e)),n||(n=t.toISOString(),await rt("installedAt",n)),{fakeUserId:e,installedAt:n}}var QI=10;async function js(){let e=await Pt("userTag","");if(e)return e;let{fakeUserId:t}=await Bi(),r=t.charCodeAt(0)%QI;return e=String.fromCharCode(r+"a".charCodeAt(0)),await rt("userTag",e),e}function Fl(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):eF(i,e)}catch{return Fl(64)}}function eF(e,t=32){let n="";for(let a=0;a{}),Id)}async function R5(e,t){try{let n=Te(),r=n.INSTALL_FROM==="firefox_store";if(Ii()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=Q(),o=Tt(),s=n.PROD==="1",u=jn(),l=new Date,{fakeUserId:c,installedAt:m}=await Bi(),g=await js(),p=await Hs(),f=await qs(),b=new Date(m),y=Oi(b),h=Oi(l),v=y===h,C=24*60*60*1e3,x=l.getTime()-b.getTime()<7*C,T=l.getTime()-b.getTime()<30*C,S=l.getTime()-b.getTime()<365*C,w=Yu(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=Ts.parse(A),M=e.map(R=>{let _=R.params||{};if(D.os&&(_.os_name=D.os.name||"unknown",_.os_version=D.os.version||"unknown",_.os_version_name=D.os.versionName||"unknown"),D.browser){_.browser_name=D.browser.name||"unknown",_.browser_version=D.browser.version||"unknown";let B=Ii();B&&(_.browser_name=B.name,_.browser_version=B.version)}if(D.platform&&(_.platform_type=D.platform.type||"unknown"),D.engine&&(_.engine_name=D.engine.name||"unknown",_.engine_version=D.engine.version||"unknown"),u&&(_.version=u),n.INSTALL_FROM&&(_.install_from=n.INSTALL_FROM),y){_.install_day=Pd(b);let B=Rd(b);_.install_week=`${B.year}${B.week}`}return _.userscript=i.toString(),v?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=x?"1":"0",_.is_new_user_this_month=T?"1":"0",_.is_new_user_this_year=S?"1":"0",o?_.main_frame=0:_.main_frame=1,g&&(_.ab_tag=g),p&&(_.ab_group=p),_.campaign=f||"none",{...R,params:_}});w.forEach(async R=>{let _=await Bl({responseType:"text",url:R,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&rF(c,M)}catch{}}async function nF(e){return await tF().sendMessage("background:main",e)}function Bl(e){return zc()?hd({method:"request",data:e}):Q()||qc()?(e.fetchPolyfill=globalThis.GM_fetch,Br(e)):nF({method:"fetch",data:e})}function rF(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=_d(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Bl({url:Zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var Fd={releaseVersion:"1.12.4",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,isPreview:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]","https://www.sukima.me[Sukima][chrome,firefox,safari,userscript]","https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS]","https://piccoma.com[Piccoma][chrome,firefox,safari,userscript]","https://www.mangasuika.com/[Mangasuika][chrome,firefox,safari]","https://www.firemanga.com/[Firemanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]","https://www.docubay.com/[Docubay]","https://app.hubspot.com/[Hubspot]","https://rumble.com/[Rumble]","https://www.wsj.com/[WSJ]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableContextDiffPreview:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.12.5",ispVersion:"1.0.7",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],joinJobs:["\u524D\u7AEF\u5F00\u53D1\u5DE5\u7A0B\u5E08","\u524D\u7AEF\u5F00\u53D1\u5B9E\u4E60\u751F"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"],enableRichTranslate:!1},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5836,19 +5836,19 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2.5-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],placeholderDelimiters:["{{","}}","code"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],enableSkipBuildContainer:!1,glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["markerow8","span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,enableMouseHover:!0,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},"imageRule.add_v.[1.12.1]":{enableImageTranslation:"pro"},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break:break-word; user-select:text;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`,"[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;}"],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:200,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,matchNodeRule:{pre:{minNum:1},p:{minNum:4},article:{minNum:1,maxNum:1}},minTextLength:800,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"],contextTimeout:4e3,contextReqLength:2e4},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,advanceTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG","math-renderer",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code","cds-code-snippet"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{},"preTranslateLimiter.add_v.[1.12.1]":{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]",".breadcrumbs"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button","p span button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],matches:["https://*.immersivetranslate.com/subtitle*","https://*.immersivetranslate.com/download-subtitle*","http://localhost:38001/download-subtitle*"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,isInjectMeta:!0,isInjectVersion:!0,allowInnerInvoke:!0,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},"bodyRule.add_v.[1.11.7]":{enable:!0,bodySelector:"#viewerContainer",articleSelector:"#viewerContainer"},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}",".immersive-translate-target-inner div div {border:unset!important;padding:0!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:100,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net","www.asuswrt-merlin.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3,buildContainerSelectors:["pre"]},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,"injectedCss.add":[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*","https://x.com/*/tos*","https://x.com/*/privacy*"],switchTranslateRestart:!0,enableRichTranslate:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']","[role=dialog]","[class=' css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']","[class='css-175oi2r r-1awozwy r-13awgt0 r-1rnoaur r-13qz1uu']","[class='css-175oi2r r-kemksi r-1kqtdi0 r-1q9bdsx r-1phboty r-rs99b7 r-1udh08x r-13qz1uu']","[class='css-175oi2r r-uef6q5 r-dnmrzs r-97e31f r-13qz1uu r-13awgt0 r-dgnwoc r-1me0s30 r-t3sqpr r-1dqxon3']"],excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']","[aria-label=Grok] button","[aria-label=Grok] [style*='rgb(89, 93, 98)']","[aria-label=Grok] .r-uho16t","time","[data-testid=User-Name]","[data-testid=socialContext]","[data-testid=tweet-text-show-more-link]"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText'],[style*='-webkit-line-clamp']":"-webkit-line-clamp: unset;","[role=dialog] [style*='webkit-line-clamp']":"-webkit-line-clamp: unset;"},"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!1,"isTransformPreTagNewLine.add_v.[1.12.1]":!0,advanceTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],advanceMergeConfig:[{condition:"translationMode==translation",advanceConfig:{generalRule:{likePreSelectors:[]}}}],ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",enableTriggerTranslate:!0,loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;text-align: right;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",excludeMatches:["https://news.ycombinator.com/submit","https://news.ycombinator.com/newsfaq.html","https://news.ycombinator.com/newsguidelines.html","https://news.ycombinator.com/security.html"],selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],"excludeSelectors.add":["shreddit-comment-action-row","faceplate-hovercard"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1},"bodyRule.add":{enable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text","[source=re_reddit] div > a.text-neutral-content-weak"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/*/*/settings/*","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)",'[data-testid="listitem-title-link"]',"#repo-content-turbo-frame p","#repo-content-turbo-frame h4",'[aria-label="card content"] .flex-column > div:nth-child(2)'],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*","https://www.facebook.com/ads/library/*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-container-id",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
","injectedCss.add":"article ._aagw {position:unset !important;}"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt",".gsh_csp"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,"injectedCss.add":[".oovtQ,.MCAGUe,.To2ZZb.DbQnIe {height: unset;}","h4,.IBr9hb,.gPFEn{-webkit-line-clamp: unset!important;}",".cp7Yvc > h2 {display: block;}"],excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d","time",".bInasb"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ",".GssDD,.xpAva,.oHwUF,.D1eg_","[id=CenterRegion]","[id=RibbonRoot]","[role=toolbar]",".qQbyL,.bkYAr,.gpJ9q,.threeColumnCirclePersonaDivWidth","[class='_rWRU Ejrkd qq2gS D8iyG']"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*","web.telegram.org/k/*","web.telegram.org/k/"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill",".QuoteInBody-inlineButton"],"extraBlockSelectors.remove":["button"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text",".m-feed"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function tr(e){if(e.beta)return!1;if(je()&&e.spVersion)return Da(nr(),e.spVersion);if(i5()&&e.gspVersion){let t=o5();if(t)return Da(t,e.gspVersion)}if(_l()&&e.ispVersion){let t=a5();if(t)return Da(t,e.ispVersion)}return!1}function Da(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Nl(e){e.message?.indexOf("token invalid")>=0&&(nt.remove(pt),Pl())}async function lr(e){let n=(await Ze())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),oF(a.toString())}function oF(e){try{je()?ka(e):globalThis.open(e)}catch{globalThis.open(e)}}function B5(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function O5(e){return kt(e)}function Od(e){return e?e.map(n=>{let r=sF(n),a={url:r?.url||"",name:r?.siteName||""};if(!r?.browserNames)return a;let i=La();return r.browserNames.split(",").includes(i)?a:null}).filter(n=>!!n):[]}function sF(e){let t=/^(https?:\/\/[^[]+)(\[[^\]]+\])(\[[^\]]+\])?$/,n=e.match(t);if(n&&n.length>0){let r=n[1],a=n[2]?.replace("[","")?.replace("]",""),i=n[3]?.replace("[","")?.replace("]","");return{url:r,siteName:a,browserNames:i}}else return null}function Nd(e){return Array.isArray(e)?e:e?[e]:[]}function qn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Zt(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ud(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Ul(e,t){let n={...e};return q5(n,t),uF(n,t),n}function H5(e,t,n){let r={...e};return ta({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),ta({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function uF(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;q5(e,a)}function ta({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=N5(i);if(o=="rich"){if(!a)return r(i,e[i]);let[g,p,f,h]=N5(i);o=g+"."+p,s=f,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Nd(e[i]));let c=t(o);if(c==null){r(o,l);return}let m;if(s=="add_v"){if(!U5(u))return;m=S4(c,l)}else if(s=="remove_v"){if(!U5(u))return;m=j5(c,l)}else s==="add"?m=S4(c,l):s=="remove"&&(m=j5(c,l));if(m){r(o,m);return}Array.isArray(e[o])&&o.startsWith("additional")?m=S4(c,l):m=l,r(o,m)})}function q5(e,t){return ta({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function S4(e,t){let n;if(Array.isArray(e)){let r=Nd(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function N5(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function U5(e){let t=Hn();return e&&Da(t,e)}function j5(e,t){if(Array.isArray(e)){let n=Nd(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var z5="userConfig",jd="userPromptPool",Hd="userObjectPool";async function qd(){let e=await Y5(z5)||{},t=await Mo(jd)||{},n=await Mo(Hd)||{};return lF(e,t,n)}async function W5(e){let{userConfig:t,promptPool:n,objectPool:r}=await w4(e);await $5(z5,t),await Zr(jd,n),await Zr(Hd,r)}function w4(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return V5(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),K5(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function lF(e,t,n){return V5(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),K5(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function V5(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function K5(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ni(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=G5(r);for(let o of i)delete a[o]}),n}function E4(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=G5(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function G5(e){let t=Yr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=ks.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Z5(e,t){return J5(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function J5(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>J5(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,m)=>{c!="generalRule"&&(l[c]=m)}}),ta({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,m)=>{l.generalRule[c]=m}}),pF(l),gF(n,u,l),l=await yF(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Po(){if(Se.PROD==="1")return{};let e={};if(Se.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Se.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Se.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Se.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Se.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Se.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Se.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Se.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Se.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Se.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Se.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Se.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Se.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Se.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Se.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Se.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Se.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Se.DEEPL_PROXY_ENDPOINT),Se.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Se.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Se.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Se.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Se.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Se.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Se.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Se.MOCK==="1"&&(t.translationService="mock"),t}async function _t(){let e=await j.storage.local.get(is);if(e[is]){let t=e[is],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Dt(i),i}else return{}}async function Dt(e){await j.storage.local.set({[is]:e})}async function $v(e){await j.storage.local.set({[r0]:e})}async function X5(){return Se.DEBUG==="1"?void 0:(await j.storage.local.get(r0))[r0]}async function Ws(){await j.storage.local.set({[is]:{}})}async function Vs(){let e=await X5(),n={...jl(),...Bd,buildinConfigUpdatedAt:Se.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function cn(){return qd()}function ur(e){return W5(e)}async function $5(e,t){await j.storage.sync.set({[e]:t})}async function Y5(e){return(await j.storage.sync.get(e))[e]}async function Zr(e,t){await j.storage.local.set({[e]:t})}async function Mo(e){return(await j.storage.local.get(e))[e]}var eC={};function zd(e){return eC[e]}function tC(e,t){eC[e]=t}var cF=async()=>{let e=["zh-CN"];try{e=await j.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>re(r)).find(r=>Sd.find(a=>a===r));return n||"en"},jl=()=>{let e={...Bd,buildinConfigUpdatedAt:Se.BUILD_TIME};return{...e,targetLanguage:xi,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function dF(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function mF(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return xi;let n=await Pt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Q5(l,r[s]))}),ta({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Q5(l,n[s]))}),ta({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function pF(e){try{let t=await Pt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Q5(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function fF(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let m=(e?.translationLanguagePattern?.matches?.length||0)>0,g=await Pt("installedAt",""),p=Number(await ko("translage_page_daily",0)),f=Number(await Pt(Lr,0)),h;f>0&&(Date.now()-f0&&(Date.now()-pr&&(e=t)}return e}function bF(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function yF(e,t){let n=await vF(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=Ul(e[o],t[o]));else if(o==="translationServices")nC(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(Q()||je()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?H5(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(Se.PROD==="0"&&Se.DEV_RULES){let s=JSON.parse(Se.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function vF(){let e={};if(!Q()&&j.commands&&j.commands.getAll){let t=await j.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function rC(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!Z5(a,e))return;let{generalRule:s,translationServices:u,...l}=i;ta({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,m)=>{e[c]=m}}),u&&nC(i,e),s&&(r=Ul(r,s))}),r}var Wd={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.5",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var xF="";function Hn(){return xF||Wd.version}function nr(){return j.runtime.getManifest().version}function _o(e){let t=jl(),n=nr();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function A4(e){return e.replace(//g,">")}var aC=["*://*/*","*","*://*"],oC="immersive-translate-wildcard-placeholder.com";function k4(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>aC.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(aC.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,m=l.port===o;return l.port?c&&m:c}else return SF(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let y=u.split("://");l=y[0],l==="*"&&y.length>1&&(l="*",u="https://"+y[1])}else l="*",u="https://"+u;let m=u.replace(/\*/g,oC),g;try{g=new URL(m)}catch{return k.debug("invalid match pattern",m,"raw match value:",c),!1}let p=g.host,f=g.pathname;f==="/"&&(c.replace("://","").includes("/")||(f="/*"));let h=TF(l+":",iC(p),iC(f));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function iC(e){return e.replaceAll(oC,"*")}function TF(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function dt(e,t){return k4(e,t)!==null}function SF(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var sC=null;if(typeof trustedTypes<"u")try{sC=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var uC=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(uC=!0)});function Vd(){return uC}var cr=sC;function cC(e,t,n,r,a){if(!e)return"";for(let y of r||[])if(t?.querySelector(y))return"";let i=n[0],o=n[n.length-1];if(EF(t,o))return"";i=lC(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let y of n){let b=lC(t,y);if(c+=f(y),u&&b!=u){h(),u=b,l=f(y)||"";continue}u=b,l+=f(y)||""}h();let m=p(c),g=p(t.textContent||"");if(m==g&&t.innerText.split(` -`).filter(y=>!!y.trim()).length>1)return t.innerHTML||"";return s;function p(y){return y.replace(/\s+/g,"")}function f(y){return y instanceof HTMLElement?y.innerText:y?.textContent||""}function h(){let y=p(f(u)),b=p(l);if(y==b){let v=f(u).replace(/ */g,"");if(!c.startsWith(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],"injectedCss.add":[".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],selectorMatches:["app-wos.mat-typography"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span","[data-ta=summary-record-title-link]","[cdxanalyticscategory=wos-recordCard_ExpandAbstract]"],skipTrailTextRegex:"\u4E3A\u4E86\u7ED5\u8FC7\u9AD8\u4EAE\u5BFC\u81F4\u810F\u68C0\u67E5\u8DF3\u8FC7\u4E86",observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"science",matches:"www.science.org","stayOriginalSelectors.add":[".open-in-viewer"],"excludeSelectors.add":[".core-self-citation",".contributors"]},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"},excludeSelectors:[".toolbar__ee8",'[data-test="left-sidebar"]']},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel",".go-Container"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity.ai.2024recap",matches:"https://www.perplexity.ai/2024recap",selectors:["header"]},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*","https://www.perplexity.ai/2024recap"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:["._akbu","[role=list]"],wrapperPrefix:` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".x1lliihq"],enableRichTranslate:!1,"bodyRule.add":{enable:!1}},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}","subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-inner",injectedCss:["#immersive-translate-quick-button-container { height: 32px; margin-top: 15px; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:'[id^="video-controls-video"]',insertBeforeSelector:'[id^="video-cc-video"]',ccEnableSelector:'[id^="video-cc-video"]'}}},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead","[data-testid=masthead-container]"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}}},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],"stayOriginalSelectors.add":[".usa-link"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}",".immersive-translate-target-inner br{display:none;}"],"bodyRule.add":{bodySelector:".search-results-list"},"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0}},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"],"extraBlockSelectors.add":[".hash-link"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"],advanceMergeConfig:[{condition:"platform==safari",advanceConfig:{generalRule:{preTranslateLimiter:{}}}}]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video--player-view > div",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"],isDelay:!0},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:"nebula.tv","excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"[aria-label=Subtitles]",ccEnableSelector:"[aria-label=Subtitles]"},attachRule:{appendSelector:"#video-player",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to","jmanga.ac"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"piccoma.com",matches:"piccoma.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".PCM-viewer2_canvas_wrap canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"sukima",matches:"www.sukima.me","imageRule.add":{enable:!0,type:"manga",opImageType:"append",urlFetchType:"canvasArgs",imageSelectors:[".slick-track canvas"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","userscript"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],excludeMatches:["tonarinoyj.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]},buildContainerSelectors:["main"]},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to","mangapark.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangasuika",matches:["www.mangasuika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".box_doc img"],injectedCss:".imt-loading {z-index:999 !important;}",platforms:["chrome","firefox","safari"]}},{id:"firemanga",matches:["www.firemanga.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".imageChap img"],platforms:["chrome","firefox","safari"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"younganimal",matches:["younganimal.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#xCVPages img","#xCVPages canvas"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}},"subtitleRule.add_v.[1.12.1]":{enableHookDownload:!0}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:["vk.com/video","vkvideo.ru"],"subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com","cgcookie.com","academy.yoast.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"],isDelay:!0}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"docubay",matches:["www.docubay.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; }"},injectedCss:["#immersive-translate-quick-button-container { position: absolute; top: -3px; right: 0; }"],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"hubspotvideo",matches:["*.hubspotvideo.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt\\?.*",hookType:"xhr",quickButtonRule:{appendSelector:"div.vjs-control-bar",insertBeforeSelector:"div.vjs-captions-button",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"div.video-js",injectedGlobalCSS:["div.vjs-text-track-display { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"rumble",matches:["rumble.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-player",injectedCss:["#immersive-translate-quick-button-container { height: 18px; padding: 6px 9px; float: right; }"],quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".videoPlayer-Rumble-cls > div > div:nth-child(4) > div:nth-child(3)"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"},"bodyRule.add":{bodySelector:"#main-content",articleSelector:"article"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"],"bodyRule.add":{bodySelector:"article",articleSelector:".ltx_abstract"},enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing",".ltx_eqn_table",".ltx_figure_panel"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app","excludeSelectors.add":["[class='css-146c3p1 r-dnmrzs r-1udh08x r-1udbk01 r-3s2u2q r-1iln25a']","[class='css-175oi2r r-1la3zjv r-3o4zer']","[data-testid^=homeScreenFeedTabs]","[class='css-146c3p1 r-1loqt21']","[class='css-1jxf684 r-1loqt21']","[data-testid=repostCount]","[data-testid=likeCount]","[data-testid=replyBtn]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],"additionalInlineSelectors.add":["[data-testid*=postThread] a[role=link]","[data-feed-context] button","[data-feed-context] a[role=link]"],"injectedCss.add":[".r-xoduu5 {display:inline!important;}","[style*='-webkit-line-clamp'] {-webkit-line-clamp:unset!important;}"],"extraBlockSelectors.remove":["button"],isTransformPreTagNewLine:!0,advanceTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],"skipBuildContainerSelectors.remove":["em"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *","#chat-messages > .group:first-child .prose *","#chat-messages > .group:not(:first-child) .font-display *"],"injectedCss.add":[".immersive-translate-target-wrapper br {display:none;}","[imt-state=dual] .prose p {margin:0;}"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"},advanceMergeConfig:[{condition:"true",advanceConfig:{immediateTranslationTextCount:0}}]},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"iqiyi-manga",matches:"www.iqiyi.com","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".main-container img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:["bb-rich-text-editor",".bb-editor-root"],"atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]},{id:"vodtw",matches:["www.vodtw.com/book/*"],"injectedCss.add":["dl { display: flex; flex-wrap: wrap; }","dl dd { white-space: normal !important; overflow: visible !important; }","#info p { height: unset !important; }"],atomicBlockSelectors:["dl dd a"]},{id:"8du8",matches:["www.8du8.net/*"],"injectedCss.add":[".book_list ul li { height: unset !important; overflow: visible !important; }"]},{id:"jwxs",matches:["www.jwxs.org/book/*"],"injectedCss.add":["#list dd { height: 5rem !important; line-height: unset !important; }",".readbtn .chapterlist { margin: unset !important; }"]},{id:"readthedocs",matches:"*.readthedocs.*","additionalExcludeSelectors.remove":[".notranslate"]},{id:"surveymyopinion.researchnow",matches:"surveymyopinion.researchnow.com","globalAttributes.add":{option:{label:""}}},{id:"xfiction.org",matches:"*.xfiction.org","mainFrameSelector.add":["tw-story"]},{id:"aliexpress",matches:"*.aliexpress.*","injectedCss.add":["[class*='multi--title'],.G7dOC {-webkit-line-clamp:unset;}"],"excludeSelectors.add":["[class*='multi--price']"]},{id:"journals.aps",matches:"journals.aps.*",enableRichTranslate:!1,"additionalInlineSelectors.add":["[class*='article'] button"],"stayOriginalSelectors.add":["button"]},{id:"mobalytics",matches:"mobalytics.gg","extraInlineSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"],"atomicBlockSelectors.add":[".x1n2onr6.xb3r6kr",".x1n2onr6.xb3r6kr *"]},{id:"www.inven.co.kr",matches:["https://www.inven.co.kr/*"],"globalStyles.add":{li:"height:unset!important;"}},{id:"gemini.google",matches:"gemini.google.com","injectedCss.add":["[data-test-id=conversation] {height: unset!important;}"]},{id:"ieltscat.xdf",matches:"ieltscat.xdf.*","injectedCss.add":["#tabs-content-wrap {overflow:scroll;}"]},{id:"codeium",matches:"codeium.com","excludeSelectors.add":["nav a[class*=C]"]},{id:"book-douban",matches:["book.douban.com"],"excludeTags.remove":["PRE"]},{id:"other-chatapps",matches:["app.salesmartly.com/chat"],"selectors.add":[".chat__inbox_item_text_ordinary",".ivu-tooltip [title]"],"injectedCss.add":["._ss_2FLBr4_u {height:unset!important;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com","*.marscode.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"bodyNoTranslateSite",selectorMatches:["body[translate=no]","#app[translate=no]","#root[translate=no]"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"otherMathSites",selectorMatches:["math","mjx-container","[class*='MathJax']","[class*='math-']"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.12.1]":!0,advanceMergeConfig:[{condition:"translationService==zhipu",advanceConfig:{"rich.stayOriginalTags.remove":["SUP","SUB"]}}]},{id:"fix-header",selectorMatches:["article header","header h1","header p"],"preTranslateLimiter.add_v.[1.12.1]":{"header.enableTranslate":!0},"initialSelectorGlobalAttributes.remove":{header:{}},"extraBlockSelectors.add":[".btn"]}]};function er(e){if(e.beta)return!1;if(je()&&e.spVersion)return ka(tr(),e.spVersion);if(r5()&&e.gspVersion){let t=a5();if(t)return ka(t,e.gspVersion)}if(Pl()&&e.ispVersion){let t=n5();if(t)return ka(t,e.ispVersion)}return!1}function ka(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Ol(e){e.message?.indexOf("token invalid")>=0&&(nt.remove(pt),Ml())}async function cr(e){let n=(await Ye())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),iF(a.toString())}function iF(e){try{je()?Aa(e):globalThis.open(e)}catch{globalThis.open(e)}}function I5(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function F5(e){return kt(e)}function Bd(e){return e?e.map(n=>{let r=oF(n),a={url:r?.url||"",name:r?.siteName||""};if(!r?.browserNames)return a;let i=Da();return r.browserNames.split(",").includes(i)?a:null}).filter(n=>!!n):[]}function oF(e){let t=/^(https?:\/\/[^[]+)(\[[^\]]+\])(\[[^\]]+\])?$/,n=e.match(t);if(n&&n.length>0){let r=n[1],a=n[2]?.replace("[","")?.replace("]",""),i=n[3]?.replace("[","")?.replace("]","");return{url:r,siteName:a,browserNames:i}}else return null}function Od(e){return Array.isArray(e)?e:e?[e]:[]}function Hn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Zt(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Nd(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Nl(e,t){let n={...e};return j5(n,t),sF(n,t),n}function U5(e,t,n){let r={...e};return ea({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),ea({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function sF(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;j5(e,a)}function ea({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=B5(i);if(o=="rich"){if(!a)return r(i,e[i]);let[g,p,f,b]=B5(i);o=g+"."+p,s=f,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Od(e[i]));let c=t(o);if(c==null){r(o,l);return}let m;if(s=="add_v"){if(!O5(u))return;m=S4(c,l)}else if(s=="remove_v"){if(!O5(u))return;m=N5(c,l)}else s==="add"?m=S4(c,l):s=="remove"&&(m=N5(c,l));if(m){r(o,m);return}Array.isArray(e[o])&&o.startsWith("additional")?m=S4(c,l):m=l,r(o,m)})}function j5(e,t){return ea({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function S4(e,t){let n;if(Array.isArray(e)){let r=Od(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function B5(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function O5(e){let t=jn();return e&&ka(t,e)}function N5(e,t){if(Array.isArray(e)){let n=Od(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var H5="userConfig",Ud="userPromptPool",jd="userObjectPool";async function Hd(){let e=await G5(H5)||{},t=await Mo(Ud)||{},n=await Mo(jd)||{};return uF(e,t,n)}async function q5(e){let{userConfig:t,promptPool:n,objectPool:r}=await w4(e);await K5(H5,t),await Yr(Ud,n),await Yr(jd,r)}function w4(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return z5(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),W5(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function uF(e,t,n){return z5(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),W5(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function z5(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function W5(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ni(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=V5(r);for(let o of i)delete a[o]}),n}function E4(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=V5(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function V5(e){let t=$r[e]?.allProps||[];e.startsWith("custom-ai")&&(t=ks.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function $5(e,t){return Y5(e,n=>{let r=[];return r=n.split(/\s*==\s*/),r.length>1?t[r[0]]==r[1].trim():(r=n.split(/\s*!=\s*/),r.length>1?t[r[0]]!=r[1].trim():n=="true")})}function Y5(e,t){let n=!0;e=e.replace(/\((.+?)\)/g,(u,l)=>Y5(l,t)+"");let r=[],a=[],i,o=0,s=/ (&&|\|\|) /g;for(;(i=s.exec(e))!==null;)a.push(e.substring(o,i.index)),r.push(i[0]),o=i.index+i[0].length;if(r.length>0){a.length==r.length&&a.push(e.substring(o));for(let u=0;uArray.isArray(r[c]),getMergedValue:c=>r[c],onMergedResult:(c,m)=>{c!="generalRule"&&(l[c]=m)}}),ea({rule:e.generalRule,valueIsArray:c=>Array.isArray(r.generalRule[c]),getMergedValue:c=>r.generalRule[c],onMergedResult:(c,m)=>{l.generalRule[c]=m}}),await gF(l),mF(n,u,l),l=await bF(l,u),l.donateUrl=e.donateUrl,l.minVersion=e.minVersion,l.feedbackUrl=e.feedbackUrl,l.rawUserConfig=i,l}function Po(){if(Se.PROD==="1")return{};let e={};if(Se.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Se.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Se.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Se.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Se.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Se.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Se.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Se.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Se.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Se.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Se.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Se.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Se.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Se.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Se.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Se.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Se.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Se.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Se.DEEPL_PROXY_ENDPOINT),Se.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Se.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Se.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Se.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Se.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Se.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Se.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Se.MOCK==="1"&&(t.translationService="mock"),t}async function _t(){let e=await j.storage.local.get(is);if(e[is]){let t=e[is],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Dt(i),i}else return{}}async function Dt(e){await j.storage.local.set({[is]:e})}async function Kv(e){await j.storage.local.set({[n0]:e})}async function J5(){return Se.DEBUG==="1"?void 0:(await j.storage.local.get(n0))[n0]}async function Ws(){await j.storage.local.set({[is]:{}})}async function Vs(){let e=await J5(),n={...Ul(),...Fd,buildinConfigUpdatedAt:Se.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}function cn(){return Hd()}function lr(e){return q5(e)}async function K5(e,t){await j.storage.sync.set({[e]:t})}async function G5(e){return(await j.storage.sync.get(e))[e]}async function Yr(e,t){await j.storage.local.set({[e]:t})}async function Mo(e){return(await j.storage.local.get(e))[e]}var Q5={};function qd(e){return Q5[e]}function X5(e,t){Q5[e]=t}var lF=async()=>{let e=["zh-CN"];try{e=await j.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>re(r)).find(r=>Td.find(a=>a===r));return n||"en"},Ul=()=>{let e={...Fd,buildinConfigUpdatedAt:Se.BUILD_TIME};return{...e,targetLanguage:xi,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function cF(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function dF(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return xi;let n=await Pt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Z5(l,r[s]))}),ea({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Z5(l,n[s]))}),ea({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field","summary_prompt","terms_prompt","sub_summary_prompt","sub_terms_prompt"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}async function gF(e){try{let t=await Pt("installedAt",""),n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(t){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",t)}}function Z5(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}async function pF(e,t,n){let r=e.interfaceLanguage==="en",a=e.targetLanguage==="en",i=n&&n.translationLanguagePattern&&n.translationLanguagePattern.matches&&n.translationLanguagePattern.matches.length===0,o=["bing","google","transmart","mock"].includes(e.translationService)||!e.translationService;!r&&!a&&!i&&o?n.translationLanguagePattern||(n.translationLanguagePattern={matches:["en"],excludeMatches:[]}):n.translationLanguagePattern={matches:[],excludeMatches:[]};let s=n&&n.enableDefaultAlwaysTranslatedUrls;e.enableDefaultAlwaysTranslatedUrls===!1&&(s=!1);let u=e&&e.isChangedAlwaysTranslatedUrls,l=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(l=e.translationUrlPattern.matches||[]);let c=!1;u===void 0&&(l.length>0?u=!0:u=!1,e.isChangedAlwaysTranslatedUrls=u,t.isChangedAlwaysTranslatedUrls=u,c=!0);let m=(e?.translationLanguagePattern?.matches?.length||0)>0,g=await Pt("installedAt",""),p=Number(await ko("translage_page_daily",0)),f=Number(await Pt(Dr,0)),b;f>0&&(Date.now()-f0&&(Date.now()-pr&&(e=t)}return e}function hF(e,t){let n=new Date;if(e&&e.tempTranslationUrlMatches&&e.tempTranslationUrlMatches.length>0){let r=e.tempTranslationUrlMatches.filter(a=>new Date(a.expiredAt)>n);if(r.length>0){let a=t.translationUrlPattern?t.translationUrlPattern?.matches||[]:[],i=Array.isArray(a)?a:[a],o=Array.from(new Set(i.concat(r.map(s=>s.match))));t.translationUrlPattern={...t.translationUrlPattern,matches:o}}}}async function bF(e,t){let n=await yF(),r=Object.keys(e),a=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let i of r){let o=i;if(o==="generalRule")typeof t[o]=="object"&&(e[o]=Nl(e[o],t[o]));else if(o==="translationServices")eC(t,e);else if(typeof t[o]!="string"&&typeof t[o]!="boolean"&&typeof t[o]!="number"&&a.includes(o))t[o]&&(e[o]=Object.assign(e[o],t[o])),o==="shortcuts"&&(Q()||je()?e[o]={...e[o],...n}:e[o]={...n});else if(o==="rules"){if(Array.isArray(t[o])){let s=e.rules||[],u={};for(let c of s)c.id&&(u[c.id]=c);let l=t[o].map(c=>c.id&&u[c.id]?U5(e.generalRule,u[c.id],c):c);e[o]=[...l,...e[o]]}if(Se.PROD==="0"&&Se.DEV_RULES){let s=JSON.parse(Se.DEV_RULES);e[o]=[...s,...e[o]]}}else t[o]!==void 0&&(e[o]=t[o])}return e}async function yF(){let e={};if(!Q()&&j.commands&&j.commands.getAll){let t=await j.commands.getAll();for(let n of t)n.name&&n.shortcut&&(e[n.name]=n.shortcut)}return e}function tC(e,t,n){let r=t;return n.advanceMergeConfig&&n.advanceMergeConfig.forEach(({condition:a,advanceConfig:i})=>{if(!a||!i||!$5(a,e))return;let{generalRule:s,translationServices:u,...l}=i;ea({rule:l,valueIsArray:c=>Array.isArray(e[c]),getMergedValue:c=>e[c],onMergedResult:(c,m)=>{e[c]=m}}),u&&eC(i,e),s&&(r=Nl(r,s))}),r}var zd={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.12.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var CF="";function jn(){return CF||zd.version}function tr(){return j.runtime.getManifest().version}function _o(e){let t=Ul(),n=tr();return n==e.releaseVersion?n:t.isPreview?n+" Preview":n}function A4(e){return e.replace(//g,">")}var nC=["*://*/*","*","*://*"],aC="immersive-translate-wildcard-placeholder.com";function k4(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>nC.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(nC.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,m=l.port===o;return l.port?c&&m:c}else return TF(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let y=u.split("://");l=y[0],l==="*"&&y.length>1&&(l="*",u="https://"+y[1])}else l="*",u="https://"+u;let m=u.replace(/\*/g,aC),g;try{g=new URL(m)}catch{return k.debug("invalid match pattern",m,"raw match value:",c),!1}let p=g.host,f=g.pathname;f==="/"&&(c.replace("://","").includes("/")||(f="/*"));let b=xF(l+":",rC(p),rC(f));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function rC(e){return e.replaceAll(aC,"*")}function xF(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function dt(e,t){return k4(e,t)!==null}function TF(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var iC=null;if(typeof trustedTypes<"u")try{iC=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var oC=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(oC=!0)});function Wd(){return oC}var nr=iC;function uC(e,t,n,r,a){if(!e)return"";for(let y of r||[])if(t?.querySelector(y))return"";let i=n[0],o=n[n.length-1];if(wF(t,o))return"";i=sC(t,i),i||(t=t.parentNode);let s="",u,l="",c="";for(let y of n){let h=sC(t,y);if(c+=f(y),u&&h!=u){b(),u=h,l=f(y)||"";continue}u=h,l+=f(y)||""}b();let m=p(c),g=p(t.textContent||"");if(m==g&&t.innerText.split(` +`).filter(y=>!!y.trim()).length>1)return t.innerHTML||"";return s;function p(y){return y.replace(/\s+/g,"")}function f(y){return y instanceof HTMLElement?y.innerText:y?.textContent||""}function b(){let y=p(f(u)),h=p(l);if(y==h){let v=f(u).replace(/ */g,"");if(!c.startsWith(` `)&&v?.startsWith(` `)||!c.endsWith(` `)&&v?.endsWith(` -`)){s+=l;return}s+=bC(u,a)}else s+=l}}function dC(e,t,n,r,a){if(!e||!t)return"";let i=bC(n,a)||"";return t.replace(i,r)}var D4=globalThis.document?.createElement("div");function wF(e){return D4?(D4.innerHTML=cr?.createHTML(e)||e,D4?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function mC(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||wF(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function gC(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(m,g,p,f)=>{if(t[f+1]=="/"){let y=o.findIndex(v=>v.tag==g);if(y==-1)return m;let b=o[y];return o=o.slice(y+1),n?``:``}else{let y=e[g];if(!y)return m;if(o.unshift(y),n)return`<${n}${g}>`;if(!y.attributes)return`<${y.tag}>`;let b=a||"";return`<${y.tag} ${r||"id"}=${b}${y.id}${b}>`}});l.replace(i,(m,g,p,f)=>{if(l[f+1]=="/"){let y=s[0],b=s[1],v=u[u.length-1];y?.tag==g?(y.end==f?(y.endTag=m,y.end=f+m.length,u.push(y)):y.end==v?.begin&&v.end==f&&(y.endTag=m,y.end=f+m.length,y.times++,u[u.length-1]=y),s.shift()):b?.tag==g&&b.end==y.begin&&b.end==f&&(b.endTag=m,b.end=f+m.length,u.push(b),s.shift(),s.shift())}else s.unshift({tag:g,startTag:m,begin:f,end:f+m.length,times:0});return m});let c=l.slice();return u.forEach(m=>{if(!m.times)return;let g=Object.keys(e).length,p="";e[g]={tag:n||m.tag,content:"",id:g},n?p=`<${n}${g}>`:p=`<${m.tag} ${r||"id"}=${g}>`,e[g].content=c.slice(m.begin,m.end),l=l.replace(e[g].content,p)}),l}function pC(e,t,n,r){let a="";return n?a=fC(e,t,n):a=hC(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function fC(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),m=e[c];return m?l=="/"?m.content?"":``:m.content?fC(e,m.content,n):m.attributes?`<${m.tag} ${m.attributes}>`:`<${m.tag}>`:i})}function hC(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return hC(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function bC(e,t){if(e instanceof HTMLElement){if(vC(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=fC(u,a)}else s+=l}}function lC(e,t,n,r,a){if(!e||!t)return"";let i=fC(n,a)||"";return t.replace(i,r)}var D4=globalThis.document?.createElement("div");function SF(e){return D4?(D4.innerHTML=nr?.createHTML(e)||e,D4?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function cC(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||SF(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function dC(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(m,g,p,f)=>{if(t[f+1]=="/"){let y=o.findIndex(v=>v.tag==g);if(y==-1)return m;let h=o[y];return o=o.slice(y+1),n?``:``}else{let y=e[g];if(!y)return m;if(o.unshift(y),n)return`<${n}${g}>`;if(!y.attributes)return`<${y.tag}>`;let h=a||"";return`<${y.tag} ${r||"id"}=${h}${y.id}${h}>`}});l.replace(i,(m,g,p,f)=>{if(l[f+1]=="/"){let y=s[0],h=s[1],v=u[u.length-1];y?.tag==g?(y.end==f?(y.endTag=m,y.end=f+m.length,u.push(y)):y.end==v?.begin&&v.end==f&&(y.endTag=m,y.end=f+m.length,y.times++,u[u.length-1]=y),s.shift()):h?.tag==g&&h.end==y.begin&&h.end==f&&(h.endTag=m,h.end=f+m.length,u.push(h),s.shift(),s.shift())}else s.unshift({tag:g,startTag:m,begin:f,end:f+m.length,times:0});return m});let c=l.slice();return u.forEach(m=>{if(!m.times)return;let g=Object.keys(e).length,p="";e[g]={tag:n||m.tag,content:"",id:g},n?p=`<${n}${g}>`:p=`<${m.tag} ${r||"id"}=${g}>`,e[g].content=c.slice(m.begin,m.end),l=l.replace(e[g].content,p)}),l}function mC(e,t,n,r){let a="";return n?a=gC(e,t,n):a=pC(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function gC(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),m=e[c];return m?l=="/"?m.content?"":``:m.content?gC(e,m.content,n):m.attributes?`<${m.tag} ${m.attributes}>`:`<${m.tag}>`:i})}function pC(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return pC(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function fC(e,t){if(e instanceof HTMLElement){if(bC(e.tagName))return e.innerHTML;let r="";return e.innerText.indexOf(` `)<0?r=ct.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=ct.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}else if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}else return e?.outerHTML;return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function EF(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function lC(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Kd(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function L4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),ta({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ks(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function yC(e,t){let n=t||e.translationService;return Ks(e,n,e.config.translationServices)?L4(e.rule):e.rule}function Hl(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var AF=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Ar(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Ma(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Ar(e,i))return!1;if(Ar(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Ar(e,o)),c;function m(){return n&&n.display?!!AF.includes(n.display):Ar(e,r)}}var qt=Ar;function Ro(e){return!!e.shadowRoot}function Ui(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function ql(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Pa(e,t=!1){let n=ss;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Io(e,t,n=!1){let r=e?.[t];return Pa(r,n)}function Gs(e,t){return Pi(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function M4(e){let{rule:t}=e,n=kF(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function kF(e){let t=e.config.loadingTheme;return`${P}-loading-${t}`}function zl(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Kt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,H2,t.toString());let i=M4(e);return a.append(n?" ...":ct.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function $s(e,t){return e.querySelector(`[${Qg}='${t}']`)}function xC(){document.querySelectorAll(`[${Qg}]`).forEach(t=>{t.remove()})}function TC(){document.querySelectorAll(`.${Kt}-error`).forEach(t=>{t.remove()})}function SC(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{qi(n)&&t.push(n)}),t}function P4(e,t){return t?DF(e):LF(e)}function DF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,h)=>{if(f=="id"&&u[h+2]=="=")return p;let y=l++;return t[`${y}`]=wC(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=A4(p),g.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function LF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,h)=>f.tl&&!h.tl?1:!f.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,h,y)=>{if(h=="id"&&l[y+2]=="=")return f;let b=c++;return t[`${b}`]=wC(h,m),o.length>2?f.replace(h,`<${o[2]}${b}>`):f.replace(h,`${o[0]}${b}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let h=c++;return t[`${h}`]=A4(f),o.length>2?p.replace(f,`<${o[2]}${h}>`):p.replace(f,`${o[0]}${h}${o[1]}`)})})}catch(m){k.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function _4(e,t){return t?MF(e):PF(e)}function MF(e){let{text:t,variables:n}=e,r=Hl(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function PF(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function wC(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Ys(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||HC(l)||OC(l)||jC(l)||NC(l)||UC(l)||RF(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Xd(i?.trim(),n,r)}function Fo(e){return e.nodeType===Node.ELEMENT_NODE}function EC(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function AC(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function na(){return await Pt("fakeUserId","")}async function _F(){return await Pt("installedAt","")}async function Yd(e,t){let r=Te().INSTALL_FROM,a=Hn(),i=await _F(),o=await na(),s=await Ze(),u=!1,l=await nt.get(pt,null),c=!1;l&&kt(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await js(),g=await qs(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Hs();return f&&(p.abGroup=f),p}function ui(e,t){let[n,r]=O();return q(()=>{!e||!t||(async()=>{let a=await R4(e,t);r(a)})()},[e,t,r]),n}async function R4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!je()&&Q()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Pt("installedAt","");new Date(o).getTime()s==n),a=F4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>dt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>dt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function F4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function DC(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function LC(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function MC(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Gd[e]=setTimeout(()=>{n("")},t)})}function _C(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Hi(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new z(t,n).initNetWork(e.status)}function Zd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function La(){return m4()?"imtAndroid":_l()?"imtIOS":Q()?"userscript":je()?"safari":Qn()?"firefox":Z0()?"chrome":"other"}function _a(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Jd(e){return e?.getAttribute("imt-state")||""}function Ra(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Qd(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Ar(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function RC(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function IC(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function FC(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var IF={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},$d={...IF};function li(e){$d[e]||($d[e]=Date.now())}var CC=!1;function BC(){if(CC)return;CC=!0;let e=$d.initial,t={...$d};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(ne+"PerformanceData",JSON.stringify(t))}var em=!1,FF=Q();function qC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function BF(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&zC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(zi(i,i0)){if(a===!0)return!0;continue}if(Wl(i.nodeName,t.inlineTags))return!0;if(!B4(i,t))return!1}}return!0}function O4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Wl(e.nodeName,n)||B4(e,t)){if(zi(e,W2)||Wl(e.nodeName,["BR"]))return!1;if(zi(e,i0))return!0;if(B4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return BF(e,t)}else return zi(e,i0);return!1}function zC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&zi(e,z2,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&zi(e,I2))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Wl(e.nodeName,i))}function Xd(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!VC(r)&&r.length>=n}function WC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(VC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function VC(e){for(let t=0;t127)return!1;return!0}function OC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function NC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function UC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function jC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function HC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function zi(e,t,n=!1){return N4(e,t,"1",n)}function N4(e,t,n,r=!1){return em&&!r?e[br]?e[br]?.[t]===n:!1:e.dataset?.[t]===n}function Js(e){return(e.innerText||e.textContent||"").trim()}function U4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function tm(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(em&&!r?(e[br]||(e[br]={}),e[br][t]||(e[br][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function KC(e,t,n=!1){if(em&&!n){if(!e[br]||!e[br][t])return;delete e[br][t]}else delete e.dataset[t]}function GC(e,t,n=!1){return em&&!n?!e[br]||!e[br][t]?void 0:e[br][t]:e.dataset[t]}function B4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Wl(e.nodeName,n)}function Ie(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Tt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function rr(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function qi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(FF){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${P}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Wl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function $C(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function YC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||zC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function ZC(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function JC(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${P}-theme-${i}-${m}: ${g}; -`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:h}=$C(g);s+=`--${P}-theme-${i}-${m}-rgb: ${p}, ${f}, ${h}; +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function wF(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function sC(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Vd(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function L4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),ea({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ks(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function hC(e,t){let n=t||e.translationService;return Ks(e,n,e.config.translationServices)?L4(e.rule):e.rule}function jl(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var EF=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Er(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function La(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Er(e,i))return!1;if(Er(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Er(e,o)),c;function m(){return n&&n.display?!!EF.includes(n.display):Er(e,r)}}var qt=Er;function Ro(e){return!!e.shadowRoot}function Ui(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Hl(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Ma(e,t=!1){let n=ss;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Io(e,t,n=!1){let r=e?.[t];return Ma(r,n)}function Gs(e,t){return Pi(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function M4(e){let{rule:t}=e,n=AF(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function AF(e){let t=e.config.loadingTheme;return`${P}-loading-${t}`}function ql(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Kt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,U2,t.toString());let i=M4(e);return a.append(n?" ...":ct.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function $s(e,t){return e.querySelector(`[${Qg}='${t}']`)}function vC(){document.querySelectorAll(`[${Qg}]`).forEach(t=>{t.remove()})}function CC(){document.querySelectorAll(`.${Kt}-error`).forEach(t=>{t.remove()})}function xC(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{qi(n)&&t.push(n)}),t}function P4(e,t){return t?kF(e):DF(e)}function kF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,b)=>{if(f=="id"&&u[b+2]=="=")return p;let y=l++;return t[`${y}`]=TC(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=A4(p),g.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function DF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,b)=>f.tl&&!b.tl?1:!f.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,b,y)=>{if(b=="id"&&l[y+2]=="=")return f;let h=c++;return t[`${h}`]=TC(b,m),o.length>2?f.replace(b,`<${o[2]}${h}>`):f.replace(b,`${o[0]}${h}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let b=c++;return t[`${b}`]=A4(f),o.length>2?p.replace(f,`<${o[2]}${b}>`):p.replace(f,`${o[0]}${b}${o[1]}`)})})}catch(m){k.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function _4(e,t){return t?LF(e):MF(e)}function LF(e){let{text:t,variables:n}=e,r=jl(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function MF(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function TC(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Ys(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||UC(l)||FC(l)||NC(l)||BC(l)||OC(l)||_F(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Qd(i?.trim(),n,r)}function Fo(e){return e.nodeType===Node.ELEMENT_NODE}function SC(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function wC(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ta(){return await Pt("fakeUserId","")}async function PF(){return await Pt("installedAt","")}async function $d(e,t){let r=Te().INSTALL_FROM,a=jn(),i=await PF(),o=await ta(),s=await Ye(),u=!1,l=await nt.get(pt,null),c=!1;l&&kt(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await js(),g=await qs(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Hs();return f&&(p.abGroup=f),p}function si(e,t){let[n,r]=O();return q(()=>{!e||!t||(async()=>{let a=await R4(e,t);r(a)})()},[e,t,r]),n}async function R4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!je()&&Q()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Pt("installedAt","");new Date(o).getTime()s==n),a=F4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>dt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>dt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function F4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function AC(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function kC(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function DC(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Kd[e]=setTimeout(()=>{n("")},t)})}function MC(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Hi(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new z(t,n).initNetWork(e.status)}function Yd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Da(){return m4()?"imtAndroid":Pl()?"imtIOS":Q()?"userscript":je()?"safari":Jn()?"firefox":Y0()?"chrome":"other"}function Pa(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Zd(e){return e?.getAttribute("imt-state")||""}function _a(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Jd(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Er(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function PC(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function _C(e,t){return t.map(n=>n.text).join(" ").slice(0,e.rule.bodyRule.contextReqLength||0)}function RC(e){return/^<[\w-]+.*?<\/[\w-]+(?![^<>]*>)/.test(e)}var RF={initial:0,buildContainer:0,consumeContainer:0,consumeParagraph:0,parseParagraph:0,translated:0,inserted:0},Gd={...RF};function ui(e){Gd[e]||(Gd[e]=Date.now())}var yC=!1;function IC(){if(yC)return;yC=!0;let e=Gd.initial,t={...Gd};Object.keys(t).forEach(n=>{let r=n;t[r]=t[r]-e}),localStorage.setItem(ne+"PerformanceData",JSON.stringify(t))}var Xd=!1,IF=Q();function jC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function FF(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&HC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(zi(i,a0)){if(a===!0)return!0;continue}if(zl(i.nodeName,t.inlineTags))return!0;if(!B4(i,t))return!1}}return!0}function O4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(zl(e.nodeName,n)||B4(e,t)){if(zi(e,q2)||zl(e.nodeName,["BR"]))return!1;if(zi(e,a0))return!0;if(B4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return FF(e,t)}else return zi(e,a0);return!1}function HC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&zi(e,H2,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&zi(e,_2))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||zl(e.nodeName,i))}function Qd(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!zC(r)&&r.length>=n}function qC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(zC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function zC(e){for(let t=0;t127)return!1;return!0}function FC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function BC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function OC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function NC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function UC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function zi(e,t,n=!1){return N4(e,t,"1",n)}function N4(e,t,n,r=!1){return Xd&&!r?e[hr]?e[hr]?.[t]===n:!1:e.dataset?.[t]===n}function Js(e){return(e.innerText||e.textContent||"").trim()}function U4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function em(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Xd&&!r?(e[hr]||(e[hr]={}),e[hr][t]||(e[hr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function WC(e,t,n=!1){if(Xd&&!n){if(!e[hr]||!e[hr][t])return;delete e[hr][t]}else delete e.dataset[t]}function VC(e,t,n=!1){return Xd&&!n?!e[hr]||!e[hr][t]?void 0:e[hr][t]:e.dataset[t]}function B4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!zl(e.nodeName,n)}function Re(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Tt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function rr(e,t,n){try{if(e instanceof ShadowRoot){e.appendChild(document.createElement("style")).textContent=t;return}if(e?.head?.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild?.(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}}function qi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(IF){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${P}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function zl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function KC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function GC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||HC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function $C(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function YC(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${P}-theme-${i}-${m}: ${g}; +`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b}=KC(g);s+=`--${P}-theme-${i}-${m}-rgb: ${p}, ${f}, ${b}; `}}}),r||(r="inherit"),e&&(s+=` .${P}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5865,41 +5865,41 @@ ${s}} `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&rr(e,s,P+"-dynamic-injected-css")}var OF=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--OF,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ue.vnode&&Ue.vnode(u),u}function j4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(le,{children:n["#services"]}):a.test(e)?d(le,{children:n["#ai"]}):d(le,{children:n[e]!=null?n[e]:t})}function Bo(){let[e,t]=O(location.hash);return q(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var nm=()=>sr.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=Sy[e]||e,i=Ff[e]||e,o=Bf[e],s=Of[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Bf,a="zh-CN"):n==="zh-TW"?(r=Of,a="zh-TW"):(r=Ff,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function H4(e){let t=j.runtime.getURL(w2),n=new URL(t);return e&&(e.startsWith("http")||!Qn())&&n.searchParams.set("file",e),n.href}var Ia=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return k.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=Jc){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return k.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw k.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function QC(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${Zc}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function XC(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function rm(e,t,n,r,a,i,o){if(k.debug(`autoSyncStrategy accessToken: ${e}`),t===null){k.debug("autoSyncStrategy settings is null");return}let s=new Ia(e);try{let u=(await s.findByName(Jc)).files;k.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(k.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)k.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())k.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),_u()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(vi);if(t[vi])return t[vi]}static async removeAuthInfo(){return await j.storage.local.remove(vi)}static setAuthInfo(t){return j.storage.local.set({[vi]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(k.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await ex(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=QC(this._state,this._redirectUrl);return k.debug(this.CLASSNAME,"auth url: "+r),_u()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[Iu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(k.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let h=new URL(f.url||""),y=XC(f.url);h.pathname.startsWith("/auth-done")&&y?.access_token&&(k.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{k.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{k.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var UF="https://www.googleapis.com/oauth2/v3/tokeninfo",jF=Zc,HF=Te().REDIRECT_URL;function ex(e){if(!e)throw"Authorization failure";let t=`${UF}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===jF?i(e):o("Token validation error")})})}return fetch(n).then(r)}function q4(e,t=!1){let n=HF;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Ki(e,n).auth(t)}function z4(e,t=!1){return q4(e,t).then(n=>n.access_token||null)}async function tx(){}var qF="https://www.google-analytics.com/mp/collect",zF=30,WF=100;async function VF(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>zF?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function nx(e){vb().forEach(({measurementId:t,apiSecret:n})=>{rx({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Xs(e,t,n){return rx({measurement_id:bb,api_secret:yb,page_title:e,page_location:t,time:n})}async function rx(e){try{let t=Te(),n=Ii(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await Bi(),i=`${qF}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await VF(),engagement_time_msec:e.time||WF,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){k.error(t)}}var Vl=new Map;function KF(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function W4(e){let t=await ZF(),n=Date.now();if(t){if(Vl.has(e))return;let r=await j.tabs.get(e),a=KF(r.url);if(!a)return;Vl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}ax(e)}function ax(e){if(Vl.has(e)){let t=Vl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Vl.delete(e),$F(t.hostname,n)}}async function GF(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Kl().sendMessage(`content_script:main:${n}`,e)}function $F(e,t){Xs(`${e}(video)`,e,t),YF(t)}var am="videoWatchTimeDay";async function YF(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(am,null);if(!a){await Ye(am,{day:r,time:e});return}if(a.day!==r){Xs("day-video."+et,"day-video."+et,a.time),await Ye(am,{day:r,time:e});return}let i={day:r,time:a.time+e};await Ye(am,i)}catch(t){k.error(t)}}async function ZF(){try{return await GF({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Gl=new Map;async function ix(e){let t=await V4(),n=Date.now();if(t=="Translated"){if(Gl.has(e))return;let r=await j.tabs.get(e),a=JF(r.url);if(!a)return;Gl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}QF(e)}function JF(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function QF(e){if(Gl.has(e)){let t=Gl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Gl.delete(e),eB(t.hostname,n)}}async function XF(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Kl().sendMessage(`content_script:main:${n}`,e)}function eB(e,t){Xs(e,e,t),tB(t)}async function V4(){try{return await XF({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var im="readTimeDay";async function tB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(im,null);if(!a){await Ye(im,{day:r,time:e});return}if(a.day!==r){Xs("day."+et,"day."+et,a.time),await Ye(im,{day:r,time:e});return}let i={day:r,time:a.time+e};await Ye(im,i)}catch(t){k.error(t)}}var om,nB=async function(e,t){let{method:n,data:r}=e;if(k.debug("background received message",n,r||" "),n==="mock")await tt(150);else{if(n==="queryParagraphCache")return od(r);if(n==="setParagraphCache")return id(r);if(n==="calculateSize")return sd();if(n==="fetch")return Or(r);if(n==="getConfig")return Ze();if(n==="getLocalConfig")return _t();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=Te().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=Te().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=Te().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=Te().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=H4(a);(je()||!a)&&(i=Te().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return Dt(r);if(n=="getUserConfig")return cn();if(n=="setUserConfig")return ur(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await ox(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return re(o.languages[0].language);for(let s of o.languages){let u=re(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return k.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await ox(j.tabs.detectLanguage(t.id),1500,"auto");return re(a)}catch(a){return k.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await tx()}catch(a){k.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(eu({}),rB(a,i)),a&&ix(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return _i.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")nx(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&W4(a)}else n==="updateToggleTranslateContextMenu"?eu(r):n==="updateImageMenu"&&Oo()}}};function Kl(){return om||(om=new wa("background",!1).getConnection("main",nB),om)}function sm(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function rB(e,t){if(je())return;let n=await aB();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:sm("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:sm("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:sm("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:sm("icons",n)}))}async function aB(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function ox(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function iB(){return navigator.userAgent.indexOf("Mac")!==-1}var oB="";function ux(){return oB||globalThis.navigator.userAgent}function sB(){let e=ux();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var sx={Alt:"\u2325"};function Fa(e=""){return iB()?Object.keys(sx).reduce((t,n)=>t.replace(n,sx[n]),e):e}var uB="";function lB(){return uB||globalThis.location.hostname}function lx(){try{let e=lB(),t=new URL(rp);if(e===t.hostname||!sB())return!0;let n=/Version\/([\d\.]+)/,r=ux().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return k.error("Error checking if options supported",e),!0}}function ci(e,t){return Q(t)?!1:cx(e.config,e.isPro)}function cx(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function dx(){if(Q())return!1;let e=await Ze(),t=await As();return cx(e,t)}function um(e){let t=La();return!(e?.platforms&&!e.platforms.includes(t))}function K4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function mx(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function cB(){return Z0()&&!je()}var $l=cB()?["action"]:["browser_action","page_action"],gx="",dB=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...$l]},{id:Ou,contexts:["image"]},{id:Bu,contexts:$l},{id:Nu,contexts:$l},{id:Uu,contexts:$l},{id:F2,contexts:$l}];async function Yl(e){e=e||await Ze(),k.debug("update ContextMenu",e);for(let t of dB){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function eu({targetLanguage:e,text:t}){let n=await Ze(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)gx=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await V4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Fa(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),gx=""}j.contextMenus.update(r,{title:i,visible:a})}async function Oo(){try{let e=await dx();j.contextMenus.update(Ou,{visible:e})}catch{}}function px(e,t){let n=t;n||(n=Te().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${P}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function lm(e,t,n,r,a){let i=t.original||t,o=cC(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let b=0;b0&&i[b].textContent.length0&&(x=m[b-1].text),bf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function fx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function hx(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=Ps(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=Hl(e.targetText):e.targetText=ct.sanitize(Hl(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let f=0;f/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=ad(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=pC(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` -`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let m={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},g=Io(t.config.translationServices,t.translationService);if(g.length>2){let p=g[2];return mB({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=bx(m,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function G4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function mB(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),x=p[C-1]===" ",T=p[C+v.length]===" ",w=v.match(h);if(!w)return v;let S=w[1],A=Number(S);if(isNaN(A))return v;let D=o[Number(A)];if(D&&D.type==="element"){let M=ct.sanitize(D.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return x||(M=" "+M),T||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return x||(M=" "+M),T||(M=M+" "),M}else k.error("variable type not supported",D,v);return v}));let y=tu(l,n,r||[],s),b=nu(l);return Y4({targetWrapperTag:a,innerClassList:b,classList:y,html:p,targetElementEffectAttributeName:os,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function Y4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function $4(e){let t=e[e.length-1];return t?t.text:""}function tu(e,t,n=[],r){let a=["notranslate"];return r&&a.push($2),e&&(a.push(`${P}-target-translation-theme-${e}`),t?a.push(`${ep}-theme-${e}`):a.push(`${Xg}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(ep):a.push(Xg),a}function nu(e){let t=["notranslate",s0];return e&&t.push(`${P}-target-translation-theme-${e}-inner`),t}function bx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Io(n.config.translationServices,n.translationService,!0),g="afterend",p=m[0],f=m[1],h=`${p}(\\d+)${f}`,y=new RegExp(h,"g"),b=u;o.length>0&&(b=b.replace(y,x=>{let T=b.indexOf(x),w=b[T-1]===" ",S=b[T+x.length]===" ",D=x.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(D);if(isNaN(M))return x;let R=o[M];if(R&&R.type==="element"){let _=ct.sanitize(R.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return w||(_=" "+_),S||(_=_+" "),_}else k.error("variable type not supported",R,x);return x}));let v=tu(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(G2);let C=nu(i);return Y4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:b,targetElementEffectAttributeName:os,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function rt(e){Rf({type:"success",text:e})}function bt(e){Rf({type:"error",text:e})}var Z4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function cm(e,t,n){let[r]=O(()=>typeof t=="function"?t():t),[a]=O(n),[i,o]=O(r),[s,u]=O(!1),[l,c]=O("");q(()=>{Z4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=ue(g=>{let p=typeof g=="function"?g(i):g;k.debug("new settings",p),Z4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function dm(e,t,n){let r=[];return function(){let[i,o,s,u]=cm(e,t,n),l=ue(c=>{for(let m of r)m(c)},[]);return q(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function yx(e,t){return dm(e,t,"local")}function vx(e,t){return dm(e,t,"sync")}var gB="userConfig",pB=null,fB=vx(gB,pB);function Oe(e){let[t,n,r,a]=fB(),[i,o]=O();q(()=>{(async function(){let u=await qd();o(u)})()},[t]);let s=ue(async u=>{let l=typeof u=="function"?u(i):u;l&&J4(l);let{userConfig:c,promptPool:m,objectPool:g}=await w4(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(m).length,m),k.debug("objectPool size",JSON.stringify(g).length,g),await Zr(jd,m),await Zr(Hd,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function J4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Re=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=mv(a,c,m)}catch(y){if(r)for(let b=0;by));let g=[],p=[],f=(y,b,v)=>{let C="";if(b.translatedTexts&&b.translatedTexts[0]&&(C=b.translatedTexts[0]),p[y]||(p[y]=b,p[y].translatedTexts=Array(b.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let w=v instanceof z?new z(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,b?.callback?.(w,null,b.sentence);return}p[y].translatedTexts[b.partIndex]=C;let x=p[y],T=0;for(let w=0;w{let T=b.from;if(b.fromByClient&&b.fromByClient!=="auto"&&(T=b.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:b.tempSentences.map(S=>S.text),forces:b.tempSentences.map(S=>S.force),xpaths:b.tempSentences.map(S=>S.xpath||""),from:T,to:b.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:b.tempSentences};{let w=K2;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(w=this.serviceConfig.translationTextSeparator);let S=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(S=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Pa(this.serviceConfig);if(b.tempSentences.forEach((U,V)=>{let Y=P4({text:U.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:b.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);U.force!==!0&&(Y&&Y.text&&Y.text.trim().lengthV.text);return Promise.resolve({sourceTempSentences:b.tempSentences,text:U,from:T,to:b.to})}let M="";S&&S.length>=2?M=A.map((U,V)=>{let{item:Y}=U;return V===A.length-1?Y.text:Y.text+S[0]+(V+1)+S[1]}).join(""):M=A.map(({item:U})=>U.text).join(w);let R=await this.translate({text:M,from:T,to:b.to,url:v,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:b.inArticleContext}),{text:_}=R,B=[];if(S&&S.length>=2){let U=`${S[0]}\\d+${S[1]}`;S&&S.length>=3&&(U=S[2]);let V=new RegExp(U,"g");B=_.split(V)}else B=_.split(w);let L=[];if(B.length>A.length){for(let U=0;UU.text);return D=Pa(this.serviceConfig,!0),L.forEach((U,V)=>{let Y=A[V],ae=Y.index,_e=Y.variables||{};Object.keys(_e).length>0&&(U=_4({text:U,delimiters:D,variables:_e},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),N[ae]=U}),{sourceTempSentences:b.tempSentences,text:N,from:R.from,to:R.to}}};g.push(x().then(T=>{let{text:w,sourceTempSentences:S}=T;for(let A=0;A{if(T instanceof z&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let w=0;w{let b=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(b=y.translatedTexts.join("")),{...y.sentence,text:b}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Pa(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=P4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Pa(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=_4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Lt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var ru="input is invalid type",Q4=typeof window=="object",Gi=Q4?window:{};Gi.JS_SHA256_NO_WINDOW&&(Q4=!1);var hB=!Q4&&typeof self=="object",bB=!Gi.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;bB?Gi=global:hB&&(Gi=self);var Sae=!Gi.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,wae=typeof define=="function"&&define.amd,Zl=!Gi.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ye="0123456789abcdef".split(""),yB=[-2147483648,8388608,32768,128],ra=[24,16,8,0],mm=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],gm=["hex","array","digest","arrayBuffer"],Tn=[];(Gi.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Zl&&(Gi.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Cx=function(e,t){return function(n){return new Sn(t,!0).update(n)[e]()}},Tx=function(e){var t=Cx("hex",e);t.create=function(){return new Sn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Sn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=yB[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Sn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,h,y,b,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,h=a&i^~a&o,p=s+m+h+mm[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),b=r&e,g=b^r&t^y,h=s&a^~s&i,p=o+m+h+mm[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^b,h=o&s^~o&a,p=i+m+h+mm[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,h=i&o^~i&s,p=a+m+h+mm[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Sn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ye[e>>28&15]+ye[e>>24&15]+ye[e>>20&15]+ye[e>>16&15]+ye[e>>12&15]+ye[e>>8&15]+ye[e>>4&15]+ye[e&15]+ye[t>>28&15]+ye[t>>24&15]+ye[t>>20&15]+ye[t>>16&15]+ye[t>>12&15]+ye[t>>8&15]+ye[t>>4&15]+ye[t&15]+ye[n>>28&15]+ye[n>>24&15]+ye[n>>20&15]+ye[n>>16&15]+ye[n>>12&15]+ye[n>>8&15]+ye[n>>4&15]+ye[n&15]+ye[r>>28&15]+ye[r>>24&15]+ye[r>>20&15]+ye[r>>16&15]+ye[r>>12&15]+ye[r>>8&15]+ye[r>>4&15]+ye[r&15]+ye[a>>28&15]+ye[a>>24&15]+ye[a>>20&15]+ye[a>>16&15]+ye[a>>12&15]+ye[a>>8&15]+ye[a>>4&15]+ye[a&15]+ye[i>>28&15]+ye[i>>24&15]+ye[i>>20&15]+ye[i>>16&15]+ye[i>>12&15]+ye[i>>8&15]+ye[i>>4&15]+ye[i&15]+ye[o>>28&15]+ye[o>>24&15]+ye[o>>20&15]+ye[o>>16&15]+ye[o>>12&15]+ye[o>>8&15]+ye[o>>4&15]+ye[o&15];return this.is224||(u+=ye[s>>28&15]+ye[s>>24&15]+ye[s>>20&15]+ye[s>>16&15]+ye[s>>12&15]+ye[s>>8&15]+ye[s>>4&15]+ye[s&15]),u};Sn.prototype.toString=Sn.prototype.hex;Sn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Sn.prototype.array=Sn.prototype.digest;Sn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function pm(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(ru);if(Zl&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Zl||!ArrayBuffer.isView(e)))throw new Error(ru)}else throw new Error(ru);e.length>64&&(e=new Sn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Sn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}pm.prototype=new Sn;pm.prototype.finalize=function(){if(Sn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sn.prototype.finalize.call(this)}};var au=Tx();au.sha256=au;au.sha224=Tx(!0);au.sha256.hmac=Sx();au.sha224.hmac=Sx(!0);var wx=au;var Ex=wx.sha256;function dr(e){return Promise.resolve(Ex(e))}function iu(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function kr(e,t){let n=Ex.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Ax(e,t){let n=await kr(e,t);return iu(n)}async function fm(e,t){let n=vB(t),r=await kr(e,n);return iu(r)}function vB(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var kx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Jl=class e extends Re{static langMap=new Map(kx);maxTextGroupLength=50;static langMapReverse=new Map(kx.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new z("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await dr(a)].join(` +`+t.rule.additionalInjectedCss)),s&&rr(e,s,P+"-dynamic-injected-css")}var BF=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--BF,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ue.vnode&&Ue.vnode(u),u}function j4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(le,{children:n["#services"]}):a.test(e)?d(le,{children:n["#ai"]}):d(le,{children:n[e]!=null?n[e]:t})}function Bo(){let[e,t]=O(location.hash);return q(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var tm=()=>ur.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=xy[e]||e,i=Ff[e]||e,o=Bf[e],s=Of[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Bf,a="zh-CN"):n==="zh-TW"?(r=Of,a="zh-TW"):(r=Ff,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function H4(e){let t=j.runtime.getURL(T2),n=new URL(t);return e&&(e.startsWith("http")||!Jn())&&n.searchParams.set("file",e),n.href}var Ra=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return k.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=Zc){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return k.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw k.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function ZC(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${Yc}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function JC(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function nm(e,t,n,r,a,i,o){if(k.debug(`autoSyncStrategy accessToken: ${e}`),t===null){k.debug("autoSyncStrategy settings is null");return}let s=new Ra(e);try{let u=(await s.findByName(Zc)).files;k.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(k.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)k.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())k.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),_u()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(vi);if(t[vi])return t[vi]}static async removeAuthInfo(){return await j.storage.local.remove(vi)}static setAuthInfo(t){return j.storage.local.set({[vi]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(k.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await QC(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=ZC(this._state,this._redirectUrl);return k.debug(this.CLASSNAME,"auth url: "+r),_u()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[Iu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(k.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let b=new URL(f.url||""),y=JC(f.url);b.pathname.startsWith("/auth-done")&&y?.access_token&&(k.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{k.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{k.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var NF="https://www.googleapis.com/oauth2/v3/tokeninfo",UF=Yc,jF=Te().REDIRECT_URL;function QC(e){if(!e)throw"Authorization failure";let t=`${NF}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===UF?i(e):o("Token validation error")})})}return fetch(n).then(r)}function q4(e,t=!1){let n=jF;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Ki(e,n).auth(t)}function z4(e,t=!1){return q4(e,t).then(n=>n.access_token||null)}async function XC(){}var HF="https://www.google-analytics.com/mp/collect",qF=30,zF=100;async function WF(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>qF?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function ex(e){bb().forEach(({measurementId:t,apiSecret:n})=>{tx({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Xs(e,t,n){return tx({measurement_id:fb,api_secret:hb,page_title:e,page_location:t,time:n})}async function tx(e){try{let t=Te(),n=Ii(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await Bi(),i=`${HF}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await WF(),engagement_time_msec:e.time||zF,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){k.error(t)}}var Wl=new Map;function VF(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function W4(e){let t=await YF(),n=Date.now();if(t){if(Wl.has(e))return;let r=await j.tabs.get(e),a=VF(r.url);if(!a)return;Wl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}nx(e)}function nx(e){if(Wl.has(e)){let t=Wl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Wl.delete(e),GF(t.hostname,n)}}async function KF(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Vl().sendMessage(`content_script:main:${n}`,e)}function GF(e,t){Xs(`${e}(video)`,e,t),$F(t)}var rm="videoWatchTimeDay";async function $F(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(rm,null);if(!a){await rt(rm,{day:r,time:e});return}if(a.day!==r){Xs("day-video."+et,"day-video."+et,a.time),await rt(rm,{day:r,time:e});return}let i={day:r,time:a.time+e};await rt(rm,i)}catch(t){k.error(t)}}async function YF(){try{return await KF({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Kl=new Map;async function rx(e){let t=await V4(),n=Date.now();if(t=="Translated"){if(Kl.has(e))return;let r=await j.tabs.get(e),a=ZF(r.url);if(!a)return;Kl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}JF(e)}function ZF(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function JF(e){if(Kl.has(e)){let t=Kl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Kl.delete(e),XF(t.hostname,n)}}async function QF(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Vl().sendMessage(`content_script:main:${n}`,e)}function XF(e,t){Xs(e,e,t),eB(t)}async function V4(){try{return await QF({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var am="readTimeDay";async function eB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Pt(am,null);if(!a){await rt(am,{day:r,time:e});return}if(a.day!==r){Xs("day."+et,"day."+et,a.time),await rt(am,{day:r,time:e});return}let i={day:r,time:a.time+e};await rt(am,i)}catch(t){k.error(t)}}var im,tB=async function(e,t){let{method:n,data:r}=e;if(k.debug("background received message",n,r||" "),n==="mock")await tt(150);else{if(n==="queryParagraphCache")return id(r);if(n==="setParagraphCache")return ad(r);if(n==="calculateSize")return od();if(n==="fetch")return Br(r);if(n==="getConfig")return Ye();if(n==="getLocalConfig")return _t();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=Te().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=Te().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=Te().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=Te().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=H4(a);(je()||!a)&&(i=Te().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return Dt(r);if(n=="getUserConfig")return cn();if(n=="setUserConfig")return lr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await ax(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return re(o.languages[0].language);for(let s of o.languages){let u=re(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return k.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await ax(j.tabs.detectLanguage(t.id),1500,"auto");return re(a)}catch(a){return k.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await XC()}catch(a){k.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(eu({}),nB(a,i)),a&&rx(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return _i.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")ex(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&W4(a)}else n==="updateToggleTranslateContextMenu"?eu(r):n==="updateImageMenu"&&Oo()}}};function Vl(){return im||(im=new Sa("background",!1).getConnection("main",tB),im)}function om(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function nB(e,t){if(je())return;let n=await rB();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:om("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:om("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:om("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:om("icons",n)}))}async function rB(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function ax(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function aB(){return navigator.userAgent.indexOf("Mac")!==-1}var iB="";function ox(){return iB||globalThis.navigator.userAgent}function oB(){let e=ox();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var ix={Alt:"\u2325"};function Ia(e=""){return aB()?Object.keys(ix).reduce((t,n)=>t.replace(n,ix[n]),e):e}var sB="";function uB(){return sB||globalThis.location.hostname}function sx(){try{let e=uB(),t=new URL(rp);if(e===t.hostname||!oB())return!0;let n=/Version\/([\d\.]+)/,r=ox().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return k.error("Error checking if options supported",e),!0}}function li(e,t){return Q(t)?!1:ux(e.config,e.isPro)}function ux(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function lx(){if(Q())return!1;let e=await Ye(),t=await As();return ux(e,t)}function sm(e){let t=Da();return!(e?.platforms&&!e.platforms.includes(t))}function K4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function cx(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function lB(){return Y0()&&!je()}var Gl=lB()?["action"]:["browser_action","page_action"],dx="",cB=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Gl]},{id:Ou,contexts:["image"]},{id:Bu,contexts:Gl},{id:Nu,contexts:Gl},{id:Uu,contexts:Gl},{id:R2,contexts:Gl}];async function $l(e){e=e||await Ye(),k.debug("update ContextMenu",e);for(let t of cB){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function eu({targetLanguage:e,text:t}){let n=await Ye(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)dx=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await V4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Ia(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),dx=""}j.contextMenus.update(r,{title:i,visible:a})}async function Oo(){try{let e=await lx();j.contextMenus.update(Ou,{visible:e})}catch{}}function mx(e,t){let n=t;n||(n=Te().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${P}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function um(e,t,n,r,a){let i=t.original||t,o=uC(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let h=0;h0&&i[h].textContent.length0&&(x=m[h-1].text),hf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function gx(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function px(e,t){let{rule:n}=t;if(!e.targetText)return"";let r=Ps(t.config),a=r?.configEnable||t.config.enableRenderHtmlTag;a?e.targetText=jl(e.targetText):e.targetText=ct.sanitize(jl(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let i=[];if(e.variables){let p=Object.keys(e.variables);for(let f=0;f/g,">"))}!r?.configEnable&&r?.queryEnable&&(e.targetText=rd(e.contextTargetText,e.targetText));let o=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=mC(e.richVariables,e.targetText,o.richTag,o.richIdName));let s=!1,u=e.text,l=u.split(" ").length,c=u.split(` +`).length;l<=n.blockMinWordCount&&u.length<=n.blockMinTextCount&&c<2&&(s=!0),e.display?.includes("flex")&&(s=!0);let m={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:i,inline:s,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},g=Io(t.config.translationServices,t.translationService);if(g.length>2){let p=g[2];return dB({delimiterTag:p,targetText:e.targetText,inline:s,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:i,ctx:t}).html}else{let p=fx(m,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return p.html}}function G4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function dB(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),x=p[C-1]===" ",T=p[C+v.length]===" ",S=v.match(b);if(!S)return v;let w=S[1],A=Number(w);if(isNaN(A))return v;let D=o[Number(A)];if(D&&D.type==="element"){let M=ct.sanitize(D.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return x||(M=" "+M),T||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return x||(M=" "+M),T||(M=M+" "),M}else k.error("variable type not supported",D,v);return v}));let y=tu(l,n,r||[],s),h=nu(l);return Y4({targetWrapperTag:a,innerClassList:h,classList:y,html:p,targetElementEffectAttributeName:os,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function Y4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1">  `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function $4(e){let t=e[e.length-1];return t?t.text:""}function tu(e,t,n=[],r){let a=["notranslate"];return r&&a.push(K2),e&&(a.push(`${P}-target-translation-theme-${e}`),t?a.push(`${ep}-theme-${e}`):a.push(`${Xg}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(ep):a.push(Xg),a}function nu(e){let t=["notranslate",o0];return e&&t.push(`${P}-target-translation-theme-${e}-inner`),t}function fx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Io(n.config.translationServices,n.translationService,!0),g="afterend",p=m[0],f=m[1],b=`${p}(\\d+)${f}`,y=new RegExp(b,"g"),h=u;o.length>0&&(h=h.replace(y,x=>{let T=h.indexOf(x),S=h[T-1]===" ",w=h[T+x.length]===" ",D=x.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(D);if(isNaN(M))return x;let R=o[M];if(R&&R.type==="element"){let _=ct.sanitize(R.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return S||(_=" "+_),w||(_=_+" "),_}else k.error("variable type not supported",R,x);return x}));let v=tu(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(V2);let C=nu(i);return Y4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:h,targetElementEffectAttributeName:os,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function at(e){Rf({type:"success",text:e})}function bt(e){Rf({type:"error",text:e})}var Z4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function lm(e,t,n){let[r]=O(()=>typeof t=="function"?t():t),[a]=O(n),[i,o]=O(r),[s,u]=O(!1),[l,c]=O("");q(()=>{Z4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=ue(g=>{let p=typeof g=="function"?g(i):g;k.debug("new settings",p),Z4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function cm(e,t,n){let r=[];return function(){let[i,o,s,u]=lm(e,t,n),l=ue(c=>{for(let m of r)m(c)},[]);return q(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function hx(e,t){return cm(e,t,"local")}function bx(e,t){return cm(e,t,"sync")}var mB="userConfig",gB=null,pB=bx(mB,gB);function Ne(e){let[t,n,r,a]=pB(),[i,o]=O();q(()=>{(async function(){let u=await Hd();o(u)})()},[t]);let s=ue(async u=>{let l=typeof u=="function"?u(i):u;l&&J4(l);let{userConfig:c,promptPool:m,objectPool:g}=await w4(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(m).length,m),k.debug("objectPool size",JSON.stringify(g).length,g),await Yr(Ud,m),await Yr(jd,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function J4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Ie=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=cv(a,c,m)}catch(y){if(r)for(let h=0;hy));let g=[],p=[],f=(y,h,v)=>{let C="";if(h.translatedTexts&&h.translatedTexts[0]&&(C=h.translatedTexts[0]),p[y]||(p[y]=h,p[y].translatedTexts=Array(h.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let S=v instanceof z?new z(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,h?.callback?.(S,null,h.sentence);return}p[y].translatedTexts[h.partIndex]=C;let x=p[y],T=0;for(let S=0;S{let T=h.from;if(h.fromByClient&&h.fromByClient!=="auto"&&(T=h.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:h.tempSentences.map(w=>w.text),forces:h.tempSentences.map(w=>w.force),xpaths:h.tempSentences.map(w=>w.xpath||""),from:T,to:h.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:h.tempSentences};{let S=W2;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(S=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Ma(this.serviceConfig);if(h.tempSentences.forEach((U,V)=>{let Y=P4({text:U.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:h.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);U.force!==!0&&(Y&&Y.text&&Y.text.trim().lengthV.text);return Promise.resolve({sourceTempSentences:h.tempSentences,text:U,from:T,to:h.to})}let M="";w&&w.length>=2?M=A.map((U,V)=>{let{item:Y}=U;return V===A.length-1?Y.text:Y.text+w[0]+(V+1)+w[1]}).join(""):M=A.map(({item:U})=>U.text).join(S);let R=await this.translate({text:M,from:T,to:h.to,url:v,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o,inArticleContext:h.inArticleContext}),{text:_}=R,B=[];if(w&&w.length>=2){let U=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(U=w[2]);let V=new RegExp(U,"g");B=_.split(V)}else B=_.split(S);let L=[];if(B.length>A.length){for(let U=0;UU.text);return D=Ma(this.serviceConfig,!0),L.forEach((U,V)=>{let Y=A[V],ae=Y.index,_e=Y.variables||{};Object.keys(_e).length>0&&(U=_4({text:U,delimiters:D,variables:_e},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),N[ae]=U}),{sourceTempSentences:h.tempSentences,text:N,from:R.from,to:R.to}}};g.push(x().then(T=>{let{text:S,sourceTempSentences:w}=T;for(let A=0;A{if(T instanceof z&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let S=0;S{let h=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(h=y.translatedTexts.join("")),{...y.sentence,text:h}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Ma(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=P4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Ma(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=_4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ge({text:t,minLength:18,pageLangs:[Lt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var ru="input is invalid type",Q4=typeof window=="object",Gi=Q4?window:{};Gi.JS_SHA256_NO_WINDOW&&(Q4=!1);var fB=!Q4&&typeof self=="object",hB=!Gi.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;hB?Gi=global:fB&&(Gi=self);var wae=!Gi.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Eae=typeof define=="function"&&define.amd,Yl=!Gi.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ye="0123456789abcdef".split(""),bB=[-2147483648,8388608,32768,128],na=[24,16,8,0],dm=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],mm=["hex","array","digest","arrayBuffer"],Tn=[];(Gi.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Yl&&(Gi.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var yx=function(e,t){return function(n){return new Sn(t,!0).update(n)[e]()}},Cx=function(e){var t=yx("hex",e);t.create=function(){return new Sn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Sn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=bB[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Sn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,b,y,h,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,b=a&i^~a&o,p=s+m+b+dm[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),h=r&e,g=h^r&t^y,b=s&a^~s&i,p=o+m+b+dm[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^h,b=o&s^~o&a,p=i+m+b+dm[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,b=i&o^~i&s,p=a+m+b+dm[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Sn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=ye[e>>28&15]+ye[e>>24&15]+ye[e>>20&15]+ye[e>>16&15]+ye[e>>12&15]+ye[e>>8&15]+ye[e>>4&15]+ye[e&15]+ye[t>>28&15]+ye[t>>24&15]+ye[t>>20&15]+ye[t>>16&15]+ye[t>>12&15]+ye[t>>8&15]+ye[t>>4&15]+ye[t&15]+ye[n>>28&15]+ye[n>>24&15]+ye[n>>20&15]+ye[n>>16&15]+ye[n>>12&15]+ye[n>>8&15]+ye[n>>4&15]+ye[n&15]+ye[r>>28&15]+ye[r>>24&15]+ye[r>>20&15]+ye[r>>16&15]+ye[r>>12&15]+ye[r>>8&15]+ye[r>>4&15]+ye[r&15]+ye[a>>28&15]+ye[a>>24&15]+ye[a>>20&15]+ye[a>>16&15]+ye[a>>12&15]+ye[a>>8&15]+ye[a>>4&15]+ye[a&15]+ye[i>>28&15]+ye[i>>24&15]+ye[i>>20&15]+ye[i>>16&15]+ye[i>>12&15]+ye[i>>8&15]+ye[i>>4&15]+ye[i&15]+ye[o>>28&15]+ye[o>>24&15]+ye[o>>20&15]+ye[o>>16&15]+ye[o>>12&15]+ye[o>>8&15]+ye[o>>4&15]+ye[o&15];return this.is224||(u+=ye[s>>28&15]+ye[s>>24&15]+ye[s>>20&15]+ye[s>>16&15]+ye[s>>12&15]+ye[s>>8&15]+ye[s>>4&15]+ye[s&15]),u};Sn.prototype.toString=Sn.prototype.hex;Sn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Sn.prototype.array=Sn.prototype.digest;Sn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function gm(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(ru);if(Yl&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Yl||!ArrayBuffer.isView(e)))throw new Error(ru)}else throw new Error(ru);e.length>64&&(e=new Sn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Sn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}gm.prototype=new Sn;gm.prototype.finalize=function(){if(Sn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sn.prototype.finalize.call(this)}};var au=Cx();au.sha256=au;au.sha224=Cx(!0);au.sha256.hmac=xx();au.sha224.hmac=xx(!0);var Tx=au;var Sx=Tx.sha256;function dr(e){return Promise.resolve(Sx(e))}function iu(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Ar(e,t){let n=Sx.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function wx(e,t){let n=await Ar(e,t);return iu(n)}async function pm(e,t){let n=yB(t),r=await Ar(e,n);return iu(r)}function yB(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Ex=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Zl=class e extends Ie{static langMap=new Map(Ex);maxTextGroupLength=50;static langMapReverse=new Map(Ex.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new z("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await dr(a)].join(` `),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await dr(c)].join(` -`),p=await Ax(m,`TC3${n}`),f=await fm(i,p),h=await fm("tc3_request",f),y=await fm(g,h),b=await X({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new z(b.Response.Error.Message);return b}};var Dx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],CB={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Ql=class e extends Re{static langMap=new Map(Dx);static langMapReverse=new Map(Dx.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await X({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:CB,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var Lx=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Xl=class e extends Re{static langMap=new Map(Lx);static langMapReverse=new Map(Lx.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new z("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new z("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await X({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function xB(e,t){return t?e+(t-e%t):e}function TB(e,t){return e.split(t).length-1}function X4(e){let t=Date.now(),n=1;for(let r of e)n+=TB(r,"i");return xB(t,n)}function SB(e,t){return Math.floor(Math.random()*(t-e+1))+e}function eh(){return SB(1e6,1e8)}var th="https://www2.deepl.com/jsonrpc",nh="auto",Mx=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function wB(e=Mx){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function rh(e){return wB()[e.toLowerCase()]}var EB={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function AB(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function kB(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function DB(e,t,n,r,a,i,o){let s=eh(),u=kB(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=X4(t);let c=await X({retry:2,method:"POST",url:e,body:AB(u),headers:EB}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function Px(e,t,n,r=nh,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:DB(e,t,rh(n),rh(r)??"auto",a,i,o):{text:[],from:r,to:n}}var _x=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ou=class e extends Re{static langMap=new Map(_x);static langMapReverse=new Map(_x.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=th;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Ft(th,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await Px(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var ec=class e extends Re{static langMap=new Map(u4);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=oi.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Te(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=Rx());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await X({url:yd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new z(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Te(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=Rx()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await X({url:yd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new z(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return oi.detectLanguageRemotelyByTransmart(t)}};function Rx(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function ah(){return Math.random()>=.001}var su=class extends Re{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!ah())throw new z("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Nv(),!ah())throw new z("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var Fx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],ih=new Map(Fx),Ix=new Map(Fx.map(([e,t])=>[t,e])),oh=class e extends Re{static langMap=ih;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new z("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await X({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:ih.get(r)||"auto",target_lang:ih.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:Ix.get(o.source_lang),to:Ix.get(o.target_lang)}}else throw new z(i.msg)}},hm=oh;var sh="https://{s}bing.com",jx=sh+"/translator",LB=sh+"/ttranslatev3",MB=sh+"/tspellcheckv3",bm="bingGlobalConfig",Hx=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Bx=new Map(Hx),Ox=new Map(Hx.map(([e,t])=>[t,e])),Nx=1e3,aa,uu;function uh(e,t){return e.replace("{s}",t?t+".":"")}async function PB(){if(!aa){let n=await j.storage.local.get(bm);return n&&(aa=n[bm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=aa;return Date.now()-e>t}async function Ux(){let e,t,n,r,a,i,o,s,u,l;try{let c=uh(jx,e),m=await X({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return aa={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[bm]:aa}),aa}function _B(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=aa;return uh(e?MB:LB,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+aa.count++:"")}function RB(e,t,n,r){let{token:a,key:i}=aa,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function qx(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Nx)throw new Error(`The supported maximum length of text is ${Nx}. Please shorten the text.`);uu||(uu=Ux()),await uu,await PB()&&(uu=Ux(),await uu),t=t||"auto",n=n||"zh-CN",t=Bx.get(t)||t,n=Bx.get(n)||n;let a=_B(!1),i=RB(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:uh(jx,aa.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await X({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(aa=null,uu=null,await j.storage.local.remove(bm),c.ShowCaptcha)throw new Error(` +`),p=await wx(m,`TC3${n}`),f=await pm(i,p),b=await pm("tc3_request",f),y=await pm(g,b),h=await X({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new z(h.Response.Error.Message);return h}};var Ax=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],vB={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Jl=class e extends Ie{static langMap=new Map(Ax);static langMapReverse=new Map(Ax.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await X({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:vB,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var kx=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Ql=class e extends Ie{static langMap=new Map(kx);static langMapReverse=new Map(kx.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new z("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new z("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await X({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function CB(e,t){return t?e+(t-e%t):e}function xB(e,t){return e.split(t).length-1}function X4(e){let t=Date.now(),n=1;for(let r of e)n+=xB(r,"i");return CB(t,n)}function TB(e,t){return Math.floor(Math.random()*(t-e+1))+e}function eh(){return TB(1e6,1e8)}var th="https://www2.deepl.com/jsonrpc",nh="auto",Dx=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function SB(e=Dx){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function rh(e){return SB()[e.toLowerCase()]}var wB={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function EB(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function AB(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function kB(e,t,n,r,a,i,o){let s=eh(),u=AB(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=X4(t);let c=await X({retry:2,method:"POST",url:e,body:EB(u),headers:wB}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function Lx(e,t,n,r=nh,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:kB(e,t,rh(n),rh(r)??"auto",a,i,o):{text:[],from:r,to:n}}var Mx=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ou=class e extends Ie{static langMap=new Map(Mx);static langMapReverse=new Map(Mx.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=th;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Ft(th,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await Lx(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var Xl=class e extends Ie{static langMap=new Map(u4);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ii.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Te(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=Px());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await X({url:bd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new z(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Te(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=Px()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await X({url:bd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new z(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ii.detectLanguageRemotelyByTransmart(t)}};function Px(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function ah(){return Math.random()>=.001}var su=class extends Ie{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!ah())throw new z("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Bv(),!ah())throw new z("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var Rx=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],ih=new Map(Rx),_x=new Map(Rx.map(([e,t])=>[t,e])),oh=class e extends Ie{static langMap=ih;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new z("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await X({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:ih.get(r)||"auto",target_lang:ih.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:_x.get(o.source_lang),to:_x.get(o.target_lang)}}else throw new z(i.msg)}},fm=oh;var sh="https://{s}bing.com",Nx=sh+"/translator",DB=sh+"/ttranslatev3",LB=sh+"/tspellcheckv3",hm="bingGlobalConfig",Ux=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Ix=new Map(Ux),Fx=new Map(Ux.map(([e,t])=>[t,e])),Bx=1e3,ra,uu;function uh(e,t){return e.replace("{s}",t?t+".":"")}async function MB(){if(!ra){let n=await j.storage.local.get(hm);return n&&(ra=n[hm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=ra;return Date.now()-e>t}async function Ox(){let e,t,n,r,a,i,o,s,u,l;try{let c=uh(Nx,e),m=await X({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return ra={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[hm]:ra}),ra}function PB(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=ra;return uh(e?LB:DB,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+ra.count++:"")}function _B(e,t,n,r){let{token:a,key:i}=ra,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function jx(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Bx)throw new Error(`The supported maximum length of text is ${Bx}. Please shorten the text.`);uu||(uu=Ox()),await uu,await MB()&&(uu=Ox(),await uu),t=t||"auto",n=n||"zh-CN",t=Ix.get(t)||t,n=Ix.get(n)||n;let a=PB(!1),i=_B(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:uh(Nx,ra.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await X({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(ra=null,uu=null,await j.storage.local.remove(hm),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:Ox.get(g.language),to:Ox.get(m.to)}}function $i(e){return e!=null}function Vx(e,t,n){return`${e.type}#${t}#${n}`}function Kx(e,t,n,r,a){return{body:a,id:r,type:Vx(e,t,n)}}function IB(e,t,n,r){return{id:n,response:r,type:Vx(e,"ask",t)}}function Gx(e,t,n,r){if($i(r)){let a=r.type;if($i(a)&&$i(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function FB(e,t,n){if($i(n)){let r=n.type;if($i(r)&&$i(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function BB(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function OB(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;FB(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function NB(e,t,n,r){let a=i=>{let o=i.data;Gx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function zx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Gx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(IB(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function UB(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(Kx(t,"tell",n,i,r),a)}async function Wx(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await OB(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(Kx(n,"ask",r,s,a),i),u}var Yi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;zx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if($i(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Wx(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(NB(this.thisWindow,this.protocol,t,n))}tell(t,n){UB(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(zx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Wx(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){BB(this.listeners)}};var $x;async function Yx(){if(Tt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Yi.iframe(l0,"*",{targetWindow:t});$x=n,await Yi.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function Zx(){return $x}var ym=new Map;async function lh(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Tr(e.body)),ym.has(t))return ym.get(t);let n=X(e);ym.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{ym.delete(t)},3e3)}}async function Jx(e){return lh(e)}async function Ba(e){if(Tt()){let n=Zx();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return lh(e)}else return lh(e)}function Qx(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function Cm(e){await zf(e)}async function Oa(e,t){let n=await Hf(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return vm(e,t)}return vm(e,t)}async function vm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await qf(e,n,i-1e3),n}var jB=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],ch=new Map(jB),ia=class extends Re{static langMap=ch;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await Cm(Kg)}async translate(t){let{text:n,from:r,to:a}=t;return n?await qx(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Oa(Kg,async()=>{let t=await Ba({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return Qx(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=ch.get(n)||"auto",o=ch.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await X({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new z("Microsoft translate error "+JSON.stringify(m))}};var HB=["chinese","english","japanese","korean","french","spanish","deutsch"],Na={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},xm=e=>Na.chinese.test(e),qB=e=>Na.english.test(e),zB=e=>Na.japanese.test(e),WB=e=>Na.korean.test(e),VB=e=>Na.french.test(e),KB=e=>Na.deutsch.test(e),GB=e=>Na.spanish.test(e),Goe={chinese:Wr(xm),english:Wr(qB),japanese:Wr(zB),korean:Wr(WB),french:Wr(VB),spanish:Wr(GB),deutsch:Wr(KB)},Xx=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,$oe=new RegExp(`^(\\d|\\s|${Xx.source})+$`),$B=new RegExp(`${Na.chinese.source}|${Na.japanese.source}|${Na.korean.source}`),Yoe=Wr(e=>(e.replace(new RegExp(Xx,"g")," ").replace(new RegExp($B,"g")," x ").match(/\S+/g)||"").length),Zoe=[...HB,"others","matchAll"];var t8=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],tc=new Map(t8),YB=new Map(t8.map(([e,t])=>[t,e])),dh=class extends Re{static langMap=tc;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=lt;immersiveTranslateDeeplProApiUrl=lt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new z("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new z("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new z("authKey are required");if(!this.authKey)throw new z("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ft(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ft(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ft(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ft(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ft(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:tc.get(n)||"",target_lang:tc.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:tc.get(n)||"auto",target_lang:tc.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let h,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?h=await X({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await X({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await X({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>mh(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},g=await new ia({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&YB.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!Ca()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},lu=dh;function mh(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&xm(t[0])&&e8(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&xm(t[t.length-1])&&e8(t,"\u300A")==1?t+"\u300B":ZB(e,t)}function ZB(e,t){let n=e?.richIdName;return!n||!FC(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function e8(e,t){return e.split(t).length-1}var JB=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],gh=new Map(JB),ph=class extends Re{static langMap=gh;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new z("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:gh.get(r)||r,to:gh.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await X(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new z(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},n8=ph;var QB=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],fh=new Map(QB),hh=class extends Re{static langMap=fh;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new z("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:fh.get(a)||a};r!=="auto"&&(i.from=fh.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await X(c);if(m.length===0)throw new z("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},r8=hh;var XB=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],cu=new Map(XB),bh=class extends Re{static langMap=cu;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:Fx.get(g.language),to:Fx.get(m.to)}}function $i(e){return e!=null}function zx(e,t,n){return`${e.type}#${t}#${n}`}function Wx(e,t,n,r,a){return{body:a,id:r,type:zx(e,t,n)}}function RB(e,t,n,r){return{id:n,response:r,type:zx(e,"ask",t)}}function Vx(e,t,n,r){if($i(r)){let a=r.type;if($i(a)&&$i(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function IB(e,t,n){if($i(n)){let r=n.type;if($i(r)&&$i(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function FB(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function BB(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;IB(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function OB(e,t,n,r){let a=i=>{let o=i.data;Vx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function Hx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Vx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(RB(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function NB(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(Wx(t,"tell",n,i,r),a)}async function qx(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await BB(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(Wx(n,"ask",r,s,a),i),u}var Yi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;Hx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if($i(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await qx(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(OB(this.thisWindow,this.protocol,t,n))}tell(t,n){NB(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Hx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return qx(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){FB(this.listeners)}};var Kx;async function Gx(){if(Tt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Yi.iframe(u0,"*",{targetWindow:t});Kx=n,await Yi.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function $x(){return Kx}var bm=new Map;async function lh(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=xr(e.body)),bm.has(t))return bm.get(t);let n=X(e);bm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{bm.delete(t)},3e3)}}async function Yx(e){return lh(e)}async function Fa(e){if(Tt()){let n=$x();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return lh(e)}else return lh(e)}function Zx(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function vm(e){await zf(e)}async function Ba(e,t){let n=await Hf(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return ym(e,t)}return ym(e,t)}async function ym(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await qf(e,n,i-1e3),n}var UB=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],ch=new Map(UB),aa=class extends Ie{static langMap=ch;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await vm(Vg)}async translate(t){let{text:n,from:r,to:a}=t;return n?await jx(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Ba(Vg,async()=>{let t=await Fa({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return Zx(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=ch.get(n)||"auto",o=ch.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await X({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new z("Microsoft translate error "+JSON.stringify(m))}};var jB=["chinese","english","japanese","korean","french","spanish","deutsch"],Oa={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},Cm=e=>Oa.chinese.test(e),HB=e=>Oa.english.test(e),qB=e=>Oa.japanese.test(e),zB=e=>Oa.korean.test(e),WB=e=>Oa.french.test(e),VB=e=>Oa.deutsch.test(e),KB=e=>Oa.spanish.test(e),$oe={chinese:zr(Cm),english:zr(HB),japanese:zr(qB),korean:zr(zB),french:zr(WB),spanish:zr(KB),deutsch:zr(VB)},Jx=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,Yoe=new RegExp(`^(\\d|\\s|${Jx.source})+$`),GB=new RegExp(`${Oa.chinese.source}|${Oa.japanese.source}|${Oa.korean.source}`),Zoe=zr(e=>(e.replace(new RegExp(Jx,"g")," ").replace(new RegExp(GB,"g")," x ").match(/\S+/g)||"").length),Joe=[...jB,"others","matchAll"];var Xx=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ec=new Map(Xx),$B=new Map(Xx.map(([e,t])=>[t,e])),dh=class extends Ie{static langMap=ec;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=lt;immersiveTranslateDeeplProApiUrl=lt+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new z("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new z("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new z("authKey are required");if(!this.authKey)throw new z("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ft(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ft(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ft(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ft(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ft(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:ec.get(n)||"",target_lang:ec.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:ec.get(n)||"auto",target_lang:ec.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let b,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?b=await X({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await X({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await X({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>mh(this.serviceConfig,c.text,r));if(s){let c=this.serviceConfig||{},g=await new aa({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&$B.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!va()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},lu=dh;function mh(e,t="",n){if(!n.startsWith("zh")||t.length>200)return t;let r=t.indexOf("\u300A"),a=t.indexOf("\u300B");return a>r&&r>=0?t:r<0&&a>0&&a<80&&Cm(t[0])&&Qx(t,"\u300B")==1?"\u300A"+t:a<0&&r>0&&t.length-r<80&&Cm(t[t.length-1])&&Qx(t,"\u300A")==1?t+"\u300B":YB(e,t)}function YB(e,t){let n=e?.richIdName;return!n||!RC(t)||!t.includes(n)||t.endsWith(">")?t:t+">"}function Qx(e,t){return e.split(t).length-1}var ZB=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],gh=new Map(ZB),ph=class extends Ie{static langMap=gh;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new z("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:gh.get(r)||r,to:gh.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await X(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new z(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},e8=ph;var JB=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],fh=new Map(JB),hh=class extends Ie{static langMap=fh;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new z("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:fh.get(a)||a};r!=="auto"&&(i.from=fh.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await X(c);if(m.length===0)throw new z("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},t8=hh;var QB=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],cu=new Map(QB),bh=class extends Ie{static langMap=cu;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!cu.get(r)?(i=(await X({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||cu.get(r)||r,target:cu.get(a)||a})):u.body=JSON.stringify({text:s,source:cu.get(r),target:cu.get(a)||a});let l=await X(u);if(l.translatedText==="")throw new z("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},a8=bh;var eO={lang:"en"};function yh(e){let t=Object.assign({},eO,e),[n,r]=O(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var vh=ds(null),Zi=e=>{let{t,setLang:n,lang:r}=yh({lang:e.lang});return d(vh.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function F(){return we(vh)}function i8(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function oa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=tO(e,a)),i||(i=nc(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function tO(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Ch({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function nc(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Ch(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>dt(a,s.matches)&&!dt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function du(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function No(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&di(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&di(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await cn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Br(n),await ur(i)}catch{return!1}return a}async function rc(){return(await Mn()).aiAssistants||[]}async function nO(e,t){(await Promise.allSettled(e.map(r=>X({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&No("add",a,t)}})}async function xh(e,t,n=!0){e||(e=await Ze()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await Th();i=await aO(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&nO(o,t)}var sa=Bn(xh,1500);function di(e){return Da(nr(),e.extensionVersion)}function rO(e,t){return t?!Da(e.version,t):!1}function aO(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{rO(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function Th(){return(await X({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function Sh(e){return await X({url:`${E.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function Tm(){let[e,t]=O(void 0),[n,r]=O(!1),{t:a}=F(),i=ue(async()=>{try{let s=await rc();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=ue(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await Sh(s);if(di(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await No(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return q(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var iO=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function s8(e,t,n,r,a){let i={...t},o=Ch(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,du({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=i8(i,i.langOverrides,n),o||iO.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await Av();i.contextTerms=s}return i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,h=g||"zh-CN",y=mu(t,o),b=mu(t,f),v=s,C=Object.keys(u);for(let Z of C){let Ee=u[Z];if(mu(t,Ee)){v=Z;break}}let x=l,T=Object.keys(c);for(let Z of T){let Ee=c[Z];if(Ee&&mu(t,Ee)){x=Z;break}}let w=mu(t,m),S=o8(t,m);S||(S=dt(t,Y2)),S||(S=dt(t,n.blockUrls));let A=o8(t,n.inputTranslationUrlPattern);A||(A=dt(t,n.inputTranslationBlockUrls));let D=dt(t,n.mutationBlockUrls),M=Object.keys(p),R={};for(let Z of M){let Ee=p[Z];if(Ee&&Ee.matches)for(let Ct of Ee.matches)R[Ct]=Z}let _=Object.keys(R),B=k4(t,_);B&&(i=R[B]??"auto",R[B]&&R[B]!=="auto"&&Sr(R[B]));let L=a.hostname,N=await dr(L),U=a.pathname+a.search+a.hash,V=await dr(U),Y=`https://${N}.com/${V}`,ae=await _t(),_e=await Vs(),xe=n.translationStartMode,H=sO(ae,n);ae.aiAssistants=uO(H,n),xe==="dynamic"&&b&&(xe="immediate");let W=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(W=n.inputTranslationService);let ee=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(ee=n.mouseHoverTranslationService);let Me=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Me=n.subtitleTranslateService);let ve=await nt.get(pt,null),Xe=!1;ve&&(Xe=kt(ve)),n.platform=La();let J={targetLanguage:h,config:n,translationService:v,inputTranslationService:W,mouseHoverTranslationService:ee,subtitleTranslateService:Me,isTranslateUrl:w,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:S,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:Y,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},localConfig:ae};ve&&(J.user=ve,Xe?J.isPro=!0:J.isPro=!1),J.state.translationArea==="body"&&(J.config.generalRule.excludeTags=J.config.generalRule.excludeTags.filter(Z=>!J.config.generalRule.bodyTranslateTags.includes(Z)),J.config.generalRule.additionalExcludeSelectors=J.config.generalRule.additionalExcludeSelectors.filter(Z=>Z!==".btn"));let ce=n.translationServices[J.translationService]||{};ce.immediateTranslationTextCount!==void 0&&oO(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(J.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),J.translationService==="deepl"&&(ce?.authKey?.startsWith("immersive_")||ce?.provider==="pro"&&J.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(J.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(J.state.translationDebounce=ce.translationDebounce);let he=_e.immediateTranslationTextCount;n.immediateTranslationTextCount!==he&&(J.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,ke;globalThis.PDFViewerApplication?ke=pe.find(Z=>Z.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?ke=pe.find(Z=>Z.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?ke=pe.find(Z=>Z.pageType=="ebookBuilder"):ke=pe.find(Z=>mu(t,Z)),ke&&ke.pageType==="ebookBuilder"&&(J.state.translationStartMode="immediate");let We=n.generalRule;if(ke&&(J.rule=Ul(We,ke),J.rule=rC(n,J.rule,ke)),J.rule.selectors.length>0&&(J.rule.paragraphMinTextCount=2,J.rule.paragraphMinWordCount=1),J.state.translationArea==="body"&&J.rule.excludeTags&&(J.rule.excludeTags=J.rule.excludeTags.filter(Z=>!J.rule.bodyTranslateTags.includes(Z)&&!J.rule.forceTranslateTags.includes(Z))),J.rule.mainFrameSelector){let Z=document.querySelector(J.rule.mainFrameSelector);Z&&(J.mainFrame=Z)}return J}function mu(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&dt(e,r)?!1:n&&n.length>0&&dt(e,n)?!0:i&&i.length>0&&tm(i)?!1:!!(a&&a.length>0&&tm(a))}function o8(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&dt(e,n)||r&&r.length>0&&tm(r))}function oO(e){return typeof e=="number"}function sO(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function uO(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Ud(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function u8(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!cu.get(r)?(i=(await X({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||cu.get(r)||r,target:cu.get(a)||a})):u.body=JSON.stringify({text:s,source:cu.get(r),target:cu.get(a)||a});let l=await X(u);if(l.translatedText==="")throw new z("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},n8=bh;var XB={lang:"en"};function yh(e){let t=Object.assign({},XB,e),[n,r]=O(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var vh=ds(null),Zi=e=>{let{t,setLang:n,lang:r}=yh({lang:e.lang});return d(vh.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function F(){return we(vh)}function r8(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function di(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=eO(e,a)),i||(i=tc(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function eO(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Ch({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function tc(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Ch(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>dt(a,s.matches)&&!dt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function du(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function No(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&ci(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&ci(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await cn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Fr(n),await lr(i)}catch{return!1}return a}async function nc(){return(await Mn()).aiAssistants||[]}async function tO(e,t){(await Promise.allSettled(e.map(r=>X({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&No("add",a,t)}})}async function xh(e,t,n=!0){e||(e=await Ye()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await Th();i=await rO(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&tO(o,t)}var ia=Fn(xh,1500);function ci(e){return ka(tr(),e.extensionVersion)}function nO(e,t){return t?!ka(e.version,t):!1}function rO(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{nO(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function Th(){return(await X({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function Sh(e){return await X({url:`${E.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function xm(){let[e,t]=O(void 0),[n,r]=O(!1),{t:a}=F(),i=ue(async()=>{try{let s=await nc();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=ue(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await Sh(s);if(ci(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await No(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return q(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var aO=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];async function i8(e,t,n,r,a){let i={...t},o=Ch(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,du({...o,env:s}))}if(i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=r8(i,i.langOverrides,n),o||aO.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),t.extends?.includes("ai")){let s=await wv();i.contextTerms=s}return i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,b=g||"zh-CN",y=mu(t,o),h=mu(t,f),v=s,C=Object.keys(u);for(let Z of C){let Ee=u[Z];if(mu(t,Ee)){v=Z;break}}let x=l,T=Object.keys(c);for(let Z of T){let Ee=c[Z];if(Ee&&mu(t,Ee)){x=Z;break}}let S=mu(t,m),w=a8(t,m);w||(w=dt(t,G2)),w||(w=dt(t,n.blockUrls));let A=a8(t,n.inputTranslationUrlPattern);A||(A=dt(t,n.inputTranslationBlockUrls));let D=dt(t,n.mutationBlockUrls),M=Object.keys(p),R={};for(let Z of M){let Ee=p[Z];if(Ee&&Ee.matches)for(let Ct of Ee.matches)R[Ct]=Z}let _=Object.keys(R),B=k4(t,_);B&&(i=R[B]??"auto",R[B]&&R[B]!=="auto"&&Tr(R[B]));let L=a.hostname,N=await dr(L),U=a.pathname+a.search+a.hash,V=await dr(U),Y=`https://${N}.com/${V}`,ae=await _t(),_e=await Vs(),xe=n.translationStartMode,H=oO(ae,n);ae.aiAssistants=sO(H,n),xe==="dynamic"&&h&&(xe="immediate");let W=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(W=n.inputTranslationService);let ee=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(ee=n.mouseHoverTranslationService);let Me=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Me=n.subtitleTranslateService);let ve=await nt.get(pt,null),Xe=!1;ve&&(Xe=kt(ve)),n.platform=Da();let J={targetLanguage:b,config:n,translationService:v,inputTranslationService:W,mouseHoverTranslationService:ee,subtitleTranslateService:Me,isTranslateUrl:S,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:Y,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},localConfig:ae};ve&&(J.user=ve,Xe?J.isPro=!0:J.isPro=!1),J.state.translationArea==="body"&&(J.config.generalRule.excludeTags=J.config.generalRule.excludeTags.filter(Z=>!J.config.generalRule.bodyTranslateTags.includes(Z)),J.config.generalRule.additionalExcludeSelectors=J.config.generalRule.additionalExcludeSelectors.filter(Z=>Z!==".btn"));let ce=n.translationServices[J.translationService]||{};ce.immediateTranslationTextCount!==void 0&&iO(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(J.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),J.translationService==="deepl"&&(ce?.authKey?.startsWith("immersive_")||ce?.provider==="pro"&&J.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(J.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(J.state.translationDebounce=ce.translationDebounce);let he=_e.immediateTranslationTextCount;n.immediateTranslationTextCount!==he&&(J.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,ke;globalThis.PDFViewerApplication?ke=pe.find(Z=>Z.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?ke=pe.find(Z=>Z.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?ke=pe.find(Z=>Z.pageType=="ebookBuilder"):ke=pe.find(Z=>mu(t,Z)),ke&&ke.pageType==="ebookBuilder"&&(J.state.translationStartMode="immediate");let ze=n.generalRule;if(ke&&(J.rule=Nl(ze,ke),J.rule=tC(n,J.rule,ke)),J.rule.selectors.length>0&&(J.rule.paragraphMinTextCount=2,J.rule.paragraphMinWordCount=1),J.state.translationArea==="body"&&J.rule.excludeTags&&(J.rule.excludeTags=J.rule.excludeTags.filter(Z=>!J.rule.bodyTranslateTags.includes(Z)&&!J.rule.forceTranslateTags.includes(Z))),J.rule.mainFrameSelector){let Z=document.querySelector(J.rule.mainFrameSelector);Z&&(J.mainFrame=Z)}return J}function mu(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&dt(e,r)?!1:n&&n.length>0&&dt(e,n)?!0:i&&i.length>0&&em(i)?!1:!!(a&&a.length>0&&em(a))}function a8(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&dt(e,n)||r&&r.length>0&&em(r))}function iO(e){return typeof e=="number"}function oO(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function sO(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Nd(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function o8(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` -`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var wh=class extends Re{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` +`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var wh=class extends Ie{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=Ps()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?ad(l,s):`${s}${g0}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,m=u.get(i)||i,g=this.serviceConfig.env||{};g={...g};let p=s?.sourceProgram,f=["subtitle","videoSubtitle"].includes(p),h=[r];s?.rawTextArrayLength&&(h=r.split(this.translationTextSeparator)),h.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),f&&this.subtitlePrompt&&h.length>1&&(l=this.subtitlePrompt);let y="",b="",v=l.includes("{{json}}"),C=l.includes("{{yaml}}");if(Kd(r)&&this.isRichTranslate?g.content_type="html":g.html_only="",v){let M=[],R=g.imt_json_item||"";f&&(R=g.imt_subtitle_json_item||R);for(let _=0;__==="from"?c:_==="to"?m+" Language":_==="text"?r:_=="json"?y:_=="yaml"?b:g[_]===""?"":g[_]||R).replace(/{{(.+?)}}/g,(R,_)=>g[_]||R)}}async rawRequest(t){return await X(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";contextTerms=void 0;enableContextDiffPreview=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),this.enableContextDiffPreview=r.enableContextDiffPreview,t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs),t.contextTerms&&(this.contextTerms=t.contextTerms)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let n=Ps()?.queryEnable;if(t.inArticleContext&&this.contextTerms&&(this.enableContextDiffPreview||n)){let a=await Promise.all([this._translate(t,this.contextTerms),this._translate(t,void 0)]),i=a[0]?.text.split(this.translationTextSeparator)||[],o=a[1]?.text.split(this.translationTextSeparator).map((s,u)=>{let l=i[u];return this.enableContextDiffPreview?rd(l,s):`${s}${m0}${l}`}).join(this.translationTextSeparator);return{from:a[0]?.from,to:a[0]?.to,text:o}}else if(t.inArticleContext&&this.contextTerms)return await this._translate(t,this.contextTerms);return await this._translate(t,void 0)}async _translate(t,n){let{text:r,from:a,to:i,inArticleContext:o,options:s}=t;if(r.length===0)return{from:a,to:i,text:""};let u=this.getLangMap(),l=this.prompt||"",c=u.get(a)||a,m=u.get(i)||i,g=this.serviceConfig.env||{};g={...g};let p=s?.sourceProgram,f=["subtitle","videoSubtitle"].includes(p),b=[r];s?.rawTextArrayLength&&(b=r.split(this.translationTextSeparator)),b.length>1&&this.multiplePrompt&&(l=this.multiplePrompt),f&&this.subtitlePrompt&&b.length>1&&(l=this.subtitlePrompt);let y="",h="",v=l.includes("{{json}}"),C=l.includes("{{yaml}}");if(Vd(r)&&this.isRichTranslate?g.content_type="html":g.html_only="",v){let M=[],R=g.imt_json_item||"";f&&(R=g.imt_subtitle_json_item||R);for(let _=0;__==="from"?c:_==="to"?m+" Language":_==="text"?r:_=="json"?y:_=="yaml"?h:g[_]===""?"":g[_]||R).replace(/{{(.+?)}}/g,(R,_)=>g[_]||R)}}async rawRequest(t){return await X(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;a`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;s`\`${s}\``).join(", "),k.debug("addContextTermsToOptionParams contextTerms","\u3010terms\u3011",o.join(", "),` [theme]`,n.imt_theme,` -\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Tr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Ji=wh;function lO(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var cO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],l8=new Map(cO),Eh=class extends Ji{static langMap=l8;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=lt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new z("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new z("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ft(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return l8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Tr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!lu.langMap.has(n.to)||!lu.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new lu(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},c8=Eh;function Pn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function dO(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Le(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Qi(e,t){return e<>>32-t}function Ua(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function gu(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function d8(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function pu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ja(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var m8={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Pn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,h="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return Ua(a(g,r),t)},this.b64=function(g){return Ha(a(g),n)},this.any=function(g,p){return ja(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return Ua(i(g,p),t)},this.b64_hmac=function(g,p){return Ha(i(g,p),n)},this.any_hmac=function(g,p,f){return ja(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Pn(g):g,d8(o(pu(g),g.length*8))}function i(g,p){var f,h,y,b,v;for(g=r?Pn(g):g,p=r?Pn(p):p,f=pu(g),f.length>16&&(f=o(f,g.length*8)),h=Array(16),y=Array(16),v=0;v<16;v+=1)h[v]=f[v]^909522486,y[v]=f[v]^1549556828;return b=o(h.concat(pu(p)),512+p.length*8),d8(o(y.concat(b),512+128))}function o(g,p){var f,h,y,b,v,C=1732584193,x=-271733879,T=-1732584194,w=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return h=o(g.concat(mi(c)),512+c.length*8),gu(o(p.concat(h),512+160))}function o(l,c){var m,g,p,f,h,y,b,v,C=Array(80),x=1732584193,T=-271733879,w=-1732584194,S=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(A=C(A,x.length*8));S<16;S+=1)D[S]=A[S]^909522486,M[S]=A[S]^1549556828;return w=C(D.concat(mi(T)),512+T.length*8),gu(C(M.concat(w),512+256))}function s(x,T){return x>>>T|x<<32-T}function u(x,T){return x>>>T}function l(x,T,w){return x&T^~x&w}function c(x,T,w){return x&T^x&w^T&w}function m(x){return s(x,2)^s(x,13)^s(x,22)}function g(x){return s(x,6)^s(x,11)^s(x,25)}function p(x){return s(x,7)^s(x,18)^u(x,3)}function f(x){return s(x,17)^s(x,19)^u(x,10)}function h(x){return s(x,28)^s(x,34)^s(x,39)}function y(x){return s(x,14)^s(x,18)^s(x,41)}function b(x){return s(x,1)^s(x,8)^u(x,7)}function v(x){return s(x,19)^s(x,61)^u(x,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(x,T){var w=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],S=new Array(64),A,D,M,R,_,B,L,N,U,V,Y,ae;for(x[T>>5]|=128<<24-T%32,x[(T+64>>9<<4)+15]=T,U=0;U32&&(x=s(x,y.length*8));C<32;C+=1)T[C]=x[C]^909522486,w[C]=x[C]^1549556828;return v=s(T.concat(mi(b)),1024+b.length*8),gu(s(w.concat(v),1024+512))}function s(y,b){var v,C,x,T=new Array(80),w=new Array(16),S=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),R=new u(0,0),_=new u(0,0),B=new u(0,0),L=new u(0,0),N=new u(0,0),U=new u(0,0),V=new u(0,0),Y=new u(0,0),ae=new u(0,0),_e=new u(0,0),xe=new u(0,0),H=new u(0,0),W=new u(0,0),ee=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)T[C]=new u(0,0);for(y[b>>5]|=128<<24-(b&31),y[(b+128>>10<<5)+31]=b,x=y.length,C=0;C>>v|b.h<<32-v,y.h=b.h>>>v|b.l<<32-v}function m(y,b,v){y.l=b.h>>>v|b.l<<32-v,y.h=b.l>>>v|b.h<<32-v}function g(y,b,v){y.l=b.l>>>v|b.h<<32-v,y.h=b.h>>>v}function p(y,b,v){var C=(b.l&65535)+(v.l&65535),x=(b.l>>>16)+(v.l>>>16)+(C>>>16),T=(b.h&65535)+(v.h&65535)+(x>>>16),w=(b.h>>>16)+(v.h>>>16)+(T>>>16);y.l=C&65535|x<<16,y.h=T&65535|w<<16}function f(y,b,v,C,x){var T=(b.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535),w=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(T>>>16),S=(b.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(w>>>16),A=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(S>>>16);y.l=T&65535|w<<16,y.h=S&65535|A<<16}function h(y,b,v,C,x,T){var w=(b.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535)+(T.l&65535),S=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(T.l>>>16)+(w>>>16),A=(b.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(T.h&65535)+(S>>>16),D=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(T.h>>>16)+(A>>>16);y.l=w&65535|S<<16,y.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Ua(u(h,r))},this.b64=function(h){return Ha(u(h,r),n)},this.any=function(h,y){return ja(u(h,r),y)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,y){return Ua(l(h,y))},this.b64_hmac=function(h,y){return Ha(l(h,y),n)},this.any_hmac=function(h,y,b){return ja(l(h,y),b)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?Pn(h):h,c(m(pu(h),h.length*8))}function l(h,y){h=r?Pn(h):h,y=r?Pn(y):y;var b,v,C=pu(h),x=Array(16),T=Array(16);for(C.length>16&&(C=m(C,h.length*8)),b=0;b<16;b+=1)x[b]=C[b]^909522486,T[b]=C[b]^1549556828;return v=m(x.concat(pu(y)),512+y.length*8),c(m(T.concat(v),512+160))}function c(h){var y,b="",v=h.length*32;for(y=0;y>5]>>>y%32&255);return b}function m(h,y){var b,v,C,x,T=1732584193,w=4023233417,S=2562383102,A=271733878,D=3285377520,M,R,_,B,L,N,U,V,Y,ae;for(h[y>>5]|=128<>>9<<4)+14]=y,x=h.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new z("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new m8.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(h=>{let b=Object.keys(h).sort().map(v=>`${this.encode(v)}=${this.encode(h[v])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await X({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new z(f.Message);return f}};var mO=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],rn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Ah=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},kh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Ah(t);if(r)return Array.isArray(n)?`${r}=${n.map(Ah).sort().join(`&${r}=`)}`:`${r}=${Ah(n)}`}).filter(t=>t).join("&"),fu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${rn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[rn.tokenHeader]=t.sessionToken),a[rn.dateHeader]=r,a[rn.notSignBody]="",a[rn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[rn.algorithmKey]=rn.algorithm,a[rn.signHeadersKey]="",a[rn.signQueriesKey]=void 0,a[rn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[rn.signQueriesKey]=Object.keys(a).sort().join(";"),a[rn.signatureKey]=s,kh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[rn.dateHeader]=n,t.sessionToken&&(this.request.headers[rn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[rn.contentSha256Header]=await dr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return iu(await kr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(rn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +\u3010text\u3011`,r))}n.imt_theme||(n.summary_prompt="",n.imt_theme=""),n.imt_terms||(n.terms_prompt="",n.imt_terms=""),n.summary_prompt&&t&&(n.summary_prompt=n.sub_summary_prompt),n.terms_prompt&&t&&(n.terms_prompt=n.sub_terms_prompt)}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){return{}}filterContent(t,n,r,a=[]){let i=n;if(i?.startsWith(r)&&(i=i.replace(r,"").trim()),i&&this.ignoreResReges&&this.ignoreResReges.length)try{this.ignoreResReges.some(s=>new RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Ji=wh;function uO(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var lO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],s8=new Map(lO),Eh=class extends Ji{static langMap=s8;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=lt+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new z("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new z("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ft(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return s8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!lu.langMap.has(n.to)||!lu.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new lu(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},u8=Eh;function Pn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function cO(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Le(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Qi(e,t){return e<>>32-t}function Na(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function gu(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function l8(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function pu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Ua(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var c8={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Pn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,b="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return Na(a(g,r),t)},this.b64=function(g){return ja(a(g),n)},this.any=function(g,p){return Ua(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return Na(i(g,p),t)},this.b64_hmac=function(g,p){return ja(i(g,p),n)},this.any_hmac=function(g,p,f){return Ua(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Pn(g):g,l8(o(pu(g),g.length*8))}function i(g,p){var f,b,y,h,v;for(g=r?Pn(g):g,p=r?Pn(p):p,f=pu(g),f.length>16&&(f=o(f,g.length*8)),b=Array(16),y=Array(16),v=0;v<16;v+=1)b[v]=f[v]^909522486,y[v]=f[v]^1549556828;return h=o(b.concat(pu(p)),512+p.length*8),l8(o(y.concat(h),512+128))}function o(g,p){var f,b,y,h,v,C=1732584193,x=-271733879,T=-1732584194,S=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return b=o(g.concat(mi(c)),512+c.length*8),gu(o(p.concat(b),512+160))}function o(l,c){var m,g,p,f,b,y,h,v,C=Array(80),x=1732584193,T=-271733879,S=-1732584194,w=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(A=C(A,x.length*8));w<16;w+=1)D[w]=A[w]^909522486,M[w]=A[w]^1549556828;return S=C(D.concat(mi(T)),512+T.length*8),gu(C(M.concat(S),512+256))}function s(x,T){return x>>>T|x<<32-T}function u(x,T){return x>>>T}function l(x,T,S){return x&T^~x&S}function c(x,T,S){return x&T^x&S^T&S}function m(x){return s(x,2)^s(x,13)^s(x,22)}function g(x){return s(x,6)^s(x,11)^s(x,25)}function p(x){return s(x,7)^s(x,18)^u(x,3)}function f(x){return s(x,17)^s(x,19)^u(x,10)}function b(x){return s(x,28)^s(x,34)^s(x,39)}function y(x){return s(x,14)^s(x,18)^s(x,41)}function h(x){return s(x,1)^s(x,8)^u(x,7)}function v(x){return s(x,19)^s(x,61)^u(x,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(x,T){var S=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),A,D,M,R,_,B,L,N,U,V,Y,ae;for(x[T>>5]|=128<<24-T%32,x[(T+64>>9<<4)+15]=T,U=0;U32&&(x=s(x,y.length*8));C<32;C+=1)T[C]=x[C]^909522486,S[C]=x[C]^1549556828;return v=s(T.concat(mi(h)),1024+h.length*8),gu(s(S.concat(v),1024+512))}function s(y,h){var v,C,x,T=new Array(80),S=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),R=new u(0,0),_=new u(0,0),B=new u(0,0),L=new u(0,0),N=new u(0,0),U=new u(0,0),V=new u(0,0),Y=new u(0,0),ae=new u(0,0),_e=new u(0,0),xe=new u(0,0),H=new u(0,0),W=new u(0,0),ee=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)T[C]=new u(0,0);for(y[h>>5]|=128<<24-(h&31),y[(h+128>>10<<5)+31]=h,x=y.length,C=0;C>>v|h.h<<32-v,y.h=h.h>>>v|h.l<<32-v}function m(y,h,v){y.l=h.h>>>v|h.l<<32-v,y.h=h.l>>>v|h.h<<32-v}function g(y,h,v){y.l=h.l>>>v|h.h<<32-v,y.h=h.h>>>v}function p(y,h,v){var C=(h.l&65535)+(v.l&65535),x=(h.l>>>16)+(v.l>>>16)+(C>>>16),T=(h.h&65535)+(v.h&65535)+(x>>>16),S=(h.h>>>16)+(v.h>>>16)+(T>>>16);y.l=C&65535|x<<16,y.h=T&65535|S<<16}function f(y,h,v,C,x){var T=(h.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535),S=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(T>>>16),w=(h.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(S>>>16),A=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(w>>>16);y.l=T&65535|S<<16,y.h=w&65535|A<<16}function b(y,h,v,C,x,T){var S=(h.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535)+(T.l&65535),w=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(T.l>>>16)+(S>>>16),A=(h.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(T.h&65535)+(w>>>16),D=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(T.h>>>16)+(A>>>16);y.l=S&65535|w<<16,y.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return Na(u(b,r))},this.b64=function(b){return ja(u(b,r),n)},this.any=function(b,y){return Ua(u(b,r),y)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,y){return Na(l(b,y))},this.b64_hmac=function(b,y){return ja(l(b,y),n)},this.any_hmac=function(b,y,h){return Ua(l(b,y),h)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?Pn(b):b,c(m(pu(b),b.length*8))}function l(b,y){b=r?Pn(b):b,y=r?Pn(y):y;var h,v,C=pu(b),x=Array(16),T=Array(16);for(C.length>16&&(C=m(C,b.length*8)),h=0;h<16;h+=1)x[h]=C[h]^909522486,T[h]=C[h]^1549556828;return v=m(x.concat(pu(y)),512+y.length*8),c(m(T.concat(v),512+160))}function c(b){var y,h="",v=b.length*32;for(y=0;y>5]>>>y%32&255);return h}function m(b,y){var h,v,C,x,T=1732584193,S=4023233417,w=2562383102,A=271733878,D=3285377520,M,R,_,B,L,N,U,V,Y,ae;for(b[y>>5]|=128<>>9<<4)+14]=y,x=b.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new z("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new c8.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(v=>`${this.encode(v)}=${this.encode(b[v])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await X({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new z(f.Message);return f}};var dO=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],rn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Ah=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},kh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=Ah(t);if(r)return Array.isArray(n)?`${r}=${n.map(Ah).sort().join(`&${r}=`)}`:`${r}=${Ah(n)}`}).filter(t=>t).join("&"),fu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${rn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[rn.tokenHeader]=t.sessionToken),a[rn.dateHeader]=r,a[rn.notSignBody]="",a[rn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[rn.algorithmKey]=rn.algorithm,a[rn.signHeadersKey]="",a[rn.signQueriesKey]=void 0,a[rn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[rn.signQueriesKey]=Object.keys(a).sort().join(";"),a[rn.signatureKey]=s,kh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[rn.dateHeader]=n,t.sessionToken&&(this.request.headers[rn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[rn.contentSha256Header]=await dr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return iu(await Ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(rn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=kh(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new z(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await dr(t)}async hexEncodedBodyHash(){return this.request.headers[rn.contentSha256Header]?this.request.headers[rn.contentSha256Header]:this.request.body?await this.hexEncodedHash(kh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return mO.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await kr(n,`${rn.kDatePrefix}${t.secretKey}`),o=await kr(r,i),s=await kr(a,o);return kr(rn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,rn.v4Identifier].join("/")}};var p8=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Dh=new Map(p8),gO=new Map(p8.map(([e,t])=>[t,e])),Lh=class extends Re{static langMap=Dh;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new z("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new fu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await X({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new z(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new z(s.Code,s.Message)}else throw new z("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Dh.get(r),o={TargetLanguage:Dh.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new fu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await X({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=gO.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new z(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new z(m.Code,m.Message)}else throw new z("response: "+JSON.stringify(c))}},f8=Lh;var h8=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Mh=new Map(h8),pO=new Map(h8.map(([e,t])=>[t,e])),ic=class extends Re{static langMap=Mh;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Mh.get(r)||"detect",o=Mh.get(a)||a,u=await X({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=pO.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new z(l.status_code.toString(),l.status_message)}}};var fO=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ph=new Map(fO),oc=class extends Re{static langMap=Ph;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new z("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Ph.get(r)||r,target_lang:Ph.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await X({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:mh(this.serviceConfig,u.data,a),from:r,to:a};throw new z(u.message||u.message||"API Error")}};var b8=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],_h=new Map(b8),hO=new Map(b8.map(([e,t])=>[t,e])),Rh=class extends Re{static langMap=_h;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new z("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Tr(a+o+n+i);this.domain&&(l=Tr(a+o+n+this.domain+i));let c=new URLSearchParams({from:_h.get(s)||"auto",to:_h.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await X({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new z("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,h=p.map(({dst:b})=>b);return{from:hO.get(f)||f,to:u,text:h.join(` -`)}}},y8=Rh;var Uo=class extends Re{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new z(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ol(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new z("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new z(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ol(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),h=o[p];return f==="random"?bO(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return oi.detectLanguageRemotelyByTransmart(t)}};function bO(e){let t=Math.floor(Math.random()*e.length);return e[t]}var v8=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Ih=class extends Uo{static langMap=new Map(v8);constructor(t,n,r,a){if(!t?.token)throw new z("token are required");super({...t,isSupportList:!0,langs:v8,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},C8=Ih;var yO=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Sm=new Map(yO),Fh=class extends Re{static langMap=Sm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!Sm.get(a))throw new z(`Unsupported language: ${a}`);if(r==="auto")throw new z("Unsupported language: auto");let o=n;return{text:(await X({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Sm.get(r)||"auto"}2${Sm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},x8=Fh;var T8=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Bh=new Map(T8),vO=new Map(T8.map(([e,t])=>[t,e]));function CO(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Oh=class extends Re{static langMap=Bh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new z("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=xO(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+CO(n)+i+o+this.appSecret,u=await dr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Bh.get(r)||"auto",to:Bh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await X({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new z(JSON.stringify(g));let p=g.l,[f,h]=p.split("2");return{text:g.translation.join(` -`),from:vO.get(f),to:a}}};function xO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Uh=class extends Re{static langMap=Nh;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Nh.get(r)||"auto",to:Nh.get(a)||a},o=new URLSearchParams(i),s=await X({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new z("Youdao translation failed: "+JSON.stringify(s))}},E8=Uh;var sc=class extends Uo{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ss,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var jh=class extends Ji{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new z("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new z("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},wm=jh;var A8=P+"-gemini-fake-user-key",TO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],k8=new Map(TO),Hh=class extends wm{static langMap=k8;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=lt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return k8}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Eo(A8,""),this.fakeId||(this.fakeId=SO(10),await Ao(A8,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new z("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function SO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ba({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":zh.get(r)+"-"}${zh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await X({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var AO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],P8=new Map(AO),lc=class extends Ji{static langMap=P8;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Oa($g+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ba({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return P8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(vm($g+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new z("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new z(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var kO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],_8=new Map(kO),mr=class extends Ji{static langMap=_8;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return _8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var Em=class extends mr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new z(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await kr(t,"TC3"+this.secret_key),a=await kr(this.service,r),i=await kr("tc3_request",a),o=await kr(n,i);return iu(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await dr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await dr(t)}async hexEncodedBodyHash(){return this.request.headers[rn.contentSha256Header]?this.request.headers[rn.contentSha256Header]:this.request.body?await this.hexEncodedHash(kh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return dO.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Ar(n,`${rn.kDatePrefix}${t.secretKey}`),o=await Ar(r,i),s=await Ar(a,o);return Ar(rn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,rn.v4Identifier].join("/")}};var m8=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Dh=new Map(m8),mO=new Map(m8.map(([e,t])=>[t,e])),Lh=class extends Ie{static langMap=Dh;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new z("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new fu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await X({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new z(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new z(s.Code,s.Message)}else throw new z("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=Dh.get(r),o={TargetLanguage:Dh.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new fu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await X({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=mO.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new z(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new z(m.Code,m.Message)}else throw new z("response: "+JSON.stringify(c))}},g8=Lh;var p8=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Mh=new Map(p8),gO=new Map(p8.map(([e,t])=>[t,e])),ac=class extends Ie{static langMap=Mh;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=Mh.get(r)||"detect",o=Mh.get(a)||a,u=await X({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=gO.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new z(l.status_code.toString(),l.status_message)}}};var pO=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ph=new Map(pO),ic=class extends Ie{static langMap=Ph;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new z("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Ph.get(r)||r,target_lang:Ph.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await X({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:mh(this.serviceConfig,u.data,a),from:r,to:a};throw new z(u.message||u.message||"API Error")}};var f8=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],_h=new Map(f8),fO=new Map(f8.map(([e,t])=>[t,e])),Rh=class extends Ie{static langMap=_h;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new z("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=xr(a+o+n+i);this.domain&&(l=xr(a+o+n+this.domain+i));let c=new URLSearchParams({from:_h.get(s)||"auto",to:_h.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await X({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new z("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,b=p.map(({dst:h})=>h);return{from:fO.get(f)||f,to:u,text:b.join(` +`)}}},h8=Rh;var Uo=class extends Ie{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new z(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Bl(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new z("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new z(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Bl(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),b=o[p];return f==="random"?hO(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ii.detectLanguageRemotelyByTransmart(t)}};function hO(e){let t=Math.floor(Math.random()*e.length);return e[t]}var b8=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Ih=class extends Uo{static langMap=new Map(b8);constructor(t,n,r,a){if(!t?.token)throw new z("token are required");super({...t,isSupportList:!0,langs:b8,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},y8=Ih;var bO=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Tm=new Map(bO),Fh=class extends Ie{static langMap=Tm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!Tm.get(a))throw new z(`Unsupported language: ${a}`);if(r==="auto")throw new z("Unsupported language: auto");let o=n;return{text:(await X({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Tm.get(r)||"auto"}2${Tm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},v8=Fh;var C8=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Bh=new Map(C8),yO=new Map(C8.map(([e,t])=>[t,e]));function vO(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Oh=class extends Ie{static langMap=Bh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new z("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=CO(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+vO(n)+i+o+this.appSecret,u=await dr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Bh.get(r)||"auto",to:Bh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await X({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new z(JSON.stringify(g));let p=g.l,[f,b]=p.split("2");return{text:g.translation.join(` +`),from:yO.get(f),to:a}}};function CO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Uh=class extends Ie{static langMap=Nh;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Nh.get(r)||"auto",to:Nh.get(a)||a},o=new URLSearchParams(i),s=await X({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new z("Youdao translation failed: "+JSON.stringify(s))}},S8=Uh;var oc=class extends Uo{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ss,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var jh=class extends Ji{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new z("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new z("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},Sm=jh;var w8=P+"-gemini-fake-user-key",xO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],E8=new Map(xO),Hh=class extends Sm{static langMap=E8;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=lt+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.5-pro-latest",this.initPro(t,r)}getLangMap(){return E8}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Eo(w8,""),this.fakeId||(this.fakeId=TO(10),await Ao(w8,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new z("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function TO(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Fa({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":zh.get(r)+"-"}${zh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await X({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var EO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],L8=new Map(EO),uc=class extends Ji{static langMap=L8;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Ba(Gg+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Fa({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return L8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(ym(Gg+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new z("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new z(t.error_msg);return t?.result?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var AO=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],M8=new Map(AO),mr=class extends Ji{static langMap=M8;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return M8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var wm=class extends mr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new z(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions({systemPrompt:t,finalPrompt:n,payload:r}){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Ar(t,"TC3"+this.secret_key),a=await Ar(this.service,r),i=await Ar("tc3_request",a),o=await Ar(n,i);return iu(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await dr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` `+i}}async getCanonicalRequest(t){let n=await dr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 @@ -5910,47 +5910,47 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var Am=class extends mr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await na()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Oa(A2,async()=>{let t=await Ba({responseType:"json",url:`${lt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Wh=["glm-4-flash"],km=class extends mr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Wh.includes(this.model)&&!this.apiKeys.length)throw new z("apiKey are required");if(!Wh.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await na()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Oa(k2,async()=>{let t=await Ba({responseType:"json",url:`${lt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ia.langMap.has(n.to)||!ia.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ia(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Wh.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var ua={mock:su,mock2:su,custom:sc,google:Xl,transmart:ec,deepl:lu,volc:f8,volcAlpha:ic,bing:ia,tencent:Jl,tenAlpha:Ql,baidu:y8,caiyun:C8,cai:x8,openl:hm,youdao:S8,you:E8,d:ou,dpro:ou,deeplx:oc,niu:n8,azure:r8,openai:c8,gemini:D8,claude:M8,papago:a8,aliyun:ac,yandex:uc,qianfan:lc,"custom-ai":mr,deepseek:mr,"aliyun-bailian":mr,doubao:mr,hunyuan:Em,siliconcloud:Am,lingyiwanwu:mr,zhipu:km};globalThis.TranslationServicesClass=ua;var Xi={};Object.keys(Yr).forEach(e=>{Xi[e]={...Yr[e],class:ua[e]}});function eo(e,t){let n=sr;if(Xi[e]&&Xi[e].class&&Xi[e].class.langMap&&Xi[e].class.langMap.size>0){let r=Xi[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return sr}async function gr(e,t,n){if(!e.text)return e;let r=null,a=await hn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new z("translateFailed","translate failed")}async function R8(e,t){for(let n of e)try{return await gr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Vh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=kt(e.user);await new Xi[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function DO(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function hn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),sa(a,t.localConfig,!1),m=await s8(g,m,{sourceLanguage:DO(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(f&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=LO(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let y=[],b={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,x=kt(t.user),T;try{T=new Xi[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:x,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await T.init()}catch(A){if(n){y.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let R=A instanceof z?new z(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(R,null,M)}}return{sentences:[]}}if(o.cache&&!Ps(a))for(let A of e.sentences){C++;let D=l;l==="openl"&&(D=l+"-"+m.codename||hm.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(D=M+"-"+D);let R=null;try{R=await I0(Bv({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(_){k.warn("query cache DB error, but it's ok",_)}if(R){let _={...A,text:R.translatedText};b.sentences[C]=_,n&&n(null,_,A)}else y.push(A)}else y.push(...e.sentences);let w=y.length;if(v-w>0&&k.debug(`use ${v-w} sentences from cache`),!y.length)return b;let S=await T.multipleTranslate({sentences:y},m,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let R=l;l==="openl"&&(R=l+"-"+m.codename||hm.DEFAULT_CODENAME);let _=T.getCacheKeyPrefix();_&&(R=_+"-"+R),o.cache&&I0(Ov({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:Tr(M.text),service:R}),3e3).catch(B=>{k.warn("set cache DB error",B)})}});for(let A of S?.sentences||[]){let D=b.sentences.findIndex(M=>!M);if(D===-1)throw new z("translateFailed","can not match the result");b.sentences[D]=A}return b}function LO(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function be(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function la(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=F();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Kh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function jo(e){let{t}=F(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=O(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let h=0;he.service&&e.service in ua?ua[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,ua]),p=te(()=>e.service&&e.service in ua?ua[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,ua]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(le,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let h=f.target.value,y=Array.isArray(r)?h.split(","):h;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(le,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Gh(e){let{t}=F(),n=Ce(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===P+"-overlay"&&r(o)};return d("dialog",{id:P+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function Dm(e,t){return t.some(n=>n.label===e)}function I8(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);Dm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);Dm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());Dm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:Dm(r,n)||n.push({label:r,value:r})}),n}var MO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=O(!1),h=Ce(null),y=Ce(null),b=()=>{u||!l&&(qe().any||xr())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||xr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{h.current&&(clearTimeout(h.current),m?.()),f(!1)},x=te(()=>{let S={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(S.maxWidth="200px",o&&(S.width=o+"px"),S.whiteSpace="normal"),c?.width&&(S.width=c.width),c?.maxWidth&&(S.maxWidth=c.maxWidth),c?.whiteSpace&&(S.whiteSpace=c.whiteSpace),S},[i,o,c]),T=te(()=>{let S={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...S,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...S,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...S,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...S,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),w=S=>Vd()?d("div",{style:x,role:"tooltip",children:S}):d("div",{style:x,role:"tooltip",dangerouslySetInnerHTML:{__html:S}});return d("div",{class:a,onMouseEnter:b,onMouseLeave:C,onTouchStart:()=>{l&&b()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:T,children:w(e)})]})},yt=MO;function cc(e){let{disableTipText:t}=e;return e.disabled&&t?d(yt,{text:t,enableMobile:!0,tipStyle:{left:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(F8,{...e})}):d(F8,{...e})}function F8(e){return d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})}function ca(e){let{t}=F(),[n,r]=O(!0),[a,i]=O(!1),[o,s]=O(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,disableTipText:h}=e;p=p??(m.default||"");let y={},b={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(b=u.translationServices[e.service]),b.env){let C=Object.keys(b.env);for(let x=0;xRO(t,m,b),[m,b]);if(e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),q(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[$h(t,m),"\uFF1A"]}),d(Kh,{maxWidth:200,disabled:f,items:m.options.map(C=>({label:`${C.label?t(C.label):C.value}`,value:C.value,selected:p===C.value,onSelected:()=>{if(C.action=="jumpOptions"){let x=C.args||[];Aa(...x);return}g(C.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let C=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[$h(t,m),"\uFF1A"]}),d(Kh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let T=x.label===x.value?x.value:x.label;return{label:t(T),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Gh,{visible:o,value:b.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(T=>{let w=T.translationServices?.[e.service||""];return w?(w.customModels=x,{...T}):T}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=C.includes(p);a&&!x&&g(C[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(jo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(jo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(jo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let C=p,x="";C||(C="#FFFFFF",x="#FFFFFF");let{hex:T,opacity:w}=_O(C);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:S=>{g(S.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:T,style:{opacity:w},disabled:f,onInput:S=>{g(S.target.value)}})]})})}else return m.type=="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d(cc,{id:m.name,checked:p,disableTipText:h,disabled:f,onChange:C=>g(C)}),$h(t,m),PO(t,m,y)]})}):null}}function $h(e,t){if(typeof t.labelKey=="object")return t.labelKey;let n=t.name;return t.label&&(n=t.label),t.labelKey&&(n=e(t.labelKey)),n}function PO(e,t,n){return t.descriptionKey?typeof t.descriptionKey=="object"?d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},children:t.descriptionKey}):d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},dangerouslySetInnerHTML:{__html:e(t.descriptionKey,n)}}):null}function _O(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function RO(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=I8(i,n.customModels||[]),[...i,a]}function B8(e){let{t,lang:n}=F();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function dc(e){let{selectLanguages:t,languages:n}=e,r=te(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d(B8,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function da(e){let{t}=F(),n=Ce(null),{toggleModal:r}=e,a=i=>{i?.target?.id===P+"-overlay"&&r(i)};return d("dialog",{id:P+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function qa(e){let{t}=F(),[n,r]=O([]),[a,i]=O(!1),[o,s]=O(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(le,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function Ho(e){let{t}=F(),[n,r]=O(!1),[a,i]=O(""),[o,s]=O(0);q(()=>{$t("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(da,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(qa,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ma(){let e=["bingGlobalConfig","baiduGlobalConfig",E2,vi];for(let t of e)await j.storage.local.remove(t);Q()||await pv(),await Wf()}function O8(){return Q()?Promise.resolve("0 B"):sd()}var Lm='',N8=` +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var Em=class extends mr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ta()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Ba(w2,async()=>{let t=await Fa({responseType:"json",url:`${lt}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Wh=["glm-4-flash"],Am=class extends mr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Wh.includes(this.model)&&!this.apiKeys.length)throw new z("apiKey are required");if(!Wh.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ta()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Ba(E2,async()=>{let t=await Fa({responseType:"json",url:`${lt}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!aa.langMap.has(n.to)||!aa.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new aa(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Wh.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:su,mock2:su,custom:oc,google:Ql,transmart:Xl,deepl:lu,volc:g8,volcAlpha:ac,bing:aa,tencent:Zl,tenAlpha:Jl,baidu:h8,caiyun:y8,cai:v8,openl:fm,youdao:x8,you:S8,d:ou,dpro:ou,deeplx:ic,niu:e8,azure:t8,openai:u8,gemini:A8,claude:D8,papago:n8,aliyun:rc,yandex:sc,qianfan:uc,"custom-ai":mr,deepseek:mr,"aliyun-bailian":mr,doubao:mr,hunyuan:wm,siliconcloud:Em,lingyiwanwu:mr,zhipu:Am};globalThis.TranslationServicesClass=oa;var Xi={};Object.keys($r).forEach(e=>{Xi[e]={...$r[e],class:oa[e]}});function eo(e,t){let n=ur;if(Xi[e]&&Xi[e].class&&Xi[e].class.langMap&&Xi[e].class.langMap.size>0){let r=Xi[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return ur}async function sa(e,t,n){if(!e.text)return e;let r=null,a=await hn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new z("translateFailed","translate failed")}async function P8(e,t){for(let n of e)try{return await sa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Vh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=kt(e.user);await new Xi[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function kO(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function hn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e?.sentences?.[0]?.to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=await i8(g,m,{sourceLanguage:kO(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(f&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=DO(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let y=[],h={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,x=kt(t.user),T;try{T=new Xi[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:x,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount,enableContextDiffPreview:t.config.enableContextDiffPreview},t.isRichTranslate||!1),await T.init()}catch(A){if(n){y.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let R=A instanceof z?new z(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(R,null,M)}}return{sentences:[]}}if(o.cache&&!Ps(a))for(let A of e.sentences){C++;let D=l;l==="openl"&&(D=l+"-"+m.codename||fm.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(D=M+"-"+D);let R=null;try{R=await R0(Iv({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(_){k.warn("query cache DB error, but it's ok",_)}if(R){let _={...A,text:R.translatedText};h.sentences[C]=_,n&&n(null,_,A)}else y.push(A)}else y.push(...e.sentences);let S=y.length;if(v-S>0&&k.debug(`use ${v-S} sentences from cache`),!y.length)return h;let w=await T.multipleTranslate({sentences:y},m,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let R=l;l==="openl"&&(R=l+"-"+m.codename||fm.DEFAULT_CODENAME);let _=T.getCacheKeyPrefix();_&&(R=_+"-"+R),o.cache&&R0(Fv({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:xr(M.text),service:R}),3e3).catch(B=>{k.warn("set cache DB error",B)})}});for(let A of w?.sentences||[]){let D=h.sentences.findIndex(M=>!M);if(D===-1)throw new z("translateFailed","can not match the result");h.sentences[D]=A}return h}function DO(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function be(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function ua(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=F();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Kh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function jo(e){let{t}=F(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=O(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let b=0;be.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=te(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(le,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let b=f.target.value,y=Array.isArray(r)?b.split(","):b;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(le,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Gh(e){let{t}=F(),n=Ce(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===P+"-overlay"&&r(o)};return d("dialog",{id:P+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function km(e,t){return t.some(n=>n.label===e)}function _8(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);km(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);km(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());km(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:km(r,n)||n.push({label:r,value:r})}),n}var LO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=O(!1),b=Ce(null),y=Ce(null),h=()=>{u||!l&&(qe().any||Cr())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||Cr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{b.current&&(clearTimeout(b.current),m?.()),f(!1)},x=te(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),T=te(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),S=w=>Wd()?d("div",{style:x,role:"tooltip",children:w}):d("div",{style:x,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return d("div",{class:a,onMouseEnter:h,onMouseLeave:C,onTouchStart:()=>{l&&h()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:T,children:S(e)})]})},yt=LO;function lc(e){let{disableTipText:t}=e;return e.disabled&&t?d(yt,{text:t,enableMobile:!0,tipStyle:{left:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(R8,{...e})}):d(R8,{...e})}function R8(e){return d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})}function la(e){let{t}=F(),[n,r]=O(!0),[a,i]=O(!1),[o,s]=O(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,disableTipText:b}=e;p=p??(m.default||"");let y={},h={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(h=u.translationServices[e.service]),h.env){let C=Object.keys(h.env);for(let x=0;x_O(t,m,h),[m,h]);if(e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),q(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[$h(t,m),"\uFF1A"]}),d(Kh,{maxWidth:200,disabled:f,items:m.options.map(C=>({label:`${C.label?t(C.label):C.value}`,value:C.value,selected:p===C.value,onSelected:()=>{if(C.action=="jumpOptions"){let x=C.args||[];Ea(...x);return}g(C.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let C=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[$h(t,m),"\uFF1A"]}),d(Kh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let T=x.label===x.value?x.value:x.label;return{label:t(T),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Gh,{visible:o,value:h.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(T=>{let S=T.translationServices?.[e.service||""];return S?(S.customModels=x,{...T}):T}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=C.includes(p);a&&!x&&g(C[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(jo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(jo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(jo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(jo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let C=p,x="";C||(C="#FFFFFF",x="#FFFFFF");let{hex:T,opacity:S}=PO(C);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:w=>{g(w.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:T,style:{opacity:S},disabled:f,onInput:w=>{g(w.target.value)}})]})})}else return m.type=="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d(lc,{id:m.name,checked:p,disableTipText:b,disabled:f,onChange:C=>g(C)}),$h(t,m),MO(t,m,y)]})}):null}}function $h(e,t){if(typeof t.labelKey=="object")return t.labelKey;let n=t.name;return t.label&&(n=t.label),t.labelKey&&(n=e(t.labelKey)),n}function MO(e,t,n){return t.descriptionKey?typeof t.descriptionKey=="object"?d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},children:t.descriptionKey}):d("small",{class:"my-2",style:{display:"block",color:"var(--muted-color)"},dangerouslySetInnerHTML:{__html:e(t.descriptionKey,n)}}):null}function PO(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function _O(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=_8(i,n.customModels||[]),[...i,a]}function I8(e){let{t,lang:n}=F();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function cc(e){let{selectLanguages:t,languages:n}=e,r=te(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d(I8,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function ca(e){let{t}=F(),n=Ce(null),{toggleModal:r}=e,a=i=>{i?.target?.id===P+"-overlay"&&r(i)};return d("dialog",{id:P+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ha(e){let{t}=F(),[n,r]=O([]),[a,i]=O(!1),[o,s]=O(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(le,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function Ho(e){let{t}=F(),[n,r]=O(!1),[a,i]=O(""),[o,s]=O(0);q(()=>{$t("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(ca,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ha,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function da(){let e=["bingGlobalConfig","baiduGlobalConfig",S2,vi];for(let t of e)await j.storage.local.remove(t);Q()||await mv(),await Wf()}function F8(){return Q()?Promise.resolve("0 B"):od()}var Dm='',B8=` -`,gi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var U8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=",j8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",H8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",q8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function IO(e){let{t}=F(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=O(!1);function s(u,l){u.preventDefault(),o(!0),new Ia(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Yh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=F(),[i,o,s,u]=Oe(),[l,c]=O([]),[m,g]=O(!0),[p,f]=O(!1),[h,y]=O({});q(()=>{n&&v().then(()=>g(!1))},[n]);let b=S=>{S?.target?.id===P+"-overlay"&&t()};function v(){return new Ia(n).listAll().then(A=>{c(A)}).catch(A=>r())}function C(S){if(S.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let A=P+"-config-"+zs()+".json";new Ia(n).uploadConfig(i,A).catch(D=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function x(S,A,D){S.preventDefault(),y({[D]:!0}),new Ia(n).getConfig(A).then(M=>{o(()=>({...M})),rt(a("importSuccess"))}).catch(M=>{k.error(M),bt(a("importFail"))}).finally(()=>y({}))}function T(S,A){new Ia(n).getConfig(S).then(D=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(D,null,2))),M.setAttribute("download",A),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(D=>{k.error("download google config file failed",D),bt(a("downloadFail")+": "+D.message)})}function w(S){S.preventDefault(),o({...i,autoSync:!1}),Ki.revoke(n).then(()=>t())}return d("dialog",{id:P+"-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:S=>{S.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((S,A)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:D=>{D.preventDefault(),T(S.id,S.name)},class:"block truncate w-40 sm:w-auto",children:S.name.replace(P+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(S.modifiedTime).toLocaleString(),",\xA0",Sl(parseInt(S.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":h[A],disabled:h[A],onClick:D=>x(D,S.id,A),children:a("import_hint")}),d(IO,{accessToken:n,id:S.id,listAllFiles:v})]})]},"file"+A))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:w,disabled:m,children:a("revokeAuth")})]})]})})}function za(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=ds([]);function ft(e){let[t,n]=O(null);return q(()=>{Ze().then(r=>{n(r),k.debug("current config",r)})},[]),q(()=>{Ze().then(r=>{n(r)})},[e]),t}function dn(e){let[t,n]=O(null);return q(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function z8(){let[e,t]=O(!1),n=nr();return q(()=>{Q(!0)&&(!n||n=="0.0.0"||za(n,"0.9.0")||t(!0))},[n]),[e,t]}function ga(){let[e,t]=O(null);return q(()=>{_t().then(r=>{t(r)})},[]),[e,r=>{t(r),Dt(r)}]}function Mm(e){let[t,n]=O(null);return q(()=>{nt.get(pt,null).then(r=>{n(r?kt(r):!1)}).catch(r=>{n(!1)})},[]),q(()=>{n(kt(e))},[e]),t}var at=class extends ho{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(k.error("ErrorBoundary",this.error,this.info),d(FO,{error:this.error,info:this.info})):this.props.children}};function FO({error:e,info:t}){let{t:n}=F(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var W8=k;function BO(){let[e,t]=O(null);return q(()=>{Ze().then(n=>{t(n)})},[]),e}function Jh(){let[e,t,n,r,a]=Oe(),i=BO();Je(e,t);let{t:o,setLang:s}=F(),[u,l]=ga();if(!i)return null;return d(at,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!ts()&&d(g,{}),d(p,{config:i})]})});function c(){let f=b=>{b.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Po(),updatedAt:new Date().toISOString()}),Ws().catch(v=>{W8.error("clean local config error",v)}),ma().catch(v=>{W8.error("clean cache error",v)}),rt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},h=b=>{t(()=>({...b}))},y=b=>{b.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let x=C.target,T=new FileReader;T.onload=function(){try{let w=JSON.parse(T.result);h(w),rt(o("successImportConfig"))}catch(w){bt(`Invalid JSON ${w.message}`)}},T.readAsText(x.files[0])},v.click(),document.body.removeChild(v)};return d(le,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[NO,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{if(b.preventDefault(),ts()){let v=Te();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});vo.saveAs(v,P+"-config-"+zs()+".txt")}},role:"button",children:[UO,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,h]=O(!1),[y,b]=O(!1),[v,C]=O(!1),[x,T]=O("");q(()=>{if(_u()&&n){let B=localStorage.getItem(Iu);if(localStorage.removeItem(Iu),B){let L=globalThis.localStorage.getItem(Yg);k.debug("import_export","rawAuthInfoStr",L);let N={},U={},V="";if(L){globalThis.localStorage.removeItem(Yg);try{N=JSON.parse(L),U=N.state||{},V=N.access_token||""}catch(Y){k.error("parse state error",Y)}}if(V&&U&&(Ki.setAuthInfo({access_token:V}),k.debug("import_export","Google OAuth:",N),N)){let Y=N.state;k.debug("state",Y),Y?.mode==="auto"?(b(!0),R(V)):(C(!0),D(V))}}}},[n]);function w(){b(!0),z4({source:globalThis.location.href,mode:"auto"},!0).then(B=>{k.debug("import_export","Google OAuth:"+B),B!==null&&R(B)}).catch(B=>{B&&B.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(B)})}function S(){C(!0),h(!1),z4({source:globalThis.location.href,mode:"manual"},!0).then(B=>{k.debug("import_export","Google OAuth:"+B),B!==null&&D(B)}).catch(B=>{B&&B.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(B)})}function A(){T(""),w()}function D(B){T(B),C(!1),h(!0)}function M(B){b(!1),C(!1),h(!1),t({...e,autoSync:!1}),k.error("import_export","Google OAuth error:"+B),bt(o("authFail"))}function R(B){b(!0),k.debug("sync latest with drive",B,e),T(B),rm(B,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?rt(o("successSyncConfig")):rt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{b(!1)})}function _(B){t({...e,autoSync:B.checked}),B.checked&&w()}return d(le,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:B=>{B.preventDefault(),w()},"aria-busy":y,href:"#",role:"button",children:[y?d(le,{}):V8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:B=>{B.preventDefault(),S()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Yh,{onClose:()=>h(!1),authExpire:A,accessToken:x}):null]})}function p({config:f}){let h=G8(),[y,b]=O(!1),[v,C]=O(""),[x,T]=O(""),{t:w}=F();if(!h||!h.token)return null;let S=kt(h);async function A(){confirm(w("proRightOpenPro"))?window.open(lb):k.debug("\u53D6\u6D88\u4F1A\u5458")}async function D(){if(!S){A();return}try{if(y)return;b(!0),T("");let L=await Pm(h?.token,e,a),N="";switch(L){case"upload":{N=w("successSyncConfigToAccount");break}case"override":{N=w("successSyncConfigInAccount");break}default:N=w("syncConfigNoUpdate")}C(N)}catch(L){C(""),T(L.message)}finally{b(!1)}}let M=ue(L=>{if(!S){A();return}l({...u,proAutoSync:L})},[]),R=ue(L=>{if(!S){A();return}t(N=>({...N,proSyncAPIKey:L}))},[]),_=u?.proAutoSync!=!1,B=e?.proSyncAPIKey!=!1;return S||(_=!1,B=!1),d(le,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:w("syncToAccount")}),d("h6",{class:"!text-sm",children:w("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!_)},checked:_}),w("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),R(!B)},checked:B}),w("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),D()},"aria-busy":y,href:"#",role:"button",children:[V8," ",w("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&!v&&u?.accountLastSyncedAt&&S),children:w("lastSyncedAt",{date:AC(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:je()||S,children:d("span",{dangerouslySetInnerHTML:{__html:w("proRightDescription",{1:$+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!x,children:x})]})}}var OO=Bn(Pm,1e3);async function Pm(e,t,n){try{if(t===null)return"noupdate";let r=await _t();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ni(t.proSyncAPIKey,t);return await Zh(e,c),await Dt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await $8(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),B5(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ni(t.proSyncAPIKey,t);return await Zh(e,u),await Dt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||O5(n)&&OO(n.token,e,t)},[e,n])}function G8(){let[e,t]=O(null);return q(()=>{nt.get(pt,null).then(n=>{t(n)})},[t]),e}function $8(e){return(location.href?.indexOf("popup.html")>0?Or:X)({responseType:"json",url:lt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Zh(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Or:X)({responseType:"json",url:lt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var V8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),NO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),UO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var jO=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${P}-modal-overlay`&&r()},id:`${P}-modal-overlay`,children:d("div",{style:i,children:t})})},Y8=jO;var Qh="Arial",mc=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===Qh.toLowerCase()?!0:Z8(Qh,t).join("")!==Z8(e,t).join("")}catch{return!1}};function Z8(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+Qh,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function Xh(e){let{t}=F(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||tr(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function J8(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",e1(t),"AES-GCM",!0,["encrypt","decrypt"]),a=e1(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:e1(n)},r,a);return HO(i)}catch{return Promise.reject("Encryption failed")}}function HO(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=B.params||{};if(R.os&&(L.os_name=R.os.name||"unknown",L.os_version=R.os.version||"unknown",L.os_version_name=R.os.versionName||"unknown"),R.browser&&(L.browser_name=R.browser.name||"unknown",L.browser_version=R.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),R.platform&&(L.platform_type=R.platform.type||"unknown"),R.engine&&(L.engine_name=R.engine.name||"unknown",L.engine_version=R.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let U=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),U.enableAIContext&&(L.ai_assistant="ai_context"),U&&(U.provider&&(L.translation_service_provider=U.provider),n.translationService==="openai"&&U.provider==="custom"&&(U.apiUrl?U.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),U.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=_d(v);let U=Id(v);L.install_week=`${U.year}${U.week}`}if(n.user){let U=Hy(n.user);U&&Object.keys(U).forEach(V=>{L[V]=U[V]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=S?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let N="html";if(n.rule.pageType&&(N=n.rule.pageType),L.page_type=N,s?L.main_frame=0:L.main_frame=1,!c){let U=n.url;try{let V=new URL(U);L.site_host=V.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),y&&(L.ab_group=y),L.campaign=b||"none",{...B,params:L}});if(i)return;M.forEach(async B=>{let L=await X({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:_})})}),n.config.enableSelfServiceReport&&qO(p,_),n.config.enablePerformanceReport&&VO(n,_)}catch(r){k.debug("report error",r)}}function qO(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};Q8(r);let a=Date.now()+(Math.random()*100).toFixed(0);X({url:Ju,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var zO=Date.now(),WO=["translate_page","translate_video_subtitle"];function VO(e,t){try{t.forEach(async n=>{if(!WO.includes(n.name)||e.config.performanceBlockUrls?.some(l=>dt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};Q8(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-zO},s=await J8(JSON.stringify(o),Cb,xb);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);X({url:Ju,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function Q8(e){return e?.install_day&&(e.install_day=Rd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function t1(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function X8(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}function eT(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_20007_2576)",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),d("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),d("defs",{children:d("clipPath",{id:"clip0_20007_2576",children:d("rect",{width:"16",height:"16",fill:"white"})})})]})}function _m(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function to({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=F(),c=je(),[m,g]=O(!1),[p,f]=O(""),[h,y]=O(""),[b,v,C,x,T]=we(me),w=Mm(i),S=_=>{v(B=>{let L={...B,[n]:_};return n==="translationService"&&(Ne("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${B.translationService}_${_}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},A=te(()=>{if(!t)return[];t.user=i??t.user;let _=Ls(t,n,l);return o?.length&&(_=_.filter(B=>o.find(L=>L==B.id))),_},[t,i,n,l,o]),D=te(()=>{if(e&&t){t.user=i??t.user;let{translationServices:_}=e,B=t[n],L=_?.[B],N=nc(L,t.localConfig.aiAssistants||[]);if(N&&L){let U=du(N);return{...L,...U,aiAssistant:N}}return L?{...L}:{}}return null},[e,t,i]),M=te(()=>{if(e&&t){t.user=i??t.user;let _=t[n];return Ms(t,n,l,_)||null}return null},[e,t,i,l]),R=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(R=!1),d(le,{children:[d("div",{class:"nav",children:[d(be,{title:r||u("service"),description:a||u("select translation service")}),d(KO,{selectService:S,translationServiceItems:A,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!w,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(GO,{verifiedErrorMessage:p}),d($O,{ctx:t,curServiceConfig:D,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:h,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),R&&d("article",{children:[d(r1,{config:e,curServiceItem:M,setSettings:v,isProUser:!!w,t:u}),d(a1,{curServiceItem:M,t:u}),d(i1,{curServiceItem:M,t:u}),d(n1,{currentTranslationServiceItem:M,t:u}),o1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!w,t:u}),s1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!w,t:u})]})]})}function n1({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function KO({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:rd(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function GO({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function $O({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await tt(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await gr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){k.debug("e.status",c.status),k.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){k.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function r1({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(Xh,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function a1({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:ct.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function i1({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function o1({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(le,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l,hidden:c,descriptionKey:m,disableTipText:g}=nT(a,e,t,n,o,i);return d("div",{class:"mt-2",hidden:c,children:[d(ca,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:{...o,descriptionKey:m},value:u,disabled:l,onSetSettings:r,disableTipText:g,onChange:p=>{r(f=>{let h=f.translationServices||{},y=h[n.id]||{};return rT(e,y,o.name,p),{...f,translationServices:{...h,[n.id]:{...y,[o.name]:p}}}})},onFinish:()=>{rt(i("saved"))}},o.name+n.id),d(YO,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function s1({isProUser:e,config:t,curServiceConfig:n,curServiceItem:r,setSettings:a,t:i,forceExpand:o}){if(!n||!t||!r?.optionalProps?.length||!a)return null;let s=r?.id.startsWith("custom-ai"),u=d(le,{children:[d("div",{children:r.optionalProps.map((l,c)=>{let{value:m,disabled:g,hidden:p,descriptionKey:f}=nT(e,t,n,r,l,i);return n?.aiAssistant&&!n?.aiAssistant?.enableRichTranslate&&l.name=="enableRichTranslate"?null:d("div",{class:"mt-2",hidden:p,children:d(ca,{config:t,service:r?.id,disabled:g,field:{...l,descriptionKey:f},value:m,onSetSettings:a,onChange:h=>{a(y=>{let b=y.translationServices||{},v=b[r.id]||{};return rT(t,v,l.name,h),{...y,translationServices:{...b,[r.id]:{...v,[l.name]:h}}}})},onFinish:()=>{rt(i("saved"))}},l.name+r.id+n.assistantId+n.fallbackAssistantId)},"service-item-optional-prop-"+l.name+c)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:l=>{l.preventDefault(),window.confirm(i("confirmResetToDefaultSettings"))&&a(m=>{let g=m.translationServices||{};setTimeout(()=>window.location.reload(),50);let p=g[r.id]||{};if(s){let f=["type","name","extends","apiUrl","APIKEY"];Object.keys(p).forEach(h=>{f.includes(h)||delete p[h]})}else p={};return{...m,translationServices:{...g,[r.id]:p}}})},children:i("resetToDefaultSettings")})]});return o?u:d(le,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[i("moreOptions"),"\xA0\u{1F449}"]}),u]})})}function YO({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=te(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=ue(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ca,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{rt(a("saved"))}})}function tT(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=F(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function nT(e,t,n,r,a,i){let o="",s=a.descriptionKey,u=!1;if(!a)return{value:"",hidden:u,disabled:!1};let l=!1;n.aiAssistant&&["systemPrompt","prompt","multiplePrompt","subtitlePrompt","enableRichTranslate","maxTextGroupLengthPerRequestForSubtitle","maxTextGroupLengthPerRequest","maxTextLengthPerRequest"].includes(a.name)&&(l=!0);let c=n[a.name];return a.name=="enableRichTranslate"&&(t.translationMode=="dual"?c=n.dualEnableRichTranslate??n.enableRichTranslate:t.translationMode=="translation"&&(c=n.translationEnableRichTranslate??n.enableRichTranslate)),a.descriptionKey=="description.enableRichTranslate"&&t.translationMode=="dual"&&n.dualEnableRichTranslate!=null&&n.extends=="ai"&&(a.descriptionKey="description.aiDualEnableRichTranslate"),a.descriptionKey=="description.aiDualEnableRichTranslate"&&t.translationMode=="translation"&&(a.descriptionKey="description.enableRichTranslate"),a.name==="apiUrl"&&r?.id==="openai"&&n?.APIKEY?.startsWith("immersiveopenai_")&&(l=!0,c=`https://openai-api.${et}/v1/chat/completions`),a.name=="placeholderDelimiters"&&(a.default=n.placeholderDelimiters||a.default),a.name=="enableAIContext"&&n.aiAssistant&&(l=!0,o=i("enableAIContext.aiAssistantDisableTips")),a.name=="enableAIContext"&&(a.descriptionLink1=Ku,e||(l=!0,c=!1,o=i("onlyProUseProTooltip",{1:cb+"enableAIContext"}))),a.name=="enableAIContext"&&!Da(nr(),"1.12.1")&&(u=!0),a.name=="enableAIContext"&&(s=d(le,{children:[d("span",{dangerouslySetInnerHTML:{__html:i(a.descriptionKey||"",{1:a.descriptionLink1})}}),d(yt,{containerStyle:{display:"inline-flex"},text:i("description.enableAIContextTip"),tipStyle:{width:200},multiple:!0,enableMobile:!0,children:d(_m,{})})]})),{value:c,hidden:u,disabled:l,descriptionKey:s,disableTipText:o}}function rT(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function aT(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function iT(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function oT(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function sT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function uT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function lT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function cT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var mT=nm();function Rm(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=dn(o);Je(t,n);let[u,l]=z8(),[c,m]=O(null);return q(()=>()=>{$t.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[d(ZO,{}),d(sN,{config:o,user:c,setUser:m}),d(nN,{config:o}),d(to,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(JO,{config:o}),d(hN,{config:o}),d(rN,{config:o}),d(aN,{config:o}),d(iN,{config:o}),d(oN,{config:o}),d(QO,{config:o,ctx:s}),d(tN,{setSettings:n,config:o}),d(Y8,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${P}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function ZO(){let[e,t,n,r,a]=we(me),i=ft(e),{t:o}=F(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Yl({...i,isShowContextMenu:!0}),a({...Po(),updatedAt:new Date().toISOString()}),Ws().catch(c=>{k.error("clean local config error",c)}),ma().catch(c=>{k.error("clean cache error",c)}),rt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ma().then(()=>{rt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(sT,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(uT,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function JO({config:e}){let[t,n,r,a,i]=we(me),{t:o,setLang:s}=F(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(be,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),Q(!0)||setTimeout(()=>{Yl()},200)},children:Vi(Sd,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function QO({config:e,ctx:t}){let{t:n}=F(),r=Oe(),[a,i,o,s,u]=r,[l,c]=O(e.translationTheme),[m,g]=O(e.translationThemePatterns[l]),p=te(()=>mN(l),[l]),f=ue(Bn((v,C)=>{a&&i(x=>{let T=x.translationThemePatterns||{};return{...x,translationTheme:C,translationThemePatterns:{...T,[C]:v}}})},400),[i]),h=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return q(()=>{m&&(Qs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(le,{children:[d(eN,{translationTheme:l,onChange:v=>{let C=v.target;h(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),b(),d(pN,{config:e}),d(XO,{translationThemes:tp,selectedTheme:l,selectDisplay:h})]})})]});function y(){return d(le,{children:d("font",{class:tu(l,!1,[],!1).join(" "),children:d("font",{class:nu(l).join(" "),children:n("sampleTargetText")})})})}function b(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let x=m||{},T=`theme-${l}-${v.name}`,w=px(T)||v.default||void 0,S=x[v.name]||w;return d(ca,{config:e,field:v,value:S,onSetSettings:i,onChange:A=>{g(D=>(Qs(document,l,{...D,[v.name]:A},a.selectTranslationFont),{...D,[v.name]:A}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function XO({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=F();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:tu(a,!1,[],!1).join(" "),children:d("font",{class:nu(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function eN({translationTheme:e,onChange:t}){let{t:n}=F();return d("div",{class:"nav",children:[d(be,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:tp.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function tN({setSettings:e,config:t}){let{t:n}=F(),[r,a]=O(0),[i,o]=O(""),[s,u]=O(!1),l=(g,p,f)=>{u(!s),e(h=>{let y=h.translationThemePatterns||{},b=y[p]||{},v=b.matches||[],C=[...v];return f==="edit"&&(C=Zt(i,v)),C=qn(g,C),{...h,translationThemePatterns:{...y,[p]:{...b,matches:C}}}})},c=(g,p)=>{e(f=>{let h=f.translationThemePatterns||{},y=h[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Zt(C,v)}),{...f,translationThemePatterns:{...h,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(da,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(qa,{urls:gN(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function nN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F();if(!e)return null;let s=l=>{eu({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=eo(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function rN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),{handleTranslationLanguagePatternSelected:s}=gT(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(dc,{title:t("always languages"),description:t("always translate the following languages"),languages:mT,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function aN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),{handleTranslationLanguagePatternSelected:s}=gT(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(dc,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:mT,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function iN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];if(g==="edit"){if(!b[c])return p;b[c]=l}return b=qn(l,b),v=Zt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await _t();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],h=f.filter(b=>b.match!==p),y=!1;h.length!==f.length&&(y=!0),y&&Dt({...m,tempTranslationUrlMatches:[...h]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(h=>{f=Zt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function oN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];return g==="edit"&&(v[c]=l),b=Zt(l,h),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(h=>{f=Zt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function gT(e){return{handleTranslationLanguagePatternSelected:ue((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Zt(r,s.matches),excludeMatches:Zt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Zt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var u1=0,c1;async function pT(e){if(u1>60*10)return null;u1++,nt.refresh(),await tt(300);let t=await nt.get(pt,null);k.debug("loopCheckUser",u1,t),t?(clearTimeout(c1),e(t)):c1=setTimeout(pT.bind(null,e),1500)}function dT(e){let{user:t,lang:n}=e,r=je(),a=t&&t.email===`test@${et}`,{t:i}=F();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=dN(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:$+"accounts/upgrade?type=year&lng="+n,2:$+"accounts/upgrade?type=month&lng="+n}):jy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:$+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:$+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function sN({config:e,user:t,setUser:n}){let{t:r}=F(),a=je(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=we(me),m=e.interfaceLanguage;q(()=>(nt.get(pt,null).then(h=>{h&&(n(h),uN(h.token).then(y=>{let b=y.data;b.token=h.token,nt.set(pt,b),n(b),Oo()}).catch(y=>{Nl(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(c1)}),[]);let g=ue(h=>{h&&h.preventDefault&&h.preventDefault(),t?.token&&lN(t.token).finally(async()=>{await nt.remove(pt),await tt(200),await nt.refresh(),n(null),Oo()})},[t]),p=ue(async h=>{lx()&&(h&&h.preventDefault&&h.preventDefault(),cN(ls),await nt.set(Wu,!0),pT(y=>{Pm(y.token,o,s),n(y),d1?.close(),window.location.reload()}))},[n]),f=t?.avatar||U8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?tr(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(dT,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Dn}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:gi})]}),d("div",{class:"",children:d("a",{href:`${Ti}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:gi})]}),d(dT,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Ti,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):tr(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:X2,onClick:p,children:r(a?"loginForSafari":"login")})]})}function uN(e){return X({responseType:"json",url:lt+"v1/user",method:"get",headers:{token:e}})}function lN(e){return X({responseType:"json",url:lt+"v1/user/logout",method:"delete",headers:{token:e}})}var d1=null;function cN(e){let r=screen.width/2-230,a=screen.height/2-640/2;return d1=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),d1}function dN(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function mN(e){let t=[];return qu[e]&&(t=t.concat(qu[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function gN(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var l1="";function pN({config:e}){let{t}=F(),[n,r]=O(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(fN,{config:e,isOpen:n})]})}function fN({config:e,isOpen:t}){let{t:n}=F(),[r,a]=O([]),[i,o]=O(!1);q(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(h=>mc(h,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(h=>h===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=we(me),g=p=>{p!==l1&&!mc(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let h=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&h&&f.translationThemePatterns&&f.translationThemePatterns[h]&&(y=f.translationThemePatterns[h]),Qs(document,h,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(l1))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let h=n(`font.${p}`);h.startsWith("font.")&&(h=p);let y=p=="none"?l1:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:h},"locale"+f)})})]})}function hN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function an(e){return Se.ASSETS_BASE_URL+e}var Im=!1;function m1(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=dn(o);Je(t,n);let{t:u,lang:l}=F(),c=s&&Ds(s,"translationService",l)||[],m=Bo(),g=te(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),h=Ms(s,"translationService",l,f);return d(vN,{service:f,currentTranslationServiceItem:h,ctx:s})},[m,c]);!Im&&m==="#services"&&(Im=!0),q(()=>()=>Im=!1,[]),q(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Bl(8)}`;if(s?.config.translationServices[f]){p();return}await n(h=>{let y=h.translationServices||{},b=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${b+2}`,{...h,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(Yu,"_blank"),children:d(X8,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(Yu,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(bN,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function bN({data:e,ctx:t}){let{t:n,lang:r}=F(),[a,i,o,s,u]=we(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=te(()=>!!Ja.find(R=>R==e.id),[e]),m=ue(R=>{i(_=>{let B=_.translationServices?.[e.id]||{};return{..._,translationServices:{..._.translationServices,[e.id]:{...B,visible:R.target.checked}}}})},[i]),[g,p]=O(!0),f=()=>{p(!1)},h=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=je(),b=t.isPro,v=l.type==="custom-ai",C=te(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,b,e.id,e.ok]),x=R=>{R.stopPropagation(),R.preventDefault(),t.translationService!==e.id&&(!M()||!w||i(_=>{Ne("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${_.translationService}_${e.id}`}}],t);let B={..._,translationService:e.id};return B.translationServiceChangedbyUserAt=new Date().toISOString(),B}))},T=t.translationService===e.id,w=T||Qf(l,r),S=n("translationServices."+e.id),A=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:P+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:P+"-link"}}),D=e.id;return v&&(S=`${e.name||""} (${n("translationServices.custom-ai")})`,A="",D="custom-ai"),d("div",{class:"service-container","data-selected":T?"true":"false","data-configed":w,onClick:R=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:an(`images/${D}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:S})]}),d(yt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:w,onChange:R=>{m(R)},onClick:R=>R.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:A}}),h&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:x,children:n("setDefault")})]});function M(){let R=!0;return e.ok?R=!0:c||(R=!1),w&&(R=!0),R}}function yN(e,t){let[n,r]=O(!1),[a]=we(me),[i,o]=O("");return[ue(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await gr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function vN({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=ft(a),{t:c}=F(),m=Mm(),g=te(()=>{if(l&&n){let{translationServices:C}=l,x=t?.id||"",T=C?.[x],w=nc(T,n.localConfig.aiAssistants||[]);if(w&&T){let S=du(w);return{...T,...S,aiAssistant:w}}return T?{...T}:{}}return null},[l,n,t,e]),[p,f,h]=yN(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,b=g?.type,v=c("translationServices."+e)+" "+c("setting");if(b){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(le,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!Im){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&h==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),h&&h!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:h}})}),y&&d("article",{children:[d(r1,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(a1,{curServiceItem:t,t:c}),d(i1,{curServiceItem:t,t:c}),d(n1,{currentTranslationServiceItem:t,t:c}),o1({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),s1({isProUser:!!m,config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(tT,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function pa(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var CN=Xt+"assets/uploads/default-oade4Y.png";function hT({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=O(),[i,o]=O(),[s,u]=O(""),{t:l}=F(),[c,m]=O(""),g=ue(()=>m(CN),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:h}=Tm(),y=Oe(),[b,v]=y;Je(b,v);let C=ft(b);q(()=>{Sh(e).then(T=>{a(T),m(T.avatar),o({name:T.i18n[t]?.name||T.name,description:T.i18n[t]?.description||T.description,details:T.i18n[t]?.details||T.details}),u(ct.sanitize(T.i18n[t]?.details||T.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let x=p?.some(T=>T.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${P}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:T=>{if(T.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(yt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:di(r),children:d(g1,{assistantID:e,enable:di(r),handleInstall:f,operateLoading:h,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),x&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(p1,{aiAssistant:r,isInstall:x}),C&&d(le,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(le,{children:xN.map((T,w)=>d("div",{className:"mt-2",children:d(ca,{service:"ai",config:C,field:T,value:r[T.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},w)},"custom-assistants-prop-"+w))})]})]})}function g1({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=F(),o=a?.some(c=>c.id===e),[s,u]=O(!0),l=Ce(null);return q(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(cT,{}):d(lT,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${P}-loading-spinner`})]})]})})}function p1({aiAssistant:e,isInstall:t}){let{t:n}=F(),[r,a,i,o,s]=we(me),u=te(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Ud(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...h],b=u[p];if(e.matches?.find(C=>C===b))y=fT(e.matches||[],h,[b]),y.push(g);else{let C=y.findIndex(x=>x.endsWith(b));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,h)=>{if(h==="edit")return l(g,p);a(y=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...b],C=e.matches?.find(T=>T===g),x=b.find(T=>T.endsWith(g));if(C&&x){if(!x.startsWith("[-]"))return;v=v.filter(T=>T!==x)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=fT(e.matches||[],h,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(Ho,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function fT(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var xN=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function bT(e){let t=Oe(),[n,r]=t;Je(n,r);let a=ft(n),{t:i}=F(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=SN({id:e.assistantID,userConfig:n,setSettings:r}),l=ue(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(le,{children:TN.map((c,m)=>d("div",{class:"mt-2",children:d(ca,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{rt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(p1,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var TN=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function SN({id:e,userConfig:t,setSettings:n}){let{t:r}=F(),a=te(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=ue(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=ue(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var Fm=!1,wN=Xt+"assets/uploads/default-oade4Y.png";function f1(){let[e,t]=O(null),[n,r]=O(!1),[a,i]=O(null),{customAssistants:o,handleAddCustomAiAssistants:s}=AN(),u=te(()=>o.concat((e||[]).sort((v,C)=>{let x=v.priority||1e3,T=C.priority||1e3;return x-T})),[o,e]);q(()=>{(async()=>{try{r(!0);let v=await Th(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Je(c,m);let g=ft(c),p=dn(g),f=p?.config.interfaceLanguage||"zh-CN",h=Bo(),{t:y}=F();q(()=>{xh(void 0,void 0,!0)},[]),!Fm&&h==="#ai"&&(Fm=!0),q(()=>()=>Fm=!1,[]);let b=te(()=>{if(!h.startsWith("#ai/"))return null;let v=h.slice(4);return v.startsWith("custom")?d(bT,{assistantID:v}):d(hT,{assistantID:v,lang:f,hasAssistantsRoute:Fm})},[h,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${P}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(at,{children:d(me.Provider,{value:l,children:[h==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(pa,{image:an("images/assistant_intro.png"),nightImage:an("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${P}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(EN,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${P}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),b]})})}function EN({data:e,lang:t}){let{t:n}=F(),r=e.i18n[t]||e,[a,i]=O(e.avatar),o=ue(()=>i(wN),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=Tm();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(yt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:di(e),children:d(g1,{assistantID:e.id,enable:di(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function AN(){let e=Ce(!1),{t}=F(),[n,r]=Oe();Je(n,r);let a=n?.customAiAssistants||[];return q(()=>{!n||e.current||(async()=>{try{let s=(await rc()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),No("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return k.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Bl(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var ar={};c0.forEach(e=>{e.labelKey&&(ar[e.key]=e.labelKey)});function h1(){let e=Oe(),[t,n,r,a,i]=e;Je(t,n);let[o,s]=O(null),{t:u}=F();if(q(()=>{Ze().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(kN,{config:l}),d(DN,{config:l,ctx:o}),d(LN,{config:l}),d(to,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(MN,{config:l}),d(PN,{config:l}),d(RN,{config:l}),d(_N,{config:l})]})})}function kN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F();return e?d(le,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${Xt}videos/input-translation-demo-202307044.mp4`:`${Xt}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function DN({config:e,ctx:t}){let[n,r,a,i,o]=we(me),{t:s}=F(),u=c=>{r(m=>({...m,inputTargetLanguage:c}))};if(!e)return null;let l=eo(t.inputTranslationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:s("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?s("inputTargetLanguageDescriptionForNoneKey"):s("inputTargetLanguageDescription",{startingKey:ar[e.inputStartingTriggerKey]?s(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),u(c.target.value)},children:Vi(l,12,e.interfaceLanguage).filter(c=>c!=="auto").map((c,m)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Ot(c,e.interfaceLanguage)},"language"+m))})]})}function LN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F();return e?d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function MN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(be,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:c0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function PN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:c0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:$+"docs/input/"})}})]}):null}function _N({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F(),[s,u]=O(!1),l=b=>{u(!s)},[c,m]=O(0),[g,p]=O(""),f=(b,v,C,x)=>{l(C),n(T=>{let w=T.inputTranslationUrlPattern,S=[],A=[];w&&w.matches&&w.excludeMatches&&(S=w.matches,A=w.excludeMatches);let D=[...S],M=[...A];return x==="edit"&&(C==="matches"?D[v]=b:M[v]=b),C==="matches"?(D=qn(b,D),M=Zt(b,A)):(D=Zt(b,S),M=qn(b,M)),{...T,inputTranslationUrlPattern:{...T.inputTranslationUrlPattern,matches:D,excludeMatches:M}}})},h=(b,v)=>{n(C=>{let x=C.inputTranslationUrlPattern,T=[];v==="matches"?x&&x.matches&&(T=x.matches):x&&x.excludeMatches&&(T=x.excludeMatches);let w=[...T];return b.forEach(S=>{w=Zt(S,w)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:w}}})},y=(b,v,C)=>{l(v),p(b),m(C)};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(da,{toggleModal:b=>{b.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(qa,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:h,onEditUrl:y})]}):null}function RN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(be,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function b1(){let e=Oe(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),{t:s}=F(),[u,l]=O({}),[c,m]=O({});return q(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:$+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(UN,{}),d(NN,{}),d(IN,{}),d(FN,{}),d(BN,{}),d(ON,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function IN(){let[e,t,n,r,a]=we(me),{t:i}=F(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),rt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),rt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ +`,gi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=";var O8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=",N8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAn1BMVEUAAADt7vHu7vLu7vLv7+/n5+fFxcXu7vHv7/PHx8eamprt7fLt7fHn5+vGxsbS09Surq6fn5+ZmZmZmZnGxsbGxsbt7/K/v7/Hx8ft7vHGxsaZmZn09vnk5eeqqquenp7p6u3X2NnLy8vU1dbr7O67u7uvr6/o6evh4uPR0dLCwsLAwMDZ2ty9vb6kpaWhoaHe3+HPz8+zs7OkpKTc3d7Gt0R8AAAAGXRSTlMA779wIBDv338gv5+AgHDv7+/v36+gn3BgD0kJmgAAAS1JREFUKM9dkOmSgyAQhNFo7mTvYwYEBa9oorne/9l2hqJSbr4q+NHNdBcjAukyXgBE8SwRU5IYHmwm1iyCCdFMBJbwxDK8B2iKLGjl8VAC+JmEcqzRrmnP5yzrbm93SuOeDQCcpNToGaV8ISGmAfBGPce+qjrsjSxYSbkBGtt1tZGEueLpwsZW8A8snlj2jD0efRZVtxzw4Ia2BFgIch1qOaHCM4lsHHA0WpOpKyk7qX2WWLBhhhxU7grlKlV7I+LyAm+DUplS/sqv2HL5FiDDSio15CQOdHrrl5L6kpqEMOHwTlIiOKu0WIDy5Bfkn3+HJTYXRNdmWXtA1nmJfu1lgRNcQw2encV/2J0I7OdIXM1YIzH/FQ9WX4i1JF4RP1dBDNZ+/S7lx/onDcIfdi8x4pYpSxgAAAAASUVORK5CYII=",U8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA51BMVEUAAABRT2tSUGpRT2tQUHBQUGjwtcxRT2tRUGtST2tSTmrvsMnvt89QUHDqTIpkXHhST2zQobmfdpPrTYrGVoHqS4nwtszvtMzvtc3vr89RT2vwtczASHb09vnIXYbt4OncqMDqTInGVoBbVnHqp8GqiKJlXHfz2+bsrsfkmrfIm7SggpvScZfKaY/q1uDtgKvRiKaNdY/MY4vy7fLy5Ozxydrxw9bhtcjnobzVlK/diam0j6jYfqHVeJyXfJWcd5TrXJOCb4l5aYNvYn3DUXzxzd3kwNDSorrth6/CjqnAeZnNdJaDb4nDaCDkAAAAGnRSTlMA73C/ICDv37+ff3AgEL+AgO/v7+/fr6BgELJb3PQAAAE/SURBVCjPXZHnUsMwEIRlOySkhw66k+24YScx6b0XOu//PJw0mozh+6Efu6ddzYlpqiWrwLlhmTmW5cLiZ4oZyzR4BsNkmhL/R0nPcx6FR6357ZbPuanyKefT62yjn37/cJwPbjeUJnuKNPeFuAaFjXhNgkUXONHDdR6CJIkh8HArlSo1UIUbx6sTEt4CZlfSaLBLOl2YeaixA2irLKrey4AzA4jpXQVG7hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",j8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function RO(e){let{t}=F(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=O(!1);function s(u,l){u.preventDefault(),o(!0),new Ra(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Yh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=F(),[i,o,s,u]=Ne(),[l,c]=O([]),[m,g]=O(!0),[p,f]=O(!1),[b,y]=O({});q(()=>{n&&v().then(()=>g(!1))},[n]);let h=w=>{w?.target?.id===P+"-overlay"&&t()};function v(){return new Ra(n).listAll().then(A=>{c(A)}).catch(A=>r())}function C(w){if(w.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let A=P+"-config-"+zs()+".json";new Ra(n).uploadConfig(i,A).catch(D=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function x(w,A,D){w.preventDefault(),y({[D]:!0}),new Ra(n).getConfig(A).then(M=>{o(()=>({...M})),at(a("importSuccess"))}).catch(M=>{k.error(M),bt(a("importFail"))}).finally(()=>y({}))}function T(w,A){new Ra(n).getConfig(w).then(D=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(D,null,2))),M.setAttribute("download",A),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(D=>{k.error("download google config file failed",D),bt(a("downloadFail")+": "+D.message)})}function S(w){w.preventDefault(),o({...i,autoSync:!1}),Ki.revoke(n).then(()=>t())}return d("dialog",{id:P+"-overlay",onClick:h,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:w=>{w.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((w,A)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:D=>{D.preventDefault(),T(w.id,w.name)},class:"block truncate w-40 sm:w-auto",children:w.name.replace(P+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(w.modifiedTime).toLocaleString(),",\xA0",Tl(parseInt(w.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":b[A],disabled:b[A],onClick:D=>x(D,w.id,A),children:a("import_hint")}),d(RO,{accessToken:n,id:w.id,listAllFiles:v})]})]},"file"+A))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:S,disabled:m,children:a("revokeAuth")})]})]})})}function qa(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=ds([]);function ft(e){let[t,n]=O(null);return q(()=>{Ye().then(r=>{n(r),k.debug("current config",r)})},[]),q(()=>{Ye().then(r=>{n(r)})},[e]),t}function dn(e){let[t,n]=O(null);return q(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function H8(){let[e,t]=O(!1),n=tr();return q(()=>{Q(!0)&&(!n||n=="0.0.0"||qa(n,"0.9.0")||t(!0))},[n]),[e,t]}function ma(){let[e,t]=O(null);return q(()=>{_t().then(r=>{t(r)})},[]),[e,r=>{t(r),Dt(r)}]}function Lm(e){let[t,n]=O(null);return q(()=>{nt.get(pt,null).then(r=>{n(r?kt(r):!1)}).catch(r=>{n(!1)})},[]),q(()=>{n(kt(e))},[e]),t}var it=class extends ho{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(k.error("ErrorBoundary",this.error,this.info),d(IO,{error:this.error,info:this.info})):this.props.children}};function IO({error:e,info:t}){let{t:n}=F(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var q8=k;function FO(){let[e,t]=O(null);return q(()=>{Ye().then(n=>{t(n)})},[]),e}function Jh(){let[e,t,n,r,a]=Ne(),i=FO();Ze(e,t);let{t:o,setLang:s}=F(),[u,l]=ma();if(!i)return null;return d(it,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!ts()&&d(g,{}),d(p,{config:i})]})});function c(){let f=h=>{h.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Po(),updatedAt:new Date().toISOString()}),Ws().catch(v=>{q8.error("clean local config error",v)}),da().catch(v=>{q8.error("clean cache error",v)}),at(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},b=h=>{t(()=>({...h}))},y=h=>{h.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let x=C.target,T=new FileReader;T.onload=function(){try{let S=JSON.parse(T.result);b(S),at(o("successImportConfig"))}catch(S){bt(`Invalid JSON ${S.message}`)}},T.readAsText(x.files[0])},v.click(),document.body.removeChild(v)};return d(le,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[OO,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:h=>{if(h.preventDefault(),ts()){let v=Te();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});vo.saveAs(v,P+"-config-"+zs()+".txt")}},role:"button",children:[NO,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,b]=O(!1),[y,h]=O(!1),[v,C]=O(!1),[x,T]=O("");q(()=>{if(_u()&&n){let B=localStorage.getItem(Iu);if(localStorage.removeItem(Iu),B){let L=globalThis.localStorage.getItem($g);k.debug("import_export","rawAuthInfoStr",L);let N={},U={},V="";if(L){globalThis.localStorage.removeItem($g);try{N=JSON.parse(L),U=N.state||{},V=N.access_token||""}catch(Y){k.error("parse state error",Y)}}if(V&&U&&(Ki.setAuthInfo({access_token:V}),k.debug("import_export","Google OAuth:",N),N)){let Y=N.state;k.debug("state",Y),Y?.mode==="auto"?(h(!0),R(V)):(C(!0),D(V))}}}},[n]);function S(){h(!0),z4({source:globalThis.location.href,mode:"auto"},!0).then(B=>{k.debug("import_export","Google OAuth:"+B),B!==null&&R(B)}).catch(B=>{B&&B.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(B)})}function w(){C(!0),b(!1),z4({source:globalThis.location.href,mode:"manual"},!0).then(B=>{k.debug("import_export","Google OAuth:"+B),B!==null&&D(B)}).catch(B=>{B&&B.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(B)})}function A(){T(""),S()}function D(B){T(B),C(!1),b(!0)}function M(B){h(!1),C(!1),b(!1),t({...e,autoSync:!1}),k.error("import_export","Google OAuth error:"+B),bt(o("authFail"))}function R(B){h(!0),k.debug("sync latest with drive",B,e),T(B),nm(B,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?at(o("successSyncConfig")):at(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{h(!1)})}function _(B){t({...e,autoSync:B.checked}),B.checked&&S()}return d(le,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:B=>{B.preventDefault(),S()},"aria-busy":y,href:"#",role:"button",children:[y?d(le,{}):z8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:B=>{B.preventDefault(),w()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Yh,{onClose:()=>b(!1),authExpire:A,accessToken:x}):null]})}function p({config:f}){let b=V8(),[y,h]=O(!1),[v,C]=O(""),[x,T]=O(""),{t:S}=F();if(!b||!b.token)return null;let w=kt(b);async function A(){confirm(S("proRightOpenPro"))?window.open(sb):k.debug("\u53D6\u6D88\u4F1A\u5458")}async function D(){if(!w){A();return}try{if(y)return;h(!0),T("");let L=await Mm(b?.token,e,a),N="";switch(L){case"upload":{N=S("successSyncConfigToAccount");break}case"override":{N=S("successSyncConfigInAccount");break}default:N=S("syncConfigNoUpdate")}C(N)}catch(L){C(""),T(L.message)}finally{h(!1)}}let M=ue(L=>{if(!w){A();return}l({...u,proAutoSync:L})},[]),R=ue(L=>{if(!w){A();return}t(N=>({...N,proSyncAPIKey:L}))},[]),_=u?.proAutoSync!=!1,B=e?.proSyncAPIKey!=!1;return w||(_=!1,B=!1),d(le,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:S("syncToAccount")}),d("h6",{class:"!text-sm",children:S("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!_)},checked:_}),S("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),R(!B)},checked:B}),S("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),D()},"aria-busy":y,href:"#",role:"button",children:[z8," ",S("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&!v&&u?.accountLastSyncedAt&&w),children:S("lastSyncedAt",{date:wC(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:je()||w,children:d("span",{dangerouslySetInnerHTML:{__html:S("proRightDescription",{1:$+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!x,children:x})]})}}var BO=Fn(Mm,1e3);async function Mm(e,t,n){try{if(t===null)return"noupdate";let r=await _t();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ni(t.proSyncAPIKey,t);return await Zh(e,c),await Dt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await K8(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),I5(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ni(t.proSyncAPIKey,t);return await Zh(e,u),await Dt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||F5(n)&&BO(n.token,e,t)},[e,n])}function V8(){let[e,t]=O(null);return q(()=>{nt.get(pt,null).then(n=>{t(n)})},[t]),e}function K8(e){return(location.href?.indexOf("popup.html")>0?Br:X)({responseType:"json",url:lt+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Zh(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Br:X)({responseType:"json",url:lt+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var z8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),OO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),NO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var UO=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${P}-modal-overlay`&&r()},id:`${P}-modal-overlay`,children:d("div",{style:i,children:t})})},G8=UO;var Qh="Arial",dc=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===Qh.toLowerCase()?!0:$8(Qh,t).join("")!==$8(e,t).join("")}catch{return!1}};function $8(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+Qh,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function Xh(e){let{t}=F(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function Y8(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",e1(t),"AES-GCM",!0,["encrypt","decrypt"]),a=e1(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:e1(n)},r,a);return jO(i)}catch{return Promise.reject("Encryption failed")}}function jO(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=B.params||{};if(R.os&&(L.os_name=R.os.name||"unknown",L.os_version=R.os.version||"unknown",L.os_version_name=R.os.versionName||"unknown"),R.browser&&(L.browser_name=R.browser.name||"unknown",L.browser_version=R.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),R.platform&&(L.platform_type=R.platform.type||"unknown"),R.engine&&(L.engine_name=R.engine.name||"unknown",L.engine_version=R.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let U=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),U.enableAIContext&&(L.ai_assistant="ai_context"),U&&(U.provider&&(L.translation_service_provider=U.provider),n.translationService==="openai"&&U.provider==="custom"&&(U.apiUrl?U.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),U.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=Pd(v);let U=Rd(v);L.install_week=`${U.year}${U.week}`}if(n.user){let U=Uy(n.user);U&&Object.keys(U).forEach(V=>{L[V]=U[V]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let N="html";if(n.rule.pageType&&(N=n.rule.pageType),L.page_type=N,s?L.main_frame=0:L.main_frame=1,!c){let U=n.url;try{let V=new URL(U);L.site_host=V.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),y&&(L.ab_group=y),L.campaign=h||"none",{...B,params:L}});if(i)return;M.forEach(async B=>{let L=await X({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:_})})}),n.config.enableSelfServiceReport&&HO(p,_),n.config.enablePerformanceReport&&WO(n,_)}catch(r){k.debug("report error",r)}}function HO(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};Z8(r);let a=Date.now()+(Math.random()*100).toFixed(0);X({url:Zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var qO=Date.now(),zO=["translate_page","translate_video_subtitle"];function WO(e,t){try{t.forEach(async n=>{if(!zO.includes(n.name)||e.config.performanceBlockUrls?.some(l=>dt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};Z8(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-qO},s=await Y8(JSON.stringify(o),yb,vb);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);X({url:Zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function Z8(e){return e?.install_day&&(e.install_day=_d(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function t1(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function J8(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}function Q8(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_20007_2576)",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26406 11.8254L6.5 16L5.73594 11.8254C5.4726 10.3866 4.47075 9.23949 3.16004 8.8761L0 8L3.16004 7.1239C4.47075 6.76051 5.4726 5.61345 5.73594 4.17464L6.5 0L7.26406 4.17464C7.5274 5.61345 8.52925 6.76051 9.83997 7.1239L13 8L9.83997 8.8761C8.52925 9.23949 7.5274 10.3866 7.26406 11.8254Z",fill:"#CCCCCC"}),d("path",{d:"M13.3427 5.22497L13 7L12.6573 5.22497C12.5297 4.56406 12.0418 4.03659 11.4027 3.86865L10 3.5L11.4027 3.13135C12.0418 2.96341 12.5297 2.43594 12.6573 1.77503L13 0L13.3427 1.77503C13.4703 2.43594 13.9582 2.96341 14.5973 3.13135L16 3.5L14.5973 3.86865C13.9582 4.03659 13.4703 4.56406 13.3427 5.22497Z",fill:"#CCCCCC"})]}),d("defs",{children:d("clipPath",{id:"clip0_20007_2576",children:d("rect",{width:"16",height:"16",fill:"white"})})})]})}function Pm(){return d("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.4763 8C14.4763 4.42323 11.5769 1.5238 8.00012 1.5238C4.42335 1.5238 1.52393 4.42323 1.52393 8C1.52393 11.5768 4.42335 14.4762 8.00012 14.4762C11.5769 14.4762 14.4763 11.5768 14.4763 8ZM2.66678 8C2.66678 5.05447 5.05459 2.66666 8.00012 2.66666C10.9456 2.66666 13.3335 5.05447 13.3335 8C13.3335 10.9455 10.9456 13.3333 8.00012 13.3333C5.05459 13.3333 2.66678 10.9455 2.66678 8ZM8.64493 4.62911C9.33636 4.76854 10.1588 5.42797 10.1588 6.38721C10.1588 7.25184 9.52267 7.63216 9.19136 7.83023L9.19135 7.83023L9.1913 7.83026C9.15492 7.85201 9.12223 7.87155 9.09445 7.8893C8.81331 8.06911 8.70817 8.27635 8.70817 8.49654V9.52359H7.63731V8.10683C7.63731 7.77083 7.74512 7.5354 8.04493 7.3274L8.11236 7.28283L8.71388 6.88283C9.0975 6.62454 9.09217 6.10607 8.85483 5.87711C8.72757 5.76556 8.57584 5.68553 8.4119 5.64351C8.24797 5.60148 8.07645 5.59864 7.91121 5.63521C7.24379 5.76626 7.16683 6.23711 7.16226 6.69426V6.95292H6.09521C6.09521 6.06302 6.19731 5.65959 6.67198 5.14988C7.20379 4.58035 7.95312 4.48892 8.64493 4.62911ZM8.70817 10.2855V11.4284H7.63769L7.63731 10.2855H8.70817Z",fill:"#CCCCCC"})})}function to({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=F(),c=je(),[m,g]=O(!1),[p,f]=O(""),[b,y]=O(""),[h,v,C,x,T]=we(me),S=Lm(i),w=_=>{v(B=>{let L={...B,[n]:_};return n==="translationService"&&(Fe("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${B.translationService}_${_}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},A=te(()=>{if(!t)return[];t.user=i??t.user;let _=Ls(t,n,l);return o?.length&&(_=_.filter(B=>o.find(L=>L==B.id))),_},[t,i,n,l,o]),D=te(()=>{if(e&&t){t.user=i??t.user;let{translationServices:_}=e,B=t[n],L=_?.[B],N=tc(L,t.localConfig.aiAssistants||[]);if(N&&L){let U=du(N);return{...L,...U,aiAssistant:N}}return L?{...L}:{}}return null},[e,t,i]),M=te(()=>{if(e&&t){t.user=i??t.user;let _=t[n];return Ms(t,n,l,_)||null}return null},[e,t,i,l]),R=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(R=!1),d(le,{children:[d("div",{class:"nav",children:[d(be,{title:r||u("service"),description:a||u("select translation service")}),d(VO,{selectService:w,translationServiceItems:A,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!S,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(KO,{verifiedErrorMessage:p}),d(GO,{ctx:t,curServiceConfig:D,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:b,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),R&&d("article",{children:[d(r1,{config:e,curServiceItem:M,setSettings:v,isProUser:!!S,t:u}),d(a1,{curServiceItem:M,t:u}),d(i1,{curServiceItem:M,t:u}),d(n1,{currentTranslationServiceItem:M,t:u}),o1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!S,t:u}),s1({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!S,t:u})]})]})}function n1({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function VO({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:nd(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function KO({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function GO({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await tt(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await sa({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){k.debug("e.status",c.status),k.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){k.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function r1({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(Xh,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function a1({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:ct.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function i1({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function o1({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(le,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l,hidden:c,descriptionKey:m,disableTipText:g}=eT(a,e,t,n,o,i);return d("div",{class:"mt-2",hidden:c,children:[d(la,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:{...o,descriptionKey:m},value:u,disabled:l,onSetSettings:r,disableTipText:g,onChange:p=>{r(f=>{let b=f.translationServices||{},y=b[n.id]||{};return tT(e,y,o.name,p),{...f,translationServices:{...b,[n.id]:{...y,[o.name]:p}}}})},onFinish:()=>{at(i("saved"))}},o.name+n.id),d($O,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function s1({isProUser:e,config:t,curServiceConfig:n,curServiceItem:r,setSettings:a,t:i,forceExpand:o}){if(!n||!t||!r?.optionalProps?.length||!a)return null;let s=r?.id.startsWith("custom-ai"),u=d(le,{children:[d("div",{children:r.optionalProps.map((l,c)=>{let{value:m,disabled:g,hidden:p,descriptionKey:f}=eT(e,t,n,r,l,i);return n?.aiAssistant&&!n?.aiAssistant?.enableRichTranslate&&l.name=="enableRichTranslate"?null:d("div",{class:"mt-2",hidden:p,children:d(la,{config:t,service:r?.id,disabled:g,field:{...l,descriptionKey:f},value:m,onSetSettings:a,onChange:b=>{a(y=>{let h=y.translationServices||{},v=h[r.id]||{};return tT(t,v,l.name,b),{...y,translationServices:{...h,[r.id]:{...v,[l.name]:b}}}})},onFinish:()=>{at(i("saved"))}},l.name+r.id+n.assistantId+n.fallbackAssistantId)},"service-item-optional-prop-"+l.name+c)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:l=>{l.preventDefault(),window.confirm(i("confirmResetToDefaultSettings"))&&a(m=>{let g=m.translationServices||{};setTimeout(()=>window.location.reload(),50);let p=g[r.id]||{};if(s){let f=["type","name","extends","apiUrl","APIKEY"];Object.keys(p).forEach(b=>{f.includes(b)||delete p[b]})}else p={};return{...m,translationServices:{...g,[r.id]:p}}})},children:i("resetToDefaultSettings")})]});return o?u:d(le,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[i("moreOptions"),"\xA0\u{1F449}"]}),u]})})}function $O({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=te(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=ue(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(la,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{at(a("saved"))}})}function X8(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=F(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function eT(e,t,n,r,a,i){let o="",s=a.descriptionKey,u=!1;if(!a)return{value:"",hidden:u,disabled:!1};let l=!1;n.aiAssistant&&["systemPrompt","prompt","multiplePrompt","subtitlePrompt","enableRichTranslate","maxTextGroupLengthPerRequestForSubtitle","maxTextGroupLengthPerRequest","maxTextLengthPerRequest"].includes(a.name)&&(l=!0);let c=n[a.name];return a.name=="enableRichTranslate"&&(t.translationMode=="dual"?c=n.dualEnableRichTranslate??n.enableRichTranslate:t.translationMode=="translation"&&(c=n.translationEnableRichTranslate??n.enableRichTranslate)),a.descriptionKey=="description.enableRichTranslate"&&t.translationMode=="dual"&&n.dualEnableRichTranslate!=null&&n.extends=="ai"&&(a.descriptionKey="description.aiDualEnableRichTranslate"),a.descriptionKey=="description.aiDualEnableRichTranslate"&&t.translationMode=="translation"&&(a.descriptionKey="description.enableRichTranslate"),a.name==="apiUrl"&&r?.id==="openai"&&n?.APIKEY?.startsWith("immersiveopenai_")&&(l=!0,c=`https://openai-api.${et}/v1/chat/completions`),a.name=="placeholderDelimiters"&&(a.default=n.placeholderDelimiters||a.default),a.name=="enableAIContext"&&n.aiAssistant&&(l=!0,o=i("enableAIContext.aiAssistantDisableTips")),a.name=="enableAIContext"&&(a.descriptionLink1=Vu,e||(l=!0,c=!1,o=i("onlyProUseProTooltip",{1:ub+"enableAIContext"}))),a.name=="enableAIContext"&&!ka(tr(),"1.12.1")&&(u=!0),a.name=="enableAIContext"&&(s=d(le,{children:[d("span",{dangerouslySetInnerHTML:{__html:i(a.descriptionKey||"",{1:a.descriptionLink1})}}),d(yt,{containerStyle:{display:"inline-flex"},text:i("description.enableAIContextTip"),tipStyle:{width:200},multiple:!0,enableMobile:!0,children:d(Pm,{})})]})),{value:c,hidden:u,disabled:l,descriptionKey:s,disableTipText:o}}function tT(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function nT(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function rT(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function aT(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function iT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function oT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function sT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function uT(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var cT=tm();function _m(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=dn(o);Ze(t,n);let[u,l]=H8(),[c,m]=O(null);return q(()=>()=>{$t.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[d(YO,{}),d(oN,{config:o,user:c,setUser:m}),d(tN,{config:o}),d(to,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(ZO,{config:o}),d(fN,{config:o}),d(nN,{config:o}),d(rN,{config:o}),d(aN,{config:o}),d(iN,{config:o}),d(JO,{config:o,ctx:s}),d(eN,{setSettings:n,config:o}),d(G8,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${P}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function YO(){let[e,t,n,r,a]=we(me),i=ft(e),{t:o}=F(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&($l({...i,isShowContextMenu:!0}),a({...Po(),updatedAt:new Date().toISOString()}),Ws().catch(c=>{k.error("clean local config error",c)}),da().catch(c=>{k.error("clean cache error",c)}),at(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),da().then(()=>{at(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(iT,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(oT,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function ZO({config:e}){let[t,n,r,a,i]=we(me),{t:o,setLang:s}=F(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(be,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),Q(!0)||setTimeout(()=>{$l()},200)},children:Vi(Td,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function JO({config:e,ctx:t}){let{t:n}=F(),r=Ne(),[a,i,o,s,u]=r,[l,c]=O(e.translationTheme),[m,g]=O(e.translationThemePatterns[l]),p=te(()=>dN(l),[l]),f=ue(Fn((v,C)=>{a&&i(x=>{let T=x.translationThemePatterns||{};return{...x,translationTheme:C,translationThemePatterns:{...T,[C]:v}}})},400),[i]),b=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return q(()=>{m&&(Qs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(le,{children:[d(XO,{translationTheme:l,onChange:v=>{let C=v.target;b(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),h(),d(gN,{config:e}),d(QO,{translationThemes:tp,selectedTheme:l,selectDisplay:b})]})})]});function y(){return d(le,{children:d("font",{class:tu(l,!1,[],!1).join(" "),children:d("font",{class:nu(l).join(" "),children:n("sampleTargetText")})})})}function h(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let x=m||{},T=`theme-${l}-${v.name}`,S=mx(T)||v.default||void 0,w=x[v.name]||S;return d(la,{config:e,field:v,value:w,onSetSettings:i,onChange:A=>{g(D=>(Qs(document,l,{...D,[v.name]:A},a.selectTranslationFont),{...D,[v.name]:A}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function QO({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=F();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:tu(a,!1,[],!1).join(" "),children:d("font",{class:nu(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function XO({translationTheme:e,onChange:t}){let{t:n}=F();return d("div",{class:"nav",children:[d(be,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:tp.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function eN({setSettings:e,config:t}){let{t:n}=F(),[r,a]=O(0),[i,o]=O(""),[s,u]=O(!1),l=(g,p,f)=>{u(!s),e(b=>{let y=b.translationThemePatterns||{},h=y[p]||{},v=h.matches||[],C=[...v];return f==="edit"&&(C=Zt(i,v)),C=Hn(g,C),{...b,translationThemePatterns:{...y,[p]:{...h,matches:C}}}})},c=(g,p)=>{e(f=>{let b=f.translationThemePatterns||{},y=b[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Zt(C,v)}),{...f,translationThemePatterns:{...b,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(ca,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ha,{urls:mN(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function tN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F();if(!e)return null;let s=l=>{eu({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=eo(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function nN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),{handleTranslationLanguagePatternSelected:s}=dT(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(cc,{title:t("always languages"),description:t("always translate the following languages"),languages:cT,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function rN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),{handleTranslationLanguagePatternSelected:s}=dT(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(cc,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:cT,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function aN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];if(g==="edit"){if(!h[c])return p;h[c]=l}return h=Hn(l,h),v=Zt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await _t();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],b=f.filter(h=>h.match!==p),y=!1;b.length!==f.length&&(y=!0),y&&Dt({...m,tempTranslationUrlMatches:[...b]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(b=>{f=Zt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function iN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];return g==="edit"&&(v[c]=l),h=Zt(l,b),v=Hn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(b=>{f=Zt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(Ho,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function dT(e){return{handleTranslationLanguagePatternSelected:ue((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Zt(r,s.matches),excludeMatches:Zt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=Hn(r,s[a]),s[i]=Zt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var u1=0,c1;async function mT(e){if(u1>60*10)return null;u1++,nt.refresh(),await tt(300);let t=await nt.get(pt,null);k.debug("loopCheckUser",u1,t),t?(clearTimeout(c1),e(t)):c1=setTimeout(mT.bind(null,e),1500)}function lT(e){let{user:t,lang:n}=e,r=je(),a=t&&t.email===`test@${et}`,{t:i}=F();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=cN(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`
${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:$+"accounts/upgrade?type=year&lng="+n,2:$+"accounts/upgrade?type=month&lng="+n}):Ny(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:$+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:$+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function oN({config:e,user:t,setUser:n}){let{t:r}=F(),a=je(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=we(me),m=e.interfaceLanguage;q(()=>(nt.get(pt,null).then(b=>{b&&(n(b),sN(b.token).then(y=>{let h=y.data;h.token=b.token,nt.set(pt,h),n(h),Oo()}).catch(y=>{Ol(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(c1)}),[]);let g=ue(b=>{b&&b.preventDefault&&b.preventDefault(),t?.token&&uN(t.token).finally(async()=>{await nt.remove(pt),await tt(200),await nt.refresh(),n(null),Oo()})},[t]),p=ue(async b=>{sx()&&(b&&b.preventDefault&&b.preventDefault(),lN(ls),await nt.set(zu,!0),mT(y=>{Mm(y.token,o,s),n(y),d1?.close(),window.location.reload()}))},[n]),f=t?.avatar||O8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(lT,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Dn}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:gi})]}),d("div",{class:"",children:d("a",{href:`${Ti}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:gi})]}),d(lT,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Ti,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:J2,onClick:p,children:r(a?"loginForSafari":"login")})]})}function sN(e){return X({responseType:"json",url:lt+"v1/user",method:"get",headers:{token:e}})}function uN(e){return X({responseType:"json",url:lt+"v1/user/logout",method:"delete",headers:{token:e}})}var d1=null;function lN(e){let r=screen.width/2-230,a=screen.height/2-640/2;return d1=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),d1}function cN(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function dN(e){let t=[];return Hu[e]&&(t=t.concat(Hu[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function mN(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var l1="";function gN({config:e}){let{t}=F(),[n,r]=O(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(pN,{config:e,isOpen:n})]})}function pN({config:e,isOpen:t}){let{t:n}=F(),[r,a]=O([]),[i,o]=O(!1);q(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(b=>dc(b,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(b=>b===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=we(me),g=p=>{p!==l1&&!dc(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let b=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&b&&f.translationThemePatterns&&f.translationThemePatterns[b]&&(y=f.translationThemePatterns[b]),Qs(document,b,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(l1))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let b=n(`font.${p}`);b.startsWith("font.")&&(b=p);let y=p=="none"?l1:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:b},"locale"+f)})})]})}function fN({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function an(e){return Se.ASSETS_BASE_URL+e}var Rm=!1;function m1(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=dn(o);Ze(t,n);let{t:u,lang:l}=F(),c=s&&Ds(s,"translationService",l)||[],m=Bo(),g=te(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),b=Ms(s,"translationService",l,f);return d(yN,{service:f,currentTranslationServiceItem:b,ctx:s})},[m,c]);!Rm&&m==="#services"&&(Rm=!0),q(()=>()=>Rm=!1,[]),q(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Fl(8)}`;if(s?.config.translationServices[f]){p();return}await n(b=>{let y=b.translationServices||{},h=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${h+2}`,{...b,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open($u,"_blank"),children:d(J8,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open($u,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(hN,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function hN({data:e,ctx:t}){let{t:n,lang:r}=F(),[a,i,o,s,u]=we(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=te(()=>!!Za.find(R=>R==e.id),[e]),m=ue(R=>{i(_=>{let B=_.translationServices?.[e.id]||{};return{..._,translationServices:{..._.translationServices,[e.id]:{...B,visible:R.target.checked}}}})},[i]),[g,p]=O(!0),f=()=>{p(!1)},b=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=je(),h=t.isPro,v=l.type==="custom-ai",C=te(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,h,e.id,e.ok]),x=R=>{R.stopPropagation(),R.preventDefault(),t.translationService!==e.id&&(!M()||!S||i(_=>{Fe("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${_.translationService}_${e.id}`}}],t);let B={..._,translationService:e.id};return B.translationServiceChangedbyUserAt=new Date().toISOString(),B}))},T=t.translationService===e.id,S=T||Qf(l,r),w=n("translationServices."+e.id),A=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:P+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:P+"-link"}}),D=e.id;return v&&(w=`${e.name||""} (${n("translationServices.custom-ai")})`,A="",D="custom-ai"),d("div",{class:"service-container","data-selected":T?"true":"false","data-configed":S,onClick:R=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:an(`images/${D}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:w})]}),d(yt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:S,onChange:R=>{m(R)},onClick:R=>R.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:A}}),b&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:x,children:n("setDefault")})]});function M(){let R=!0;return e.ok?R=!0:c||(R=!1),S&&(R=!0),R}}function bN(e,t){let[n,r]=O(!1),[a]=we(me),[i,o]=O("");return[ue(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await sa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function yN({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Ne(),[a,i,o,s,u]=r,l=ft(a),{t:c}=F(),m=Lm(),g=te(()=>{if(l&&n){let{translationServices:C}=l,x=t?.id||"",T=C?.[x],S=tc(T,n.localConfig.aiAssistants||[]);if(S&&T){let w=du(S);return{...T,...w,aiAssistant:S}}return T?{...T}:{}}return null},[l,n,t,e]),[p,f,b]=bN(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,h=g?.type,v=c("translationServices."+e)+" "+c("setting");if(h){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(le,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!Rm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&b==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),b&&b!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:b}})}),y&&d("article",{children:[d(r1,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(a1,{curServiceItem:t,t:c}),d(i1,{curServiceItem:t,t:c}),d(n1,{currentTranslationServiceItem:t,t:c}),o1({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),s1({isProUser:!!m,config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(X8,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ga(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var vN=Xt+"assets/uploads/default-oade4Y.png";function pT({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=O(),[i,o]=O(),[s,u]=O(""),{t:l}=F(),[c,m]=O(""),g=ue(()=>m(vN),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:b}=xm(),y=Ne(),[h,v]=y;Ze(h,v);let C=ft(h);q(()=>{Sh(e).then(T=>{a(T),m(T.avatar),o({name:T.i18n[t]?.name||T.name,description:T.i18n[t]?.description||T.description,details:T.i18n[t]?.details||T.details}),u(ct.sanitize(T.i18n[t]?.details||T.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let x=p?.some(T=>T.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${P}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:T=>{if(T.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(yt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:ci(r),children:d(g1,{assistantID:e,enable:ci(r),handleInstall:f,operateLoading:b,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),x&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(p1,{aiAssistant:r,isInstall:x}),C&&d(le,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(le,{children:CN.map((T,S)=>d("div",{className:"mt-2",children:d(la,{service:"ai",config:C,field:T,value:r[T.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},S)},"custom-assistants-prop-"+S))})]})]})}function g1({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=F(),o=a?.some(c=>c.id===e),[s,u]=O(!0),l=Ce(null);return q(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(uT,{}):d(sT,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${P}-loading-spinner`})]})]})})}function p1({aiAssistant:e,isInstall:t}){let{t:n}=F(),[r,a,i,o,s]=we(me),u=te(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Nd(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...b],h=u[p];if(e.matches?.find(C=>C===h))y=gT(e.matches||[],b,[h]),y.push(g);else{let C=y.findIndex(x=>x.endsWith(h));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,b)=>{if(b==="edit")return l(g,p);a(y=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...h],C=e.matches?.find(T=>T===g),x=h.find(T=>T.endsWith(g));if(C&&x){if(!x.startsWith("[-]"))return;v=v.filter(T=>T!==x)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=gT(e.matches||[],b,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(Ho,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function gT(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var CN=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function fT(e){let t=Ne(),[n,r]=t;Ze(n,r);let a=ft(n),{t:i}=F(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=TN({id:e.assistantID,userConfig:n,setSettings:r}),l=ue(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(le,{children:xN.map((c,m)=>d("div",{class:"mt-2",children:d(la,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{at(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(p1,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var xN=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function TN({id:e,userConfig:t,setSettings:n}){let{t:r}=F(),a=te(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=ue(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=ue(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var Im=!1,SN=Xt+"assets/uploads/default-oade4Y.png";function f1(){let[e,t]=O(null),[n,r]=O(!1),[a,i]=O(null),{customAssistants:o,handleAddCustomAiAssistants:s}=EN(),u=te(()=>o.concat((e||[]).sort((v,C)=>{let x=v.priority||1e3,T=C.priority||1e3;return x-T})),[o,e]);q(()=>{(async()=>{try{r(!0);let v=await Th(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Ne(),[c,m]=l;Ze(c,m);let g=ft(c),p=dn(g),f=p?.config.interfaceLanguage||"zh-CN",b=Bo(),{t:y}=F();q(()=>{xh(void 0,void 0,!0)},[]),!Im&&b==="#ai"&&(Im=!0),q(()=>()=>Im=!1,[]);let h=te(()=>{if(!b.startsWith("#ai/"))return null;let v=b.slice(4);return v.startsWith("custom")?d(fT,{assistantID:v}):d(pT,{assistantID:v,lang:f,hasAssistantsRoute:Im})},[b,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${P}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(it,{children:d(me.Provider,{value:l,children:[b==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ga,{image:an("images/assistant_intro.png"),nightImage:an("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${P}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(wN,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${P}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),h]})})}function wN({data:e,lang:t}){let{t:n}=F(),r=e.i18n[t]||e,[a,i]=O(e.avatar),o=ue(()=>i(SN),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=xm();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(yt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:ci(e),children:d(g1,{assistantID:e.id,enable:ci(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function EN(){let e=Ce(!1),{t}=F(),[n,r]=Ne();Ze(n,r);let a=n?.customAiAssistants||[];return q(()=>{!n||e.current||(async()=>{try{let s=(await nc()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),No("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return k.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Fl(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var ar={};l0.forEach(e=>{e.labelKey&&(ar[e.key]=e.labelKey)});function h1(){let e=Ne(),[t,n,r,a,i]=e;Ze(t,n);let[o,s]=O(null),{t:u}=F();if(q(()=>{Ye().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(AN,{config:l}),d(kN,{config:l,ctx:o}),d(DN,{config:l}),d(to,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(LN,{config:l}),d(MN,{config:l}),d(_N,{config:l}),d(PN,{config:l})]})})}function AN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F();return e?d(le,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${Xt}videos/input-translation-demo-202307044.mp4`:`${Xt}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function kN({config:e,ctx:t}){let[n,r,a,i,o]=we(me),{t:s}=F(),u=c=>{r(m=>({...m,inputTargetLanguage:c}))};if(!e)return null;let l=eo(t.inputTranslationService,e.targetLanguage);return d("div",{class:"nav",children:[d(be,{title:s("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?s("inputTargetLanguageDescriptionForNoneKey"):s("inputTargetLanguageDescription",{startingKey:ar[e.inputStartingTriggerKey]?s(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),u(c.target.value)},children:Vi(l,12,e.interfaceLanguage).filter(c=>c!=="auto").map((c,m)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Ot(c,e.interfaceLanguage)},"language"+m))})]})}function DN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F();return e?d("div",{class:"nav",children:[d(be,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function LN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(be,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:ar[e.inputStartingTriggerKey]?o(ar[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:l0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function MN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:ar[e.inputTrailingTriggerKey]?o(ar[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:l0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:$+"docs/input/"})}})]}):null}function PN({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F(),[s,u]=O(!1),l=h=>{u(!s)},[c,m]=O(0),[g,p]=O(""),f=(h,v,C,x)=>{l(C),n(T=>{let S=T.inputTranslationUrlPattern,w=[],A=[];S&&S.matches&&S.excludeMatches&&(w=S.matches,A=S.excludeMatches);let D=[...w],M=[...A];return x==="edit"&&(C==="matches"?D[v]=h:M[v]=h),C==="matches"?(D=Hn(h,D),M=Zt(h,A)):(D=Zt(h,w),M=Hn(h,M)),{...T,inputTranslationUrlPattern:{...T.inputTranslationUrlPattern,matches:D,excludeMatches:M}}})},b=(h,v)=>{n(C=>{let x=C.inputTranslationUrlPattern,T=[];v==="matches"?x&&x.matches&&(T=x.matches):x&&x.excludeMatches&&(T=x.excludeMatches);let S=[...T];return h.forEach(w=>{S=Zt(w,S)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:S}}})},y=(h,v,C)=>{l(v),p(h),m(C)};return e?d(le,{children:[d("div",{class:"nav",children:[d(be,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:h=>{h.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(ca,{toggleModal:h=>{h.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ha,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:b,onEditUrl:y})]}):null}function _N({config:e}){let[t,n,r,a,i]=we(me),{t:o}=F();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(be,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function b1(){let e=Ne(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),{t:s}=F(),[u,l]=O({}),[c,m]=O({});return q(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:$+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(NN,{}),d(ON,{}),d(RN,{}),d(IN,{}),d(FN,{}),d(BN,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function RN(){let[e,t,n,r,a]=we(me),{t:i}=F(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),at(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),at(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] - }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:$+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function FN(){let[e,t,n,r,a]=we(me),{t:i}=F(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),rt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),rt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:$+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function BN(){let[e,t,n,r,a]=we(me),{t:i}=F(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Po()),Ws().catch(l=>{k.error("clean local config error",l)}),ma().catch(l=>{k.error("clean cache error",l)}),rt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),rt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:$+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function ON(){let[e,t,n,r,a]=we(me),i=ft(e),o=dn(i),{t:s}=F(),[u,l]=O("");return q(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=gl.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Mn();if(!g){p.customAiAssistants=[];let x=p.aiAssistants||[];p.aiAssistants=x.filter(T=>!T.custom),Br(p),rt(s("saved"));return}let f=gl.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],b=p.customAiAssistants||[],v=y.findIndex(x=>x.id===f.id);v<0?y.push(f):y[v]=f;let C=b.findIndex(x=>x.id===f.id);C<0?b.push(f):b[C]=f,p.customAiAssistants=b,p.aiAssistants=y,Br(p),rt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function NN(){let[e,t,n,r,a]=we(me),i=ft(e),{t:o}=F(),s=async u=>{await t(l=>({...l,beta:u})),Oo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:zu})}})]})}function UN(){let[e,t,n,r,a]=we(me),i=ft(e),{t:o}=F(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var jN="buildinConfig",HN={},Bm=yx(jN,HN);function yT(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var qN=({date:e})=>{let{t}=F();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},zN=({date:e})=>{let{t}=F();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},WN=()=>{let{t:e}=F();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},VN=()=>{let{t:e}=F();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},KN=({minVersion:e})=>{let{t}=F();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},GN=({latestVersion:e})=>{let{t}=F();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:Ru+"releases",children:e})]})},$N=({config:e})=>{let t=_o(e),{t:n}=F();return t.includes("Preview")?d("p",{class:"text-sm",children:n("theLocalExtensionUpdatePreview")}):d("p",{class:"text-sm",children:n("theLocalExtensionIsUpToUpdate")})},YN=({message:e,handleSyncing:t,date:n})=>{let{t:r}=F();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function y1(){let[e,t]=O(null),{t:n,lang:r}=F(),[a,i]=O(n("calculating")+"..."),[o,s]=O(null),[u,l]=Bm(),[c,m]=O(null),[g,p]=O(""),[f,h]=O(!1),[y,b]=O(!1),[v,C]=O(null),[x,T]=O(null),[w,S,A,D]=Oe();Je(w,S);let[M,R]=O(!1),[_,B]=O(!1),L=nr(),N=Xt+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",U=Xt+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",V=Xt+"assets/uploads/full-intro-en-NlkG5c.mp4",Y={"zh-CN":{poster:Xt+"static/official-static/assets/price/video-poster-zh-Hans.png",src:N},"zh-TW":{poster:Xt+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:U},en:{poster:Xt+"static/official-static/assets/price/video-poster-en.png",src:V}},ae=Y.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?ae=Y["zh-TW"]:r.startsWith("zh")&&(ae=Y["zh-CN"]);let _e=!0;je()&&v&&(_e=v.generalRule.showSponsorOnSafari);let xe=async()=>{p("");let J=o;if(o===null)try{let ce=await Or({url:Ci});ce?(s(ce),J=ce,h(!0)):(p(n("unknownError")),m(null))}catch(ce){m(null),p(ce.message);return}J!==null?(l(J),m(!1),t(J.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};q(()=>{Ze().then(J=>{B(J.interfaceLanguage!=="zh-TW");let ce=J.buildinConfigUpdatedAt;C(J);let he=new Date(ce);t(ce),Or({url:Ci}).then(pe=>{let ke=pe.minVersion,We=L;s(pe);let Z=pe.releaseVersion||pe.resaleVersion;if(Z&&(za(We,Z)?T(!0):T(!1)),za(We,ke)){let Ee=pe.buildinConfigUpdatedAt;new Date(Ee)>he?(m(!0),xe()):m(!1)}else b(!0),m(null)}).catch(pe=>{m(null),p(pe.message)})}),O8().then(J=>{i(J)})},[]),q(()=>{Ze().then(J=>{C(J),sa(J)})},[w,e]);let H=J=>{S(ce=>{let he=!ce.alpha;return he?rt(n("enableAlphaSuccess")):rt(n("disableAlphaSuccess")),{...ce,alpha:he}})},W=J=>{J.preventDefault(),J.stopPropagation(),R(!0),ma().then(()=>{R(!1),rt(n("cleanSuccess")),i("0 B")}).catch(ce=>{R(!1),bt(ce.message)})},ee=J=>{S(ce=>({...ce,cache:J}))},Me=J=>{S(ce=>({...ce,enabled:J}))},ve="aboutIntro";_e||(ve="aboutIntroWithoutSponsor");let Xe=new Date().getFullYear();return v?d(at,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:yT(7)(H),class:`text-lg ${P}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${P}-no-select`,onClick:J=>{J.preventDefault(),lr(`${$}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:_o(v)}),x===!1&&d(GN,{latestVersion:o?.releaseVersion}),x===!0&&d($N,{config:v}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Me(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{ee(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!Q(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:W,children:n("cleanCache")})]}),g?d(YN,{handleSyncing:xe,message:g,date:e||""}):y?d(KN,{minVersion:o.minVersion}):c===null?d(WN,{}):c===!0?d(VN,{}):f?d(zN,{date:e}):d(qN,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:$+"docs/thanks/",2:$+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+mo,5:`https://${mo}.substack.com`,6:$+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:$+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${mo}_tw`,10:"https://x.com/immersivetrans"})}}),_&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:Xt+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:Xt+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:Ru+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:zu,onClick:J=>{J.preventDefault(),lr(zu)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:$+"docs/CHANGELOG/",onClick:J=>{J.preventDefault(),lr(`${$}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:$,onClick:J=>{J.preventDefault(),lr($)},children:n("projectHomepage")})}),_e&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:ae.poster,src:ae.src,style:"border-radius: 38px;"})})]})]}),_&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${mo}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",Xe," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var ZN=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(JN,{...e})]})};function JN(e){let{onAddTag:t,tags:n}=e,r=Ce(null),[a,i]=O(!1),{t:o}=F(),s=c=>{r.current.innerText="",t&&t(c)};return d(le,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var vT=ZN;var QN=nm();function v1(){let e=Oe(),[t,n,r,a,i]=e,o=ft(t),s=dn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=F();if(Je(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=h=>l(`${p}.translation.${h}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(at,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(eU,{config:o,ctx:s}),d(tU,{config:o}),d(XN,{config:o,setSettings:n}),d(nU,{ctx:s}),d(rU,{ctx:s}),d(aU,{config:o}),d(oU,{config:o}),d(iU,{config:o}),d(sU,{config:o}),d(hU,{config:o}),d(uU,{config:o}),d(fU,{config:o}),d(pU,{}),d(lU,{config:o}),d(cU,{config:o}),d(dU,{config:o}),d(mU,{config:o,ctx:s,...m(u,"translationModeLang")}),d(gU,{config:o,...m(u,"translationModeUrl")})]})})})}function XN(e){let{config:t,setSettings:n}=e,{t:r}=F(),a=ue(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(le,{children:[d("div",{class:"nav",children:d(be,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(vT,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function eU({config:e,ctx:t}){let{t:n}=F(),[r,a,i,o,s]=we(me);return d("div",{class:"nav",children:[d(be,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function tU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function nU({ctx:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function rU({ctx:e}){let{t}=F(),[n,r,a,i,o]=we(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(be,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function aU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function iU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function oU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return Q(!0)?null:d("div",{class:"nav",children:[d(be,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Yl({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function sU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function uU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function lU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function cU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),[s]=Bm();return s.generalRule?d("div",{class:"nav",children:[d(be,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function dU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function mU({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=F(),[o,s,u,l,c]=we(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=te(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:F4(e),[t,e,n]),p=(f,h)=>{s(y=>{let b=y.translationModeLanguagePattern,v=b?.[n]||[],C=b?.[m]||[],x=[...v];f?x=Array.from(new Set([...x,h])):x=x.filter(A=>A!==h);let T=C.filter(A=>A!==h),w={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:x,[m]:T}},S=DC(e,h);return S&&(w.translationLanguagePairs=S),w})};return d(dc,{title:r,description:a,languages:QN,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function gU({config:e,matchKey:t,title:n,description:r}){let{t:a}=F(),[i,o,s,u,l]=we(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,h,y,b)=>{o(v=>{let C=v.translationModeUrlPattern,x=C?.[t]||[],T=C?.[c]||[],w=[...x];b==="edit"?w[h]=f:w=Array.from(new Set([...w,f]));let S=T.filter(A=>A!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:w,[c]:S}}})},g=te(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(Ho,{title:n,description:r,urls:g,onDeleteUrl:(f,h)=>{o(y=>{let b=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[h]:b}}})},onSubmitAddUrl:m,type:t})}function pU(){let[e,t]=ga(),{t:n}=F();return Oy()?null:d("div",{class:"nav",children:[d(be,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function fU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function hU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(be,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function C1(){let e=Oe(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),s=dn(o),{t:u}=F();return s?d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${mo}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}var hu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Om=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function Nm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Um(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var CT=[];function jm(e,t){let[n,r]=O(CT);return q(()=>{if(n.length||!e.length)return;let i=e.filter(o=>mc(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),CT=i},[n,e]),te(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function x1(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var bu=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],Hm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function T1(){let e=Oe(),[t,n,r,a,i]=e;Je(t,n);let{t:o}=F(),s=ft(t),u=dn(s);if(!u||!s)return d("div",{children:"loading"});let l=Od(s.supportedVideoSubtitleSites),c=`
-
${o("feedbackOrMore")} + }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:$+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function IN(){let[e,t,n,r,a]=we(me),{t:i}=F(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),at(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),at(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:$+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function FN(){let[e,t,n,r,a]=we(me),{t:i}=F(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Po()),Ws().catch(l=>{k.error("clean local config error",l)}),da().catch(l=>{k.error("clean cache error",l)}),at(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),at(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:$+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function BN(){let[e,t,n,r,a]=we(me),i=ft(e),o=dn(i),{t:s}=F(),[u,l]=O("");return q(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=ml.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Mn();if(!g){p.customAiAssistants=[];let x=p.aiAssistants||[];p.aiAssistants=x.filter(T=>!T.custom),Fr(p),at(s("saved"));return}let f=ml.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],h=p.customAiAssistants||[],v=y.findIndex(x=>x.id===f.id);v<0?y.push(f):y[v]=f;let C=h.findIndex(x=>x.id===f.id);C<0?h.push(f):h[C]=f,p.customAiAssistants=h,p.aiAssistants=y,Fr(p),at(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function ON(){let[e,t,n,r,a]=we(me),i=ft(e),{t:o}=F(),s=async u=>{await t(l=>({...l,beta:u})),Oo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:qu})}})]})}function NN(){let[e,t,n,r,a]=we(me),i=ft(e),{t:o}=F(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var UN="buildinConfig",jN={},Fm=hx(UN,jN);function hT(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var HN=({date:e})=>{let{t}=F();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},qN=({date:e})=>{let{t}=F();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},zN=()=>{let{t:e}=F();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},WN=()=>{let{t:e}=F();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},VN=({minVersion:e})=>{let{t}=F();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},KN=({latestVersion:e})=>{let{t}=F();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:Ru+"releases",children:e})]})},GN=({config:e})=>{let t=_o(e),{t:n}=F();return t.includes("Preview")?d("p",{class:"text-sm",children:n("theLocalExtensionUpdatePreview")}):d("p",{class:"text-sm",children:n("theLocalExtensionIsUpToUpdate")})},$N=({message:e,handleSyncing:t,date:n})=>{let{t:r}=F();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function y1(){let[e,t]=O(null),{t:n,lang:r}=F(),[a,i]=O(n("calculating")+"..."),[o,s]=O(null),[u,l]=Fm(),[c,m]=O(null),[g,p]=O(""),[f,b]=O(!1),[y,h]=O(!1),[v,C]=O(null),[x,T]=O(null),[S,w,A,D]=Ne();Ze(S,w);let[M,R]=O(!1),[_,B]=O(!1),L=tr(),N=Xt+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",U=Xt+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",V=Xt+"assets/uploads/full-intro-en-NlkG5c.mp4",Y={"zh-CN":{poster:Xt+"static/official-static/assets/price/video-poster-zh-Hans.png",src:N},"zh-TW":{poster:Xt+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:U},en:{poster:Xt+"static/official-static/assets/price/video-poster-en.png",src:V}},ae=Y.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?ae=Y["zh-TW"]:r.startsWith("zh")&&(ae=Y["zh-CN"]);let _e=!0;je()&&v&&(_e=v.generalRule.showSponsorOnSafari);let xe=async()=>{p("");let J=o;if(o===null)try{let ce=await Br({url:Ci});ce?(s(ce),J=ce,b(!0)):(p(n("unknownError")),m(null))}catch(ce){m(null),p(ce.message);return}J!==null?(l(J),m(!1),t(J.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};q(()=>{Ye().then(J=>{B(J.interfaceLanguage!=="zh-TW");let ce=J.buildinConfigUpdatedAt;C(J);let he=new Date(ce);t(ce),Br({url:Ci}).then(pe=>{let ke=pe.minVersion,ze=L;s(pe);let Z=pe.releaseVersion||pe.resaleVersion;if(Z&&(qa(ze,Z)?T(!0):T(!1)),qa(ze,ke)){let Ee=pe.buildinConfigUpdatedAt;new Date(Ee)>he?(m(!0),xe()):m(!1)}else h(!0),m(null)}).catch(pe=>{m(null),p(pe.message)})}),F8().then(J=>{i(J)})},[]),q(()=>{Ye().then(J=>{C(J),ia(J)})},[S,e]);let H=J=>{w(ce=>{let he=!ce.alpha;return he?at(n("enableAlphaSuccess")):at(n("disableAlphaSuccess")),{...ce,alpha:he}})},W=J=>{J.preventDefault(),J.stopPropagation(),R(!0),da().then(()=>{R(!1),at(n("cleanSuccess")),i("0 B")}).catch(ce=>{R(!1),bt(ce.message)})},ee=J=>{w(ce=>({...ce,cache:J}))},Me=J=>{w(ce=>({...ce,enabled:J}))},ve="aboutIntro";_e||(ve="aboutIntroWithoutSponsor");let Xe=new Date().getFullYear();return v?d(it,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:hT(7)(H),class:`text-lg ${P}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${P}-no-select`,onClick:J=>{J.preventDefault(),cr(`${$}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:_o(v)}),x===!1&&d(KN,{latestVersion:o?.releaseVersion}),x===!0&&d(GN,{config:v}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Me(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{ee(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!Q(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:W,children:n("cleanCache")})]}),g?d($N,{handleSyncing:xe,message:g,date:e||""}):y?d(VN,{minVersion:o.minVersion}):c===null?d(zN,{}):c===!0?d(WN,{}):f?d(qN,{date:e}):d(HN,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:$+"docs/thanks/",2:$+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+mo,5:`https://${mo}.substack.com`,6:$+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:$+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${mo}_tw`,10:"https://x.com/immersivetrans"})}}),_&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:Xt+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:Xt+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:Ru+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:qu,onClick:J=>{J.preventDefault(),cr(qu)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:$+"docs/CHANGELOG/",onClick:J=>{J.preventDefault(),cr(`${$}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:$,onClick:J=>{J.preventDefault(),cr($)},children:n("projectHomepage")})}),_e&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:ae.poster,src:ae.src,style:"border-radius: 38px;"})})]})]}),_&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${mo}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",Xe," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var YN=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(ZN,{...e})]})};function ZN(e){let{onAddTag:t,tags:n}=e,r=Ce(null),[a,i]=O(!1),{t:o}=F(),s=c=>{r.current.innerText="",t&&t(c)};return d(le,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var bT=YN;var JN=tm();function v1(){let e=Ne(),[t,n,r,a,i]=e,o=ft(t),s=dn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=F();if(Ze(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=b=>l(`${p}.translation.${b}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(it,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(XN,{config:o,ctx:s}),d(eU,{config:o}),d(QN,{config:o,setSettings:n}),d(tU,{ctx:s}),d(nU,{ctx:s}),d(rU,{config:o}),d(iU,{config:o}),d(aU,{config:o}),d(oU,{config:o}),d(fU,{config:o}),d(sU,{config:o}),d(pU,{config:o}),d(gU,{}),d(uU,{config:o}),d(lU,{config:o}),d(cU,{config:o}),d(dU,{config:o,ctx:s,...m(u,"translationModeLang")}),d(mU,{config:o,...m(u,"translationModeUrl")})]})})})}function QN(e){let{config:t,setSettings:n}=e,{t:r}=F(),a=ue(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(le,{children:[d("div",{class:"nav",children:d(be,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(bT,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function XN({config:e,ctx:t}){let{t:n}=F(),[r,a,i,o,s]=we(me);return d("div",{class:"nav",children:[d(be,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function eU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function tU({ctx:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function nU({ctx:e}){let{t}=F(),[n,r,a,i,o]=we(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(be,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function rU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function aU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function iU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return Q(!0)?null:d("div",{class:"nav",children:[d(be,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;$l({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function oU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function sU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function uU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function lU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me),[s]=Fm();return s.generalRule?d("div",{class:"nav",children:[d(be,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function cU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function dU({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=F(),[o,s,u,l,c]=we(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=te(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:F4(e),[t,e,n]),p=(f,b)=>{s(y=>{let h=y.translationModeLanguagePattern,v=h?.[n]||[],C=h?.[m]||[],x=[...v];f?x=Array.from(new Set([...x,b])):x=x.filter(A=>A!==b);let T=C.filter(A=>A!==b),S={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:x,[m]:T}},w=AC(e,b);return w&&(S.translationLanguagePairs=w),S})};return d(cc,{title:r,description:a,languages:JN,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function mU({config:e,matchKey:t,title:n,description:r}){let{t:a}=F(),[i,o,s,u,l]=we(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,b,y,h)=>{o(v=>{let C=v.translationModeUrlPattern,x=C?.[t]||[],T=C?.[c]||[],S=[...x];h==="edit"?S[b]=f:S=Array.from(new Set([...S,f]));let w=T.filter(A=>A!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:S,[c]:w}}})},g=te(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(Ho,{title:n,description:r,urls:g,onDeleteUrl:(f,b)=>{o(y=>{let h=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[b]:h}}})},onSubmitAddUrl:m,type:t})}function gU(){let[e,t]=ma(),{t:n}=F();return Fy()?null:d("div",{class:"nav",children:[d(be,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function pU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(be,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function fU({config:e}){let{t}=F(),[n,r,a,i,o]=we(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(be,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function C1(){let e=Ne(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),s=dn(o),{t:u}=F();return s?d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${mo}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}var hu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Bm=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function Om(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Nm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var yT=[];function Um(e,t){let[n,r]=O(yT);return q(()=>{if(n.length||!e.length)return;let i=e.filter(o=>dc(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),yT=i},[n,e]),te(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function x1(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var bu=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],jm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function T1(){let e=Ne(),[t,n,r,a,i]=e;Ze(t,n);let{t:o}=F(),s=ft(t),u=dn(s);if(!u||!s)return d("div",{children:"loading"});let l=Bd(s.supportedVideoSubtitleSites),c=``,m=[...l.map((g,p)=>` ${g.name} ${p!==l.length-1?", ":""} - `),c].join("");return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(pa,{image:an("images/dual_subtitle_intro.png"),nightImage:an("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(yU,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(to,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(bU,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(vU,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function bU(e){let{t}=F(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function yU(e){let{config:t,setSettings:n}=e,{t:r}=F(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(le,{children:[d("div",{class:"youtube-header",children:[d(TU,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(be,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(cc,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:Ku})}),d(cc,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("onlyProUseProTooltip",{1:Ku}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function vU(e){let{t}=F(),[n,r]=O(!1),a=xU(e.subtitleRule,t,n),i=ue(async()=>{let s=(await Vs())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return Hm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(le,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(be,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(CU,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function CU(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(be,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var xU=(e,t,n)=>{let r=Um(t),a=jm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:hu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:hu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:bu,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:bu,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Om,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:Nm(t),selectKey:e.textShadowType}]};function TU(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var xT=ol({presets:[w0(),A0()]});var SU=1e5;var TT=Date.now();async function pi(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=wU(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:m,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,h=null;async function y(w){let{container:S,onFrame:A,onIgnoreElement:D,id:M,isLongHtml:R}=w,_=document.createTreeWalker(S,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,N=>{let U=L(N);return U==NodeFilter.FILTER_ACCEPT?Rt.mark(N,M,g):_U(N,U,n)&&v(),U}),B=S;if(L(B)===NodeFilter.FILTER_REJECT)return;for(Rt.mark(B,M,g);B;){if(a?.interruptEffectDOM)return;let N=Date.now()-TT;if(N>50&&(k.debug("taskTime",N,S),TT=Date.now(),await tt(0)),s&&s.length>0){let{currentNode:U,isMatchedSelection:V}=b(_,B,s);if(U)B=U;else break;if(!V)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let U=B;if(U.nodeName==="IFRAME"){A&&A(U),v(),S1(p,!0),B=_.nextNode();continue}U.nodeType===Node.ELEMENT_NODE&&(o&&w1(U,o),c&&A1(U,c));let V=Ma(U,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},U.immersiveTranslateComputedStyle||null);if(V&&n.paragraphFirstLetterFontSize>0&&U.childNodes.length==1&&U.childNodes[0].nodeType===Node.TEXT_NODE&&U.innerText?.length==1&&U?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(V=!1),qt(U,i)&&!V){C(U);let _e=null;for(;!(_e=_.nextSibling())&&_.parentNode(););B=_e;continue}let Y=Ro(U);if(!ST(p,U)||V){v(U);let _e=V?U:U.parentElement;_e&&_e.childNodes.length>0&&x(p,_e,_e.immersiveTranslateComputedStyle||null)}Y&&U.shadowRoot?.mode==="open"&&(V?A?.(U.shadowRoot):y({...w,container:U.shadowRoot})),U.nodeType===Node.ELEMENT_NODE&&qt(U,n.likePreSelectors)&&u&&(R||DU(U,n.advanceTransformPreTagNewLine))}else if(B.nodeType===Node.TEXT_NODE)C(B);else throw new Error("should not be here");B=_.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function L(N){if(N.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Fo(N)){if(c){let ae=Object.keys(c);if(ae.length>0&&qt(N,ae))for(let xe of ae){let H=c[xe];if(N.matches(xe)){let W=c[xe],ee=Object.keys(W);for(let Me of ee){let ve=W[Me];N.getAttribute(Me)!==ve&&(ve===null?N.removeAttribute(Me):N.setAttribute(Me,ve))}break}}}if(!w.force&&Rt.isMarked(N,M)||EC(N,M)||qm(N,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||N.nodeName==="IFRAME"&&!qi(N))return NodeFilter.FILTER_REJECT;if(N.nodeType===Node.ELEMENT_NODE){let ae=window.getComputedStyle(N);if(N.immersiveTranslateComputedStyle=ae,E1(ae))return D&&D(N),NodeFilter.FILTER_REJECT;let _e=Ma(N,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ae||null);if(N.isBlock=_e,qt(N,i)&&_e)return NodeFilter.FILTER_REJECT}let U=N.getBoundingClientRect(),{width:V,height:Y}=U;return N.nodeName==="IMG"&&(V>48&&Y>48?N.immersiveTranslateComputedStyle={display:"block"}:V>0&&Y>0&&m!==!1&&(N.setAttribute("width",V),N.setAttribute("height",Y))),!N.childNodes||N.childNodes&&N.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(V>0&&V<4||Y>0&&Y<4)&&(N.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(N.nodeType===Node.TEXT_NODE){let U=N.textContent?.trim();if(!U)return/^( )+$/.test(N.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(N.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let V=N.parentNode;if(V.getBoundingClientRect){let{width:Y,height:ae}=V.getBoundingClientRect();if(Y>0&&Y<4||ae>0&&ae<4)return NodeFilter.FILTER_REJECT}return l>0&&U.length>=l&&LU(N,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await y(e)}catch(w){k.error(w)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&v();function b(w,S,A){let D=S.immersiveTranslateComputedStyle||null;if(h){if(!h.contains(S))if(f=!1,S&&S.nodeType===Node.ELEMENT_NODE)if(gc(S,A))f=!0,h=S,v(),x(p,h,D);else return f=!1,S=w.nextNode(),{currentNode:S,isMatchedSelection:f};else return f=!1,S=w.nextNode(),{currentNode:S,isMatchedSelection:f}}else if(S&&S.nodeType===Node.ELEMENT_NODE)if(gc(S,A))f=!0,h=S,v(),x(p,h,D);else return f=!1,S=w.nextNode(),{currentNode:S,isMatchedSelection:f};else return f=!1,S=w.nextNode(),{currentNode:S,isMatchedSelection:f};return{currentNode:S,isMatchedSelection:!0}}function v(w){let S=p.flatNodes.length-1;if(n.skipTrailTextRegex&&S>0)for(let D=S;D>=0;D--){let R=p.flatNodes[D]?.textContent?.trim()||"";if(!R||new RegExp(n.skipTrailTextRegex).test(R)){p.flatNodes.splice(D,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=RU(w,n);let D=[...p.flatNodes],M=p.flatNodes.filter(R=>w.parentNode?.contains(R));M.length>0&&D.length!=M.length&&(p.flatNodes=M,p.flatNodes.original=D)}let A=kU(p,r,n);A&&t&&t(A),S1(p)}function C(w){if(!ST(p,w)){v(),S1(p);let S=w.parentNode;S&&x(p,S,S.computedStyle)}p.flatNodes.push(w)}function x(w,S,A){w.commonAncestorContainer=S;let D=T(A);w.isPreWhitespace=D}function T(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function ST(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Ro(t));let r=AU(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function wU(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function EU(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function w1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function AU(e){return e&&e._currentStacks?e._currentStacks.some(t=>Ro(t)):!1}function kU(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Qd(r,a,n);o||(o=a);let s=[];for(let p of r){let f=EU(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>SU){k.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:_C(o)}}else return null}function S1(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function E1(e){return e.display==="none"}var Rt={_marked_key:O2,isMarked(e,t){return N4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Ro(e)))return KC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)Rt.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Ro(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Ro(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function DU(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let m=document.createElement("br");m.setAttribute("data-imt","1");let g=document.createTextNode(c);l.parentNode.insertBefore(m,l.nextSibling),l.parentNode.insertBefore(g,m.nextSibling),l=g,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=cr?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function LU(e,t,n){let r=e.textContent||"",a=MC(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=qC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function ET(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let h=c[f];if(f==="translate"&&h==="no"){let b=p.innerText||p.textContent||"";if(!b.trim()||PU(p,a,i,o)||!WC(b,n,r))continue}p.getAttribute(f)!==h&&(h===null?p.removeAttribute(f):p.setAttribute(f,h))}})}}function A1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function qm(e,t){return MU(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function MU(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Zd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function gc(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function PU(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&qm(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Xd(o,t,n))return!0}}return!1}function _U(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ma(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function RU(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ma(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function AT(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new K0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=FU(u.content,t),n&&OU(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:RC(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function kT(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function IU(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` -`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=IU(o,20),u=BU(o),l=null;for(let c of u){let m=document.body.querySelectorAll(c);if(m.length&&(m.forEach(g=>{let p=g.textContent?.trim().length||0,f=l?.textContent?.trim().length||0;p>f&&(s?g.innerText?.includes(s)&&(l=g):l=g)}),l)){i.push(l);break}}}),!!i.length)return Qd(i,document.body,t)}function BU(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function OU(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function DT(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(o0)||k1(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var pc="";async function k1(e){let t=document.title;if(!t||t.includes(o0))return;pc!==t&&(pc=t);let n=await ze({text:t,pageLangs:[Lt(),"en"]});if(!Gs(e,n))try{let r=await gr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=pc,document.title=r.text+o0+pc)}catch(r){throw r}}function LT(e){e.rule.isTranslateTitle&&(document.title=pc)}function yu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function zm(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?I4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + `),c].join("");return d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ga,{image:an("images/dual_subtitle_intro.png"),nightImage:an("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(bU,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(to,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(hU,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(yU,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(be,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function hU(e){let{t}=F(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(be,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function bU(e){let{config:t,setSettings:n}=e,{t:r}=F(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(le,{children:[d("div",{class:"youtube-header",children:[d(xU,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(be,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(be,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(lc,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(be,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:Vu})}),d(lc,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("onlyProUseProTooltip",{1:Vu}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function yU(e){let{t}=F(),[n,r]=O(!1),a=CU(e.subtitleRule,t,n),i=ue(async()=>{let s=(await Vs())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return jm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(le,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(be,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(vU,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function vU(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(be,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var CU=(e,t,n)=>{let r=Nm(t),a=Um(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:hu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:hu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:bu,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:bu,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Bm,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:Om(t),selectKey:e.textShadowType}]};function xU(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var vT=il({presets:[S0(),E0()]});var TU=1e5;var CT=Date.now();async function pi(e){let{onParagraph:t,filterRule:n,id:r,engineCtx:a}=e;n=SU(n);let{stayOriginalSelectors:i,globalStyles:o,selectors:s,isTransformPreTagNewLine:u,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:m,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,b=null;async function y(S){let{container:w,onFrame:A,onIgnoreElement:D,id:M,isLongHtml:R}=S,_=document.createTreeWalker(w,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,N=>{let U=L(N);return U==NodeFilter.FILTER_ACCEPT?Rt.mark(N,M,g):PU(N,U,n)&&v(),U}),B=w;if(L(B)===NodeFilter.FILTER_REJECT)return;for(Rt.mark(B,M,g);B;){if(a?.interruptEffectDOM)return;let N=Date.now()-CT;if(N>50&&(k.debug("taskTime",N,w),CT=Date.now(),await tt(0)),s&&s.length>0){let{currentNode:U,isMatchedSelection:V}=h(_,B,s);if(U)B=U;else break;if(!V)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let U=B;if(U.nodeName==="IFRAME"){A&&A(U),v(),S1(p,!0),B=_.nextNode();continue}U.nodeType===Node.ELEMENT_NODE&&(o&&w1(U,o),c&&A1(U,c));let V=La(U,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},U.immersiveTranslateComputedStyle||null);if(V&&n.paragraphFirstLetterFontSize>0&&U.childNodes.length==1&&U.childNodes[0].nodeType===Node.TEXT_NODE&&U.innerText?.length==1&&U?.immersiveTranslateComputedStyle?.fontSize>=n.paragraphFirstLetterFontSize+"px"&&(V=!1),qt(U,i)&&!V){C(U);let _e=null;for(;!(_e=_.nextSibling())&&_.parentNode(););B=_e;continue}let Y=Ro(U);if(!xT(p,U)||V){v(U);let _e=V?U:U.parentElement;_e&&_e.childNodes.length>0&&x(p,_e,_e.immersiveTranslateComputedStyle||null)}Y&&U.shadowRoot?.mode==="open"&&(V?A?.(U.shadowRoot):y({...S,container:U.shadowRoot})),U.nodeType===Node.ELEMENT_NODE&&qt(U,n.likePreSelectors)&&u&&(R||kU(U,n.advanceTransformPreTagNewLine))}else if(B.nodeType===Node.TEXT_NODE)C(B);else throw new Error("should not be here");B=_.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function L(N){if(N.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Fo(N)){if(c){let ae=Object.keys(c);if(ae.length>0&&qt(N,ae))for(let xe of ae){let H=c[xe];if(N.matches(xe)){let W=c[xe],ee=Object.keys(W);for(let Me of ee){let ve=W[Me];N.getAttribute(Me)!==ve&&(ve===null?N.removeAttribute(Me):N.setAttribute(Me,ve))}break}}}if(!S.force&&Rt.isMarked(N,M)||SC(N,M)||Hm(N,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,excludeSelectorsRegexes:n.excludeSelectorsRegexes,stayOriginalSelectors:i})||N.nodeName==="IFRAME"&&!qi(N))return NodeFilter.FILTER_REJECT;if(N.nodeType===Node.ELEMENT_NODE){let ae=window.getComputedStyle(N);if(N.immersiveTranslateComputedStyle=ae,E1(ae))return D&&D(N),NodeFilter.FILTER_REJECT;let _e=La(N,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},ae||null);if(N.isBlock=_e,qt(N,i)&&_e)return NodeFilter.FILTER_REJECT}let U=N.getBoundingClientRect(),{width:V,height:Y}=U;return N.nodeName==="IMG"&&(V>48&&Y>48?N.immersiveTranslateComputedStyle={display:"block"}:V>0&&Y>0&&m!==!1&&(N.setAttribute("width",V),N.setAttribute("height",Y))),!N.childNodes||N.childNodes&&N.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(V>0&&V<4||Y>0&&Y<4)&&(N.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(N.nodeType===Node.TEXT_NODE){let U=N.textContent?.trim();if(!U)return/^( )+$/.test(N.parentElement?.innerHTML?.trim()||"")||p.isPreWhitespace||/^\u00A0+$/.test(N.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let V=N.parentNode;if(V.getBoundingClientRect){let{width:Y,height:ae}=V.getBoundingClientRect();if(Y>0&&Y<4||ae>0&&ae<4)return NodeFilter.FILTER_REJECT}return l>0&&U.length>=l&&DU(N,l,n.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await y(e)}catch(S){k.error(S)}p&&p.commonAncestorContainer&&p.flatNodes.length>0&&v();function h(S,w,A){let D=w.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(w))if(f=!1,w&&w.nodeType===Node.ELEMENT_NODE)if(mc(w,A))f=!0,b=w,v(),x(p,b,D);else return f=!1,w=S.nextNode(),{currentNode:w,isMatchedSelection:f};else return f=!1,w=S.nextNode(),{currentNode:w,isMatchedSelection:f}}else if(w&&w.nodeType===Node.ELEMENT_NODE)if(mc(w,A))f=!0,b=w,v(),x(p,b,D);else return f=!1,w=S.nextNode(),{currentNode:w,isMatchedSelection:f};else return f=!1,w=S.nextNode(),{currentNode:w,isMatchedSelection:f};return{currentNode:w,isMatchedSelection:!0}}function v(S){let w=p.flatNodes.length-1;if(n.skipTrailTextRegex&&w>0)for(let D=w;D>=0;D--){let R=p.flatNodes[D]?.textContent?.trim()||"";if(!R||new RegExp(n.skipTrailTextRegex).test(R)){p.flatNodes.splice(D,1);continue}break}if(S&&S.nodeName==="BR"){if(S.hasAttribute("data-imt")&&a?.translateState=="translation")return;p.commonAncestorContainer=_U(S,n);let D=[...p.flatNodes],M=p.flatNodes.filter(R=>S.parentNode?.contains(R));M.length>0&&D.length!=M.length&&(p.flatNodes=M,p.flatNodes.original=D)}let A=AU(p,r,n);A&&t&&t(A),S1(p)}function C(S){if(!xT(p,S)){v(),S1(p);let w=S.parentNode;w&&x(p,w,w.computedStyle)}p.flatNodes.push(S)}function x(S,w,A){S.commonAncestorContainer=w;let D=T(A);S.isPreWhitespace=D}function T(S){return S&&S.whiteSpace&&S.whiteSpace.startsWith("pre")||S&&S.whiteSpace==="break-spaces"||!1}}function xT(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Ro(t));let r=EU(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function SU(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function wU(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function w1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function EU(e){return e&&e._currentStacks?e._currentStacks.some(t=>Ro(t)):!1}function AU(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Jd(r,a,n);o||(o=a);let s=[];for(let p of r){let f=wU(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>TU){k.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:MC(o)}}else return null}function S1(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function E1(e){return e.display==="none"}var Rt={_marked_key:F2,isMarked(e,t){return N4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Ro(e)))return WC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)Rt.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Ro(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Ro(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function kU(e,t){let n=e.innerHTML,r=n.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");if(r!=n){try{if(t){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=[],o;for(;o=a.nextNode();)i.push(o);i.forEach(s=>{let u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/);if(u?.length<=1&&(u=(s.nodeValue||"")?.split(/\n\r? *\n\r?/)),u.length>1){let l=s;l.nodeValue=u[0],u.slice(1).forEach(c=>{let m=document.createElement("br");m.setAttribute("data-imt","1");let g=document.createTextNode(c);l.parentNode.insertBefore(m,l.nextSibling),l.parentNode.insertBefore(g,m.nextSibling),l=g,l.parentNode.formatHtml=!0})}});return}}catch{}e.innerHTML=nr?.createHTML(r)||r,e.immersive=!0,e.formatHtml=!0}}function DU(e,t,n){let r=e.textContent||"",a=DC(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=jC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function ST(e,t,n,r,a,i,o){if(!e)return;let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let b=c[f];if(f==="translate"&&b==="no"){let h=p.innerText||p.textContent||"";if(!h.trim()||MU(p,a,i,o)||!qC(h,n,r))continue}p.getAttribute(f)!==b&&(b===null?p.removeAttribute(f):p.setAttribute(f,b))}})}}function A1(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Hm(e,t){return LU(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function LU(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Yd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function mc(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function MU(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Hm(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Qd(o,t,n))return!0}}return!1}function PU(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&La(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function _U(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&La(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function wT(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r||n};if(document.body.scrollHeight!=0&&document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new V0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=IU(u.content,t),n&&BU(a,n)&&(r=n)}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:PC(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function ET(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function RU(e,t){try{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=n.nextNode();)if((r.textContent?.trim().length||0)>t){let a=r.parentNode.innerText.trim().split(` +`),i="";return a.forEach(o=>{i.length *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=RU(o,20),u=FU(o),l=null;for(let c of u){let m=document.body.querySelectorAll(c);if(m.length&&(m.forEach(g=>{let p=g.textContent?.trim().length||0,f=l?.textContent?.trim().length||0;p>f&&(s?g.innerText?.includes(s)&&(l=g):l=g)}),l)){i.push(l);break}}}),!!i.length)return Jd(i,document.body,t)}function FU(e){let t=[],n=e.id,r=[];e.classList.forEach(i=>{i.includes(".")||i.includes(":")||i.includes("/")||i.includes("[")||r.push("."+i.trim())}),n?(t.push(`#${n}${r.join("")}`),t.push(`#${n}${r.filter(i=>i!=".container").join("")}`),t.push(`#${n}`)):(t.push(`${r.join("")}`),t.push(`${r.filter(i=>i!=".container").join("")}`));let a=[...new Set(t)].filter(i=>!!i);return a.length?a:[e.tagName]}function BU(e,t){let n=!1;for(let[a,{minNum:i,maxNum:o}]of Object.entries(e.matchNodeRule)){let s=t.querySelectorAll(a).length;if(o){n=s>=i&&s<=o;break}else if(s>=i){n=!0;break}}let r=t.innerText.length;return n&&r>=e.minTextLength}function AT(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(r){r.length>0&&(r[0].target.text.includes(i0)||k1(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var gc="";async function k1(e){let t=document.title;if(!t||t.includes(i0))return;gc!==t&&(gc=t);let n=await Ge({text:t,pageLangs:[Lt(),"en"]});if(!Gs(e,n))try{let r=await sa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=gc,document.title=r.text+i0+gc)}catch(r){throw r}}function kT(e){e.rule.isTranslateTitle&&(document.title=gc)}function yu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function qm(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?I4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function MT(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?I4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function DT(e){try{let t=document.head?.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?I4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${P}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function Wm(e){let t=yC(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function En(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=L4(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var NU={sanitize:e=>e};async function P1(e,t){if(e.interruptEffectDOM)return;li("consumeContainer");let n=En(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:zo.bind(null,e),onFrame:r=>{D1(e,r,!0)},onIgnoreElement:r=>{Rt.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),ns&&zt(t,"consumeContainer",e.id)}function D1(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!qi(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Jg}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,_a(t.contentWindow?.document.documentElement,e.translateState),ro(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ro(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ro(e,t,n=!0){li("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=En(t.ctx),o=0;if(l(t,e,n))return;if(Fo(e)&&u(e)){Rt.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Fo(m)&&(a&&w1(m,a),i&&A1(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,Rt.clearMark(c),t.immediateTranslateCapacity>=0){await P1(t,c);let m=Date.now()-r;m>100&&(k.debug("batchTaskTime",m,c),r=Date.now(),await tt(0))}else ns&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return D1(t,c.shadowRoot,n),!1;if(m==="iframe")return D1(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return gc(c,g.selectors);if(t.ctx.rule.enableSkipBuildContainer||g.containerSelectors&&gc(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){kT(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&Rt.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=En(c.ctx);return!!(qm(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function fc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!Rt.isSkipMarkEle(a)&&!Rt.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&qo(t.rootNodes),r=="original"&&n=="translation"){let s=vu(e,t.rootNodes);if(L1(s))return;no(e,s,a,t.targetNodes||[]),qo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=vu(e,t.targetNodes,s);no(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=vu(e,t.rootNodes);if(L1(s))return;no(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=vu(e,t.targetNodes);no(e,s,a,t.rootNodes||[]),qo(t.targetNodes)}r=="dual"&&n=="original"&&qo(t.targetNodes),I1(t)}catch(s){k.error(s)}li("inserted"),BC()}}function L1(e){return!e||!Fo(e)?!1:e.classList.contains(Kt)}function vu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function qo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function no(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var UU=vr(Vm,300);async function zo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;li("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||jU(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ns&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Io(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=lm(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:Wm(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await R1(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Pa(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(k.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),HU(e,t.text),_1(e,t,r)):(ns&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function jU(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Fo(t)&&t.classList.contains(Kt):!1}function HU(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function _1(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;li("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),ns&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,N2,"1",!0),n=="hover"){Vm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";UU.call(e,e.ctx,a)}async function Vm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await Km(o,{...e,translationService:this.translationService},this.translateState,t)})}async function Km(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=zl(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;no(t,u,i.commonAncestorContainer,[s]),I1(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await hn(a,t,(i,o,s)=>{let u=s.id,l=qU(e,u.toString());l&&zU.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function qU(e,t){return e.find(n=>n.id===t)}function zU(e,t,n,r,a,i){li("translated");let o=!1,s=r;$s(s.commonAncestorContainer,n.id)?.remove(),I1(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Kt),g.setAttribute(os,"1");let p=hx(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),yu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=NU.sanitize(p);g.innerHTML=cr?.createHTML(f)||f,c.targetNodes=[g],fc(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,q2,g.toString()),p.classList.add("notranslate",Kt,Kt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(L1(f)||no(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=WU(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${P}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function zm(e){let t=hC(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function En(e,t){if(!t&&e.filterRule)return e.filterRule;let n=e.rule;e.isRichTranslate&&(n=L4(n));let r=[...n.selectors],a=[...n.excludeTags],i=[...n.excludeSelectors],o={...n.excludeSelectorsRegexes};return e.state.translationArea==="body"?(r=[],i=[],o={}):(n.preTranslateLimiter?.keys||[]).forEach(u=>{n.preTranslateLimiter[`${u}.enableTranslate`]||i.push(...n.preTranslateLimiter[`${u}.selectors`]||[])}),{paragraphFirstLetterFontSize:n.paragraphFirstLetterFontSize,globalStyles:n.globalStyles,globalAttributes:n.globalAttributes,selectors:r,atomicBlockSelectors:n.atomicBlockSelectors,skipEditableCheck:n.skipEditableCheck,lineBreakMaxTextCount:n.lineBreakMaxTextCount,lineBreakRegexStr:n.lineBreakRegexStr,isTransformPreTagNewLine:n.isTransformPreTagNewLine,likePreSelectors:n.likePreSelectors,skipBuildContainerSelectors:n.skipBuildContainerSelectors,buildContainerSelectors:n.buildContainerSelectors,excludeSelectors:a.map(u=>u.toLowerCase()).filter(u=>u!=="code"&&u!=="img").concat(i).concat(n.additionalExcludeSelectors),excludeSelectorsRegexes:o,blockSelectors:n.allBlockTags.map(u=>u.toLowerCase()).concat(n.extraBlockSelectors),extraBlockSelectors:n.extraBlockSelectors,extraInlineSelectors:n.extraInlineSelectors.concat(n.additionalInlineSelectors),stayOriginalSelectors:n.stayOriginalTags.map(u=>u.toLowerCase()).concat(n.stayOriginalSelectors).concat(n.additionalStayOriginalSelectors),skipTrailTextRegex:n.skipTrailTextRegex,advanceTransformPreTagNewLine:n.advanceTransformPreTagNewLine}}var OU={sanitize:e=>e};async function P1(e,t){if(e.interruptEffectDOM)return;ui("consumeContainer");let n=En(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:zo.bind(null,e),onFrame:r=>{D1(e,r,!0)},onIgnoreElement:r=>{Rt.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),ns&&zt(t,"consumeContainer",e.id)}function D1(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!qi(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Jg}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Pa(t.contentWindow?.document.documentElement,e.translateState),ro(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),ro(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function ro(e,t,n=!0){ui("buildContainer");let r=Date.now(),{globalStyles:a,globalAttributes:i}=En(t.ctx),o=0;if(l(t,e,n))return;if(Fo(e)&&u(e)){Rt.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Fo(m)&&(a&&w1(m,a),i&&A1(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,Rt.clearMark(c),t.immediateTranslateCapacity>=0){await P1(t,c);let m=Date.now()-r;m>100&&(k.debug("batchTaskTime",m,c),r=Date.now(),await tt(0))}else ns&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return D1(t,c.shadowRoot,n),!1;if(m==="iframe")return D1(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return mc(c,g.selectors);if(t.ctx.rule.enableSkipBuildContainer||g.containerSelectors&&mc(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){ET(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&Rt.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=En(c.ctx);return!!(Hm(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function pc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!Rt.isSkipMarkEle(a)&&!Rt.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&qo(t.rootNodes),r=="original"&&n=="translation"){let s=vu(e,t.rootNodes);if(L1(s))return;no(e,s,a,t.targetNodes||[]),qo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=vu(e,t.targetNodes,s);no(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=vu(e,t.rootNodes);if(L1(s))return;no(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=vu(e,t.targetNodes);no(e,s,a,t.rootNodes||[]),qo(t.targetNodes)}r=="dual"&&n=="original"&&qo(t.targetNodes),I1(t)}catch(s){k.error(s)}ui("inserted"),IC()}}function L1(e){return!e||!Fo(e)?!1:e.classList.contains(Kt)}function vu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function qo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function no(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var NU=yr(Wm,300);async function zo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;ui("parseParagraph");let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||UU(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ns&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Io(i.config.translationServices,e.translationService),u=i.config.translationServices[i.translationService],l=um(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:zm(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await R1(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Ma(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(k.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),jU(e,t.text),_1(e,t,r)):(ns&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function UU(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Fo(t)&&t.classList.contains(Kt):!1}function jU(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function _1(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;ui("consumeParagraph"),t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),ns&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,B2,"1",!0),n=="hover"){Wm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";NU.call(e,e.ctx,a)}async function Wm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[],a=[];for(let o=0;o{await Vm(o,{...e,translationService:this.translationService},this.translateState,t)})}async function Vm(e,t,n,r=!1){let a={sentences:[]};for(let i of e){let o=i.id,s=ql(t,o,r),u=i.rootNodes[i.rootNodes.length-1].nextSibling;no(t,u,i.commonAncestorContainer,[s]),I1(i),a.sentences.push({id:parseInt(o),url:t.encryptedUrl,text:i.text,from:i.languageByLocal||"auto",fromByClient:i.languageByClient||"auto",to:t.targetLanguage,xpath:i.xpath,force:i.force,inArticleContext:i.inArticleContext})}if(a.sentences.length>0)try{await hn(a,t,(i,o,s)=>{let u=s.id,l=HU(e,u.toString());l&&qU.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function HU(e,t){return e.find(n=>n.id===t)}function qU(e,t,n,r,a,i){ui("translated");let o=!1,s=r;$s(s.commonAncestorContainer,n.id)?.remove(),I1(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.contextTargetText=t?.contextText,c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Kt),g.setAttribute(os,"1");let p=px(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),yu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=OU.sanitize(p);g.innerHTML=nr?.createHTML(f)||f,c.targetNodes=[g],pc(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,j2,g.toString()),p.classList.add("notranslate",Kt,Kt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(L1(f)||no(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=zU(a,c).replaceAll(` `,"").replaceAll('"',"""),y=c.message.replaceAll(` -`,"").replaceAll('"',"""),b=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),x=Pe(a.config.interfaceLanguage,"error.reason"),T=`<${m.targetWrapperTag} class="${P}-error notranslate"> +`,"").replaceAll('"',"""),h=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),x=Pe(a.config.interfaceLanguage,"error.reason"),T=`<${m.targetWrapperTag} class="${P}-error notranslate"> <${m.targetWrapperTag} class="${P}-error-wrapper"> - + ${C}    - + ${x} - `;p.innerHTML=cr?.createHTML(T)||T}}}var PT="";async function R1(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=PT.slice(0,e.rule?.detectTextBufferLength)+" "+o),PT=s;let u=await ze({text:s,minLength:15,pageLangs:[Lt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Ys({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Ys({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=cd();r.isDetectParagraphLanguage&&(g="auto");let p=Lt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!nd.includes(e.translationService)&&(Q()||je())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let h=g!=="auto"?g:f;return Pi(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>Pi(h,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function hc(){M1=0}var M1=0;function WU(e,t){M1+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new z("contextInvalidated",n)),t instanceof z){let r=t.uiConfig(e);if(n=JSON.stringify(r),M1!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(In,{detail:r}))}return n}function I1(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,VU(t,`[${U2}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function VU(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function _T(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Js(document.body),pageLangs:t})),e}var KU=[];function RT(e){KU.push(e)}var F1;function IT(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=En(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{bc(e,i,t,r)}),F1=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Ar(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||O1(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&bc(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Ma(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Zs(r,u.parentElement);c&&(Rt.clearToParentMark(u,c),bc(e,c,t,r));continue}bc(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{Rt.isMarked(o,e.id)||bc(e,o,t,r)})}),F1.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function bc(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&B1(t),pi({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{zo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function FT(){F1?.disconnect()}var GU=` + `;p.innerHTML=nr?.createHTML(T)||T}}}var LT="";async function R1(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=LT.slice(0,e.rule?.detectTextBufferLength)+" "+o),LT=s;let u=await Ge({text:s,minLength:15,pageLangs:[Lt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Ys({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Ys({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=ld();r.isDetectParagraphLanguage&&(g="auto");let p=Lt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!td.includes(e.translationService)&&(Q()||je())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let b=g!=="auto"?g:f;return Pi(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>Pi(b,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function fc(){M1=0}var M1=0;function zU(e,t){M1+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new z("contextInvalidated",n)),t instanceof z){let r=t.uiConfig(e);if(n=JSON.stringify(r),M1!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(or,{detail:r}))}return n}function I1(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,WU(t,`[${O2}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function WU(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function MT(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ge({text:Js(document.body),pageLangs:t})),e}var VU=[];function PT(e){VU.push(e)}var F1;function _T(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=En(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{hc(e,i,t,r)}),F1=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Er(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||O1(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&hc(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!La(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Zs(r,u.parentElement);c&&(Rt.clearToParentMark(u,c),hc(e,c,t,r));continue}hc(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{Rt.isMarked(o,e.id)||hc(e,o,t,r)})}),F1.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function hc(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&B1(t),pi({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{zo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function RT(){F1?.disconnect()}var KU=` .toastify { padding: 12px 20px; color: #ffffff; @@ -6033,10 +6033,10 @@ x-tc-action:`+this.action.toLowerCase()+` max-width: fit-content; } } -`,N1="immersive-translate-toastify-shadow-root",U1=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(N1)){let t=document.getElementById(N1);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=N1,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=GU,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Gm(e){e=e||{},new U1({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function BT(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function bn(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{k.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:Qc,payload:e},"*")});let n=new CustomEvent(Hr,{detail:e});globalThis.document.dispatchEvent(n)}function j1(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&$t(o,s=>{s.preventDefault();let u=r[i];bn({method:u,data:{trigger:"shortcut"}})})}}var $U="imt-fb";function yn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${$U}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function OT(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var $m="DROP_DOWN_DEFAULT_VALUE";function H1(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return d("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:$m,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==$m){s.current.value=$m,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:$m,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var YU=({date:e})=>{let{t}=F(),[n,r]=O(!1);return q(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},ZU=({minVersion:e})=>{let{t}=F();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},JU=()=>{let{t:e}=F();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:$+"docs/installation/"})}})},QU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=F();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function q1(e){let{isShowError:t,request:n}=e,[r,a]=O(null),{t:i}=F(),[o,s]=O(null),[u,l]=O(null),[c,m]=O(""),[g,p]=O(!1),[f,h]=O(!1),[y,b]=O(!1),[v,C]=O(null),[x,T]=O(null),w=Hn(),S=async()=>{m("");let A=o;if(o===null)try{let D=await n({url:Ci});D?(s(D),A=D,p(!0)):(m(i("unknownError")),l(null))}catch(D){l(null),m(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return q(()=>{Se.DEBUG||Ze().then(A=>{let D=A.buildinConfigUpdatedAt;C(A);let M=new Date(D);if(a(D),w==="0.0.0"){b(!0);return}n({url:Ci}).then(R=>{let _=R,B=_.minVersion,L=w;s(_);let N=_.latestVersion;if(N&&(za(L,N)?T(!0):T(!1)),za(L,B)){let U=_.buildinConfigUpdatedAt;new Date(U)>M?(l(!0),S()):l(!1)}else h(!0),l(null)}).catch(R=>{l(null),m(R.message)})})},[]),q(()=>{Ze().then(A=>{C(A),sa(A)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(JU,{}):c?t===!1?null:d(QU,{handleSyncing:S,message:c,date:r||""}):f?t===!1?null:d(ZU,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(YU,{date:r}):null}):null}var NT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var UT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),jT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),HT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),qT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var zT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),WT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),VT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),KT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function Cu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function GT(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=F();return tr(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Ti,`${e.type}_user_info`);return}e.onOpenUrl(ls,`${e.type}_user_info`)},children:[d("img",{src:n?H8:j8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(XU,{...e})]})}function XU(e){let{t}=F(),n=te(()=>Cu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ti,`${e.type}_pro_logo`)},children:d("img",{src:gi})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Dn)},children:[d(yn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Dn,`${e.type}_user_upgrade`)},children:[WT,d("span",{children:t("popup.upgrade")})]})}function $T({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=F();if(!t)return null;let o=eo(t.config.translationService,t.config.targetLanguage),s=sr;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(ej,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:q8,style:{maxWidth:"unset"},class:"mx-2"}),d(tj,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function ej(e){let{t}=F(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function tj(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var YT=220;function ZT(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=O(!1),i=Ce(null),[o,s]=O(YT),[u,l]=O(0);return tl(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,h=20,y=30,b=5,v=g.clientHeight-h*2,C=t.length*y+b*3,x=f+m.height;if(C>g.clientHeight-x){let T=Math.min(v,C);l(g.clientHeight-f-T-h)}else l(0);s(Math.max(YT,v))}},[i.current,r,t]),q(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(JT,{item:n,isDefault:!0}),KT]}),d(nj,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function nj(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return q(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(JT,{item:o,onClick:e.onClick},o.value))})}function JT(e){let t=e.item,{t:n}=F();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:gi}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}function QT(e){let{t}=F(),{translationServiceItems:n,translationServiceOptions:r}=oj(e),a=te(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(XT,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(rj,{...e,currentTranslationService:a})]}):null}function XT(e){let{t}=F(),n=te(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=oa(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(ZT,{className:"translate-service",items:n}):d(la,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function rj({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=F(),u=ij(e,o),l=aj(e,o),c=ue((g,p)=>{t(f=>{let h=f.translationServices||{},y=h[u.id]||{};return{...f,translationServices:{...h,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=te(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[g.name],onSelected:y=>{if(h.action=="jumpOptions"){let b=h.args||[];r(...b);return}c(g.name,h.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(le,{children:m.map(({label:g,items:p},f)=>d(XT,{label:g,items:p,ctx:e},"field-"+f))})}function aj(e,t){return te(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function ij(e,t){let{lang:n}=F();return te(()=>{let a=Ms(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Yr,Jf,e,n,t])}function oj({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=F(),m=te(()=>t?Ls(t,"translationService",c):[],[t,c]),g=ue(f=>{let h=m.find(y=>y.id===f.value);if(h.ok){if(u({translationService:h.id}),n(y=>(a(y.translationService||"",h.id),{...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=te(()=>{let f=tr(t.config),y=m.filter(b=>t.config.showUnconfiguredTranslationServiceInPopup===!1?b.ok:!0).map(b=>{let v=rd(b,e,f,l,!0),C=(b.id,void 0);b.id.startsWith("custom-ai")&&(C=void 0),b.id.startsWith("mock")&&(C="");let x=Ja.includes(b.id)&&!b.ok&&!f;return{label:v,value:b.id,selected:b.selected,img:C,onSelected:g,isShowProOrCustom:x,isShowGoSetting:!b.ok&&!x}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:void 0,onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function eS(e){let t;try{t=new URL(e)}catch{return!1}let n=Uv(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(sj(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function sj(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function tS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function nS(e){let{t}=F(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=uj(e),[o,s]=O(()=>a?"excludeMatches":"matches"),u=te(()=>r||a||!1,[r,a]),l=ue(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(la,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function uj({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=te(()=>new URL(e||""),[e]),t.config&&e&&eS(e)){c=tS(e);let{matches:b,excludeMatches:v}=f;m=!!b.find(C=>dt(e,C)),g=!!v.find(C=>dt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:b}=t.config,{matches:v}=b;v.includes(n)?p=!0:p=!1}let h=ue(()=>{let b=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(T=>T.match!==b),x=!1;C.length!==v.length&&(x=!0),x&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=ue((b,v)=>{if(b==="default"){s(T=>{let w={...T.translationUrlPattern};return{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,matches:z1(e,w.matches),excludeMatches:z1(e,w.excludeMatches)}}}),h();return}let C=b,x=C==="matches"?"excludeMatches":"matches";l&&s(T=>{let w={...T.translationUrlPattern};return w[x]=z1(e,w[x]),w[C]=qn(v,w[C]),{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,...w}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function z1(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!dt(e,n)):t):[]}function rS(e){let{t}=F(),{ctx:n,setSettings:r}=e,a=lj(e);return $r(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(la,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),d("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Za[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(cj,{...e})}function lj({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=F(),a=te(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=te(()=>Za.filter(s=>!(s==="Off"||Za.includes(a)&&s==="OtherCustom")),[e,a]);return te(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Fa(s)}),l=Za.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function cj(e){let{ctx:t,setSettings:n}=e,{t:r}=F(),a=t.config.generalRule,i=Object.keys(yc).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(la,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function aS(e){let{isAlwaysTranslateLang:t}=dj({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=F();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Zt(e.currentLang,u.matches),excludeMatches:Zt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Zt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function dj({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function oS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=F(),i=Te(),o=te(()=>{let s=[{title:a("widget.translateFile"),icon:NT,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:zT,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(Yu,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:VT,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(pb,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(yt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(iS,{...s})}):d(iS,{...s}))})}function iS(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var mj=["bing","transmart","google","yandex"];function uS(e){let{t}=F();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:gi,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service`)}})]}):null}var sS="popup_trial_pro_show_count";function lS(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=O(null),s=Ce(!1);q(()=>{Eo(sS,0).then(l=>{o(l)})},[]);let u=te(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!mj.includes(m)},[t,n,r,i]);return q(()=>{!u||i==null||s.current||(s.current=!0,Ao(sS,i+1))},[u,i,s,a]),{showTrialPro:u}}function W1(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=O(""),[c,m]=O(null),[g,p]=O(null);q(()=>{nt.get(pt,null).then(v=>{v?(m(v),p(kt(v))):p(!1)}).catch(v=>{p(!1)})},[]);let f=!0,h=je();n&&h&&(f=n.generalRule.showSponsorOnSafari);let y=tr(n),{showTrialPro:b}=lS({ctx:a,isHidden:y,isProUser:!!g,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[y&&!g?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(GT,{isLogin:!!c,isProUser:!!g,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(vj,{openSharePage:r})]}),d($T,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(QT,{isProUser:!!g,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:b}),d(uS,{showTrialPro:b,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(fj,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(bj,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d(Cj,{aiContextInfo:s,curUrl:a.url}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(q1,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(nS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(rS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(aS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(pj,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(gj,{ctx:a})]}),d(oS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:y})]}),d(hj,{...e,isProUser:!!g,isShowPricing:f,setMessage:l})]})}function gj({ctx:e}){if(e.rule.imageRule?.type!="manga"||!um(e.rule.imageRule))return null;let{t}=F();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function pj(e){let{t}=F(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!te(()=>!i.disabled&&np.includes(i.type||""),[n,np,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Vd()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function fj(e){let{t}=F(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(yt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?jT:HT})})}function hj(e){let{t,lang:n}=F(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ue(v=>{i&&(o(C=>ji({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ui(i,s.rawUserConfig),m=Te(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[UT,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(yj,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(H1,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(Dn),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?h():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(Dn,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(Gu,g):v.value==="cleanCache"?ma().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&b(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function h(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function b(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function bj({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=F(),l=r.config,c=te(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Do(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Qn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):Q()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(xr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Fa(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function yj({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=F(),o=Hn();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${P}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),lr(`${$}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[_o(e.config),e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function vj(e){let{t}=F();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),qT]})}function Cj({aiContextInfo:e,curUrl:t}){let{t:n}=F();if(!e?.visible)return null;let r=te(()=>{let a=new URL(t);return a.searchParams.append(p0,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return d("div",{class:"flex flex-row mt-3 items-center",children:[eT(),d("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&d(yt,{text:n("contextDiffPreview",{1:r}),children:_m()})]})}var uye=1e3*3600*24;async function cS(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[V2]:t.toISOString()}),await V1(),Q()||await Wv()}catch(t){k.error("run cron task failed",t)}}async function V1(){try{let e=await Fr(),t=await X({url:Ci});sa(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;za(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ea({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}function Ym(e){let{onClose:t}=e,[n,r]=O("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});Je(a,i);let[u,l]=O(null),[c,m]=O(globalThis.location.href),[g,p]=O("auto"),[f,h]=O(null),[y,b]=O({visible:!1,preview:!1}),v=Ce(!1);q(()=>{!f||v.current||(v.current=!0,Ne("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,v]);let C=N=>{r(N.detail)};q(()=>(document.addEventListener(po,C,!1),Fr().then(N=>{l(N);let U=Lt();p(U);let V=st();r(V),cS(N.interval)}),document.addEventListener("urlChange",w),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",w)}),[]),q(()=>{Fr().then(N=>{l(N)})},[a]),q(()=>{c&&u&&Zm().then(N=>{h(N)})},[c,u]),q(()=>{let N=gd();b({visible:!!N?.used,preview:N?.sourceProgram=="html"})},[]);let x=ue((N,U)=>{S("change_translate_service",!1,{translation_service:`${N}_${U}`})()},[]);if(!u||!f)return null;return d(W1,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},aiContextInfo:y,request:X,onClose:A,onToggleEnabled:D,onChangeService:x,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:_,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),onTranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onWebReport:S("webReport",!0),onTranslatePdf:()=>{R(Lo(f.rule)||c)},openAboutPage:B,openSharePage:S("shareToDraft",!0),onSetPageLanguage:T,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Br,onSetBuildinConfig:Iv,onAutoEnableSubtitleChanged:S("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:S("toggleEnableEditTranslation",!0),updateContextState:N=>S("updateContextState",!0,N)(),onOpenUrl:M,onUpdateFloatBallEnable:S("updateFloatBallEnable",!0)});function T(N){p(N);let U=OT(c,N,u.sourceLanguageUrlPattern);i(V=>({...V,sourceLanguageUrlPattern:U})),Sr(N)}function w(){m(globalThis.location.href)}function S(N,U,V={}){let Y={trigger:"page_popup",...V};return()=>{bn({method:N,data:Y}),U&&t()}}function A(){t()}function D(){i(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{A()},50)}function M(N,U){let V=N;U&&(V=`${N}?utm_source=extension&utm_medium=extension&utm_campaign=${U}`),Td(V,!0),setTimeout(()=>{A()},50)}function R(N){N&&(Fs(!1,N),setTimeout(()=>{A()},50))}function _(N=!0,U=""){Aa(N,U),setTimeout(()=>{t()},50)}function B(){xd(),setTimeout(()=>{t()},50)}function L(){zv(),setTimeout(()=>{t()},50)}}function hS(){let[e,t]=O("Original");return q(()=>{let n=st();t(n);let r=a=>{t(a.detail)};return document.addEventListener(po,r),()=>{document.removeEventListener(po,r)}},[]),{pageStatus:e}}function bS(){let[e,t]=O("Original");return q(()=>{let n=Rs();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ju,r),()=>{document.removeEventListener(ju,r)}},[]),{mangaStatus:e}}var dS=6,xj={position:"right",top:335};function yS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=O(!1),l=Ce(!1);l.current=s;let c=Ce(null),m=Ce(!1),g=Ce(n.floatBallConfig||xj),p=Ce(0),f=Ce(0),h=Ce(0),y=Ce(!1),b=Ce(0),v=Ce(0),C=Ce(0),x=Ce(0),T=Ce(!1),w=ue(S=>{if(!a)if(clearTimeout(c.current),S)u(S);else{let A=qe().any||xr();c.current=setTimeout(()=>{u(S),y.current=!1},A?3e3:0)}},[u,c,y,a]);return q(()=>{a||u(!1)},[a]),q(()=>{if(i.current&&g.current){let S=K1(g.current.top);g.current.top=S,i.current.style.top=`${S}px`,i.current.style.display="flex"}},[t,i]),q(()=>{if(!o.current||!i.current)return;let S=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,b.current=Date.now(),h.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),w(!0),C.current=L.clientX,x.current=L.clientY,T.current=!1,(qe().any||xr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{mS({startX:p.current,startY:f.current,endX:C.current,endY:x.current})||(T.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",R),document.addEventListener("mouseup",D),document.addEventListener("touchend",_),document.addEventListener("touchcancel",_)},A=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,x.current=L.clientY,T.current))return;let N=L.clientY-f.current+h.current,U=K1(N);i.current.style.top=`${U}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),B(),m.current=!1,clearTimeout(c.current),y.current||w(!1),T.current)return;mS({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let U=K1(L.clientY-30);g.current.top=U;let V=await Mn();Br({...V,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),S(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},_=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},B=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",R),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",_),document.removeEventListener("touchcancel",_)};return o.current.addEventListener("mousedown",S),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",S),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,w,e]),q(()=>{if(qe().any)return;let S=D=>{D.target===i.current&&!y.current||!l.current&&pS(D)&&c.current||(y.current=!0,w(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&pS(D)&&c.current)){if(m.current){y.current=!1;return}D.target===i.current&&!y.current||w(!1)}};return i.current?.addEventListener("mouseover",S),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",S),i.current?.removeEventListener("mouseout",A)}},[i,m,w,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:w}}function mS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>dS||i>dS}function vS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=te(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=te(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=te(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=te(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function CS(){let[e,t]=O(!1);return q(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var gS="hasShownFloatingBallGuide",Tj="2024-01-06";function xS(e,t){let[n,r]=O(!1),a=ue(()=>{Ye(gS,new Date().toISOString()),r(!0)},[r]);q(()=>{if(!e.config.enableShowFloatingBallGuide||Lt()==e.targetLanguage)return;let o=dt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Pt(gS,""),u=await Pt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(n0,o),()=>{document.removeEventListener(n0,o)}},[]);let i=ue(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function TS(){document.dispatchEvent(new CustomEvent(n0))}function SS(e,t){let n=Ce(0),[r,a]=O(!0),[i,o]=O(!1),s=Oe(),[u,l]=s,{t:c}=F(),m=ue(()=>{e?.config.floatBallTooltipRule&&(qe().any||xr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);q(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=ue(async()=>{if(!e)return;n.current=n.current+1,m();let h=await cn();l(y=>{let b={...h};return qe().any?b.h5FloatBallMainBtnTooltipShownCount=n.current:b.pcFloatBallMainBtnTooltipShownCount=n.current,b})},[l,m,n,e]),p=te(()=>qe().any||!r||xr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=te(()=>{if(qe().any||xr())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${Fa(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function K1(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var G1=0;function pS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(G1=Date.now(),!0):Date.now()-G1<100}function wS(e,t){q(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(fo,n),()=>{globalThis.document.addEventListener(fo,n)}},[e,t])}function ES(e,t){let n=Ce(e);n.current=e,q(()=>{!n.current||!t||Ne("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var fS="imt-float-ball-active";function AS(e){q(()=>{let t=!!document.querySelector(`meta[name='${fS}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(fS)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(e0,n),()=>{document.removeEventListener(e0,n)}},[])}function kS(e){document.dispatchEvent(new CustomEvent(e0,{detail:{active:e}}))}function Sj({isOpen:e,onClose:t,children:n}){let[r,a]=O(e);return q(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(le,{children:[e&&d("div",{className:`${P}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${P}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${P}-sheet-content`,children:n})})]})}var Jm=Sj;var Wo="imt-fb";function LS(e){if(globalThis.innerWidth<=385)return d(Jm,{isOpen:e.visible,onClose:e.onClose,children:d(DS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${P}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${P}-popup-overlay`,class:`${P}-popup-overlay`,children:d("div",{class:`${P}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(DS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function DS(e){let{t}=F(),[n,r]=O("UntilNext"),a=Cd()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Wo}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Wo}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(yn,{type:"modal-close"})})]}),d("div",{class:`${Wo}-close-radio-content mt-3`,children:o.map(s=>d(wj,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{ka(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Wo}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Wo}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function wj(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=Ej(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Wo}-radio-sel`:`${Wo}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function Ej(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var Vo="imt-fb";function MS(e){let{t}=F(),n=a=>{a?.target?.id===P+"-popup-overlay"&&e.onClose()},r=te(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:d("div",{class:`${Vo}-guide-container`,style:r,children:[d("img",{class:`${Vo}-guide-bg ${e.fixedPosition}`,src:Aj}),d("div",{class:`${Vo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${Vo}-guide-img`,src:an("images/float_ball_intro.png")}),d("div",{class:`${Vo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` -${t("floatBall.longPress")}`:""]}),d("div",{class:`${Vo}-primary-btn ${Vo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var Aj="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var PS="imt-manga";function _S({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=F(),o=m=>{m?.target?.id===P+"-popup-overlay"&&t()},s=te(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ue(()=>{if(t(),!a.isPro){if(a.user)return window.open(rb);window.open(tb)}},[a,t]);return e?d("div",{onClick:o,id:P+"-popup-overlay",class:`${P}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${PS}-guide-bg ${r}`,src:`${Xt}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${PS}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(yn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var fi="imt-fb";function $1(e){let{t}=F(),n=Oe(),[r,a,i,o]=n;Je(r,a);let s=ft(r),u=e.ctx,{isFullScreen:l}=CS(),[c,m]=O(!1),g=Ce(c);g.current=c;let[p,f]=O(!0),{pageStatus:h}=hS(),y=ui(u,r),b=ue(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&bn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,bn,m]),v=ue(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:x,active:T,ballRef:w,floatBallConfigRef:S,setActive:A}=yS({handleBallClick:b,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),D=y?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:R,handleCloseGuide:_}=xS(e.ctx,y),{closeTransform:B,logoContainerTransform:L,settingTransform:N,mangaTransform:U}=vS(y,T||R);ES(u,T);let{tooltipDelay:V,disableTooltip:Y,tooltipText:ae,handleShowTooltip:_e}=SS(u,h);wS(m,g),AS(A);let H=globalThis.innerWidth<=385;return C?d(le,{children:d("div",{class:`${fi}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:T||R||c?"all":"none"},ref:x,children:[d(kj,{ctx:u,setVisible:f,closeTransform:B,setActive:A,getModalStyle:()=>RS(S.current.top,300,D)}),d(yt,{enableMobile:!0,text:ae,position:M,delay:V,onShow:_e,disable:Y,children:d("div",{class:`${fi}-btn ${D} btn-animate `,ref:w,style:{transform:L,opacity:T||R?1:.5},children:d("div",{children:[d(yn,{type:"logo"}),d(yn,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),d(Mj,{ctx:u,mangaTransform:U,floatBallConfigRef:S,fixedPosition:D,hidden:R}),d("div",{style:{marginTop:"12px",transform:N},class:`${fi}-more-buttons btn-animate`,children:[d(yt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{Td(mb,!0)},children:d(yn,{type:"file"})})}),d(yt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${fi}-more-button`,onClick:()=>{A(!0),m(!0)},children:d(yn,{type:"setting"})})}),d(_j,{ctx:u,tooltipPosition:M,rule:y,active:T})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:N},class:`${fi}-more-buttons btn-animate`,children:d(yt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(yn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(go,{detail:{type:"webReport"}}))}})})}),d(Y1,{onClose:()=>{A(!1),m(!1)},isSheet:H,visible:c,getModalStyle:()=>RS(S.current.top,500,D)}),d(MS,{visible:R,top:S.current.top,fixedPosition:D,onClose:()=>{_(),A(!1)}})]})}):null}function kj(e){let{t}=F(),[n,r]=O(!1),a=Oe(),[i,o,s,u]=a,l=ui(e.ctx,i),c=ue(g=>{e.ctx&&o(p=>ji({...p},g))},[e.ctx,o]),m=ue(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(le,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(yn,{type:"close"})}),d(LS,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function Y1(e){let t=n=>{n?.target?.id===P+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Jm,{isOpen:e.visible,onClose:e.onClose,children:d(Ym,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:d("div",{class:`${P}-popup-wrapper`,style:e.getModalStyle(),children:d(Ym,{onClose:e.onClose})})}):null}function Dj(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var RS=(e,t,n)=>{let a=Dj().height,i={position:"fixed"},o=0;return S2()&&(e=Lj.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},Lj={position:"right",right:0,top:335};function Mj({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=O(!1),{mangaStatus:u}=bS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=F();q(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Dt(p))})},[c,s]);let g=ue(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await nt.get(pt,null);if(kt(f)){e.user=f,e.isPro=!0,bn({method:"toggleTranslateManga"});return}s(!0);return}bn({method:"toggleTranslateManga"})},[]);return!um(l)||r||!l?.enable?null:d(le,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(yn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(yn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(yn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(yt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(yn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(go,{detail:{type:"mangaReport"}}))}})})]}),d(_S,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var Pj="float_ball_upgrade_show_count";function _j(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=F(),o=tr(n.config),s=Ce(!1),[u,l]=O(null),c=te(()=>Cu(n.config),[n]),m=p=>Cu(p)?.upgradeShowCountCacheKey||Pj;q(()=>{Eo(m(n.config),0).then(p=>{l(p)})},[n]);let g=te(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=Cu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return q(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ao(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(yt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||ap,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${fi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(yn,{type:"upgrade"})})})}):d(yt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(ap,"_blank")},children:d(yn,{type:"upgrade"})})})}async function IS(){try{let e=await Ze(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=P+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});Rj(a,e,n),document.documentElement.appendChild(r)}catch{}}function Rj(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Te(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Ij(e,[i]),e.appendChild(r),xa(d(Zi,{lang:t.interfaceLanguage,children:d(Fj,{ctx:n})}),r)}function Ij(e,t){for(let n of t){if(Q()&&!Qn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function Fj(e){let[t,n]=O(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");q(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(fo,u),()=>{globalThis.document.addEventListener(fo,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(Y1,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Qm(e){document.dispatchEvent(new CustomEvent(fo,{detail:e||{}}))}function Bj(e,t){for(let n of t){if(Q()&&!Qn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Z1(){let e=await Fr(),t=await cn(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await R4(r,t),i=dt(r.url,a?.blockUrls),o=await _t();if(!a?.enable||i)return IS();let s=document.createElement("div");s.id=P+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return Oj(u,e,o,r),document.documentElement.appendChild(s),s}function FS(){let e=document.getElementById(P+"-popup");e&&e.remove(),Z1()}function Oj(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Te(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Bj(e,[o]),e.appendChild(a),xa(d(Zi,{lang:t.interfaceLanguage,children:d($1,{localConfig:n,ctx:r})}),a)}var BS=!1;async function OS(){BS||(BS=!0,Z1().catch(e=>{k.error("init popup error",e)}))}var vc=null;function Cc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");vc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function J1(){let e=globalThis.location.href;if(!(!vc||vc.url!==e||!vc.subtitleItems.length))return vc}async function NS(){let e=J1();if(!e)return;let t=await _t();t.downloadSubtitle=e,await Dt(t),ka(gb)}async function US(){let e=await _t();if(e.downloadSubtitle)return e.downloadSubtitle}async function jS(e,t){let n,r;if(t){let a=zm(e);n=new Blob([a],{type:"text/html"}),r=await Yt(),r=Ni(!1,r)}return{siteUrl:location.href,pluginVersion:Hn(),isMobile:qe().any,platform:La(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function HS(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await na();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${lt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var Q1={};function ao(e){let t=Xm(e)||{};Q1[e.sourceUrl+"_"+e.to]={...t,...e}}function Xm(e){return Q1[e.sourceUrl+"_"+e.to]}async function qS(e,t){let n=location.href,r=Object.values(Q1).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:La(),images:[],version:Hn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=zm(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Yt();a.userConfig=Ni(!1,o)}return a}async function zS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await na();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${lt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var xc={width:94,height:80};function WS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?WS(e.parentElement,t+1):e}function xu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=WS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=xc.width+"px",c.style.height=xc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-xc.width)/2+"px",c.style.top=l.top-u.top+(l.height-xc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-xc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`,N1="immersive-translate-toastify-shadow-root",U1=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(N1)){let t=document.getElementById(N1);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=N1,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=KU,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Km(e){e=e||{},new U1({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function IT(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function bn(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{k.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:Jc,payload:e},"*")});let n=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(n)}function j1(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&$t(o,s=>{s.preventDefault();let u=r[i];bn({method:u,data:{trigger:"shortcut"}})})}}var GU="imt-fb";function yn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${GU}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function FT(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Gm="DROP_DOWN_DEFAULT_VALUE";function H1(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ce(null);return d("select",{id:"more-select",ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Gm,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Gm){s.current.value=Gm,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Gm,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var $U=({date:e})=>{let{t}=F(),[n,r]=O(!1);return q(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},YU=({minVersion:e})=>{let{t}=F();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},ZU=()=>{let{t:e}=F();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:$+"docs/installation/"})}})},JU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=F();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function q1(e){let{isShowError:t,request:n}=e,[r,a]=O(null),{t:i}=F(),[o,s]=O(null),[u,l]=O(null),[c,m]=O(""),[g,p]=O(!1),[f,b]=O(!1),[y,h]=O(!1),[v,C]=O(null),[x,T]=O(null),S=jn(),w=async()=>{m("");let A=o;if(o===null)try{let D=await n({url:Ci});D?(s(D),A=D,p(!0)):(m(i("unknownError")),l(null))}catch(D){l(null),m(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return q(()=>{Se.DEBUG||Ye().then(A=>{let D=A.buildinConfigUpdatedAt;C(A);let M=new Date(D);if(a(D),S==="0.0.0"){h(!0);return}n({url:Ci}).then(R=>{let _=R,B=_.minVersion,L=S;s(_);let N=_.latestVersion;if(N&&(qa(L,N)?T(!0):T(!1)),qa(L,B)){let U=_.buildinConfigUpdatedAt;new Date(U)>M?(l(!0),w()):l(!1)}else b(!0),l(null)}).catch(R=>{l(null),m(R.message)})})},[]),q(()=>{Ye().then(A=>{C(A),ia(A)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(ZU,{}):c?t===!1?null:d(JU,{handleSyncing:w,message:c,date:r||""}):f?t===!1?null:d(YU,{minVersion:o.minVersion}):u===null||u===!0?null:g?d($U,{date:r}):null}):null}var BT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var OT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),NT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),UT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),jT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var HT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),qT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),zT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),WT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function Cu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function VT(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=F();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Ti,`${e.type}_user_info`);return}e.onOpenUrl(ls,`${e.type}_user_info`)},children:[d("img",{src:n?U8:N8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(QU,{...e})]})}function QU(e){let{t}=F(),n=te(()=>Cu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ti,`${e.type}_pro_logo`)},children:d("img",{src:gi})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Dn)},children:[d(yn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Dn,`${e.type}_user_upgrade`)},children:[qT,d("span",{children:t("popup.upgrade")})]})}function KT({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=F();if(!t)return null;let o=eo(t.config.translationService,t.config.targetLanguage),s=ur;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(XU,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:j8,style:{maxWidth:"unset"},class:"mx-2"}),d(ej,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function XU(e){let{t}=F(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",id:"source-language-select",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function ej(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",id:"target-language-select",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var GT=220;function $T(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=O(!1),i=Ce(null),[o,s]=O(GT),[u,l]=O(0);return el(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,b=20,y=30,h=5,v=g.clientHeight-b*2,C=t.length*y+h*3,x=f+m.height;if(C>g.clientHeight-x){let T=Math.min(v,C);l(g.clientHeight-f-T-b)}else l(0);s(Math.max(GT,v))}},[i.current,r,t]),q(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{id:"translation-service-select",className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(YT,{item:n,isDefault:!0}),WT]}),d(tj,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function tj(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ce(null);return q(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(YT,{item:o,onClick:e.onClick},o.value))})}function YT(e){let t=e.item,{t:n}=F();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,value:`${t.value}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:gi}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}function ZT(e){let{t}=F(),{translationServiceItems:n,translationServiceOptions:r}=ij(e),a=te(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(JT,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(nj,{...e,currentTranslationService:a})]}):null}function JT(e){let{t}=F(),n=te(()=>{let r=e.items.find(o=>o.selected);if(!r||r.value!="auto")return e.items;e.ctx.specialAiAssistant=di(e.ctx,e.ctx.translationService,!0);let a=e.ctx.specialAiAssistant?.id;if(!a){let s=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!s?.fallbackAssistantId||s?.fallbackAssistantId=="common")a="common";else return e.items}let i=e.items.find(o=>o.value==a);return!i||r.label.indexOf(i.label)>=0||(e.ctx.specialAiAssistant?.id?r.label=`${r.label} (${i.label})`:r.label=`${r.label} (${t("aiAssistant.context")})`),e.items},[e,t]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d($T,{className:"translate-service",items:n}):d(ua,{className:"translate-service transform-padding-left",maxWidth:300,items:n})]})}function nj({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=F(),u=aj(e,o),l=rj(e,o),c=ue((g,p)=>{t(f=>{let b=f.translationServices||{},y=b[u.id]||{};return{...f,translationServices:{...b,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=te(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[g.name],onSelected:y=>{if(b.action=="jumpOptions"){let h=b.args||[];r(...h);return}c(g.name,b.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(le,{children:m.map(({label:g,items:p},f)=>d(JT,{label:g,items:p,ctx:e},"field-"+f))})}function rj(e,t){return te(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function aj(e,t){let{lang:n}=F();return te(()=>{let a=Ms(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[$r,Jf,e,n,t])}function ij({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=F(),m=te(()=>t?Ls(t,"translationService",c):[],[t,c]),g=ue(f=>{let b=m.find(y=>y.id===f.value);if(b.ok){if(u({translationService:b.id}),n(y=>(a(y.translationService||"",b.id),{...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=te(()=>{let f=er(t.config),y=m.filter(h=>t.config.showUnconfiguredTranslationServiceInPopup===!1?h.ok:!0).map(h=>{let v=nd(h,e,f,l,!0),C=(h.id,void 0);h.id.startsWith("custom-ai")&&(C=void 0),h.id.startsWith("mock")&&(C="");let x=Za.includes(h.id)&&!h.ok&&!f;return{label:v,value:h.id,selected:h.selected,img:C,onSelected:g,isShowProOrCustom:x,isShowGoSetting:!h.ok&&!x}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:void 0,onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function QT(e){let t;try{t=new URL(e)}catch{return!1}let n=Ov(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(oj(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function oj(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function XT(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function eS(e){let{t}=F(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=sj(e),[o,s]=O(()=>a?"excludeMatches":"matches"),u=te(()=>r||a||!1,[r,a]),l=ue(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(ua,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select always-translate-this-site-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{id:"always-translate-this-site-input",type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function sj({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=te(()=>new URL(e||""),[e]),t.config&&e&&QT(e)){c=XT(e);let{matches:h,excludeMatches:v}=f;m=!!h.find(C=>dt(e,C)),g=!!v.find(C=>dt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:h}=t.config,{matches:v}=h;v.includes(n)?p=!0:p=!1}let b=ue(()=>{let h=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(T=>T.match!==h),x=!1;C.length!==v.length&&(x=!0),x&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=ue((h,v)=>{if(h==="default"){s(T=>{let S={...T.translationUrlPattern};return{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,matches:z1(e,S.matches),excludeMatches:z1(e,S.excludeMatches)}}}),b();return}let C=h,x=C==="matches"?"excludeMatches":"matches";l&&s(T=>{let S={...T.translationUrlPattern};return S[x]=z1(e,S[x]),S[C]=Hn(v,S[C]),{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,...S}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function z1(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!dt(e,n)):t):[]}function tS(e){let{t}=F(),{ctx:n,setSettings:r}=e,a=uj(e);return Gr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(ua,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select mouse-hover-translate-select",items:a})]}),d("input",{id:"mouse-hover-translate-input",type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Ya[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(lj,{...e})}function uj({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=F(),a=te(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=te(()=>Ya.filter(s=>!(s==="Off"||Ya.includes(a)&&s==="OtherCustom")),[e,a]);return te(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ia(s)}),l=Ya.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function lj(e){let{ctx:t,setSettings:n}=e,{t:r}=F(),a=t.config.generalRule,i=Object.keys(bc).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(ua,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function nS(e){let{isAlwaysTranslateLang:t}=cj({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=F();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Zt(e.currentLang,u.matches),excludeMatches:Zt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=Hn(e.currentLang,u[i]),u[o]=Zt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function cj({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function aS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=F(),i=Te(),o=te(()=>{let s=[{title:a("widget.translateFile"),icon:BT,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:HT,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e($u,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:zT,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(mb,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(yt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(rS,{...s})}):d(rS,{...s}))})}function rS(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var dj=["bing","transmart","google","yandex"];function oS(e){let{t}=F();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:gi,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service`)}})]}):null}var iS="popup_trial_pro_show_count";function sS(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=O(null),s=Ce(!1);q(()=>{Eo(iS,0).then(l=>{o(l)})},[]);let u=te(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!dj.includes(m)},[t,n,r,i]);return q(()=>{!u||i==null||s.current||(s.current=!0,Ao(iS,i+1))},[u,i,s,a]),{showTrialPro:u}}function W1(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o,aiContextInfo:s}=e,[u,l]=O(""),[c,m]=O(null),[g,p]=O(null);q(()=>{nt.get(pt,null).then(v=>{v?(m(v),p(kt(v))):p(!1)}).catch(v=>{p(!1)})},[]);let f=!0,b=je();n&&b&&(f=n.generalRule.showSponsorOnSafari);let y=er(n),{showTrialPro:h}=sS({ctx:a,isHidden:y,isProUser:!!g,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[y&&!g?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(VT,{isLogin:!!c,isProUser:!!g,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(yj,{openSharePage:r})]}),d(KT,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(ZT,{isProUser:!!g,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:h}),d(oS,{showTrialPro:h,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(pj,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(hj,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d(vj,{aiContextInfo:s,curUrl:a.url}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${u?"":"display-none"}`,children:u}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(q1,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(eS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(tS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(nS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(gj,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(mj,{ctx:a})]}),d(aS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:y})]}),d(fj,{...e,isProUser:!!g,isShowPricing:f,setMessage:l})]})}function mj({ctx:e}){if(e.rule.imageRule?.type!="manga"||!sm(e.rule.imageRule))return null;let{t}=F();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function gj(e){let{t}=F(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!te(()=>!i.disabled&&np.includes(i.type||""),[n,np,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Wd()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function pj(e){let{t}=F(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(yt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?NT:UT})})}function fj(e){let{t,lang:n}=F(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=ue(v=>{i&&(o(C=>ji({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=si(i,s.rawUserConfig),m=Te(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[OT,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(bj,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(H1,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(Dn),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?b():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(Dn,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(Ku,g):v.value==="cleanCache"?da().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&h(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function b(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function h(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function hj({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=F(),l=r.config,c=te(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Do(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Jn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):Q()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Cr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Ia(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{id:"translate-button",class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function bj({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=F(),o=jn();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${P}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),cr(`${$}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:[_o(e.config),e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function yj(e){let{t}=F();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),jT]})}function vj({aiContextInfo:e,curUrl:t}){let{t:n}=F();if(!e?.visible)return null;let r=te(()=>{let a=new URL(t);return a.searchParams.append(g0,"1"),a.searchParams.append("_immersive_translate_auto_translate","1"),a.toString()},[t]);return d("div",{class:"flex flex-row mt-3 items-center",children:[Q8(),d("div",{class:"px-1",children:n("applyUseContextTranslate")}),e.preview&&d(yt,{text:n("contextDiffPreview",{1:r}),children:Pm()})]})}var lye=1e3*3600*24;async function uS(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[z2]:t.toISOString()}),await V1(),Q()||await qv()}catch(t){k.error("run cron task failed",t)}}async function V1(){try{let e=await Ir(),t=await X({url:Ci});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;qa(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),wa({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}function $m(e){let{onClose:t}=e,[n,r]=O("Original"),[a,i,o,s]=Ne(()=>{setTimeout(()=>{w("updateGlobalContext",!1)()},250)});Ze(a,i);let[u,l]=O(null),[c,m]=O(globalThis.location.href),[g,p]=O("auto"),[f,b]=O(null),[y,h]=O({visible:!1,preview:!1}),v=Ce(!1);q(()=>{!f||v.current||(v.current=!0,Fe("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,v]);let C=N=>{r(N.detail)};q(()=>(document.addEventListener(po,C,!1),Ir().then(N=>{l(N);let U=Lt();p(U);let V=st();r(V),uS(N.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",S)}),[]),q(()=>{Ir().then(N=>{l(N)})},[a]),q(()=>{c&&u&&Ym().then(N=>{b(N)})},[c,u]),q(()=>{let N=md();h({visible:!!N?.used,preview:N?.sourceProgram=="html"})},[]);let x=ue((N,U)=>{w("change_translate_service",!1,{translation_service:`${N}_${U}`})()},[]);if(!u||!f)return null;return d(W1,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:N=>{w("switchTranslationMode",!0,{mode:N})()},aiContextInfo:y,request:X,onClose:A,onToggleEnabled:D,onChangeService:x,onTranslateTheWholePage:w("translateTheWholePage",!0),openOptionsPage:_,onToggleTranslate:w("toggleTranslatePage",!0),onTranslateTheMainPage:w("translateTheMainPage",!0),onTranslateToThePageEndImmediately:w("translateToThePageEndImmediately",!0),onTranslatePage:w("translatePage",!0),onRestorePage:w("restorePage",!1),onWebReport:w("webReport",!0),onTranslatePdf:()=>{R(Lo(f.rule)||c)},openAboutPage:B,openSharePage:w("shareToDraft",!0),onSetPageLanguage:T,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Fr,onSetBuildinConfig:_v,onAutoEnableSubtitleChanged:w("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:w("toggleEnableEditTranslation",!0),updateContextState:N=>w("updateContextState",!0,N)(),onOpenUrl:M,onUpdateFloatBallEnable:w("updateFloatBallEnable",!0)});function T(N){p(N);let U=FT(c,N,u.sourceLanguageUrlPattern);i(V=>({...V,sourceLanguageUrlPattern:U})),Tr(N)}function S(){m(globalThis.location.href)}function w(N,U,V={}){let Y={trigger:"page_popup",...V};return()=>{bn({method:N,data:Y}),U&&t()}}function A(){t()}function D(){i(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{A()},50)}function M(N,U){let V=N;U&&(V=`${N}?utm_source=extension&utm_medium=extension&utm_campaign=${U}`),xd(V,!0),setTimeout(()=>{A()},50)}function R(N){N&&(Fs(!1,N),setTimeout(()=>{A()},50))}function _(N=!0,U=""){Ea(N,U),setTimeout(()=>{t()},50)}function B(){Cd(),setTimeout(()=>{t()},50)}function L(){Hv(),setTimeout(()=>{t()},50)}}function pS(){let[e,t]=O("Original");return q(()=>{let n=st();t(n);let r=a=>{t(a.detail)};return document.addEventListener(po,r),()=>{document.removeEventListener(po,r)}},[]),{pageStatus:e}}function fS(){let[e,t]=O("Original");return q(()=>{let n=Rs();t(n);let r=a=>{t(a.detail)};return document.addEventListener(ju,r),()=>{document.removeEventListener(ju,r)}},[]),{mangaStatus:e}}var lS=6,Cj={position:"right",top:335};function hS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ce(null),o=Ce(null),[s,u]=O(!1),l=Ce(!1);l.current=s;let c=Ce(null),m=Ce(!1),g=Ce(n.floatBallConfig||Cj),p=Ce(0),f=Ce(0),b=Ce(0),y=Ce(!1),h=Ce(0),v=Ce(0),C=Ce(0),x=Ce(0),T=Ce(!1),S=ue(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let A=qe().any||Cr();c.current=setTimeout(()=>{u(w),y.current=!1},A?3e3:0)}},[u,c,y,a]);return q(()=>{a||u(!1)},[a]),q(()=>{if(i.current&&g.current){let w=K1(g.current.top);g.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),q(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,h.current=Date.now(),b.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),S(!0),C.current=L.clientX,x.current=L.clientY,T.current=!1,(qe().any||Cr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{cS({startX:p.current,startY:f.current,endX:C.current,endY:x.current})||(T.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",R),document.addEventListener("mouseup",D),document.addEventListener("touchend",_),document.addEventListener("touchcancel",_)},A=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,x.current=L.clientY,T.current))return;let N=L.clientY-f.current+b.current,U=K1(N);i.current.style.top=`${U}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),B(),m.current=!1,clearTimeout(c.current),y.current||S(!1),T.current)return;cS({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let U=K1(L.clientY-30);g.current.top=U;let V=await Mn();Fr({...V,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},_=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},B=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",R),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",_),document.removeEventListener("touchcancel",_)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,S,e]),q(()=>{if(qe().any)return;let w=D=>{D.target===i.current&&!y.current||!l.current&&mS(D)&&c.current||(y.current=!0,S(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&mS(D)&&c.current)){if(m.current){y.current=!1;return}D.target===i.current&&!y.current||S(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",A)}},[i,m,S,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:S}}function cS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>lS||i>lS}function bS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=te(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=te(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=te(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=te(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function yS(){let[e,t]=O(!1);return q(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var dS="hasShownFloatingBallGuide",xj="2024-01-06";function vS(e,t){let[n,r]=O(!1),a=ue(()=>{rt(dS,new Date().toISOString()),r(!0)},[r]);q(()=>{if(!e.config.enableShowFloatingBallGuide||Lt()==e.targetLanguage)return;let o=dt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Pt(dS,""),u=await Pt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(t0,o),()=>{document.removeEventListener(t0,o)}},[]);let i=ue(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function CS(){document.dispatchEvent(new CustomEvent(t0))}function xS(e,t){let n=Ce(0),[r,a]=O(!0),[i,o]=O(!1),s=Ne(),[u,l]=s,{t:c}=F(),m=ue(()=>{e?.config.floatBallTooltipRule&&(qe().any||Cr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);q(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=ue(async()=>{if(!e)return;n.current=n.current+1,m();let b=await cn();l(y=>{let h={...b};return qe().any?h.h5FloatBallMainBtnTooltipShownCount=n.current:h.pcFloatBallMainBtnTooltipShownCount=n.current,h})},[l,m,n,e]),p=te(()=>qe().any||!r||Cr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=te(()=>{if(qe().any||Cr())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${Ia(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function K1(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var G1=0;function mS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(G1=Date.now(),!0):Date.now()-G1<100}function TS(e,t){q(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(fo,n),()=>{globalThis.document.addEventListener(fo,n)}},[e,t])}function SS(e,t){let n=Ce(e);n.current=e,q(()=>{!n.current||!t||Fe("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var gS="imt-float-ball-active";function wS(e){q(()=>{let t=!!document.querySelector(`meta[name='${gS}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(gS)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(Xc,n),()=>{document.removeEventListener(Xc,n)}},[])}function ES(e){document.dispatchEvent(new CustomEvent(Xc,{detail:{active:e}}))}function Tj({isOpen:e,onClose:t,children:n}){let[r,a]=O(e);return q(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(le,{children:[e&&d("div",{className:`${P}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${P}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${P}-sheet-content`,children:n})})]})}var Zm=Tj;var Wo="imt-fb";function kS(e){if(globalThis.innerWidth<=385)return d(Zm,{isOpen:e.visible,onClose:e.onClose,children:d(AS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${P}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${P}-popup-overlay`,class:`${P}-popup-overlay`,children:d("div",{class:`${P}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(AS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function AS(e){let{t}=F(),[n,r]=O("UntilNext"),a=vd()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Wo}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Wo}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(yn,{type:"modal-close"})})]}),d("div",{class:`${Wo}-close-radio-content mt-3`,children:o.map(s=>d(Sj,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Aa(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Wo}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Wo}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function Sj(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=wj(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Wo}-radio-sel`:`${Wo}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function wj(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var Vo="imt-fb";function DS(e){let{t}=F(),n=a=>{a?.target?.id===P+"-popup-overlay"&&e.onClose()},r=te(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:d("div",{class:`${Vo}-guide-container`,style:r,children:[d("img",{class:`${Vo}-guide-bg ${e.fixedPosition}`,src:Ej}),d("div",{class:`${Vo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${Vo}-guide-img`,src:an("images/float_ball_intro.png")}),d("div",{class:`${Vo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` +${t("floatBall.longPress")}`:""]}),d("div",{class:`${Vo}-primary-btn ${Vo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var Ej="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMCIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var LS="imt-manga";function MS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=F(),o=m=>{m?.target?.id===P+"-popup-overlay"&&t()},s=te(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ue(()=>{if(t(),!a.isPro){if(a.user)return window.open(tb);window.open(X2)}},[a,t]);return e?d("div",{onClick:o,id:P+"-popup-overlay",class:`${P}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${LS}-guide-bg ${r}`,src:`${Xt}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${LS}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(yn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var fi="imt-fb";function $1(e){let{t}=F(),n=Ne(),[r,a,i,o]=n;Ze(r,a);let s=ft(r),u=e.ctx,{isFullScreen:l}=yS(),[c,m]=O(!1),g=Ce(c);g.current=c;let[p,f]=O(!0),{pageStatus:b}=pS(),y=si(u,r),h=ue(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&bn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,bn,m]),v=ue(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:x,active:T,ballRef:S,floatBallConfigRef:w,setActive:A}=hS({handleBallClick:h,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),D=y?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:R,handleCloseGuide:_}=vS(e.ctx,y),{closeTransform:B,logoContainerTransform:L,settingTransform:N,mangaTransform:U}=bS(y,T||R);SS(u,T);let{tooltipDelay:V,disableTooltip:Y,tooltipText:ae,handleShowTooltip:_e}=xS(u,b);TS(m,g),wS(A);let H=globalThis.innerWidth<=385;return C?d(le,{children:d("div",{class:`${fi}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:T||R||c?"all":"none"},ref:x,children:[d(Aj,{ctx:u,setVisible:f,closeTransform:B,setActive:A,getModalStyle:()=>PS(w.current.top,300,D)}),d(yt,{enableMobile:!0,text:ae,position:M,delay:V,onShow:_e,disable:Y,children:d("div",{class:`${fi}-btn ${D} btn-animate `,ref:S,style:{transform:L,opacity:T||R?1:.5},children:d("div",{children:[d(yn,{type:"logo"}),d(yn,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),d(Lj,{ctx:u,mangaTransform:U,floatBallConfigRef:w,fixedPosition:D,hidden:R}),d("div",{style:{marginTop:"12px",transform:N},class:`${fi}-more-buttons btn-animate`,children:[d(yt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{xd(cb,!0)},children:d(yn,{type:"file"})})}),d(yt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${fi}-more-button`,onClick:()=>{A(!0),m(!0)},children:d(yn,{type:"setting"})})}),d(Pj,{ctx:u,tooltipPosition:M,rule:y,active:T})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:N},class:`${fi}-more-buttons btn-animate`,children:d(yt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(yn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(go,{detail:{type:"webReport"}}))}})})}),d(Y1,{onClose:()=>{A(!1),m(!1)},isSheet:H,visible:c,getModalStyle:()=>PS(w.current.top,500,D)}),d(DS,{visible:R,top:w.current.top,fixedPosition:D,onClose:()=>{_(),A(!1)}})]})}):null}function Aj(e){let{t}=F(),[n,r]=O(!1),a=Ne(),[i,o,s,u]=a,l=si(e.ctx,i),c=ue(g=>{e.ctx&&o(p=>ji({...p},g))},[e.ctx,o]),m=ue(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(le,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(yn,{type:"close"})}),d(kS,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function Y1(e){let t=n=>{n?.target?.id===P+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Zm,{isOpen:e.visible,onClose:e.onClose,children:d($m,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:d("div",{class:`${P}-popup-wrapper`,style:e.getModalStyle(),children:d($m,{onClose:e.onClose})})}):null}function kj(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var PS=(e,t,n)=>{let a=kj().height,i={position:"fixed"},o=0;return x2()&&(e=Dj.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},Dj={position:"right",right:0,top:335};function Lj({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=O(!1),{mangaStatus:u}=fS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=F();q(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Dt(p))})},[c,s]);let g=ue(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await nt.get(pt,null);if(kt(f)){e.user=f,e.isPro=!0,bn({method:"toggleTranslateManga"});return}s(!0);return}bn({method:"toggleTranslateManga"})},[]);return!sm(l)||r||!l?.enable?null:d(le,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(yn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(yn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(yn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(yt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(yn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(go,{detail:{type:"mangaReport"}}))}})})]}),d(MS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var Mj="float_ball_upgrade_show_count";function Pj(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=F(),o=er(n.config),s=Ce(!1),[u,l]=O(null),c=te(()=>Cu(n.config),[n]),m=p=>Cu(p)?.upgradeShowCountCacheKey||Mj;q(()=>{Eo(m(n.config),0).then(p=>{l(p)})},[n]);let g=te(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=Cu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return q(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,Ao(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(yt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||ap,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${fi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(yn,{type:"upgrade"})})})}):d(yt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${fi}-more-button`,onClick:()=>{globalThis.open(ap,"_blank")},children:d(yn,{type:"upgrade"})})})}async function _S(){try{let e=await Ye(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=P+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});_j(a,e,n),document.documentElement.appendChild(r)}catch{}}function _j(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Te(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Rj(e,[i]),e.appendChild(r),Ca(d(Zi,{lang:t.interfaceLanguage,children:d(Ij,{ctx:n})}),r)}function Rj(e,t){for(let n of t){if(Q()&&!Jn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function Ij(e){let[t,n]=O(!1),r=Ce(t);r.current=t;let a=Ce(""),i=Ce("");q(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(fo,u),()=>{globalThis.document.addEventListener(fo,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(Y1,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Jm(e){document.dispatchEvent(new CustomEvent(fo,{detail:e||{}}))}function Fj(e,t){for(let n of t){if(Q()&&!Jn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Z1(){let e=await Ir(),t=await cn(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await R4(r,t),i=dt(r.url,a?.blockUrls),o=await _t();if(!a?.enable||i)return _S();let s=document.createElement("div");s.id=P+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return Bj(u,e,o,r),document.documentElement.appendChild(s),s}function RS(){let e=document.getElementById(P+"-popup");e&&e.remove(),Z1()}function Bj(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Te(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Fj(e,[o]),e.appendChild(a),Ca(d(Zi,{lang:t.interfaceLanguage,children:d($1,{localConfig:n,ctx:r})}),a)}var IS=!1;async function FS(){IS||(IS=!0,Z1().catch(e=>{k.error("init popup error",e)}))}var yc=null;function vc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");yc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function J1(){let e=globalThis.location.href;if(!(!yc||yc.url!==e||!yc.subtitleItems.length))return yc}async function BS(){let e=J1();if(!e)return;let t=await _t();t.downloadSubtitle=e,await Dt(t),Aa(db)}async function OS(){let e=await _t();if(e.downloadSubtitle)return e.downloadSubtitle}async function NS(e,t){let n,r;if(t){let a=qm(e);n=new Blob([a],{type:"text/html"}),r=await Yt(),r=Ni(!1,r)}return{siteUrl:location.href,pluginVersion:jn(),isMobile:qe().any,platform:Da(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function US(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ta();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${lt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var Q1={};function ao(e){let t=Qm(e)||{};Q1[e.sourceUrl+"_"+e.to]={...t,...e}}function Qm(e){return Q1[e.sourceUrl+"_"+e.to]}async function jS(e,t){let n=location.href,r=Object.values(Q1).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:Da(),images:[],version:jn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=qm(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Yt();a.userConfig=Ni(!1,o)}return a}async function HS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ta();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${lt}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Hi(l,"web"),l.json()))}var Cc={width:94,height:80};function qS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?qS(e.parentElement,t+1):e}function xu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=qS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Cc.width+"px",c.style.height=Cc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Cc.width)/2+"px",c.style.top=l.top-u.top+(l.height-Cc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Cc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let m=a("translateFail");r==="gif_not_supported"&&(m=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6050,25 +6050,25 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${Vo}-primary-btn ${Vo}-guide - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function X1(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Tc=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function VS(e,t,n){if(e=="manga")return qS(t,n);if(e=="web")return jS(t,n)}function KS(e,t,n,r,a,i){if(e=="manga")return zS(t,n,a,i,r);if(e=="web")return HS(t,n,a,i,r)}function eg(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(f.value)||f.value.trim()==="",m=document.createElement("div");m.innerText=s("reportInfo.title"),m.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(m);let g=document.createElement("div");g.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function X1(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var xc=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function zS(e,t,n){if(e=="manga")return jS(t,n);if(e=="web")return NS(t,n)}function WS(e,t,n,r,a,i){if(e=="manga")return HS(t,n,a,i,r);if(e=="web")return US(t,n,a,i,r)}function Xm(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(f.value)||f.value.trim()==="",m=document.createElement("div");m.innerText=s("reportInfo.title"),m.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(m);let g=document.createElement("div");g.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; padding: 9px 12px; - flex: 1;`),p.addEventListener("input",function(){w.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; + flex: 1;`),p.addEventListener("input",function(){S.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";nt.get(pt,null).then(D=>{D&&(h=D.email,f.value=D.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let b=document.createElement("div");b.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),b.append(y),b.append(f),a.append(b);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let D=l(this.value);w.disabled=c(),D?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let x=document.createElement("label");x.htmlFor=C.id,x.innerText=s("reportInfo.attachLog"),x.setAttribute("style","margin-left:8px");let T=document.createElement("div");T.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),T.append(C),T.append(x),a.append(T);let w=document.createElement("button");w.className=P+"-btn",w.innerText=s("reportInfo.submit"),w.disabled=!0,w.onclick=async()=>{if(w.uploading||p.value.trim()===""||!l(f.value))return;let D=await VS(e,t,C.checked);w.uploading=!0;try{GS(w,!0),await KS(e,t,p.value,f.value!==h?f.value:"",C.checked,D),Nj(s,r,a,i,o)}catch{Uj(t,n,s,r,a,i,o,e)}finally{w.uploading=!1,GS(w,!1)}},i.appendChild(w);let S=document.createElement("div");S.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(S);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function GS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(P+"-loading-spinner"),e.appendChild(n))}function Nj(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let b="";nt.get(pt,null).then(D=>{D&&(b=D.email,f.value=D.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let h=document.createElement("div");h.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),h.append(y),h.append(f),a.append(h);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let D=l(this.value);S.disabled=c(),D?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let x=document.createElement("label");x.htmlFor=C.id,x.innerText=s("reportInfo.attachLog"),x.setAttribute("style","margin-left:8px");let T=document.createElement("div");T.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),T.append(C),T.append(x),a.append(T);let S=document.createElement("button");S.className=P+"-btn",S.innerText=s("reportInfo.submit"),S.disabled=!0,S.onclick=async()=>{if(S.uploading||p.value.trim()===""||!l(f.value))return;let D=await zS(e,t,C.checked);S.uploading=!0;try{VS(S,!0),await WS(e,t,p.value,f.value!==b?f.value:"",C.checked,D),Oj(s,r,a,i,o)}catch{Nj(t,n,s,r,a,i,o,e)}finally{S.uploading=!1,VS(S,!1)}},i.appendChild(S);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function VS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(P+"-loading-spinner"),e.appendChild(n))}function Oj(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=P+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function Uj(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=P+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function Nj(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=P+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",eg(s,e,t,r,a,i,o)},i.append(m)}var tg=[],$S=[];async function t3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(n3()||tg.includes(t))return"";if(tg.length>=s)return new Promise((l,c)=>{$S.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});tg.push(t);try{let u=await zj(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await YS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{tg.shift(),(async()=>{let u=$S.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await t3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function jj(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${lt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${ZS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await X({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function Hj(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function qj(e,t,n){let r=await Hj(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),Q()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):X({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await n5(a)})}async function zj(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=Wj(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await dd(u);ao({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await jj(e,r,l,n.type);if(c.objectKey&&ao({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await qj(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return Q()?m=await fetch(e3()+"/trigger",{method:"POST",body:wd(u),headers:{token:e.user?.token||""}}).then(async g=>(await Hi(g,"manga"),g.json())):m=await X({url:e3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ao({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function YS(e,t,n,r,a){let i=n3();if(i)return;Rr("Translating",i);let o=await X({url:e3()+`/${t}/task-state?comicHash=${n}&domain=${ZS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await PC(t,r.queryIntervalTime||100),YS(e,t,n,r,a))}function e3(){return lt+"comics"}function Wj(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=ua[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function ZS(e){return e.replaceAll(".","_")}var Wt,r3,rg,wc,on=!1;function n3(){return on}var JS=!1;function ew(e){if(Wt=e.rule.imageRule,!e.isPro||!Wt.type)return;on=!1,!JS&&Wt.injectedCss&&(rr(document,`${Wt.injectedCss}`,P+"-image-injected-css"),JS=!0);let t=!1,n=Bn(async function(){Wt?.disableMarkSelector&&(t=!!document.querySelector(Wt.disableMarkSelector));let a=rw(Wt);for(let i of a){if(on)return;i.isMarked&&!Wt?.disableMarkElement||(i.isMarked=!0,await tt(20),await r(i,t))}},100);if(Ne("translate_manga",[{name:"translate_manga"}],e),n(),r3=new MutationObserver(a=>{n()}),r3.observe(document.body,{childList:!0,subtree:!0}),Wt.intersectionRootMargin){let a=Wt?.intersectionRootSelector?document.querySelector(Wt?.intersectionRootSelector):void 0;wc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Ko(e,o.target),wc?.unobserve(o.target))})},{root:a,rootMargin:Wt.intersectionRootMargin,threshold:Wt.intersectionThreshold})}rg=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Wt?.intersectionRootMargin?(wc?.unobserve(a),wc?.observe(a)):await Ko(e,a)))}}async function Ko(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Rs();if(n&&(on=!1),on||Xj(e,t)||t.hasTranslate)return;Wt=e.rule.imageRule;let o=!1;Wt?.disableMarkSelector&&(o=!!document.querySelector(Wt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=Kj(e,t);u||(s=xu(e,t,"translating")),n&&Ne("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await Gj(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await Vj(e,t,o,a,s)),on&&!n)return;l?(t.translationStatus="success",u||xu(e,t,"success")):(u||xu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Rr("Error",on))}catch(l){if(on&&!n||(t.translationStatus="error",a=="manga"&&Rr("Error",on),Qj(e,l),u))return;if(l instanceof Tc)return xu(e,t,"error",l.type);xu(e,t,"error")}finally{n&&Rr(i,on),s?.remove()}}function tw(){if(!Wt)return;on=!0,r3?.disconnect(),rg?.disconnect(),wc?.disconnect();let e=rw(Wt);for(let t of e)Go(t)}function Go(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Go(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function Vj(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await $j(l,c,t.cloneNode(!0))}else o=await aw(t);if(on)return;if(!o||o.size<6*1e4){rg?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await n4(o);return await a3(e,t,s)?!0:s?nw({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function nw({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await Zj(n)||n,u=r||a;try{if(on)return;Rr("Translating",on),X1(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ao(l);let m=await t3(e,u,s,a,i,g=>{X1(e,o,g)});return m?(l.targetUrl=m,ao(l),await iw(Wt,t,m),Rr("Translated",on),!0):!1}catch(l){if(ao({sourceUrl:u,to:e.targetLanguage,error:l.message}),on)return;throw l}}async function a3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Xm(r);return a&&a?.targetUrl?(await iw(Wt,t,a.targetUrl||""),Rr("Translated",on),!0):!1}function Kj(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Xm(r);return a&&a?.targetUrl}return!1}async function Gj(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!Jj(a,i)){rg?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await a3(e,t,o))return!0;let s=null;if(Rr("Translating",on),on)return;if(i.startsWith("blob:")){let m=await fetch(i);await Hi(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await Yj(i);else{let m=await X({url:i,responseType:"base64"});s=await Ed(m)}if(on)return;if(await mx(s))throw new Tc("GIFs not supported","gif_not_supported");let l=await n4(s);if(!o&&(o=l,await a3(e,t,o)))return!0;if(!o)return!1;return nw({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function rw(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function aw(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function $j(e,t,n){return new Promise((r,a)=>{X({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await aw(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function iw(e,t,n){try{return await QS(e,t,n)}catch{let a=await eH(n);return QS(e,t,a)}}async function QS(e,t,n){return new Promise((a,i)=>{if(on)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function Yj(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function Zj(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function Jj(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Zd(e.inValidSrcRegex,t):!0}var ng=0,Sc=0;function Qj(e,t){if(ng!=0){Sc++;return}if(t.message.indexOf("quota exceeded")>0){XS(e,t);return}Sc++,ng=setTimeout(()=>{if(Sc<(Wt.errorTimes||3)){ng=0,Sc=0;return}XS(e,t),Sc=0,ng=0},Wt.errorInterval||3e3)}function XS(e,t){let r=new z("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(In,{detail:r}))}function i3(e){return e.classList.contains("imt-img")||e.hasTranslate}function Xj(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function eH(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var tH="showImagePricingModal";function ag(e){document.dispatchEvent(new CustomEvent(tH,{detail:JSON.stringify({trigger:e})}))}var Wa=null;async function ow(e,{srcUrl:t}){if(!ci(e))return;if(!await As(e)){ag("image_right_menu");return}if(!Wa){k.error("rightMenu image ele not found",t,Wa);return}if(Wa.translationStatus!=="translating"){if(Wa.hasTranslate){Go(Wa);return}if(t!==Wa.src)try{let r=new URL(t),a=new URL(Wa.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,Wa.src,r);return}Ko(e,Wa,!0,"image_right_menu")}}function sw(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Wa=e.target)})}var uw=0;function Ac(e){let t=Date.now();if(t-uw<2e3||(uw=t,nH()))return;let n=`${P}-modal-root`,r=`${P}-modal`,a=document.getElementById(n),i=`${P}-modal-title`,o=`${P}-modal-body`,s=`${P}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,Ec)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=Te();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=P+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=P+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let h=document.createElement("div");h.className=o+" notranslate",g.appendChild(h);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",b=>{b.target==u&&(u.style.display="none")}),e(u,f,h,y,Ec)}setTimeout(()=>{rH()},100)}function nH(){let e=document.querySelector(`#${P}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-modal`)?.style.display=="block":!1}function rH(){let e=document.querySelector(`#${P}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function Ec(e,t=!1){let n=document.querySelector(`#${P}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function lw(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await cn();ln({...l,sameLangCheck:!1}),o(i,!0)})}var cw=0;async function dw(e){let t=Date.now();if(t-cw<2e3||(cw=t,aH()))return;let n=`${P}-toast-root`,r=`${P}-toast`,a=document.getElementById(n),i=`${P}-toast-msg`,o=`${P}-toast-content`,s=`${P}-toast-hidden`,u,l,c=()=>{l&&o3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,o3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),y=document.createElement("style"),b=Te();y.textContent=b.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),h.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=P+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},h.addEventListener("click",x=>{x.target==g&&(g.style.display="none")}),e(g,u,l,o3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{iH()},100),m=setTimeout(c,2500)}function aH(){let e=document.querySelector(`#${P}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-toast`)?.style.display=="flex":!1}function iH(){let e=document.querySelector(`#${P}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-toast`);t&&(t.style.display="flex")}}function o3(e,t=!1){let n=document.querySelector(`#${P}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function s3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=ct.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${P}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",mw({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(eb)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(m0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(ib)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(Se.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(Se.OPTIONS_URL)},u3(e,e.config.translationService,!1,f).then(h=>{h?(g=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=ct.sanitize(g),p.onclick=()=>{gw(h),u(p,!0)}):(g=l("goSettings"),p.innerHTML=ct.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Yt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await ln(f),mw({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=P+"-btn",p.innerHTML+=ct.sanitize(g),s.appendChild(p)}function mw(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Hr,{detail:e});globalThis.document.dispatchEvent(t)}var pw=!1,Jt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},hw=[()=>{$t.unbind()}],fw=[...hw],oH=vr(async()=>{await Aa()},50),sH=vr(async()=>{await xd()},50),uH=vr(async()=>{await Hv()},50),lH=vr(async()=>{await jv()},50),bw=vr(e=>{bn({method:e,data:{trigger:"userscript_menu"}})},50),l3=!1,cH=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!l3&&e&&e.length>0?Ml({text:e}):Ml({})},50),dH=()=>{l3=!0,setTimeout(()=>{l3=!1},100)};Jt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(pw)return;pw=!0,Q()||Pv(),n.addEventListener("securitypolicyviolation",Jt.handleSecurityPolicyViolation),document.addEventListener(ne+"DocumentMessageUser",Sw),document.addEventListener(ne+"DocumentMessageUpdateUser",ww),document.addEventListener(ne+"ChangeSuccessService",Ew.bind(null,t)),document.addEventListener(ne+"ChangeService",Aw.bind(null,t)),document.addEventListener(In,Jt.showErrorByEvent.bind(null,t)),document.addEventListener(Xc,Jt.showToastByEvent.bind(null,t)),document.addEventListener(go,Jt.showModal.bind(null,t)),n.addEventListener(ne+"EbookLoaded",Jt.handleEbookLoaded),n.addEventListener(L2,Jt.handleThirdPartyTell.bind(null,t)),n.addEventListener(M2,Jt.eventUpload.bind(null,t)),n.addEventListener(t0,a=>{Tt()||p3(a,t)}),n.addEventListener(_2,kw),n.addEventListener("click",a=>{Jt.handleClick(a,t)}),document.addEventListener("selectionchange",cH),document.addEventListener("contextmenu",dH),sw(),Tt()&&e.addEventListener("message",Jt.handleGlobalMessage,!1),Q()&&(Tt()||n.addEventListener(Hr,Jt.handlePopupInit)),Tt()||Yi.rootIframe(l0).handleAsk("throttleRequest",Jx)};function yw(e,t){pH(),Jt.SetupDomListenersForOnce(t,e),Q()&&(Tt()||(j1(e.config),fH(e.config))),xr()&&Dw(e,t),je()&&j1(e.config)}Jt.handlePopupInit=e=>{OS()};Jt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Qc&&Ea(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Jt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Ec(n);return}let r=n.getAttribute(`data-${P}-event`);r&&Ne(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${P}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),vw({method:"retryFailedParagraphs"}),Ec(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${P}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Ac(s3.bind(null,t,o,i,s));return}}};async function mH(){let e=await Yt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await ln(e)}async function gH(){let e=await Yt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await ln(e)}Jt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;dw(lw.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Jt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Ac(s3.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Jt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Ac(eg.bind(null,"manga",e)):r=="webReport"&&Ac(eg.bind(null,"web",e))};Jt.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=d3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")vw({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")qv(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")mH();else if(i.type==="toggleEnableInputTranslation")gH();else if(i.type==="syncAppSetting")Cw(i.data);else if(i.type==="translatePage")hH(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Ds(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=eo(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await bH(i.data,o)}catch(s){kc(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await yH(o,i.data)}catch(s){kc(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await vd(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await US();else if(i.type==="sharePage")p3({detail:i.data},r);else if(i.type==="switchTranslationMode")c3(i.data);else if(i.type=="getAsyncAiAssistants")a=await rc();else if(i.type=="addAiAssistantAsync")a=await No("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await No("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await g3(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await m3(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await Yd("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await R5(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Kv());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Gv());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await I5(i.data));else if(i.type==="openPopup")Qm({...i.data,open:!0});else if(i.type==="closePopup")Qm({...i.data,open:!1});else if(i.type==="togglePopup")Qm({...i.data});else if(i.type==="getPageStatusAsync")a=st();else if(i.type==="restorePage")vH();else if(i.type==="getPageLanguageAsync")a=Lt();else if(i.type==="showFloatBallGuide")TS();else if(i.type=="getAsyncDetectAndSetLanguage")a=await Tw(i.data);else if(i.type=="setFloatBallActive")kS(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Is(r,s,o,!0)}else bw(i.type);a!=null&&i.id&&kc(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Jt.handleEbookLoaded=e=>{setTimeout(()=>{xw()},10)};Jt.handleSecurityPolicyViolation=e=>{Se.HAS_CSP_ERROR="1"};Jt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ne(n.name,[{name:n.name}],{...e})};function pH(){fw.forEach(e=>{e()}),fw=hw}function fH(e){if(Q()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Wd.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Nu,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Uu,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Bu,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Zg,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Bu?oH():i.id===Zg?sH():i.id===Uu?uH():i.id===Nu?lH():bw(i.id)},i.key)}}function vw(e){Ea(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(Hr,{detail:e});globalThis.document.dispatchEvent(t)}async function Cw(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await it(Ie(),t)}async function hH(e){let t=await Cw(e);pr(t)}function kc(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function bH({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await hn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function yH(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await hn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof z?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof z?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function vH(){st()!=="Original"&&fa()}var $o={};async function f3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Sr(n),n}async function Lw(e){let t=0,n=0;Xn("Translating");let r=Lt(),a=cd(),i=[...document.querySelectorAll(".source-text")];if(Gs(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&($s(m,c.id)?.remove(),m.appendChild(zl(e,c.id,!0)))}),await s(l),await tt(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await hn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=$s(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=ct.sanitize(`${l.message}`),$o[g]={ok:!1,sentence:m},Pw(u,e,t,n,l)):c&&(f.innerHTML=ct.sanitize(c.text),$o[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function Mw(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys($o),a=[],i=[];for(let o of r){let s=$o[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete $o[o],c.appendChild(zl(e,o)),i.push(s.sentence))}}}try{await hn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=$s(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=ct.sanitize(`${o.message}`),$o[l]={ok:!1,sentence:u},Pw(i,e,t,n,o)):s&&(m.innerHTML=ct.sanitize(s.text),$o[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function h3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function Pw(e,t,n,r,a){if(!(a instanceof z))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(In,{detail:i}))}var ig={};async function _w(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return Sr(n),n}async function Rw(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(ig),n=[];for(let r of t){let a=ig[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${a0}='${r}']`);o&&o.remove(),n.push(a)}}try{hc(),await Km(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function Iw(e){Object.values(ig).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=vu(e,t.targetNodes);no(e,i,r,t.rootNodes||[]),qo(t.targetNodes)}else n==="dual"&&qo(t.targetNodes)}),Xn("Original")}async function Fw(e){Xn("Translating");let t=wl(),n=Pa(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Wi(l,e);let c=l.body;if(!c)continue;_a(l.documentElement,e.state.translationMode);let m=En(e);m.isModifyImage=!1;let g=[];await pi({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await tt(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ks(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=lm(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:Wm(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await R1(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),ig[p.id]=p)}Km(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function og(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!qi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,b3,Bw=!1,sg=null,CH=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=P+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Xm(s,e,t,r,a,i,o)},i.append(m)}var eg=[],KS=[];async function t3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(n3()||eg.includes(t))return"";if(eg.length>=s)return new Promise((l,c)=>{KS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});eg.push(t);try{let u=await qj(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await GS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{eg.shift(),(async()=>{let u=KS.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await t3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function Uj(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${lt}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${$S(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await X({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function jj(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function Hj(e,t,n){let r=await jj(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),Q()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):X({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await e5(a)})}async function qj(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=zj(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await cd(u);ao({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await Uj(e,r,l,n.type);if(c.objectKey&&ao({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await Hj(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return Q()?m=await fetch(e3()+"/trigger",{method:"POST",body:Sd(u),headers:{token:e.user?.token||""}}).then(async g=>(await Hi(g,"manga"),g.json())):m=await X({url:e3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ao({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function GS(e,t,n,r,a){let i=n3();if(i)return;_r("Translating",i);let o=await X({url:e3()+`/${t}/task-state?comicHash=${n}&domain=${$S(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await LC(t,r.queryIntervalTime||100),GS(e,t,n,r,a))}function e3(){return lt+"comics"}function zj(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function $S(e){return e.replaceAll(".","_")}var Wt,r3,ng,Sc,on=!1;function n3(){return on}var YS=!1;function QS(e){if(Wt=e.rule.imageRule,!e.isPro||!Wt.type)return;on=!1,!YS&&Wt.injectedCss&&(rr(document,`${Wt.injectedCss}`,P+"-image-injected-css"),YS=!0);let t=!1,n=Fn(async function(){Wt?.disableMarkSelector&&(t=!!document.querySelector(Wt.disableMarkSelector));let a=tw(Wt);for(let i of a){if(on)return;i.isMarked&&!Wt?.disableMarkElement||(i.isMarked=!0,await tt(20),await r(i,t))}},100);if(Fe("translate_manga",[{name:"translate_manga"}],e),n(),r3=new MutationObserver(a=>{n()}),r3.observe(document.body,{childList:!0,subtree:!0}),Wt.intersectionRootMargin){let a=Wt?.intersectionRootSelector?document.querySelector(Wt?.intersectionRootSelector):void 0;Sc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(Ko(e,o.target),Sc?.unobserve(o.target))})},{root:a,rootMargin:Wt.intersectionRootMargin,threshold:Wt.intersectionThreshold})}ng=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Wt?.intersectionRootMargin?(Sc?.unobserve(a),Sc?.observe(a)):await Ko(e,a)))}}async function Ko(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Rs();if(n&&(on=!1),on||Qj(e,t)||t.hasTranslate)return;Wt=e.rule.imageRule;let o=!1;Wt?.disableMarkSelector&&(o=!!document.querySelector(Wt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=Vj(e,t);u||(s=xu(e,t,"translating")),n&&Fe("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await Kj(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await Wj(e,t,o,a,s)),on&&!n)return;l?(t.translationStatus="success",u||xu(e,t,"success")):(u||xu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&_r("Error",on))}catch(l){if(on&&!n||(t.translationStatus="error",a=="manga"&&_r("Error",on),Jj(e,l),u))return;if(l instanceof xc)return xu(e,t,"error",l.type);xu(e,t,"error")}finally{n&&_r(i,on),s?.remove()}}function XS(){if(!Wt)return;on=!0,r3?.disconnect(),ng?.disconnect(),Sc?.disconnect();let e=tw(Wt);for(let t of e)Go(t)}function Go(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Go(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function Wj(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await Gj(l,c,t.cloneNode(!0))}else o=await nw(t);if(on)return;if(!o||o.size<6*1e4){ng?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await n4(o);return await a3(e,t,s)?!0:s?ew({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function ew({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await Yj(n)||n,u=r||a;try{if(on)return;_r("Translating",on),X1(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ao(l);let m=await t3(e,u,s,a,i,g=>{X1(e,o,g)});return m?(l.targetUrl=m,ao(l),await rw(Wt,t,m),_r("Translated",on),!0):!1}catch(l){if(ao({sourceUrl:u,to:e.targetLanguage,error:l.message}),on)return;throw l}}async function a3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Qm(r);return a&&a?.targetUrl?(await rw(Wt,t,a.targetUrl||""),_r("Translated",on),!0):!1}function Vj(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Qm(r);return a&&a?.targetUrl}return!1}async function Kj(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!Zj(a,i)){ng?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await a3(e,t,o))return!0;let s=null;if(_r("Translating",on),on)return;if(i.startsWith("blob:")){let m=await fetch(i);await Hi(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await $j(i);else{let m=await X({url:i,responseType:"base64"});s=await wd(m)}if(on)return;if(await cx(s))throw new xc("GIFs not supported","gif_not_supported");let l=await n4(s);if(!o&&(o=l,await a3(e,t,o)))return!0;if(!o)return!1;return ew({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function tw(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function nw(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function Gj(e,t,n){return new Promise((r,a)=>{X({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await nw(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function rw(e,t,n){try{return await ZS(e,t,n)}catch{let a=await Xj(n);return ZS(e,t,a)}}async function ZS(e,t,n){return new Promise((a,i)=>{if(on)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function $j(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function Yj(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function Zj(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Yd(e.inValidSrcRegex,t):!0}var tg=0,Tc=0;function Jj(e,t){if(tg!=0){Tc++;return}if(t.message.indexOf("quota exceeded")>0){JS(e,t);return}Tc++,tg=setTimeout(()=>{if(Tc<(Wt.errorTimes||3)){tg=0,Tc=0;return}JS(e,t),Tc=0,tg=0},Wt.errorInterval||3e3)}function JS(e,t){let r=new z("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(or,{detail:r}))}function i3(e){return e.classList.contains("imt-img")||e.hasTranslate}function Qj(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function Xj(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var eH="showImagePricingModal";function rg(e){document.dispatchEvent(new CustomEvent(eH,{detail:JSON.stringify({trigger:e})}))}var za=null;async function aw(e,{srcUrl:t}){if(!li(e))return;if(!await As(e)){rg("image_right_menu");return}if(!za){k.error("rightMenu image ele not found",t,za);return}if(za.translationStatus!=="translating"){if(za.hasTranslate){Go(za);return}if(t!==za.src)try{let r=new URL(t),a=new URL(za.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,za.src,r);return}Ko(e,za,!0,"image_right_menu")}}function iw(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(za=e.target)})}var ow=0;function Ec(e){let t=Date.now();if(t-ow<2e3||(ow=t,tH()))return;let n=`${P}-modal-root`,r=`${P}-modal`,a=document.getElementById(n),i=`${P}-modal-title`,o=`${P}-modal-body`,s=`${P}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,wc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=Te();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=P+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=P+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let b=document.createElement("div");b.className=o+" notranslate",g.appendChild(b);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",h=>{h.target==u&&(u.style.display="none")}),e(u,f,b,y,wc)}setTimeout(()=>{nH()},100)}function tH(){let e=document.querySelector(`#${P}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-modal`)?.style.display=="block":!1}function nH(){let e=document.querySelector(`#${P}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function wc(e,t=!1){let n=document.querySelector(`#${P}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function sw(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await cn();ln({...l,sameLangCheck:!1}),o(i,!0)})}var uw=0;async function lw(e){let t=Date.now();if(t-uw<2e3||(uw=t,rH()))return;let n=`${P}-toast-root`,r=`${P}-toast`,a=document.getElementById(n),i=`${P}-toast-msg`,o=`${P}-toast-content`,s=`${P}-toast-hidden`,u,l,c=()=>{l&&o3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,o3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),y=document.createElement("style"),h=Te();y.textContent=h.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),b.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=P+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},b.addEventListener("click",x=>{x.target==g&&(g.style.display="none")}),e(g,u,l,o3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{aH()},100),m=setTimeout(c,2500)}function rH(){let e=document.querySelector(`#${P}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-toast`)?.style.display=="flex":!1}function aH(){let e=document.querySelector(`#${P}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-toast`);t&&(t.style.display="flex")}}function o3(e,t=!1){let n=document.querySelector(`#${P}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function s3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=ct.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${P}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",cw({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(Q2)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(d0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(rb)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(Se.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(Se.OPTIONS_URL)},u3(e,e.config.translationService,!1,f).then(b=>{b?(g=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=ct.sanitize(g),p.onclick=()=>{dw(b),u(p,!0)}):(g=l("goSettings"),p.innerHTML=ct.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Yt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await ln(f),cw({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=P+"-btn",p.innerHTML+=ct.sanitize(g),s.appendChild(p)}function cw(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(t)}var mw=!1,Jt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},pw=[()=>{$t.unbind()}],gw=[...pw],iH=yr(async()=>{await Ea()},50),oH=yr(async()=>{await Cd()},50),sH=yr(async()=>{await Uv()},50),uH=yr(async()=>{await Nv()},50),fw=yr(e=>{bn({method:e,data:{trigger:"userscript_menu"}})},50),l3=!1,lH=Fn(()=>{let e=globalThis.getSelection()?.toString().trim();!l3&&e&&e.length>0?Ll({text:e}):Ll({})},50),cH=()=>{l3=!0,setTimeout(()=>{l3=!1},100)};Jt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(mw)return;mw=!0,Q()||Lv(),n.addEventListener("securitypolicyviolation",Jt.handleSecurityPolicyViolation),document.addEventListener(ne+"DocumentMessageUser",xw),document.addEventListener(ne+"DocumentMessageUpdateUser",Tw),document.addEventListener(ne+"ChangeSuccessService",Sw.bind(null,t)),document.addEventListener(ne+"ChangeService",ww.bind(null,t)),document.addEventListener(or,Jt.showErrorByEvent.bind(null,t)),document.addEventListener(Qc,Jt.showToastByEvent.bind(null,t)),document.addEventListener(go,Jt.showModal.bind(null,t)),n.addEventListener(ne+"EbookLoaded",Jt.handleEbookLoaded),n.addEventListener(k2,Jt.handleThirdPartyTell.bind(null,t)),n.addEventListener(D2,Jt.eventUpload.bind(null,t)),n.addEventListener(e0,a=>{Tt()||p3(a,t)}),n.addEventListener(M2,Ew),n.addEventListener("click",a=>{Jt.handleClick(a,t)}),document.addEventListener("selectionchange",lH),document.addEventListener("contextmenu",cH),iw(),Tt()&&e.addEventListener("message",Jt.handleGlobalMessage,!1),Q()&&(Tt()||n.addEventListener(jr,Jt.handlePopupInit)),Tt()||Yi.rootIframe(u0).handleAsk("throttleRequest",Yx)};function hw(e,t){gH(),Jt.SetupDomListenersForOnce(t,e),Q()&&(Tt()||(j1(e.config),pH(e.config))),Cr()&&Aw(e,t),je()&&j1(e.config)}Jt.handlePopupInit=e=>{FS()};Jt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Jc&&wa(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Jt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){wc(n);return}let r=n.getAttribute(`data-${P}-event`);r&&Fe(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${P}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),bw({method:"retryFailedParagraphs"}),wc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${P}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Ec(s3.bind(null,t,o,i,s));return}}};async function dH(){let e=await Yt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await ln(e)}async function mH(){let e=await Yt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await ln(e)}Jt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;lw(sw.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Jt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Ec(s3.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Jt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Ec(Xm.bind(null,"manga",e)):r=="webReport"&&Ec(Xm.bind(null,"web",e))};Jt.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=d3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")bw({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")jv(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")dH();else if(i.type==="toggleEnableInputTranslation")mH();else if(i.type==="syncAppSetting")yw(i.data);else if(i.type==="translatePage")fH(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Ds(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=eo(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await hH(i.data,o)}catch(s){Ac(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await bH(o,i.data)}catch(s){Ac(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else if(i.type==="getAsyncLanguageByText")a=await yd(i.data);else if(i.type==="getAsyncDownloadSubtitle")a=await OS();else if(i.type==="sharePage")p3({detail:i.data},r);else if(i.type==="switchTranslationMode")c3(i.data);else if(i.type=="getAsyncAiAssistants")a=await nc();else if(i.type=="addAiAssistantAsync")a=await No("add",i.data);else if(i.type=="removeAiAssistantAsync")a=await No("remove",i.data);else if(i.type=="getMiniConfigAsync"||i.type=="getConfig")a=await g3(r);else if(i.type=="setMiniConfigAsync"||i.type=="setConfig")a=await m3(r,i.data);else if(i.type=="getDeviceInfoAsync")r.rule.allowInnerInvoke&&(a=await $d("auto",r.targetLanguage));else if(i.type=="setABGroupAsync")r.rule.allowInnerInvoke&&(a=await P5(i.data));else if(i.type==="getIsSupportIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Wv());else if(i.type==="getIsOnToolbarAsync")r.rule.allowInnerInvoke&&(a=await Vv());else if(i.type==="setCampaignAsync")r.rule.allowInnerInvoke&&(a=await _5(i.data));else if(i.type==="openPopup")Jm({...i.data,open:!0});else if(i.type==="closePopup")Jm({...i.data,open:!1});else if(i.type==="togglePopup")Jm({...i.data});else if(i.type==="getPageStatusAsync")a=st();else if(i.type==="restorePage")yH();else if(i.type==="getPageLanguageAsync")a=Lt();else if(i.type==="showFloatBallGuide")CS();else if(i.type=="getAsyncDetectAndSetLanguage")a=await Cw(i.data);else if(i.type=="setFloatBallActive")ES(i.data);else if(i.type=="requestTermsByContext"){let{text:o,translationService:s}=i.data;Is(r,s,o,!0)}else fw(i.type);a!=null&&i.id&&Ac(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Jt.handleEbookLoaded=e=>{setTimeout(()=>{vw()},10)};Jt.handleSecurityPolicyViolation=e=>{Se.HAS_CSP_ERROR="1"};Jt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Fe(n.name,[{name:n.name}],{...e})};function gH(){gw.forEach(e=>{e()}),gw=pw}function pH(e){if(Q()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=zd.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Nu,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Uu,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Bu,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Yg,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Bu?iH():i.id===Yg?oH():i.id===Uu?sH():i.id===Nu?uH():fw(i.id)},i.key)}}function bw(e){wa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(t)}async function yw(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Je(Re(),t)}async function fH(e){let t=await yw(e);gr(t)}function Ac(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function hH({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await hn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function bH(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0,inArticleContext:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await hn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof z?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof z?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function yH(){st()!=="Original"&&pa()}var $o={};async function f3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ge({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Tr(n),n}async function kw(e){let t=0,n=0;Qn("Translating");let r=Lt(),a=ld(),i=[...document.querySelectorAll(".source-text")];if(Gs(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,inArticleContext:!0,node:u}));document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&($s(m,c.id)?.remove(),m.appendChild(ql(e,c.id,!0)))}),await s(l),await tt(0)}}catch(u){throw u}finally{t=0,n=0,Qn("Translated")}async function s(u){await hn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=$s(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=ct.sanitize(`${l.message}`),$o[g]={ok:!1,sentence:m},Lw(u,e,t,n,l)):c&&(f.innerHTML=ct.sanitize(c.text),$o[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function Dw(e){let t=0,n=0;Qn("Translating"),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys($o),a=[],i=[];for(let o of r){let s=$o[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete $o[o],c.appendChild(ql(e,o)),i.push(s.sentence))}}}try{await hn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=$s(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=ct.sanitize(`${o.message}`),$o[l]={ok:!1,sentence:u},Lw(i,e,t,n,o)):s&&(m.innerHTML=ct.sanitize(s.text),$o[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Qn("Translated")}}function h3(){Qn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function Lw(e,t,n,r,a){if(!(a instanceof z))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(or,{detail:i}))}var ag={};async function Mw(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ge({text:t,pageLangs:["en"]});return Tr(n),n}async function Pw(e){Qn("Translating"),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(ag),n=[];for(let r of t){let a=ag[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${r0}='${r}']`);o&&o.remove(),n.push(a)}}try{fc(),await Vm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Qn("Translated")}}function _w(e){Object.values(ag).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=vu(e,t.targetNodes);no(e,i,r,t.rootNodes||[]),qo(t.targetNodes)}else n==="dual"&&qo(t.targetNodes)}),Qn("Original")}async function Rw(e){Qn("Translating");let t=Sl(),n=Ma(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Wi(l,e);let c=l.body;if(!c)continue;Pa(l.documentElement,e.state.translationMode);let m=En(e);m.isModifyImage=!1;let g=[];await pi({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await tt(0)}o(a),Qn("Translated");function o(u){document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ks(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=um(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:zm(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await R1(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(p.inArticleContext=!0,l.push(p),ag[p.id]=p)}Vm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function ig(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!qi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}function vH(){let e=document.querySelector(`#${P}-modal-input-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function Iw(e){let t=`${P}-modal-input-root`,n=`${P}-modal`,r=`${P}-modal-title`,a=`${P}-modal-body`,i=`${P}-modal-footer`,o=document.querySelector(`#${t}`),s,u,l,c;return setTimeout(()=>{vH()},100),new Promise(m=>{let g=m;if(o){let _=o.shadowRoot;if(!_)return;s=_.querySelector(`.${n}`);let B=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),N=s.querySelector(`.${a}`)}else{let _=document.createElement("div");_.setAttribute("translate","no"),_.className=`no-translate ${P}-error-modal-input-shadow-root`,_.id=t,_.style.all="initial",_.style.zIndex="2147483647",document.body.appendChild(_);let B=_.attachShadow({mode:"open"}),L=document.createElement("style"),N=Te();L.textContent=N.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,B.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let U=document.createElement("div");U.className=P+"-modal-content notranslate "+P+"-modal-content-in-input",s.appendChild(U);let V=document.createElement("span");V.textContent="\xD7",V.className=P+"-close",U.appendChild(V),u=document.createElement("div"),u.className=r+" notranslate",U.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",U.appendChild(c),l=document.createElement("div"),l.className=i,U.appendChild(l),B.appendChild(s),V.onclick=function(){A(),m("close")},B.addEventListener("click",Y=>{Y.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",R);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${Dm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=nr?.createHTML(f)||f,c.innerHTML=nr?.createHTML("")||"";let b=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:$+"docs/input/"});b.innerHTML=nr?.createHTML(y)||y,b.style.cssText="margin-bottom:12px",c.appendChild(b);let h=document.createElement("div");h.style.cssText="margin-bottom: 12px;";let v=ct.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));h.innerHTML=nr?.createHTML(v)||v,c.appendChild(h);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let _=0;_{xH(e,t)})}function xH(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(sg===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};sr.forEach(g=>r[g]=[g,...r[g]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;qe().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();m();function l(g){if(zn||sg===!1)return;let p=cg(t.document,e.rule.enableInputDeepActive),f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(AH(g,o.triggerKey,o.codePrefixAlias)?c({...g,target:p}):s=0)}async function c(g){Date.now()-u=o.triggerTimes&&Ow(t,o,g.target)&&(s=0,C3(g,e,t,o))}function m(){b3=l,t.removeEventListener("keyup",b3),t.addEventListener("keyup",b3,!0)}kH(e)}function Uw({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function ug(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var Tu;function y3(e){let t=e.parentElement;if(!t)return;Tu=document.createElement("div"),Tu.className=P+"-input";let n=`
`;Tu.innerHTML=cr?.createHTML(n)||n,t.appendChild(Tu);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=CH,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function v3(){Tu&&Tu.remove()}async function TH(e,t=window){if(zn)return;let r=globalThis.getSelection()?.toString();if(r){S3(e,t,r,"shortcutKey");return}try{let b=function(){p=e.config.inputTargetLanguage;let C=g.split(" ")[0];C&&C[0]&&(C=C[0].toLowerCase()+C.slice(1)),C.trim()&&u.flatAlias.includes(C)?(p=ug(C,u.codeAlias),m=g.slice(C.length+1)):m=g},v=function(){p="";let C=Uw(u),x=g.split(C);if(x.length<2)return;if(m=x[x.length-1],c=x[0],x.length>2){let w=g.lastIndexOf(m),S=g.slice(0,w).lastIndexOf(x[x.length-2]);c=g.slice(0,S+x[x.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",m="";return}let T=g.slice(c.length+1,g.indexOf(m)).trim();if(p=ug(T,u.codeAlias),!p){k.warn("not found alias",T);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};sr.forEach(C=>i[C]=[C,...i[C]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;qe().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;zn=!0;let c="",m="",g=ba(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?b():(v(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&b());let f=jw(m,u),h=await ze({text:f,pageLangs:["en"]});k.debug("translateContent",f,h);let y={text:f||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!y.text||y.text.length>5e3)return;y3(l),Ye(Hu,Date.now());try{e.specialAiAssistant=oa(e,e.inputTranslationService,!0);let C=await gr(y,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});T3(e),Kw(e,t,l,c+C.text)}catch(C){if(C instanceof z){let x=C.uiConfig(e);w3(x.action)&&(x.action="none"),t.document.dispatchEvent(new CustomEvent(In,{detail:x}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,v3()}}async function C3(e,t,n,r){if(!zn)try{let g=function(){u=t.config.inputTargetLanguage;let f=s.split(" ")[0];f&&f[0]&&(f=f[0].toLowerCase()+f.slice(1)),f.trim()&&r.flatAlias.includes(f)?(u=ug(f,r.codeAlias),o=s.slice(f.length+1)):o=s},p=function(){u="";let f=Uw(r),h=s.split(f);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let b=s.lastIndexOf(o),v=s.slice(0,b).lastIndexOf(h[h.length-2]);i=s.slice(0,v+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let y=s.slice(i.length+1,s.indexOf(o)).trim();if(u=ug(y,r.codeAlias),!u){k.warn("not found alias",y);return}},a=cg(n.document,t.rule.enableInputDeepActive);if(!a)return;zn=!0;let i="",o="",s=ba(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?g():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&g());let l=jw(o,r),c=await ze({text:l,pageLangs:["en"]});k.debug("translateContent",l,c);let m={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!m.text)return;if(t.config.isShowInputTranslationConsent&&!Bw){Bw=!0;let f=await DH(t);if(e.target&&e.target.focus(),f==="disable_once"||f==="disable_forever"){if(sg=!1,f==="disable_forever"){let h=await Yt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await ln(h)}else if(f==="disable_once"){let h=await Yt();h.isShowInputTranslationConsent=!1,await ln(h)}return}else if(f==="close_disable_once"||f==="close_disable_forever"){if(sg=!1,f==="close_disable_forever"){let h=await Yt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await ln(h)}return}else if(f==="enable"){let h=await Yt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await ln(h)}else if(f==="close_enable"){let h=await Yt();h.enableInputTranslation=!0,await ln(h)}}y3(a),Ye(Hu,Date.now());try{t.specialAiAssistant=oa(t,t.inputTranslationService,!0);let f=await gr(m,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});T3(t),Kw(t,n,a,i+f.text)}catch(f){if(f instanceof z){let h=f.uiConfig(t);w3(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(In,{detail:h}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,v3()}}function Ow(e,t,n){if(!n)return!1;if(x3(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=SH(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=je()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function SH(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function jw(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Hw(e,t){let n=t.innerHTML,r=ba(t);return{html:n.replace(r,e),text:e}}function lg(e,t,n=!1){let r=ba(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function ba(e){return e.value||e.innerText||e.textContent}async function ha(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function wH(e,t,n){await ha(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await ha(10)}async function qw(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await ha(10))}async function zw(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await ha(20),(t.value||t.value==="")&&(t.value=e.text)}async function Ww(e,t){x3(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await ha(20))}var Vw=[wH.bind(null,["plain"])];function x3(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function EH(e,t){if(x3(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function Kw(e,t,n,r){await ha(50),await EH(t,n),await ha(50);let a=e.rule.inputConfig,i=Hw(r,n);try{await ha(50),a?.execCommandDeleteEnable&&!Qn()&&ba(n)?.trim()!=""&&(t.document.execCommand("delete"),await ha(50)),k.debug("clearContent",ba(n))}catch(o){k.error(o)}for(let o of[...Vw,zw,Ww,qw]){await o(i,n);let s=Gw(t);if(!s)return;if(k.debug("setContent",o.name,lg(i,s),ba(s),i),lg(i,s))break}}function Gw(e){return e.document.activeElement}function T3(e,t=""){Ne("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function AH(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function kH(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Pt(t,"")||Number(await Pt(Hu,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{LH()},100),new Promise(m=>{let g=m;if(o){let _=o.shadowRoot;if(!_)return;s=_.querySelector(`.${n}`);let B=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),N=s.querySelector(`.${a}`)}else{let _=document.createElement("div");_.setAttribute("translate","no"),_.className=`no-translate ${P}-error-modal-input-shadow-root`,_.id=t,_.style.all="initial",_.style.zIndex="2147483647",document.body.appendChild(_);let B=_.attachShadow({mode:"open"}),L=document.createElement("style"),N=Te();L.textContent=N.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,B.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let U=document.createElement("div");U.className=P+"-modal-content notranslate "+P+"-modal-content-in-input",s.appendChild(U);let V=document.createElement("span");V.textContent="\xD7",V.className=P+"-close",U.appendChild(V),u=document.createElement("div"),u.className=r+" notranslate",U.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",U.appendChild(c),l=document.createElement("div"),l.className=i,U.appendChild(l),B.appendChild(s),V.onclick=function(){A(),m("close")},B.addEventListener("click",Y=>{Y.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",R);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${Lm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=cr?.createHTML(f)||f,c.innerHTML=cr?.createHTML("")||"";let h=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:$+"docs/input/"});h.innerHTML=cr?.createHTML(y)||y,h.style.cssText="margin-bottom:12px",c.appendChild(h);let b=document.createElement("div");b.style.cssText="margin-bottom: 12px;";let v=ct.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));b.innerHTML=cr?.createHTML(v)||v,c.appendChild(b);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let _=0;_0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function S3(e,t,n,r){if(zn)return;try{let o=cg(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;zn=!0;let u=e.config.inputTargetLanguage,l=await ze({text:n,pageLangs:["en"]});k.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;y3(o),Ye(Hu,Date.now());try{if(e.specialAiAssistant=oa(e,e.inputTranslationService,!0),T3(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let m=await gr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,m.text)}else{let m=await gr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,m.text)}}catch(m){if(m instanceof z){let g=m.uiConfig(e);w3(g.action)&&(g.action="none"),document.dispatchEvent(new CustomEvent(In,{detail:g}))}}finally{zn=!1}}catch(o){throw zn=!1,o}finally{zn=!1,v3()}async function a(o,s,u,l){let c=o.rule.inputConfig,m=Hw(l,u);try{await ha(50),c?.execCommandDeleteEnable&&!Qn()&&ba(u)?.trim()!=""&&(s.document.execCommand("delete"),await ha(50)),k.debug("clearContent",ba(u))}catch(g){k.error(g)}for(let g of[...Vw,zw,Ww,qw]){await g(m,u);let p=Gw(s);if(!p)return;if(k.debug("setContent",g.name,lg(m,p),ba(p),m),lg(m,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let m=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("delete",!1);let g=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(g),!g.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function w3(e){return e==="retry"||e==="changeService"}function dg({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&rr(c,a),e.appendChild(l);let m=c;if(s){let g=document.createElement("div");g.id="mount",g.style.display="block",c.appendChild(g),m=g}xa(d(Zi,{lang:t.config.interfaceLanguage,children:d(n,{...r})}),m)}function $w(e){let t=document.createElement("span");return t.innerHTML=e,(t.textContent||"").trim()}function Qe(e,t,n){Ne("translate_video_subtitle",[{name:"translate_video_subtitle",params:{video_platform:n||e.rule.id||""}}],{...e,sourceLanguage:t||"auto"})}function mt(e,t){return e==t}function hi(e,t){return!e||!t?!1:e.startsWith("zh")&&t.startsWith("zh")}function Yw(e){let{url:t,method:n,headers:r,body:a}=e,i=new Headers;for(let[u,l]of Object.entries(r))i.append(u,l);let o;return typeof a=="object"?(delete a._formatBodyType,o=JSON.stringify(a)):typeof a=="string"&&(o=a),new Request(t,{method:n,headers:i,body:o})}function Zw(e){return e?Object.entries(e).reduce((t,[n,r])=>{if(r==null||r==null||typeof r=="object"&&Object.keys(r).length===0)return t;if(n=="body"&&typeof r=="object"&&r._formatBodyType=="FormData"){let a=new FormData;for(let[i,o]of Object.entries(r))i!=="_formatBodyType"&&a.append(i,o);return t[n]=a,t}return t[n]=r,t},{}):null}function E3(e){return e.replace(/\n/g," ")}function Jw(e){let t;return e instanceof URL?t=e.href:typeof e=="string"?t=e:e instanceof Request?t=e.url:t=String(e),t}function mg(e,t,n){let r="translationServices."+n,a=t("translationServices."+n);return a!=r?a:e.config.translationServices[n]?.name||a}function Su(e){return wu(e).subtitles}function wu(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${Y3.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},zq=e=>/]*>[\s\S]*]*>/.test(e),P7=kn({name:M7,build:qq,detect:zq,helper:Y3,parse:Hq});var Wq="srt",_c={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},Vq=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=_c.toMilliseconds(s[2]),u.end=_c.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},Kq=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${_c.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},Gq=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),_7=kn({name:Wq,build:Kq,detect:Gq,helper:_c,parse:Vq});var $q="sub",Z3=25,Yq=(e,t)=>{t.fps||=Z3;let n=t.fps>0?t.fps:Z3,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Z3,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},Jq=e=>/^\{\d+\}\{\d+\}.*/.test(e),R7=kn({name:$q,build:Zq,detect:Jq,parse:Yq});var Qq="vtt",Rc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},Xq=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Rc.toMilliseconds(s[2]),l.end=Rc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},ez=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Rc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},tz=e=>/^\s*WEBVTT\r?\n/.test(e),I7=kn({name:Qq,build:ez,detect:tz,helper:Rc,parse:Xq});var nz={vtt:I7,lrc:D7,smi:P7,ssa:E7,ass:A7,sub:R7,srt:_7,sbv:L7,json:k7},F7=nz;var rz=e=>JSON.parse(JSON.stringify(e)),J3=class{format=F7;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),bg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];yu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,ne+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${P}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&rr(document,`${t.join(` -`)}`,P+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await it(Ie(),{});if(this.initConfig(n),await tt(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(Yw(r),Zw(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!dt(Ie(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:mg(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function Sq(){return d("span",{class:"logo",dangerouslySetInnerHTML:{__html:Dm}})}function wq(){return d("span",{class:"logo",dangerouslySetInnerHTML:{__html:B8}})}function Eq(){return d("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:d("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function Aq(){return d("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:d("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function kq(){return d("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:d("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var q3=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},kn=e=>new q3(e);var Dq="ssa",Yo={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},z3=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sT.split(S,w).join(S).length)(y,",",r.length-1)+1;v.content=y.substring(x),v.data.Text=v.content,v.text=v.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(v)}}}}}t.verbose}return a},W3=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,w7=kn({name:Dq,build:W3,detect:V3,helper:Yo,parse:z3});var Lq="ass",E7=kn({name:Lq,build:W3,detect:V3,helper:Yo,parse:z3});var Mq="json",Pq=(e,t)=>JSON.parse(e),_q=(e,t)=>JSON.stringify(e,void 0,2),Rq=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},A7=kn({name:Mq,build:_q,detect:Rq,parse:Pq});var Iq="lrc",K3={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},Fq=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),k7=kn({name:Iq,build:Bq,detect:Oq,helper:K3,parse:Fq});var Nq="sbv",Mc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},Uq=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},jq=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),D7=kn({name:Nq,build:jq,detect:Hq,helper:Mc,parse:Uq});var L7="smi",G3={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},qq=(e,t)=>{if(t.format&&t.format!==L7)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(m){let g={};g.type="caption",g.start=parseInt(m[1]),g.end=g.start+2e3,g.duration=g.end-g.start,g.content=m[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,f=/^([\s\S]*)/i.exec(g.content)||/^]*)>([\s\S]*)/i.exec(g.content);if(f){let b=f[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),b=b.replace(/^\s+/g,"").replace(/\s+$/g,""),p=b.replace(/ /gi," ").replace(/\s+/g,"").length===0,g.text=G3.htmlDecode(b,r)}!t.preserveSpaces&&p?t.verbose:n.push(g),s&&(s.end=g.start,s.duration=s.end-s.start),s=g;continue}t.verbose}return n},zq=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${G3.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},Wq=e=>/]*>[\s\S]*]*>/.test(e),M7=kn({name:L7,build:zq,detect:Wq,helper:G3,parse:qq});var Vq="srt",Pc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},Kq=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Pc.toMilliseconds(s[2]),u.end=Pc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},Gq=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Pc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},$q=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),P7=kn({name:Vq,build:Gq,detect:$q,helper:Pc,parse:Kq});var Yq="sub",$3=25,Zq=(e,t)=>{t.fps||=$3;let n=t.fps>0?t.fps:$3,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:$3,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},Qq=e=>/^\{\d+\}\{\d+\}.*/.test(e),_7=kn({name:Yq,build:Jq,detect:Qq,parse:Zq});var Xq="vtt",_c={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},ez=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=_c.toMilliseconds(s[2]),l.end=_c.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},tz=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${_c.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},nz=e=>/^\s*WEBVTT\r?\n/.test(e),R7=kn({name:Xq,build:tz,detect:nz,helper:_c,parse:ez});var rz={vtt:R7,lrc:k7,smi:M7,ssa:w7,ass:E7,sub:_7,srt:P7,sbv:D7,json:A7},I7=rz;var az=e=>JSON.parse(JSON.stringify(e)),Y3=class{format=I7;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),hg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];yu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,ne+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${P}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&rr(document,`${t.join(` +`)}`,P+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await Je(Re(),{});if(this.initConfig(n),await tt(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch($w(r),Yw(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!dt(Re(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle==null?this.tempEnableSubtitle:this.config.autoEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:dg(this.ctx,this.i18nFormat.bind(this),this.ctx.subtitleTranslateService)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=ct.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await hn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=fg(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Cc(this.ctx,n,r)}getTranslationMode(t){return hi(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=P+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;Qe(this.ctx,n);let r=t.filter(a=>a.text);bi(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Lc(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Bn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&dg({id:P+"quick-button",parent:n,ctx:this.ctx,Component:S7,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:w7+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Zo.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return vd(t.slice(0,50).map(n=>n.text).join(" "))}};function O7(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var xg=class extends vt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!dt(Ie(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=mt(re(r),this.ctx.targetLanguage);if(a||hi(r,this.ctx.targetLanguage)){let m=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(m)return this.loadSubtitle(m)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(m=>m===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(C7(t)&&(o||u)){let m=await this.requestOriginalEvents(t);u&&this.requestServerMerge(m,r);let g=v7(m,r,this.ctx.rule.ytAsrConfig);if(g){this.attachSubtitle(g,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let m=this.formatToSubtitleItem(l);return this.attachSubtitle(m,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${lt}subtitles/yt-asr-subs`;try{let a=await dd(t),o=(await X({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!mt(re(o),r)&&!hi(re(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(m=>!mt(re(m.languageCode),r)&&!hi(re(m.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(m=>m.kind);if(!u&&s.length&&(u=s.sort((g,p)=>re(g.languageCode)==="en"?-1:0)[0]),!u)return;let l=re(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=O7(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>re(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>re(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return re(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=P+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!mt(re(a[u]),this.ctx.targetLanguage)&&!hi(re(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:$w(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,m,g)=>{if(g==0)return c=c.concat(m),c;let p=c[c.length-1];return m.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await it(Ie(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Lc(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await it(Ie(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=gg(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await ze({text:o.join(` -`),pageLangs:[Ht(),"en"]});return mt(re(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Ie()&&(this.lastReportUrl=Ie(),Qe(this.ctx,re(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,m)=>{i[m]&&(i[m].innerHTML=c.displayText)}),pg(a.arrayBuffer,a.document))}catch{}}};var Tg=class extends vt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(re(i),this.ctx.targetLanguage))return null;Qe(this.ctx,re(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:re(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,re(i));return}this.downloadSubtitle(o,re(i),[]);let u=await this.requestHumanSubtitle(o,re(i),r);if(u)return this.handleIOSFullScreen(u,re(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,re(i));return l?(this.handleIOSFullScreen(l,re(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[re(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=Eu(s,u,"
");return l.forEach((c,m)=>{i.length<=m||(i[m].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!Q()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Dc(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let m=a[l],g=a[c];if(!(!m||!g)){if(m.y>g.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Ie()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var oo=class extends vt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(mt(re(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),re(i.language)),i.isTranslated=!0;return}Qe(this.ctx,re(i.language)),this.translateSubtitle([...i.cues||[]],re(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>az(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function az(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var Va=class extends oo{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&Qe(this.ctx,re(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(mt(re(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,re(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var Lu=class extends Va{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=wu(r),i=await ze({text:a.subtitles.map(l=>l.text).join(` +`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await hn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=pg(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),vc(this.ctx,n,r)}getTranslationMode(t){return hi(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=P+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n){if(!this.config.attachRule?.appendSelector)return;Qe(this.ctx,n);let r=t.filter(a=>a.text);bi(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:n},this.config.attachRule.isDelay),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Dc(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Fn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&cg({id:P+"quick-button",parent:n,ctx:this.ctx,Component:T7,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle,hasSubtitle:await this.isSubtitleAvailable()},style:S7+this.config.quickButtonRule?.injectCSS||""})}async isSubtitleAvailable(){let t=this.config?.quickButtonRule;return!(!t||t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector))}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Zo.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return yd(t.slice(0,50).map(n=>n.text).join(" "))}};function B7(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var Cg=class extends vt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){if(this.config.disabled)return!1;let t=this.config.autoEnableSubtitle||this.tempEnableSubtitle;return this.config.translationOnlyPattern&&!dt(Re(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=mt(re(r),this.ctx.targetLanguage);if(a||hi(r,this.ctx.targetLanguage)){let m=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(m)return this.loadSubtitle(m)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(m=>m===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(v7(t)&&(o||u)){let m=await this.requestOriginalEvents(t);u&&this.requestServerMerge(m,r);let g=y7(m,r,this.ctx.rule.ytAsrConfig);if(g){this.attachSubtitle(g,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let m=this.formatToSubtitleItem(l);return this.attachSubtitle(m,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${lt}subtitles/yt-asr-subs`;try{let a=await cd(t),o=(await X({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!mt(re(o),r)&&!hi(re(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(m=>!mt(re(m.languageCode),r)&&!hi(re(m.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(m=>m.kind);if(!u&&s.length&&(u=s.sort((g,p)=>re(g.languageCode)==="en"?-1:0)[0]),!u)return;let l=re(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=B7(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>re(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>re(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return re(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=P+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!mt(re(a[u]),this.ctx.targetLanguage)&&!hi(re(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:Gw(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,m,g)=>{if(g==0)return c=c.concat(m),c;let p=c[c.length-1];return m.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await Je(Re(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Dc(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await Je(Re(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let n=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(n?.width&&n.width<500)return!1}return!0}async isSubtitleAvailable(){let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=mg(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Ge({text:o.join(` +`),pageLangs:[Ht(),"en"]});return mt(re(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Re()&&(this.lastReportUrl=Re(),Qe(this.ctx,re(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,m)=>{i[m]&&(i[m].innerHTML=c.displayText)}),gg(a.arrayBuffer,a.document))}catch{}}};var xg=class extends vt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(re(i),this.ctx.targetLanguage))return null;Qe(this.ctx,re(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:re(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,re(i));return}this.downloadSubtitle(o,re(i),[]);let u=await this.requestHumanSubtitle(o,re(i),r);if(u)return this.handleIOSFullScreen(u,re(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,re(i));return l?(this.handleIOSFullScreen(l,re(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[re(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=Eu(s,u,"
");return l.forEach((c,m)=>{i.length<=m||(i[m].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!Q()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));kc(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let m=a[l],g=a[c];if(!(!m||!g)){if(m.y>g.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Re()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var oo=class extends vt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(mt(re(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),re(i.language)),i.isTranslated=!0;return}Qe(this.ctx,re(i.language)),this.translateSubtitle([...i.cues||[]],re(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>iz(i.text));if((await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].originText=t[o].text,t[o].text=i.displayText}),this.config.enableHookDownload&&t.length)try{let i=this.getSubtitleItems(t);this.updateDownloadSubtitle({subtitleItems:i,translations:[],lang:n})}catch(i){k.error("download subtitle error",i)}return t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.filter(r=>!!r.originText?.trim()).map(r=>({start:r.startTime,end:r.endTime,text:r.originText}))}};function iz(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var Wa=class extends oo{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&Qe(this.ctx,re(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(mt(re(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,re(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var Lu=class extends Wa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=wu(r),i=await Ge({text:a.subtitles.map(l=>l.text).join(` `),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}if(mt(re(i),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Qe(this.ctx,re(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),io(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var Sg=class extends vt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(mt(re(a),this.ctx.targetLanguage))return null;Qe(this.ctx,re(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,re(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:E3(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=ya(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${E3(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var wg=class extends oo{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(re(i),this.ctx.targetLanguage))return null;Qe(this.ctx,re(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,re(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,re(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=Su(t),s=Su(i),u=Eu(o,s);return{text:io(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=Su(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=ya(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),io(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[re(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Ie()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var Eg=class extends vt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=N7(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=N7(o,r.itemsPath):s=oz(o,r),!s?.length)continue;let u=await ze({text:s.map(l=>Ic(l,r.textKey)).join(` -`),pageLangs:[Ht(),"en"]});if(mt(re(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Ic(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Ic(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=iz(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function N7(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Zs(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,Qe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Kt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Kt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Ar(t,["."+Kt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Kt);if(!a){let o=document.createElement("font");o.classList.add(Kt),o.classList.add("notranslate");let s=M4(t);o.append(ct.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Lt(),"en"]});return Gs(t,r)?void 0:(await gr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=st(),n=await it(Ie(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await it(Ie(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var Ag=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=sz(r),o=await ze({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ht(),"en"]});if(mt(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=U7(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(o));let s=await this.translateSubtitle(a,i,re(o));if(this.config.enableHookDownload)try{let u=U7(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),re(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ya(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Fc,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},Fc="http://www.w3.org/ns/ttml";function sz(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Fc,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Fc,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Fc,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function U7(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Fc,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:j7(i),end:j7(o),text:s})}),r}function j7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var kg=class extends vt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=wu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(mt(o,this.ctx.targetLanguage))return null;if(Qe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,re(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=Eu(n.subtitles,Su(u));return n.subtitles=l,io(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=ya(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),io(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>re(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=cz(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return ze({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Ie()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=lz(r),i=uz(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function uz(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function lz(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function cz(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var Dg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=gg(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await ze({text:o.join(` -`),pageLangs:[Ht(),"en"]});return mt(re(s),this.ctx.targetLanguage)?null:(Qe(this.ctx,re(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},m)=>{i[m]&&(i[m].innerHTML=c)}),pg(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Lg=class extends vt{async requestSubtitle(t){let n=await it(Ie(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new Lu(this.ctx).loadSubtitle(i.url);if(!s)return;let u=A3(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}Xw(a),P3(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Mg=class extends vt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(H7).forEach(n=>{H7[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),mt(re(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(Qe(this.ctx,t),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=Jw(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},H7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Pg=class extends Va{constructor(t){super(t),new Mu(t)}};var _g=class extends Va{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Zo.parse(r),i=a.filter(c=>c.type==="caption"),o=await ze({text:i.map(c=>c.text).join(` -`),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(mt(re(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Qe(this.ctx,re(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Zo.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var Rg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await ze({text:a.map(u=>u.textContent).join(` +`)}};var Tg=class extends vt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(mt(re(a),this.ctx.targetLanguage))return null;Qe(this.ctx,re(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,re(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:S3(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=ba(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${S3(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var Sg=class extends oo{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(mt(re(i),this.ctx.targetLanguage))return null;Qe(this.ctx,re(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,re(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,re(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=Su(t),s=Su(i),u=Eu(o,s);return{text:io(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=Su(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=ba(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),io(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[re(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Re()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var wg=class extends vt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=O7(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=O7(o,r.itemsPath):s=sz(o,r),!s?.length)continue;let u=await Ge({text:s.map(l=>Rc(l,r.textKey)).join(` +`),pageLangs:[Ht(),"en"]});if(mt(re(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Rc(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Rc(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=oz(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function O7(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Zs(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,Qe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Kt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Kt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Er(t,["."+Kt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Kt);if(!a){let o=document.createElement("font");o.classList.add(Kt),o.classList.add("notranslate");let s=M4(t);o.append(ct.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Ge({text:n,pageLangs:[Lt(),"en"]});return Gs(t,r)?void 0:(await sa({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=st(),n=await Je(Re(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await Je(Re(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var Eg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=uz(r),o=await Ge({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ht(),"en"]});if(mt(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=N7(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(o));let s=await this.translateSubtitle(a,i,re(o));if(this.config.enableHookDownload)try{let u=N7(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),re(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ba(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Ic,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},Ic="http://www.w3.org/ns/ttml";function uz(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Ic,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Ic,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Ic,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function N7(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Ic,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:U7(i),end:U7(o),text:s})}),r}function U7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var Ag=class extends vt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=wu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(mt(o,this.ctx.targetLanguage))return null;if(Qe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,re(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=Eu(n.subtitles,Su(u));return n.subtitles=l,io(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=ba(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),io(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>re(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=dz(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return Ge({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Re()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=cz(r),i=lz(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function lz(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function cz(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function dz(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var kg=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=mg(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Ge({text:o.join(` +`),pageLangs:[Ht(),"en"]});return mt(re(s),this.ctx.targetLanguage)?null:(Qe(this.ctx,re(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},m)=>{i[m]&&(i[m].innerHTML=c)}),gg(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var Dg=class extends vt{async requestSubtitle(t){let n=await Je(Re(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new Lu(this.ctx).loadSubtitle(i.url);if(!s)return;let u=w3(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}Qw(a),L3(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var Lg=class extends vt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(j7).forEach(n=>{j7[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),mt(re(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(Qe(this.ctx,t),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=Zw(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},j7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var Mg=class extends Wa{constructor(t){super(t),new Mu(t)}};var Pg=class extends Wa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Zo.parse(r),i=a.filter(c=>c.type==="caption"),o=await Ge({text:i.map(c=>c.text).join(` +`),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}if(mt(re(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Qe(this.ctx,re(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Zo.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var _g=class extends vt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Ge({text:a.map(u=>u.textContent).join(` `),pageLangs:[Ht(),"en"]});if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}if(mt(re(o),this.ctx.targetLanguage))return null;this.showSubtitleLoading(!0),Qe(this.ctx,re(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),re(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",y=D3(f,l),b=D3(h,l),v=An(y),C=An(b);u==="duration"&&(C=v+C);let x=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(x||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var Ig=class extends vt{hasSubtitle=!1;async mutationVideoChange(){let t=dz(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(Qe(this.ctx,"ja","av"),this.hasSubtitle=!0,bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await X({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Zo.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function dz(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var Fg=class extends vt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(Qe(this.ctx,n.language_code),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var mz={youtube:xg,netflix:Tg,webvtt:Lu,khanacademy:Sg,udemy:wg,hulu:Lg,mubi:Fg,text_track:oo,text_track_dynamic:Va,general:Eg,live:Mu,ebutt:Ag,disneyplus:kg,"fmp4.xml":Dg,multi_attach_vtt:Mg,twitter:Pg,subsrt:_g,xml:Rg,av:Ig},Bg;async function f7(e){try{Q()&&await tt(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=mz[t.type];if(!n)return;Bg=new n(e)}catch(t){k.error(t)}}async function Q3(){Bg?.onPageStatusChange()}async function gz(e,t){if(Bg?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Tt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ne("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function pz(){Bg?.onTranslationModeChanged()}Mv({autoEnableSubtitleChanged:gz,reloadSubtitleWithTranslationModeChanged:pz});var fe=null;function Mc(){return fe||null}function Cg(e){Wi(document,e),fz(e),Tz(e),vz(e),xz(e),yz(fe),Xn("Translated"),Cz(fe),RT(Du),hz(fe),Q3(),Pz()}function fz(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=En(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}ET(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}yu(e)&&zt(document.documentElement,ne+"_rtl",e.targetLanguage)}function hz(e){let t=e.ctx;G7(t,!0),IT(e),LC(window.location.href)}function bz(e){let t=e.ctx;G7(t,!1),FT()}async function yz(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await V7(e.ctx,En(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ro(s,e);await ro(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ro(s,e)}function V7(e,t){wv(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=AT(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Is({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function vz(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await _t(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Dt({...t,tempTranslationUrlMatches:[...i]})}}function Cz(e){e.ctx.rule.isTranslateTitle&&(k1(e.ctx),e.titleDynamicObserver=DT(e.ctx))}function xz(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function j3(e,t){fe&&(e.filterRule=En(e,!0),e.isRichTranslate=Ks(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=En(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",_a(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function Tz(e){let t=wl();fe&&(t=fe.id),fe=fe||{},fe.ctx=e,fe.id=t,fe.paragraphQueue=fe.paragraphQueue||[],j3(e),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||Lz(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||Mz(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||Ez(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||Az(fe),fe.injectCssToDocument=Og,fe.walkContainer=pi,e.specialAiAssistant=oa(e,e.translationService,!0),window.onerror=wz(fe,e),window.immersiveTranslateSwitchTranslateState=e2.bind(fe)}function K7(e,t){t.getRootNode()instanceof ShadowRoot?Og(t.getRootNode(),e):Og(t.ownerDocument,e),Sz(e)}function Sz(e){fe||(fe={},fe.ctx=e,fe.id=wl(),X3(fe,e))}function X3(e,t){let n={...e};n.injectCssToDocument=Og,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=e2.bind(n);let r=oa(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Ks(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function Du(e=!0){fe&&(Xn("Original"),Q3(),bz(fe),hc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),LT(fe.ctx),xC(),TC(),e&&e2.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function wz(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Du(),n=setTimeout(()=>{Cg(t)},e.urlChangeDelay||2e3)),!0}}function Ez(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await P1(e,r.target),n.unobserve(r.target))})}function Az(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{_1(e,o)}),n.unobserve(a)}})})}var q7;function kz(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function Dz(e){if(e.urlChangeDelay<=0||(clearTimeout(q7),e.translateState=="original"))return!1;Du(e.urlChangeDelay>20),q7=setTimeout(()=>{let t=e.ctx;Cg(t)},e.urlChangeDelay)}function Lz(e){let t=e.ctx.rule,n=En(e.ctx);return new MutationObserver(r=>{if(kz(e)&&(V7(e.ctx,n),t.mutationConfig.enableUrlChange&&Dz(e))||e.interruptEffectDOM)return;let a=Jd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Ar(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Ar(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(s0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;z7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&O1(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&z7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!Rt.isSkipMarkEle(i.target)&&!Rt.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||Ma(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Zs(n,o.parentElement);l&&(Rt.clearToParentMark(o,l),W7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Kt])?!1:o.contains(l)).length&&W7(e,i.target)}catch(o){k.error(o)}}})}function z7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{B1(n),pi({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{zo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function W7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;Rt.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ro(t,e,n),i.timer=null},a)}function B1(e){e.paragraphs=[],Rt.clearMark(e),e.querySelectorAll("."+Kt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${P}-walked]`).forEach(t=>{t.paragraphs=void 0,Rt.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function O1(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Kt]))).length==0}function Mz(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);E1(i)||(n.unobserve(r.target),Rt.clearMark(a),ro(a,e))}})}async function e2(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await fa(),await tt(50),bn({method:"translatePage"});return}this.translateState=e,_a(document.documentElement,e),this.inlineIFrames?.forEach(t=>{_a(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{fc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Kt}`).forEach(t=>t.remove())}function Og(e,t){if(e instanceof HTMLIFrameElement){Wi(e.contentDocument,t);return}Wi(e,t)}async function h7(e){let t=Tt(),n="auto";if(Q()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=U4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Js(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Js(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=U4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await Fv();return n==="auto"&&(n=await _T()),vv(n),n}async function b7(){if(!fe)return;hc(),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${a0}='${n}']`);i&&i.remove()}}Vm.call(fe,fe.ctx)}async function p3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ne("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Lt()});let r=fe?.ctx||t,a=await _t();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:MT(r)},await Dt(a);let o=Te().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}ka(o)}catch(i){k.error(i)}}async function kw(){let e=await _t();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(R2,{detail:JSON.stringify(e.draft)}))}async function Pz(){try{if(await Mo("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await na();await X({url:lt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Zr("reportActive","1")}catch(e){k.error(e)}}function G7(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(as,{detail:{tempEnableSubtitle:t}}))}var _z=new AbortController,{signal:Rz}=_z,Oc=0,Nc=0,Jo=!1,so,$7=0,yi=[];function H3(e){Iz(),og().forEach(t=>{Ng(e,t)})}function Ng(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&Uz(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Ng(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Ng(n,t))}t.document.addEventListener(Fu,s),yi.push(()=>{t.document.removeEventListener(Fu,s)});let u=vr(g=>{if(!(Math.abs(g.clientX-Oc)+Math.abs(g.clientY-Nc)<=3)&&(Oc=g.clientX,Nc=g.clientY,Jo&&!so&&r2(n,!1,t),o||Jo&&!so)){let p=Q7(n.rule,t);if(p){if(n2(p))return;Ug(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;n2(p)||(Ug(n,!0,t),r2(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=$t.getPressedKeyCodes();if(f.length>1&&$t[p]&&($7=Date.now(),Jo=!1),f.length===1&&$t[p]){let h=Date.now();Jo=!0,so&&clearTimeout(so),so=setTimeout(()=>{let y=$7-h;y>0&&y<=i?Jo=!1:l(g),so=void 0},i)}};if(yi.push(()=>{so&&clearTimeout(so)}),a)return;Bc("mousemove",u,t),yi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Jo=!1}if(Bc("blur",m,t),yi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Q2;Bc("keyup",Y7,t),yi.push(()=>{t.removeEventListener("keyup",Y7)}),p.includes(g)?$t("*",{scope:"mouseHover",element:t.document},c):$t(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),$t.setScope("mouseHover"),yi.push(()=>{$t.deleteScope("mouseHover")})}}function Iz(){try{yi.forEach(e=>e())}catch{}yi=[],$t.setScope("all")}function Y7(e){Jo=!1}function Bc(e,t,n=window){return n.addEventListener(e,t,{signal:Rz})}function Ug(e,t,n,r){if(r=r||Q7(e.rule,n),!r){k.debug("can not find selection part!");return}if(Bz(e,r,t))return;if(n2(r)){k.debug("exclude dom");return}K7(e,r);let i=Mc();i&&(i.setupMouseHoverListener=Ng);let o=En(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=X3(i,e);pi({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{Jd(n.document.documentElement)!==l.state.translationMode&&_a(n.document.documentElement,l.state.translationMode),zo(u,c,!0,"hover").then(g=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,g&&!s){s=!0;let p=Date.now();Ye(B2,p);let f={translation_service:u?.translationService||""};Ne("mouse_hover_translate",[{name:"mouse_hover_translate",params:f}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Q7(e,t){return Fz(Oc,Nc,e,t)}function Fz(e,t,n,r){let a=YC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=ZC(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:J7(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{Nz(e,a)}),!0}function Oz(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(P+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${P}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function Nz(e,t){let n=Mc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{fc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function t2(e){return!!(e.host&&e.mode)}function Z7(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||t2(n))return e;for(;n&&n.nodeName!=="BODY"&&!t2(n)&&O4(n,t);){let r=n.parentNode;if(r&&t2(r))break;n=r}return n}function J7(e,t){return e.nodeType===Node.TEXT_NODE||O4(e,t)?Z7(e,t):e}function X7(e,t,n){Oc=t.clientX,Nc=t.clientY,Ug(e,!0,n),r2(e,!0,n)}async function r2(e,t,n,r){if(!ci(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=JC(Oc,Nc,e.rule,n);if(!a||K4(a.src)||a.translationStatus==="translating")return;let i=i3(a);if(i&&!t||i&&!r)return;if(i){Go(a);return}if(!await As(e)){ag("image_mouse_hover");return}Ko(e,a,!0,"image_mouse_hover")}function Uz(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Ug(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Bc("mousedown",i,t),Bc("mouseup",o,t),yi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Uc=[];function a2(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Uc.push(()=>{document.removeEventListener("click",i)})}function eE(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Uc.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function jg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Uc.push(()=>{document.removeEventListener("touchstart",r)})}var yc={touchShortcutsOff:()=>{},"multipleClick.2":a2,"multipleClick.3":a2,"multipleClick.4":a2,"slide.left":eE,"slide.right":eE,"fingers.2":jg,"fingers.3":jg,"fingers.4":jg,"fingers.5":jg};async function Dw(e,t=window){try{Wz();let n=await cn(),r=u0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=i2(e,n,a.command),o=yc[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{zz(a.command,e,t,l)})})}catch(n){k.error(n)}}function i2(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var jz=()=>{B3();let e=new CustomEvent(Hr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},Hz=()=>{N3();let e=new CustomEvent(Hr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},qz=()=>{O3();let e=new CustomEvent(Hr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},tE=0,zz=(e,t,n,r)=>{if(!(new Date().getTime()-tE<200)){if(tE=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")jz();else if(e==="touchShortcutsToggleTranslationMask")qz();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")Hz();else if(e==="touchShortcutsToggleTranslateTouchElement")X7(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};C3(r,t,n,s)}}};function Wz(){Uc.forEach(e=>{e()}),Uc=[]}function jc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=O(!1),{t:g}=F();if(n==="finger")return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(yc).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=Za.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d(la,{className:"select",maxWidth:250,items:Za.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let h=g("mouseHoldKey",{key:Fa(f)}),y=Za.includes(o),b=f===o;return o==="Off"&&f===o&&c&&(b=!1),f==="Auto"?h=g("mouseHoldKeyAuto"):f==="Off"?h=g("mouseHoldKeyOff"):f==="OtherCustom"?h=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?h=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(h=g("mouseHoldKeyPressHold")),y||f==="Other"&&(b=!0),{label:h,value:f,selected:b,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(be,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(be,{title:r,description:i||""}),d("div",{class:"nav",children:[d(la,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:b=>{b.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(b.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(t1,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(t1,{width:20,height:16})})})})]})]})}function o2(){let e=Oe(),[t,n,r,a,i]=e;Je(t,n);let[o,s]=ga(),{t:u}=F(),l=ft(t),c=dn(l);return l?d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(pa,{image:an("images/hover_intro.png"),nightImage:an("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),$r(o)&&d(jc,{onChange:(m,g)=>{n(p=>{let h={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(h.mouseHoverPreferenceKey=m),{...p,generalRule:h}}),g||rt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(Vz,{setSettings:n,config:l,localConfig:o}),d(to,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function Vz({setSettings:e,config:t,localConfig:n}){let{t:r}=F();return $r(n)?null:d(jc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||rt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function s2(){let e=Oe(),[t,n,r,a,i]=e;Je(t,n);let o=ft(t),s=dn(o),u=ue(g=>{s&&n(p=>ji({...p},g))},[s,n]),l=ui(s,t),{t:c}=F(),m=ue((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(pa,{image:an("images/float_ball_intro.png"),nightImage:an("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(Kz,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(Gz,{t:m,rule:l,updateFloatBallRule:u}),d($z,{t:m,rule:l,updateFloatBallRule:u}),d(Yz,{t:m,rule:l,updateFloatBallRule:u})]})})}function Kz({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function Gz({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=O(!1),[i,o]=O(""),[s,u]=O(-1);q(()=>{$t("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,h,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(h=>{t.blockUrls=Zt(h,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,h)=>{a(!r),o(p),u(h)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(da,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(qa,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function $z({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function Yz({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function u2(){let e=Oe(),[t,n,r,a,i]=e,[o]=ga();Je(t,n);let[s,u]=O(null),{t:l,lang:c}=F();q(()=>{Ze().then(h=>{wn({config:h,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=te(()=>s?Ls(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=u0.filter(h=>{if(h.name==="touch"){let y=$r(o);return k.debug("isSupportMouseHover",y),!y}else if(h.name==="mouse"){let y=$r(o);return k.debug("isSupportMouseHover",y),y}else return!0}).map(h=>({name:h.name,shortcuts:h.shortcuts.map(y=>{let b="",v="normal";typeof y=="string"?b=y:(b=y.command,y.type&&(v=y.type));let C="";l(`desc.${b}`)!==`desc.${b}`&&(C=l(`desc.${b}`));let T="";v==="finger"?T=i2(s,t,b):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[b]!==void 0?T=t.generalRule[b]:T=g.generalRule[b]:t?.shortcuts&&t?.shortcuts[b]!==void 0?T=t.shortcuts[b]:T=g.shortcuts[b];let w=l(`browser.${b}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(w=l(`${b}`));let S,A;return v.startsWith("translateWithCustom")&&(S=t?.shortcuts?.translateWithCustomServices?.[b],A=m.map(D=>{let M={service:D,name:null};return D.startsWith("custom-ai")&&(M.name=s.config.translationServices[D].name),M})),{command:b,type:v,shortcut:T,title:w,description:C,service:S,serviceIdList:A,disabled:!(Q(!0)||ts())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return Q(!0)||(Qn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):ts()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:h=>{h.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((h,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${h.name}`)}),h.shortcuts.map((b,v)=>bo(jc,{...b,key:`shortcut-${v}`,onChange:(C,x)=>{n(T=>{if(b.type==="finger"){let S={...T.generalRule||{},[b.command]:C||"touchShortcutsOff"};return b.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(S.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...T,generalRule:S}}else if(b.type==="mouseHoverHoldKey"){let S={...T.generalRule||{},[b.command]:C||"Off"};return C!=="Off"&&(S.mouseHoverPreferenceKey=C),{...T,generalRule:S}}else if(b.type.startsWith("translateWithCustom")){let w={...T?.shortcuts};if(m.includes(C)){let A=w.translateWithCustomServices||{};return{...T,shortcuts:{...w,translateWithCustomServices:{...A,[b.command]:C}}}}let S={...T,shortcuts:{...w,[b.command]:C}};return C||(S.shortcuts[b.command]=""),S}else{let w={...T?.shortcuts},S={...T,shortcuts:{...w,[b.command]:C}};return C||(S.shortcuts[b.command]=""),S}}),x||rt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function Zz(){let[e,t]=O(null);return q(()=>{Ze().then(n=>{t(n)})},[]),e}function l2(){let[e,t,n,r,a]=Oe(),i=Zz(),{t:o,setLang:s}=F(),[u,l]=ga();if(!i)return null;return d(at,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return q(()=>{e&&m()},[e]),d(le,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});vo.saveAs(g,P+"-config-"+zs()+".txt")}}}function c2({config:e}){let t=nr(),{t:n,lang:r}=F();return d(le,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:$,target:"_blank",children:[d(aT,{}),d("h1",{children:n("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:a=>{a.preventDefault(),lr(`${$}docs/CHANGELOG/#${t.replace(/\./ig,"")}`)},children:_o(e)}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(Jz,{}),d(Qz,{})]})]}),d("div",{className:"header-navbar-height"})]})}function Jz(){let{t:e}=F();return d("a",{class:"header-navbar-item mobile-hidden",href:ab,target:"_blank",children:[d(iT,{}),d("span",{children:e("options.navbar.installApp")})]})}function Qz(){let{t:e}=F();return d(yt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:db,target:"_blank",children:[d(oT,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function d2(){let e=Oe(),[t,n,r,a,i]=e;Je(t,n);let{t:o}=F(),s=ft(t),u=dn(s);if(!u||!s)return d("div",{children:"loading"});let l=Od(s.supportedMangaSites),c=`
+`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",y=A3(f,l),h=A3(b,l),v=An(y),C=An(h);u==="duration"&&(C=v+C);let x=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(x||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var Rg=class extends vt{hasSubtitle=!1;async mutationVideoChange(){let t=mz(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(Qe(this.ctx,"ja","av"),this.hasSubtitle=!0,bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await X({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Zo.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function mz(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var Ig=class extends vt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(Qe(this.ctx,n.language_code),bi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var gz={youtube:Cg,netflix:xg,webvtt:Lu,khanacademy:Tg,udemy:Sg,hulu:Dg,mubi:Ig,text_track:oo,text_track_dynamic:Wa,general:wg,live:Mu,ebutt:Eg,disneyplus:Ag,"fmp4.xml":kg,multi_attach_vtt:Lg,twitter:Mg,subsrt:Pg,xml:_g,av:Rg},Fg;async function p7(e){try{Q()&&await tt(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=gz[t.type];if(!n)return;Fg=new n(e)}catch(t){k.error(t)}}async function Z3(){Fg?.onPageStatusChange()}async function pz(e,t){if(Fg?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Tt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Fe("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function fz(){Fg?.onTranslationModeChanged()}Dv({autoEnableSubtitleChanged:pz,reloadSubtitleWithTranslationModeChanged:fz});var fe=null;function Lc(){return fe||null}function vg(e){Wi(document,e),hz(e),Sz(e),Cz(e),Tz(e),vz(fe),Qn("Translated"),xz(fe),PT(Du),bz(fe),Z3(),_z()}function hz(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=En(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}ST(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}yu(e)&&zt(document.documentElement,ne+"_rtl",e.targetLanguage)}function bz(e){let t=e.ctx;K7(t,!0),_T(e),kC(window.location.href)}function yz(e){let t=e.ctx;K7(t,!1),RT()}async function vz(e){if(!document.body)return;e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let t=e.ctx.rule,{bodyIsRoot:n,bodyNode:r,articleNode:a,preElements:i}=await W7(e.ctx,En(e.ctx));if(e.allTextLength=document.body?.innerText?.length,r&&a){if(i)for(let s of i||[])await ro(s,e);await ro(r,e)}if(n)return;let o=[];t.mainFrameSelector&&(o=[...document.querySelectorAll(t.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await ro(s,e)}function W7(e,t){Tv(),e.bodyNode=void 0,e.articleNode=void 0;let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=wT(e,t);return k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),e.bodyNode=n,e.articleNode=r,n&&r&&(k.debug("requestTermsByContext contextTerms articleNode",r),Is({...e,sourceProgram:"html"},e.translationService,r.innerText?.slice(0,e.rule.bodyRule.contextReqLength||0)||"")),{bodyIsRoot:a,bodyNode:n,articleNode:r,preElements:i}}async function Cz(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await _t(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await Dt({...t,tempTranslationUrlMatches:[...i]})}}function xz(e){e.ctx.rule.isTranslateTitle&&(k1(e.ctx),e.titleDynamicObserver=AT(e.ctx))}function Tz(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function N3(e,t){fe&&(e.filterRule=En(e,!0),e.isRichTranslate=Ks(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=En(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Pa(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function Sz(e){let t=Sl();fe&&(t=fe.id),fe=fe||{},fe.ctx=e,fe.id=t,fe.paragraphQueue=fe.paragraphQueue||[],N3(e),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||Mz(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||Pz(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||Az(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||kz(fe),fe.injectCssToDocument=Bg,fe.walkContainer=pi,e.specialAiAssistant=di(e,e.translationService,!0),window.onerror=Ez(fe,e),window.immersiveTranslateSwitchTranslateState=Q3.bind(fe)}function V7(e,t){t.getRootNode()instanceof ShadowRoot?Bg(t.getRootNode(),e):Bg(t.ownerDocument,e),wz(e)}function wz(e){fe||(fe={},fe.ctx=e,fe.id=Sl(),J3(fe,e))}function J3(e,t){let n={...e};n.injectCssToDocument=Bg,n.translationService=t.mouseHoverTranslationService,n.currentUrl=window.location.href,n.paragraphQueue=n.paragraphQueue||[],n.paragraphEntities=n.paragraphEntities||{},n.autoIncreaseParagraphId=n.autoIncreaseParagraphId||1,n.interruptEffectDOM=!1,n.urlChangeDelay=t.rule.urlChangeDelay,n.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",n.observeContainers=[],n.observeParagraphs=[],window.switchTranslateState=Q3.bind(n);let r=di(t,n.translationService,!0);return{engineCtx:n,ctx:{...t,specialAiAssistant:r,isRichTranslate:Ks(t,n.translationService,t.config.translationServices,t.specialAiAssistant)}}}function Du(e=!0){fe&&(Qn("Original"),Z3(),yz(fe),fc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),kT(fe.ctx),vC(),CC(),e&&Q3.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function Ez(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Du(),n=setTimeout(()=>{vg(t)},e.urlChangeDelay||2e3)),!0}}function Az(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await P1(e,r.target),n.unobserve(r.target))})}function kz(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{_1(e,o)}),n.unobserve(a)}})})}var H7;function Dz(e){let t=window.location.href||"",n=t.split("#")[0],r=e.currentUrl.split("#")[0];return e.currentUrl=t,r!=n}function Lz(e){if(e.urlChangeDelay<=0||(clearTimeout(H7),e.translateState=="original"))return!1;Du(e.urlChangeDelay>20),H7=setTimeout(()=>{let t=e.ctx;vg(t)},e.urlChangeDelay)}function Mz(e){let t=e.ctx.rule,n=En(e.ctx);return new MutationObserver(r=>{if(Dz(e)&&(W7(e.ctx,n),t.mutationConfig.enableUrlChange&&Lz(e))||e.interruptEffectDOM)return;let a=Zd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE){if(i.target.formatHtml){let o=i.addedNodes.length>0&&i.removedNodes.length>0,s=i.addedNodes.length==1&&!i.removedNodes.length;if(o||s)continue}try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Er(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Er(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(o0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;q7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&O1(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&q7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!Rt.isSkipMarkEle(i.target)&&!Rt.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||La(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Zs(n,o.parentElement);l&&(Rt.clearToParentMark(o,l),z7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Kt])?!1:o.contains(l)).length&&z7(e,i.target)}catch(o){k.error(o)}}})}function q7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{B1(n),pi({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{zo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function z7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;Rt.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{ro(t,e,n),i.timer=null},a)}function B1(e){e.paragraphs=[],Rt.clearMark(e),e.querySelectorAll("."+Kt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${P}-walked]`).forEach(t=>{t.paragraphs=void 0,Rt.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function O1(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Kt]))).length==0}function Pz(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);E1(i)||(n.unobserve(r.target),Rt.clearMark(a),ro(a,e))}})}async function Q3(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await pa(),await tt(50),bn({method:"translatePage"});return}this.translateState=e,Pa(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Pa(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{pc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Kt}`).forEach(t=>t.remove())}function Bg(e,t){if(e instanceof HTMLIFrameElement){Wi(e.contentDocument,t);return}Wi(e,t)}async function f7(e){let t=Tt(),n="auto";if(Q()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=U4(e.mainFrame),n=await Ge({text:r,pageLangs:["en"]})):(r=Js(e.mainFrame).slice(0,1e3),n=await Ge({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await Ge({text:Js(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=U4(e.mainFrame),n=await Ge({text:r,pageLangs:["en"]})}else n=await Rv();return n==="auto"&&(n=await MT()),bv(n),n}async function h7(){if(!fe)return;fc(),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${r0}='${n}']`);i&&i.remove()}}Wm.call(fe,fe.ctx)}async function p3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Fe("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Lt()});let r=fe?.ctx||t,a=await _t();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:DT(r)},await Dt(a);let o=Te().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Aa(o)}catch(i){k.error(i)}}async function Ew(){let e=await _t();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(P2,{detail:JSON.stringify(e.draft)}))}async function _z(){try{if(await Mo("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ta();await X({url:lt+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Yr("reportActive","1")}catch(e){k.error(e)}}function K7(e,t){let n=e.rule?.subtitleRule,r=n?.autoEnableSubtitle,a=n?.enableTriggerTranslate||n?.liveSubtitleRule?.enableTriggerTranslate;!r&&a&&document.dispatchEvent(new CustomEvent(as,{detail:{tempEnableSubtitle:t}}))}var Rz=new AbortController,{signal:Iz}=Rz,Bc=0,Oc=0,Jo=!1,so,G7=0,yi=[];function U3(e){Fz(),ig().forEach(t=>{Og(e,t)})}function Og(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&jz(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Og(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Og(n,t))}t.document.addEventListener(Fu,s),yi.push(()=>{t.document.removeEventListener(Fu,s)});let u=yr(g=>{if(!(Math.abs(g.clientX-Bc)+Math.abs(g.clientY-Oc)<=3)&&(Bc=g.clientX,Oc=g.clientY,Jo&&!so&&t2(n,!1,t),o||Jo&&!so)){let p=J7(n.rule,t);if(p){if(e2(p))return;Ng(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;e2(p)||(Ng(n,!0,t),t2(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=$t.getPressedKeyCodes();if(f.length>1&&$t[p]&&(G7=Date.now(),Jo=!1),f.length===1&&$t[p]){let b=Date.now();Jo=!0,so&&clearTimeout(so),so=setTimeout(()=>{let y=G7-b;y>0&&y<=i?Jo=!1:l(g),so=void 0},i)}};if(yi.push(()=>{so&&clearTimeout(so)}),a)return;Fc("mousemove",u,t),yi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Jo=!1}if(Fc("blur",m,t),yi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Z2;Fc("keyup",$7,t),yi.push(()=>{t.removeEventListener("keyup",$7)}),p.includes(g)?$t("*",{scope:"mouseHover",element:t.document},c):$t(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),$t.setScope("mouseHover"),yi.push(()=>{$t.deleteScope("mouseHover")})}}function Fz(){try{yi.forEach(e=>e())}catch{}yi=[],$t.setScope("all")}function $7(e){Jo=!1}function Fc(e,t,n=window){return n.addEventListener(e,t,{signal:Iz})}function Ng(e,t,n,r){if(r=r||J7(e.rule,n),!r){k.debug("can not find selection part!");return}if(Oz(e,r,t))return;if(e2(r)){k.debug("exclude dom");return}V7(e,r);let i=Lc();i&&(i.setupMouseHoverListener=Og);let o=En(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,{engineCtx:u,ctx:l}=J3(i,e);pi({id:i.id,container:r,filterRule:o,force:!0,onParagraph:c=>{Zd(n.document.documentElement)!==l.state.translationMode&&Pa(n.document.documentElement,l.state.translationMode),zo(u,c,!0,"hover").then(g=>{if(i.autoIncreaseParagraphId=u.autoIncreaseParagraphId,i.paragraphEntities=u.paragraphEntities,i.paragraphQueue=u.paragraphQueue,g&&!s){s=!0;let p=Date.now();rt(I2,p);let f={translation_service:u?.translationService||""};Fe("mouse_hover_translate",[{name:"mouse_hover_translate",params:f}],{...l,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function J7(e,t){return Bz(Bc,Oc,e,t)}function Bz(e,t,n,r){let a=GC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=$C(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:Z7(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{Uz(e,a)}),!0}function Nz(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(P+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${P}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function Uz(e,t){let n=Lc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{pc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function X3(e){return!!(e.host&&e.mode)}function Y7(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||X3(n))return e;for(;n&&n.nodeName!=="BODY"&&!X3(n)&&O4(n,t);){let r=n.parentNode;if(r&&X3(r))break;n=r}return n}function Z7(e,t){return e.nodeType===Node.TEXT_NODE||O4(e,t)?Y7(e,t):e}function Q7(e,t,n){Bc=t.clientX,Oc=t.clientY,Ng(e,!0,n),t2(e,!0,n)}async function t2(e,t,n,r){if(!li(e)||!e.config.generalRule.imageRule.enableMouseHover)return;let a=YC(Bc,Oc,e.rule,n);if(!a||K4(a.src)||a.translationStatus==="translating")return;let i=i3(a);if(i&&!t||i&&!r)return;if(i){Go(a);return}if(!await As(e)){rg("image_mouse_hover");return}Ko(e,a,!0,"image_mouse_hover")}function jz(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Ng(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Fc("mousedown",i,t),Fc("mouseup",o,t),yi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Nc=[];function n2(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Nc.push(()=>{document.removeEventListener("click",i)})}function X7(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Nc.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Ug(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Nc.push(()=>{document.removeEventListener("touchstart",r)})}var bc={touchShortcutsOff:()=>{},"multipleClick.2":n2,"multipleClick.3":n2,"multipleClick.4":n2,"slide.left":X7,"slide.right":X7,"fingers.2":Ug,"fingers.3":Ug,"fingers.4":Ug,"fingers.5":Ug};async function Aw(e,t=window){try{Vz();let n=await cn(),r=s0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=r2(e,n,a.command),o=bc[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{Wz(a.command,e,t,l)})})}catch(n){k.error(n)}}function r2(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var Hz=()=>{I3();let e=new CustomEvent(jr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},qz=()=>{B3();let e=new CustomEvent(jr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},zz=()=>{F3();let e=new CustomEvent(jr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},eE=0,Wz=(e,t,n,r)=>{if(!(new Date().getTime()-eE<200)){if(eE=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")Hz();else if(e==="touchShortcutsToggleTranslationMask")zz();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")qz();else if(e==="touchShortcutsToggleTranslateTouchElement")Q7(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};v3(r,t,n,s)}}};function Vz(){Nc.forEach(e=>{e()}),Nc=[]}function Uc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=O(!1),{t:g}=F();if(n==="finger")return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(bc).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=Ya.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d(ua,{className:"select",maxWidth:250,items:Ya.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let b=g("mouseHoldKey",{key:Ia(f)}),y=Ya.includes(o),h=f===o;return o==="Off"&&f===o&&c&&(h=!1),f==="Auto"?b=g("mouseHoldKeyAuto"):f==="Off"?b=g("mouseHoldKeyOff"):f==="OtherCustom"?b=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?b=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(b=g("mouseHoldKeyPressHold")),y||f==="Other"&&(h=!0),{label:b,value:f,selected:h,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(be,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(be,{title:r,description:i||""}),d("div",{class:"nav",children:[d(ua,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:h=>{h.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(h.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(t1,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(be,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(yt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(t1,{width:20,height:16})})})})]})]})}function a2(){let e=Ne(),[t,n,r,a,i]=e;Ze(t,n);let[o,s]=ma(),{t:u}=F(),l=ft(t),c=dn(l);return l?d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ga,{image:an("images/hover_intro.png"),nightImage:an("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Gr(o)&&d(Uc,{onChange:(m,g)=>{n(p=>{let b={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(b.mouseHoverPreferenceKey=m),{...p,generalRule:b}}),g||at(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(Kz,{setSettings:n,config:l,localConfig:o}),d(to,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function Kz({setSettings:e,config:t,localConfig:n}){let{t:r}=F();return Gr(n)?null:d(Uc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||at(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function i2(){let e=Ne(),[t,n,r,a,i]=e;Ze(t,n);let o=ft(t),s=dn(o),u=ue(g=>{s&&n(p=>ji({...p},g))},[s,n]),l=si(s,t),{t:c}=F(),m=ue((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ga,{image:an("images/float_ball_intro.png"),nightImage:an("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(Gz,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d($z,{t:m,rule:l,updateFloatBallRule:u}),d(Yz,{t:m,rule:l,updateFloatBallRule:u}),d(Zz,{t:m,rule:l,updateFloatBallRule:u})]})})}function Gz({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function $z({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=O(!1),[i,o]=O(""),[s,u]=O(-1);q(()=>{$t("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,b,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=Hn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(b=>{t.blockUrls=Zt(b,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,b)=>{a(!r),o(p),u(b)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(ca,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ha,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function Yz({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function Zz({t:e,rule:t,updateFloatBallRule:n}){return d(le,{children:d("div",{class:"nav",children:[d(be,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function o2(){let e=Ne(),[t,n,r,a,i]=e,[o]=ma();Ze(t,n);let[s,u]=O(null),{t:l,lang:c}=F();q(()=>{Ye().then(b=>{wn({config:b,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=te(()=>s?Ls(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=s0.filter(b=>{if(b.name==="touch"){let y=Gr(o);return k.debug("isSupportMouseHover",y),!y}else if(b.name==="mouse"){let y=Gr(o);return k.debug("isSupportMouseHover",y),y}else return!0}).map(b=>({name:b.name,shortcuts:b.shortcuts.map(y=>{let h="",v="normal";typeof y=="string"?h=y:(h=y.command,y.type&&(v=y.type));let C="";l(`desc.${h}`)!==`desc.${h}`&&(C=l(`desc.${h}`));let T="";v==="finger"?T=r2(s,t,h):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[h]!==void 0?T=t.generalRule[h]:T=g.generalRule[h]:t?.shortcuts&&t?.shortcuts[h]!==void 0?T=t.shortcuts[h]:T=g.shortcuts[h];let S=l(`browser.${h}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(S=l(`${h}`));let w,A;return v.startsWith("translateWithCustom")&&(w=t?.shortcuts?.translateWithCustomServices?.[h],A=m.map(D=>{let M={service:D,name:null};return D.startsWith("custom-ai")&&(M.name=s.config.translationServices[D].name),M})),{command:h,type:v,shortcut:T,title:S,description:C,service:w,serviceIdList:A,disabled:!(Q(!0)||ts())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return Q(!0)||(Jn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):ts()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:b=>{b.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(it,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((b,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${b.name}`)}),b.shortcuts.map((h,v)=>bo(Uc,{...h,key:`shortcut-${v}`,onChange:(C,x)=>{n(T=>{if(h.type==="finger"){let w={...T.generalRule||{},[h.command]:C||"touchShortcutsOff"};return h.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(w.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...T,generalRule:w}}else if(h.type==="mouseHoverHoldKey"){let w={...T.generalRule||{},[h.command]:C||"Off"};return C!=="Off"&&(w.mouseHoverPreferenceKey=C),{...T,generalRule:w}}else if(h.type.startsWith("translateWithCustom")){let S={...T?.shortcuts};if(m.includes(C)){let A=S.translateWithCustomServices||{};return{...T,shortcuts:{...S,translateWithCustomServices:{...A,[h.command]:C}}}}let w={...T,shortcuts:{...S,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}else{let S={...T?.shortcuts},w={...T,shortcuts:{...S,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}}),x||at(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function Jz(){let[e,t]=O(null);return q(()=>{Ye().then(n=>{t(n)})},[]),e}function s2(){let[e,t,n,r,a]=Ne(),i=Jz(),{t:o,setLang:s}=F(),[u,l]=ma();if(!i)return null;return d(it,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return q(()=>{e&&m()},[e]),d(le,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});vo.saveAs(g,P+"-config-"+zs()+".txt")}}}function u2({config:e}){let t=tr(),{t:n,lang:r}=F();return d(le,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:$,target:"_blank",children:[d(nT,{}),d("h1",{children:n("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:a=>{a.preventDefault(),cr(`${$}docs/CHANGELOG/#${t.replace(/\./ig,"")}`)},children:_o(e)}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(Qz,{}),d(Xz,{})]})]}),d("div",{className:"header-navbar-height"})]})}function Qz(){let{t:e}=F();return d("a",{class:"header-navbar-item mobile-hidden",href:nb,target:"_blank",children:[d(rT,{}),d("span",{children:e("options.navbar.installApp")})]})}function Xz(){let{t:e}=F();return d(yt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:lb,target:"_blank",children:[d(aT,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function l2(){let e=Ne(),[t,n,r,a,i]=e;Ze(t,n);let{t:o}=F(),s=ft(t),u=dn(s);if(!u||!s)return d("div",{children:"loading"});let l=Bd(s.supportedMangaSites),c=``,m=[...l.map((p,f)=>` ${p.name} ${f!==l.length-1?", ":""} - `),c].join(""),g=ci(u,!0);return d(at,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(pa,{image:an("images/popup-manga-guide.png"),nightImage:an("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:op})+m,children:d("div",{class:"px-6",children:d(nE,{config:u.config,ctx:u})})}),d(nE,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:op})+"
"+m}}),d(Xz,{ctx:u})]})})}function nE({config:e,ctx:t,className:n}){let[r,a,i,o,s]=we(me),u=ui(t,r),{t:l}=F(),c=ue((g,p)=>l("floatBallOptions."+g,p),[]),m=ue(g=>{t&&a(p=>ji({...p},g))},[t,a]);return u?d(le,{children:d("div",{class:`nav ${n}`,children:[d(be,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function Xz({ctx:e}){let{t}=F();return ci(e,!0)?d(le,{children:[d(pa,{image:an("images/image_tansalte_intro-qkKVLH.png"),nightImage:an("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:sp}),children:d("div",{class:"px-6",children:[d(rE,{ctx:e}),d(aE,{ctx:e,styles:{paddingTop:0}})]})}),d(rE,{ctx:e,className:"image-tools-enable"}),d(aE,{ctx:e,className:"image-tools-enable"}),d(eW,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:sp})}})]}):null}function rE({ctx:e,className:t}){let[n,r,a,i,o]=we(me),s=e.rule.imageRule,{t:u}=F();return d(le,{children:d("div",{class:`nav ${t}`,children:[d(be,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function eW({ctx:e}){let{t}=F(),[n,r]=O(!1),[a,i]=O(""),[o,s]=O(-1),[u,l,c,m,g]=we(me),p=e.config.generalRule.imageRule||{};q(()=>{$t("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},h=(v,C,x,T)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=qn(v,p.blockToolsUrls),l(w=>({...w,generalRule:{...w.generalRule,"imageRule.add":{...w.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(x=>{p.blockToolsUrls=Zt(x,p.blockToolsUrls)}),l(x=>({...x,generalRule:{...x.generalRule,"imageRule.add":{...x.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},b=(v,C,x)=>{r(!n),i(v),s(x)};return d(le,{children:[d("div",{class:"nav",children:[d(be,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(da,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:h,type:"excludeMatches",urlValue:a,index:o}):null]}),d(qa,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:b})]})}function aE({ctx:e,className:t,styles:n}){let{t:r}=F(),[a,i,o,s]=we(me);return d("div",{class:`nav ${t}`,style:n,children:[d(be,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function iE(){try{if(Q())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Ri,n)}catch{}}async function oE(){await iE();let e=document.getElementById("mount");e&&(async()=>{Ip(xT);let t=await Ze();if(location.href.includes(rs)&&t.joinJobs){let r=Tb.replace("{jobs}",t.joinJobs.map(a=>` \u2022 ${a}`).join(` -`))}t.debug&&k.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Ne("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),Wi(document,n),xa(d(Zi,{lang:t.interfaceLanguage,children:d(tW,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function tW(e){let t=Bo(),{t:n,lang:r}=F(),a=nr(),{config:i}=e,{beta:o}=i,s=tr(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:ci(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];nW(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;je()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(Rm,{}),"#services":d(m1,{}),"#ai":d(f1,{}),"#mouse_hover":d(o2,{}),"#input":d(h1,{}),"#shortcuts":d(u2,{}),"#floating":d(s2,{}),"#import_export":d(Jh,{}),"#about":d(y1,{}),"#advanced":d(v1,{}),"#developer":d(b1,{}),"#subtitle":d(T1,{}),"#manga":d(d2,{}),"#contact":d(C1,{}),"#download_config":d(l2,{})};return u||delete m["#manga"],d(at,{children:[d(c2,{config:i}),d(le,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),lr(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Gu,onClick:g=>{g.preventDefault(),lr(Gu)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:$+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),lr($+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:up,onClick:g=>{g.preventDefault(),lr(up)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${P}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(j4,{value:t,defaultCase:d(Rm,{}),cases:m})})]})})]})}function nW(e){let t=Ce(0),n=Ce(0),r=Ce(),a=ue(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await Rv({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);q(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),q(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__=!0;var m2=!1;function rW(){if(m2)return;if(_v(),!document.querySelector(`meta[name=${P}-options]`))throw new Error("Options meta element not found");let t=document.getElementById(P+"-status");if(!t)throw new Error("Status element not found");let n=document.getElementById(P+"-page-ready");if(!n)throw new Error("Page ready input element not found");function r(a){let i=a.target.value;i==="true"?(m2=!0,t.innerText="",n.removeEventListener("change",r),oE()):t.innerText="Page Status: "+i}n.addEventListener("change",r),setTimeout(()=>{m2||(t.innerHTML=`\u65E0\u6CD5\u68C0\u6D4B\u5230 \u6C89\u6D78\u5F0F\u7FFB\u8BD1 \u6269\u5C55. \u8BF7\u786E\u8BA4\u5DF2\u5B89\u88C5\u5E76\u542F\u7528\u6C89\u6D78\u5F0F\u6269\u5C55\uFF0C\u5E76\u6388\u6743\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBF\u95EE\u6240\u6709\u7F51\u7AD9\u7684\u6743\u9650\u3002

\u5982\u679C\u4F60\u4F7F\u7528\u7684\u662FiOS Safari \u6D4F\u89C8\u5668\u6269\u5C55\uFF0C\u53EF\u4EE5\u53C2\u8003\u4EE5\u4E0B\u89C6\u9891\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6269\u5C55\uFF1A
`)},5e3)}aW();})(); /*! Bundled license information: js-yaml/dist/js-yaml.mjs: